ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5352
Committed: Sun Jan 11 13:26:11 2015 UTC (9 years, 2 months ago) by michael
File size: 442053 byte(s)
Log Message:
- automake 1.15

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 5314 2015-01-06 13:27:34Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='hopm'
593 PACKAGE_TARNAME='hopm'
594 PACKAGE_VERSION='TRUNK'
595 PACKAGE_STRING='hopm TRUNK'
596 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 PACKAGE_URL=''
598
599 ac_unique_file="src/opercmd.h"
600 ac_default_prefix=\${HOME}/hopm
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 # include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 # include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 LEXLIB
642 LEX_OUTPUT_ROOT
643 LEX
644 YFLAGS
645 YACC
646 CPP
647 OTOOL64
648 OTOOL
649 LIPO
650 NMEDIT
651 DSYMUTIL
652 MANIFEST_TOOL
653 RANLIB
654 ac_ct_AR
655 AR
656 DLLTOOL
657 OBJDUMP
658 LN_S
659 NM
660 ac_ct_DUMPBIN
661 DUMPBIN
662 LD
663 FGREP
664 EGREP
665 GREP
666 SED
667 host_os
668 host_vendor
669 host_cpu
670 host
671 build_os
672 build_vendor
673 build_cpu
674 build
675 LIBTOOL
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__quote
684 am__include
685 DEPDIR
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 target_alias
724 host_alias
725 build_alias
726 LIBS
727 ECHO_T
728 ECHO_N
729 ECHO_C
730 DEFS
731 mandir
732 localedir
733 libdir
734 psdir
735 pdfdir
736 dvidir
737 htmldir
738 infodir
739 docdir
740 oldincludedir
741 includedir
742 localstatedir
743 sharedstatedir
744 sysconfdir
745 datadir
746 datarootdir
747 libexecdir
748 sbindir
749 bindir
750 program_transform_name
751 prefix
752 exec_prefix
753 PACKAGE_URL
754 PACKAGE_BUGREPORT
755 PACKAGE_STRING
756 PACKAGE_VERSION
757 PACKAGE_TARNAME
758 PACKAGE_NAME
759 PATH_SEPARATOR
760 SHELL'
761 ac_subst_files=''
762 ac_user_opts='
763 enable_option_checking
764 enable_silent_rules
765 enable_maintainer_mode
766 enable_dependency_tracking
767 enable_shared
768 enable_static
769 with_pic
770 enable_fast_install
771 with_aix_soname
772 with_gnu_ld
773 with_sysroot
774 enable_libtool_lock
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 YACC
786 YFLAGS'
787
788
789 # Initialize some variables set by options.
790 ac_init_help=
791 ac_init_version=false
792 ac_unrecognized_opts=
793 ac_unrecognized_sep=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
796 cache_file=/dev/null
797 exec_prefix=NONE
798 no_create=
799 no_recursion=
800 prefix=NONE
801 program_prefix=NONE
802 program_suffix=NONE
803 program_transform_name=s,x,x,
804 silent=
805 site=
806 srcdir=
807 verbose=
808 x_includes=NONE
809 x_libraries=NONE
810
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
829 htmldir='${docdir}'
830 dvidir='${docdir}'
831 pdfdir='${docdir}'
832 psdir='${docdir}'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
836
837 ac_prev=
838 ac_dashdash=
839 for ac_option
840 do
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
844 ac_prev=
845 continue
846 fi
847
848 case $ac_option in
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *=) ac_optarg= ;;
851 *) ac_optarg=yes ;;
852 esac
853
854 # Accept the important Cygnus configure options, so we can diagnose typos.
855
856 case $ac_dashdash$ac_option in
857 --)
858 ac_dashdash=yes ;;
859
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 ac_prev=bindir ;;
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 bindir=$ac_optarg ;;
864
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
869
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
876
877 --config-cache | -C)
878 cache_file=config.cache ;;
879
880 -datadir | --datadir | --datadi | --datad)
881 ac_prev=datadir ;;
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
884
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
891
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
900 *"
901 "enable_$ac_useropt"
902 "*) ;;
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
905 esac
906 eval enable_$ac_useropt=no ;;
907
908 -docdir | --docdir | --docdi | --doc | --do)
909 ac_prev=docdir ;;
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 docdir=$ac_optarg ;;
912
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 ac_prev=dvidir ;;
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 dvidir=$ac_optarg ;;
917
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927 "enable_$ac_useropt"
928 "*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=\$ac_optarg ;;
933
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
942
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
945 with_gas=yes ;;
946
947 -help | --help | --hel | --he | -h)
948 ac_init_help=long ;;
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
953
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
958
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 ac_prev=htmldir ;;
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 | --ht=*)
963 htmldir=$ac_optarg ;;
964
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
971
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 ac_prev=infodir ;;
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
976
977 -libdir | --libdir | --libdi | --libd)
978 ac_prev=libdir ;;
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
980 libdir=$ac_optarg ;;
981
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
988
989 -localedir | --localedir | --localedi | --localed | --locale)
990 ac_prev=localedir ;;
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
993
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1000
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 ac_prev=mandir ;;
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1005
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1008 with_fp=no ;;
1009
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1012 no_create=yes ;;
1013
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016 no_recursion=yes ;;
1017
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1026
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 ac_prev=prefix ;;
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1031
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1038
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1045
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1062
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 ac_prev=pdfdir ;;
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1067
1068 -psdir | --psdir | --psdi | --psd | --ps)
1069 ac_prev=psdir ;;
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071 psdir=$ac_optarg ;;
1072
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1075 silent=yes ;;
1076
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 ac_prev=sbindir ;;
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 | --sbi=* | --sb=*)
1081 sbindir=$ac_optarg ;;
1082
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1086 | --sha | --sh)
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 | --sha=* | --sh=*)
1092 sharedstatedir=$ac_optarg ;;
1093
1094 -site | --site | --sit)
1095 ac_prev=site ;;
1096 -site=* | --site=* | --sit=*)
1097 site=$ac_optarg ;;
1098
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 ac_prev=srcdir ;;
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1103
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1110
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1115
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117 verbose=yes ;;
1118
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1121
1122 -with-* | --with-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=\$ac_optarg ;;
1137
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=no ;;
1153
1154 --x)
1155 # Obsolete; use --with-x.
1156 with_x=yes ;;
1157
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1164
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1171
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182 esac
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1185
1186 *)
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192 ;;
1193
1194 esac
1195 done
1196
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1200 fi
1201
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1204 no) ;;
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 esac
1208 fi
1209
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1215 do
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1218 case $ac_val in
1219 */ )
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1222 esac
1223 # Be sure to have absolute directory names.
1224 case $ac_val in
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 esac
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229 done
1230
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1237
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1244 fi
1245 fi
1246
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250 test "$silent" = yes && exec 6>/dev/null
1251
1252
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1277 q
1278 }
1279 /^X\(\/\/\)$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\).*/{
1284 s//\1/
1285 q
1286 }
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1291 fi
1292 else
1293 ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 fi
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1306 fi
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1319
1320 #
1321 # Report the --help message.
1322 #
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1328
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1333
1334 Defaults for the options are specified in brackets.
1335
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1352
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1357
1358 For better control, use the options below.
1359
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1381
1382 cat <<\_ACEOF
1383
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1388
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 _ACEOF
1393 fi
1394
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of hopm TRUNK:";;
1398 esac
1399 cat <<\_ACEOF
1400
1401 Optional Features:
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-silent-rules less verbose build output (undo: "make V=1")
1406 --disable-silent-rules verbose build output (undo: "make V=0")
1407 --enable-maintainer-mode
1408 enable make rules and dependencies not useful (and
1409 sometimes confusing) to the casual installer
1410 --enable-dependency-tracking
1411 do not reject slow dependency extractors
1412 --disable-dependency-tracking
1413 speeds up one-time build
1414 --enable-shared[=PKGS] build shared libraries [default=yes]
1415 --enable-static[=PKGS] build static libraries [default=yes]
1416 --enable-fast-install[=PKGS]
1417 optimize for fast installation [default=yes]
1418 --disable-libtool-lock avoid locking (might break parallel builds)
1419
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424 both]
1425 --with-aix-soname=aix|svr4|both
1426 shared library versioning (aka "SONAME") variant to
1427 provide on AIX, [default=aix].
1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430 compiler's sysroot if not specified).
1431
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1440 CPP C preprocessor
1441 YACC The `Yet Another Compiler Compiler' implementation to use.
1442 Defaults to the first program found out of: `bison -y', `byacc',
1443 `yacc'.
1444 YFLAGS The list of arguments that will be passed by default to $YACC.
1445 This script will default YFLAGS to the empty string to avoid a
1446 default value of `-d' given by some make applications.
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to <bugs@ircd-hybrid.org>.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 hopm configure TRUNK
1515 generated by GNU Autoconf 2.69
1516
1517 Copyright (C) 2012 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560 fi
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 test -x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_link
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1623 else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631 else
1632 eval "$3=no"
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715 fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1743
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1749
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main ()
1768 {
1769 return $2 ();
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_func
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1791
1792 It was created by hopm $as_me TRUNK, which was
1793 generated by GNU Autoconf 2.69. Invocation command line was
1794
1795 $ $0 $@
1796
1797 _ACEOF
1798 exec 5>>config.log
1799 {
1800 cat <<_ASUNAME
1801 ## --------- ##
1802 ## Platform. ##
1803 ## --------- ##
1804
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1813
1814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821
1822 _ASUNAME
1823
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 $as_echo "PATH: $as_dir"
1830 done
1831 IFS=$as_save_IFS
1832
1833 } >&5
1834
1835 cat >&5 <<_ACEOF
1836
1837
1838 ## ----------- ##
1839 ## Core tests. ##
1840 ## ----------- ##
1841
1842 _ACEOF
1843
1844
1845 # Keep a trace of the command line.
1846 # Strip out --no-create and --no-recursion so they do not pile up.
1847 # Strip out --silent because we don't want to record it for future runs.
1848 # Also quote any args containing shell meta-characters.
1849 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_configure_args=
1851 ac_configure_args0=
1852 ac_configure_args1=
1853 ac_must_keep_next=false
1854 for ac_pass in 1 2
1855 do
1856 for ac_arg
1857 do
1858 case $ac_arg in
1859 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861 | -silent | --silent | --silen | --sile | --sil)
1862 continue ;;
1863 *\'*)
1864 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 esac
1866 case $ac_pass in
1867 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1868 2)
1869 as_fn_append ac_configure_args1 " '$ac_arg'"
1870 if test $ac_must_keep_next = true; then
1871 ac_must_keep_next=false # Got value, back to normal.
1872 else
1873 case $ac_arg in
1874 *=* | --config-cache | -C | -disable-* | --disable-* \
1875 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877 | -with-* | --with-* | -without-* | --without-* | --x)
1878 case "$ac_configure_args0 " in
1879 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 esac
1881 ;;
1882 -* ) ac_must_keep_next=true ;;
1883 esac
1884 fi
1885 as_fn_append ac_configure_args " '$ac_arg'"
1886 ;;
1887 esac
1888 done
1889 done
1890 { ac_configure_args0=; unset ac_configure_args0;}
1891 { ac_configure_args1=; unset ac_configure_args1;}
1892
1893 # When interrupted or exit'd, cleanup temporary files, and complete
1894 # config.log. We remove comments because anyway the quotes in there
1895 # would cause problems or look ugly.
1896 # WARNING: Use '\'' to represent an apostrophe within the trap.
1897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898 trap 'exit_status=$?
1899 # Save into config.log some information that might help in debugging.
1900 {
1901 echo
1902
1903 $as_echo "## ---------------- ##
1904 ## Cache variables. ##
1905 ## ---------------- ##"
1906 echo
1907 # The following way of writing the cache mishandles newlines in values,
1908 (
1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in #(
1912 *${as_nl}*)
1913 case $ac_var in #(
1914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 esac
1917 case $ac_var in #(
1918 _ | IFS | as_nl) ;; #(
1919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920 *) { eval $ac_var=; unset $ac_var;} ;;
1921 esac ;;
1922 esac
1923 done
1924 (set) 2>&1 |
1925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926 *${as_nl}ac_space=\ *)
1927 sed -n \
1928 "s/'\''/'\''\\\\'\'''\''/g;
1929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 ;; #(
1931 *)
1932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933 ;;
1934 esac |
1935 sort
1936 )
1937 echo
1938
1939 $as_echo "## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##"
1942 echo
1943 for ac_var in $ac_subst_vars
1944 do
1945 eval ac_val=\$$ac_var
1946 case $ac_val in
1947 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 esac
1949 $as_echo "$ac_var='\''$ac_val'\''"
1950 done | sort
1951 echo
1952
1953 if test -n "$ac_subst_files"; then
1954 $as_echo "## ------------------- ##
1955 ## File substitutions. ##
1956 ## ------------------- ##"
1957 echo
1958 for ac_var in $ac_subst_files
1959 do
1960 eval ac_val=\$$ac_var
1961 case $ac_val in
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963 esac
1964 $as_echo "$ac_var='\''$ac_val'\''"
1965 done | sort
1966 echo
1967 fi
1968
1969 if test -s confdefs.h; then
1970 $as_echo "## ----------- ##
1971 ## confdefs.h. ##
1972 ## ----------- ##"
1973 echo
1974 cat confdefs.h
1975 echo
1976 fi
1977 test "$ac_signal" != 0 &&
1978 $as_echo "$as_me: caught signal $ac_signal"
1979 $as_echo "$as_me: exit $exit_status"
1980 } >&5
1981 rm -f core *.core core.conftest.* &&
1982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1983 exit $exit_status
1984 ' 0
1985 for ac_signal in 1 2 13 15; do
1986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1987 done
1988 ac_signal=0
1989
1990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1991 rm -f -r conftest* confdefs.h
1992
1993 $as_echo "/* confdefs.h */" > confdefs.h
1994
1995 # Predefined preprocessor variables.
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 _ACEOF
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_STRING "$PACKAGE_STRING"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_URL "$PACKAGE_URL"
2019 _ACEOF
2020
2021
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2024 ac_site_file1=NONE
2025 ac_site_file2=NONE
2026 if test -n "$CONFIG_SITE"; then
2027 # We do not want a PATH search for config.site.
2028 case $CONFIG_SITE in #((
2029 -*) ac_site_file1=./$CONFIG_SITE;;
2030 */*) ac_site_file1=$CONFIG_SITE;;
2031 *) ac_site_file1=./$CONFIG_SITE;;
2032 esac
2033 elif test "x$prefix" != xNONE; then
2034 ac_site_file1=$prefix/share/config.site
2035 ac_site_file2=$prefix/etc/config.site
2036 else
2037 ac_site_file1=$ac_default_prefix/share/config.site
2038 ac_site_file2=$ac_default_prefix/etc/config.site
2039 fi
2040 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041 do
2042 test "x$ac_site_file" = xNONE && continue
2043 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046 sed 's/^/| /' "$ac_site_file" >&5
2047 . "$ac_site_file" \
2048 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 as_fn_error $? "failed to load site script $ac_site_file
2051 See \`config.log' for more details" "$LINENO" 5; }
2052 fi
2053 done
2054
2055 if test -r "$cache_file"; then
2056 # Some versions of bash will fail to source /dev/null (special files
2057 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2058 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2060 $as_echo "$as_me: loading cache $cache_file" >&6;}
2061 case $cache_file in
2062 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2063 *) . "./$cache_file";;
2064 esac
2065 fi
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2068 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 >$cache_file
2070 fi
2071
2072 # Check that the precious variables saved in the cache have kept the same
2073 # value.
2074 ac_cache_corrupted=false
2075 for ac_var in $ac_precious_vars; do
2076 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077 eval ac_new_set=\$ac_env_${ac_var}_set
2078 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079 eval ac_new_val=\$ac_env_${ac_var}_value
2080 case $ac_old_set,$ac_new_set in
2081 set,)
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2085 ,set)
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2087 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088 ac_cache_corrupted=: ;;
2089 ,);;
2090 *)
2091 if test "x$ac_old_val" != "x$ac_new_val"; then
2092 # differences in whitespace do not lead to failure.
2093 ac_old_val_w=`echo x $ac_old_val`
2094 ac_new_val_w=`echo x $ac_new_val`
2095 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2097 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098 ac_cache_corrupted=:
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102 eval $ac_var=\$ac_old_val
2103 fi
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2105 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2107 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2108 fi;;
2109 esac
2110 # Pass precious variables to config.status.
2111 if test "$ac_new_set" = set; then
2112 case $ac_new_val in
2113 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 *) ac_arg=$ac_var=$ac_new_val ;;
2115 esac
2116 case " $ac_configure_args " in
2117 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2119 esac
2120 fi
2121 done
2122 if $ac_cache_corrupted; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2126 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2128 fi
2129 ## -------------------- ##
2130 ## Main body of script. ##
2131 ## -------------------- ##
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138
2139
2140 am__api_version='1.15'
2141
2142 ac_aux_dir=
2143 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2144 if test -f "$ac_dir/install-sh"; then
2145 ac_aux_dir=$ac_dir
2146 ac_install_sh="$ac_aux_dir/install-sh -c"
2147 break
2148 elif test -f "$ac_dir/install.sh"; then
2149 ac_aux_dir=$ac_dir
2150 ac_install_sh="$ac_aux_dir/install.sh -c"
2151 break
2152 elif test -f "$ac_dir/shtool"; then
2153 ac_aux_dir=$ac_dir
2154 ac_install_sh="$ac_aux_dir/shtool install -c"
2155 break
2156 fi
2157 done
2158 if test -z "$ac_aux_dir"; then
2159 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2160 fi
2161
2162 # These three variables are undocumented and unsupported,
2163 # and are intended to be withdrawn in a future Autoconf release.
2164 # They can cause serious problems if a builder's source tree is in a directory
2165 # whose full name contains unusual characters.
2166 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2167 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2168 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2169
2170
2171 # Find a good install program. We prefer a C program (faster),
2172 # so one script is as good as another. But avoid the broken or
2173 # incompatible versions:
2174 # SysV /etc/install, /usr/sbin/install
2175 # SunOS /usr/etc/install
2176 # IRIX /sbin/install
2177 # AIX /bin/install
2178 # AmigaOS /C/install, which installs bootblocks on floppy discs
2179 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2180 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2181 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2182 # OS/2's system install, which has a completely different semantic
2183 # ./install, which can be erroneously created by make from ./install.sh.
2184 # Reject install programs that cannot install multiple files.
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2186 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2187 if test -z "$INSTALL"; then
2188 if ${ac_cv_path_install+:} false; then :
2189 $as_echo_n "(cached) " >&6
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 # Account for people who put trailing slashes in PATH elements.
2197 case $as_dir/ in #((
2198 ./ | .// | /[cC]/* | \
2199 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2200 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2201 /usr/ucb/* ) ;;
2202 *)
2203 # OSF1 and SCO ODT 3.0 have their own names for install.
2204 # Don't use installbsd from OSF since it installs stuff as root
2205 # by default.
2206 for ac_prog in ginstall scoinst install; do
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2209 if test $ac_prog = install &&
2210 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2211 # AIX install. It has an incompatible calling convention.
2212 :
2213 elif test $ac_prog = install &&
2214 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215 # program-specific install script used by HP pwplus--don't use.
2216 :
2217 else
2218 rm -rf conftest.one conftest.two conftest.dir
2219 echo one > conftest.one
2220 echo two > conftest.two
2221 mkdir conftest.dir
2222 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2223 test -s conftest.one && test -s conftest.two &&
2224 test -s conftest.dir/conftest.one &&
2225 test -s conftest.dir/conftest.two
2226 then
2227 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2228 break 3
2229 fi
2230 fi
2231 fi
2232 done
2233 done
2234 ;;
2235 esac
2236
2237 done
2238 IFS=$as_save_IFS
2239
2240 rm -rf conftest.one conftest.two conftest.dir
2241
2242 fi
2243 if test "${ac_cv_path_install+set}" = set; then
2244 INSTALL=$ac_cv_path_install
2245 else
2246 # As a last resort, use the slow shell script. Don't cache a
2247 # value for INSTALL within a source directory, because that will
2248 # break other packages using the cache if that directory is
2249 # removed, or if the value is a relative name.
2250 INSTALL=$ac_install_sh
2251 fi
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2254 $as_echo "$INSTALL" >&6; }
2255
2256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2257 # It thinks the first close brace ends the variable substitution.
2258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2259
2260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2261
2262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2263
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2265 $as_echo_n "checking whether build environment is sane... " >&6; }
2266 # Reject unsafe characters in $srcdir or the absolute working directory
2267 # name. Accept space and tab only in the latter.
2268 am_lf='
2269 '
2270 case `pwd` in
2271 *[\\\"\#\$\&\'\`$am_lf]*)
2272 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2273 esac
2274 case $srcdir in
2275 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2276 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2277 esac
2278
2279 # Do 'set' in a subshell so we don't clobber the current shell's
2280 # arguments. Must try -L first in case configure is actually a
2281 # symlink; some systems play weird games with the mod time of symlinks
2282 # (eg FreeBSD returns the mod time of the symlink's containing
2283 # directory).
2284 if (
2285 am_has_slept=no
2286 for am_try in 1 2; do
2287 echo "timestamp, slept: $am_has_slept" > conftest.file
2288 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2289 if test "$*" = "X"; then
2290 # -L didn't work.
2291 set X `ls -t "$srcdir/configure" conftest.file`
2292 fi
2293 if test "$*" != "X $srcdir/configure conftest.file" \
2294 && test "$*" != "X conftest.file $srcdir/configure"; then
2295
2296 # If neither matched, then we have a broken ls. This can happen
2297 # if, for instance, CONFIG_SHELL is bash and it inherits a
2298 # broken ls alias from the environment. This has actually
2299 # happened. Such a system could not be considered "sane".
2300 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2301 alias in your environment" "$LINENO" 5
2302 fi
2303 if test "$2" = conftest.file || test $am_try -eq 2; then
2304 break
2305 fi
2306 # Just in case.
2307 sleep 1
2308 am_has_slept=yes
2309 done
2310 test "$2" = conftest.file
2311 )
2312 then
2313 # Ok.
2314 :
2315 else
2316 as_fn_error $? "newly created file is older than distributed files!
2317 Check your system clock" "$LINENO" 5
2318 fi
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2320 $as_echo "yes" >&6; }
2321 # If we didn't sleep, we still need to ensure time stamps of config.status and
2322 # generated files are strictly newer.
2323 am_sleep_pid=
2324 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2325 ( sleep 1 ) &
2326 am_sleep_pid=$!
2327 fi
2328
2329 rm -f conftest.file
2330
2331 test "$program_prefix" != NONE &&
2332 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2333 # Use a double $ so make ignores it.
2334 test "$program_suffix" != NONE &&
2335 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2336 # Double any \ or $.
2337 # By default was `s,x,x', remove it if useless.
2338 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2339 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2340
2341 # Expand $ac_aux_dir to an absolute path.
2342 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2343
2344 if test x"${MISSING+set}" != xset; then
2345 case $am_aux_dir in
2346 *\ * | *\ *)
2347 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2348 *)
2349 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2350 esac
2351 fi
2352 # Use eval to expand $SHELL
2353 if eval "$MISSING --is-lightweight"; then
2354 am_missing_run="$MISSING "
2355 else
2356 am_missing_run=
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2358 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2359 fi
2360
2361 if test x"${install_sh+set}" != xset; then
2362 case $am_aux_dir in
2363 *\ * | *\ *)
2364 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2365 *)
2366 install_sh="\${SHELL} $am_aux_dir/install-sh"
2367 esac
2368 fi
2369
2370 # Installed binaries are usually stripped using 'strip' when the user
2371 # run "make install-strip". However 'strip' might not be the right
2372 # tool to use in cross-compilation environments, therefore Automake
2373 # will honor the 'STRIP' environment variable to overrule this program.
2374 if test "$cross_compiling" != no; then
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}strip; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_STRIP+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test -n "$STRIP"; then
2384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2388 do
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2396 fi
2397 done
2398 done
2399 IFS=$as_save_IFS
2400
2401 fi
2402 fi
2403 STRIP=$ac_cv_prog_STRIP
2404 if test -n "$STRIP"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2406 $as_echo "$STRIP" >&6; }
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2410 fi
2411
2412
2413 fi
2414 if test -z "$ac_cv_prog_STRIP"; then
2415 ac_ct_STRIP=$STRIP
2416 # Extract the first word of "strip", so it can be a program name with args.
2417 set dummy strip; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$ac_ct_STRIP"; then
2424 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_ac_ct_STRIP="strip"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2444 if test -n "$ac_ct_STRIP"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2446 $as_echo "$ac_ct_STRIP" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452 if test "x$ac_ct_STRIP" = x; then
2453 STRIP=":"
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461 STRIP=$ac_ct_STRIP
2462 fi
2463 else
2464 STRIP="$ac_cv_prog_STRIP"
2465 fi
2466
2467 fi
2468 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2469
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2471 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2472 if test -z "$MKDIR_P"; then
2473 if ${ac_cv_path_mkdir+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_prog in mkdir gmkdir; do
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2483 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2485 'mkdir (GNU coreutils) '* | \
2486 'mkdir (coreutils) '* | \
2487 'mkdir (fileutils) '4.1*)
2488 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2489 break 3;;
2490 esac
2491 done
2492 done
2493 done
2494 IFS=$as_save_IFS
2495
2496 fi
2497
2498 test -d ./--version && rmdir ./--version
2499 if test "${ac_cv_path_mkdir+set}" = set; then
2500 MKDIR_P="$ac_cv_path_mkdir -p"
2501 else
2502 # As a last resort, use the slow shell script. Don't cache a
2503 # value for MKDIR_P within a source directory, because that will
2504 # break other packages using the cache if that directory is
2505 # removed, or if the value is a relative name.
2506 MKDIR_P="$ac_install_sh -d"
2507 fi
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2510 $as_echo "$MKDIR_P" >&6; }
2511
2512 for ac_prog in gawk mawk nawk awk
2513 do
2514 # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_AWK+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$AWK"; then
2522 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531 ac_cv_prog_AWK="$ac_prog"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 AWK=$ac_cv_prog_AWK
2542 if test -n "$AWK"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2544 $as_echo "$AWK" >&6; }
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550
2551 test -n "$AWK" && break
2552 done
2553
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2555 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556 set x ${MAKE-make}
2557 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2558 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 cat >conftest.make <<\_ACEOF
2562 SHELL = /bin/sh
2563 all:
2564 @echo '@@@%%%=$(MAKE)=@@@%%%'
2565 _ACEOF
2566 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2567 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568 *@@@%%%=?*=@@@%%%*)
2569 eval ac_cv_prog_make_${ac_make}_set=yes;;
2570 *)
2571 eval ac_cv_prog_make_${ac_make}_set=no;;
2572 esac
2573 rm -f conftest.make
2574 fi
2575 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2577 $as_echo "yes" >&6; }
2578 SET_MAKE=
2579 else
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581 $as_echo "no" >&6; }
2582 SET_MAKE="MAKE=${MAKE-make}"
2583 fi
2584
2585 rm -rf .tst 2>/dev/null
2586 mkdir .tst 2>/dev/null
2587 if test -d .tst; then
2588 am__leading_dot=.
2589 else
2590 am__leading_dot=_
2591 fi
2592 rmdir .tst 2>/dev/null
2593
2594 # Check whether --enable-silent-rules was given.
2595 if test "${enable_silent_rules+set}" = set; then :
2596 enableval=$enable_silent_rules;
2597 fi
2598
2599 case $enable_silent_rules in # (((
2600 yes) AM_DEFAULT_VERBOSITY=0;;
2601 no) AM_DEFAULT_VERBOSITY=1;;
2602 *) AM_DEFAULT_VERBOSITY=1;;
2603 esac
2604 am_make=${MAKE-make}
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2606 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2607 if ${am_cv_make_support_nested_variables+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if $as_echo 'TRUE=$(BAR$(V))
2611 BAR0=false
2612 BAR1=true
2613 V=1
2614 am__doit:
2615 @$(TRUE)
2616 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2617 am_cv_make_support_nested_variables=yes
2618 else
2619 am_cv_make_support_nested_variables=no
2620 fi
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2623 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2624 if test $am_cv_make_support_nested_variables = yes; then
2625 AM_V='$(V)'
2626 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2627 else
2628 AM_V=$AM_DEFAULT_VERBOSITY
2629 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2630 fi
2631 AM_BACKSLASH='\'
2632
2633 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2634 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2635 # is not polluted with repeated "-I."
2636 am__isrc=' -I$(srcdir)'
2637 # test to see if srcdir already configured
2638 if test -f $srcdir/config.status; then
2639 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2640 fi
2641 fi
2642
2643 # test whether we have cygpath
2644 if test -z "$CYGPATH_W"; then
2645 if (cygpath --version) >/dev/null 2>/dev/null; then
2646 CYGPATH_W='cygpath -w'
2647 else
2648 CYGPATH_W=echo
2649 fi
2650 fi
2651
2652
2653 # Define the identity of the package.
2654 PACKAGE='hopm'
2655 VERSION='TRUNK'
2656
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE "$PACKAGE"
2660 _ACEOF
2661
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define VERSION "$VERSION"
2665 _ACEOF
2666
2667 # Some tools Automake needs.
2668
2669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2670
2671
2672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2673
2674
2675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2676
2677
2678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2679
2680
2681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2682
2683 # For better backward compatibility. To be removed once Automake 1.9.x
2684 # dies out for good. For more background, see:
2685 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2686 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2687 mkdir_p='$(MKDIR_P)'
2688
2689 # We need awk for the "check" target (and possibly the TAP driver). The
2690 # system "awk" is bad on some platforms.
2691 # Always define AMTAR for backward compatibility. Yes, it's still used
2692 # in the wild :-( We should find a proper way to deprecate it ...
2693 AMTAR='$${TAR-tar}'
2694
2695
2696 # We'll loop over all known methods to create a tar archive until one works.
2697 _am_tools='gnutar pax cpio none'
2698
2699 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2700
2701
2702
2703
2704
2705
2706 # POSIX will say in a future version that running "rm -f" with no argument
2707 # is OK; and we want to be able to make that assumption in our Makefile
2708 # recipes. So use an aggressive probe to check that the usage we want is
2709 # actually supported "in the wild" to an acceptable degree.
2710 # See automake bug#10828.
2711 # To make any issue more visible, cause the running configure to be aborted
2712 # by default if the 'rm' program in use doesn't match our expectations; the
2713 # user can still override this though.
2714 if rm -f && rm -fr && rm -rf; then : OK; else
2715 cat >&2 <<'END'
2716 Oops!
2717
2718 Your 'rm' program seems unable to run without file operands specified
2719 on the command line, even when the '-f' option is present. This is contrary
2720 to the behaviour of most rm programs out there, and not conforming with
2721 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2722
2723 Please tell bug-automake@gnu.org about your system, including the value
2724 of your $PATH and any error possibly output before this message. This
2725 can help us improve future automake versions.
2726
2727 END
2728 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2729 echo 'Configuration will proceed anyway, since you have set the' >&2
2730 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2731 echo >&2
2732 else
2733 cat >&2 <<'END'
2734 Aborting the configuration process, to ensure you take notice of the issue.
2735
2736 You can download and install GNU coreutils to get an 'rm' implementation
2737 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2738
2739 If you want to complete the configuration process using your problematic
2740 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2741 to "yes", and re-run configure.
2742
2743 END
2744 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2745 fi
2746 fi
2747
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2750 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2751 # Check whether --enable-maintainer-mode was given.
2752 if test "${enable_maintainer_mode+set}" = set; then :
2753 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2754 else
2755 USE_MAINTAINER_MODE=no
2756 fi
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2759 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2760 if test $USE_MAINTAINER_MODE = yes; then
2761 MAINTAINER_MODE_TRUE=
2762 MAINTAINER_MODE_FALSE='#'
2763 else
2764 MAINTAINER_MODE_TRUE='#'
2765 MAINTAINER_MODE_FALSE=
2766 fi
2767
2768 MAINT=$MAINTAINER_MODE_TRUE
2769
2770
2771
2772 ac_config_headers="$ac_config_headers src/setup.h"
2773
2774
2775
2776 DEPDIR="${am__leading_dot}deps"
2777
2778 ac_config_commands="$ac_config_commands depfiles"
2779
2780
2781 am_make=${MAKE-make}
2782 cat > confinc << 'END'
2783 am__doit:
2784 @echo this is the am__doit target
2785 .PHONY: am__doit
2786 END
2787 # If we don't find an include directive, just comment out the code.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2789 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2790 am__include="#"
2791 am__quote=
2792 _am_result=none
2793 # First try GNU make style include.
2794 echo "include confinc" > confmf
2795 # Ignore all kinds of additional output from 'make'.
2796 case `$am_make -s -f confmf 2> /dev/null` in #(
2797 *the\ am__doit\ target*)
2798 am__include=include
2799 am__quote=
2800 _am_result=GNU
2801 ;;
2802 esac
2803 # Now try BSD make style include.
2804 if test "$am__include" = "#"; then
2805 echo '.include "confinc"' > confmf
2806 case `$am_make -s -f confmf 2> /dev/null` in #(
2807 *the\ am__doit\ target*)
2808 am__include=.include
2809 am__quote="\""
2810 _am_result=BSD
2811 ;;
2812 esac
2813 fi
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2817 $as_echo "$_am_result" >&6; }
2818 rm -f confinc confmf
2819
2820 # Check whether --enable-dependency-tracking was given.
2821 if test "${enable_dependency_tracking+set}" = set; then :
2822 enableval=$enable_dependency_tracking;
2823 fi
2824
2825 if test "x$enable_dependency_tracking" != xno; then
2826 am_depcomp="$ac_aux_dir/depcomp"
2827 AMDEPBACKSLASH='\'
2828 am__nodep='_no'
2829 fi
2830 if test "x$enable_dependency_tracking" != xno; then
2831 AMDEP_TRUE=
2832 AMDEP_FALSE='#'
2833 else
2834 AMDEP_TRUE='#'
2835 AMDEP_FALSE=
2836 fi
2837
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if ${ac_cv_prog_CC+:} false; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_CC"; then
2884 ac_ct_CC=$CC
2885 # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test -n "$ac_ct_CC"; then
2893 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898 IFS=$as_save_IFS
2899 test -z "$as_dir" && as_dir=.
2900 for ac_exec_ext in '' $ac_executable_extensions; do
2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902 ac_cv_prog_ac_ct_CC="gcc"
2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 break 2
2905 fi
2906 done
2907 done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921 if test "x$ac_ct_CC" = x; then
2922 CC=""
2923 else
2924 case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930 CC=$ac_ct_CC
2931 fi
2932 else
2933 CC="$ac_cv_prog_CC"
2934 fi
2935
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2944 else
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951 IFS=$as_save_IFS
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_CC="${ac_tool_prefix}cc"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 break 2
2958 fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 fi
2977 if test -z "$CC"; then
2978 # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if ${ac_cv_prog_CC+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988 ac_prog_rejected=no
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992 IFS=$as_save_IFS
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997 ac_prog_rejected=yes
2998 continue
2999 fi
3000 ac_cv_prog_CC="cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 break 2
3003 fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 if test $ac_prog_rejected = yes; then
3009 # We found a bogon in the path, so make sure we never use it.
3010 set dummy $ac_cv_prog_CC
3011 shift
3012 if test $# != 0; then
3013 # We chose a different compiler from the bogus one.
3014 # However, it has the same basename, so the bogon will be chosen
3015 # first if we set CC to just the basename; use the full file name.
3016 shift
3017 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 fi
3019 fi
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$CC"; then
3034 if test -n "$ac_tool_prefix"; then
3035 for ac_prog in cl.exe
3036 do
3037 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if ${ac_cv_prog_CC+:} false; then :
3042 $as_echo_n "(cached) " >&6
3043 else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3054 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 break 2
3057 fi
3058 done
3059 done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074 test -n "$CC" && break
3075 done
3076 fi
3077 if test -z "$CC"; then
3078 ac_ct_CC=$CC
3079 for ac_prog in cl.exe
3080 do
3081 # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_ac_ct_CC="$ac_prog"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 test -n "$ac_ct_CC" && break
3119 done
3120
3121 if test "x$ac_ct_CC" = x; then
3122 CC=""
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 CC=$ac_ct_CC
3131 fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error $? "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details" "$LINENO" 5; }
3141
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144 set X $ac_compile
3145 ac_compiler=$2
3146 for ac_option in --version -v -V -qversion; do
3147 { { ac_try="$ac_compiler $ac_option >&5"
3148 case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3155 ac_status=$?
3156 if test -s conftest.err; then
3157 sed '10a\
3158 ... rest of stderr output deleted ...
3159 10q' conftest.err >conftest.er1
3160 cat conftest.er1 >&5
3161 fi
3162 rm -f conftest.er1 conftest.err
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }
3165 done
3166
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3169
3170 int
3171 main ()
3172 {
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3182 # of exeext.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3184 $as_echo_n "checking whether the C compiler works... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
3190 ac_rmfiles=
3191 for ac_file in $ac_files
3192 do
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196 esac
3197 done
3198 rm -f $ac_rmfiles
3199
3200 if { { ac_try="$ac_link_default"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_link_default") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3215 # Autoconf.
3216 for ac_file in $ac_files ''
3217 do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3221 ;;
3222 [ab].out )
3223 # We found the default executable, but exeext='' is most
3224 # certainly right.
3225 break;;
3226 *.* )
3227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3228 then :; else
3229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230 fi
3231 # We set ac_cv_exeext here because the later test for it is not
3232 # safe: cross compilers may not add the suffix if given an `-o'
3233 # argument, so we may need to know it at that point already.
3234 # Even if this section looks crufty: it has the advantage of
3235 # actually working.
3236 break;;
3237 * )
3238 break;;
3239 esac
3240 done
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
3243 else
3244 ac_file=''
3245 fi
3246 if test -z "$ac_file"; then :
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error 77 "C compiler cannot create executables
3255 See \`config.log' for more details" "$LINENO" 5; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3261 $as_echo_n "checking for C compiler default output file name... " >&6; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3263 $as_echo "$ac_file" >&6; }
3264 ac_exeext=$ac_cv_exeext
3265
3266 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3267 ac_clean_files=$ac_clean_files_save
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3269 $as_echo_n "checking for suffix of executables... " >&6; }
3270 if { { ac_try="$ac_link"
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") 2>&5
3278 ac_status=$?
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }; then :
3281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3283 # work properly (i.e., refer to `conftest.exe'), while it won't with
3284 # `rm'.
3285 for ac_file in conftest.exe conftest conftest.*; do
3286 test -f "$ac_file" || continue
3287 case $ac_file in
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 break;;
3291 * ) break;;
3292 esac
3293 done
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details" "$LINENO" 5; }
3299 fi
3300 rm -f conftest conftest$ac_cv_exeext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3302 $as_echo "$ac_cv_exeext" >&6; }
3303
3304 rm -f conftest.$ac_ext
3305 EXEEXT=$ac_cv_exeext
3306 ac_exeext=$EXEEXT
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309 #include <stdio.h>
3310 int
3311 main ()
3312 {
3313 FILE *f = fopen ("conftest.out", "w");
3314 return ferror (f) || fclose (f) != 0;
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 ac_clean_files="$ac_clean_files conftest.out"
3321 # Check that the compiler produces executables we can run. If not, either
3322 # the compiler is broken, or we cross compile.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3324 $as_echo_n "checking whether we are cross compiling... " >&6; }
3325 if test "$cross_compiling" != yes; then
3326 { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 if { ac_try='./conftest$ac_cv_exeext'
3338 { { case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_try") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; }; then
3348 cross_compiling=no
3349 else
3350 if test "$cross_compiling" = maybe; then
3351 cross_compiling=yes
3352 else
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error $? "cannot run C compiled programs.
3356 If you meant to cross compile, use \`--host'.
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 fi
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3362 $as_echo "$cross_compiling" >&6; }
3363
3364 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3365 ac_clean_files=$ac_clean_files_save
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3367 $as_echo_n "checking for suffix of object files... " >&6; }
3368 if ${ac_cv_objext+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main ()
3376 {
3377
3378 ;
3379 return 0;
3380 }
3381 _ACEOF
3382 rm -f conftest.o conftest.obj
3383 if { { ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_compile") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 for ac_file in conftest.o conftest.obj conftest.*; do
3395 test -f "$ac_file" || continue;
3396 case $ac_file in
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399 break;;
3400 esac
3401 done
3402 else
3403 $as_echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of object files: cannot compile
3409 See \`config.log' for more details" "$LINENO" 5; }
3410 fi
3411 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3414 $as_echo "$ac_cv_objext" >&6; }
3415 OBJEXT=$ac_cv_objext
3416 ac_objext=$OBJEXT
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3418 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3419 if ${ac_cv_c_compiler_gnu+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main ()
3427 {
3428 #ifndef __GNUC__
3429 choke me
3430 #endif
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"; then :
3437 ac_compiler_gnu=yes
3438 else
3439 ac_compiler_gnu=no
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
3444 fi
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3446 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3447 if test $ac_compiler_gnu = yes; then
3448 GCC=yes
3449 else
3450 GCC=
3451 fi
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3455 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3456 if ${ac_cv_prog_cc_g+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 ac_save_c_werror_flag=$ac_c_werror_flag
3460 ac_c_werror_flag=yes
3461 ac_cv_prog_cc_g=no
3462 CFLAGS="-g"
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_g=yes
3476 else
3477 CFLAGS=""
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3480
3481 int
3482 main ()
3483 {
3484
3485 ;
3486 return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_compile "$LINENO"; then :
3490
3491 else
3492 ac_c_werror_flag=$ac_save_c_werror_flag
3493 CFLAGS="-g"
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 if ac_fn_c_try_compile "$LINENO"; then :
3506 ac_cv_prog_cc_g=yes
3507 fi
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 ac_c_werror_flag=$ac_save_c_werror_flag
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3516 $as_echo "$ac_cv_prog_cc_g" >&6; }
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS=$ac_save_CFLAGS
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3521 CFLAGS="-g -O2"
3522 else
3523 CFLAGS="-g"
3524 fi
3525 else
3526 if test "$GCC" = yes; then
3527 CFLAGS="-O2"
3528 else
3529 CFLAGS=
3530 fi
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3533 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3534 if ${ac_cv_prog_cc_c89+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_cv_prog_cc_c89=no
3538 ac_save_CC=$CC
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3541 #include <stdarg.h>
3542 #include <stdio.h>
3543 struct stat;
3544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545 struct buf { int x; };
3546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547 static char *e (p, i)
3548 char **p;
3549 int i;
3550 {
3551 return p[i];
3552 }
3553 static char *f (char * (*g) (char **, int), char **p, ...)
3554 {
3555 char *s;
3556 va_list v;
3557 va_start (v,p);
3558 s = g (p, va_arg (v,int));
3559 va_end (v);
3560 return s;
3561 }
3562
3563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std. */
3570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571
3572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3573 inside strings and character constants. */
3574 #define FOO(x) 'x'
3575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3576
3577 int test (int i, double x);
3578 struct s1 {int (*f) (int a);};
3579 struct s2 {int (*f) (double a);};
3580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 int argc;
3582 char **argv;
3583 int
3584 main ()
3585 {
3586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3592 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593 do
3594 CC="$ac_save_CC $ac_arg"
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603
3604 fi
3605 # AC_CACHE_VAL
3606 case "x$ac_cv_prog_cc_c89" in
3607 x)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3609 $as_echo "none needed" >&6; } ;;
3610 xno)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612 $as_echo "unsupported" >&6; } ;;
3613 *)
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3616 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3617 esac
3618 if test "x$ac_cv_prog_cc_c89" != xno; then :
3619
3620 fi
3621
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3634 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3635 if ${am_cv_prog_cc_c_o+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639 /* end confdefs.h. */
3640
3641 int
3642 main ()
3643 {
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 # Make sure it works both with $CC and with simple cc.
3650 # Following AC_PROG_CC_C_O, we do the test twice because some
3651 # compilers refuse to overwrite an existing .o file with -o,
3652 # though they will create one.
3653 am_cv_prog_cc_c_o=yes
3654 for am_i in 1 2; do
3655 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3656 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3657 ac_status=$?
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } \
3660 && test -f conftest2.$ac_objext; then
3661 : OK
3662 else
3663 am_cv_prog_cc_c_o=no
3664 break
3665 fi
3666 done
3667 rm -f core conftest*
3668 unset am_i
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3671 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3672 if test "$am_cv_prog_cc_c_o" != yes; then
3673 # Losing compiler, so override with the script.
3674 # FIXME: It is wrong to rewrite CC.
3675 # But if we don't then we get into trouble of one sort or another.
3676 # A longer-term fix would be to have automake use am__CC in this case,
3677 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3678 CC="$am_aux_dir/compile $CC"
3679 fi
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3685
3686
3687 depcc="$CC" am_compiler_list=
3688
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3690 $as_echo_n "checking dependency style of $depcc... " >&6; }
3691 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3695 # We make a subdir and do the tests there. Otherwise we can end up
3696 # making bogus files that we don't know about and never remove. For
3697 # instance it was reported that on HP-UX the gcc test will end up
3698 # making a dummy file named 'D' -- because '-MD' means "put the output
3699 # in D".
3700 rm -rf conftest.dir
3701 mkdir conftest.dir
3702 # Copy depcomp to subdir because otherwise we won't find it if we're
3703 # using a relative directory.
3704 cp "$am_depcomp" conftest.dir
3705 cd conftest.dir
3706 # We will build objects and dependencies in a subdirectory because
3707 # it helps to detect inapplicable dependency modes. For instance
3708 # both Tru64's cc and ICC support -MD to output dependencies as a
3709 # side effect of compilation, but ICC will put the dependencies in
3710 # the current directory while Tru64 will put them in the object
3711 # directory.
3712 mkdir sub
3713
3714 am_cv_CC_dependencies_compiler_type=none
3715 if test "$am_compiler_list" = ""; then
3716 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3717 fi
3718 am__universal=false
3719 case " $depcc " in #(
3720 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3721 esac
3722
3723 for depmode in $am_compiler_list; do
3724 # Setup a source with many dependencies, because some compilers
3725 # like to wrap large dependency lists on column 80 (with \), and
3726 # we should not choose a depcomp mode which is confused by this.
3727 #
3728 # We need to recreate these files for each test, as the compiler may
3729 # overwrite some of them when testing with obscure command lines.
3730 # This happens at least with the AIX C compiler.
3731 : > sub/conftest.c
3732 for i in 1 2 3 4 5 6; do
3733 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3734 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3735 # Solaris 10 /bin/sh.
3736 echo '/* dummy */' > sub/conftst$i.h
3737 done
3738 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3739
3740 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3741 # mode. It turns out that the SunPro C++ compiler does not properly
3742 # handle '-M -o', and we need to detect this. Also, some Intel
3743 # versions had trouble with output in subdirs.
3744 am__obj=sub/conftest.${OBJEXT-o}
3745 am__minus_obj="-o $am__obj"
3746 case $depmode in
3747 gcc)
3748 # This depmode causes a compiler race in universal mode.
3749 test "$am__universal" = false || continue
3750 ;;
3751 nosideeffect)
3752 # After this tag, mechanisms are not by side-effect, so they'll
3753 # only be used when explicitly requested.
3754 if test "x$enable_dependency_tracking" = xyes; then
3755 continue
3756 else
3757 break
3758 fi
3759 ;;
3760 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3761 # This compiler won't grok '-c -o', but also, the minuso test has
3762 # not run yet. These depmodes are late enough in the game, and
3763 # so weak that their functioning should not be impacted.
3764 am__obj=conftest.${OBJEXT-o}
3765 am__minus_obj=
3766 ;;
3767 none) break ;;
3768 esac
3769 if depmode=$depmode \
3770 source=sub/conftest.c object=$am__obj \
3771 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3772 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3773 >/dev/null 2>conftest.err &&
3774 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3775 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3776 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3777 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3778 # icc doesn't choke on unknown options, it will just issue warnings
3779 # or remarks (even with -Werror). So we grep stderr for any message
3780 # that says an option was ignored or not supported.
3781 # When given -MP, icc 7.0 and 7.1 complain thusly:
3782 # icc: Command line warning: ignoring option '-M'; no argument required
3783 # The diagnosis changed in icc 8.0:
3784 # icc: Command line remark: option '-MP' not supported
3785 if (grep 'ignoring option' conftest.err ||
3786 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3787 am_cv_CC_dependencies_compiler_type=$depmode
3788 break
3789 fi
3790 fi
3791 done
3792
3793 cd ..
3794 rm -rf conftest.dir
3795 else
3796 am_cv_CC_dependencies_compiler_type=none
3797 fi
3798
3799 fi
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3801 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3802 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3803
3804 if
3805 test "x$enable_dependency_tracking" != xno \
3806 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3807 am__fastdepCC_TRUE=
3808 am__fastdepCC_FALSE='#'
3809 else
3810 am__fastdepCC_TRUE='#'
3811 am__fastdepCC_FALSE=
3812 fi
3813
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3816 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3817 if ${ac_cv_prog_cc_c99+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 ac_cv_prog_cc_c99=no
3821 ac_save_CC=$CC
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3824 #include <stdarg.h>
3825 #include <stdbool.h>
3826 #include <stdlib.h>
3827 #include <wchar.h>
3828 #include <stdio.h>
3829
3830 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3831 #define debug(...) fprintf (stderr, __VA_ARGS__)
3832 #define showlist(...) puts (#__VA_ARGS__)
3833 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3834 static void
3835 test_varargs_macros (void)
3836 {
3837 int x = 1234;
3838 int y = 5678;
3839 debug ("Flag");
3840 debug ("X = %d\n", x);
3841 showlist (The first, second, and third items.);
3842 report (x>y, "x is %d but y is %d", x, y);
3843 }
3844
3845 // Check long long types.
3846 #define BIG64 18446744073709551615ull
3847 #define BIG32 4294967295ul
3848 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3849 #if !BIG_OK
3850 your preprocessor is broken;
3851 #endif
3852 #if BIG_OK
3853 #else
3854 your preprocessor is broken;
3855 #endif
3856 static long long int bignum = -9223372036854775807LL;
3857 static unsigned long long int ubignum = BIG64;
3858
3859 struct incomplete_array
3860 {
3861 int datasize;
3862 double data[];
3863 };
3864
3865 struct named_init {
3866 int number;
3867 const wchar_t *name;
3868 double average;
3869 };
3870
3871 typedef const char *ccp;
3872
3873 static inline int
3874 test_restrict (ccp restrict text)
3875 {
3876 // See if C++-style comments work.
3877 // Iterate through items via the restricted pointer.
3878 // Also check for declarations in for loops.
3879 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3880 continue;
3881 return 0;
3882 }
3883
3884 // Check varargs and va_copy.
3885 static void
3886 test_varargs (const char *format, ...)
3887 {
3888 va_list args;
3889 va_start (args, format);
3890 va_list args_copy;
3891 va_copy (args_copy, args);
3892
3893 const char *str;
3894 int number;
3895 float fnumber;
3896
3897 while (*format)
3898 {
3899 switch (*format++)
3900 {
3901 case 's': // string
3902 str = va_arg (args_copy, const char *);
3903 break;
3904 case 'd': // int
3905 number = va_arg (args_copy, int);
3906 break;
3907 case 'f': // float
3908 fnumber = va_arg (args_copy, double);
3909 break;
3910 default:
3911 break;
3912 }
3913 }
3914 va_end (args_copy);
3915 va_end (args);
3916 }
3917
3918 int
3919 main ()
3920 {
3921
3922 // Check bool.
3923 _Bool success = false;
3924
3925 // Check restrict.
3926 if (test_restrict ("String literal") == 0)
3927 success = true;
3928 char *restrict newvar = "Another string";
3929
3930 // Check varargs.
3931 test_varargs ("s, d' f .", "string", 65, 34.234);
3932 test_varargs_macros ();
3933
3934 // Check flexible array members.
3935 struct incomplete_array *ia =
3936 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3937 ia->datasize = 10;
3938 for (int i = 0; i < ia->datasize; ++i)
3939 ia->data[i] = i * 1.234;
3940
3941 // Check named initializers.
3942 struct named_init ni = {
3943 .number = 34,
3944 .name = L"Test wide string",
3945 .average = 543.34343,
3946 };
3947
3948 ni.number = 58;
3949
3950 int dynamic_array[ni.number];
3951 dynamic_array[ni.number - 1] = 543;
3952
3953 // work around unused variable warnings
3954 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3955 || dynamic_array[ni.number - 1] != 543);
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3962 do
3963 CC="$ac_save_CC $ac_arg"
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_prog_cc_c99=$ac_arg
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext
3968 test "x$ac_cv_prog_cc_c99" != "xno" && break
3969 done
3970 rm -f conftest.$ac_ext
3971 CC=$ac_save_CC
3972
3973 fi
3974 # AC_CACHE_VAL
3975 case "x$ac_cv_prog_cc_c99" in
3976 x)
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3978 $as_echo "none needed" >&6; } ;;
3979 xno)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3981 $as_echo "unsupported" >&6; } ;;
3982 *)
3983 CC="$CC $ac_cv_prog_cc_c99"
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3985 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3986 esac
3987 if test "x$ac_cv_prog_cc_c99" != xno; then :
3988
3989 fi
3990
3991
3992 if test "$ac_cv_prog_cc_c99" = "no"; then :
3993 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
3994 fi
3995 case `pwd` in
3996 *\ * | *\ *)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3999 esac
4000
4001
4002
4003 macro_version='2.4.4'
4004 macro_revision='2.4.4'
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 ltmain=$ac_aux_dir/ltmain.sh
4019
4020 # Make sure we can run config.sub.
4021 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4022 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4025 $as_echo_n "checking build system type... " >&6; }
4026 if ${ac_cv_build+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 ac_build_alias=$build_alias
4030 test "x$ac_build_alias" = x &&
4031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4032 test "x$ac_build_alias" = x &&
4033 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4035 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4039 $as_echo "$ac_cv_build" >&6; }
4040 case $ac_cv_build in
4041 *-*-*) ;;
4042 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4043 esac
4044 build=$ac_cv_build
4045 ac_save_IFS=$IFS; IFS='-'
4046 set x $ac_cv_build
4047 shift
4048 build_cpu=$1
4049 build_vendor=$2
4050 shift; shift
4051 # Remember, the first character of IFS is used to create $*,
4052 # except with old shells:
4053 build_os=$*
4054 IFS=$ac_save_IFS
4055 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4059 $as_echo_n "checking host system type... " >&6; }
4060 if ${ac_cv_host+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test "x$host_alias" = x; then
4064 ac_cv_host=$ac_cv_build
4065 else
4066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4067 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4068 fi
4069
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4072 $as_echo "$ac_cv_host" >&6; }
4073 case $ac_cv_host in
4074 *-*-*) ;;
4075 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4076 esac
4077 host=$ac_cv_host
4078 ac_save_IFS=$IFS; IFS='-'
4079 set x $ac_cv_host
4080 shift
4081 host_cpu=$1
4082 host_vendor=$2
4083 shift; shift
4084 # Remember, the first character of IFS is used to create $*,
4085 # except with old shells:
4086 host_os=$*
4087 IFS=$ac_save_IFS
4088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4089
4090
4091 # Backslashify metacharacters that are still active within
4092 # double-quoted strings.
4093 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4094
4095 # Same as above, but do not quote variable references.
4096 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4097
4098 # Sed substitution to delay expansion of an escaped shell variable in a
4099 # double_quote_subst'ed string.
4100 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4101
4102 # Sed substitution to delay expansion of an escaped single quote.
4103 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4104
4105 # Sed substitution to avoid accidental globbing in evaled expressions
4106 no_glob_subst='s/\*/\\\*/g'
4107
4108 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4110 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4113 $as_echo_n "checking how to print strings... " >&6; }
4114 # Test print first, because it will be a builtin if present.
4115 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4116 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4117 ECHO='print -r --'
4118 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4119 ECHO='printf %s\n'
4120 else
4121 # Use this function as a fallback that always works.
4122 func_fallback_echo ()
4123 {
4124 eval 'cat <<_LTECHO_EOF
4125 $1
4126 _LTECHO_EOF'
4127 }
4128 ECHO='func_fallback_echo'
4129 fi
4130
4131 # func_echo_all arg...
4132 # Invoke $ECHO with all args, space-separated.
4133 func_echo_all ()
4134 {
4135 $ECHO ""
4136 }
4137
4138 case $ECHO in
4139 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4140 $as_echo "printf" >&6; } ;;
4141 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4142 $as_echo "print -r" >&6; } ;;
4143 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4144 $as_echo "cat" >&6; } ;;
4145 esac
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4161 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4162 if ${ac_cv_path_SED+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4166 for ac_i in 1 2 3 4 5 6 7; do
4167 ac_script="$ac_script$as_nl$ac_script"
4168 done
4169 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4170 { ac_script=; unset ac_script;}
4171 if test -z "$SED"; then
4172 ac_path_SED_found=false
4173 # Loop through the user's path and test for each of PROGNAME-LIST
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_prog in sed gsed; do
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4182 as_fn_executable_p "$ac_path_SED" || continue
4183 # Check for GNU ac_path_SED and select it if it is found.
4184 # Check for GNU $ac_path_SED
4185 case `"$ac_path_SED" --version 2>&1` in
4186 *GNU*)
4187 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4188 *)
4189 ac_count=0
4190 $as_echo_n 0123456789 >"conftest.in"
4191 while :
4192 do
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 $as_echo '' >> "conftest.nl"
4197 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4199 as_fn_arith $ac_count + 1 && ac_count=$as_val
4200 if test $ac_count -gt ${ac_path_SED_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_SED="$ac_path_SED"
4203 ac_path_SED_max=$ac_count
4204 fi
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4207 done
4208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4209 esac
4210
4211 $ac_path_SED_found && break 3
4212 done
4213 done
4214 done
4215 IFS=$as_save_IFS
4216 if test -z "$ac_cv_path_SED"; then
4217 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4218 fi
4219 else
4220 ac_cv_path_SED=$SED
4221 fi
4222
4223 fi
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4225 $as_echo "$ac_cv_path_SED" >&6; }
4226 SED="$ac_cv_path_SED"
4227 rm -f conftest.sed
4228
4229 test -z "$SED" && SED=sed
4230 Xsed="$SED -e 1s/^X//"
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4244 if ${ac_cv_path_GREP+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -z "$GREP"; then
4248 ac_path_GREP_found=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4252 do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_prog in grep ggrep; do
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4258 as_fn_executable_p "$ac_path_GREP" || continue
4259 # Check for GNU ac_path_GREP and select it if it is found.
4260 # Check for GNU $ac_path_GREP
4261 case `"$ac_path_GREP" --version 2>&1` in
4262 *GNU*)
4263 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4264 *)
4265 ac_count=0
4266 $as_echo_n 0123456789 >"conftest.in"
4267 while :
4268 do
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo 'GREP' >> "conftest.nl"
4273 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275 as_fn_arith $ac_count + 1 && ac_count=$as_val
4276 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_GREP="$ac_path_GREP"
4279 ac_path_GREP_max=$ac_count
4280 fi
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4283 done
4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4285 esac
4286
4287 $ac_path_GREP_found && break 3
4288 done
4289 done
4290 done
4291 IFS=$as_save_IFS
4292 if test -z "$ac_cv_path_GREP"; then
4293 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4294 fi
4295 else
4296 ac_cv_path_GREP=$GREP
4297 fi
4298
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4301 $as_echo "$ac_cv_path_GREP" >&6; }
4302 GREP="$ac_cv_path_GREP"
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4306 $as_echo_n "checking for egrep... " >&6; }
4307 if ${ac_cv_path_EGREP+:} false; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4311 then ac_cv_path_EGREP="$GREP -E"
4312 else
4313 if test -z "$EGREP"; then
4314 ac_path_EGREP_found=false
4315 # Loop through the user's path and test for each of PROGNAME-LIST
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_prog in egrep; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4324 as_fn_executable_p "$ac_path_EGREP" || continue
4325 # Check for GNU ac_path_EGREP and select it if it is found.
4326 # Check for GNU $ac_path_EGREP
4327 case `"$ac_path_EGREP" --version 2>&1` in
4328 *GNU*)
4329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4330 *)
4331 ac_count=0
4332 $as_echo_n 0123456789 >"conftest.in"
4333 while :
4334 do
4335 cat "conftest.in" "conftest.in" >"conftest.tmp"
4336 mv "conftest.tmp" "conftest.in"
4337 cp "conftest.in" "conftest.nl"
4338 $as_echo 'EGREP' >> "conftest.nl"
4339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4341 as_fn_arith $ac_count + 1 && ac_count=$as_val
4342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4343 # Best one so far, save it but keep looking for a better one
4344 ac_cv_path_EGREP="$ac_path_EGREP"
4345 ac_path_EGREP_max=$ac_count
4346 fi
4347 # 10*(2^10) chars as input seems more than enough
4348 test $ac_count -gt 10 && break
4349 done
4350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4351 esac
4352
4353 $ac_path_EGREP_found && break 3
4354 done
4355 done
4356 done
4357 IFS=$as_save_IFS
4358 if test -z "$ac_cv_path_EGREP"; then
4359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4360 fi
4361 else
4362 ac_cv_path_EGREP=$EGREP
4363 fi
4364
4365 fi
4366 fi
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4368 $as_echo "$ac_cv_path_EGREP" >&6; }
4369 EGREP="$ac_cv_path_EGREP"
4370
4371
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4373 $as_echo_n "checking for fgrep... " >&6; }
4374 if ${ac_cv_path_FGREP+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4378 then ac_cv_path_FGREP="$GREP -F"
4379 else
4380 if test -z "$FGREP"; then
4381 ac_path_FGREP_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in fgrep; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4391 as_fn_executable_p "$ac_path_FGREP" || continue
4392 # Check for GNU ac_path_FGREP and select it if it is found.
4393 # Check for GNU $ac_path_FGREP
4394 case `"$ac_path_FGREP" --version 2>&1` in
4395 *GNU*)
4396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4397 *)
4398 ac_count=0
4399 $as_echo_n 0123456789 >"conftest.in"
4400 while :
4401 do
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo 'FGREP' >> "conftest.nl"
4406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_FGREP="$ac_path_FGREP"
4412 ac_path_FGREP_max=$ac_count
4413 fi
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4416 done
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4418 esac
4419
4420 $ac_path_FGREP_found && break 3
4421 done
4422 done
4423 done
4424 IFS=$as_save_IFS
4425 if test -z "$ac_cv_path_FGREP"; then
4426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4427 fi
4428 else
4429 ac_cv_path_FGREP=$FGREP
4430 fi
4431
4432 fi
4433 fi
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4435 $as_echo "$ac_cv_path_FGREP" >&6; }
4436 FGREP="$ac_cv_path_FGREP"
4437
4438
4439 test -z "$GREP" && GREP=grep
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 # Check whether --with-gnu-ld was given.
4460 if test "${with_gnu_ld+set}" = set; then :
4461 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4462 else
4463 with_gnu_ld=no
4464 fi
4465
4466 ac_prog=ld
4467 if test yes = "$GCC"; then
4468 # Check if gcc -print-prog-name=ld gives a path.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4470 $as_echo_n "checking for ld used by $CC... " >&6; }
4471 case $host in
4472 *-*-mingw*)
4473 # gcc leaves a trailing carriage return, which upsets mingw
4474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4475 *)
4476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4477 esac
4478 case $ac_prog in
4479 # Accept absolute paths.
4480 [\\/]* | ?:[\\/]*)
4481 re_direlt='/[^/][^/]*/\.\./'
4482 # Canonicalize the pathname of ld
4483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4486 done
4487 test -z "$LD" && LD=$ac_prog
4488 ;;
4489 "")
4490 # If it fails, then pretend we aren't using GCC.
4491 ac_prog=ld
4492 ;;
4493 *)
4494 # If it is relative, then search for the first ld in PATH.
4495 with_gnu_ld=unknown
4496 ;;
4497 esac
4498 elif test yes = "$with_gnu_ld"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4500 $as_echo_n "checking for GNU ld... " >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4503 $as_echo_n "checking for non-GNU ld... " >&6; }
4504 fi
4505 if ${lt_cv_path_LD+:} false; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -z "$LD"; then
4509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4510 for ac_dir in $PATH; do
4511 IFS=$lt_save_ifs
4512 test -z "$ac_dir" && ac_dir=.
4513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4514 lt_cv_path_LD=$ac_dir/$ac_prog
4515 # Check to see if the program is GNU ld. I'd rather use --version,
4516 # but apparently some variants of GNU ld only accept -v.
4517 # Break only if it was the GNU/non-GNU ld that we prefer.
4518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4519 *GNU* | *'with BFD'*)
4520 test no != "$with_gnu_ld" && break
4521 ;;
4522 *)
4523 test yes != "$with_gnu_ld" && break
4524 ;;
4525 esac
4526 fi
4527 done
4528 IFS=$lt_save_ifs
4529 else
4530 lt_cv_path_LD=$LD # Let the user override the test with a path.
4531 fi
4532 fi
4533
4534 LD=$lt_cv_path_LD
4535 if test -n "$LD"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4537 $as_echo "$LD" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4544 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4545 if ${lt_cv_prog_gnu_ld+:} false; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4549 case `$LD -v 2>&1 </dev/null` in
4550 *GNU* | *'with BFD'*)
4551 lt_cv_prog_gnu_ld=yes
4552 ;;
4553 *)
4554 lt_cv_prog_gnu_ld=no
4555 ;;
4556 esac
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4560 with_gnu_ld=$lt_cv_prog_gnu_ld
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4571 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4572 if ${lt_cv_path_NM+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$NM"; then
4576 # Let the user override the test.
4577 lt_cv_path_NM=$NM
4578 else
4579 lt_nm_to_check=${ac_tool_prefix}nm
4580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4581 lt_nm_to_check="$lt_nm_to_check nm"
4582 fi
4583 for lt_tmp_nm in $lt_nm_to_check; do
4584 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4586 IFS=$lt_save_ifs
4587 test -z "$ac_dir" && ac_dir=.
4588 tmp_nm=$ac_dir/$lt_tmp_nm
4589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4590 # Check to see if the nm accepts a BSD-compat flag.
4591 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4592 # nm: unknown option "B" ignored
4593 # Tru64's nm complains that /dev/null is an invalid object file
4594 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4595 case $build_os in
4596 mingw*) lt_bad_file=conftest.nm/nofile ;;
4597 *) lt_bad_file=/dev/null ;;
4598 esac
4599 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4600 *$lt_bad_file* | *'Invalid file or object type'*)
4601 lt_cv_path_NM="$tmp_nm -B"
4602 break 2
4603 ;;
4604 *)
4605 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4606 */dev/null*)
4607 lt_cv_path_NM="$tmp_nm -p"
4608 break 2
4609 ;;
4610 *)
4611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4612 continue # so that we can try to find one that supports BSD flags
4613 ;;
4614 esac
4615 ;;
4616 esac
4617 fi
4618 done
4619 IFS=$lt_save_ifs
4620 done
4621 : ${lt_cv_path_NM=no}
4622 fi
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4625 $as_echo "$lt_cv_path_NM" >&6; }
4626 if test no != "$lt_cv_path_NM"; then
4627 NM=$lt_cv_path_NM
4628 else
4629 # Didn't find any BSD compatible name lister, look for dumpbin.
4630 if test -n "$DUMPBIN"; then :
4631 # Let the user override the test.
4632 else
4633 if test -n "$ac_tool_prefix"; then
4634 for ac_prog in dumpbin "link -dump"
4635 do
4636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if ${ac_cv_prog_DUMPBIN+:} false; then :
4641 $as_echo_n "(cached) " >&6
4642 else
4643 if test -n "$DUMPBIN"; then
4644 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657 done
4658 done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 DUMPBIN=$ac_cv_prog_DUMPBIN
4664 if test -n "$DUMPBIN"; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4666 $as_echo "$DUMPBIN" >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 test -n "$DUMPBIN" && break
4674 done
4675 fi
4676 if test -z "$DUMPBIN"; then
4677 ac_ct_DUMPBIN=$DUMPBIN
4678 for ac_prog in dumpbin "link -dump"
4679 do
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4685 $as_echo_n "(cached) " >&6
4686 else
4687 if test -n "$ac_ct_DUMPBIN"; then
4688 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 fi
4706 fi
4707 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4708 if test -n "$ac_ct_DUMPBIN"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4710 $as_echo "$ac_ct_DUMPBIN" >&6; }
4711 else
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 fi
4715
4716
4717 test -n "$ac_ct_DUMPBIN" && break
4718 done
4719
4720 if test "x$ac_ct_DUMPBIN" = x; then
4721 DUMPBIN=":"
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 DUMPBIN=$ac_ct_DUMPBIN
4730 fi
4731 fi
4732
4733 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4734 *COFF*)
4735 DUMPBIN="$DUMPBIN -symbols -headers"
4736 ;;
4737 *)
4738 DUMPBIN=:
4739 ;;
4740 esac
4741 fi
4742
4743 if test : != "$DUMPBIN"; then
4744 NM=$DUMPBIN
4745 fi
4746 fi
4747 test -z "$NM" && NM=nm
4748
4749
4750
4751
4752
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4755 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4756 if ${lt_cv_nm_interface+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 lt_cv_nm_interface="BSD nm"
4760 echo "int some_variable = 0;" > conftest.$ac_ext
4761 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4762 (eval "$ac_compile" 2>conftest.err)
4763 cat conftest.err >&5
4764 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4766 cat conftest.err >&5
4767 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4768 cat conftest.out >&5
4769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4770 lt_cv_nm_interface="MS dumpbin"
4771 fi
4772 rm -f conftest*
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4775 $as_echo "$lt_cv_nm_interface" >&6; }
4776
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4778 $as_echo_n "checking whether ln -s works... " >&6; }
4779 LN_S=$as_ln_s
4780 if test "$LN_S" = "ln -s"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782 $as_echo "yes" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4785 $as_echo "no, using $LN_S" >&6; }
4786 fi
4787
4788 # find the maximum length of command line arguments
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4790 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4791 if ${lt_cv_sys_max_cmd_len+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 i=0
4795 teststring=ABCD
4796
4797 case $build_os in
4798 msdosdjgpp*)
4799 # On DJGPP, this test can blow up pretty badly due to problems in libc
4800 # (any single argument exceeding 2000 bytes causes a buffer overrun
4801 # during glob expansion). Even if it were fixed, the result of this
4802 # check would be larger than it should be.
4803 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4804 ;;
4805
4806 gnu*)
4807 # Under GNU Hurd, this test is not required because there is
4808 # no limit to the length of command line arguments.
4809 # Libtool will interpret -1 as no limit whatsoever
4810 lt_cv_sys_max_cmd_len=-1;
4811 ;;
4812
4813 cygwin* | mingw* | cegcc*)
4814 # On Win9x/ME, this test blows up -- it succeeds, but takes
4815 # about 5 minutes as the teststring grows exponentially.
4816 # Worse, since 9x/ME are not pre-emptively multitasking,
4817 # you end up with a "frozen" computer, even though with patience
4818 # the test eventually succeeds (with a max line length of 256k).
4819 # Instead, let's just punt: use the minimum linelength reported by
4820 # all of the supported platforms: 8192 (on NT/2K/XP).
4821 lt_cv_sys_max_cmd_len=8192;
4822 ;;
4823
4824 mint*)
4825 # On MiNT this can take a long time and run out of memory.
4826 lt_cv_sys_max_cmd_len=8192;
4827 ;;
4828
4829 amigaos*)
4830 # On AmigaOS with pdksh, this test takes hours, literally.
4831 # So we just punt and use a minimum line length of 8192.
4832 lt_cv_sys_max_cmd_len=8192;
4833 ;;
4834
4835 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4836 # This has been around since 386BSD, at least. Likely further.
4837 if test -x /sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839 elif test -x /usr/sbin/sysctl; then
4840 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4841 else
4842 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4843 fi
4844 # And add a safety zone
4845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4847 ;;
4848
4849 interix*)
4850 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4851 lt_cv_sys_max_cmd_len=196608
4852 ;;
4853
4854 os2*)
4855 # The test takes a long time on OS/2.
4856 lt_cv_sys_max_cmd_len=8192
4857 ;;
4858
4859 osf*)
4860 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4861 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4862 # nice to cause kernel panics so lets avoid the loop below.
4863 # First set a reasonable default.
4864 lt_cv_sys_max_cmd_len=16384
4865 #
4866 if test -x /sbin/sysconfig; then
4867 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4868 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4869 esac
4870 fi
4871 ;;
4872 sco3.2v5*)
4873 lt_cv_sys_max_cmd_len=102400
4874 ;;
4875 sysv5* | sco5v6* | sysv4.2uw2*)
4876 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4877 if test -n "$kargmax"; then
4878 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4879 else
4880 lt_cv_sys_max_cmd_len=32768
4881 fi
4882 ;;
4883 *)
4884 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4885 if test -n "$lt_cv_sys_max_cmd_len" && \
4886 test undefined != "$lt_cv_sys_max_cmd_len"; then
4887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4889 else
4890 # Make teststring a little bigger before we do anything with it.
4891 # a 1K string should be a reasonable start.
4892 for i in 1 2 3 4 5 6 7 8; do
4893 teststring=$teststring$teststring
4894 done
4895 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4896 # If test is not a shell built-in, we'll probably end up computing a
4897 # maximum length that is only half of the actual maximum length, but
4898 # we can't tell.
4899 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4900 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4901 test 17 != "$i" # 1/2 MB should be enough
4902 do
4903 i=`expr $i + 1`
4904 teststring=$teststring$teststring
4905 done
4906 # Only check the string length outside the loop.
4907 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4908 teststring=
4909 # Add a significant safety factor because C++ compilers can tack on
4910 # massive amounts of additional arguments before passing them to the
4911 # linker. It appears as though 1/2 is a usable value.
4912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4913 fi
4914 ;;
4915 esac
4916
4917 fi
4918
4919 if test -n "$lt_cv_sys_max_cmd_len"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4921 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4924 $as_echo "none" >&6; }
4925 fi
4926 max_cmd_len=$lt_cv_sys_max_cmd_len
4927
4928
4929
4930
4931
4932
4933 : ${CP="cp -f"}
4934 : ${MV="mv -f"}
4935 : ${RM="rm -f"}
4936
4937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938 lt_unset=unset
4939 else
4940 lt_unset=false
4941 fi
4942
4943
4944
4945
4946
4947 # test EBCDIC or ASCII
4948 case `echo X|tr X '\101'` in
4949 A) # ASCII based system
4950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4951 lt_SP2NL='tr \040 \012'
4952 lt_NL2SP='tr \015\012 \040\040'
4953 ;;
4954 *) # EBCDIC based system
4955 lt_SP2NL='tr \100 \n'
4956 lt_NL2SP='tr \r\n \100\100'
4957 ;;
4958 esac
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4969 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4970 if ${lt_cv_to_host_file_cmd+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 case $host in
4974 *-*-mingw* )
4975 case $build in
4976 *-*-mingw* ) # actually msys
4977 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4978 ;;
4979 *-*-cygwin* )
4980 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4981 ;;
4982 * ) # otherwise, assume *nix
4983 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4984 ;;
4985 esac
4986 ;;
4987 *-*-cygwin* )
4988 case $build in
4989 *-*-mingw* ) # actually msys
4990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4991 ;;
4992 *-*-cygwin* )
4993 lt_cv_to_host_file_cmd=func_convert_file_noop
4994 ;;
4995 * ) # otherwise, assume *nix
4996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4997 ;;
4998 esac
4999 ;;
5000 * ) # unhandled hosts (and "normal" native builds)
5001 lt_cv_to_host_file_cmd=func_convert_file_noop
5002 ;;
5003 esac
5004
5005 fi
5006
5007 to_host_file_cmd=$lt_cv_to_host_file_cmd
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5009 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5010
5011
5012
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5016 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5017 if ${lt_cv_to_tool_file_cmd+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 #assume ordinary cross tools, or native build.
5021 lt_cv_to_tool_file_cmd=func_convert_file_noop
5022 case $host in
5023 *-*-mingw* )
5024 case $build in
5025 *-*-mingw* ) # actually msys
5026 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5027 ;;
5028 esac
5029 ;;
5030 esac
5031
5032 fi
5033
5034 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5036 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5043 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5044 if ${lt_cv_ld_reload_flag+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 lt_cv_ld_reload_flag='-r'
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5050 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5051 reload_flag=$lt_cv_ld_reload_flag
5052 case $reload_flag in
5053 "" | " "*) ;;
5054 *) reload_flag=" $reload_flag" ;;
5055 esac
5056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5057 case $host_os in
5058 cygwin* | mingw* | pw32* | cegcc*)
5059 if test yes != "$GCC"; then
5060 reload_cmds=false
5061 fi
5062 ;;
5063 darwin*)
5064 if test yes = "$GCC"; then
5065 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5066 else
5067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5068 fi
5069 ;;
5070 esac
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080 if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5082 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if ${ac_cv_prog_OBJDUMP+:} false; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$OBJDUMP"; then
5089 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5098 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 OBJDUMP=$ac_cv_prog_OBJDUMP
5109 if test -n "$OBJDUMP"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5111 $as_echo "$OBJDUMP" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117
5118 fi
5119 if test -z "$ac_cv_prog_OBJDUMP"; then
5120 ac_ct_OBJDUMP=$OBJDUMP
5121 # Extract the first word of "objdump", so it can be a program name with args.
5122 set dummy objdump; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$ac_ct_OBJDUMP"; then
5129 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5133 do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5138 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5141 fi
5142 done
5143 done
5144 IFS=$as_save_IFS
5145
5146 fi
5147 fi
5148 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5149 if test -n "$ac_ct_OBJDUMP"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5151 $as_echo "$ac_ct_OBJDUMP" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5155 fi
5156
5157 if test "x$ac_ct_OBJDUMP" = x; then
5158 OBJDUMP="false"
5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161 yes:)
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5164 ac_tool_warned=yes ;;
5165 esac
5166 OBJDUMP=$ac_ct_OBJDUMP
5167 fi
5168 else
5169 OBJDUMP="$ac_cv_prog_OBJDUMP"
5170 fi
5171
5172 test -z "$OBJDUMP" && OBJDUMP=objdump
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5183 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5184 if ${lt_cv_deplibs_check_method+:} false; then :
5185 $as_echo_n "(cached) " >&6
5186 else
5187 lt_cv_file_magic_cmd='$MAGIC_CMD'
5188 lt_cv_file_magic_test_file=
5189 lt_cv_deplibs_check_method='unknown'
5190 # Need to set the preceding variable on all platforms that support
5191 # interlibrary dependencies.
5192 # 'none' -- dependencies not supported.
5193 # 'unknown' -- same as none, but documents that we really don't know.
5194 # 'pass_all' -- all dependencies passed with no checks.
5195 # 'test_compile' -- check by making test program.
5196 # 'file_magic [[regex]]' -- check by looking for files in library path
5197 # that responds to the $file_magic_cmd with a given extended regex.
5198 # If you have 'file' or equivalent on your system and you're not sure
5199 # whether 'pass_all' will *always* work, you probably want this one.
5200
5201 case $host_os in
5202 aix[4-9]*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205
5206 beos*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
5209
5210 bsdi[45]*)
5211 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5212 lt_cv_file_magic_cmd='/usr/bin/file -L'
5213 lt_cv_file_magic_test_file=/shlib/libc.so
5214 ;;
5215
5216 cygwin*)
5217 # func_win32_libid is a shell function defined in ltmain.sh
5218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5219 lt_cv_file_magic_cmd='func_win32_libid'
5220 ;;
5221
5222 mingw* | pw32*)
5223 # Base MSYS/MinGW do not provide the 'file' command needed by
5224 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5225 # unless we find 'file', for example because we are cross-compiling.
5226 if ( file / ) >/dev/null 2>&1; then
5227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5228 lt_cv_file_magic_cmd='func_win32_libid'
5229 else
5230 # Keep this pattern in sync with the one in func_win32_libid.
5231 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5232 lt_cv_file_magic_cmd='$OBJDUMP -f'
5233 fi
5234 ;;
5235
5236 cegcc*)
5237 # use the weaker test based on 'objdump'. See mingw*.
5238 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5239 lt_cv_file_magic_cmd='$OBJDUMP -f'
5240 ;;
5241
5242 darwin* | rhapsody*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 freebsd* | dragonfly*)
5247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248 case $host_cpu in
5249 i*86 )
5250 # Not sure whether the presence of OpenBSD here was a mistake.
5251 # Let's accept both of them until this is cleared up.
5252 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5253 lt_cv_file_magic_cmd=/usr/bin/file
5254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5255 ;;
5256 esac
5257 else
5258 lt_cv_deplibs_check_method=pass_all
5259 fi
5260 ;;
5261
5262 haiku*)
5263 lt_cv_deplibs_check_method=pass_all
5264 ;;
5265
5266 hpux10.20* | hpux11*)
5267 lt_cv_file_magic_cmd=/usr/bin/file
5268 case $host_cpu in
5269 ia64*)
5270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5271 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5272 ;;
5273 hppa*64*)
5274 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]'
5275 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5276 ;;
5277 *)
5278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5279 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5280 ;;
5281 esac
5282 ;;
5283
5284 interix[3-9]*)
5285 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5287 ;;
5288
5289 irix5* | irix6* | nonstopux*)
5290 case $LD in
5291 *-32|*"-32 ") libmagic=32-bit;;
5292 *-n32|*"-n32 ") libmagic=N32;;
5293 *-64|*"-64 ") libmagic=64-bit;;
5294 *) libmagic=never-match;;
5295 esac
5296 lt_cv_deplibs_check_method=pass_all
5297 ;;
5298
5299 # This must be glibc/ELF.
5300 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5301 lt_cv_deplibs_check_method=pass_all
5302 ;;
5303
5304 netbsd*)
5305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5307 else
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5309 fi
5310 ;;
5311
5312 newos6*)
5313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5314 lt_cv_file_magic_cmd=/usr/bin/file
5315 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5316 ;;
5317
5318 *nto* | *qnx*)
5319 lt_cv_deplibs_check_method=pass_all
5320 ;;
5321
5322 openbsd* | bitrig*)
5323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5325 else
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5327 fi
5328 ;;
5329
5330 osf3* | osf4* | osf5*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333
5334 rdos*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338 solaris*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5343 lt_cv_deplibs_check_method=pass_all
5344 ;;
5345
5346 sysv4 | sysv4.3*)
5347 case $host_vendor in
5348 motorola)
5349 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]'
5350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5351 ;;
5352 ncr)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355 sequent)
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5358 ;;
5359 sni)
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5362 lt_cv_file_magic_test_file=/lib/libc.so
5363 ;;
5364 siemens)
5365 lt_cv_deplibs_check_method=pass_all
5366 ;;
5367 pc)
5368 lt_cv_deplibs_check_method=pass_all
5369 ;;
5370 esac
5371 ;;
5372
5373 tpf*)
5374 lt_cv_deplibs_check_method=pass_all
5375 ;;
5376 os2*)
5377 lt_cv_deplibs_check_method=pass_all
5378 ;;
5379 esac
5380
5381 fi
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5383 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5384
5385 file_magic_glob=
5386 want_nocaseglob=no
5387 if test "$build" = "$host"; then
5388 case $host_os in
5389 mingw* | pw32*)
5390 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5391 want_nocaseglob=yes
5392 else
5393 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5394 fi
5395 ;;
5396 esac
5397 fi
5398
5399 file_magic_cmd=$lt_cv_file_magic_cmd
5400 deplibs_check_method=$lt_cv_deplibs_check_method
5401 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 if test -n "$ac_tool_prefix"; then
5425 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5426 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if ${ac_cv_prog_DLLTOOL+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$DLLTOOL"; then
5433 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446 done
5447 done
5448 IFS=$as_save_IFS
5449
5450 fi
5451 fi
5452 DLLTOOL=$ac_cv_prog_DLLTOOL
5453 if test -n "$DLLTOOL"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5455 $as_echo "$DLLTOOL" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5459 fi
5460
5461
5462 fi
5463 if test -z "$ac_cv_prog_DLLTOOL"; then
5464 ac_ct_DLLTOOL=$DLLTOOL
5465 # Extract the first word of "dlltool", so it can be a program name with args.
5466 set dummy dlltool; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$ac_ct_DLLTOOL"; then
5473 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5485 fi
5486 done
5487 done
5488 IFS=$as_save_IFS
5489
5490 fi
5491 fi
5492 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5493 if test -n "$ac_ct_DLLTOOL"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5495 $as_echo "$ac_ct_DLLTOOL" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5499 fi
5500
5501 if test "x$ac_ct_DLLTOOL" = x; then
5502 DLLTOOL="false"
5503 else
5504 case $cross_compiling:$ac_tool_warned in
5505 yes:)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5508 ac_tool_warned=yes ;;
5509 esac
5510 DLLTOOL=$ac_ct_DLLTOOL
5511 fi
5512 else
5513 DLLTOOL="$ac_cv_prog_DLLTOOL"
5514 fi
5515
5516 test -z "$DLLTOOL" && DLLTOOL=dlltool
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5528 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5529 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 lt_cv_sharedlib_from_linklib_cmd='unknown'
5533
5534 case $host_os in
5535 cygwin* | mingw* | pw32* | cegcc*)
5536 # two different shell functions defined in ltmain.sh;
5537 # decide which one to use based on capabilities of $DLLTOOL
5538 case `$DLLTOOL --help 2>&1` in
5539 *--identify-strict*)
5540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5541 ;;
5542 *)
5543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5544 ;;
5545 esac
5546 ;;
5547 *)
5548 # fallback: assume linklib IS sharedlib
5549 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5550 ;;
5551 esac
5552
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5555 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5556 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5557 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5558
5559
5560
5561
5562
5563
5564
5565
5566 if test -n "$ac_tool_prefix"; then
5567 for ac_prog in ar
5568 do
5569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_AR+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 if test -n "$AR"; then
5577 ac_cv_prog_AR="$AR" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588 break 2
5589 fi
5590 done
5591 done
5592 IFS=$as_save_IFS
5593
5594 fi
5595 fi
5596 AR=$ac_cv_prog_AR
5597 if test -n "$AR"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5599 $as_echo "$AR" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604
5605
5606 test -n "$AR" && break
5607 done
5608 fi
5609 if test -z "$AR"; then
5610 ac_ct_AR=$AR
5611 for ac_prog in ar
5612 do
5613 # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$ac_ct_AR"; then
5621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_ac_ct_AR="$ac_prog"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634 done
5635 done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5641 if test -n "$ac_ct_AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5643 $as_echo "$ac_ct_AR" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 test -n "$ac_ct_AR" && break
5651 done
5652
5653 if test "x$ac_ct_AR" = x; then
5654 AR="false"
5655 else
5656 case $cross_compiling:$ac_tool_warned in
5657 yes:)
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662 AR=$ac_ct_AR
5663 fi
5664 fi
5665
5666 : ${AR=ar}
5667 : ${AR_FLAGS=cru}
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5680 $as_echo_n "checking for archiver @FILE support... " >&6; }
5681 if ${lt_cv_ar_at_file+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 lt_cv_ar_at_file=no
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687
5688 int
5689 main ()
5690 {
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 echo conftest.$ac_objext > conftest.lst
5698 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5700 (eval $lt_ar_try) 2>&5
5701 ac_status=$?
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }
5704 if test 0 -eq "$ac_status"; then
5705 # Ensure the archiver fails upon bogus file names.
5706 rm -f conftest.$ac_objext libconftest.a
5707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5708 (eval $lt_ar_try) 2>&5
5709 ac_status=$?
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }
5712 if test 0 -ne "$ac_status"; then
5713 lt_cv_ar_at_file=@
5714 fi
5715 fi
5716 rm -f conftest.* libconftest.a
5717
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720
5721 fi
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5723 $as_echo "$lt_cv_ar_at_file" >&6; }
5724
5725 if test no = "$lt_cv_ar_at_file"; then
5726 archiver_list_spec=
5727 else
5728 archiver_list_spec=$lt_cv_ar_at_file
5729 fi
5730
5731
5732
5733
5734
5735
5736
5737 if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}strip; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_STRIP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 if test -n "$STRIP"; then
5746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751 IFS=$as_save_IFS
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 break 2
5758 fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768 $as_echo "$STRIP" >&6; }
5769 else
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775 fi
5776 if test -z "$ac_cv_prog_STRIP"; then
5777 ac_ct_STRIP=$STRIP
5778 # Extract the first word of "strip", so it can be a program name with args.
5779 set dummy strip; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5784 else
5785 if test -n "$ac_ct_STRIP"; then
5786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5787 else
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789 for as_dir in $PATH
5790 do
5791 IFS=$as_save_IFS
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_STRIP="strip"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 break 2
5798 fi
5799 done
5800 done
5801 IFS=$as_save_IFS
5802
5803 fi
5804 fi
5805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806 if test -n "$ac_ct_STRIP"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808 $as_echo "$ac_ct_STRIP" >&6; }
5809 else
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5812 fi
5813
5814 if test "x$ac_ct_STRIP" = x; then
5815 STRIP=":"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823 STRIP=$ac_ct_STRIP
5824 fi
5825 else
5826 STRIP="$ac_cv_prog_STRIP"
5827 fi
5828
5829 test -z "$STRIP" && STRIP=:
5830
5831
5832
5833
5834
5835
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_RANLIB+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$RANLIB"; then
5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5861
5862 fi
5863 fi
5864 RANLIB=$ac_cv_prog_RANLIB
5865 if test -n "$RANLIB"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867 $as_echo "$RANLIB" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5871 fi
5872
5873
5874 fi
5875 if test -z "$ac_cv_prog_RANLIB"; then
5876 ac_ct_RANLIB=$RANLIB
5877 # Extract the first word of "ranlib", so it can be a program name with args.
5878 set dummy ranlib; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_RANLIB"; then
5885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_RANLIB="ranlib"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905 if test -n "$ac_ct_RANLIB"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907 $as_echo "$ac_ct_RANLIB" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913 if test "x$ac_ct_RANLIB" = x; then
5914 RANLIB=":"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 RANLIB=$ac_ct_RANLIB
5923 fi
5924 else
5925 RANLIB="$ac_cv_prog_RANLIB"
5926 fi
5927
5928 test -z "$RANLIB" && RANLIB=:
5929
5930
5931
5932
5933
5934
5935 # Determine commands to create old-style static archives.
5936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937 old_postinstall_cmds='chmod 644 $oldlib'
5938 old_postuninstall_cmds=
5939
5940 if test -n "$RANLIB"; then
5941 case $host_os in
5942 bitrig* | openbsd*)
5943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5944 ;;
5945 *)
5946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5947 ;;
5948 esac
5949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5950 fi
5951
5952 case $host_os in
5953 darwin*)
5954 lock_old_archive_extraction=yes ;;
5955 *)
5956 lock_old_archive_extraction=no ;;
5957 esac
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997 # If no C compiler was specified, use CC.
5998 LTCC=${LTCC-"$CC"}
5999
6000 # If no C compiler flags were specified, use CFLAGS.
6001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6002
6003 # Allow CC to be a program name with arguments.
6004 compiler=$CC
6005
6006
6007 # Check for command to grab the raw symbol name followed by C symbol from nm.
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6009 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6010 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013
6014 # These are sane defaults that work on at least a few old systems.
6015 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6016
6017 # Character class describing NM global symbol codes.
6018 symcode='[BCDEGRST]'
6019
6020 # Regexp to match symbols that can be accessed directly from C.
6021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6022
6023 # Define system-specific variables.
6024 case $host_os in
6025 aix*)
6026 symcode='[BCDT]'
6027 ;;
6028 cygwin* | mingw* | pw32* | cegcc*)
6029 symcode='[ABCDGISTW]'
6030 ;;
6031 hpux*)
6032 if test ia64 = "$host_cpu"; then
6033 symcode='[ABCDEGRST]'
6034 fi
6035 ;;
6036 irix* | nonstopux*)
6037 symcode='[BCDEGRST]'
6038 ;;
6039 osf*)
6040 symcode='[BCDEGQRST]'
6041 ;;
6042 solaris*)
6043 symcode='[BDRT]'
6044 ;;
6045 sco3.2v5*)
6046 symcode='[DT]'
6047 ;;
6048 sysv4.2uw2*)
6049 symcode='[DT]'
6050 ;;
6051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6052 symcode='[ABDT]'
6053 ;;
6054 sysv4)
6055 symcode='[DFNSTU]'
6056 ;;
6057 esac
6058
6059 # If we're using GNU nm, then use its standard symbol codes.
6060 case `$NM -V 2>&1` in
6061 *GNU* | *'with BFD'*)
6062 symcode='[ABCDGIRSTW]' ;;
6063 esac
6064
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 # Gets list of data symbols to import.
6067 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6068 # Adjust the below global symbol transforms to fixup imported variables.
6069 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6070 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6071 lt_c_name_lib_hook="\
6072 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6073 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6074 else
6075 # Disable hooks by default.
6076 lt_cv_sys_global_symbol_to_import=
6077 lt_cdecl_hook=
6078 lt_c_name_hook=
6079 lt_c_name_lib_hook=
6080 fi
6081
6082 # Transform an extracted symbol line into a proper C declaration.
6083 # Some systems (esp. on ia64) link data and code symbols differently,
6084 # so use this general approach.
6085 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6086 $lt_cdecl_hook\
6087 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6088 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6089
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6092 $lt_c_name_hook\
6093 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6094 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6095
6096 # Transform an extracted symbol line into symbol name with lib prefix and
6097 # symbol address.
6098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6099 $lt_c_name_lib_hook\
6100 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6101 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6102 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6103
6104 # Handle CRLF in mingw tool chain
6105 opt_cr=
6106 case $build_os in
6107 mingw*)
6108 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6109 ;;
6110 esac
6111
6112 # Try without a prefix underscore, then with it.
6113 for ac_symprfx in "" "_"; do
6114
6115 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6116 symxfrm="\\1 $ac_symprfx\\2 \\2"
6117
6118 # Write the raw and C identifiers.
6119 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6120 # Fake it for dumpbin and say T for any non-static function,
6121 # D for any global variable and I for any imported variable.
6122 # Also find C++ and __fastcall symbols from MSVC++,
6123 # which start with @ or ?.
6124 lt_cv_sys_global_symbol_pipe="$AWK '"\
6125 " {last_section=section; section=\$ 3};"\
6126 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6127 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6128 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6129 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6130 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6131 " \$ 0!~/External *\|/{next};"\
6132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 " {if(hide[section]) next};"\
6134 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6135 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6136 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6137 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6138 " ' prfx=^$ac_symprfx"
6139 else
6140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6141 fi
6142 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6143
6144 # Check to see that the pipe works correctly.
6145 pipe_works=no
6146
6147 rm -f conftest*
6148 cat > conftest.$ac_ext <<_LT_EOF
6149 #ifdef __cplusplus
6150 extern "C" {
6151 #endif
6152 char nm_test_var;
6153 void nm_test_func(void);
6154 void nm_test_func(void){}
6155 #ifdef __cplusplus
6156 }
6157 #endif
6158 int main(){nm_test_var='a';nm_test_func();return(0);}
6159 _LT_EOF
6160
6161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162 (eval $ac_compile) 2>&5
6163 ac_status=$?
6164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165 test $ac_status = 0; }; then
6166 # Now try to grab the symbols.
6167 nlist=conftest.nm
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6169 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s "$nlist"; then
6173 # Try sorting and uniquifying the output.
6174 if sort "$nlist" | uniq > "$nlist"T; then
6175 mv -f "$nlist"T "$nlist"
6176 else
6177 rm -f "$nlist"T
6178 fi
6179
6180 # Make sure that we snagged all the symbols we need.
6181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183 cat <<_LT_EOF > conftest.$ac_ext
6184 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6185 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6186 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6187 relocations are performed -- see ld's documentation on pseudo-relocs. */
6188 # define LT_DLSYM_CONST
6189 #elif defined __osf__
6190 /* This system does not cope well with relocations in const data. */
6191 # define LT_DLSYM_CONST
6192 #else
6193 # define LT_DLSYM_CONST const
6194 #endif
6195
6196 #ifdef __cplusplus
6197 extern "C" {
6198 #endif
6199
6200 _LT_EOF
6201 # Now generate the symbol file.
6202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6203
6204 cat <<_LT_EOF >> conftest.$ac_ext
6205
6206 /* The mapping between symbol names and symbols. */
6207 LT_DLSYM_CONST struct {
6208 const char *name;
6209 void *address;
6210 }
6211 lt__PROGRAM__LTX_preloaded_symbols[] =
6212 {
6213 { "@PROGRAM@", (void *) 0 },
6214 _LT_EOF
6215 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6216 cat <<\_LT_EOF >> conftest.$ac_ext
6217 {0, (void *) 0}
6218 };
6219
6220 /* This works around a problem in FreeBSD linker */
6221 #ifdef FREEBSD_WORKAROUND
6222 static const void *lt_preloaded_setup() {
6223 return lt__PROGRAM__LTX_preloaded_symbols;
6224 }
6225 #endif
6226
6227 #ifdef __cplusplus
6228 }
6229 #endif
6230 _LT_EOF
6231 # Now try linking the two files.
6232 mv conftest.$ac_objext conftstm.$ac_objext
6233 lt_globsym_save_LIBS=$LIBS
6234 lt_globsym_save_CFLAGS=$CFLAGS
6235 LIBS=conftstm.$ac_objext
6236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6238 (eval $ac_link) 2>&5
6239 ac_status=$?
6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6242 pipe_works=yes
6243 fi
6244 LIBS=$lt_globsym_save_LIBS
6245 CFLAGS=$lt_globsym_save_CFLAGS
6246 else
6247 echo "cannot find nm_test_func in $nlist" >&5
6248 fi
6249 else
6250 echo "cannot find nm_test_var in $nlist" >&5
6251 fi
6252 else
6253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6254 fi
6255 else
6256 echo "$progname: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6258 fi
6259 rm -rf conftest* conftst*
6260
6261 # Do not use the global_symbol_pipe unless it works.
6262 if test yes = "$pipe_works"; then
6263 break
6264 else
6265 lt_cv_sys_global_symbol_pipe=
6266 fi
6267 done
6268
6269 fi
6270
6271 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272 lt_cv_sys_global_symbol_to_cdecl=
6273 fi
6274 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6276 $as_echo "failed" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6279 $as_echo "ok" >&6; }
6280 fi
6281
6282 # Response file support.
6283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284 nm_file_list_spec='@'
6285 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6286 nm_file_list_spec='@'
6287 fi
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6326 $as_echo_n "checking for sysroot... " >&6; }
6327
6328 # Check whether --with-sysroot was given.
6329 if test "${with_sysroot+set}" = set; then :
6330 withval=$with_sysroot;
6331 else
6332 with_sysroot=no
6333 fi
6334
6335
6336 lt_sysroot=
6337 case $with_sysroot in #(
6338 yes)
6339 if test yes = "$GCC"; then
6340 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6341 fi
6342 ;; #(
6343 /*)
6344 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6345 ;; #(
6346 no|'')
6347 ;; #(
6348 *)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6350 $as_echo "$with_sysroot" >&6; }
6351 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6352 ;;
6353 esac
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6356 $as_echo "${lt_sysroot:-no}" >&6; }
6357
6358
6359
6360
6361
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6363 $as_echo_n "checking for a working dd... " >&6; }
6364 if ${ac_cv_path_lt_DD+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 printf 0123456789abcdef0123456789abcdef >conftest.i
6368 cat conftest.i conftest.i >conftest2.i
6369 : ${lt_DD:=$DD}
6370 if test -z "$lt_DD"; then
6371 ac_path_lt_DD_found=false
6372 # Loop through the user's path and test for each of PROGNAME-LIST
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376 IFS=$as_save_IFS
6377 test -z "$as_dir" && as_dir=.
6378 for ac_prog in dd; do
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6381 as_fn_executable_p "$ac_path_lt_DD" || continue
6382 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6383 cmp -s conftest.i conftest.out \
6384 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6385 fi
6386 $ac_path_lt_DD_found && break 3
6387 done
6388 done
6389 done
6390 IFS=$as_save_IFS
6391 if test -z "$ac_cv_path_lt_DD"; then
6392 :
6393 fi
6394 else
6395 ac_cv_path_lt_DD=$lt_DD
6396 fi
6397
6398 rm -f conftest.i conftest2.i conftest.out
6399 fi
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6401 $as_echo "$ac_cv_path_lt_DD" >&6; }
6402
6403
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6405 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6406 if ${lt_cv_truncate_bin+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 printf 0123456789abcdef0123456789abcdef >conftest.i
6410 cat conftest.i conftest.i >conftest2.i
6411 lt_cv_truncate_bin=
6412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6413 cmp -s conftest.i conftest.out \
6414 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6415 fi
6416 rm -f conftest.i conftest2.i conftest.out
6417 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6418 fi
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6420 $as_echo "$lt_cv_truncate_bin" >&6; }
6421
6422
6423
6424
6425
6426
6427 # Check whether --enable-libtool-lock was given.
6428 if test "${enable_libtool_lock+set}" = set; then :
6429 enableval=$enable_libtool_lock;
6430 fi
6431
6432 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6433
6434 # Some flags need to be propagated to the compiler or linker for good
6435 # libtool support.
6436 case $host in
6437 ia64-*-hpux*)
6438 # Find out what ABI is being produced by ac_compile, and set mode
6439 # options accordingly.
6440 echo 'int i;' > conftest.$ac_ext
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6442 (eval $ac_compile) 2>&5
6443 ac_status=$?
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; }; then
6446 case `/usr/bin/file conftest.$ac_objext` in
6447 *ELF-32*)
6448 HPUX_IA64_MODE=32
6449 ;;
6450 *ELF-64*)
6451 HPUX_IA64_MODE=64
6452 ;;
6453 esac
6454 fi
6455 rm -rf conftest*
6456 ;;
6457 *-*-irix6*)
6458 # Find out what ABI is being produced by ac_compile, and set linker
6459 # options accordingly.
6460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6463 ac_status=$?
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 if test yes = "$lt_cv_prog_gnu_ld"; then
6467 case `/usr/bin/file conftest.$ac_objext` in
6468 *32-bit*)
6469 LD="${LD-ld} -melf32bsmip"
6470 ;;
6471 *N32*)
6472 LD="${LD-ld} -melf32bmipn32"
6473 ;;
6474 *64-bit*)
6475 LD="${LD-ld} -melf64bmip"
6476 ;;
6477 esac
6478 else
6479 case `/usr/bin/file conftest.$ac_objext` in
6480 *32-bit*)
6481 LD="${LD-ld} -32"
6482 ;;
6483 *N32*)
6484 LD="${LD-ld} -n32"
6485 ;;
6486 *64-bit*)
6487 LD="${LD-ld} -64"
6488 ;;
6489 esac
6490 fi
6491 fi
6492 rm -rf conftest*
6493 ;;
6494
6495 mips64*-*linux*)
6496 # Find out what ABI is being produced by ac_compile, and set linker
6497 # options accordingly.
6498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6501 ac_status=$?
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6504 emul=elf
6505 case `/usr/bin/file conftest.$ac_objext` in
6506 *32-bit*)
6507 emul="${emul}32"
6508 ;;
6509 *64-bit*)
6510 emul="${emul}64"
6511 ;;
6512 esac
6513 case `/usr/bin/file conftest.$ac_objext` in
6514 *MSB*)
6515 emul="${emul}btsmip"
6516 ;;
6517 *LSB*)
6518 emul="${emul}ltsmip"
6519 ;;
6520 esac
6521 case `/usr/bin/file conftest.$ac_objext` in
6522 *N32*)
6523 emul="${emul}n32"
6524 ;;
6525 esac
6526 LD="${LD-ld} -m $emul"
6527 fi
6528 rm -rf conftest*
6529 ;;
6530
6531 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6532 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6533 # Find out what ABI is being produced by ac_compile, and set linker
6534 # options accordingly. Note that the listed cases only cover the
6535 # situations where additional linker options are needed (such as when
6536 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6537 # vice versa); the common cases where no linker options are needed do
6538 # not appear in the list.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 case `/usr/bin/file conftest.o` in
6546 *32-bit*)
6547 case $host in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6550 ;;
6551 x86_64-*linux*)
6552 case `/usr/bin/file conftest.o` in
6553 *x86-64*)
6554 LD="${LD-ld} -m elf32_x86_64"
6555 ;;
6556 *)
6557 LD="${LD-ld} -m elf_i386"
6558 ;;
6559 esac
6560 ;;
6561 powerpc64le-*linux*)
6562 LD="${LD-ld} -m elf32lppclinux"
6563 ;;
6564 powerpc64-*linux*)
6565 LD="${LD-ld} -m elf32ppclinux"
6566 ;;
6567 s390x-*linux*)
6568 LD="${LD-ld} -m elf_s390"
6569 ;;
6570 sparc64-*linux*)
6571 LD="${LD-ld} -m elf32_sparc"
6572 ;;
6573 esac
6574 ;;
6575 *64-bit*)
6576 case $host in
6577 x86_64-*kfreebsd*-gnu)
6578 LD="${LD-ld} -m elf_x86_64_fbsd"
6579 ;;
6580 x86_64-*linux*)
6581 LD="${LD-ld} -m elf_x86_64"
6582 ;;
6583 powerpcle-*linux*)
6584 LD="${LD-ld} -m elf64lppc"
6585 ;;
6586 powerpc-*linux*)
6587 LD="${LD-ld} -m elf64ppc"
6588 ;;
6589 s390*-*linux*|s390*-*tpf*)
6590 LD="${LD-ld} -m elf64_s390"
6591 ;;
6592 sparc*-*linux*)
6593 LD="${LD-ld} -m elf64_sparc"
6594 ;;
6595 esac
6596 ;;
6597 esac
6598 fi
6599 rm -rf conftest*
6600 ;;
6601
6602 *-*-sco3.2v5*)
6603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604 SAVE_CFLAGS=$CFLAGS
6605 CFLAGS="$CFLAGS -belf"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608 if ${lt_cv_cc_needs_belf+:} false; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619
6620 int
6621 main ()
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 lt_cv_cc_needs_belf=yes
6630 else
6631 lt_cv_cc_needs_belf=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641 fi
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6644 if test yes != "$lt_cv_cc_needs_belf"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646 CFLAGS=$SAVE_CFLAGS
6647 fi
6648 ;;
6649 *-*solaris*)
6650 # Find out what ABI is being produced by ac_compile, and set linker
6651 # options accordingly.
6652 echo 'int i;' > conftest.$ac_ext
6653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6654 (eval $ac_compile) 2>&5
6655 ac_status=$?
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }; then
6658 case `/usr/bin/file conftest.o` in
6659 *64-bit*)
6660 case $lt_cv_prog_gnu_ld in
6661 yes*)
6662 case $host in
6663 i?86-*-solaris*|x86_64-*-solaris*)
6664 LD="${LD-ld} -m elf_x86_64"
6665 ;;
6666 sparc*-*-solaris*)
6667 LD="${LD-ld} -m elf64_sparc"
6668 ;;
6669 esac
6670 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6671 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6672 LD=${LD-ld}_sol2
6673 fi
6674 ;;
6675 *)
6676 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6677 LD="${LD-ld} -64"
6678 fi
6679 ;;
6680 esac
6681 ;;
6682 esac
6683 fi
6684 rm -rf conftest*
6685 ;;
6686 esac
6687
6688 need_locks=$enable_libtool_lock
6689
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}mt; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 if test -n "$MANIFEST_TOOL"; then
6699 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704 IFS=$as_save_IFS
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 break 2
6711 fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6719 if test -n "$MANIFEST_TOOL"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6721 $as_echo "$MANIFEST_TOOL" >&6; }
6722 else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6730 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6731 # Extract the first word of "mt", so it can be a program name with args.
6732 set dummy mt; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 if test -n "$ac_ct_MANIFEST_TOOL"; then
6739 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 break 2
6751 fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6759 if test -n "$ac_ct_MANIFEST_TOOL"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6761 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6762 else
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6768 MANIFEST_TOOL=":"
6769 else
6770 case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6777 fi
6778 else
6779 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6780 fi
6781
6782 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6784 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6785 if ${lt_cv_path_mainfest_tool+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788 lt_cv_path_mainfest_tool=no
6789 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6790 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6791 cat conftest.err >&5
6792 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6793 lt_cv_path_mainfest_tool=yes
6794 fi
6795 rm -f conftest*
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6798 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6799 if test yes != "$lt_cv_path_mainfest_tool"; then
6800 MANIFEST_TOOL=:
6801 fi
6802
6803
6804
6805
6806
6807
6808 case $host_os in
6809 rhapsody* | darwin*)
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6816 $as_echo_n "(cached) " >&6
6817 else
6818 if test -n "$DSYMUTIL"; then
6819 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824 IFS=$as_save_IFS
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 break 2
6831 fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6839 if test -n "$DSYMUTIL"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6841 $as_echo "$DSYMUTIL" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_DSYMUTIL"; then
6850 ac_ct_DSYMUTIL=$DSYMUTIL
6851 # Extract the first word of "dsymutil", so it can be a program name with args.
6852 set dummy dsymutil; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6879 if test -n "$ac_ct_DSYMUTIL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6881 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887 if test "x$ac_ct_DSYMUTIL" = x; then
6888 DSYMUTIL=":"
6889 else
6890 case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896 DSYMUTIL=$ac_ct_DSYMUTIL
6897 fi
6898 else
6899 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6900 fi
6901
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_NMEDIT+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$NMEDIT"; then
6911 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 NMEDIT=$ac_cv_prog_NMEDIT
6931 if test -n "$NMEDIT"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6933 $as_echo "$NMEDIT" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_NMEDIT"; then
6942 ac_ct_NMEDIT=$NMEDIT
6943 # Extract the first word of "nmedit", so it can be a program name with args.
6944 set dummy nmedit; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$ac_ct_NMEDIT"; then
6951 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6971 if test -n "$ac_ct_NMEDIT"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6973 $as_echo "$ac_ct_NMEDIT" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979 if test "x$ac_ct_NMEDIT" = x; then
6980 NMEDIT=":"
6981 else
6982 case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988 NMEDIT=$ac_ct_NMEDIT
6989 fi
6990 else
6991 NMEDIT="$ac_cv_prog_NMEDIT"
6992 fi
6993
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_LIPO+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$LIPO"; then
7003 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7015 fi
7016 done
7017 done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 LIPO=$ac_cv_prog_LIPO
7023 if test -n "$LIPO"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7025 $as_echo "$LIPO" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033 if test -z "$ac_cv_prog_LIPO"; then
7034 ac_ct_LIPO=$LIPO
7035 # Extract the first word of "lipo", so it can be a program name with args.
7036 set dummy lipo; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$ac_ct_LIPO"; then
7043 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_LIPO="lipo"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7063 if test -n "$ac_ct_LIPO"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7065 $as_echo "$ac_ct_LIPO" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071 if test "x$ac_ct_LIPO" = x; then
7072 LIPO=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 LIPO=$ac_ct_LIPO
7081 fi
7082 else
7083 LIPO="$ac_cv_prog_LIPO"
7084 fi
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}otool; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_OTOOL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$OTOOL"; then
7095 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 OTOOL=$ac_cv_prog_OTOOL
7115 if test -n "$OTOOL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7117 $as_echo "$OTOOL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_OTOOL"; then
7126 ac_ct_OTOOL=$OTOOL
7127 # Extract the first word of "otool", so it can be a program name with args.
7128 set dummy otool; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_OTOOL"; then
7135 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_OTOOL="otool"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7155 if test -n "$ac_ct_OTOOL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7157 $as_echo "$ac_ct_OTOOL" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_OTOOL" = x; then
7164 OTOOL=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 OTOOL=$ac_ct_OTOOL
7173 fi
7174 else
7175 OTOOL="$ac_cv_prog_OTOOL"
7176 fi
7177
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_OTOOL64+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$OTOOL64"; then
7187 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192 IFS=$as_save_IFS
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198 break 2
7199 fi
7200 done
7201 done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 OTOOL64=$ac_cv_prog_OTOOL64
7207 if test -n "$OTOOL64"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7209 $as_echo "$OTOOL64" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_OTOOL64"; then
7218 ac_ct_OTOOL64=$OTOOL64
7219 # Extract the first word of "otool64", so it can be a program name with args.
7220 set dummy otool64; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$ac_ct_OTOOL64"; then
7227 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_OTOOL64="otool64"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7239 fi
7240 done
7241 done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7247 if test -n "$ac_ct_OTOOL64"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7249 $as_echo "$ac_ct_OTOOL64" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255 if test "x$ac_ct_OTOOL64" = x; then
7256 OTOOL64=":"
7257 else
7258 case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264 OTOOL64=$ac_ct_OTOOL64
7265 fi
7266 else
7267 OTOOL64="$ac_cv_prog_OTOOL64"
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7297 $as_echo_n "checking for -single_module linker flag... " >&6; }
7298 if ${lt_cv_apple_cc_single_mod+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 lt_cv_apple_cc_single_mod=no
7302 if test -z "$LT_MULTI_MODULE"; then
7303 # By default we will add the -single_module flag. You can override
7304 # by either setting the environment variable LT_MULTI_MODULE
7305 # non-empty at configure time, or by adding -multi_module to the
7306 # link flags.
7307 rm -rf libconftest.dylib*
7308 echo "int foo(void){return 1;}" > conftest.c
7309 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7310 -dynamiclib -Wl,-single_module conftest.c" >&5
7311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7312 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7313 _lt_result=$?
7314 # If there is a non-empty error log, and "single_module"
7315 # appears in it, assume the flag caused a linker warning
7316 if test -s conftest.err && $GREP single_module conftest.err; then
7317 cat conftest.err >&5
7318 # Otherwise, if the output was created with a 0 exit code from
7319 # the compiler, it worked.
7320 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7321 lt_cv_apple_cc_single_mod=yes
7322 else
7323 cat conftest.err >&5
7324 fi
7325 rm -rf libconftest.dylib*
7326 rm -f conftest.*
7327 fi
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7331
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7333 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7334 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 lt_cv_ld_exported_symbols_list=no
7338 save_LDFLAGS=$LDFLAGS
7339 echo "_main" > conftest.sym
7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343
7344 int
7345 main ()
7346 {
7347
7348 ;
7349 return 0;
7350 }
7351 _ACEOF
7352 if ac_fn_c_try_link "$LINENO"; then :
7353 lt_cv_ld_exported_symbols_list=yes
7354 else
7355 lt_cv_ld_exported_symbols_list=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LDFLAGS=$save_LDFLAGS
7360
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7363 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7364
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7366 $as_echo_n "checking for -force_load linker flag... " >&6; }
7367 if ${lt_cv_ld_force_load+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 lt_cv_ld_force_load=no
7371 cat > conftest.c << _LT_EOF
7372 int forced_loaded() { return 2;}
7373 _LT_EOF
7374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7376 echo "$AR cru libconftest.a conftest.o" >&5
7377 $AR cru libconftest.a conftest.o 2>&5
7378 echo "$RANLIB libconftest.a" >&5
7379 $RANLIB libconftest.a 2>&5
7380 cat > conftest.c << _LT_EOF
7381 int main() { return 0;}
7382 _LT_EOF
7383 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7384 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7385 _lt_result=$?
7386 if test -s conftest.err && $GREP force_load conftest.err; then
7387 cat conftest.err >&5
7388 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7389 lt_cv_ld_force_load=yes
7390 else
7391 cat conftest.err >&5
7392 fi
7393 rm -f conftest.err libconftest.a conftest conftest.c
7394 rm -rf conftest.dSYM
7395
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7398 $as_echo "$lt_cv_ld_force_load" >&6; }
7399 case $host_os in
7400 rhapsody* | darwin1.[012])
7401 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7402 darwin1.*)
7403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7404 darwin*) # darwin 5.x on
7405 # if running on 10.5 or later, the deployment target defaults
7406 # to the OS version, if on x86, and 10.4, the deployment
7407 # target defaults to 10.4. Don't you love it?
7408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7410 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7411 10.[012][,.]*)
7412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7413 10.*)
7414 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7415 esac
7416 ;;
7417 esac
7418 if test yes = "$lt_cv_apple_cc_single_mod"; then
7419 _lt_dar_single_mod='$single_module'
7420 fi
7421 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7422 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7423 else
7424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7425 fi
7426 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7427 _lt_dsymutil='~$DSYMUTIL $lib || :'
7428 else
7429 _lt_dsymutil=
7430 fi
7431 ;;
7432 esac
7433
7434 ac_ext=c
7435 ac_cpp='$CPP $CPPFLAGS'
7436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7440 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7441 # On Suns, sometimes $CPP names a directory.
7442 if test -n "$CPP" && test -d "$CPP"; then
7443 CPP=
7444 fi
7445 if test -z "$CPP"; then
7446 if ${ac_cv_prog_CPP+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 # Double quotes because CPP needs to be expanded
7450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7451 do
7452 ac_preproc_ok=false
7453 for ac_c_preproc_warn_flag in '' yes
7454 do
7455 # Use a header file that comes with gcc, so configuring glibc
7456 # with a fresh cross-compiler works.
7457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7458 # <limits.h> exists even on freestanding compilers.
7459 # On the NeXT, cc -E runs the code through the compiler's parser,
7460 # not just through cpp. "Syntax error" is here to catch this case.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #ifdef __STDC__
7464 # include <limits.h>
7465 #else
7466 # include <assert.h>
7467 #endif
7468 Syntax error
7469 _ACEOF
7470 if ac_fn_c_try_cpp "$LINENO"; then :
7471
7472 else
7473 # Broken: fails on valid input.
7474 continue
7475 fi
7476 rm -f conftest.err conftest.i conftest.$ac_ext
7477
7478 # OK, works on sane cases. Now check whether nonexistent headers
7479 # can be detected and how.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <ac_nonexistent.h>
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7485 # Broken: success on invalid input.
7486 continue
7487 else
7488 # Passes both tests.
7489 ac_preproc_ok=:
7490 break
7491 fi
7492 rm -f conftest.err conftest.i conftest.$ac_ext
7493
7494 done
7495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7496 rm -f conftest.i conftest.err conftest.$ac_ext
7497 if $ac_preproc_ok; then :
7498 break
7499 fi
7500
7501 done
7502 ac_cv_prog_CPP=$CPP
7503
7504 fi
7505 CPP=$ac_cv_prog_CPP
7506 else
7507 ac_cv_prog_CPP=$CPP
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7510 $as_echo "$CPP" >&6; }
7511 ac_preproc_ok=false
7512 for ac_c_preproc_warn_flag in '' yes
7513 do
7514 # Use a header file that comes with gcc, so configuring glibc
7515 # with a fresh cross-compiler works.
7516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517 # <limits.h> exists even on freestanding compilers.
7518 # On the NeXT, cc -E runs the code through the compiler's parser,
7519 # not just through cpp. "Syntax error" is here to catch this case.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #ifdef __STDC__
7523 # include <limits.h>
7524 #else
7525 # include <assert.h>
7526 #endif
7527 Syntax error
7528 _ACEOF
7529 if ac_fn_c_try_cpp "$LINENO"; then :
7530
7531 else
7532 # Broken: fails on valid input.
7533 continue
7534 fi
7535 rm -f conftest.err conftest.i conftest.$ac_ext
7536
7537 # OK, works on sane cases. Now check whether nonexistent headers
7538 # can be detected and how.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <ac_nonexistent.h>
7542 _ACEOF
7543 if ac_fn_c_try_cpp "$LINENO"; then :
7544 # Broken: success on invalid input.
7545 continue
7546 else
7547 # Passes both tests.
7548 ac_preproc_ok=:
7549 break
7550 fi
7551 rm -f conftest.err conftest.i conftest.$ac_ext
7552
7553 done
7554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7555 rm -f conftest.i conftest.err conftest.$ac_ext
7556 if $ac_preproc_ok; then :
7557
7558 else
7559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7561 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7562 See \`config.log' for more details" "$LINENO" 5; }
7563 fi
7564
7565 ac_ext=c
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7570
7571
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7573 $as_echo_n "checking for ANSI C header files... " >&6; }
7574 if ${ac_cv_header_stdc+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579 #include <stdlib.h>
7580 #include <stdarg.h>
7581 #include <string.h>
7582 #include <float.h>
7583
7584 int
7585 main ()
7586 {
7587
7588 ;
7589 return 0;
7590 }
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593 ac_cv_header_stdc=yes
7594 else
7595 ac_cv_header_stdc=no
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598
7599 if test $ac_cv_header_stdc = yes; then
7600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 #include <string.h>
7604
7605 _ACEOF
7606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7607 $EGREP "memchr" >/dev/null 2>&1; then :
7608
7609 else
7610 ac_cv_header_stdc=no
7611 fi
7612 rm -f conftest*
7613
7614 fi
7615
7616 if test $ac_cv_header_stdc = yes; then
7617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <stdlib.h>
7621
7622 _ACEOF
7623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7624 $EGREP "free" >/dev/null 2>&1; then :
7625
7626 else
7627 ac_cv_header_stdc=no
7628 fi
7629 rm -f conftest*
7630
7631 fi
7632
7633 if test $ac_cv_header_stdc = yes; then
7634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7635 if test "$cross_compiling" = yes; then :
7636 :
7637 else
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <ctype.h>
7641 #include <stdlib.h>
7642 #if ((' ' & 0x0FF) == 0x020)
7643 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7644 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7645 #else
7646 # define ISLOWER(c) \
7647 (('a' <= (c) && (c) <= 'i') \
7648 || ('j' <= (c) && (c) <= 'r') \
7649 || ('s' <= (c) && (c) <= 'z'))
7650 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7651 #endif
7652
7653 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7654 int
7655 main ()
7656 {
7657 int i;
7658 for (i = 0; i < 256; i++)
7659 if (XOR (islower (i), ISLOWER (i))
7660 || toupper (i) != TOUPPER (i))
7661 return 2;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_run "$LINENO"; then :
7666
7667 else
7668 ac_cv_header_stdc=no
7669 fi
7670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7671 conftest.$ac_objext conftest.beam conftest.$ac_ext
7672 fi
7673
7674 fi
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7677 $as_echo "$ac_cv_header_stdc" >&6; }
7678 if test $ac_cv_header_stdc = yes; then
7679
7680 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7681
7682 fi
7683
7684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7686 inttypes.h stdint.h unistd.h
7687 do :
7688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7690 "
7691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7692 cat >>confdefs.h <<_ACEOF
7693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7694 _ACEOF
7695
7696 fi
7697
7698 done
7699
7700
7701 for ac_header in dlfcn.h
7702 do :
7703 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7704 "
7705 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_DLFCN_H 1
7708 _ACEOF
7709
7710 fi
7711
7712 done
7713
7714
7715
7716
7717
7718 # Set options
7719
7720
7721
7722 enable_dlopen=no
7723
7724
7725 enable_win32_dll=no
7726
7727
7728 # Check whether --enable-shared was given.
7729 if test "${enable_shared+set}" = set; then :
7730 enableval=$enable_shared; p=${PACKAGE-default}
7731 case $enableval in
7732 yes) enable_shared=yes ;;
7733 no) enable_shared=no ;;
7734 *)
7735 enable_shared=no
7736 # Look at the argument we got. We use all the common list separators.
7737 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7738 for pkg in $enableval; do
7739 IFS=$lt_save_ifs
7740 if test "X$pkg" = "X$p"; then
7741 enable_shared=yes
7742 fi
7743 done
7744 IFS=$lt_save_ifs
7745 ;;
7746 esac
7747 else
7748 enable_shared=yes
7749 fi
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 # Check whether --enable-static was given.
7760 if test "${enable_static+set}" = set; then :
7761 enableval=$enable_static; p=${PACKAGE-default}
7762 case $enableval in
7763 yes) enable_static=yes ;;
7764 no) enable_static=no ;;
7765 *)
7766 enable_static=no
7767 # Look at the argument we got. We use all the common list separators.
7768 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7769 for pkg in $enableval; do
7770 IFS=$lt_save_ifs
7771 if test "X$pkg" = "X$p"; then
7772 enable_static=yes
7773 fi
7774 done
7775 IFS=$lt_save_ifs
7776 ;;
7777 esac
7778 else
7779 enable_static=yes
7780 fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 # Check whether --with-pic was given.
7792 if test "${with_pic+set}" = set; then :
7793 withval=$with_pic; lt_p=${PACKAGE-default}
7794 case $withval in
7795 yes|no) pic_mode=$withval ;;
7796 *)
7797 pic_mode=default
7798 # Look at the argument we got. We use all the common list separators.
7799 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7800 for lt_pkg in $withval; do
7801 IFS=$lt_save_ifs
7802 if test "X$lt_pkg" = "X$lt_p"; then
7803 pic_mode=yes
7804 fi
7805 done
7806 IFS=$lt_save_ifs
7807 ;;
7808 esac
7809 else
7810 pic_mode=default
7811 fi
7812
7813
7814
7815
7816
7817
7818
7819
7820 # Check whether --enable-fast-install was given.
7821 if test "${enable_fast_install+set}" = set; then :
7822 enableval=$enable_fast_install; p=${PACKAGE-default}
7823 case $enableval in
7824 yes) enable_fast_install=yes ;;
7825 no) enable_fast_install=no ;;
7826 *)
7827 enable_fast_install=no
7828 # Look at the argument we got. We use all the common list separators.
7829 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7830 for pkg in $enableval; do
7831 IFS=$lt_save_ifs
7832 if test "X$pkg" = "X$p"; then
7833 enable_fast_install=yes
7834 fi
7835 done
7836 IFS=$lt_save_ifs
7837 ;;
7838 esac
7839 else
7840 enable_fast_install=yes
7841 fi
7842
7843
7844
7845
7846
7847
7848
7849
7850 shared_archive_member_spec=
7851 case $host,$enable_shared in
7852 power*-*-aix[5-9]*,yes)
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7854 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7855
7856 # Check whether --with-aix-soname was given.
7857 if test "${with_aix_soname+set}" = set; then :
7858 withval=$with_aix_soname; case $withval in
7859 aix|svr4|both)
7860 ;;
7861 *)
7862 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7863 ;;
7864 esac
7865 lt_cv_with_aix_soname=$with_aix_soname
7866 else
7867 if ${lt_cv_with_aix_soname+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 lt_cv_with_aix_soname=aix
7871 fi
7872
7873 with_aix_soname=$lt_cv_with_aix_soname
7874 fi
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7877 $as_echo "$with_aix_soname" >&6; }
7878 if test aix != "$with_aix_soname"; then
7879 # For the AIX way of multilib, we name the shared archive member
7880 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7881 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7882 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7883 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7884 if test 64 = "${OBJECT_MODE-32}"; then
7885 shared_archive_member_spec=shr_64
7886 else
7887 shared_archive_member_spec=shr
7888 fi
7889 fi
7890 ;;
7891 *)
7892 with_aix_soname=aix
7893 ;;
7894 esac
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 # This can be used to rebuild libtool when needed
7906 LIBTOOL_DEPS=$ltmain
7907
7908 # Always use our own libtool.
7909 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 test -z "$LN_S" && LN_S="ln -s"
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955 if test -n "${ZSH_VERSION+set}"; then
7956 setopt NO_GLOB_SUBST
7957 fi
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7960 $as_echo_n "checking for objdir... " >&6; }
7961 if ${lt_cv_objdir+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 rm -f .libs 2>/dev/null
7965 mkdir .libs 2>/dev/null
7966 if test -d .libs; then
7967 lt_cv_objdir=.libs
7968 else
7969 # MS-DOS does not allow filenames that begin with a dot.
7970 lt_cv_objdir=_libs
7971 fi
7972 rmdir .libs 2>/dev/null
7973 fi
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7975 $as_echo "$lt_cv_objdir" >&6; }
7976 objdir=$lt_cv_objdir
7977
7978
7979
7980
7981
7982 cat >>confdefs.h <<_ACEOF
7983 #define LT_OBJDIR "$lt_cv_objdir/"
7984 _ACEOF
7985
7986
7987
7988
7989 case $host_os in
7990 aix3*)
7991 # AIX sometimes has problems with the GCC collect2 program. For some
7992 # reason, if we set the COLLECT_NAMES environment variable, the problems
7993 # vanish in a puff of smoke.
7994 if test set != "${COLLECT_NAMES+set}"; then
7995 COLLECT_NAMES=
7996 export COLLECT_NAMES
7997 fi
7998 ;;
7999 esac
8000
8001 # Global variables:
8002 ofile=libtool
8003 can_build_shared=yes
8004
8005 # All known linkers require a '.a' archive for static linking (except MSVC,
8006 # which needs '.lib').
8007 libext=a
8008
8009 with_gnu_ld=$lt_cv_prog_gnu_ld
8010
8011 old_CC=$CC
8012 old_CFLAGS=$CFLAGS
8013
8014 # Set sane defaults for various variables
8015 test -z "$CC" && CC=cc
8016 test -z "$LTCC" && LTCC=$CC
8017 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8018 test -z "$LD" && LD=ld
8019 test -z "$ac_objext" && ac_objext=o
8020
8021 for cc_temp in $compiler""; do
8022 case $cc_temp in
8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8025 \-*) ;;
8026 *) break;;
8027 esac
8028 done
8029 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8030
8031
8032 # Only perform the check for file, if the check method requires it
8033 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8034 case $deplibs_check_method in
8035 file_magic*)
8036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8038 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 case $MAGIC_CMD in
8043 [\\/*] | ?:[\\/]*)
8044 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8045 ;;
8046 *)
8047 lt_save_MAGIC_CMD=$MAGIC_CMD
8048 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8050 for ac_dir in $ac_dummy; do
8051 IFS=$lt_save_ifs
8052 test -z "$ac_dir" && ac_dir=.
8053 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8054 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8055 if test -n "$file_magic_test_file"; then
8056 case $deplibs_check_method in
8057 "file_magic "*)
8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8061 $EGREP "$file_magic_regex" > /dev/null; then
8062 :
8063 else
8064 cat <<_LT_EOF 1>&2
8065
8066 *** Warning: the command libtool uses to detect shared libraries,
8067 *** $file_magic_cmd, produces output that libtool cannot recognize.
8068 *** The result is that libtool may fail to recognize shared libraries
8069 *** as such. This will affect the creation of libtool libraries that
8070 *** depend on shared libraries, but programs linked with such libtool
8071 *** libraries will work regardless of this problem. Nevertheless, you
8072 *** may want to report the problem to your system manager and/or to
8073 *** bug-libtool@gnu.org
8074
8075 _LT_EOF
8076 fi ;;
8077 esac
8078 fi
8079 break
8080 fi
8081 done
8082 IFS=$lt_save_ifs
8083 MAGIC_CMD=$lt_save_MAGIC_CMD
8084 ;;
8085 esac
8086 fi
8087
8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089 if test -n "$MAGIC_CMD"; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8091 $as_echo "$MAGIC_CMD" >&6; }
8092 else
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094 $as_echo "no" >&6; }
8095 fi
8096
8097
8098
8099
8100
8101 if test -z "$lt_cv_path_MAGIC_CMD"; then
8102 if test -n "$ac_tool_prefix"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8104 $as_echo_n "checking for file... " >&6; }
8105 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 case $MAGIC_CMD in
8109 [\\/*] | ?:[\\/]*)
8110 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8111 ;;
8112 *)
8113 lt_save_MAGIC_CMD=$MAGIC_CMD
8114 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116 for ac_dir in $ac_dummy; do
8117 IFS=$lt_save_ifs
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f "$ac_dir/file"; then
8120 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8121 if test -n "$file_magic_test_file"; then
8122 case $deplibs_check_method in
8123 "file_magic "*)
8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127 $EGREP "$file_magic_regex" > /dev/null; then
8128 :
8129 else
8130 cat <<_LT_EOF 1>&2
8131
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such. This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem. Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8140
8141 _LT_EOF
8142 fi ;;
8143 esac
8144 fi
8145 break
8146 fi
8147 done
8148 IFS=$lt_save_ifs
8149 MAGIC_CMD=$lt_save_MAGIC_CMD
8150 ;;
8151 esac
8152 fi
8153
8154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8155 if test -n "$MAGIC_CMD"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8157 $as_echo "$MAGIC_CMD" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163
8164 else
8165 MAGIC_CMD=:
8166 fi
8167 fi
8168
8169 fi
8170 ;;
8171 esac
8172
8173 # Use C for the default configuration in the libtool script
8174
8175 lt_save_CC=$CC
8176 ac_ext=c
8177 ac_cpp='$CPP $CPPFLAGS'
8178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8181
8182
8183 # Source file extension for C test sources.
8184 ac_ext=c
8185
8186 # Object file extension for compiled C test sources.
8187 objext=o
8188 objext=$objext
8189
8190 # Code to be used in simple compile tests
8191 lt_simple_compile_test_code="int some_variable = 0;"
8192
8193 # Code to be used in simple link tests
8194 lt_simple_link_test_code='int main(){return(0);}'
8195
8196
8197
8198
8199
8200
8201
8202 # If no C compiler was specified, use CC.
8203 LTCC=${LTCC-"$CC"}
8204
8205 # If no C compiler flags were specified, use CFLAGS.
8206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8207
8208 # Allow CC to be a program name with arguments.
8209 compiler=$CC
8210
8211 # Save the default compiler, since it gets overwritten when the other
8212 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8213 compiler_DEFAULT=$CC
8214
8215 # save warnings/boilerplate of simple test code
8216 ac_outfile=conftest.$ac_objext
8217 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8218 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8219 _lt_compiler_boilerplate=`cat conftest.err`
8220 $RM conftest*
8221
8222 ac_outfile=conftest.$ac_objext
8223 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8224 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8225 _lt_linker_boilerplate=`cat conftest.err`
8226 $RM -r conftest*
8227
8228
8229 if test -n "$compiler"; then
8230
8231 lt_prog_compiler_no_builtin_flag=
8232
8233 if test yes = "$GCC"; then
8234 case $cc_basename in
8235 nvcc*)
8236 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8237 *)
8238 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8239 esac
8240
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8242 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8243 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 lt_cv_prog_compiler_rtti_exceptions=no
8247 ac_outfile=conftest.$ac_objext
8248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8249 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8250 # Insert the option either (1) after the last *FLAGS variable, or
8251 # (2) before a word containing "conftest.", or (3) at the end.
8252 # Note that $ac_compile itself does not contain backslashes and begins
8253 # with a dollar sign (not a hyphen), so the echo should work correctly.
8254 # The option is referenced via a variable to avoid confusing sed.
8255 lt_compile=`echo "$ac_compile" | $SED \
8256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8258 -e 's:$: $lt_compiler_flag:'`
8259 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8260 (eval "$lt_compile" 2>conftest.err)
8261 ac_status=$?
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 if (exit $ac_status) && test -s "$ac_outfile"; then
8265 # The compiler can only warn and ignore the option if not recognized
8266 # So say no if there are warnings other than the usual output.
8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8270 lt_cv_prog_compiler_rtti_exceptions=yes
8271 fi
8272 fi
8273 $RM conftest*
8274
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8277 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8278
8279 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8280 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8281 else
8282 :
8283 fi
8284
8285 fi
8286
8287
8288
8289
8290
8291
8292 lt_prog_compiler_wl=
8293 lt_prog_compiler_pic=
8294 lt_prog_compiler_static=
8295
8296
8297 if test yes = "$GCC"; then
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_static='-static'
8300
8301 case $host_os in
8302 aix*)
8303 # All AIX code is PIC.
8304 if test ia64 = "$host_cpu"; then
8305 # AIX 5 now supports IA64 processor
8306 lt_prog_compiler_static='-Bstatic'
8307 fi
8308 lt_prog_compiler_pic='-fPIC'
8309 ;;
8310
8311 amigaos*)
8312 case $host_cpu in
8313 powerpc)
8314 # see comment about AmigaOS4 .so support
8315 lt_prog_compiler_pic='-fPIC'
8316 ;;
8317 m68k)
8318 # FIXME: we need at least 68020 code to build shared libraries, but
8319 # adding the '-m68020' flag to GCC prevents building anything better,
8320 # like '-m68040'.
8321 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8322 ;;
8323 esac
8324 ;;
8325
8326 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8327 # PIC is the default for these OSes.
8328 ;;
8329
8330 mingw* | cygwin* | pw32* | os2* | cegcc*)
8331 # This hack is so that the source file can tell whether it is being
8332 # built for inclusion in a dll (and should export symbols for example).
8333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8334 # (--disable-auto-import) libraries
8335 lt_prog_compiler_pic='-DDLL_EXPORT'
8336 case $host_os in
8337 os2*)
8338 lt_prog_compiler_static='$wl-static'
8339 ;;
8340 esac
8341 ;;
8342
8343 darwin* | rhapsody*)
8344 # PIC is the default on this platform
8345 # Common symbols not allowed in MH_DYLIB files
8346 lt_prog_compiler_pic='-fno-common'
8347 ;;
8348
8349 haiku*)
8350 # PIC is the default for Haiku.
8351 # The "-static" flag exists, but is broken.
8352 lt_prog_compiler_static=
8353 ;;
8354
8355 hpux*)
8356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8358 # sets the default TLS model and affects inlining.
8359 case $host_cpu in
8360 hppa*64*)
8361 # +Z the default
8362 ;;
8363 *)
8364 lt_prog_compiler_pic='-fPIC'
8365 ;;
8366 esac
8367 ;;
8368
8369 interix[3-9]*)
8370 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8371 # Instead, we relocate shared libraries at runtime.
8372 ;;
8373
8374 msdosdjgpp*)
8375 # Just because we use GCC doesn't mean we suddenly get shared libraries
8376 # on systems that don't support them.
8377 lt_prog_compiler_can_build_shared=no
8378 enable_shared=no
8379 ;;
8380
8381 *nto* | *qnx*)
8382 # QNX uses GNU C++, but need to define -shared option too, otherwise
8383 # it will coredump.
8384 lt_prog_compiler_pic='-fPIC -shared'
8385 ;;
8386
8387 sysv4*MP*)
8388 if test -d /usr/nec; then
8389 lt_prog_compiler_pic=-Kconform_pic
8390 fi
8391 ;;
8392
8393 *)
8394 lt_prog_compiler_pic='-fPIC'
8395 ;;
8396 esac
8397
8398 case $cc_basename in
8399 nvcc*) # Cuda Compiler Driver 2.2
8400 lt_prog_compiler_wl='-Xlinker '
8401 if test -n "$lt_prog_compiler_pic"; then
8402 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8403 fi
8404 ;;
8405 esac
8406 else
8407 # PORTME Check for flag to pass linker flags through the system compiler.
8408 case $host_os in
8409 aix*)
8410 lt_prog_compiler_wl='-Wl,'
8411 if test ia64 = "$host_cpu"; then
8412 # AIX 5 now supports IA64 processor
8413 lt_prog_compiler_static='-Bstatic'
8414 else
8415 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8416 fi
8417 ;;
8418
8419 darwin* | rhapsody*)
8420 # PIC is the default on this platform
8421 # Common symbols not allowed in MH_DYLIB files
8422 lt_prog_compiler_pic='-fno-common'
8423 case $cc_basename in
8424 nagfor*)
8425 # NAG Fortran compiler
8426 lt_prog_compiler_wl='-Wl,-Wl,,'
8427 lt_prog_compiler_pic='-PIC'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430 esac
8431 ;;
8432
8433 mingw* | cygwin* | pw32* | os2* | cegcc*)
8434 # This hack is so that the source file can tell whether it is being
8435 # built for inclusion in a dll (and should export symbols for example).
8436 lt_prog_compiler_pic='-DDLL_EXPORT'
8437 case $host_os in
8438 os2*)
8439 lt_prog_compiler_static='$wl-static'
8440 ;;
8441 esac
8442 ;;
8443
8444 hpux9* | hpux10* | hpux11*)
8445 lt_prog_compiler_wl='-Wl,'
8446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8447 # not for PA HP-UX.
8448 case $host_cpu in
8449 hppa*64*|ia64*)
8450 # +Z the default
8451 ;;
8452 *)
8453 lt_prog_compiler_pic='+Z'
8454 ;;
8455 esac
8456 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8457 lt_prog_compiler_static='$wl-a ${wl}archive'
8458 ;;
8459
8460 irix5* | irix6* | nonstopux*)
8461 lt_prog_compiler_wl='-Wl,'
8462 # PIC (with -KPIC) is the default.
8463 lt_prog_compiler_static='-non_shared'
8464 ;;
8465
8466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8467 case $cc_basename in
8468 # old Intel for x86_64, which still supported -KPIC.
8469 ecc*)
8470 lt_prog_compiler_wl='-Wl,'
8471 lt_prog_compiler_pic='-KPIC'
8472 lt_prog_compiler_static='-static'
8473 ;;
8474 # icc used to be incompatible with GCC.
8475 # ICC 10 doesn't accept -KPIC any more.
8476 icc* | ifort*)
8477 lt_prog_compiler_wl='-Wl,'
8478 lt_prog_compiler_pic='-fPIC'
8479 lt_prog_compiler_static='-static'
8480 ;;
8481 # Lahey Fortran 8.1.
8482 lf95*)
8483 lt_prog_compiler_wl='-Wl,'
8484 lt_prog_compiler_pic='--shared'
8485 lt_prog_compiler_static='--static'
8486 ;;
8487 nagfor*)
8488 # NAG Fortran compiler
8489 lt_prog_compiler_wl='-Wl,-Wl,,'
8490 lt_prog_compiler_pic='-PIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493 tcc*)
8494 # Fabrice Bellard et al's Tiny C Compiler
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-fPIC'
8497 lt_prog_compiler_static='-static'
8498 ;;
8499 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8500 # Portland Group compilers (*not* the Pentium gcc compiler,
8501 # which looks to be a dead project)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-fpic'
8504 lt_prog_compiler_static='-Bstatic'
8505 ;;
8506 ccc*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # All Alpha code is PIC.
8509 lt_prog_compiler_static='-non_shared'
8510 ;;
8511 xl* | bgxl* | bgf* | mpixl*)
8512 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-qpic'
8515 lt_prog_compiler_static='-qstaticlink'
8516 ;;
8517 *)
8518 case `$CC -V 2>&1 | sed 5q` in
8519 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8520 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 lt_prog_compiler_wl=''
8524 ;;
8525 *Sun\ F* | *Sun*Fortran*)
8526 lt_prog_compiler_pic='-KPIC'
8527 lt_prog_compiler_static='-Bstatic'
8528 lt_prog_compiler_wl='-Qoption ld '
8529 ;;
8530 *Sun\ C*)
8531 # Sun C 5.9
8532 lt_prog_compiler_pic='-KPIC'
8533 lt_prog_compiler_static='-Bstatic'
8534 lt_prog_compiler_wl='-Wl,'
8535 ;;
8536 *Intel*\ [CF]*Compiler*)
8537 lt_prog_compiler_wl='-Wl,'
8538 lt_prog_compiler_pic='-fPIC'
8539 lt_prog_compiler_static='-static'
8540 ;;
8541 *Portland\ Group*)
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-fpic'
8544 lt_prog_compiler_static='-Bstatic'
8545 ;;
8546 esac
8547 ;;
8548 esac
8549 ;;
8550
8551 newsos6)
8552 lt_prog_compiler_pic='-KPIC'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555
8556 *nto* | *qnx*)
8557 # QNX uses GNU C++, but need to define -shared option too, otherwise
8558 # it will coredump.
8559 lt_prog_compiler_pic='-fPIC -shared'
8560 ;;
8561
8562 osf3* | osf4* | osf5*)
8563 lt_prog_compiler_wl='-Wl,'
8564 # All OSF/1 code is PIC.
8565 lt_prog_compiler_static='-non_shared'
8566 ;;
8567
8568 rdos*)
8569 lt_prog_compiler_static='-non_shared'
8570 ;;
8571
8572 solaris*)
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 case $cc_basename in
8576 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8577 lt_prog_compiler_wl='-Qoption ld ';;
8578 *)
8579 lt_prog_compiler_wl='-Wl,';;
8580 esac
8581 ;;
8582
8583 sunos4*)
8584 lt_prog_compiler_wl='-Qoption ld '
8585 lt_prog_compiler_pic='-PIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 sysv4 | sysv4.2uw2* | sysv4.3*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 ;;
8594
8595 sysv4*MP*)
8596 if test -d /usr/nec; then
8597 lt_prog_compiler_pic='-Kconform_pic'
8598 lt_prog_compiler_static='-Bstatic'
8599 fi
8600 ;;
8601
8602 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='-KPIC'
8605 lt_prog_compiler_static='-Bstatic'
8606 ;;
8607
8608 unicos*)
8609 lt_prog_compiler_wl='-Wl,'
8610 lt_prog_compiler_can_build_shared=no
8611 ;;
8612
8613 uts4*)
8614 lt_prog_compiler_pic='-pic'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 *)
8619 lt_prog_compiler_can_build_shared=no
8620 ;;
8621 esac
8622 fi
8623
8624 case $host_os in
8625 # For platforms that do not support PIC, -DPIC is meaningless:
8626 *djgpp*)
8627 lt_prog_compiler_pic=
8628 ;;
8629 *)
8630 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8631 ;;
8632 esac
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8635 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8636 if ${lt_cv_prog_compiler_pic+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8642 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8643 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8644
8645 #
8646 # Check to make sure the PIC flag actually works.
8647 #
8648 if test -n "$lt_prog_compiler_pic"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8651 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 lt_cv_prog_compiler_pic_works=no
8655 ac_outfile=conftest.$ac_objext
8656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8657 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8658 # Insert the option either (1) after the last *FLAGS variable, or
8659 # (2) before a word containing "conftest.", or (3) at the end.
8660 # Note that $ac_compile itself does not contain backslashes and begins
8661 # with a dollar sign (not a hyphen), so the echo should work correctly.
8662 # The option is referenced via a variable to avoid confusing sed.
8663 lt_compile=`echo "$ac_compile" | $SED \
8664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8666 -e 's:$: $lt_compiler_flag:'`
8667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8668 (eval "$lt_compile" 2>conftest.err)
8669 ac_status=$?
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 if (exit $ac_status) && test -s "$ac_outfile"; then
8673 # The compiler can only warn and ignore the option if not recognized
8674 # So say no if there are warnings other than the usual output.
8675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8678 lt_cv_prog_compiler_pic_works=yes
8679 fi
8680 fi
8681 $RM conftest*
8682
8683 fi
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8685 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8686
8687 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8688 case $lt_prog_compiler_pic in
8689 "" | " "*) ;;
8690 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8691 esac
8692 else
8693 lt_prog_compiler_pic=
8694 lt_prog_compiler_can_build_shared=no
8695 fi
8696
8697 fi
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709 #
8710 # Check to make sure the static flag actually works.
8711 #
8712 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8715 if ${lt_cv_prog_compiler_static_works+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 lt_cv_prog_compiler_static_works=no
8719 save_LDFLAGS=$LDFLAGS
8720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8723 # The linker can only warn and ignore the option if not recognized
8724 # So say no if there are warnings
8725 if test -s conftest.err; then
8726 # Append any errors to the config.log.
8727 cat conftest.err 1>&5
8728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730 if diff conftest.exp conftest.er2 >/dev/null; then
8731 lt_cv_prog_compiler_static_works=yes
8732 fi
8733 else
8734 lt_cv_prog_compiler_static_works=yes
8735 fi
8736 fi
8737 $RM -r conftest*
8738 LDFLAGS=$save_LDFLAGS
8739
8740 fi
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8742 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8743
8744 if test yes = "$lt_cv_prog_compiler_static_works"; then
8745 :
8746 else
8747 lt_prog_compiler_static=
8748 fi
8749
8750
8751
8752
8753
8754
8755
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8758 if ${lt_cv_prog_compiler_c_o+:} false; then :
8759 $as_echo_n "(cached) " >&6
8760 else
8761 lt_cv_prog_compiler_c_o=no
8762 $RM -r conftest 2>/dev/null
8763 mkdir conftest
8764 cd conftest
8765 mkdir out
8766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8767
8768 lt_compiler_flag="-o out/conftest2.$ac_objext"
8769 # Insert the option either (1) after the last *FLAGS variable, or
8770 # (2) before a word containing "conftest.", or (3) at the end.
8771 # Note that $ac_compile itself does not contain backslashes and begins
8772 # with a dollar sign (not a hyphen), so the echo should work correctly.
8773 lt_compile=`echo "$ac_compile" | $SED \
8774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8776 -e 's:$: $lt_compiler_flag:'`
8777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8778 (eval "$lt_compile" 2>out/conftest.err)
8779 ac_status=$?
8780 cat out/conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8783 then
8784 # The compiler can only warn and ignore the option if not recognized
8785 # So say no if there are warnings
8786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8789 lt_cv_prog_compiler_c_o=yes
8790 fi
8791 fi
8792 chmod u+w . 2>&5
8793 $RM conftest*
8794 # SGI C++ compiler will create directory out/ii_files/ for
8795 # template instantiation
8796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8797 $RM out/* && rmdir out
8798 cd ..
8799 $RM -r conftest
8800 $RM conftest*
8801
8802 fi
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8804 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8805
8806
8807
8808
8809
8810
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8813 if ${lt_cv_prog_compiler_c_o+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 lt_cv_prog_compiler_c_o=no
8817 $RM -r conftest 2>/dev/null
8818 mkdir conftest
8819 cd conftest
8820 mkdir out
8821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8822
8823 lt_compiler_flag="-o out/conftest2.$ac_objext"
8824 # Insert the option either (1) after the last *FLAGS variable, or
8825 # (2) before a word containing "conftest.", or (3) at the end.
8826 # Note that $ac_compile itself does not contain backslashes and begins
8827 # with a dollar sign (not a hyphen), so the echo should work correctly.
8828 lt_compile=`echo "$ac_compile" | $SED \
8829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831 -e 's:$: $lt_compiler_flag:'`
8832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8833 (eval "$lt_compile" 2>out/conftest.err)
8834 ac_status=$?
8835 cat out/conftest.err >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8838 then
8839 # The compiler can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_c_o=yes
8845 fi
8846 fi
8847 chmod u+w . 2>&5
8848 $RM conftest*
8849 # SGI C++ compiler will create directory out/ii_files/ for
8850 # template instantiation
8851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8852 $RM out/* && rmdir out
8853 cd ..
8854 $RM -r conftest
8855 $RM conftest*
8856
8857 fi
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8860
8861
8862
8863
8864 hard_links=nottested
8865 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8866 # do not overwrite the value of need_locks provided by the user
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8868 $as_echo_n "checking if we can lock with hard links... " >&6; }
8869 hard_links=yes
8870 $RM conftest*
8871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8872 touch conftest.a
8873 ln conftest.a conftest.b 2>&5 || hard_links=no
8874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8876 $as_echo "$hard_links" >&6; }
8877 if test no = "$hard_links"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8879 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8880 need_locks=warn
8881 fi
8882 else
8883 need_locks=no
8884 fi
8885
8886
8887
8888
8889
8890
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8892 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8893
8894 runpath_var=
8895 allow_undefined_flag=
8896 always_export_symbols=no
8897 archive_cmds=
8898 archive_expsym_cmds=
8899 compiler_needs_object=no
8900 enable_shared_with_static_runtimes=no
8901 export_dynamic_flag_spec=
8902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8903 hardcode_automatic=no
8904 hardcode_direct=no
8905 hardcode_direct_absolute=no
8906 hardcode_libdir_flag_spec=
8907 hardcode_libdir_separator=
8908 hardcode_minus_L=no
8909 hardcode_shlibpath_var=unsupported
8910 inherit_rpath=no
8911 link_all_deplibs=unknown
8912 module_cmds=
8913 module_expsym_cmds=
8914 old_archive_from_new_cmds=
8915 old_archive_from_expsyms_cmds=
8916 thread_safe_flag_spec=
8917 whole_archive_flag_spec=
8918 # include_expsyms should be a list of space-separated symbols to be *always*
8919 # included in the symbol list
8920 include_expsyms=
8921 # exclude_expsyms can be an extended regexp of symbols to exclude
8922 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8923 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8924 # as well as any symbol that contains 'd'.
8925 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8927 # platforms (ab)use it in PIC code, but their linkers get confused if
8928 # the symbol is explicitly referenced. Since portable code cannot
8929 # rely on this symbol name, it's probably fine to never include it in
8930 # preloaded symbol tables.
8931 # Exclude shared library initialization/finalization symbols.
8932 extract_expsyms_cmds=
8933
8934 case $host_os in
8935 cygwin* | mingw* | pw32* | cegcc*)
8936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937 # When not using gcc, we currently assume that we are using
8938 # Microsoft Visual C++.
8939 if test yes != "$GCC"; then
8940 with_gnu_ld=no
8941 fi
8942 ;;
8943 interix*)
8944 # we just hope/assume this is gcc and not c89 (= MSVC++)
8945 with_gnu_ld=yes
8946 ;;
8947 openbsd* | bitrig*)
8948 with_gnu_ld=no
8949 ;;
8950 esac
8951
8952 ld_shlibs=yes
8953
8954 # On some targets, GNU ld is compatible enough with the native linker
8955 # that we're better off using the native interface for both.
8956 lt_use_gnu_ld_interface=no
8957 if test yes = "$with_gnu_ld"; then
8958 case $host_os in
8959 aix*)
8960 # The AIX port of GNU ld has always aspired to compatibility
8961 # with the native linker. However, as the warning in the GNU ld
8962 # block says, versions before 2.19.5* couldn't really create working
8963 # shared libraries, regardless of the interface used.
8964 case `$LD -v 2>&1` in
8965 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8966 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8967 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8968 *)
8969 lt_use_gnu_ld_interface=yes
8970 ;;
8971 esac
8972 ;;
8973 *)
8974 lt_use_gnu_ld_interface=yes
8975 ;;
8976 esac
8977 fi
8978
8979 if test yes = "$lt_use_gnu_ld_interface"; then
8980 # If archive_cmds runs LD, not CC, wlarc should be empty
8981 wlarc='$wl'
8982
8983 # Set some defaults for GNU ld with shared library support. These
8984 # are reset later if shared libraries are not supported. Putting them
8985 # here allows them to be overridden if necessary.
8986 runpath_var=LD_RUN_PATH
8987 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8988 export_dynamic_flag_spec='$wl--export-dynamic'
8989 # ancient GNU ld didn't support --whole-archive et. al.
8990 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8991 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8992 else
8993 whole_archive_flag_spec=
8994 fi
8995 supports_anon_versioning=no
8996 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8997 *GNU\ gold*) supports_anon_versioning=yes ;;
8998 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8999 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9000 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9001 *\ 2.11.*) ;; # other 2.11 versions
9002 *) supports_anon_versioning=yes ;;
9003 esac
9004
9005 # See if GNU ld supports shared libraries.
9006 case $host_os in
9007 aix[3-9]*)
9008 # On AIX/PPC, the GNU linker is very broken
9009 if test ia64 != "$host_cpu"; then
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9012
9013 *** Warning: the GNU linker, at least up to release 2.19, is reported
9014 *** to be unable to reliably create shared libraries on AIX.
9015 *** Therefore, libtool is disabling shared libraries support. If you
9016 *** really care for shared libraries, you may want to install binutils
9017 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9018 *** You will then need to restart the configuration process.
9019
9020 _LT_EOF
9021 fi
9022 ;;
9023
9024 amigaos*)
9025 case $host_cpu in
9026 powerpc)
9027 # see comment about AmigaOS4 .so support
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9029 archive_expsym_cmds=''
9030 ;;
9031 m68k)
9032 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)'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_minus_L=yes
9035 ;;
9036 esac
9037 ;;
9038
9039 beos*)
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041 allow_undefined_flag=unsupported
9042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9043 # support --undefined. This deserves some investigation. FIXME
9044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 cygwin* | mingw* | pw32* | cegcc*)
9051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9052 # as there is no search path for DLLs.
9053 hardcode_libdir_flag_spec='-L$libdir'
9054 export_dynamic_flag_spec='$wl--export-all-symbols'
9055 allow_undefined_flag=unsupported
9056 always_export_symbols=no
9057 enable_shared_with_static_runtimes=yes
9058 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'
9059 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9060
9061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9063 # If the export-symbols file already is a .def file, use it as
9064 # is; otherwise, prepend EXPORTS...
9065 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9066 cp $export_symbols $output_objdir/$soname.def;
9067 else
9068 echo EXPORTS > $output_objdir/$soname.def;
9069 cat $export_symbols >> $output_objdir/$soname.def;
9070 fi~
9071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9072 else
9073 ld_shlibs=no
9074 fi
9075 ;;
9076
9077 haiku*)
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9079 link_all_deplibs=yes
9080 ;;
9081
9082 os2*)
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9085 allow_undefined_flag=unsupported
9086 shrext_cmds=.dll
9087 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9088 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9089 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9090 $ECHO EXPORTS >> $output_objdir/$libname.def~
9091 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9093 emximp -o $lib $output_objdir/$libname.def'
9094 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9095 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9096 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9097 $ECHO EXPORTS >> $output_objdir/$libname.def~
9098 prefix_cmds="$SED"~
9099 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9100 prefix_cmds="$prefix_cmds -e 1d";
9101 fi~
9102 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9103 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9105 emximp -o $lib $output_objdir/$libname.def'
9106 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9107 enable_shared_with_static_runtimes=yes
9108 ;;
9109
9110 interix[3-9]*)
9111 hardcode_direct=no
9112 hardcode_shlibpath_var=no
9113 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9114 export_dynamic_flag_spec='$wl-E'
9115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9116 # Instead, shared libraries are loaded at an image base (0x10000000 by
9117 # default) and relocated if they conflict, which is a slow very memory
9118 # consuming and fragmenting process. To avoid this, we pick a random,
9119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9122 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'
9123 ;;
9124
9125 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9126 tmp_diet=no
9127 if test linux-dietlibc = "$host_os"; then
9128 case $cc_basename in
9129 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9130 esac
9131 fi
9132 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9133 && test no = "$tmp_diet"
9134 then
9135 tmp_addflag=' $pic_flag'
9136 tmp_sharedflag='-shared'
9137 case $cc_basename,$host_cpu in
9138 pgcc*) # Portland Group C compiler
9139 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'
9140 tmp_addflag=' $pic_flag'
9141 ;;
9142 pgf77* | pgf90* | pgf95* | pgfortran*)
9143 # Portland Group f77 and f90 compilers
9144 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'
9145 tmp_addflag=' $pic_flag -Mnomain' ;;
9146 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9147 tmp_addflag=' -i_dynamic' ;;
9148 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9149 tmp_addflag=' -i_dynamic -nofor_main' ;;
9150 ifc* | ifort*) # Intel Fortran compiler
9151 tmp_addflag=' -nofor_main' ;;
9152 lf95*) # Lahey Fortran 8.1
9153 whole_archive_flag_spec=
9154 tmp_sharedflag='--shared' ;;
9155 nagfor*) # NAGFOR 5.3
9156 tmp_sharedflag='-Wl,-shared' ;;
9157 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9158 tmp_sharedflag='-qmkshrobj'
9159 tmp_addflag= ;;
9160 nvcc*) # Cuda Compiler Driver 2.2
9161 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'
9162 compiler_needs_object=yes
9163 ;;
9164 esac
9165 case `$CC -V 2>&1 | sed 5q` in
9166 *Sun\ C*) # Sun C 5.9
9167 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'
9168 compiler_needs_object=yes
9169 tmp_sharedflag='-G' ;;
9170 *Sun\ F*) # Sun Fortran 8.3
9171 tmp_sharedflag='-G' ;;
9172 esac
9173 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9174
9175 if test yes = "$supports_anon_versioning"; then
9176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178 echo "local: *; };" >> $output_objdir/$libname.ver~
9179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9180 fi
9181
9182 case $cc_basename in
9183 tcc*)
9184 export_dynamic_flag_spec='-rdynamic'
9185 ;;
9186 xlf* | bgf* | bgxlf* | mpixlf*)
9187 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9188 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9190 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9191 if test yes = "$supports_anon_versioning"; then
9192 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9193 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9194 echo "local: *; };" >> $output_objdir/$libname.ver~
9195 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9196 fi
9197 ;;
9198 esac
9199 else
9200 ld_shlibs=no
9201 fi
9202 ;;
9203
9204 netbsd*)
9205 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9206 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9207 wlarc=
9208 else
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9211 fi
9212 ;;
9213
9214 solaris*)
9215 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9216 ld_shlibs=no
9217 cat <<_LT_EOF 1>&2
9218
9219 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9220 *** create shared libraries on Solaris systems. Therefore, libtool
9221 *** is disabling shared libraries support. We urge you to upgrade GNU
9222 *** binutils to release 2.9.1 or newer. Another option is to modify
9223 *** your PATH or compiler configuration so that the native linker is
9224 *** used, and then restart.
9225
9226 _LT_EOF
9227 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9229 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9230 else
9231 ld_shlibs=no
9232 fi
9233 ;;
9234
9235 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9236 case `$LD -v 2>&1` in
9237 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9238 ld_shlibs=no
9239 cat <<_LT_EOF 1>&2
9240
9241 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9242 *** reliably create shared libraries on SCO systems. Therefore, libtool
9243 *** is disabling shared libraries support. We urge you to upgrade GNU
9244 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9245 *** your PATH or compiler configuration so that the native linker is
9246 *** used, and then restart.
9247
9248 _LT_EOF
9249 ;;
9250 *)
9251 # For security reasons, it is highly recommended that you always
9252 # use absolute paths for naming shared libraries, and exclude the
9253 # DT_RUNPATH tag from executables and libraries. But doing so
9254 # requires that you compile everything twice, which is a pain.
9255 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9259 else
9260 ld_shlibs=no
9261 fi
9262 ;;
9263 esac
9264 ;;
9265
9266 sunos4*)
9267 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9268 wlarc=
9269 hardcode_direct=yes
9270 hardcode_shlibpath_var=no
9271 ;;
9272
9273 *)
9274 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9277 else
9278 ld_shlibs=no
9279 fi
9280 ;;
9281 esac
9282
9283 if test no = "$ld_shlibs"; then
9284 runpath_var=
9285 hardcode_libdir_flag_spec=
9286 export_dynamic_flag_spec=
9287 whole_archive_flag_spec=
9288 fi
9289 else
9290 # PORTME fill in a description of your system's linker (not GNU ld)
9291 case $host_os in
9292 aix3*)
9293 allow_undefined_flag=unsupported
9294 always_export_symbols=yes
9295 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'
9296 # Note: this linker hardcodes the directories in LIBPATH if there
9297 # are no directories specified by -L.
9298 hardcode_minus_L=yes
9299 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9300 # Neither direct hardcoding nor static linking is supported with a
9301 # broken collect2.
9302 hardcode_direct=unsupported
9303 fi
9304 ;;
9305
9306 aix[4-9]*)
9307 if test ia64 = "$host_cpu"; then
9308 # On IA64, the linker does run time linking by default, so we don't
9309 # have to do anything special.
9310 aix_use_runtimelinking=no
9311 exp_sym_flag='-Bexport'
9312 no_entry_flag=
9313 else
9314 # If we're using GNU nm, then we don't want the "-C" option.
9315 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9316 # Without the "-l" option, or with the "-B" option, AIX nm treats
9317 # weak defined symbols like other global defined symbols, whereas
9318 # GNU nm marks them as "W".
9319 # While the 'weak' keyword is ignored in the Export File, we need
9320 # it in the Import File for the 'aix-soname' feature, so we have
9321 # to replace the "-B" option with "-P" for AIX nm.
9322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323 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'
9324 else
9325 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'
9326 fi
9327 aix_use_runtimelinking=no
9328
9329 # Test if we are trying to use run time linking or normal
9330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331 # have runtime linking enabled, and use it for executables.
9332 # For shared libraries, we enable/disable runtime linking
9333 # depending on the kind of the shared library created -
9334 # when "with_aix_soname,aix_use_runtimelinking" is:
9335 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9336 # "aix,yes" lib.so shared, rtl:yes, for executables
9337 # lib.a static archive
9338 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9339 # lib.a(lib.so.V) shared, rtl:no, for executables
9340 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9341 # lib.a(lib.so.V) shared, rtl:no
9342 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9343 # lib.a static archive
9344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9345 for ld_flag in $LDFLAGS; do
9346 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9347 aix_use_runtimelinking=yes
9348 break
9349 fi
9350 done
9351 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9352 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9353 # so we don't have lib.a shared libs to link our executables.
9354 # We have to force runtime linking in this case.
9355 aix_use_runtimelinking=yes
9356 LDFLAGS="$LDFLAGS -Wl,-brtl"
9357 fi
9358 ;;
9359 esac
9360
9361 exp_sym_flag='-bexport'
9362 no_entry_flag='-bnoentry'
9363 fi
9364
9365 # When large executables or shared objects are built, AIX ld can
9366 # have problems creating the table of contents. If linking a library
9367 # or program results in "error TOC overflow" add -mminimal-toc to
9368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9370
9371 archive_cmds=''
9372 hardcode_direct=yes
9373 hardcode_direct_absolute=yes
9374 hardcode_libdir_separator=':'
9375 link_all_deplibs=yes
9376 file_list_spec='$wl-f,'
9377 case $with_aix_soname,$aix_use_runtimelinking in
9378 aix,*) ;; # traditional, no import file
9379 svr4,* | *,yes) # use import file
9380 # The Import File defines what to hardcode.
9381 hardcode_direct=no
9382 hardcode_direct_absolute=no
9383 ;;
9384 esac
9385
9386 if test yes = "$GCC"; then
9387 case $host_os in aix4.[012]|aix4.[012].*)
9388 # We only want to do this on AIX 4.2 and lower, the check
9389 # below for broken collect2 doesn't work under 4.3+
9390 collect2name=`$CC -print-prog-name=collect2`
9391 if test -f "$collect2name" &&
9392 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9393 then
9394 # We have reworked collect2
9395 :
9396 else
9397 # We have old collect2
9398 hardcode_direct=unsupported
9399 # It fails to find uninstalled libraries when the uninstalled
9400 # path is not listed in the libpath. Setting hardcode_minus_L
9401 # to unsupported forces relinking
9402 hardcode_minus_L=yes
9403 hardcode_libdir_flag_spec='-L$libdir'
9404 hardcode_libdir_separator=
9405 fi
9406 ;;
9407 esac
9408 shared_flag='-shared'
9409 if test yes = "$aix_use_runtimelinking"; then
9410 shared_flag="$shared_flag "'$wl-G'
9411 fi
9412 # Need to ensure runtime linking is disabled for the traditional
9413 # shared library, or the linker may eventually find shared libraries
9414 # /with/ Import File - we do not want to mix them.
9415 shared_flag_aix='-shared'
9416 shared_flag_svr4='-shared $wl-G'
9417 else
9418 # not using gcc
9419 if test ia64 = "$host_cpu"; then
9420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9421 # chokes on -Wl,-G. The following line is correct:
9422 shared_flag='-G'
9423 else
9424 if test yes = "$aix_use_runtimelinking"; then
9425 shared_flag='$wl-G'
9426 else
9427 shared_flag='$wl-bM:SRE'
9428 fi
9429 shared_flag_aix='$wl-bM:SRE'
9430 shared_flag_svr4='$wl-G'
9431 fi
9432 fi
9433
9434 export_dynamic_flag_spec='$wl-bexpall'
9435 # It seems that -bexpall does not export symbols beginning with
9436 # underscore (_), so it is better to generate a list of symbols to export.
9437 always_export_symbols=yes
9438 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9439 # Warning - without using the other runtime loading flags (-brtl),
9440 # -berok will link without error, but may produce a broken library.
9441 allow_undefined_flag='-berok'
9442 # Determine the default libpath from the value encoded in an
9443 # empty executable.
9444 if test set = "${lt_cv_aix_libpath+set}"; then
9445 aix_libpath=$lt_cv_aix_libpath
9446 else
9447 if ${lt_cv_aix_libpath_+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452
9453 int
9454 main ()
9455 {
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462
9463 lt_aix_libpath_sed='
9464 /Import File Strings/,/^$/ {
9465 /^0/ {
9466 s/^0 *\([^ ]*\) *$/\1/
9467 p
9468 }
9469 }'
9470 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471 # Check for a 64-bit object if we didn't find anything.
9472 if test -z "$lt_cv_aix_libpath_"; then
9473 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 fi
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 if test -z "$lt_cv_aix_libpath_"; then
9479 lt_cv_aix_libpath_=/usr/lib:/lib
9480 fi
9481
9482 fi
9483
9484 aix_libpath=$lt_cv_aix_libpath_
9485 fi
9486
9487 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9488 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
9489 else
9490 if test ia64 = "$host_cpu"; then
9491 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9492 allow_undefined_flag="-z nodefs"
9493 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"
9494 else
9495 # Determine the default libpath from the value encoded in an
9496 # empty executable.
9497 if test set = "${lt_cv_aix_libpath+set}"; then
9498 aix_libpath=$lt_cv_aix_libpath
9499 else
9500 if ${lt_cv_aix_libpath_+:} false; then :
9501 $as_echo_n "(cached) " >&6
9502 else
9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504 /* end confdefs.h. */
9505
9506 int
9507 main ()
9508 {
9509
9510 ;
9511 return 0;
9512 }
9513 _ACEOF
9514 if ac_fn_c_try_link "$LINENO"; then :
9515
9516 lt_aix_libpath_sed='
9517 /Import File Strings/,/^$/ {
9518 /^0/ {
9519 s/^0 *\([^ ]*\) *$/\1/
9520 p
9521 }
9522 }'
9523 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524 # Check for a 64-bit object if we didn't find anything.
9525 if test -z "$lt_cv_aix_libpath_"; then
9526 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527 fi
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext \
9530 conftest$ac_exeext conftest.$ac_ext
9531 if test -z "$lt_cv_aix_libpath_"; then
9532 lt_cv_aix_libpath_=/usr/lib:/lib
9533 fi
9534
9535 fi
9536
9537 aix_libpath=$lt_cv_aix_libpath_
9538 fi
9539
9540 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9541 # Warning - without using the other run time loading flags,
9542 # -berok will link without error, but may produce a broken library.
9543 no_undefined_flag=' $wl-bernotok'
9544 allow_undefined_flag=' $wl-berok'
9545 if test yes = "$with_gnu_ld"; then
9546 # We only use this code for GNU lds that support --whole-archive.
9547 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9548 else
9549 # Exported symbols can be pulled into shared objects from archives
9550 whole_archive_flag_spec='$convenience'
9551 fi
9552 archive_cmds_need_lc=yes
9553 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9554 # -brtl affects multiple linker settings, -berok does not and is overridden later
9555 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9556 if test svr4 != "$with_aix_soname"; then
9557 # This is similar to how AIX traditionally builds its shared libraries.
9558 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'
9559 fi
9560 if test aix != "$with_aix_soname"; then
9561 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'
9562 else
9563 # used by -dlpreopen to get the symbols
9564 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9565 fi
9566 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9567 fi
9568 fi
9569 ;;
9570
9571 amigaos*)
9572 case $host_cpu in
9573 powerpc)
9574 # see comment about AmigaOS4 .so support
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9576 archive_expsym_cmds=''
9577 ;;
9578 m68k)
9579 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)'
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_minus_L=yes
9582 ;;
9583 esac
9584 ;;
9585
9586 bsdi[45]*)
9587 export_dynamic_flag_spec=-rdynamic
9588 ;;
9589
9590 cygwin* | mingw* | pw32* | cegcc*)
9591 # When not using gcc, we currently assume that we are using
9592 # Microsoft Visual C++.
9593 # hardcode_libdir_flag_spec is actually meaningless, as there is
9594 # no search path for DLLs.
9595 case $cc_basename in
9596 cl*)
9597 # Native MSVC
9598 hardcode_libdir_flag_spec=' '
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=yes
9601 file_list_spec='@'
9602 # Tell ltmain to make .lib files, not .a files.
9603 libext=lib
9604 # Tell ltmain to make .dll files, not .so files.
9605 shrext_cmds=.dll
9606 # FIXME: Setting linknames here is a bad hack.
9607 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9608 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9609 cp "$export_symbols" "$output_objdir/$soname.def";
9610 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9611 else
9612 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9613 fi~
9614 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9615 linknames='
9616 # The linker will not automatically build a static lib if we build a DLL.
9617 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9618 enable_shared_with_static_runtimes=yes
9619 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9620 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9621 # Don't use ranlib
9622 old_postinstall_cmds='chmod 644 $oldlib'
9623 postlink_cmds='lt_outputfile="@OUTPUT@"~
9624 lt_tool_outputfile="@TOOL_OUTPUT@"~
9625 case $lt_outputfile in
9626 *.exe|*.EXE) ;;
9627 *)
9628 lt_outputfile=$lt_outputfile.exe
9629 lt_tool_outputfile=$lt_tool_outputfile.exe
9630 ;;
9631 esac~
9632 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9633 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9634 $RM "$lt_outputfile.manifest";
9635 fi'
9636 ;;
9637 *)
9638 # Assume MSVC wrapper
9639 hardcode_libdir_flag_spec=' '
9640 allow_undefined_flag=unsupported
9641 # Tell ltmain to make .lib files, not .a files.
9642 libext=lib
9643 # Tell ltmain to make .dll files, not .so files.
9644 shrext_cmds=.dll
9645 # FIXME: Setting linknames here is a bad hack.
9646 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9647 # The linker will automatically build a .lib file if we build a DLL.
9648 old_archive_from_new_cmds='true'
9649 # FIXME: Should let the user specify the lib program.
9650 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9651 enable_shared_with_static_runtimes=yes
9652 ;;
9653 esac
9654 ;;
9655
9656 darwin* | rhapsody*)
9657
9658
9659 archive_cmds_need_lc=no
9660 hardcode_direct=no
9661 hardcode_automatic=yes
9662 hardcode_shlibpath_var=unsupported
9663 if test yes = "$lt_cv_ld_force_load"; then
9664 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\"`'
9665
9666 else
9667 whole_archive_flag_spec=''
9668 fi
9669 link_all_deplibs=yes
9670 allow_undefined_flag=$_lt_dar_allow_undefined
9671 case $cc_basename in
9672 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9673 *) _lt_dar_can_shared=$GCC ;;
9674 esac
9675 if test yes = "$_lt_dar_can_shared"; then
9676 output_verbose_link_cmd=func_echo_all
9677 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9678 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9679 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"
9680 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"
9681
9682 else
9683 ld_shlibs=no
9684 fi
9685
9686 ;;
9687
9688 dgux*)
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9695 # support. Future versions do this automatically, but an explicit c++rt0.o
9696 # does not break anything, and helps significantly (at the cost of a little
9697 # extra space).
9698 freebsd2.2*)
9699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9700 hardcode_libdir_flag_spec='-R$libdir'
9701 hardcode_direct=yes
9702 hardcode_shlibpath_var=no
9703 ;;
9704
9705 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9706 freebsd2.*)
9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_direct=yes
9709 hardcode_minus_L=yes
9710 hardcode_shlibpath_var=no
9711 ;;
9712
9713 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9714 freebsd* | dragonfly*)
9715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9716 hardcode_libdir_flag_spec='-R$libdir'
9717 hardcode_direct=yes
9718 hardcode_shlibpath_var=no
9719 ;;
9720
9721 hpux9*)
9722 if test yes = "$GCC"; then
9723 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'
9724 else
9725 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'
9726 fi
9727 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9728 hardcode_libdir_separator=:
9729 hardcode_direct=yes
9730
9731 # hardcode_minus_L: Not really in the search PATH,
9732 # but as the default location of the library.
9733 hardcode_minus_L=yes
9734 export_dynamic_flag_spec='$wl-E'
9735 ;;
9736
9737 hpux10*)
9738 if test yes,no = "$GCC,$with_gnu_ld"; then
9739 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9742 fi
9743 if test no = "$with_gnu_ld"; then
9744 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9745 hardcode_libdir_separator=:
9746 hardcode_direct=yes
9747 hardcode_direct_absolute=yes
9748 export_dynamic_flag_spec='$wl-E'
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L=yes
9752 fi
9753 ;;
9754
9755 hpux11*)
9756 if test yes,no = "$GCC,$with_gnu_ld"; then
9757 case $host_cpu in
9758 hppa*64*)
9759 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 ;;
9761 ia64*)
9762 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9763 ;;
9764 *)
9765 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766 ;;
9767 esac
9768 else
9769 case $host_cpu in
9770 hppa*64*)
9771 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9772 ;;
9773 ia64*)
9774 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 *)
9777
9778 # Older versions of the 11.00 compiler do not understand -b yet
9779 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9781 $as_echo_n "checking if $CC understands -b... " >&6; }
9782 if ${lt_cv_prog_compiler__b+:} false; then :
9783 $as_echo_n "(cached) " >&6
9784 else
9785 lt_cv_prog_compiler__b=no
9786 save_LDFLAGS=$LDFLAGS
9787 LDFLAGS="$LDFLAGS -b"
9788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9790 # The linker can only warn and ignore the option if not recognized
9791 # So say no if there are warnings
9792 if test -s conftest.err; then
9793 # Append any errors to the config.log.
9794 cat conftest.err 1>&5
9795 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9797 if diff conftest.exp conftest.er2 >/dev/null; then
9798 lt_cv_prog_compiler__b=yes
9799 fi
9800 else
9801 lt_cv_prog_compiler__b=yes
9802 fi
9803 fi
9804 $RM -r conftest*
9805 LDFLAGS=$save_LDFLAGS
9806
9807 fi
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9809 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9810
9811 if test yes = "$lt_cv_prog_compiler__b"; then
9812 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9813 else
9814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9815 fi
9816
9817 ;;
9818 esac
9819 fi
9820 if test no = "$with_gnu_ld"; then
9821 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9822 hardcode_libdir_separator=:
9823
9824 case $host_cpu in
9825 hppa*64*|ia64*)
9826 hardcode_direct=no
9827 hardcode_shlibpath_var=no
9828 ;;
9829 *)
9830 hardcode_direct=yes
9831 hardcode_direct_absolute=yes
9832 export_dynamic_flag_spec='$wl-E'
9833
9834 # hardcode_minus_L: Not really in the search PATH,
9835 # but as the default location of the library.
9836 hardcode_minus_L=yes
9837 ;;
9838 esac
9839 fi
9840 ;;
9841
9842 irix5* | irix6* | nonstopux*)
9843 if test yes = "$GCC"; then
9844 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'
9845 # Try to use the -exported_symbol ld option, if it does not
9846 # work, assume that -exports_file does not work either and
9847 # implicitly export all symbols.
9848 # This should be the same for all languages, so no per-tag cache variable.
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9850 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9851 if ${lt_cv_irix_exported_symbol+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 save_LDFLAGS=$LDFLAGS
9855 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9858 int foo (void) { return 0; }
9859 _ACEOF
9860 if ac_fn_c_try_link "$LINENO"; then :
9861 lt_cv_irix_exported_symbol=yes
9862 else
9863 lt_cv_irix_exported_symbol=no
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext \
9866 conftest$ac_exeext conftest.$ac_ext
9867 LDFLAGS=$save_LDFLAGS
9868 fi
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9870 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9871 if test yes = "$lt_cv_irix_exported_symbol"; then
9872 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'
9873 fi
9874 else
9875 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'
9876 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'
9877 fi
9878 archive_cmds_need_lc='no'
9879 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9880 hardcode_libdir_separator=:
9881 inherit_rpath=yes
9882 link_all_deplibs=yes
9883 ;;
9884
9885 linux*)
9886 case $cc_basename in
9887 tcc*)
9888 # Fabrice Bellard et al's Tiny C Compiler
9889 ld_shlibs=yes
9890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9891 ;;
9892 esac
9893 ;;
9894
9895 netbsd*)
9896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9898 else
9899 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9900 fi
9901 hardcode_libdir_flag_spec='-R$libdir'
9902 hardcode_direct=yes
9903 hardcode_shlibpath_var=no
9904 ;;
9905
9906 newsos6)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_direct=yes
9909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9910 hardcode_libdir_separator=:
9911 hardcode_shlibpath_var=no
9912 ;;
9913
9914 *nto* | *qnx*)
9915 ;;
9916
9917 openbsd* | bitrig*)
9918 if test -f /usr/libexec/ld.so; then
9919 hardcode_direct=yes
9920 hardcode_shlibpath_var=no
9921 hardcode_direct_absolute=yes
9922 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9925 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9926 export_dynamic_flag_spec='$wl-E'
9927 else
9928 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9929 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9930 fi
9931 else
9932 ld_shlibs=no
9933 fi
9934 ;;
9935
9936 os2*)
9937 hardcode_libdir_flag_spec='-L$libdir'
9938 hardcode_minus_L=yes
9939 allow_undefined_flag=unsupported
9940 shrext_cmds=.dll
9941 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9942 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9943 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9944 $ECHO EXPORTS >> $output_objdir/$libname.def~
9945 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9946 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9947 emximp -o $lib $output_objdir/$libname.def'
9948 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9949 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9950 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9951 $ECHO EXPORTS >> $output_objdir/$libname.def~
9952 prefix_cmds="$SED"~
9953 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9954 prefix_cmds="$prefix_cmds -e 1d";
9955 fi~
9956 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9957 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9958 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9959 emximp -o $lib $output_objdir/$libname.def'
9960 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9961 enable_shared_with_static_runtimes=yes
9962 ;;
9963
9964 osf3*)
9965 if test yes = "$GCC"; then
9966 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9967 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'
9968 else
9969 allow_undefined_flag=' -expect_unresolved \*'
9970 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'
9971 fi
9972 archive_cmds_need_lc='no'
9973 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9974 hardcode_libdir_separator=:
9975 ;;
9976
9977 osf4* | osf5*) # as osf3* with the addition of -msym flag
9978 if test yes = "$GCC"; then
9979 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9980 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'
9981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9982 else
9983 allow_undefined_flag=' -expect_unresolved \*'
9984 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'
9985 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~
9986 $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'
9987
9988 # Both c and cxx compiler support -rpath directly
9989 hardcode_libdir_flag_spec='-rpath $libdir'
9990 fi
9991 archive_cmds_need_lc='no'
9992 hardcode_libdir_separator=:
9993 ;;
9994
9995 solaris*)
9996 no_undefined_flag=' -z defs'
9997 if test yes = "$GCC"; then
9998 wlarc='$wl'
9999 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10001 $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'
10002 else
10003 case `$CC -V 2>&1` in
10004 *"Compilers 5.0"*)
10005 wlarc=''
10006 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10008 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10009 ;;
10010 *)
10011 wlarc='$wl'
10012 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10014 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10015 ;;
10016 esac
10017 fi
10018 hardcode_libdir_flag_spec='-R$libdir'
10019 hardcode_shlibpath_var=no
10020 case $host_os in
10021 solaris2.[0-5] | solaris2.[0-5].*) ;;
10022 *)
10023 # The compiler driver will combine and reorder linker options,
10024 # but understands '-z linker_flag'. GCC discards it without '$wl',
10025 # but is careful enough not to reorder.
10026 # Supported since Solaris 2.6 (maybe 2.5.1?)
10027 if test yes = "$GCC"; then
10028 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10029 else
10030 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10031 fi
10032 ;;
10033 esac
10034 link_all_deplibs=yes
10035 ;;
10036
10037 sunos4*)
10038 if test sequent = "$host_vendor"; then
10039 # Use $CC to link under sequent, because it throws in some extra .o
10040 # files that make .init and .fini sections work.
10041 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10042 else
10043 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10044 fi
10045 hardcode_libdir_flag_spec='-L$libdir'
10046 hardcode_direct=yes
10047 hardcode_minus_L=yes
10048 hardcode_shlibpath_var=no
10049 ;;
10050
10051 sysv4)
10052 case $host_vendor in
10053 sni)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_direct=yes # is this really true???
10056 ;;
10057 siemens)
10058 ## LD is ld it makes a PLAMLIB
10059 ## CC just makes a GrossModule.
10060 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10061 reload_cmds='$CC -r -o $output$reload_objs'
10062 hardcode_direct=no
10063 ;;
10064 motorola)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10067 ;;
10068 esac
10069 runpath_var='LD_RUN_PATH'
10070 hardcode_shlibpath_var=no
10071 ;;
10072
10073 sysv4.3*)
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_shlibpath_var=no
10076 export_dynamic_flag_spec='-Bexport'
10077 ;;
10078
10079 sysv4*MP*)
10080 if test -d /usr/nec; then
10081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10082 hardcode_shlibpath_var=no
10083 runpath_var=LD_RUN_PATH
10084 hardcode_runpath_var=yes
10085 ld_shlibs=yes
10086 fi
10087 ;;
10088
10089 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10090 no_undefined_flag='$wl-z,text'
10091 archive_cmds_need_lc=no
10092 hardcode_shlibpath_var=no
10093 runpath_var='LD_RUN_PATH'
10094
10095 if test yes = "$GCC"; then
10096 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 else
10099 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 fi
10102 ;;
10103
10104 sysv5* | sco3.2v5* | sco5v6*)
10105 # Note: We CANNOT use -z defs as we might desire, because we do not
10106 # link with -lc, and that would cause any symbols used from libc to
10107 # always be unresolved, which means just about no library would
10108 # ever link correctly. If we're not using GNU ld we use -z text
10109 # though, which does catch some bad symbols but isn't as heavy-handed
10110 # as -z defs.
10111 no_undefined_flag='$wl-z,text'
10112 allow_undefined_flag='$wl-z,nodefs'
10113 archive_cmds_need_lc=no
10114 hardcode_shlibpath_var=no
10115 hardcode_libdir_flag_spec='$wl-R,$libdir'
10116 hardcode_libdir_separator=':'
10117 link_all_deplibs=yes
10118 export_dynamic_flag_spec='$wl-Bexport'
10119 runpath_var='LD_RUN_PATH'
10120
10121 if test yes = "$GCC"; then
10122 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 else
10125 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 fi
10128 ;;
10129
10130 uts4*)
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_libdir_flag_spec='-L$libdir'
10133 hardcode_shlibpath_var=no
10134 ;;
10135
10136 *)
10137 ld_shlibs=no
10138 ;;
10139 esac
10140
10141 if test sni = "$host_vendor"; then
10142 case $host in
10143 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10144 export_dynamic_flag_spec='$wl-Blargedynsym'
10145 ;;
10146 esac
10147 fi
10148 fi
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10151 $as_echo "$ld_shlibs" >&6; }
10152 test no = "$ld_shlibs" && can_build_shared=no
10153
10154 with_gnu_ld=$with_gnu_ld
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170 #
10171 # Do we need to explicitly link libc?
10172 #
10173 case "x$archive_cmds_need_lc" in
10174 x|xyes)
10175 # Assume -lc should be added
10176 archive_cmds_need_lc=yes
10177
10178 if test yes,yes = "$GCC,$enable_shared"; then
10179 case $archive_cmds in
10180 *'~'*)
10181 # FIXME: we may have to deal with multi-command sequences.
10182 ;;
10183 '$CC '*)
10184 # Test whether the compiler implicitly links with -lc since on some
10185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10186 # to ld, don't add -lc before -lgcc.
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10188 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10189 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 $RM conftest*
10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194
10195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10196 (eval $ac_compile) 2>&5
10197 ac_status=$?
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; } 2>conftest.err; then
10200 soname=conftest
10201 lib=conftest
10202 libobjs=conftest.$ac_objext
10203 deplibs=
10204 wl=$lt_prog_compiler_wl
10205 pic_flag=$lt_prog_compiler_pic
10206 compiler_flags=-v
10207 linker_flags=-v
10208 verstring=
10209 output_objdir=.
10210 libname=conftest
10211 lt_save_allow_undefined_flag=$allow_undefined_flag
10212 allow_undefined_flag=
10213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10214 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10215 ac_status=$?
10216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10217 test $ac_status = 0; }
10218 then
10219 lt_cv_archive_cmds_need_lc=no
10220 else
10221 lt_cv_archive_cmds_need_lc=yes
10222 fi
10223 allow_undefined_flag=$lt_save_allow_undefined_flag
10224 else
10225 cat conftest.err 1>&5
10226 fi
10227 $RM conftest*
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10231 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10232 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10233 ;;
10234 esac
10235 fi
10236 ;;
10237 esac
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10391 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10392
10393 if test yes = "$GCC"; then
10394 case $host_os in
10395 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10396 *) lt_awk_arg='/^libraries:/' ;;
10397 esac
10398 case $host_os in
10399 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10400 *) lt_sed_strip_eq='s|=/|/|g' ;;
10401 esac
10402 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10403 case $lt_search_path_spec in
10404 *\;*)
10405 # if the path contains ";" then we assume it to be the separator
10406 # otherwise default to the standard path separator (i.e. ":") - it is
10407 # assumed that no part of a normal pathname contains ";" but that should
10408 # okay in the real world where ";" in dirpaths is itself problematic.
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10410 ;;
10411 *)
10412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10413 ;;
10414 esac
10415 # Ok, now we have the path, separated by spaces, we can step through it
10416 # and add multilib dir if necessary...
10417 lt_tmp_lt_search_path_spec=
10418 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10419 # ...but if some path component already ends with the multilib dir we assume
10420 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10421 case "$lt_multi_os_dir; $lt_search_path_spec " in
10422 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10423 lt_multi_os_dir=
10424 ;;
10425 esac
10426 for lt_sys_path in $lt_search_path_spec; do
10427 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10428 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10429 elif test -n "$lt_multi_os_dir"; then
10430 test -d "$lt_sys_path" && \
10431 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10432 fi
10433 done
10434 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10435 BEGIN {RS = " "; FS = "/|\n";} {
10436 lt_foo = "";
10437 lt_count = 0;
10438 for (lt_i = NF; lt_i > 0; lt_i--) {
10439 if ($lt_i != "" && $lt_i != ".") {
10440 if ($lt_i == "..") {
10441 lt_count++;
10442 } else {
10443 if (lt_count == 0) {
10444 lt_foo = "/" $lt_i lt_foo;
10445 } else {
10446 lt_count--;
10447 }
10448 }
10449 }
10450 }
10451 if (lt_foo != "") { lt_freq[lt_foo]++; }
10452 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10453 }'`
10454 # AWK program above erroneously prepends '/' to C:/dos/paths
10455 # for these hosts.
10456 case $host_os in
10457 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10458 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10459 esac
10460 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10461 else
10462 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10463 fi
10464 library_names_spec=
10465 libname_spec='lib$name'
10466 soname_spec=
10467 shrext_cmds=.so
10468 postinstall_cmds=
10469 postuninstall_cmds=
10470 finish_cmds=
10471 finish_eval=
10472 shlibpath_var=
10473 shlibpath_overrides_runpath=unknown
10474 version_type=none
10475 dynamic_linker="$host_os ld.so"
10476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10477 need_lib_prefix=unknown
10478 hardcode_into_libs=no
10479
10480 # when you set need_version to no, make sure it does not cause -set_version
10481 # flags to be left without arguments
10482 need_version=unknown
10483
10484 case $host_os in
10485 aix3*)
10486 version_type=linux # correct to gnu/linux during the next big refactor
10487 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10488 shlibpath_var=LIBPATH
10489
10490 # AIX 3 has no versioning support, so we append a major version to the name.
10491 soname_spec='$libname$release$shared_ext$major'
10492 ;;
10493
10494 aix[4-9]*)
10495 version_type=linux # correct to gnu/linux during the next big refactor
10496 need_lib_prefix=no
10497 need_version=no
10498 hardcode_into_libs=yes
10499 if test ia64 = "$host_cpu"; then
10500 # AIX 5 supports IA64
10501 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 else
10504 # With GCC up to 2.95.x, collect2 would create an import file
10505 # for dependence libraries. The import file would start with
10506 # the line '#! .'. This would cause the generated library to
10507 # depend on '.', always an invalid library. This was fixed in
10508 # development snapshots of GCC prior to 3.0.
10509 case $host_os in
10510 aix4 | aix4.[01] | aix4.[01].*)
10511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10512 echo ' yes '
10513 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10514 :
10515 else
10516 can_build_shared=no
10517 fi
10518 ;;
10519 esac
10520 # Using Import Files as archive members, it is possible to support
10521 # filename-based versioning of shared library archives on AIX. While
10522 # this would work for both with and without runtime linking, it will
10523 # prevent static linking of such archives. So we do filename-based
10524 # shared library versioning with .so extension only, which is used
10525 # when both runtime linking and shared linking is enabled.
10526 # Unfortunately, runtime linking may impact performance, so we do
10527 # not want this to be the default eventually. Also, we use the
10528 # versioned .so libs for executables only if there is the -brtl
10529 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10530 # To allow for filename-based versioning support, we need to create
10531 # libNAME.so.V as an archive file, containing:
10532 # *) an Import File, referring to the versioned filename of the
10533 # archive as well as the shared archive member, telling the
10534 # bitwidth (32 or 64) of that shared object, and providing the
10535 # list of exported symbols of that shared object, eventually
10536 # decorated with the 'weak' keyword
10537 # *) the shared object with the F_LOADONLY flag set, to really avoid
10538 # it being seen by the linker.
10539 # At run time we better use the real file rather than another symlink,
10540 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10541
10542 case $with_aix_soname,$aix_use_runtimelinking in
10543 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10544 # soname into executable. Probably we can add versioning support to
10545 # collect2, so additional links can be useful in future.
10546 aix,yes) # traditional libtool
10547 dynamic_linker='AIX unversionable lib.so'
10548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10549 # instead of lib<name>.a to let people know that these are not
10550 # typical AIX shared libraries.
10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10552 ;;
10553 aix,no) # traditional AIX only
10554 dynamic_linker='AIX lib.a(lib.so.V)'
10555 # We preserve .a as extension for shared libraries through AIX4.2
10556 # and later when we are not doing run time linking.
10557 library_names_spec='$libname$release.a $libname.a'
10558 soname_spec='$libname$release$shared_ext$major'
10559 ;;
10560 svr4,*) # full svr4 only
10561 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10562 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10563 # We do not specify a path in Import Files, so LIBPATH fires.
10564 shlibpath_overrides_runpath=yes
10565 ;;
10566 *,yes) # both, prefer svr4
10567 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10568 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10569 # unpreferred sharedlib libNAME.a needs extra handling
10570 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"'
10571 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"'
10572 # We do not specify a path in Import Files, so LIBPATH fires.
10573 shlibpath_overrides_runpath=yes
10574 ;;
10575 *,no) # both, prefer aix
10576 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10577 library_names_spec='$libname$release.a $libname.a'
10578 soname_spec='$libname$release$shared_ext$major'
10579 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10580 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)'
10581 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"'
10582 ;;
10583 esac
10584 shlibpath_var=LIBPATH
10585 fi
10586 ;;
10587
10588 amigaos*)
10589 case $host_cpu in
10590 powerpc)
10591 # Since July 2007 AmigaOS4 officially supports .so libraries.
10592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10594 ;;
10595 m68k)
10596 library_names_spec='$libname.ixlibrary $libname.a'
10597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10598 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'
10599 ;;
10600 esac
10601 ;;
10602
10603 beos*)
10604 library_names_spec='$libname$shared_ext'
10605 dynamic_linker="$host_os ld.so"
10606 shlibpath_var=LIBRARY_PATH
10607 ;;
10608
10609 bsdi[45]*)
10610 version_type=linux # correct to gnu/linux during the next big refactor
10611 need_version=no
10612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10613 soname_spec='$libname$release$shared_ext$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618 # the default ld.so.conf also contains /usr/contrib/lib and
10619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620 # libtool to hard-code these into programs
10621 ;;
10622
10623 cygwin* | mingw* | pw32* | cegcc*)
10624 version_type=windows
10625 shrext_cmds=.dll
10626 need_version=no
10627 need_lib_prefix=no
10628
10629 case $GCC,$cc_basename in
10630 yes,*)
10631 # gcc
10632 library_names_spec='$libname.dll.a'
10633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10634 postinstall_cmds='base_file=`basename \$file`~
10635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10636 dldir=$destdir/`dirname \$dlpath`~
10637 test -d \$dldir || mkdir -p \$dldir~
10638 $install_prog $dir/$dlname \$dldir/$dlname~
10639 chmod a+x \$dldir/$dlname~
10640 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10641 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10642 fi'
10643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10644 dlpath=$dir/\$dldll~
10645 $RM \$dlpath'
10646 shlibpath_overrides_runpath=yes
10647
10648 case $host_os in
10649 cygwin*)
10650 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10651 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10652
10653 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10654 ;;
10655 mingw* | cegcc*)
10656 # MinGW DLLs use traditional 'lib' prefix
10657 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10658 ;;
10659 pw32*)
10660 # pw32 DLLs use 'pw' prefix rather than 'lib'
10661 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10662 ;;
10663 esac
10664 dynamic_linker='Win32 ld.exe'
10665 ;;
10666
10667 *,cl*)
10668 # Native MSVC
10669 libname_spec='$name'
10670 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10671 library_names_spec='$libname.dll.lib'
10672
10673 case $build_os in
10674 mingw*)
10675 sys_lib_search_path_spec=
10676 lt_save_ifs=$IFS
10677 IFS=';'
10678 for lt_path in $LIB
10679 do
10680 IFS=$lt_save_ifs
10681 # Let DOS variable expansion print the short 8.3 style file name.
10682 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10684 done
10685 IFS=$lt_save_ifs
10686 # Convert to MSYS style.
10687 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10688 ;;
10689 cygwin*)
10690 # Convert to unix form, then to dos form, then back to unix form
10691 # but this time dos style (no spaces!) so that the unix form looks
10692 # like /cygdrive/c/PROGRA~1:/cygdr...
10693 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10694 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10695 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10696 ;;
10697 *)
10698 sys_lib_search_path_spec=$LIB
10699 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10700 # It is most probably a Windows format PATH.
10701 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10702 else
10703 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10704 fi
10705 # FIXME: find the short name or the path components, as spaces are
10706 # common. (e.g. "Program Files" -> "PROGRA~1")
10707 ;;
10708 esac
10709
10710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10711 postinstall_cmds='base_file=`basename \$file`~
10712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10713 dldir=$destdir/`dirname \$dlpath`~
10714 test -d \$dldir || mkdir -p \$dldir~
10715 $install_prog $dir/$dlname \$dldir/$dlname'
10716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10717 dlpath=$dir/\$dldll~
10718 $RM \$dlpath'
10719 shlibpath_overrides_runpath=yes
10720 dynamic_linker='Win32 link.exe'
10721 ;;
10722
10723 *)
10724 # Assume MSVC wrapper
10725 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10726 dynamic_linker='Win32 ld.exe'
10727 ;;
10728 esac
10729 # FIXME: first we should search . and the directory the executable is in
10730 shlibpath_var=PATH
10731 ;;
10732
10733 darwin* | rhapsody*)
10734 dynamic_linker="$host_os dyld"
10735 version_type=darwin
10736 need_lib_prefix=no
10737 need_version=no
10738 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10739 soname_spec='$libname$release$major$shared_ext'
10740 shlibpath_overrides_runpath=yes
10741 shlibpath_var=DYLD_LIBRARY_PATH
10742 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10743
10744 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10746 ;;
10747
10748 dgux*)
10749 version_type=linux # correct to gnu/linux during the next big refactor
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753 soname_spec='$libname$release$shared_ext$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 ;;
10756
10757 freebsd* | dragonfly*)
10758 # DragonFly does not have aout. When/if they implement a new
10759 # versioning mechanism, adjust this.
10760 if test -x /usr/bin/objformat; then
10761 objformat=`/usr/bin/objformat`
10762 else
10763 case $host_os in
10764 freebsd[23].*) objformat=aout ;;
10765 *) objformat=elf ;;
10766 esac
10767 fi
10768 version_type=freebsd-$objformat
10769 case $version_type in
10770 freebsd-elf*)
10771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10772 need_version=no
10773 need_lib_prefix=no
10774 ;;
10775 freebsd-*)
10776 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10777 need_version=yes
10778 ;;
10779 esac
10780 shlibpath_var=LD_LIBRARY_PATH
10781 case $host_os in
10782 freebsd2.*)
10783 shlibpath_overrides_runpath=yes
10784 ;;
10785 freebsd3.[01]* | freebsdelf3.[01]*)
10786 shlibpath_overrides_runpath=yes
10787 hardcode_into_libs=yes
10788 ;;
10789 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10790 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 ;;
10794 *) # from 4.6 on, and DragonFly
10795 shlibpath_overrides_runpath=yes
10796 hardcode_into_libs=yes
10797 ;;
10798 esac
10799 ;;
10800
10801 haiku*)
10802 version_type=linux # correct to gnu/linux during the next big refactor
10803 need_lib_prefix=no
10804 need_version=no
10805 dynamic_linker="$host_os runtime_loader"
10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10807 soname_spec='$libname$release$shared_ext$major'
10808 shlibpath_var=LIBRARY_PATH
10809 shlibpath_overrides_runpath=no
10810 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10811 hardcode_into_libs=yes
10812 ;;
10813
10814 hpux9* | hpux10* | hpux11*)
10815 # Give a soname corresponding to the major version so that dld.sl refuses to
10816 # link against other versions.
10817 version_type=sunos
10818 need_lib_prefix=no
10819 need_version=no
10820 case $host_cpu in
10821 ia64*)
10822 shrext_cmds='.so'
10823 hardcode_into_libs=yes
10824 dynamic_linker="$host_os dld.so"
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10828 soname_spec='$libname$release$shared_ext$major'
10829 if test 32 = "$HPUX_IA64_MODE"; then
10830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10831 else
10832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10833 fi
10834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10835 ;;
10836 hppa*64*)
10837 shrext_cmds='.sl'
10838 hardcode_into_libs=yes
10839 dynamic_linker="$host_os dld.sl"
10840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843 soname_spec='$libname$release$shared_ext$major'
10844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10846 ;;
10847 *)
10848 shrext_cmds='.sl'
10849 dynamic_linker="$host_os dld.sl"
10850 shlibpath_var=SHLIB_PATH
10851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10853 soname_spec='$libname$release$shared_ext$major'
10854 ;;
10855 esac
10856 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10857 postinstall_cmds='chmod 555 $lib'
10858 # or fails outright, so override atomically:
10859 install_override_mode=555
10860 ;;
10861
10862 interix[3-9]*)
10863 version_type=linux # correct to gnu/linux during the next big refactor
10864 need_lib_prefix=no
10865 need_version=no
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10867 soname_spec='$libname$release$shared_ext$major'
10868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=no
10871 hardcode_into_libs=yes
10872 ;;
10873
10874 irix5* | irix6* | nonstopux*)
10875 case $host_os in
10876 nonstopux*) version_type=nonstopux ;;
10877 *)
10878 if test yes = "$lt_cv_prog_gnu_ld"; then
10879 version_type=linux # correct to gnu/linux during the next big refactor
10880 else
10881 version_type=irix
10882 fi ;;
10883 esac
10884 need_lib_prefix=no
10885 need_version=no
10886 soname_spec='$libname$release$shared_ext$major'
10887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10888 case $host_os in
10889 irix5* | nonstopux*)
10890 libsuff= shlibsuff=
10891 ;;
10892 *)
10893 case $LD in # libtool.m4 will add one of these switches to LD
10894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10895 libsuff= shlibsuff= libmagic=32-bit;;
10896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10897 libsuff=32 shlibsuff=N32 libmagic=N32;;
10898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10900 *) libsuff= shlibsuff= libmagic=never-match;;
10901 esac
10902 ;;
10903 esac
10904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10905 shlibpath_overrides_runpath=no
10906 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10907 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10908 hardcode_into_libs=yes
10909 ;;
10910
10911 # No shared lib support for Linux oldld, aout, or coff.
10912 linux*oldld* | linux*aout* | linux*coff*)
10913 dynamic_linker=no
10914 ;;
10915
10916 linux*android*)
10917 version_type=none # Android doesn't support versioned libraries.
10918 need_lib_prefix=no
10919 need_version=no
10920 library_names_spec='$libname$release$shared_ext'
10921 soname_spec='$libname$release$shared_ext'
10922 finish_cmds=
10923 shlibpath_var=LD_LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925
10926 # This implies no fast_install, which is unacceptable.
10927 # Some rework will be needed to allow for fast_install
10928 # before this can be enabled.
10929 hardcode_into_libs=yes
10930
10931 dynamic_linker='Android linker'
10932 # Don't embed -rpath directories since the linker doesn't support them.
10933 hardcode_libdir_flag_spec='-L$libdir'
10934 ;;
10935
10936 # This must be glibc/ELF.
10937 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10938 version_type=linux # correct to gnu/linux during the next big refactor
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec='$libname$release$shared_ext$major'
10943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=no
10946
10947 # Some binutils ld are patched to set DT_RUNPATH
10948 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 lt_cv_shlibpath_overrides_runpath=no
10952 save_LDFLAGS=$LDFLAGS
10953 save_libdir=$libdir
10954 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h. */
10958
10959 int
10960 main ()
10961 {
10962
10963 ;
10964 return 0;
10965 }
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969 lt_cv_shlibpath_overrides_runpath=yes
10970 fi
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LDFLAGS=$save_LDFLAGS
10975 libdir=$save_libdir
10976
10977 fi
10978
10979 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10980
10981 # This implies no fast_install, which is unacceptable.
10982 # Some rework will be needed to allow for fast_install
10983 # before this can be enabled.
10984 hardcode_into_libs=yes
10985
10986 # Append ld.so.conf contents to the search path
10987 if test -f /etc/ld.so.conf; then
10988 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' ' '`
10989 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990 fi
10991
10992 # We used to test for /lib/ld.so.1 and disable shared libraries on
10993 # powerpc, because MkLinux only supported shared libraries with the
10994 # GNU dynamic linker. Since this was broken with cross compilers,
10995 # most powerpc-linux boxes support dynamic linking these days and
10996 # people can always --disable-shared, the test was removed, and we
10997 # assume the GNU/Linux dynamic linker is in use.
10998 dynamic_linker='GNU/Linux ld.so'
10999 ;;
11000
11001 netbsd*)
11002 version_type=sunos
11003 need_lib_prefix=no
11004 need_version=no
11005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008 dynamic_linker='NetBSD (a.out) ld.so'
11009 else
11010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11011 soname_spec='$libname$release$shared_ext$major'
11012 dynamic_linker='NetBSD ld.elf_so'
11013 fi
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 ;;
11018
11019 newsos6)
11020 version_type=linux # correct to gnu/linux during the next big refactor
11021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=yes
11024 ;;
11025
11026 *nto* | *qnx*)
11027 version_type=qnx
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11031 soname_spec='$libname$release$shared_ext$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11035 dynamic_linker='ldqnx.so'
11036 ;;
11037
11038 openbsd* | bitrig*)
11039 version_type=sunos
11040 sys_lib_dlsearch_path_spec=/usr/lib
11041 need_lib_prefix=no
11042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11043 need_version=no
11044 else
11045 need_version=yes
11046 fi
11047 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052
11053 os2*)
11054 libname_spec='$name'
11055 version_type=windows
11056 shrext_cmds=.dll
11057 need_version=no
11058 need_lib_prefix=no
11059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11060 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11061 v=$($ECHO $release$versuffix | tr -d .-);
11062 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11063 $ECHO $n$v`$shared_ext'
11064 library_names_spec='${libname}_dll.$libext'
11065 dynamic_linker='OS/2 ld.exe'
11066 shlibpath_var=BEGINLIBPATH
11067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11069 postinstall_cmds='base_file=`basename \$file`~
11070 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11071 dldir=$destdir/`dirname \$dlpath`~
11072 test -d \$dldir || mkdir -p \$dldir~
11073 $install_prog $dir/$dlname \$dldir/$dlname~
11074 chmod a+x \$dldir/$dlname~
11075 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11076 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11077 fi'
11078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11079 dlpath=$dir/\$dldll~
11080 $RM \$dlpath'
11081 ;;
11082
11083 osf3* | osf4* | osf5*)
11084 version_type=osf
11085 need_lib_prefix=no
11086 need_version=no
11087 soname_spec='$libname$release$shared_ext$major'
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092 ;;
11093
11094 rdos*)
11095 dynamic_linker=no
11096 ;;
11097
11098 solaris*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11105 shlibpath_overrides_runpath=yes
11106 hardcode_into_libs=yes
11107 # ldd complains unless libraries are executable
11108 postinstall_cmds='chmod +x $lib'
11109 ;;
11110
11111 sunos4*)
11112 version_type=sunos
11113 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=yes
11117 if test yes = "$with_gnu_ld"; then
11118 need_lib_prefix=no
11119 fi
11120 need_version=yes
11121 ;;
11122
11123 sysv4 | sysv4.3*)
11124 version_type=linux # correct to gnu/linux during the next big refactor
11125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11126 soname_spec='$libname$release$shared_ext$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 case $host_vendor in
11129 sni)
11130 shlibpath_overrides_runpath=no
11131 need_lib_prefix=no
11132 runpath_var=LD_RUN_PATH
11133 ;;
11134 siemens)
11135 need_lib_prefix=no
11136 ;;
11137 motorola)
11138 need_lib_prefix=no
11139 need_version=no
11140 shlibpath_overrides_runpath=no
11141 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11142 ;;
11143 esac
11144 ;;
11145
11146 sysv4*MP*)
11147 if test -d /usr/nec; then
11148 version_type=linux # correct to gnu/linux during the next big refactor
11149 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11150 soname_spec='$libname$shared_ext.$major'
11151 shlibpath_var=LD_LIBRARY_PATH
11152 fi
11153 ;;
11154
11155 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11156 version_type=sco
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11160 soname_spec='$libname$release$shared_ext$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 shlibpath_overrides_runpath=yes
11163 hardcode_into_libs=yes
11164 if test yes = "$with_gnu_ld"; then
11165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11166 else
11167 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11168 case $host_os in
11169 sco3.2v5*)
11170 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11171 ;;
11172 esac
11173 fi
11174 sys_lib_dlsearch_path_spec='/usr/lib'
11175 ;;
11176
11177 tpf*)
11178 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11179 version_type=linux # correct to gnu/linux during the next big refactor
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=no
11185 hardcode_into_libs=yes
11186 ;;
11187
11188 uts4*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11191 soname_spec='$libname$release$shared_ext$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11193 ;;
11194
11195 *)
11196 dynamic_linker=no
11197 ;;
11198 esac
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11200 $as_echo "$dynamic_linker" >&6; }
11201 test no = "$dynamic_linker" && can_build_shared=no
11202
11203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11204 if test yes = "$GCC"; then
11205 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11206 fi
11207
11208 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11209 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11210 fi
11211 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11212 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11213 fi
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11307 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11308 hardcode_action=
11309 if test -n "$hardcode_libdir_flag_spec" ||
11310 test -n "$runpath_var" ||
11311 test yes = "$hardcode_automatic"; then
11312
11313 # We can hardcode non-existent directories.
11314 if test no != "$hardcode_direct" &&
11315 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11316 # have to relink, otherwise we might link with an installed library
11317 # when we should be linking with a yet-to-be-installed one
11318 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11319 test no != "$hardcode_minus_L"; then
11320 # Linking always hardcodes the temporary library directory.
11321 hardcode_action=relink
11322 else
11323 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11324 hardcode_action=immediate
11325 fi
11326 else
11327 # We cannot hardcode anything, or else we can only hardcode existing
11328 # directories.
11329 hardcode_action=unsupported
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11332 $as_echo "$hardcode_action" >&6; }
11333
11334 if test relink = "$hardcode_action" ||
11335 test yes = "$inherit_rpath"; then
11336 # Fast installation is not supported
11337 enable_fast_install=no
11338 elif test yes = "$shlibpath_overrides_runpath" ||
11339 test no = "$enable_shared"; then
11340 # Fast installation is not necessary
11341 enable_fast_install=needless
11342 fi
11343
11344
11345
11346
11347
11348
11349 if test yes != "$enable_dlopen"; then
11350 enable_dlopen=unknown
11351 enable_dlopen_self=unknown
11352 enable_dlopen_self_static=unknown
11353 else
11354 lt_cv_dlopen=no
11355 lt_cv_dlopen_libs=
11356
11357 case $host_os in
11358 beos*)
11359 lt_cv_dlopen=load_add_on
11360 lt_cv_dlopen_libs=
11361 lt_cv_dlopen_self=yes
11362 ;;
11363
11364 mingw* | pw32* | cegcc*)
11365 lt_cv_dlopen=LoadLibrary
11366 lt_cv_dlopen_libs=
11367 ;;
11368
11369 cygwin*)
11370 lt_cv_dlopen=dlopen
11371 lt_cv_dlopen_libs=
11372 ;;
11373
11374 darwin*)
11375 # if libdl is installed we need to link against it
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11377 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11378 if ${ac_cv_lib_dl_dlopen+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380 else
11381 ac_check_lib_save_LIBS=$LIBS
11382 LIBS="-ldl $LIBS"
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11385
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 char dlopen ();
11393 int
11394 main ()
11395 {
11396 return dlopen ();
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 if ac_fn_c_try_link "$LINENO"; then :
11402 ac_cv_lib_dl_dlopen=yes
11403 else
11404 ac_cv_lib_dl_dlopen=no
11405 fi
11406 rm -f core conftest.err conftest.$ac_objext \
11407 conftest$ac_exeext conftest.$ac_ext
11408 LIBS=$ac_check_lib_save_LIBS
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11411 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11412 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11413 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11414 else
11415
11416 lt_cv_dlopen=dyld
11417 lt_cv_dlopen_libs=
11418 lt_cv_dlopen_self=yes
11419
11420 fi
11421
11422 ;;
11423
11424 tpf*)
11425 # Don't try to run any link tests for TPF. We know it's impossible
11426 # because TPF is a cross-compiler, and we know how we open DSOs.
11427 lt_cv_dlopen=dlopen
11428 lt_cv_dlopen_libs=
11429 lt_cv_dlopen_self=no
11430 ;;
11431
11432 *)
11433 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11434 if test "x$ac_cv_func_shl_load" = xyes; then :
11435 lt_cv_dlopen=shl_load
11436 else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11438 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11439 if ${ac_cv_lib_dld_shl_load+:} false; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldld $LIBS"
11444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11445 /* end confdefs.h. */
11446
11447 /* Override any GCC internal prototype to avoid an error.
11448 Use char because int might match the return type of a GCC
11449 builtin and then its argument prototype would still apply. */
11450 #ifdef __cplusplus
11451 extern "C"
11452 #endif
11453 char shl_load ();
11454 int
11455 main ()
11456 {
11457 return shl_load ();
11458 ;
11459 return 0;
11460 }
11461 _ACEOF
11462 if ac_fn_c_try_link "$LINENO"; then :
11463 ac_cv_lib_dld_shl_load=yes
11464 else
11465 ac_cv_lib_dld_shl_load=no
11466 fi
11467 rm -f core conftest.err conftest.$ac_objext \
11468 conftest$ac_exeext conftest.$ac_ext
11469 LIBS=$ac_check_lib_save_LIBS
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11472 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11473 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11474 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11475 else
11476 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11477 if test "x$ac_cv_func_dlopen" = xyes; then :
11478 lt_cv_dlopen=dlopen
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11482 if ${ac_cv_lib_dl_dlopen+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldl $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dlopen ();
11497 int
11498 main ()
11499 {
11500 return dlopen ();
11501 ;
11502 return 0;
11503 }
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_dl_dlopen=yes
11507 else
11508 ac_cv_lib_dl_dlopen=no
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11515 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11516 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11517 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11520 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11521 if ${ac_cv_lib_svld_dlopen+:} false; then :
11522 $as_echo_n "(cached) " >&6
11523 else
11524 ac_check_lib_save_LIBS=$LIBS
11525 LIBS="-lsvld $LIBS"
11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527 /* end confdefs.h. */
11528
11529 /* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532 #ifdef __cplusplus
11533 extern "C"
11534 #endif
11535 char dlopen ();
11536 int
11537 main ()
11538 {
11539 return dlopen ();
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_link "$LINENO"; then :
11545 ac_cv_lib_svld_dlopen=yes
11546 else
11547 ac_cv_lib_svld_dlopen=no
11548 fi
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 LIBS=$ac_check_lib_save_LIBS
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11554 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11555 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11556 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11557 else
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11559 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11560 if ${ac_cv_lib_dld_dld_link+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_check_lib_save_LIBS=$LIBS
11564 LIBS="-ldld $LIBS"
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11567
11568 /* Override any GCC internal prototype to avoid an error.
11569 Use char because int might match the return type of a GCC
11570 builtin and then its argument prototype would still apply. */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 char dld_link ();
11575 int
11576 main ()
11577 {
11578 return dld_link ();
11579 ;
11580 return 0;
11581 }
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584 ac_cv_lib_dld_dld_link=yes
11585 else
11586 ac_cv_lib_dld_dld_link=no
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_lib_save_LIBS
11591 fi
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11593 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11594 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11595 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613 ;;
11614 esac
11615
11616 if test no = "$lt_cv_dlopen"; then
11617 enable_dlopen=no
11618 else
11619 enable_dlopen=yes
11620 fi
11621
11622 case $lt_cv_dlopen in
11623 dlopen)
11624 save_CPPFLAGS=$CPPFLAGS
11625 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11626
11627 save_LDFLAGS=$LDFLAGS
11628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11629
11630 save_LIBS=$LIBS
11631 LIBS="$lt_cv_dlopen_libs $LIBS"
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11634 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11635 if ${lt_cv_dlopen_self+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 if test yes = "$cross_compiling"; then :
11639 lt_cv_dlopen_self=cross
11640 else
11641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11642 lt_status=$lt_dlunknown
11643 cat > conftest.$ac_ext <<_LT_EOF
11644 #line $LINENO "configure"
11645 #include "confdefs.h"
11646
11647 #if HAVE_DLFCN_H
11648 #include <dlfcn.h>
11649 #endif
11650
11651 #include <stdio.h>
11652
11653 #ifdef RTLD_GLOBAL
11654 # define LT_DLGLOBAL RTLD_GLOBAL
11655 #else
11656 # ifdef DL_GLOBAL
11657 # define LT_DLGLOBAL DL_GLOBAL
11658 # else
11659 # define LT_DLGLOBAL 0
11660 # endif
11661 #endif
11662
11663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11664 find out it does not work in some platform. */
11665 #ifndef LT_DLLAZY_OR_NOW
11666 # ifdef RTLD_LAZY
11667 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11668 # else
11669 # ifdef DL_LAZY
11670 # define LT_DLLAZY_OR_NOW DL_LAZY
11671 # else
11672 # ifdef RTLD_NOW
11673 # define LT_DLLAZY_OR_NOW RTLD_NOW
11674 # else
11675 # ifdef DL_NOW
11676 # define LT_DLLAZY_OR_NOW DL_NOW
11677 # else
11678 # define LT_DLLAZY_OR_NOW 0
11679 # endif
11680 # endif
11681 # endif
11682 # endif
11683 #endif
11684
11685 /* When -fvisibility=hidden is used, assume the code has been annotated
11686 correspondingly for the symbols needed. */
11687 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11688 int fnord () __attribute__((visibility("default")));
11689 #endif
11690
11691 int fnord () { return 42; }
11692 int main ()
11693 {
11694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11695 int status = $lt_dlunknown;
11696
11697 if (self)
11698 {
11699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11700 else
11701 {
11702 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11703 else puts (dlerror ());
11704 }
11705 /* dlclose (self); */
11706 }
11707 else
11708 puts (dlerror ());
11709
11710 return status;
11711 }
11712 _LT_EOF
11713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11714 (eval $ac_link) 2>&5
11715 ac_status=$?
11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11717 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11718 (./conftest; exit; ) >&5 2>/dev/null
11719 lt_status=$?
11720 case x$lt_status in
11721 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11722 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11723 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11724 esac
11725 else :
11726 # compilation failed
11727 lt_cv_dlopen_self=no
11728 fi
11729 fi
11730 rm -fr conftest*
11731
11732
11733 fi
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11735 $as_echo "$lt_cv_dlopen_self" >&6; }
11736
11737 if test yes = "$lt_cv_dlopen_self"; then
11738 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11740 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11741 if ${lt_cv_dlopen_self_static+:} false; then :
11742 $as_echo_n "(cached) " >&6
11743 else
11744 if test yes = "$cross_compiling"; then :
11745 lt_cv_dlopen_self_static=cross
11746 else
11747 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11748 lt_status=$lt_dlunknown
11749 cat > conftest.$ac_ext <<_LT_EOF
11750 #line $LINENO "configure"
11751 #include "confdefs.h"
11752
11753 #if HAVE_DLFCN_H
11754 #include <dlfcn.h>
11755 #endif
11756
11757 #include <stdio.h>
11758
11759 #ifdef RTLD_GLOBAL
11760 # define LT_DLGLOBAL RTLD_GLOBAL
11761 #else
11762 # ifdef DL_GLOBAL
11763 # define LT_DLGLOBAL DL_GLOBAL
11764 # else
11765 # define LT_DLGLOBAL 0
11766 # endif
11767 #endif
11768
11769 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11770 find out it does not work in some platform. */
11771 #ifndef LT_DLLAZY_OR_NOW
11772 # ifdef RTLD_LAZY
11773 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11774 # else
11775 # ifdef DL_LAZY
11776 # define LT_DLLAZY_OR_NOW DL_LAZY
11777 # else
11778 # ifdef RTLD_NOW
11779 # define LT_DLLAZY_OR_NOW RTLD_NOW
11780 # else
11781 # ifdef DL_NOW
11782 # define LT_DLLAZY_OR_NOW DL_NOW
11783 # else
11784 # define LT_DLLAZY_OR_NOW 0
11785 # endif
11786 # endif
11787 # endif
11788 # endif
11789 #endif
11790
11791 /* When -fvisibility=hidden is used, assume the code has been annotated
11792 correspondingly for the symbols needed. */
11793 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11794 int fnord () __attribute__((visibility("default")));
11795 #endif
11796
11797 int fnord () { return 42; }
11798 int main ()
11799 {
11800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11801 int status = $lt_dlunknown;
11802
11803 if (self)
11804 {
11805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11806 else
11807 {
11808 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11809 else puts (dlerror ());
11810 }
11811 /* dlclose (self); */
11812 }
11813 else
11814 puts (dlerror ());
11815
11816 return status;
11817 }
11818 _LT_EOF
11819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11820 (eval $ac_link) 2>&5
11821 ac_status=$?
11822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11823 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11824 (./conftest; exit; ) >&5 2>/dev/null
11825 lt_status=$?
11826 case x$lt_status in
11827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11829 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11830 esac
11831 else :
11832 # compilation failed
11833 lt_cv_dlopen_self_static=no
11834 fi
11835 fi
11836 rm -fr conftest*
11837
11838
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11841 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11842 fi
11843
11844 CPPFLAGS=$save_CPPFLAGS
11845 LDFLAGS=$save_LDFLAGS
11846 LIBS=$save_LIBS
11847 ;;
11848 esac
11849
11850 case $lt_cv_dlopen_self in
11851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11852 *) enable_dlopen_self=unknown ;;
11853 esac
11854
11855 case $lt_cv_dlopen_self_static in
11856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11857 *) enable_dlopen_self_static=unknown ;;
11858 esac
11859 fi
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877 striplib=
11878 old_striplib=
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11880 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11881 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11882 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11883 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 else
11887 # FIXME - insert some real tests, host_os isn't really good enough
11888 case $host_os in
11889 darwin*)
11890 if test -n "$STRIP"; then
11891 striplib="$STRIP -x"
11892 old_striplib="$STRIP -S"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895 else
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899 ;;
11900 *)
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11903 ;;
11904 esac
11905 fi
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918 # Report what library types will actually be built
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11920 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11922 $as_echo "$can_build_shared" >&6; }
11923
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11925 $as_echo_n "checking whether to build shared libraries... " >&6; }
11926 test no = "$can_build_shared" && enable_shared=no
11927
11928 # On AIX, shared libraries and static libraries use the same namespace, and
11929 # are all built from PIC.
11930 case $host_os in
11931 aix3*)
11932 test yes = "$enable_shared" && enable_static=no
11933 if test -n "$RANLIB"; then
11934 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11935 postinstall_cmds='$RANLIB $lib'
11936 fi
11937 ;;
11938
11939 aix[4-9]*)
11940 if test ia64 != "$host_cpu"; then
11941 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11942 yes,aix,yes) ;; # shared object as lib.so file only
11943 yes,svr4,*) ;; # shared object as lib.so archive member only
11944 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11945 esac
11946 fi
11947 ;;
11948 esac
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11950 $as_echo "$enable_shared" >&6; }
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11953 $as_echo_n "checking whether to build static libraries... " >&6; }
11954 # Make sure either enable_shared or enable_static is yes.
11955 test yes = "$enable_shared" || enable_static=yes
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11957 $as_echo "$enable_static" >&6; }
11958
11959
11960
11961
11962 fi
11963 ac_ext=c
11964 ac_cpp='$CPP $CPPFLAGS'
11965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11968
11969 CC=$lt_save_CC
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 ac_config_commands="$ac_config_commands libtool"
11986
11987
11988
11989
11990 # Only expand once:
11991
11992
11993
11994
11995 for ac_prog in 'bison -y' byacc
11996 do
11997 # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_YACC+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 if test -n "$YACC"; then
12005 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12006 else
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12009 do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_YACC="$ac_prog"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12017 fi
12018 done
12019 done
12020 IFS=$as_save_IFS
12021
12022 fi
12023 fi
12024 YACC=$ac_cv_prog_YACC
12025 if test -n "$YACC"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12027 $as_echo "$YACC" >&6; }
12028 else
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12031 fi
12032
12033
12034 test -n "$YACC" && break
12035 done
12036 test -n "$YACC" || YACC="yacc"
12037
12038
12039 for ac_prog in flex lex
12040 do
12041 # Extract the first word of "$ac_prog", so it can be a program name with args.
12042 set dummy $ac_prog; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_prog_LEX+:} false; then :
12046 $as_echo_n "(cached) " >&6
12047 else
12048 if test -n "$LEX"; then
12049 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12050 else
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058 ac_cv_prog_LEX="$ac_prog"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12060 break 2
12061 fi
12062 done
12063 done
12064 IFS=$as_save_IFS
12065
12066 fi
12067 fi
12068 LEX=$ac_cv_prog_LEX
12069 if test -n "$LEX"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12071 $as_echo "$LEX" >&6; }
12072 else
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12075 fi
12076
12077
12078 test -n "$LEX" && break
12079 done
12080 test -n "$LEX" || LEX=":"
12081
12082 if test "x$LEX" != "x:"; then
12083 cat >conftest.l <<_ACEOF
12084 %%
12085 a { ECHO; }
12086 b { REJECT; }
12087 c { yymore (); }
12088 d { yyless (1); }
12089 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12090 yyless ((input () != 0)); }
12091 f { unput (yytext[0]); }
12092 . { BEGIN INITIAL; }
12093 %%
12094 #ifdef YYTEXT_POINTER
12095 extern char *yytext;
12096 #endif
12097 int
12098 main (void)
12099 {
12100 return ! yylex () + ! yywrap ();
12101 }
12102 _ACEOF
12103 { { ac_try="$LEX conftest.l"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107 esac
12108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12109 $as_echo "$ac_try_echo"; } >&5
12110 (eval "$LEX conftest.l") 2>&5
12111 ac_status=$?
12112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12113 test $ac_status = 0; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12115 $as_echo_n "checking lex output file root... " >&6; }
12116 if ${ac_cv_prog_lex_root+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119
12120 if test -f lex.yy.c; then
12121 ac_cv_prog_lex_root=lex.yy
12122 elif test -f lexyy.c; then
12123 ac_cv_prog_lex_root=lexyy
12124 else
12125 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12126 fi
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12129 $as_echo "$ac_cv_prog_lex_root" >&6; }
12130 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12131
12132 if test -z "${LEXLIB+set}"; then
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12134 $as_echo_n "checking lex library... " >&6; }
12135 if ${ac_cv_lib_lex+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138
12139 ac_save_LIBS=$LIBS
12140 ac_cv_lib_lex='none needed'
12141 for ac_lib in '' -lfl -ll; do
12142 LIBS="$ac_lib $ac_save_LIBS"
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 `cat $LEX_OUTPUT_ROOT.c`
12146 _ACEOF
12147 if ac_fn_c_try_link "$LINENO"; then :
12148 ac_cv_lib_lex=$ac_lib
12149 fi
12150 rm -f core conftest.err conftest.$ac_objext \
12151 conftest$ac_exeext conftest.$ac_ext
12152 test "$ac_cv_lib_lex" != 'none needed' && break
12153 done
12154 LIBS=$ac_save_LIBS
12155
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12158 $as_echo "$ac_cv_lib_lex" >&6; }
12159 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12160 fi
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12164 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12165 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167 else
12168 # POSIX says lex can declare yytext either as a pointer or an array; the
12169 # default is implementation-dependent. Figure out which it is, since
12170 # not all implementations provide the %pointer and %array declarations.
12171 ac_cv_prog_lex_yytext_pointer=no
12172 ac_save_LIBS=$LIBS
12173 LIBS="$LEXLIB $ac_save_LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176
12177 #define YYTEXT_POINTER 1
12178 `cat $LEX_OUTPUT_ROOT.c`
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_prog_lex_yytext_pointer=yes
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_save_LIBS
12186
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12189 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12190 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12191
12192 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12193
12194 fi
12195 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12196
12197 fi
12198 if test "$LEX" = :; then
12199 LEX=${am_missing_run}flex
12200 fi
12201
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12203 $as_echo_n "checking for library containing socket... " >&6; }
12204 if ${ac_cv_search_socket+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206 else
12207 ac_func_search_save_LIBS=$LIBS
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 char socket ();
12218 int
12219 main ()
12220 {
12221 return socket ();
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 for ac_lib in '' socket; do
12227 if test -z "$ac_lib"; then
12228 ac_res="none required"
12229 else
12230 ac_res=-l$ac_lib
12231 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12232 fi
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_search_socket=$ac_res
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext
12238 if ${ac_cv_search_socket+:} false; then :
12239 break
12240 fi
12241 done
12242 if ${ac_cv_search_socket+:} false; then :
12243
12244 else
12245 ac_cv_search_socket=no
12246 fi
12247 rm conftest.$ac_ext
12248 LIBS=$ac_func_search_save_LIBS
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12251 $as_echo "$ac_cv_search_socket" >&6; }
12252 ac_res=$ac_cv_search_socket
12253 if test "$ac_res" != no; then :
12254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12255
12256 else
12257 as_fn_error $? "socket library not found" "$LINENO" 5
12258 fi
12259
12260 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12261 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12262
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12265 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12266 if ${ac_cv_search_getaddrinfo+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 ac_func_search_save_LIBS=$LIBS
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272
12273 /* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 char getaddrinfo ();
12280 int
12281 main ()
12282 {
12283 return getaddrinfo ();
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 for ac_lib in '' nsl; do
12289 if test -z "$ac_lib"; then
12290 ac_res="none required"
12291 else
12292 ac_res=-l$ac_lib
12293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12294 fi
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_search_getaddrinfo=$ac_res
12297 fi
12298 rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext
12300 if ${ac_cv_search_getaddrinfo+:} false; then :
12301 break
12302 fi
12303 done
12304 if ${ac_cv_search_getaddrinfo+:} false; then :
12305
12306 else
12307 ac_cv_search_getaddrinfo=no
12308 fi
12309 rm conftest.$ac_ext
12310 LIBS=$ac_func_search_save_LIBS
12311 fi
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12313 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12314 ac_res=$ac_cv_search_getaddrinfo
12315 if test "$ac_res" != no; then :
12316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12317
12318 fi
12319
12320 fi
12321
12322 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12323 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12324
12325 else
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12327 $as_echo_n "checking for library containing getnameinfo... " >&6; }
12328 if ${ac_cv_search_getnameinfo+:} false; then :
12329 $as_echo_n "(cached) " >&6
12330 else
12331 ac_func_search_save_LIBS=$LIBS
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334
12335 /* Override any GCC internal prototype to avoid an error.
12336 Use char because int might match the return type of a GCC
12337 builtin and then its argument prototype would still apply. */
12338 #ifdef __cplusplus
12339 extern "C"
12340 #endif
12341 char getnameinfo ();
12342 int
12343 main ()
12344 {
12345 return getnameinfo ();
12346 ;
12347 return 0;
12348 }
12349 _ACEOF
12350 for ac_lib in '' nsl; do
12351 if test -z "$ac_lib"; then
12352 ac_res="none required"
12353 else
12354 ac_res=-l$ac_lib
12355 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12356 fi
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_search_getnameinfo=$ac_res
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext \
12361 conftest$ac_exeext
12362 if ${ac_cv_search_getnameinfo+:} false; then :
12363 break
12364 fi
12365 done
12366 if ${ac_cv_search_getnameinfo+:} false; then :
12367
12368 else
12369 ac_cv_search_getnameinfo=no
12370 fi
12371 rm conftest.$ac_ext
12372 LIBS=$ac_func_search_save_LIBS
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12375 $as_echo "$ac_cv_search_getnameinfo" >&6; }
12376 ac_res=$ac_cv_search_getnameinfo
12377 if test "$ac_res" != no; then :
12378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12379
12380 fi
12381
12382 fi
12383
12384
12385 for ac_func in strlcpy strlcat
12386 do :
12387 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12388 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12389 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12390 cat >>confdefs.h <<_ACEOF
12391 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12392 _ACEOF
12393
12394 fi
12395 done
12396
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12399 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12400 if ${ac_cv_c_bigendian+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_cv_c_bigendian=unknown
12404 # See if we're dealing with a universal compiler.
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12407 #ifndef __APPLE_CC__
12408 not a universal capable compiler
12409 #endif
12410 typedef int dummy;
12411
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414
12415 # Check for potential -arch flags. It is not universal unless
12416 # there are at least two -arch flags with different values.
12417 ac_arch=
12418 ac_prev=
12419 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12420 if test -n "$ac_prev"; then
12421 case $ac_word in
12422 i?86 | x86_64 | ppc | ppc64)
12423 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12424 ac_arch=$ac_word
12425 else
12426 ac_cv_c_bigendian=universal
12427 break
12428 fi
12429 ;;
12430 esac
12431 ac_prev=
12432 elif test "x$ac_word" = "x-arch"; then
12433 ac_prev=arch
12434 fi
12435 done
12436 fi
12437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 if test $ac_cv_c_bigendian = unknown; then
12439 # See if sys/param.h defines the BYTE_ORDER macro.
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <sys/types.h>
12443 #include <sys/param.h>
12444
12445 int
12446 main ()
12447 {
12448 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12449 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12450 && LITTLE_ENDIAN)
12451 bogus endian macros
12452 #endif
12453
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_compile "$LINENO"; then :
12459 # It does; now see whether it defined to BIG_ENDIAN or not.
12460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12461 /* end confdefs.h. */
12462 #include <sys/types.h>
12463 #include <sys/param.h>
12464
12465 int
12466 main ()
12467 {
12468 #if BYTE_ORDER != BIG_ENDIAN
12469 not big endian
12470 #endif
12471
12472 ;
12473 return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477 ac_cv_c_bigendian=yes
12478 else
12479 ac_cv_c_bigendian=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482 fi
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 fi
12485 if test $ac_cv_c_bigendian = unknown; then
12486 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h. */
12489 #include <limits.h>
12490
12491 int
12492 main ()
12493 {
12494 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12495 bogus endian macros
12496 #endif
12497
12498 ;
12499 return 0;
12500 }
12501 _ACEOF
12502 if ac_fn_c_try_compile "$LINENO"; then :
12503 # It does; now see whether it defined to _BIG_ENDIAN or not.
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 #include <limits.h>
12507
12508 int
12509 main ()
12510 {
12511 #ifndef _BIG_ENDIAN
12512 not big endian
12513 #endif
12514
12515 ;
12516 return 0;
12517 }
12518 _ACEOF
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520 ac_cv_c_bigendian=yes
12521 else
12522 ac_cv_c_bigendian=no
12523 fi
12524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 fi
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 fi
12528 if test $ac_cv_c_bigendian = unknown; then
12529 # Compile a test program.
12530 if test "$cross_compiling" = yes; then :
12531 # Try to guess by grepping values from an object file.
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 short int ascii_mm[] =
12535 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12536 short int ascii_ii[] =
12537 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12538 int use_ascii (int i) {
12539 return ascii_mm[i] + ascii_ii[i];
12540 }
12541 short int ebcdic_ii[] =
12542 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12543 short int ebcdic_mm[] =
12544 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12545 int use_ebcdic (int i) {
12546 return ebcdic_mm[i] + ebcdic_ii[i];
12547 }
12548 extern int foo;
12549
12550 int
12551 main ()
12552 {
12553 return use_ascii (foo) == use_ebcdic (foo);
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_compile "$LINENO"; then :
12559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12560 ac_cv_c_bigendian=yes
12561 fi
12562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12563 if test "$ac_cv_c_bigendian" = unknown; then
12564 ac_cv_c_bigendian=no
12565 else
12566 # finding both strings is unlikely to happen, but who knows?
12567 ac_cv_c_bigendian=unknown
12568 fi
12569 fi
12570 fi
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 else
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 $ac_includes_default
12576 int
12577 main ()
12578 {
12579
12580 /* Are we little or big endian? From Harbison&Steele. */
12581 union
12582 {
12583 long int l;
12584 char c[sizeof (long int)];
12585 } u;
12586 u.l = 1;
12587 return u.c[sizeof (long int) - 1] == 1;
12588
12589 ;
12590 return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_run "$LINENO"; then :
12594 ac_cv_c_bigendian=no
12595 else
12596 ac_cv_c_bigendian=yes
12597 fi
12598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12599 conftest.$ac_objext conftest.beam conftest.$ac_ext
12600 fi
12601
12602 fi
12603 fi
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12605 $as_echo "$ac_cv_c_bigendian" >&6; }
12606 case $ac_cv_c_bigendian in #(
12607 yes)
12608 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12609 ;; #(
12610 no)
12611 ;; #(
12612 universal)
12613
12614 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12615
12616 ;; #(
12617 *)
12618 as_fn_error $? "unknown endianness
12619 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12620 esac
12621
12622
12623 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12624
12625 cat >confcache <<\_ACEOF
12626 # This file is a shell script that caches the results of configure
12627 # tests run on this system so they can be shared between configure
12628 # scripts and configure runs, see configure's option --config-cache.
12629 # It is not useful on other systems. If it contains results you don't
12630 # want to keep, you may remove or edit it.
12631 #
12632 # config.status only pays attention to the cache file if you give it
12633 # the --recheck option to rerun configure.
12634 #
12635 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12636 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12637 # following values.
12638
12639 _ACEOF
12640
12641 # The following way of writing the cache mishandles newlines in values,
12642 # but we know of no workaround that is simple, portable, and efficient.
12643 # So, we kill variables containing newlines.
12644 # Ultrix sh set writes to stderr and can't be redirected directly,
12645 # and sets the high bit in the cache file unless we assign to the vars.
12646 (
12647 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12648 eval ac_val=\$$ac_var
12649 case $ac_val in #(
12650 *${as_nl}*)
12651 case $ac_var in #(
12652 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12653 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12654 esac
12655 case $ac_var in #(
12656 _ | IFS | as_nl) ;; #(
12657 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12658 *) { eval $ac_var=; unset $ac_var;} ;;
12659 esac ;;
12660 esac
12661 done
12662
12663 (set) 2>&1 |
12664 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12665 *${as_nl}ac_space=\ *)
12666 # `set' does not quote correctly, so add quotes: double-quote
12667 # substitution turns \\\\ into \\, and sed turns \\ into \.
12668 sed -n \
12669 "s/'/'\\\\''/g;
12670 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12671 ;; #(
12672 *)
12673 # `set' quotes correctly as required by POSIX, so do not add quotes.
12674 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12675 ;;
12676 esac |
12677 sort
12678 ) |
12679 sed '
12680 /^ac_cv_env_/b end
12681 t clear
12682 :clear
12683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12684 t end
12685 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12686 :end' >>confcache
12687 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12688 if test -w "$cache_file"; then
12689 if test "x$cache_file" != "x/dev/null"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12691 $as_echo "$as_me: updating cache $cache_file" >&6;}
12692 if test ! -f "$cache_file" || test -h "$cache_file"; then
12693 cat confcache >"$cache_file"
12694 else
12695 case $cache_file in #(
12696 */* | ?:*)
12697 mv -f confcache "$cache_file"$$ &&
12698 mv -f "$cache_file"$$ "$cache_file" ;; #(
12699 *)
12700 mv -f confcache "$cache_file" ;;
12701 esac
12702 fi
12703 fi
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12706 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12707 fi
12708 fi
12709 rm -f confcache
12710
12711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12712 # Let make expand exec_prefix.
12713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12714
12715 DEFS=-DHAVE_CONFIG_H
12716
12717 ac_libobjs=
12718 ac_ltlibobjs=
12719 U=
12720 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12721 # 1. Remove the extension, and $U if already installed.
12722 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12723 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12724 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12725 # will be set to the directory where LIBOBJS objects are built.
12726 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12727 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12728 done
12729 LIBOBJS=$ac_libobjs
12730
12731 LTLIBOBJS=$ac_ltlibobjs
12732
12733
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12735 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12736 if test -n "$am_sleep_pid"; then
12737 # Hide warnings about reused PIDs.
12738 wait $am_sleep_pid 2>/dev/null
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12741 $as_echo "done" >&6; }
12742 if test -n "$EXEEXT"; then
12743 am__EXEEXT_TRUE=
12744 am__EXEEXT_FALSE='#'
12745 else
12746 am__EXEEXT_TRUE='#'
12747 am__EXEEXT_FALSE=
12748 fi
12749
12750 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12751 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12753 fi
12754 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12755 as_fn_error $? "conditional \"AMDEP\" was never defined.
12756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12757 fi
12758 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12759 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12761 fi
12762
12763
12764 : "${CONFIG_STATUS=./config.status}"
12765 ac_write_fail=0
12766 ac_clean_files_save=$ac_clean_files
12767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12770 as_write_fail=0
12771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12772 #! $SHELL
12773 # Generated by $as_me.
12774 # Run this file to recreate the current configuration.
12775 # Compiler output produced by configure, useful for debugging
12776 # configure, is in config.log if it exists.
12777
12778 debug=false
12779 ac_cs_recheck=false
12780 ac_cs_silent=false
12781
12782 SHELL=\${CONFIG_SHELL-$SHELL}
12783 export SHELL
12784 _ASEOF
12785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12786 ## -------------------- ##
12787 ## M4sh Initialization. ##
12788 ## -------------------- ##
12789
12790 # Be more Bourne compatible
12791 DUALCASE=1; export DUALCASE # for MKS sh
12792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12793 emulate sh
12794 NULLCMD=:
12795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12796 # is contrary to our usage. Disable this feature.
12797 alias -g '${1+"$@"}'='"$@"'
12798 setopt NO_GLOB_SUBST
12799 else
12800 case `(set -o) 2>/dev/null` in #(
12801 *posix*) :
12802 set -o posix ;; #(
12803 *) :
12804 ;;
12805 esac
12806 fi
12807
12808
12809 as_nl='
12810 '
12811 export as_nl
12812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12816 # Prefer a ksh shell builtin over an external printf program on Solaris,
12817 # but without wasting forks for bash or zsh.
12818 if test -z "$BASH_VERSION$ZSH_VERSION" \
12819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12820 as_echo='print -r --'
12821 as_echo_n='print -rn --'
12822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12823 as_echo='printf %s\n'
12824 as_echo_n='printf %s'
12825 else
12826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12828 as_echo_n='/usr/ucb/echo -n'
12829 else
12830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12831 as_echo_n_body='eval
12832 arg=$1;
12833 case $arg in #(
12834 *"$as_nl"*)
12835 expr "X$arg" : "X\\(.*\\)$as_nl";
12836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12837 esac;
12838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12839 '
12840 export as_echo_n_body
12841 as_echo_n='sh -c $as_echo_n_body as_echo'
12842 fi
12843 export as_echo_body
12844 as_echo='sh -c $as_echo_body as_echo'
12845 fi
12846
12847 # The user is always right.
12848 if test "${PATH_SEPARATOR+set}" != set; then
12849 PATH_SEPARATOR=:
12850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12852 PATH_SEPARATOR=';'
12853 }
12854 fi
12855
12856
12857 # IFS
12858 # We need space, tab and new line, in precisely that order. Quoting is
12859 # there to prevent editors from complaining about space-tab.
12860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12861 # splitting by setting IFS to empty value.)
12862 IFS=" "" $as_nl"
12863
12864 # Find who we are. Look in the path if we contain no directory separator.
12865 as_myself=
12866 case $0 in #((
12867 *[\\/]* ) as_myself=$0 ;;
12868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869 for as_dir in $PATH
12870 do
12871 IFS=$as_save_IFS
12872 test -z "$as_dir" && as_dir=.
12873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12874 done
12875 IFS=$as_save_IFS
12876
12877 ;;
12878 esac
12879 # We did not find ourselves, most probably we were run as `sh COMMAND'
12880 # in which case we are not to be found in the path.
12881 if test "x$as_myself" = x; then
12882 as_myself=$0
12883 fi
12884 if test ! -f "$as_myself"; then
12885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12886 exit 1
12887 fi
12888
12889 # Unset variables that we do not need and which cause bugs (e.g. in
12890 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12891 # suppresses any "Segmentation fault" message there. '((' could
12892 # trigger a bug in pdksh 5.2.14.
12893 for as_var in BASH_ENV ENV MAIL MAILPATH
12894 do eval test x\${$as_var+set} = xset \
12895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12896 done
12897 PS1='$ '
12898 PS2='> '
12899 PS4='+ '
12900
12901 # NLS nuisances.
12902 LC_ALL=C
12903 export LC_ALL
12904 LANGUAGE=C
12905 export LANGUAGE
12906
12907 # CDPATH.
12908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12909
12910
12911 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12912 # ----------------------------------------
12913 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12914 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12915 # script with STATUS, using 1 if that was 0.
12916 as_fn_error ()
12917 {
12918 as_status=$1; test $as_status -eq 0 && as_status=1
12919 if test "$4"; then
12920 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12922 fi
12923 $as_echo "$as_me: error: $2" >&2
12924 as_fn_exit $as_status
12925 } # as_fn_error
12926
12927
12928 # as_fn_set_status STATUS
12929 # -----------------------
12930 # Set $? to STATUS, without forking.
12931 as_fn_set_status ()
12932 {
12933 return $1
12934 } # as_fn_set_status
12935
12936 # as_fn_exit STATUS
12937 # -----------------
12938 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12939 as_fn_exit ()
12940 {
12941 set +e
12942 as_fn_set_status $1
12943 exit $1
12944 } # as_fn_exit
12945
12946 # as_fn_unset VAR
12947 # ---------------
12948 # Portably unset VAR.
12949 as_fn_unset ()
12950 {
12951 { eval $1=; unset $1;}
12952 }
12953 as_unset=as_fn_unset
12954 # as_fn_append VAR VALUE
12955 # ----------------------
12956 # Append the text in VALUE to the end of the definition contained in VAR. Take
12957 # advantage of any shell optimizations that allow amortized linear growth over
12958 # repeated appends, instead of the typical quadratic growth present in naive
12959 # implementations.
12960 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12961 eval 'as_fn_append ()
12962 {
12963 eval $1+=\$2
12964 }'
12965 else
12966 as_fn_append ()
12967 {
12968 eval $1=\$$1\$2
12969 }
12970 fi # as_fn_append
12971
12972 # as_fn_arith ARG...
12973 # ------------------
12974 # Perform arithmetic evaluation on the ARGs, and store the result in the
12975 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12976 # must be portable across $(()) and expr.
12977 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12978 eval 'as_fn_arith ()
12979 {
12980 as_val=$(( $* ))
12981 }'
12982 else
12983 as_fn_arith ()
12984 {
12985 as_val=`expr "$@" || test $? -eq 1`
12986 }
12987 fi # as_fn_arith
12988
12989
12990 if expr a : '\(a\)' >/dev/null 2>&1 &&
12991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12992 as_expr=expr
12993 else
12994 as_expr=false
12995 fi
12996
12997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12998 as_basename=basename
12999 else
13000 as_basename=false
13001 fi
13002
13003 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13004 as_dirname=dirname
13005 else
13006 as_dirname=false
13007 fi
13008
13009 as_me=`$as_basename -- "$0" ||
13010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13011 X"$0" : 'X\(//\)$' \| \
13012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13013 $as_echo X/"$0" |
13014 sed '/^.*\/\([^/][^/]*\)\/*$/{
13015 s//\1/
13016 q
13017 }
13018 /^X\/\(\/\/\)$/{
13019 s//\1/
13020 q
13021 }
13022 /^X\/\(\/\).*/{
13023 s//\1/
13024 q
13025 }
13026 s/.*/./; q'`
13027
13028 # Avoid depending upon Character Ranges.
13029 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13030 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13031 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13032 as_cr_digits='0123456789'
13033 as_cr_alnum=$as_cr_Letters$as_cr_digits
13034
13035 ECHO_C= ECHO_N= ECHO_T=
13036 case `echo -n x` in #(((((
13037 -n*)
13038 case `echo 'xy\c'` in
13039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13040 xy) ECHO_C='\c';;
13041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13042 ECHO_T=' ';;
13043 esac;;
13044 *)
13045 ECHO_N='-n';;
13046 esac
13047
13048 rm -f conf$$ conf$$.exe conf$$.file
13049 if test -d conf$$.dir; then
13050 rm -f conf$$.dir/conf$$.file
13051 else
13052 rm -f conf$$.dir
13053 mkdir conf$$.dir 2>/dev/null
13054 fi
13055 if (echo >conf$$.file) 2>/dev/null; then
13056 if ln -s conf$$.file conf$$ 2>/dev/null; then
13057 as_ln_s='ln -s'
13058 # ... but there are two gotchas:
13059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13061 # In both cases, we have to default to `cp -pR'.
13062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13063 as_ln_s='cp -pR'
13064 elif ln conf$$.file conf$$ 2>/dev/null; then
13065 as_ln_s=ln
13066 else
13067 as_ln_s='cp -pR'
13068 fi
13069 else
13070 as_ln_s='cp -pR'
13071 fi
13072 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13073 rmdir conf$$.dir 2>/dev/null
13074
13075
13076 # as_fn_mkdir_p
13077 # -------------
13078 # Create "$as_dir" as a directory, including parents if necessary.
13079 as_fn_mkdir_p ()
13080 {
13081
13082 case $as_dir in #(
13083 -*) as_dir=./$as_dir;;
13084 esac
13085 test -d "$as_dir" || eval $as_mkdir_p || {
13086 as_dirs=
13087 while :; do
13088 case $as_dir in #(
13089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13090 *) as_qdir=$as_dir;;
13091 esac
13092 as_dirs="'$as_qdir' $as_dirs"
13093 as_dir=`$as_dirname -- "$as_dir" ||
13094 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13095 X"$as_dir" : 'X\(//\)[^/]' \| \
13096 X"$as_dir" : 'X\(//\)$' \| \
13097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13098 $as_echo X"$as_dir" |
13099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13100 s//\1/
13101 q
13102 }
13103 /^X\(\/\/\)[^/].*/{
13104 s//\1/
13105 q
13106 }
13107 /^X\(\/\/\)$/{
13108 s//\1/
13109 q
13110 }
13111 /^X\(\/\).*/{
13112 s//\1/
13113 q
13114 }
13115 s/.*/./; q'`
13116 test -d "$as_dir" && break
13117 done
13118 test -z "$as_dirs" || eval "mkdir $as_dirs"
13119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13120
13121
13122 } # as_fn_mkdir_p
13123 if mkdir -p . 2>/dev/null; then
13124 as_mkdir_p='mkdir -p "$as_dir"'
13125 else
13126 test -d ./-p && rmdir ./-p
13127 as_mkdir_p=false
13128 fi
13129
13130
13131 # as_fn_executable_p FILE
13132 # -----------------------
13133 # Test if FILE is an executable regular file.
13134 as_fn_executable_p ()
13135 {
13136 test -f "$1" && test -x "$1"
13137 } # as_fn_executable_p
13138 as_test_x='test -x'
13139 as_executable_p=as_fn_executable_p
13140
13141 # Sed expression to map a string onto a valid CPP name.
13142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13143
13144 # Sed expression to map a string onto a valid variable name.
13145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13146
13147
13148 exec 6>&1
13149 ## ----------------------------------- ##
13150 ## Main body of $CONFIG_STATUS script. ##
13151 ## ----------------------------------- ##
13152 _ASEOF
13153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13154
13155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 # Save the log message, to keep $0 and so on meaningful, and to
13157 # report actual input values of CONFIG_FILES etc. instead of their
13158 # values after options handling.
13159 ac_log="
13160 This file was extended by hopm $as_me TRUNK, which was
13161 generated by GNU Autoconf 2.69. Invocation command line was
13162
13163 CONFIG_FILES = $CONFIG_FILES
13164 CONFIG_HEADERS = $CONFIG_HEADERS
13165 CONFIG_LINKS = $CONFIG_LINKS
13166 CONFIG_COMMANDS = $CONFIG_COMMANDS
13167 $ $0 $@
13168
13169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13170 "
13171
13172 _ACEOF
13173
13174 case $ac_config_files in *"
13175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13176 esac
13177
13178 case $ac_config_headers in *"
13179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13180 esac
13181
13182
13183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13184 # Files that config.status was made for.
13185 config_files="$ac_config_files"
13186 config_headers="$ac_config_headers"
13187 config_commands="$ac_config_commands"
13188
13189 _ACEOF
13190
13191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13192 ac_cs_usage="\
13193 \`$as_me' instantiates files and other configuration actions
13194 from templates according to the current configuration. Unless the files
13195 and actions are specified as TAGs, all are instantiated by default.
13196
13197 Usage: $0 [OPTION]... [TAG]...
13198
13199 -h, --help print this help, then exit
13200 -V, --version print version number and configuration settings, then exit
13201 --config print configuration, then exit
13202 -q, --quiet, --silent
13203 do not print progress messages
13204 -d, --debug don't remove temporary files
13205 --recheck update $as_me by reconfiguring in the same conditions
13206 --file=FILE[:TEMPLATE]
13207 instantiate the configuration file FILE
13208 --header=FILE[:TEMPLATE]
13209 instantiate the configuration header FILE
13210
13211 Configuration files:
13212 $config_files
13213
13214 Configuration headers:
13215 $config_headers
13216
13217 Configuration commands:
13218 $config_commands
13219
13220 Report bugs to <bugs@ircd-hybrid.org>."
13221
13222 _ACEOF
13223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13224 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13225 ac_cs_version="\\
13226 hopm config.status TRUNK
13227 configured by $0, generated by GNU Autoconf 2.69,
13228 with options \\"\$ac_cs_config\\"
13229
13230 Copyright (C) 2012 Free Software Foundation, Inc.
13231 This config.status script is free software; the Free Software Foundation
13232 gives unlimited permission to copy, distribute and modify it."
13233
13234 ac_pwd='$ac_pwd'
13235 srcdir='$srcdir'
13236 INSTALL='$INSTALL'
13237 MKDIR_P='$MKDIR_P'
13238 AWK='$AWK'
13239 test -n "\$AWK" || AWK=awk
13240 _ACEOF
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 # The default lists apply if the user does not specify any file.
13244 ac_need_defaults=:
13245 while test $# != 0
13246 do
13247 case $1 in
13248 --*=?*)
13249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13251 ac_shift=:
13252 ;;
13253 --*=)
13254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13255 ac_optarg=
13256 ac_shift=:
13257 ;;
13258 *)
13259 ac_option=$1
13260 ac_optarg=$2
13261 ac_shift=shift
13262 ;;
13263 esac
13264
13265 case $ac_option in
13266 # Handling of the options.
13267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13268 ac_cs_recheck=: ;;
13269 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13270 $as_echo "$ac_cs_version"; exit ;;
13271 --config | --confi | --conf | --con | --co | --c )
13272 $as_echo "$ac_cs_config"; exit ;;
13273 --debug | --debu | --deb | --de | --d | -d )
13274 debug=: ;;
13275 --file | --fil | --fi | --f )
13276 $ac_shift
13277 case $ac_optarg in
13278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13279 '') as_fn_error $? "missing file argument" ;;
13280 esac
13281 as_fn_append CONFIG_FILES " '$ac_optarg'"
13282 ac_need_defaults=false;;
13283 --header | --heade | --head | --hea )
13284 $ac_shift
13285 case $ac_optarg in
13286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13287 esac
13288 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13289 ac_need_defaults=false;;
13290 --he | --h)
13291 # Conflict between --help and --header
13292 as_fn_error $? "ambiguous option: \`$1'
13293 Try \`$0 --help' for more information.";;
13294 --help | --hel | -h )
13295 $as_echo "$ac_cs_usage"; exit ;;
13296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13298 ac_cs_silent=: ;;
13299
13300 # This is an error.
13301 -*) as_fn_error $? "unrecognized option: \`$1'
13302 Try \`$0 --help' for more information." ;;
13303
13304 *) as_fn_append ac_config_targets " $1"
13305 ac_need_defaults=false ;;
13306
13307 esac
13308 shift
13309 done
13310
13311 ac_configure_extra_args=
13312
13313 if $ac_cs_silent; then
13314 exec 6>/dev/null
13315 ac_configure_extra_args="$ac_configure_extra_args --silent"
13316 fi
13317
13318 _ACEOF
13319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13320 if \$ac_cs_recheck; then
13321 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13322 shift
13323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13324 CONFIG_SHELL='$SHELL'
13325 export CONFIG_SHELL
13326 exec "\$@"
13327 fi
13328
13329 _ACEOF
13330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13331 exec 5>>config.log
13332 {
13333 echo
13334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13335 ## Running $as_me. ##
13336 _ASBOX
13337 $as_echo "$ac_log"
13338 } >&5
13339
13340 _ACEOF
13341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13342 #
13343 # INIT-COMMANDS
13344 #
13345 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13346
13347
13348 # The HP-UX ksh and POSIX shell print the target directory to stdout
13349 # if CDPATH is set.
13350 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13351
13352 sed_quote_subst='$sed_quote_subst'
13353 double_quote_subst='$double_quote_subst'
13354 delay_variable_subst='$delay_variable_subst'
13355 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13356 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13357 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13359 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13360 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13361 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13362 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13363 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13364 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13365 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13366 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13367 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13368 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13369 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13370 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13371 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13372 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13373 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13374 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13375 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13376 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13377 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13378 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13379 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13380 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13381 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13382 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13383 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13384 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13385 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13386 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13387 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13388 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13389 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13390 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13391 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13392 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13393 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13394 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13395 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13397 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13398 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13399 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13400 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13401 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13402 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13403 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13404 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13405 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13406 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13407 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13408 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13409 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13410 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13411 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13412 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13413 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"`'
13414 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13415 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13416 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13417 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13418 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13419 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13420 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13421 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13422 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13423 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13424 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13425 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13426 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13427 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13428 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13429 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13430 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13431 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13432 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13433 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13434 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13435 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13436 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13437 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13438 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13439 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13440 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13441 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13442 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13443 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13444 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13445 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13446 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13447 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13448 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13449 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13450 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13451 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13452 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13453 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13454 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13455 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13456 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13457 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13458 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13459 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13460 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13461 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13462 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13463 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13464 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13465 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13466 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13467 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13468 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13469 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13470 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13471 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13472 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13473 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13474 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13475 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13476 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13477 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13478 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13479 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13480 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13481 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13482 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13483 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13484 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13485 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13486 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13487 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13488 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13489
13490 LTCC='$LTCC'
13491 LTCFLAGS='$LTCFLAGS'
13492 compiler='$compiler_DEFAULT'
13493
13494 # A function that is used when there is no print builtin or printf.
13495 func_fallback_echo ()
13496 {
13497 eval 'cat <<_LTECHO_EOF
13498 \$1
13499 _LTECHO_EOF'
13500 }
13501
13502 # Quote evaled strings.
13503 for var in SHELL \
13504 ECHO \
13505 PATH_SEPARATOR \
13506 SED \
13507 GREP \
13508 EGREP \
13509 FGREP \
13510 LD \
13511 NM \
13512 LN_S \
13513 lt_SP2NL \
13514 lt_NL2SP \
13515 reload_flag \
13516 OBJDUMP \
13517 deplibs_check_method \
13518 file_magic_cmd \
13519 file_magic_glob \
13520 want_nocaseglob \
13521 DLLTOOL \
13522 sharedlib_from_linklib_cmd \
13523 AR \
13524 AR_FLAGS \
13525 archiver_list_spec \
13526 STRIP \
13527 RANLIB \
13528 CC \
13529 CFLAGS \
13530 compiler \
13531 lt_cv_sys_global_symbol_pipe \
13532 lt_cv_sys_global_symbol_to_cdecl \
13533 lt_cv_sys_global_symbol_to_import \
13534 lt_cv_sys_global_symbol_to_c_name_address \
13535 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13536 lt_cv_nm_interface \
13537 nm_file_list_spec \
13538 lt_cv_truncate_bin \
13539 lt_prog_compiler_no_builtin_flag \
13540 lt_prog_compiler_pic \
13541 lt_prog_compiler_wl \
13542 lt_prog_compiler_static \
13543 lt_cv_prog_compiler_c_o \
13544 need_locks \
13545 MANIFEST_TOOL \
13546 DSYMUTIL \
13547 NMEDIT \
13548 LIPO \
13549 OTOOL \
13550 OTOOL64 \
13551 shrext_cmds \
13552 export_dynamic_flag_spec \
13553 whole_archive_flag_spec \
13554 compiler_needs_object \
13555 with_gnu_ld \
13556 allow_undefined_flag \
13557 no_undefined_flag \
13558 hardcode_libdir_flag_spec \
13559 hardcode_libdir_separator \
13560 exclude_expsyms \
13561 include_expsyms \
13562 file_list_spec \
13563 variables_saved_for_relink \
13564 libname_spec \
13565 library_names_spec \
13566 soname_spec \
13567 install_override_mode \
13568 finish_eval \
13569 old_striplib \
13570 striplib; do
13571 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13572 *[\\\\\\\`\\"\\\$]*)
13573 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13574 ;;
13575 *)
13576 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13577 ;;
13578 esac
13579 done
13580
13581 # Double-quote double-evaled strings.
13582 for var in reload_cmds \
13583 old_postinstall_cmds \
13584 old_postuninstall_cmds \
13585 old_archive_cmds \
13586 extract_expsyms_cmds \
13587 old_archive_from_new_cmds \
13588 old_archive_from_expsyms_cmds \
13589 archive_cmds \
13590 archive_expsym_cmds \
13591 module_cmds \
13592 module_expsym_cmds \
13593 export_symbols_cmds \
13594 prelink_cmds \
13595 postlink_cmds \
13596 postinstall_cmds \
13597 postuninstall_cmds \
13598 finish_cmds \
13599 sys_lib_search_path_spec \
13600 sys_lib_dlsearch_path_spec; do
13601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13602 *[\\\\\\\`\\"\\\$]*)
13603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13604 ;;
13605 *)
13606 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13607 ;;
13608 esac
13609 done
13610
13611 ac_aux_dir='$ac_aux_dir'
13612
13613 # See if we are running on zsh, and set the options that allow our
13614 # commands through without removal of \ escapes INIT.
13615 if test -n "\${ZSH_VERSION+set}"; then
13616 setopt NO_GLOB_SUBST
13617 fi
13618
13619
13620 PACKAGE='$PACKAGE'
13621 VERSION='$VERSION'
13622 RM='$RM'
13623 ofile='$ofile'
13624
13625
13626
13627
13628 _ACEOF
13629
13630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13631
13632 # Handling of arguments.
13633 for ac_config_target in $ac_config_targets
13634 do
13635 case $ac_config_target in
13636 "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13638 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13639 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13640 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13641 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13642 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13643 "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13644
13645 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13646 esac
13647 done
13648
13649
13650 # If the user did not use the arguments to specify the items to instantiate,
13651 # then the envvar interface is used. Set only those that are not.
13652 # We use the long form for the default assignment because of an extremely
13653 # bizarre bug on SunOS 4.1.3.
13654 if $ac_need_defaults; then
13655 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13656 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13657 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13658 fi
13659
13660 # Have a temporary directory for convenience. Make it in the build tree
13661 # simply because there is no reason against having it here, and in addition,
13662 # creating and moving files from /tmp can sometimes cause problems.
13663 # Hook for its removal unless debugging.
13664 # Note that there is a small window in which the directory will not be cleaned:
13665 # after its creation but before its name has been assigned to `$tmp'.
13666 $debug ||
13667 {
13668 tmp= ac_tmp=
13669 trap 'exit_status=$?
13670 : "${ac_tmp:=$tmp}"
13671 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13672 ' 0
13673 trap 'as_fn_exit 1' 1 2 13 15
13674 }
13675 # Create a (secure) tmp directory for tmp files.
13676
13677 {
13678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13679 test -d "$tmp"
13680 } ||
13681 {
13682 tmp=./conf$$-$RANDOM
13683 (umask 077 && mkdir "$tmp")
13684 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13685 ac_tmp=$tmp
13686
13687 # Set up the scripts for CONFIG_FILES section.
13688 # No need to generate them if there are no CONFIG_FILES.
13689 # This happens for instance with `./config.status config.h'.
13690 if test -n "$CONFIG_FILES"; then
13691
13692
13693 ac_cr=`echo X | tr X '\015'`
13694 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13695 # But we know of no other shell where ac_cr would be empty at this
13696 # point, so we can use a bashism as a fallback.
13697 if test "x$ac_cr" = x; then
13698 eval ac_cr=\$\'\\r\'
13699 fi
13700 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13701 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13702 ac_cs_awk_cr='\\r'
13703 else
13704 ac_cs_awk_cr=$ac_cr
13705 fi
13706
13707 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13708 _ACEOF
13709
13710
13711 {
13712 echo "cat >conf$$subs.awk <<_ACEOF" &&
13713 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13714 echo "_ACEOF"
13715 } >conf$$subs.sh ||
13716 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13717 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13718 ac_delim='%!_!# '
13719 for ac_last_try in false false false false false :; do
13720 . ./conf$$subs.sh ||
13721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13722
13723 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13724 if test $ac_delim_n = $ac_delim_num; then
13725 break
13726 elif $ac_last_try; then
13727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13728 else
13729 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13730 fi
13731 done
13732 rm -f conf$$subs.sh
13733
13734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13735 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13736 _ACEOF
13737 sed -n '
13738 h
13739 s/^/S["/; s/!.*/"]=/
13740 p
13741 g
13742 s/^[^!]*!//
13743 :repl
13744 t repl
13745 s/'"$ac_delim"'$//
13746 t delim
13747 :nl
13748 h
13749 s/\(.\{148\}\)..*/\1/
13750 t more1
13751 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13752 p
13753 n
13754 b repl
13755 :more1
13756 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13757 p
13758 g
13759 s/.\{148\}//
13760 t nl
13761 :delim
13762 h
13763 s/\(.\{148\}\)..*/\1/
13764 t more2
13765 s/["\\]/\\&/g; s/^/"/; s/$/"/
13766 p
13767 b
13768 :more2
13769 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13770 p
13771 g
13772 s/.\{148\}//
13773 t delim
13774 ' <conf$$subs.awk | sed '
13775 /^[^""]/{
13776 N
13777 s/\n//
13778 }
13779 ' >>$CONFIG_STATUS || ac_write_fail=1
13780 rm -f conf$$subs.awk
13781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13782 _ACAWK
13783 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13784 for (key in S) S_is_set[key] = 1
13785 FS = ""
13786
13787 }
13788 {
13789 line = $ 0
13790 nfields = split(line, field, "@")
13791 substed = 0
13792 len = length(field[1])
13793 for (i = 2; i < nfields; i++) {
13794 key = field[i]
13795 keylen = length(key)
13796 if (S_is_set[key]) {
13797 value = S[key]
13798 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13799 len += length(value) + length(field[++i])
13800 substed = 1
13801 } else
13802 len += 1 + keylen
13803 }
13804
13805 print line
13806 }
13807
13808 _ACAWK
13809 _ACEOF
13810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13811 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13812 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13813 else
13814 cat
13815 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13816 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13817 _ACEOF
13818
13819 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13820 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13821 # trailing colons and then remove the whole line if VPATH becomes empty
13822 # (actually we leave an empty line to preserve line numbers).
13823 if test "x$srcdir" = x.; then
13824 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13825 h
13826 s///
13827 s/^/:/
13828 s/[ ]*$/:/
13829 s/:\$(srcdir):/:/g
13830 s/:\${srcdir}:/:/g
13831 s/:@srcdir@:/:/g
13832 s/^:*//
13833 s/:*$//
13834 x
13835 s/\(=[ ]*\).*/\1/
13836 G
13837 s/\n//
13838 s/^[^=]*=[ ]*$//
13839 }'
13840 fi
13841
13842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843 fi # test -n "$CONFIG_FILES"
13844
13845 # Set up the scripts for CONFIG_HEADERS section.
13846 # No need to generate them if there are no CONFIG_HEADERS.
13847 # This happens for instance with `./config.status Makefile'.
13848 if test -n "$CONFIG_HEADERS"; then
13849 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13850 BEGIN {
13851 _ACEOF
13852
13853 # Transform confdefs.h into an awk script `defines.awk', embedded as
13854 # here-document in config.status, that substitutes the proper values into
13855 # config.h.in to produce config.h.
13856
13857 # Create a delimiter string that does not exist in confdefs.h, to ease
13858 # handling of long lines.
13859 ac_delim='%!_!# '
13860 for ac_last_try in false false :; do
13861 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13862 if test -z "$ac_tt"; then
13863 break
13864 elif $ac_last_try; then
13865 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13866 else
13867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13868 fi
13869 done
13870
13871 # For the awk script, D is an array of macro values keyed by name,
13872 # likewise P contains macro parameters if any. Preserve backslash
13873 # newline sequences.
13874
13875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13876 sed -n '
13877 s/.\{148\}/&'"$ac_delim"'/g
13878 t rset
13879 :rset
13880 s/^[ ]*#[ ]*define[ ][ ]*/ /
13881 t def
13882 d
13883 :def
13884 s/\\$//
13885 t bsnl
13886 s/["\\]/\\&/g
13887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13888 D["\1"]=" \3"/p
13889 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13890 d
13891 :bsnl
13892 s/["\\]/\\&/g
13893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13894 D["\1"]=" \3\\\\\\n"\\/p
13895 t cont
13896 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13897 t cont
13898 d
13899 :cont
13900 n
13901 s/.\{148\}/&'"$ac_delim"'/g
13902 t clear
13903 :clear
13904 s/\\$//
13905 t bsnlc
13906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13907 d
13908 :bsnlc
13909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13910 b cont
13911 ' <confdefs.h | sed '
13912 s/'"$ac_delim"'/"\\\
13913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13914
13915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13916 for (key in D) D_is_set[key] = 1
13917 FS = ""
13918 }
13919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13920 line = \$ 0
13921 split(line, arg, " ")
13922 if (arg[1] == "#") {
13923 defundef = arg[2]
13924 mac1 = arg[3]
13925 } else {
13926 defundef = substr(arg[1], 2)
13927 mac1 = arg[2]
13928 }
13929 split(mac1, mac2, "(") #)
13930 macro = mac2[1]
13931 prefix = substr(line, 1, index(line, defundef) - 1)
13932 if (D_is_set[macro]) {
13933 # Preserve the white space surrounding the "#".
13934 print prefix "define", macro P[macro] D[macro]
13935 next
13936 } else {
13937 # Replace #undef with comments. This is necessary, for example,
13938 # in the case of _POSIX_SOURCE, which is predefined and required
13939 # on some systems where configure will not decide to define it.
13940 if (defundef == "undef") {
13941 print "/*", prefix defundef, macro, "*/"
13942 next
13943 }
13944 }
13945 }
13946 { print }
13947 _ACAWK
13948 _ACEOF
13949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13950 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13951 fi # test -n "$CONFIG_HEADERS"
13952
13953
13954 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13955 shift
13956 for ac_tag
13957 do
13958 case $ac_tag in
13959 :[FHLC]) ac_mode=$ac_tag; continue;;
13960 esac
13961 case $ac_mode$ac_tag in
13962 :[FHL]*:*);;
13963 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13964 :[FH]-) ac_tag=-:-;;
13965 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13966 esac
13967 ac_save_IFS=$IFS
13968 IFS=:
13969 set x $ac_tag
13970 IFS=$ac_save_IFS
13971 shift
13972 ac_file=$1
13973 shift
13974
13975 case $ac_mode in
13976 :L) ac_source=$1;;
13977 :[FH])
13978 ac_file_inputs=
13979 for ac_f
13980 do
13981 case $ac_f in
13982 -) ac_f="$ac_tmp/stdin";;
13983 *) # Look for the file first in the build tree, then in the source tree
13984 # (if the path is not absolute). The absolute path cannot be DOS-style,
13985 # because $ac_f cannot contain `:'.
13986 test -f "$ac_f" ||
13987 case $ac_f in
13988 [\\/$]*) false;;
13989 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13990 esac ||
13991 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13992 esac
13993 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13994 as_fn_append ac_file_inputs " '$ac_f'"
13995 done
13996
13997 # Let's still pretend it is `configure' which instantiates (i.e., don't
13998 # use $as_me), people would be surprised to read:
13999 # /* config.h. Generated by config.status. */
14000 configure_input='Generated from '`
14001 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14002 `' by configure.'
14003 if test x"$ac_file" != x-; then
14004 configure_input="$ac_file. $configure_input"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14006 $as_echo "$as_me: creating $ac_file" >&6;}
14007 fi
14008 # Neutralize special characters interpreted by sed in replacement strings.
14009 case $configure_input in #(
14010 *\&* | *\|* | *\\* )
14011 ac_sed_conf_input=`$as_echo "$configure_input" |
14012 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14013 *) ac_sed_conf_input=$configure_input;;
14014 esac
14015
14016 case $ac_tag in
14017 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14018 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14019 esac
14020 ;;
14021 esac
14022
14023 ac_dir=`$as_dirname -- "$ac_file" ||
14024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14025 X"$ac_file" : 'X\(//\)[^/]' \| \
14026 X"$ac_file" : 'X\(//\)$' \| \
14027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14028 $as_echo X"$ac_file" |
14029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14030 s//\1/
14031 q
14032 }
14033 /^X\(\/\/\)[^/].*/{
14034 s//\1/
14035 q
14036 }
14037 /^X\(\/\/\)$/{
14038 s//\1/
14039 q
14040 }
14041 /^X\(\/\).*/{
14042 s//\1/
14043 q
14044 }
14045 s/.*/./; q'`
14046 as_dir="$ac_dir"; as_fn_mkdir_p
14047 ac_builddir=.
14048
14049 case "$ac_dir" in
14050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14051 *)
14052 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14053 # A ".." for each directory in $ac_dir_suffix.
14054 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14055 case $ac_top_builddir_sub in
14056 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14057 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14058 esac ;;
14059 esac
14060 ac_abs_top_builddir=$ac_pwd
14061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14062 # for backward compatibility:
14063 ac_top_builddir=$ac_top_build_prefix
14064
14065 case $srcdir in
14066 .) # We are building in place.
14067 ac_srcdir=.
14068 ac_top_srcdir=$ac_top_builddir_sub
14069 ac_abs_top_srcdir=$ac_pwd ;;
14070 [\\/]* | ?:[\\/]* ) # Absolute name.
14071 ac_srcdir=$srcdir$ac_dir_suffix;
14072 ac_top_srcdir=$srcdir
14073 ac_abs_top_srcdir=$srcdir ;;
14074 *) # Relative name.
14075 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14076 ac_top_srcdir=$ac_top_build_prefix$srcdir
14077 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14078 esac
14079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14080
14081
14082 case $ac_mode in
14083 :F)
14084 #
14085 # CONFIG_FILE
14086 #
14087
14088 case $INSTALL in
14089 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14090 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14091 esac
14092 ac_MKDIR_P=$MKDIR_P
14093 case $MKDIR_P in
14094 [\\/$]* | ?:[\\/]* ) ;;
14095 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14096 esac
14097 _ACEOF
14098
14099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14100 # If the template does not know about datarootdir, expand it.
14101 # FIXME: This hack should be removed a few years after 2.60.
14102 ac_datarootdir_hack=; ac_datarootdir_seen=
14103 ac_sed_dataroot='
14104 /datarootdir/ {
14105 p
14106 q
14107 }
14108 /@datadir@/p
14109 /@docdir@/p
14110 /@infodir@/p
14111 /@localedir@/p
14112 /@mandir@/p'
14113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14114 *datarootdir*) ac_datarootdir_seen=yes;;
14115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14118 _ACEOF
14119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14120 ac_datarootdir_hack='
14121 s&@datadir@&$datadir&g
14122 s&@docdir@&$docdir&g
14123 s&@infodir@&$infodir&g
14124 s&@localedir@&$localedir&g
14125 s&@mandir@&$mandir&g
14126 s&\\\${datarootdir}&$datarootdir&g' ;;
14127 esac
14128 _ACEOF
14129
14130 # Neutralize VPATH when `$srcdir' = `.'.
14131 # Shell code in configure.ac might set extrasub.
14132 # FIXME: do we really want to maintain this feature?
14133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14134 ac_sed_extra="$ac_vpsub
14135 $extrasub
14136 _ACEOF
14137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14138 :t
14139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14140 s|@configure_input@|$ac_sed_conf_input|;t t
14141 s&@top_builddir@&$ac_top_builddir_sub&;t t
14142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14143 s&@srcdir@&$ac_srcdir&;t t
14144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14145 s&@top_srcdir@&$ac_top_srcdir&;t t
14146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14147 s&@builddir@&$ac_builddir&;t t
14148 s&@abs_builddir@&$ac_abs_builddir&;t t
14149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14150 s&@INSTALL@&$ac_INSTALL&;t t
14151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14152 $ac_datarootdir_hack
14153 "
14154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14156
14157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14162 which seems to be undefined. Please make sure it is defined" >&5
14163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14164 which seems to be undefined. Please make sure it is defined" >&2;}
14165
14166 rm -f "$ac_tmp/stdin"
14167 case $ac_file in
14168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14170 esac \
14171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14172 ;;
14173 :H)
14174 #
14175 # CONFIG_HEADER
14176 #
14177 if test x"$ac_file" != x-; then
14178 {
14179 $as_echo "/* $configure_input */" \
14180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14181 } >"$ac_tmp/config.h" \
14182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14186 else
14187 rm -f "$ac_file"
14188 mv "$ac_tmp/config.h" "$ac_file" \
14189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14190 fi
14191 else
14192 $as_echo "/* $configure_input */" \
14193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14194 || as_fn_error $? "could not create -" "$LINENO" 5
14195 fi
14196 # Compute "$ac_file"'s index in $config_headers.
14197 _am_arg="$ac_file"
14198 _am_stamp_count=1
14199 for _am_header in $config_headers :; do
14200 case $_am_header in
14201 $_am_arg | $_am_arg:* )
14202 break ;;
14203 * )
14204 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14205 esac
14206 done
14207 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14208 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14209 X"$_am_arg" : 'X\(//\)[^/]' \| \
14210 X"$_am_arg" : 'X\(//\)$' \| \
14211 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14212 $as_echo X"$_am_arg" |
14213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14214 s//\1/
14215 q
14216 }
14217 /^X\(\/\/\)[^/].*/{
14218 s//\1/
14219 q
14220 }
14221 /^X\(\/\/\)$/{
14222 s//\1/
14223 q
14224 }
14225 /^X\(\/\).*/{
14226 s//\1/
14227 q
14228 }
14229 s/.*/./; q'`/stamp-h$_am_stamp_count
14230 ;;
14231
14232 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14233 $as_echo "$as_me: executing $ac_file commands" >&6;}
14234 ;;
14235 esac
14236
14237
14238 case $ac_file$ac_mode in
14239 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14240 # Older Autoconf quotes --file arguments for eval, but not when files
14241 # are listed without --file. Let's play safe and only enable the eval
14242 # if we detect the quoting.
14243 case $CONFIG_FILES in
14244 *\'*) eval set x "$CONFIG_FILES" ;;
14245 *) set x $CONFIG_FILES ;;
14246 esac
14247 shift
14248 for mf
14249 do
14250 # Strip MF so we end up with the name of the file.
14251 mf=`echo "$mf" | sed -e 's/:.*$//'`
14252 # Check whether this is an Automake generated Makefile or not.
14253 # We used to match only the files named 'Makefile.in', but
14254 # some people rename them; so instead we look at the file content.
14255 # Grep'ing the first line is not enough: some people post-process
14256 # each Makefile.in and add a new line on top of each file to say so.
14257 # Grep'ing the whole file is not good either: AIX grep has a line
14258 # limit of 2048, but all sed's we know have understand at least 4000.
14259 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14260 dirpart=`$as_dirname -- "$mf" ||
14261 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14262 X"$mf" : 'X\(//\)[^/]' \| \
14263 X"$mf" : 'X\(//\)$' \| \
14264 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14265 $as_echo X"$mf" |
14266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14267 s//\1/
14268 q
14269 }
14270 /^X\(\/\/\)[^/].*/{
14271 s//\1/
14272 q
14273 }
14274 /^X\(\/\/\)$/{
14275 s//\1/
14276 q
14277 }
14278 /^X\(\/\).*/{
14279 s//\1/
14280 q
14281 }
14282 s/.*/./; q'`
14283 else
14284 continue
14285 fi
14286 # Extract the definition of DEPDIR, am__include, and am__quote
14287 # from the Makefile without running 'make'.
14288 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14289 test -z "$DEPDIR" && continue
14290 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14291 test -z "$am__include" && continue
14292 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14293 # Find all dependency output files, they are included files with
14294 # $(DEPDIR) in their names. We invoke sed twice because it is the
14295 # simplest approach to changing $(DEPDIR) to its actual value in the
14296 # expansion.
14297 for file in `sed -n "
14298 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14299 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14300 # Make sure the directory exists.
14301 test -f "$dirpart/$file" && continue
14302 fdir=`$as_dirname -- "$file" ||
14303 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14304 X"$file" : 'X\(//\)[^/]' \| \
14305 X"$file" : 'X\(//\)$' \| \
14306 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14307 $as_echo X"$file" |
14308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14309 s//\1/
14310 q
14311 }
14312 /^X\(\/\/\)[^/].*/{
14313 s//\1/
14314 q
14315 }
14316 /^X\(\/\/\)$/{
14317 s//\1/
14318 q
14319 }
14320 /^X\(\/\).*/{
14321 s//\1/
14322 q
14323 }
14324 s/.*/./; q'`
14325 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14326 # echo "creating $dirpart/$file"
14327 echo '# dummy' > "$dirpart/$file"
14328 done
14329 done
14330 }
14331 ;;
14332 "libtool":C)
14333
14334 # See if we are running on zsh, and set the options that allow our
14335 # commands through without removal of \ escapes.
14336 if test -n "${ZSH_VERSION+set}"; then
14337 setopt NO_GLOB_SUBST
14338 fi
14339
14340 cfgfile=${ofile}T
14341 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14342 $RM "$cfgfile"
14343
14344 cat <<_LT_EOF >> "$cfgfile"
14345 #! $SHELL
14346 # Generated automatically by $as_me ($PACKAGE) $VERSION
14347 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14348 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14349
14350 # Provide generalized library-building support services.
14351 # Written by Gordon Matzigkeit, 1996
14352
14353 # Copyright (C) 2014 Free Software Foundation, Inc.
14354 # This is free software; see the source for copying conditions. There is NO
14355 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14356
14357 # GNU Libtool is free software; you can redistribute it and/or modify
14358 # it under the terms of the GNU General Public License as published by
14359 # the Free Software Foundation; either version 2 of of the License, or
14360 # (at your option) any later version.
14361 #
14362 # As a special exception to the GNU General Public License, if you
14363 # distribute this file as part of a program or library that is built
14364 # using GNU Libtool, you may include this file under the same
14365 # distribution terms that you use for the rest of that program.
14366 #
14367 # GNU Libtool is distributed in the hope that it will be useful, but
14368 # WITHOUT ANY WARRANTY; without even the implied warranty of
14369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14370 # GNU General Public License for more details.
14371 #
14372 # You should have received a copy of the GNU General Public License
14373 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14374
14375
14376 # The names of the tagged configurations supported by this script.
14377 available_tags=''
14378
14379 # ### BEGIN LIBTOOL CONFIG
14380
14381 # Which release of libtool.m4 was used?
14382 macro_version=$macro_version
14383 macro_revision=$macro_revision
14384
14385 # Whether or not to build shared libraries.
14386 build_libtool_libs=$enable_shared
14387
14388 # Whether or not to build static libraries.
14389 build_old_libs=$enable_static
14390
14391 # What type of objects to build.
14392 pic_mode=$pic_mode
14393
14394 # Whether or not to optimize for fast installation.
14395 fast_install=$enable_fast_install
14396
14397 # Shared archive member basename,for filename based shared library versioning on AIX.
14398 shared_archive_member_spec=$shared_archive_member_spec
14399
14400 # Shell to use when invoking shell scripts.
14401 SHELL=$lt_SHELL
14402
14403 # An echo program that protects backslashes.
14404 ECHO=$lt_ECHO
14405
14406 # The PATH separator for the build system.
14407 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14408
14409 # The host system.
14410 host_alias=$host_alias
14411 host=$host
14412 host_os=$host_os
14413
14414 # The build system.
14415 build_alias=$build_alias
14416 build=$build
14417 build_os=$build_os
14418
14419 # A sed program that does not truncate output.
14420 SED=$lt_SED
14421
14422 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14423 Xsed="\$SED -e 1s/^X//"
14424
14425 # A grep program that handles long lines.
14426 GREP=$lt_GREP
14427
14428 # An ERE matcher.
14429 EGREP=$lt_EGREP
14430
14431 # A literal string matcher.
14432 FGREP=$lt_FGREP
14433
14434 # A BSD- or MS-compatible name lister.
14435 NM=$lt_NM
14436
14437 # Whether we need soft or hard links.
14438 LN_S=$lt_LN_S
14439
14440 # What is the maximum length of a command?
14441 max_cmd_len=$max_cmd_len
14442
14443 # Object file suffix (normally "o").
14444 objext=$ac_objext
14445
14446 # Executable file suffix (normally "").
14447 exeext=$exeext
14448
14449 # whether the shell understands "unset".
14450 lt_unset=$lt_unset
14451
14452 # turn spaces into newlines.
14453 SP2NL=$lt_lt_SP2NL
14454
14455 # turn newlines into spaces.
14456 NL2SP=$lt_lt_NL2SP
14457
14458 # convert \$build file names to \$host format.
14459 to_host_file_cmd=$lt_cv_to_host_file_cmd
14460
14461 # convert \$build files to toolchain format.
14462 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14463
14464 # An object symbol dumper.
14465 OBJDUMP=$lt_OBJDUMP
14466
14467 # Method to check whether dependent libraries are shared objects.
14468 deplibs_check_method=$lt_deplibs_check_method
14469
14470 # Command to use when deplibs_check_method = "file_magic".
14471 file_magic_cmd=$lt_file_magic_cmd
14472
14473 # How to find potential files when deplibs_check_method = "file_magic".
14474 file_magic_glob=$lt_file_magic_glob
14475
14476 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14477 want_nocaseglob=$lt_want_nocaseglob
14478
14479 # DLL creation program.
14480 DLLTOOL=$lt_DLLTOOL
14481
14482 # Command to associate shared and link libraries.
14483 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14484
14485 # The archiver.
14486 AR=$lt_AR
14487
14488 # Flags to create an archive.
14489 AR_FLAGS=$lt_AR_FLAGS
14490
14491 # How to feed a file listing to the archiver.
14492 archiver_list_spec=$lt_archiver_list_spec
14493
14494 # A symbol stripping program.
14495 STRIP=$lt_STRIP
14496
14497 # Commands used to install an old-style archive.
14498 RANLIB=$lt_RANLIB
14499 old_postinstall_cmds=$lt_old_postinstall_cmds
14500 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14501
14502 # Whether to use a lock for old archive extraction.
14503 lock_old_archive_extraction=$lock_old_archive_extraction
14504
14505 # A C compiler.
14506 LTCC=$lt_CC
14507
14508 # LTCC compiler flags.
14509 LTCFLAGS=$lt_CFLAGS
14510
14511 # Take the output of nm and produce a listing of raw symbols and C names.
14512 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14513
14514 # Transform the output of nm in a proper C declaration.
14515 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14516
14517 # Transform the output of nm into a list of symbols to manually relocate.
14518 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14519
14520 # Transform the output of nm in a C name address pair.
14521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14522
14523 # Transform the output of nm in a C name address pair when lib prefix is needed.
14524 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14525
14526 # The name lister interface.
14527 nm_interface=$lt_lt_cv_nm_interface
14528
14529 # Specify filename containing input files for \$NM.
14530 nm_file_list_spec=$lt_nm_file_list_spec
14531
14532 # The root where to search for dependent libraries,and where our libraries should be installed.
14533 lt_sysroot=$lt_sysroot
14534
14535 # Command to truncate a binary pipe.
14536 lt_truncate_bin=$lt_lt_cv_truncate_bin
14537
14538 # The name of the directory that contains temporary libtool files.
14539 objdir=$objdir
14540
14541 # Used to examine libraries when file_magic_cmd begins with "file".
14542 MAGIC_CMD=$MAGIC_CMD
14543
14544 # Must we lock files when doing compilation?
14545 need_locks=$lt_need_locks
14546
14547 # Manifest tool.
14548 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14549
14550 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14551 DSYMUTIL=$lt_DSYMUTIL
14552
14553 # Tool to change global to local symbols on Mac OS X.
14554 NMEDIT=$lt_NMEDIT
14555
14556 # Tool to manipulate fat objects and archives on Mac OS X.
14557 LIPO=$lt_LIPO
14558
14559 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14560 OTOOL=$lt_OTOOL
14561
14562 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14563 OTOOL64=$lt_OTOOL64
14564
14565 # Old archive suffix (normally "a").
14566 libext=$libext
14567
14568 # Shared library suffix (normally ".so").
14569 shrext_cmds=$lt_shrext_cmds
14570
14571 # The commands to extract the exported symbol list from a shared archive.
14572 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14573
14574 # Variables whose values should be saved in libtool wrapper scripts and
14575 # restored at link time.
14576 variables_saved_for_relink=$lt_variables_saved_for_relink
14577
14578 # Do we need the "lib" prefix for modules?
14579 need_lib_prefix=$need_lib_prefix
14580
14581 # Do we need a version for libraries?
14582 need_version=$need_version
14583
14584 # Library versioning type.
14585 version_type=$version_type
14586
14587 # Shared library runtime path variable.
14588 runpath_var=$runpath_var
14589
14590 # Shared library path variable.
14591 shlibpath_var=$shlibpath_var
14592
14593 # Is shlibpath searched before the hard-coded library search path?
14594 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14595
14596 # Format of library name prefix.
14597 libname_spec=$lt_libname_spec
14598
14599 # List of archive names. First name is the real one, the rest are links.
14600 # The last name is the one that the linker finds with -lNAME
14601 library_names_spec=$lt_library_names_spec
14602
14603 # The coded name of the library, if different from the real name.
14604 soname_spec=$lt_soname_spec
14605
14606 # Permission mode override for installation of shared libraries.
14607 install_override_mode=$lt_install_override_mode
14608
14609 # Command to use after installation of a shared archive.
14610 postinstall_cmds=$lt_postinstall_cmds
14611
14612 # Command to use after uninstallation of a shared archive.
14613 postuninstall_cmds=$lt_postuninstall_cmds
14614
14615 # Commands used to finish a libtool library installation in a directory.
14616 finish_cmds=$lt_finish_cmds
14617
14618 # As "finish_cmds", except a single script fragment to be evaled but
14619 # not shown.
14620 finish_eval=$lt_finish_eval
14621
14622 # Whether we should hardcode library paths into libraries.
14623 hardcode_into_libs=$hardcode_into_libs
14624
14625 # Compile-time system search path for libraries.
14626 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14627
14628 # Run-time system search path for libraries.
14629 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14630
14631 # Whether dlopen is supported.
14632 dlopen_support=$enable_dlopen
14633
14634 # Whether dlopen of programs is supported.
14635 dlopen_self=$enable_dlopen_self
14636
14637 # Whether dlopen of statically linked programs is supported.
14638 dlopen_self_static=$enable_dlopen_self_static
14639
14640 # Commands to strip libraries.
14641 old_striplib=$lt_old_striplib
14642 striplib=$lt_striplib
14643
14644
14645 # The linker used to build libraries.
14646 LD=$lt_LD
14647
14648 # How to create reloadable object files.
14649 reload_flag=$lt_reload_flag
14650 reload_cmds=$lt_reload_cmds
14651
14652 # Commands used to build an old-style archive.
14653 old_archive_cmds=$lt_old_archive_cmds
14654
14655 # A language specific compiler.
14656 CC=$lt_compiler
14657
14658 # Is the compiler the GNU compiler?
14659 with_gcc=$GCC
14660
14661 # Compiler flag to turn off builtin functions.
14662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14663
14664 # Additional compiler flags for building library objects.
14665 pic_flag=$lt_lt_prog_compiler_pic
14666
14667 # How to pass a linker flag through the compiler.
14668 wl=$lt_lt_prog_compiler_wl
14669
14670 # Compiler flag to prevent dynamic linking.
14671 link_static_flag=$lt_lt_prog_compiler_static
14672
14673 # Does compiler simultaneously support -c and -o options?
14674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14675
14676 # Whether or not to add -lc for building shared libraries.
14677 build_libtool_need_lc=$archive_cmds_need_lc
14678
14679 # Whether or not to disallow shared libs when runtime libs are static.
14680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14681
14682 # Compiler flag to allow reflexive dlopens.
14683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14684
14685 # Compiler flag to generate shared objects directly from archives.
14686 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14687
14688 # Whether the compiler copes with passing no objects directly.
14689 compiler_needs_object=$lt_compiler_needs_object
14690
14691 # Create an old-style archive from a shared archive.
14692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14693
14694 # Create a temporary old-style archive to link instead of a shared archive.
14695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14696
14697 # Commands used to build a shared archive.
14698 archive_cmds=$lt_archive_cmds
14699 archive_expsym_cmds=$lt_archive_expsym_cmds
14700
14701 # Commands used to build a loadable module if different from building
14702 # a shared archive.
14703 module_cmds=$lt_module_cmds
14704 module_expsym_cmds=$lt_module_expsym_cmds
14705
14706 # Whether we are building with GNU ld or not.
14707 with_gnu_ld=$lt_with_gnu_ld
14708
14709 # Flag that allows shared libraries with undefined symbols to be built.
14710 allow_undefined_flag=$lt_allow_undefined_flag
14711
14712 # Flag that enforces no undefined symbols.
14713 no_undefined_flag=$lt_no_undefined_flag
14714
14715 # Flag to hardcode \$libdir into a binary during linking.
14716 # This must work even if \$libdir does not exist
14717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14718
14719 # Whether we need a single "-rpath" flag with a separated argument.
14720 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14721
14722 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14723 # DIR into the resulting binary.
14724 hardcode_direct=$hardcode_direct
14725
14726 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14727 # DIR into the resulting binary and the resulting library dependency is
14728 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14729 # library is relocated.
14730 hardcode_direct_absolute=$hardcode_direct_absolute
14731
14732 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14733 # into the resulting binary.
14734 hardcode_minus_L=$hardcode_minus_L
14735
14736 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14737 # into the resulting binary.
14738 hardcode_shlibpath_var=$hardcode_shlibpath_var
14739
14740 # Set to "yes" if building a shared library automatically hardcodes DIR
14741 # into the library and all subsequent libraries and executables linked
14742 # against it.
14743 hardcode_automatic=$hardcode_automatic
14744
14745 # Set to yes if linker adds runtime paths of dependent libraries
14746 # to runtime path list.
14747 inherit_rpath=$inherit_rpath
14748
14749 # Whether libtool must link a program against all its dependency libraries.
14750 link_all_deplibs=$link_all_deplibs
14751
14752 # Set to "yes" if exported symbols are required.
14753 always_export_symbols=$always_export_symbols
14754
14755 # The commands to list exported symbols.
14756 export_symbols_cmds=$lt_export_symbols_cmds
14757
14758 # Symbols that should not be listed in the preloaded symbols.
14759 exclude_expsyms=$lt_exclude_expsyms
14760
14761 # Symbols that must always be exported.
14762 include_expsyms=$lt_include_expsyms
14763
14764 # Commands necessary for linking programs (against libraries) with templates.
14765 prelink_cmds=$lt_prelink_cmds
14766
14767 # Commands necessary for finishing linking programs.
14768 postlink_cmds=$lt_postlink_cmds
14769
14770 # Specify filename containing input files.
14771 file_list_spec=$lt_file_list_spec
14772
14773 # How to hardcode a shared library path into an executable.
14774 hardcode_action=$hardcode_action
14775
14776 # ### END LIBTOOL CONFIG
14777
14778 _LT_EOF
14779
14780 case $host_os in
14781 aix3*)
14782 cat <<\_LT_EOF >> "$cfgfile"
14783 # AIX sometimes has problems with the GCC collect2 program. For some
14784 # reason, if we set the COLLECT_NAMES environment variable, the problems
14785 # vanish in a puff of smoke.
14786 if test set != "${COLLECT_NAMES+set}"; then
14787 COLLECT_NAMES=
14788 export COLLECT_NAMES
14789 fi
14790 _LT_EOF
14791 ;;
14792 esac
14793
14794
14795 ltmain=$ac_aux_dir/ltmain.sh
14796
14797
14798 # We use sed instead of cat because bash on DJGPP gets confused if
14799 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14800 # text mode, it properly converts lines to CR/LF. This bash problem
14801 # is reportedly fixed, but why not run on old versions too?
14802 sed '$q' "$ltmain" >> "$cfgfile" \
14803 || (rm -f "$cfgfile"; exit 1)
14804
14805 mv -f "$cfgfile" "$ofile" ||
14806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14807 chmod +x "$ofile"
14808
14809 ;;
14810
14811 esac
14812 done # for ac_tag
14813
14814
14815 as_fn_exit 0
14816 _ACEOF
14817 ac_clean_files=$ac_clean_files_save
14818
14819 test $ac_write_fail = 0 ||
14820 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14821
14822
14823 # configure is writing to config.log, and then calls config.status.
14824 # config.status does its own redirection, appending to config.log.
14825 # Unfortunately, on DOS this fails, as config.log is still kept open
14826 # by configure, so config.status won't be able to write to it; its
14827 # output is simply discarded. So we exec the FD to /dev/null,
14828 # effectively closing config.log, so it can be properly (re)opened and
14829 # appended to by config.status. When coming back to configure, we
14830 # need to make the FD available again.
14831 if test "$no_create" != yes; then
14832 ac_cs_success=:
14833 ac_config_status_args=
14834 test "$silent" = yes &&
14835 ac_config_status_args="$ac_config_status_args --quiet"
14836 exec 5>/dev/null
14837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14838 exec 5>>config.log
14839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14840 # would make configure fail if this is the last instruction.
14841 $ac_cs_success || as_fn_exit 1
14842 fi
14843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14845 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14846 fi
14847
14848
14849
14850 echo "###############################################################################"
14851 echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
14852 echo
14853 echo "HOPM will be installed in ${prefix}. To change this, run:"
14854 echo " ./configure --prefix=DIRECTORY"
14855 echo "###############################################################################"

Properties

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