ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.0.x/configure
Revision: 1456
Committed: Mon Jul 2 18:21:40 2012 UTC (11 years, 9 months ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 490482 byte(s)
Log Message:
- configure.ac: fixed OpenSSL detection for systems that use static
  ssl/crypto libraries

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1454 2012-06-29 13:58:54Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8beta2.
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 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='8beta2'
597 PACKAGE_STRING='ircd-hybrid 8beta2'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_maintainer_mode
790 enable_dependency_tracking
791 enable_static
792 enable_shared
793 with_pic
794 enable_fast_install
795 with_gnu_ld
796 with_sysroot
797 enable_libtool_lock
798 with_included_ltdl
799 with_ltdl_include
800 with_ltdl_lib
801 enable_ltdl_install
802 enable_libpcre
803 enable_openssl
804 enable_assert
805 enable_small_net
806 enable_kqueue
807 enable_epoll
808 enable_devpoll
809 enable_rtsigio
810 enable_poll
811 enable_select
812 with_nicklen
813 with_topiclen
814 enable_halfops
815 enable_debugging
816 enable_warnings
817 '
818 ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 LIBS
825 CPPFLAGS
826 YACC
827 YFLAGS
828 CPP'
829
830
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
852
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
878
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1285 cross_compiling=yes
1286 fi
1287 fi
1288
1289 ac_tool_prefix=
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292 test "$silent" = yes && exec 6>/dev/null
1293
1294
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)[^/].*/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\/\)$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\).*/{
1326 s//\1/
1327 q
1328 }
1329 s/.*/./; q'`
1330 srcdir=$ac_confdir
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 srcdir=..
1333 fi
1334 else
1335 ac_srcdir_defaulted=no
1336 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 pwd)`
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=.
1348 fi
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1352 case $srcdir in
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 esac
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360 done
1361
1362 #
1363 # Report the --help message.
1364 #
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1368 cat <<_ACEOF
1369 \`configure' configures ircd-hybrid 8beta2 to adapt to many kinds of systems.
1370
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1375
1376 Defaults for the options are specified in brackets.
1377
1378 Configuration:
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 [PREFIX]
1394
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1399
1400 For better control, use the options below.
1401
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1422 _ACEOF
1423
1424 cat <<\_ACEOF
1425
1426 Program names:
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of ircd-hybrid 8beta2:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-static[=PKGS] build static libraries [default=no]
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-ltdl-install install libltdl
1460 --disable-libpcre Disable PCRE support
1461 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1462 --disable-openssl Disable OpenSSL support.
1463 --enable-assert Enable assert() statements
1464 --enable-small-net Enable small network support.
1465 --enable-kqueue Force kqueue usage.
1466 --enable-epoll Force epoll usage.
1467 --enable-devpoll Force devpoll usage.
1468 --enable-rtsigio Force rtsigio usage.
1469 --enable-poll Force poll usage.
1470 --enable-select Force select usage.
1471 --enable-halfops Enable halfops support.
1472 --enable-debugging Enable debugging.
1473 --enable-warnings Enable compiler warnings.
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot=DIR Search for dependent libraries within DIR
1482 (or the compiler's sysroot if not specified).
1483 --with-included-ltdl use the GNU ltdl sources included here
1484 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1485 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1486 --with-nicklen=<value> Set nickname length (default 9).
1487 --with-topiclen=<value> Set topic length (default 160).
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure 8beta2
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------- ##
2074 ## Report this to bugs@ircd-hybrid.org ##
2075 ## ----------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by ircd-hybrid $as_me 8beta2, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 as_fn_append ac_func_list " mmap"
2378 as_fn_append ac_func_list " strtok_r"
2379 as_fn_append ac_func_list " usleep"
2380 as_fn_append ac_func_list " strlcat"
2381 as_fn_append ac_func_list " strlcpy"
2382 as_fn_append ac_header_list " crypt.h"
2383 as_fn_append ac_header_list " sys/resource.h"
2384 as_fn_append ac_header_list " sys/param.h"
2385 as_fn_append ac_header_list " types.h"
2386 as_fn_append ac_header_list " socket.h"
2387 as_fn_append ac_header_list " sys/wait.h"
2388 as_fn_append ac_header_list " wait.h"
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
2395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
2397 case $ac_old_set,$ac_new_set in
2398 set,)
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401 ac_cache_corrupted=: ;;
2402 ,set)
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
2409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2422 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2425 fi;;
2426 esac
2427 # Pass precious variables to config.status.
2428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
2430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436 esac
2437 fi
2438 done
2439 if $ac_cache_corrupted; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457 am__api_version='1.12'
2458
2459 ac_aux_dir=
2460 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2473 fi
2474 done
2475 if test -z "$ac_aux_dir"; then
2476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2477 fi
2478
2479 # These three variables are undocumented and unsupported,
2480 # and are intended to be withdrawn in a future Autoconf release.
2481 # They can cause serious problems if a builder's source tree is in a directory
2482 # whose full name contains unusual characters.
2483 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486
2487
2488 # Find a good install program. We prefer a C program (faster),
2489 # so one script is as good as another. But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 # Reject install programs that cannot install multiple files.
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2504 if test -z "$INSTALL"; then
2505 if ${ac_cv_path_install+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514 case $as_dir/ in #((
2515 ./ | .// | /[cC]/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # AIX install. It has an incompatible calling convention.
2529 :
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
2534 else
2535 rm -rf conftest.one conftest.two conftest.dir
2536 echo one > conftest.one
2537 echo two > conftest.two
2538 mkdir conftest.dir
2539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2540 test -s conftest.one && test -s conftest.two &&
2541 test -s conftest.dir/conftest.one &&
2542 test -s conftest.dir/conftest.two
2543 then
2544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2545 break 3
2546 fi
2547 fi
2548 fi
2549 done
2550 done
2551 ;;
2552 esac
2553
2554 done
2555 IFS=$as_save_IFS
2556
2557 rm -rf conftest.one conftest.two conftest.dir
2558
2559 fi
2560 if test "${ac_cv_path_install+set}" = set; then
2561 INSTALL=$ac_cv_path_install
2562 else
2563 # As a last resort, use the slow shell script. Don't cache a
2564 # value for INSTALL within a source directory, because that will
2565 # break other packages using the cache if that directory is
2566 # removed, or if the value is a relative name.
2567 INSTALL=$ac_install_sh
2568 fi
2569 fi
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2571 $as_echo "$INSTALL" >&6; }
2572
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2576
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2578
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2580
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2582 $as_echo_n "checking whether build environment is sane... " >&6; }
2583 # Reject unsafe characters in $srcdir or the absolute working directory
2584 # name. Accept space and tab only in the latter.
2585 am_lf='
2586 '
2587 case `pwd` in
2588 *[\\\"\#\$\&\'\`$am_lf]*)
2589 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2590 esac
2591 case $srcdir in
2592 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2593 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2594 esac
2595
2596 # Do 'set' in a subshell so we don't clobber the current shell's
2597 # arguments. Must try -L first in case configure is actually a
2598 # symlink; some systems play weird games with the mod time of symlinks
2599 # (eg FreeBSD returns the mod time of the symlink's containing
2600 # directory).
2601 if (
2602 am_has_slept=no
2603 for am_try in 1 2; do
2604 echo "timestamp, slept: $am_has_slept" > conftest.file
2605 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2606 if test "$*" = "X"; then
2607 # -L didn't work.
2608 set X `ls -t "$srcdir/configure" conftest.file`
2609 fi
2610 if test "$*" != "X $srcdir/configure conftest.file" \
2611 && test "$*" != "X conftest.file $srcdir/configure"; then
2612
2613 # If neither matched, then we have a broken ls. This can happen
2614 # if, for instance, CONFIG_SHELL is bash and it inherits a
2615 # broken ls alias from the environment. This has actually
2616 # happened. Such a system could not be considered "sane".
2617 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2618 alias in your environment" "$LINENO" 5
2619 fi
2620 if test "$2" = conftest.file || test $am_try -eq 2; then
2621 break
2622 fi
2623 # Just in case.
2624 sleep 1
2625 am_has_slept=yes
2626 done
2627 test "$2" = conftest.file
2628 )
2629 then
2630 # Ok.
2631 :
2632 else
2633 as_fn_error $? "newly created file is older than distributed files!
2634 Check your system clock" "$LINENO" 5
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2637 $as_echo "yes" >&6; }
2638 # If we didn't sleep, we still need to ensure time stamps of config.status and
2639 # generated files are strictly newer.
2640 am_sleep_pid=
2641 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2642 ( sleep 1 ) &
2643 am_sleep_pid=$!
2644 fi
2645
2646 rm -f conftest.file
2647
2648 test "$program_prefix" != NONE &&
2649 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2650 # Use a double $ so make ignores it.
2651 test "$program_suffix" != NONE &&
2652 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2653 # Double any \ or $.
2654 # By default was `s,x,x', remove it if useless.
2655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2657
2658 # expand $ac_aux_dir to an absolute path
2659 am_aux_dir=`cd $ac_aux_dir && pwd`
2660
2661 if test x"${MISSING+set}" != xset; then
2662 case $am_aux_dir in
2663 *\ * | *\ *)
2664 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2665 *)
2666 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2667 esac
2668 fi
2669 # Use eval to expand $SHELL
2670 if eval "$MISSING --run true"; then
2671 am_missing_run="$MISSING --run "
2672 else
2673 am_missing_run=
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2675 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2676 fi
2677
2678 if test x"${install_sh}" != xset; then
2679 case $am_aux_dir in
2680 *\ * | *\ *)
2681 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2682 *)
2683 install_sh="\${SHELL} $am_aux_dir/install-sh"
2684 esac
2685 fi
2686
2687 # Installed binaries are usually stripped using 'strip' when the user
2688 # run "make install-strip". However 'strip' might not be the right
2689 # tool to use in cross-compilation environments, therefore Automake
2690 # will honor the 'STRIP' environment variable to overrule this program.
2691 if test "$cross_compiling" != no; then
2692 if test -n "$ac_tool_prefix"; then
2693 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2694 set dummy ${ac_tool_prefix}strip; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if ${ac_cv_prog_STRIP+:} false; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$STRIP"; then
2701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 STRIP=$ac_cv_prog_STRIP
2721 if test -n "$STRIP"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2723 $as_echo "$STRIP" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729
2730 fi
2731 if test -z "$ac_cv_prog_STRIP"; then
2732 ac_ct_STRIP=$STRIP
2733 # Extract the first word of "strip", so it can be a program name with args.
2734 set dummy strip; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2738 $as_echo_n "(cached) " >&6
2739 else
2740 if test -n "$ac_ct_STRIP"; then
2741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746 IFS=$as_save_IFS
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750 ac_cv_prog_ac_ct_STRIP="strip"
2751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 break 2
2753 fi
2754 done
2755 done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2761 if test -n "$ac_ct_STRIP"; then
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2763 $as_echo "$ac_ct_STRIP" >&6; }
2764 else
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769 if test "x$ac_ct_STRIP" = x; then
2770 STRIP=":"
2771 else
2772 case $cross_compiling:$ac_tool_warned in
2773 yes:)
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2776 ac_tool_warned=yes ;;
2777 esac
2778 STRIP=$ac_ct_STRIP
2779 fi
2780 else
2781 STRIP="$ac_cv_prog_STRIP"
2782 fi
2783
2784 fi
2785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2789 if test -z "$MKDIR_P"; then
2790 if ${ac_cv_path_mkdir+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_prog in mkdir gmkdir; do
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2801 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2802 'mkdir (GNU coreutils) '* | \
2803 'mkdir (coreutils) '* | \
2804 'mkdir (fileutils) '4.1*)
2805 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2806 break 3;;
2807 esac
2808 done
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814
2815 test -d ./--version && rmdir ./--version
2816 if test "${ac_cv_path_mkdir+set}" = set; then
2817 MKDIR_P="$ac_cv_path_mkdir -p"
2818 else
2819 # As a last resort, use the slow shell script. Don't cache a
2820 # value for MKDIR_P within a source directory, because that will
2821 # break other packages using the cache if that directory is
2822 # removed, or if the value is a relative name.
2823 MKDIR_P="$ac_install_sh -d"
2824 fi
2825 fi
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2827 $as_echo "$MKDIR_P" >&6; }
2828
2829 for ac_prog in gawk mawk nawk awk
2830 do
2831 # Extract the first word of "$ac_prog", so it can be a program name with args.
2832 set dummy $ac_prog; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_AWK+:} false; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$AWK"; then
2839 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_AWK="$ac_prog"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 AWK=$ac_cv_prog_AWK
2859 if test -n "$AWK"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2861 $as_echo "$AWK" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2866
2867
2868 test -n "$AWK" && break
2869 done
2870
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2873 set x ${MAKE-make}
2874 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2875 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 cat >conftest.make <<\_ACEOF
2879 SHELL = /bin/sh
2880 all:
2881 @echo '@@@%%%=$(MAKE)=@@@%%%'
2882 _ACEOF
2883 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2884 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2885 *@@@%%%=?*=@@@%%%*)
2886 eval ac_cv_prog_make_${ac_make}_set=yes;;
2887 *)
2888 eval ac_cv_prog_make_${ac_make}_set=no;;
2889 esac
2890 rm -f conftest.make
2891 fi
2892 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2894 $as_echo "yes" >&6; }
2895 SET_MAKE=
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 SET_MAKE="MAKE=${MAKE-make}"
2900 fi
2901
2902 rm -rf .tst 2>/dev/null
2903 mkdir .tst 2>/dev/null
2904 if test -d .tst; then
2905 am__leading_dot=.
2906 else
2907 am__leading_dot=_
2908 fi
2909 rmdir .tst 2>/dev/null
2910
2911 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2912 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2913 # is not polluted with repeated "-I."
2914 am__isrc=' -I$(srcdir)'
2915 # test to see if srcdir already configured
2916 if test -f $srcdir/config.status; then
2917 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2918 fi
2919 fi
2920
2921 # test whether we have cygpath
2922 if test -z "$CYGPATH_W"; then
2923 if (cygpath --version) >/dev/null 2>/dev/null; then
2924 CYGPATH_W='cygpath -w'
2925 else
2926 CYGPATH_W=echo
2927 fi
2928 fi
2929
2930
2931 # Define the identity of the package.
2932 PACKAGE='ircd-hybrid'
2933 VERSION='8beta2'
2934
2935
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE "$PACKAGE"
2938 _ACEOF
2939
2940
2941 cat >>confdefs.h <<_ACEOF
2942 #define VERSION "$VERSION"
2943 _ACEOF
2944
2945 # Some tools Automake needs.
2946
2947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2948
2949
2950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2951
2952
2953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2954
2955
2956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2957
2958
2959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2960
2961 # We need awk for the "check" target. The system "awk" is bad on
2962 # some platforms.
2963 # Always define AMTAR for backward compatibility. Yes, it's still used
2964 # in the wild :-( We should find a proper way to deprecate it ...
2965 AMTAR='$${TAR-tar}'
2966
2967 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2968
2969
2970
2971
2972
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2975 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2976 # Check whether --enable-maintainer-mode was given.
2977 if test "${enable_maintainer_mode+set}" = set; then :
2978 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2979 else
2980 USE_MAINTAINER_MODE=no
2981 fi
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2984 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2985 if test $USE_MAINTAINER_MODE = yes; then
2986 MAINTAINER_MODE_TRUE=
2987 MAINTAINER_MODE_FALSE='#'
2988 else
2989 MAINTAINER_MODE_TRUE='#'
2990 MAINTAINER_MODE_FALSE=
2991 fi
2992
2993 MAINT=$MAINTAINER_MODE_TRUE
2994
2995
2996 ac_config_headers="$ac_config_headers config.h"
2997
2998
2999
3000 # Checks for programs.
3001 DEPDIR="${am__leading_dot}deps"
3002
3003 ac_config_commands="$ac_config_commands depfiles"
3004
3005
3006 am_make=${MAKE-make}
3007 cat > confinc << 'END'
3008 am__doit:
3009 @echo this is the am__doit target
3010 .PHONY: am__doit
3011 END
3012 # If we don't find an include directive, just comment out the code.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3014 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3015 am__include="#"
3016 am__quote=
3017 _am_result=none
3018 # First try GNU make style include.
3019 echo "include confinc" > confmf
3020 # Ignore all kinds of additional output from 'make'.
3021 case `$am_make -s -f confmf 2> /dev/null` in #(
3022 *the\ am__doit\ target*)
3023 am__include=include
3024 am__quote=
3025 _am_result=GNU
3026 ;;
3027 esac
3028 # Now try BSD make style include.
3029 if test "$am__include" = "#"; then
3030 echo '.include "confinc"' > confmf
3031 case `$am_make -s -f confmf 2> /dev/null` in #(
3032 *the\ am__doit\ target*)
3033 am__include=.include
3034 am__quote="\""
3035 _am_result=BSD
3036 ;;
3037 esac
3038 fi
3039
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3042 $as_echo "$_am_result" >&6; }
3043 rm -f confinc confmf
3044
3045 # Check whether --enable-dependency-tracking was given.
3046 if test "${enable_dependency_tracking+set}" = set; then :
3047 enableval=$enable_dependency_tracking;
3048 fi
3049
3050 if test "x$enable_dependency_tracking" != xno; then
3051 am_depcomp="$ac_aux_dir/depcomp"
3052 AMDEPBACKSLASH='\'
3053 am__nodep='_no'
3054 fi
3055 if test "x$enable_dependency_tracking" != xno; then
3056 AMDEP_TRUE=
3057 AMDEP_FALSE='#'
3058 else
3059 AMDEP_TRUE='#'
3060 AMDEP_FALSE=
3061 fi
3062
3063
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_CC+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091 done
3092 done
3093 IFS=$as_save_IFS
3094
3095 fi
3096 fi
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3104 fi
3105
3106
3107 fi
3108 if test -z "$ac_cv_prog_CC"; then
3109 ac_ct_CC=$CC
3110 # Extract the first word of "gcc", so it can be a program name with args.
3111 set dummy gcc; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$ac_ct_CC"; then
3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_CC="gcc"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131 done
3132 done
3133 IFS=$as_save_IFS
3134
3135 fi
3136 fi
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155 CC=$ac_ct_CC
3156 fi
3157 else
3158 CC="$ac_cv_prog_CC"
3159 fi
3160
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}cc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_CC+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_CC="${ac_tool_prefix}cc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 fi
3202 if test -z "$CC"; then
3203 # Extract the first word of "cc", so it can be a program name with args.
3204 set dummy cc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 ac_prog_rejected=no
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 for as_dir in $PATH
3216 do
3217 IFS=$as_save_IFS
3218 test -z "$as_dir" && as_dir=.
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3222 ac_prog_rejected=yes
3223 continue
3224 fi
3225 ac_cv_prog_CC="cc"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 break 2
3228 fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 if test $ac_prog_rejected = yes; then
3234 # We found a bogon in the path, so make sure we never use it.
3235 set dummy $ac_cv_prog_CC
3236 shift
3237 if test $# != 0; then
3238 # We chose a different compiler from the bogus one.
3239 # However, it has the same basename, so the bogon will be chosen
3240 # first if we set CC to just the basename; use the full file name.
3241 shift
3242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3243 fi
3244 fi
3245 fi
3246 fi
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257 fi
3258 if test -z "$CC"; then
3259 if test -n "$ac_tool_prefix"; then
3260 for ac_prog in cl.exe
3261 do
3262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 fi
3297
3298
3299 test -n "$CC" && break
3300 done
3301 fi
3302 if test -z "$CC"; then
3303 ac_ct_CC=$CC
3304 for ac_prog in cl.exe
3305 do
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307 set dummy $ac_prog; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="$ac_prog"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3337 else
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 fi
3341
3342
3343 test -n "$ac_ct_CC" && break
3344 done
3345
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353 ac_tool_warned=yes ;;
3354 esac
3355 CC=$ac_ct_CC
3356 fi
3357 fi
3358
3359 fi
3360
3361
3362 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 as_fn_error $? "no acceptable C compiler found in \$PATH
3365 See \`config.log' for more details" "$LINENO" 5; }
3366
3367 # Provide some information about the compiler.
3368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3369 set X $ac_compile
3370 ac_compiler=$2
3371 for ac_option in --version -v -V -qversion; do
3372 { { ac_try="$ac_compiler $ac_option >&5"
3373 case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376 esac
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3380 ac_status=$?
3381 if test -s conftest.err; then
3382 sed '10a\
3383 ... rest of stderr output deleted ...
3384 10q' conftest.err >conftest.er1
3385 cat conftest.er1 >&5
3386 fi
3387 rm -f conftest.er1 conftest.err
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 done
3391
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3394
3395 int
3396 main ()
3397 {
3398
3399 ;
3400 return 0;
3401 }
3402 _ACEOF
3403 ac_clean_files_save=$ac_clean_files
3404 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3405 # Try to create an executable without -o first, disregard a.out.
3406 # It will help us diagnose broken compilers, and finding out an intuition
3407 # of exeext.
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3409 $as_echo_n "checking whether the C compiler works... " >&6; }
3410 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3411
3412 # The possible output files:
3413 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3414
3415 ac_rmfiles=
3416 for ac_file in $ac_files
3417 do
3418 case $ac_file in
3419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3420 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421 esac
3422 done
3423 rm -f $ac_rmfiles
3424
3425 if { { ac_try="$ac_link_default"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_link_default") 2>&5
3433 ac_status=$?
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
3436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3438 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3439 # so that the user can short-circuit this test for compilers unknown to
3440 # Autoconf.
3441 for ac_file in $ac_files ''
3442 do
3443 test -f "$ac_file" || continue
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3446 ;;
3447 [ab].out )
3448 # We found the default executable, but exeext='' is most
3449 # certainly right.
3450 break;;
3451 *.* )
3452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3453 then :; else
3454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 fi
3456 # We set ac_cv_exeext here because the later test for it is not
3457 # safe: cross compilers may not add the suffix if given an `-o'
3458 # argument, so we may need to know it at that point already.
3459 # Even if this section looks crufty: it has the advantage of
3460 # actually working.
3461 break;;
3462 * )
3463 break;;
3464 esac
3465 done
3466 test "$ac_cv_exeext" = no && ac_cv_exeext=
3467
3468 else
3469 ac_file=''
3470 fi
3471 if test -z "$ac_file"; then :
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 $as_echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3479 as_fn_error 77 "C compiler cannot create executables
3480 See \`config.log' for more details" "$LINENO" 5; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483 $as_echo "yes" >&6; }
3484 fi
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3486 $as_echo_n "checking for C compiler default output file name... " >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3488 $as_echo "$ac_file" >&6; }
3489 ac_exeext=$ac_cv_exeext
3490
3491 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3492 ac_clean_files=$ac_clean_files_save
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3494 $as_echo_n "checking for suffix of executables... " >&6; }
3495 if { { ac_try="$ac_link"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link") 2>&5
3503 ac_status=$?
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508 # work properly (i.e., refer to `conftest.exe'), while it won't with
3509 # `rm'.
3510 for ac_file in conftest.exe conftest conftest.*; do
3511 test -f "$ac_file" || continue
3512 case $ac_file in
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 break;;
3516 * ) break;;
3517 esac
3518 done
3519 else
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3523 See \`config.log' for more details" "$LINENO" 5; }
3524 fi
3525 rm -f conftest conftest$ac_cv_exeext
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3527 $as_echo "$ac_cv_exeext" >&6; }
3528
3529 rm -f conftest.$ac_ext
3530 EXEEXT=$ac_cv_exeext
3531 ac_exeext=$EXEEXT
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3534 #include <stdio.h>
3535 int
3536 main ()
3537 {
3538 FILE *f = fopen ("conftest.out", "w");
3539 return ferror (f) || fclose (f) != 0;
3540
3541 ;
3542 return 0;
3543 }
3544 _ACEOF
3545 ac_clean_files="$ac_clean_files conftest.out"
3546 # Check that the compiler produces executables we can run. If not, either
3547 # the compiler is broken, or we cross compile.
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3549 $as_echo_n "checking whether we are cross compiling... " >&6; }
3550 if test "$cross_compiling" != yes; then
3551 { { ac_try="$ac_link"
3552 case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555 esac
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_link") 2>&5
3559 ac_status=$?
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }
3562 if { ac_try='./conftest$ac_cv_exeext'
3563 { { case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_try") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; }; then
3573 cross_compiling=no
3574 else
3575 if test "$cross_compiling" = maybe; then
3576 cross_compiling=yes
3577 else
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "cannot run C compiled programs.
3581 If you meant to cross compile, use \`--host'.
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 fi
3584 fi
3585 fi
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3587 $as_echo "$cross_compiling" >&6; }
3588
3589 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3590 ac_clean_files=$ac_clean_files_save
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3592 $as_echo_n "checking for suffix of object files... " >&6; }
3593 if ${ac_cv_objext+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595 else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.o conftest.obj
3608 if { { ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compile") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 for ac_file in conftest.o conftest.obj conftest.*; do
3620 test -f "$ac_file" || continue;
3621 case $ac_file in
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3624 break;;
3625 esac
3626 done
3627 else
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of object files: cannot compile
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 fi
3636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3639 $as_echo "$ac_cv_objext" >&6; }
3640 OBJEXT=$ac_cv_objext
3641 ac_objext=$OBJEXT
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3644 if ${ac_cv_c_compiler_gnu+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main ()
3652 {
3653 #ifndef __GNUC__
3654 choke me
3655 #endif
3656
3657 ;
3658 return 0;
3659 }
3660 _ACEOF
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_compiler_gnu=yes
3663 else
3664 ac_compiler_gnu=no
3665 fi
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3672 if test $ac_compiler_gnu = yes; then
3673 GCC=yes
3674 else
3675 GCC=
3676 fi
3677 ac_test_CFLAGS=${CFLAGS+set}
3678 ac_save_CFLAGS=$CFLAGS
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3681 if ${ac_cv_prog_cc_g+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 ac_save_c_werror_flag=$ac_c_werror_flag
3685 ac_c_werror_flag=yes
3686 ac_cv_prog_cc_g=no
3687 CFLAGS="-g"
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3690
3691 int
3692 main ()
3693 {
3694
3695 ;
3696 return 0;
3697 }
3698 _ACEOF
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_g=yes
3701 else
3702 CFLAGS=""
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705
3706 int
3707 main ()
3708 {
3709
3710 ;
3711 return 0;
3712 }
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715
3716 else
3717 ac_c_werror_flag=$ac_save_c_werror_flag
3718 CFLAGS="-g"
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721
3722 int
3723 main ()
3724 {
3725
3726 ;
3727 return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731 ac_cv_prog_cc_g=yes
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 fi
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3741 $as_echo "$ac_cv_prog_cc_g" >&6; }
3742 if test "$ac_test_CFLAGS" = set; then
3743 CFLAGS=$ac_save_CFLAGS
3744 elif test $ac_cv_prog_cc_g = yes; then
3745 if test "$GCC" = yes; then
3746 CFLAGS="-g -O2"
3747 else
3748 CFLAGS="-g"
3749 fi
3750 else
3751 if test "$GCC" = yes; then
3752 CFLAGS="-O2"
3753 else
3754 CFLAGS=
3755 fi
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3758 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3759 if ${ac_cv_prog_cc_c89+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 ac_cv_prog_cc_c89=no
3763 ac_save_CC=$CC
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdarg.h>
3767 #include <stdio.h>
3768 struct stat;
3769 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3770 struct buf { int x; };
3771 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3772 static char *e (p, i)
3773 char **p;
3774 int i;
3775 {
3776 return p[i];
3777 }
3778 static char *f (char * (*g) (char **, int), char **p, ...)
3779 {
3780 char *s;
3781 va_list v;
3782 va_start (v,p);
3783 s = g (p, va_arg (v,int));
3784 va_end (v);
3785 return s;
3786 }
3787
3788 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3789 function prototypes and stuff, but not '\xHH' hex character constants.
3790 These don't provoke an error unfortunately, instead are silently treated
3791 as 'x'. The following induces an error, until -std is added to get
3792 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3793 array size at least. It's necessary to write '\x00'==0 to get something
3794 that's true only with -std. */
3795 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796
3797 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3798 inside strings and character constants. */
3799 #define FOO(x) 'x'
3800 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801
3802 int test (int i, double x);
3803 struct s1 {int (*f) (int a);};
3804 struct s2 {int (*f) (double a);};
3805 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3806 int argc;
3807 char **argv;
3808 int
3809 main ()
3810 {
3811 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3817 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 do
3819 CC="$ac_save_CC $ac_arg"
3820 if ac_fn_c_try_compile "$LINENO"; then :
3821 ac_cv_prog_cc_c89=$ac_arg
3822 fi
3823 rm -f core conftest.err conftest.$ac_objext
3824 test "x$ac_cv_prog_cc_c89" != "xno" && break
3825 done
3826 rm -f conftest.$ac_ext
3827 CC=$ac_save_CC
3828
3829 fi
3830 # AC_CACHE_VAL
3831 case "x$ac_cv_prog_cc_c89" in
3832 x)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3834 $as_echo "none needed" >&6; } ;;
3835 xno)
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3837 $as_echo "unsupported" >&6; } ;;
3838 *)
3839 CC="$CC $ac_cv_prog_cc_c89"
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3841 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3842 esac
3843 if test "x$ac_cv_prog_cc_c89" != xno; then :
3844
3845 fi
3846
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3852
3853 depcc="$CC" am_compiler_list=
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3856 $as_echo_n "checking dependency style of $depcc... " >&6; }
3857 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3861 # We make a subdir and do the tests there. Otherwise we can end up
3862 # making bogus files that we don't know about and never remove. For
3863 # instance it was reported that on HP-UX the gcc test will end up
3864 # making a dummy file named 'D' -- because '-MD' means "put the output
3865 # in D".
3866 rm -rf conftest.dir
3867 mkdir conftest.dir
3868 # Copy depcomp to subdir because otherwise we won't find it if we're
3869 # using a relative directory.
3870 cp "$am_depcomp" conftest.dir
3871 cd conftest.dir
3872 # We will build objects and dependencies in a subdirectory because
3873 # it helps to detect inapplicable dependency modes. For instance
3874 # both Tru64's cc and ICC support -MD to output dependencies as a
3875 # side effect of compilation, but ICC will put the dependencies in
3876 # the current directory while Tru64 will put them in the object
3877 # directory.
3878 mkdir sub
3879
3880 am_cv_CC_dependencies_compiler_type=none
3881 if test "$am_compiler_list" = ""; then
3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 fi
3884 am__universal=false
3885 case " $depcc " in #(
3886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3887 esac
3888
3889 for depmode in $am_compiler_list; do
3890 # Setup a source with many dependencies, because some compilers
3891 # like to wrap large dependency lists on column 80 (with \), and
3892 # we should not choose a depcomp mode which is confused by this.
3893 #
3894 # We need to recreate these files for each test, as the compiler may
3895 # overwrite some of them when testing with obscure command lines.
3896 # This happens at least with the AIX C compiler.
3897 : > sub/conftest.c
3898 for i in 1 2 3 4 5 6; do
3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3900 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3901 # Solaris 10 /bin/sh.
3902 echo '/* dummy */' > sub/conftst$i.h
3903 done
3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3905
3906 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle '-M -o', and we need to detect this. Also, some Intel
3909 # versions had trouble with output in subdirs.
3910 am__obj=sub/conftest.${OBJEXT-o}
3911 am__minus_obj="-o $am__obj"
3912 case $depmode in
3913 gcc)
3914 # This depmode causes a compiler race in universal mode.
3915 test "$am__universal" = false || continue
3916 ;;
3917 nosideeffect)
3918 # After this tag, mechanisms are not by side-effect, so they'll
3919 # only be used when explicitly requested.
3920 if test "x$enable_dependency_tracking" = xyes; then
3921 continue
3922 else
3923 break
3924 fi
3925 ;;
3926 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3927 # This compiler won't grok '-c -o', but also, the minuso test has
3928 # not run yet. These depmodes are late enough in the game, and
3929 # so weak that their functioning should not be impacted.
3930 am__obj=conftest.${OBJEXT-o}
3931 am__minus_obj=
3932 ;;
3933 none) break ;;
3934 esac
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=$am__obj \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CC_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961 else
3962 am_cv_CC_dependencies_compiler_type=none
3963 fi
3964
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
3970 if
3971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCC_TRUE=
3974 am__fastdepCC_FALSE='#'
3975 else
3976 am__fastdepCC_TRUE='#'
3977 am__fastdepCC_FALSE=
3978 fi
3979
3980
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3982 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3983 if ${ac_cv_prog_cc_c99+:} false; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 ac_cv_prog_cc_c99=no
3987 ac_save_CC=$CC
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <stdarg.h>
3991 #include <stdbool.h>
3992 #include <stdlib.h>
3993 #include <wchar.h>
3994 #include <stdio.h>
3995
3996 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3997 #define debug(...) fprintf (stderr, __VA_ARGS__)
3998 #define showlist(...) puts (#__VA_ARGS__)
3999 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4000 static void
4001 test_varargs_macros (void)
4002 {
4003 int x = 1234;
4004 int y = 5678;
4005 debug ("Flag");
4006 debug ("X = %d\n", x);
4007 showlist (The first, second, and third items.);
4008 report (x>y, "x is %d but y is %d", x, y);
4009 }
4010
4011 // Check long long types.
4012 #define BIG64 18446744073709551615ull
4013 #define BIG32 4294967295ul
4014 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4015 #if !BIG_OK
4016 your preprocessor is broken;
4017 #endif
4018 #if BIG_OK
4019 #else
4020 your preprocessor is broken;
4021 #endif
4022 static long long int bignum = -9223372036854775807LL;
4023 static unsigned long long int ubignum = BIG64;
4024
4025 struct incomplete_array
4026 {
4027 int datasize;
4028 double data[];
4029 };
4030
4031 struct named_init {
4032 int number;
4033 const wchar_t *name;
4034 double average;
4035 };
4036
4037 typedef const char *ccp;
4038
4039 static inline int
4040 test_restrict (ccp restrict text)
4041 {
4042 // See if C++-style comments work.
4043 // Iterate through items via the restricted pointer.
4044 // Also check for declarations in for loops.
4045 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4046 continue;
4047 return 0;
4048 }
4049
4050 // Check varargs and va_copy.
4051 static void
4052 test_varargs (const char *format, ...)
4053 {
4054 va_list args;
4055 va_start (args, format);
4056 va_list args_copy;
4057 va_copy (args_copy, args);
4058
4059 const char *str;
4060 int number;
4061 float fnumber;
4062
4063 while (*format)
4064 {
4065 switch (*format++)
4066 {
4067 case 's': // string
4068 str = va_arg (args_copy, const char *);
4069 break;
4070 case 'd': // int
4071 number = va_arg (args_copy, int);
4072 break;
4073 case 'f': // float
4074 fnumber = va_arg (args_copy, double);
4075 break;
4076 default:
4077 break;
4078 }
4079 }
4080 va_end (args_copy);
4081 va_end (args);
4082 }
4083
4084 int
4085 main ()
4086 {
4087
4088 // Check bool.
4089 _Bool success = false;
4090
4091 // Check restrict.
4092 if (test_restrict ("String literal") == 0)
4093 success = true;
4094 char *restrict newvar = "Another string";
4095
4096 // Check varargs.
4097 test_varargs ("s, d' f .", "string", 65, 34.234);
4098 test_varargs_macros ();
4099
4100 // Check flexible array members.
4101 struct incomplete_array *ia =
4102 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4103 ia->datasize = 10;
4104 for (int i = 0; i < ia->datasize; ++i)
4105 ia->data[i] = i * 1.234;
4106
4107 // Check named initializers.
4108 struct named_init ni = {
4109 .number = 34,
4110 .name = L"Test wide string",
4111 .average = 543.34343,
4112 };
4113
4114 ni.number = 58;
4115
4116 int dynamic_array[ni.number];
4117 dynamic_array[ni.number - 1] = 543;
4118
4119 // work around unused variable warnings
4120 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4121 || dynamic_array[ni.number - 1] != 543);
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4128 do
4129 CC="$ac_save_CC $ac_arg"
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_c99=$ac_arg
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext
4134 test "x$ac_cv_prog_cc_c99" != "xno" && break
4135 done
4136 rm -f conftest.$ac_ext
4137 CC=$ac_save_CC
4138
4139 fi
4140 # AC_CACHE_VAL
4141 case "x$ac_cv_prog_cc_c99" in
4142 x)
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4144 $as_echo "none needed" >&6; } ;;
4145 xno)
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4147 $as_echo "unsupported" >&6; } ;;
4148 *)
4149 CC="$CC $ac_cv_prog_cc_c99"
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4151 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4152 esac
4153 if test "x$ac_cv_prog_cc_c99" != xno; then :
4154
4155 fi
4156
4157
4158 if test "$ac_cv_prog_cc_c99" = "no"; then :
4159 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4160 fi
4161 for ac_prog in 'bison -y' byacc
4162 do
4163 # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_YACC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$YACC"; then
4171 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_YACC="$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4183 fi
4184 done
4185 done
4186 IFS=$as_save_IFS
4187
4188 fi
4189 fi
4190 YACC=$ac_cv_prog_YACC
4191 if test -n "$YACC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4193 $as_echo "$YACC" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4197 fi
4198
4199
4200 test -n "$YACC" && break
4201 done
4202 test -n "$YACC" || YACC="yacc"
4203
4204
4205 for ac_prog in flex lex
4206 do
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_LEX+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$LEX"; then
4215 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_LEX="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4227 fi
4228 done
4229 done
4230 IFS=$as_save_IFS
4231
4232 fi
4233 fi
4234 LEX=$ac_cv_prog_LEX
4235 if test -n "$LEX"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4237 $as_echo "$LEX" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4241 fi
4242
4243
4244 test -n "$LEX" && break
4245 done
4246 test -n "$LEX" || LEX=":"
4247
4248 if test "x$LEX" != "x:"; then
4249 cat >conftest.l <<_ACEOF
4250 %%
4251 a { ECHO; }
4252 b { REJECT; }
4253 c { yymore (); }
4254 d { yyless (1); }
4255 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4256 yyless ((input () != 0)); }
4257 f { unput (yytext[0]); }
4258 . { BEGIN INITIAL; }
4259 %%
4260 #ifdef YYTEXT_POINTER
4261 extern char *yytext;
4262 #endif
4263 int
4264 main (void)
4265 {
4266 return ! yylex () + ! yywrap ();
4267 }
4268 _ACEOF
4269 { { ac_try="$LEX conftest.l"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276 (eval "$LEX conftest.l") 2>&5
4277 ac_status=$?
4278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279 test $ac_status = 0; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4281 $as_echo_n "checking lex output file root... " >&6; }
4282 if ${ac_cv_prog_lex_root+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285
4286 if test -f lex.yy.c; then
4287 ac_cv_prog_lex_root=lex.yy
4288 elif test -f lexyy.c; then
4289 ac_cv_prog_lex_root=lexyy
4290 else
4291 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4292 fi
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4295 $as_echo "$ac_cv_prog_lex_root" >&6; }
4296 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4297
4298 if test -z "${LEXLIB+set}"; then
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4300 $as_echo_n "checking lex library... " >&6; }
4301 if ${ac_cv_lib_lex+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304
4305 ac_save_LIBS=$LIBS
4306 ac_cv_lib_lex='none needed'
4307 for ac_lib in '' -lfl -ll; do
4308 LIBS="$ac_lib $ac_save_LIBS"
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 `cat $LEX_OUTPUT_ROOT.c`
4312 _ACEOF
4313 if ac_fn_c_try_link "$LINENO"; then :
4314 ac_cv_lib_lex=$ac_lib
4315 fi
4316 rm -f core conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4318 test "$ac_cv_lib_lex" != 'none needed' && break
4319 done
4320 LIBS=$ac_save_LIBS
4321
4322 fi
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4324 $as_echo "$ac_cv_lib_lex" >&6; }
4325 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4326 fi
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4330 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4331 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 # POSIX says lex can declare yytext either as a pointer or an array; the
4335 # default is implementation-dependent. Figure out which it is, since
4336 # not all implementations provide the %pointer and %array declarations.
4337 ac_cv_prog_lex_yytext_pointer=no
4338 ac_save_LIBS=$LIBS
4339 LIBS="$LEXLIB $ac_save_LIBS"
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 #define YYTEXT_POINTER 1
4344 `cat $LEX_OUTPUT_ROOT.c`
4345 _ACEOF
4346 if ac_fn_c_try_link "$LINENO"; then :
4347 ac_cv_prog_lex_yytext_pointer=yes
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext \
4350 conftest$ac_exeext conftest.$ac_ext
4351 LIBS=$ac_save_LIBS
4352
4353 fi
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4355 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4356 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4357
4358 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4359
4360 fi
4361 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4362
4363 fi
4364 if test "$LEX" = :; then
4365 LEX=${am_missing_run}flex
4366 fi
4367
4368
4369 # Initializing libtool.
4370
4371
4372
4373
4374
4375
4376
4377 case `pwd` in
4378 *\ * | *\ *)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4380 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4381 esac
4382
4383
4384
4385 macro_version='2.4.2'
4386 macro_revision='1.3337'
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400 ltmain="$ac_aux_dir/ltmain.sh"
4401
4402 # Make sure we can run config.sub.
4403 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4407 $as_echo_n "checking build system type... " >&6; }
4408 if ${ac_cv_build+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 ac_build_alias=$build_alias
4412 test "x$ac_build_alias" = x &&
4413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4414 test "x$ac_build_alias" = x &&
4415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4416 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4418
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4421 $as_echo "$ac_cv_build" >&6; }
4422 case $ac_cv_build in
4423 *-*-*) ;;
4424 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4425 esac
4426 build=$ac_cv_build
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_build
4429 shift
4430 build_cpu=$1
4431 build_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 build_os=$*
4436 IFS=$ac_save_IFS
4437 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4441 $as_echo_n "checking host system type... " >&6; }
4442 if ${ac_cv_host+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 if test "x$host_alias" = x; then
4446 ac_cv_host=$ac_cv_build
4447 else
4448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4450 fi
4451
4452 fi
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4454 $as_echo "$ac_cv_host" >&6; }
4455 case $ac_cv_host in
4456 *-*-*) ;;
4457 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4458 esac
4459 host=$ac_cv_host
4460 ac_save_IFS=$IFS; IFS='-'
4461 set x $ac_cv_host
4462 shift
4463 host_cpu=$1
4464 host_vendor=$2
4465 shift; shift
4466 # Remember, the first character of IFS is used to create $*,
4467 # except with old shells:
4468 host_os=$*
4469 IFS=$ac_save_IFS
4470 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4471
4472
4473 # Backslashify metacharacters that are still active within
4474 # double-quoted strings.
4475 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4476
4477 # Same as above, but do not quote variable references.
4478 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4479
4480 # Sed substitution to delay expansion of an escaped shell variable in a
4481 # double_quote_subst'ed string.
4482 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4483
4484 # Sed substitution to delay expansion of an escaped single quote.
4485 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4486
4487 # Sed substitution to avoid accidental globbing in evaled expressions
4488 no_glob_subst='s/\*/\\\*/g'
4489
4490 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4491 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4493
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4495 $as_echo_n "checking how to print strings... " >&6; }
4496 # Test print first, because it will be a builtin if present.
4497 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4498 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4499 ECHO='print -r --'
4500 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4501 ECHO='printf %s\n'
4502 else
4503 # Use this function as a fallback that always works.
4504 func_fallback_echo ()
4505 {
4506 eval 'cat <<_LTECHO_EOF
4507 $1
4508 _LTECHO_EOF'
4509 }
4510 ECHO='func_fallback_echo'
4511 fi
4512
4513 # func_echo_all arg...
4514 # Invoke $ECHO with all args, space-separated.
4515 func_echo_all ()
4516 {
4517 $ECHO ""
4518 }
4519
4520 case "$ECHO" in
4521 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4522 $as_echo "printf" >&6; } ;;
4523 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4524 $as_echo "print -r" >&6; } ;;
4525 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4526 $as_echo "cat" >&6; } ;;
4527 esac
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4543 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4544 if ${ac_cv_path_SED+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4548 for ac_i in 1 2 3 4 5 6 7; do
4549 ac_script="$ac_script$as_nl$ac_script"
4550 done
4551 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4552 { ac_script=; unset ac_script;}
4553 if test -z "$SED"; then
4554 ac_path_SED_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in sed gsed; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4564 as_fn_executable_p "$ac_path_SED" || continue
4565 # Check for GNU ac_path_SED and select it if it is found.
4566 # Check for GNU $ac_path_SED
4567 case `"$ac_path_SED" --version 2>&1` in
4568 *GNU*)
4569 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4570 *)
4571 ac_count=0
4572 $as_echo_n 0123456789 >"conftest.in"
4573 while :
4574 do
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 $as_echo '' >> "conftest.nl"
4579 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 as_fn_arith $ac_count + 1 && ac_count=$as_val
4582 if test $ac_count -gt ${ac_path_SED_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_SED="$ac_path_SED"
4585 ac_path_SED_max=$ac_count
4586 fi
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4589 done
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4591 esac
4592
4593 $ac_path_SED_found && break 3
4594 done
4595 done
4596 done
4597 IFS=$as_save_IFS
4598 if test -z "$ac_cv_path_SED"; then
4599 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4600 fi
4601 else
4602 ac_cv_path_SED=$SED
4603 fi
4604
4605 fi
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4607 $as_echo "$ac_cv_path_SED" >&6; }
4608 SED="$ac_cv_path_SED"
4609 rm -f conftest.sed
4610
4611 test -z "$SED" && SED=sed
4612 Xsed="$SED -e 1s/^X//"
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4625 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4626 if ${ac_cv_path_GREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -z "$GREP"; then
4630 ac_path_GREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in grep ggrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_GREP" || continue
4641 # Check for GNU ac_path_GREP and select it if it is found.
4642 # Check for GNU $ac_path_GREP
4643 case `"$ac_path_GREP" --version 2>&1` in
4644 *GNU*)
4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4646 *)
4647 ac_count=0
4648 $as_echo_n 0123456789 >"conftest.in"
4649 while :
4650 do
4651 cat "conftest.in" "conftest.in" >"conftest.tmp"
4652 mv "conftest.tmp" "conftest.in"
4653 cp "conftest.in" "conftest.nl"
4654 $as_echo 'GREP' >> "conftest.nl"
4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_GREP="$ac_path_GREP"
4661 ac_path_GREP_max=$ac_count
4662 fi
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4665 done
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4667 esac
4668
4669 $ac_path_GREP_found && break 3
4670 done
4671 done
4672 done
4673 IFS=$as_save_IFS
4674 if test -z "$ac_cv_path_GREP"; then
4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4676 fi
4677 else
4678 ac_cv_path_GREP=$GREP
4679 fi
4680
4681 fi
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4683 $as_echo "$ac_cv_path_GREP" >&6; }
4684 GREP="$ac_cv_path_GREP"
4685
4686
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4688 $as_echo_n "checking for egrep... " >&6; }
4689 if ${ac_cv_path_EGREP+:} false; then :
4690 $as_echo_n "(cached) " >&6
4691 else
4692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4693 then ac_cv_path_EGREP="$GREP -E"
4694 else
4695 if test -z "$EGREP"; then
4696 ac_path_EGREP_found=false
4697 # Loop through the user's path and test for each of PROGNAME-LIST
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700 do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_prog in egrep; do
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4706 as_fn_executable_p "$ac_path_EGREP" || continue
4707 # Check for GNU ac_path_EGREP and select it if it is found.
4708 # Check for GNU $ac_path_EGREP
4709 case `"$ac_path_EGREP" --version 2>&1` in
4710 *GNU*)
4711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4712 *)
4713 ac_count=0
4714 $as_echo_n 0123456789 >"conftest.in"
4715 while :
4716 do
4717 cat "conftest.in" "conftest.in" >"conftest.tmp"
4718 mv "conftest.tmp" "conftest.in"
4719 cp "conftest.in" "conftest.nl"
4720 $as_echo 'EGREP' >> "conftest.nl"
4721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723 as_fn_arith $ac_count + 1 && ac_count=$as_val
4724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4725 # Best one so far, save it but keep looking for a better one
4726 ac_cv_path_EGREP="$ac_path_EGREP"
4727 ac_path_EGREP_max=$ac_count
4728 fi
4729 # 10*(2^10) chars as input seems more than enough
4730 test $ac_count -gt 10 && break
4731 done
4732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733 esac
4734
4735 $ac_path_EGREP_found && break 3
4736 done
4737 done
4738 done
4739 IFS=$as_save_IFS
4740 if test -z "$ac_cv_path_EGREP"; then
4741 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742 fi
4743 else
4744 ac_cv_path_EGREP=$EGREP
4745 fi
4746
4747 fi
4748 fi
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4750 $as_echo "$ac_cv_path_EGREP" >&6; }
4751 EGREP="$ac_cv_path_EGREP"
4752
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4755 $as_echo_n "checking for fgrep... " >&6; }
4756 if ${ac_cv_path_FGREP+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4760 then ac_cv_path_FGREP="$GREP -F"
4761 else
4762 if test -z "$FGREP"; then
4763 ac_path_FGREP_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_prog in fgrep; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4773 as_fn_executable_p "$ac_path_FGREP" || continue
4774 # Check for GNU ac_path_FGREP and select it if it is found.
4775 # Check for GNU $ac_path_FGREP
4776 case `"$ac_path_FGREP" --version 2>&1` in
4777 *GNU*)
4778 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4779 *)
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo 'FGREP' >> "conftest.nl"
4788 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790 as_fn_arith $ac_count + 1 && ac_count=$as_val
4791 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_FGREP="$ac_path_FGREP"
4794 ac_path_FGREP_max=$ac_count
4795 fi
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 esac
4801
4802 $ac_path_FGREP_found && break 3
4803 done
4804 done
4805 done
4806 IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_FGREP"; then
4808 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 fi
4810 else
4811 ac_cv_path_FGREP=$FGREP
4812 fi
4813
4814 fi
4815 fi
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4817 $as_echo "$ac_cv_path_FGREP" >&6; }
4818 FGREP="$ac_cv_path_FGREP"
4819
4820
4821 test -z "$GREP" && GREP=grep
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841 # Check whether --with-gnu-ld was given.
4842 if test "${with_gnu_ld+set}" = set; then :
4843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4844 else
4845 with_gnu_ld=no
4846 fi
4847
4848 ac_prog=ld
4849 if test "$GCC" = yes; then
4850 # Check if gcc -print-prog-name=ld gives a path.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4852 $as_echo_n "checking for ld used by $CC... " >&6; }
4853 case $host in
4854 *-*-mingw*)
4855 # gcc leaves a trailing carriage return which upsets mingw
4856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4857 *)
4858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4859 esac
4860 case $ac_prog in
4861 # Accept absolute paths.
4862 [\\/]* | ?:[\\/]*)
4863 re_direlt='/[^/][^/]*/\.\./'
4864 # Canonicalize the pathname of ld
4865 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4866 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4867 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4868 done
4869 test -z "$LD" && LD="$ac_prog"
4870 ;;
4871 "")
4872 # If it fails, then pretend we aren't using GCC.
4873 ac_prog=ld
4874 ;;
4875 *)
4876 # If it is relative, then search for the first ld in PATH.
4877 with_gnu_ld=unknown
4878 ;;
4879 esac
4880 elif test "$with_gnu_ld" = yes; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4882 $as_echo_n "checking for GNU ld... " >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4885 $as_echo_n "checking for non-GNU ld... " >&6; }
4886 fi
4887 if ${lt_cv_path_LD+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889 else
4890 if test -z "$LD"; then
4891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4892 for ac_dir in $PATH; do
4893 IFS="$lt_save_ifs"
4894 test -z "$ac_dir" && ac_dir=.
4895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4896 lt_cv_path_LD="$ac_dir/$ac_prog"
4897 # Check to see if the program is GNU ld. I'd rather use --version,
4898 # but apparently some variants of GNU ld only accept -v.
4899 # Break only if it was the GNU/non-GNU ld that we prefer.
4900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4901 *GNU* | *'with BFD'*)
4902 test "$with_gnu_ld" != no && break
4903 ;;
4904 *)
4905 test "$with_gnu_ld" != yes && break
4906 ;;
4907 esac
4908 fi
4909 done
4910 IFS="$lt_save_ifs"
4911 else
4912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4913 fi
4914 fi
4915
4916 LD="$lt_cv_path_LD"
4917 if test -n "$LD"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4919 $as_echo "$LD" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4926 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4927 if ${lt_cv_prog_gnu_ld+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4931 case `$LD -v 2>&1 </dev/null` in
4932 *GNU* | *'with BFD'*)
4933 lt_cv_prog_gnu_ld=yes
4934 ;;
4935 *)
4936 lt_cv_prog_gnu_ld=no
4937 ;;
4938 esac
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4942 with_gnu_ld=$lt_cv_prog_gnu_ld
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4953 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4954 if ${lt_cv_path_NM+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$NM"; then
4958 # Let the user override the test.
4959 lt_cv_path_NM="$NM"
4960 else
4961 lt_nm_to_check="${ac_tool_prefix}nm"
4962 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4963 lt_nm_to_check="$lt_nm_to_check nm"
4964 fi
4965 for lt_tmp_nm in $lt_nm_to_check; do
4966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4968 IFS="$lt_save_ifs"
4969 test -z "$ac_dir" && ac_dir=.
4970 tmp_nm="$ac_dir/$lt_tmp_nm"
4971 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4972 # Check to see if the nm accepts a BSD-compat flag.
4973 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4974 # nm: unknown option "B" ignored
4975 # Tru64's nm complains that /dev/null is an invalid object file
4976 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4977 */dev/null* | *'Invalid file or object type'*)
4978 lt_cv_path_NM="$tmp_nm -B"
4979 break
4980 ;;
4981 *)
4982 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4983 */dev/null*)
4984 lt_cv_path_NM="$tmp_nm -p"
4985 break
4986 ;;
4987 *)
4988 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4989 continue # so that we can try to find one that supports BSD flags
4990 ;;
4991 esac
4992 ;;
4993 esac
4994 fi
4995 done
4996 IFS="$lt_save_ifs"
4997 done
4998 : ${lt_cv_path_NM=no}
4999 fi
5000 fi
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5002 $as_echo "$lt_cv_path_NM" >&6; }
5003 if test "$lt_cv_path_NM" != "no"; then
5004 NM="$lt_cv_path_NM"
5005 else
5006 # Didn't find any BSD compatible name lister, look for dumpbin.
5007 if test -n "$DUMPBIN"; then :
5008 # Let the user override the test.
5009 else
5010 if test -n "$ac_tool_prefix"; then
5011 for ac_prog in dumpbin "link -dump"
5012 do
5013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_prog_DUMPBIN+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 if test -n "$DUMPBIN"; then
5021 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034 done
5035 done
5036 IFS=$as_save_IFS
5037
5038 fi
5039 fi
5040 DUMPBIN=$ac_cv_prog_DUMPBIN
5041 if test -n "$DUMPBIN"; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5043 $as_echo "$DUMPBIN" >&6; }
5044 else
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046 $as_echo "no" >&6; }
5047 fi
5048
5049
5050 test -n "$DUMPBIN" && break
5051 done
5052 fi
5053 if test -z "$DUMPBIN"; then
5054 ac_ct_DUMPBIN=$DUMPBIN
5055 for ac_prog in dumpbin "link -dump"
5056 do
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_DUMPBIN"; then
5065 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5077 fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082 fi
5083 fi
5084 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5085 if test -n "$ac_ct_DUMPBIN"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5087 $as_echo "$ac_ct_DUMPBIN" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093
5094 test -n "$ac_ct_DUMPBIN" && break
5095 done
5096
5097 if test "x$ac_ct_DUMPBIN" = x; then
5098 DUMPBIN=":"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 DUMPBIN=$ac_ct_DUMPBIN
5107 fi
5108 fi
5109
5110 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5111 *COFF*)
5112 DUMPBIN="$DUMPBIN -symbols"
5113 ;;
5114 *)
5115 DUMPBIN=:
5116 ;;
5117 esac
5118 fi
5119
5120 if test "$DUMPBIN" != ":"; then
5121 NM="$DUMPBIN"
5122 fi
5123 fi
5124 test -z "$NM" && NM=nm
5125
5126
5127
5128
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5132 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5133 if ${lt_cv_nm_interface+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 lt_cv_nm_interface="BSD nm"
5137 echo "int some_variable = 0;" > conftest.$ac_ext
5138 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5139 (eval "$ac_compile" 2>conftest.err)
5140 cat conftest.err >&5
5141 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5142 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5143 cat conftest.err >&5
5144 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5145 cat conftest.out >&5
5146 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5147 lt_cv_nm_interface="MS dumpbin"
5148 fi
5149 rm -f conftest*
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5152 $as_echo "$lt_cv_nm_interface" >&6; }
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5155 $as_echo_n "checking whether ln -s works... " >&6; }
5156 LN_S=$as_ln_s
5157 if test "$LN_S" = "ln -s"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159 $as_echo "yes" >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5162 $as_echo "no, using $LN_S" >&6; }
5163 fi
5164
5165 # find the maximum length of command line arguments
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5167 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5168 if ${lt_cv_sys_max_cmd_len+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 i=0
5172 teststring="ABCD"
5173
5174 case $build_os in
5175 msdosdjgpp*)
5176 # On DJGPP, this test can blow up pretty badly due to problems in libc
5177 # (any single argument exceeding 2000 bytes causes a buffer overrun
5178 # during glob expansion). Even if it were fixed, the result of this
5179 # check would be larger than it should be.
5180 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5181 ;;
5182
5183 gnu*)
5184 # Under GNU Hurd, this test is not required because there is
5185 # no limit to the length of command line arguments.
5186 # Libtool will interpret -1 as no limit whatsoever
5187 lt_cv_sys_max_cmd_len=-1;
5188 ;;
5189
5190 cygwin* | mingw* | cegcc*)
5191 # On Win9x/ME, this test blows up -- it succeeds, but takes
5192 # about 5 minutes as the teststring grows exponentially.
5193 # Worse, since 9x/ME are not pre-emptively multitasking,
5194 # you end up with a "frozen" computer, even though with patience
5195 # the test eventually succeeds (with a max line length of 256k).
5196 # Instead, let's just punt: use the minimum linelength reported by
5197 # all of the supported platforms: 8192 (on NT/2K/XP).
5198 lt_cv_sys_max_cmd_len=8192;
5199 ;;
5200
5201 mint*)
5202 # On MiNT this can take a long time and run out of memory.
5203 lt_cv_sys_max_cmd_len=8192;
5204 ;;
5205
5206 amigaos*)
5207 # On AmigaOS with pdksh, this test takes hours, literally.
5208 # So we just punt and use a minimum line length of 8192.
5209 lt_cv_sys_max_cmd_len=8192;
5210 ;;
5211
5212 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5213 # This has been around since 386BSD, at least. Likely further.
5214 if test -x /sbin/sysctl; then
5215 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5216 elif test -x /usr/sbin/sysctl; then
5217 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5218 else
5219 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5220 fi
5221 # And add a safety zone
5222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5223 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5224 ;;
5225
5226 interix*)
5227 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5228 lt_cv_sys_max_cmd_len=196608
5229 ;;
5230
5231 os2*)
5232 # The test takes a long time on OS/2.
5233 lt_cv_sys_max_cmd_len=8192
5234 ;;
5235
5236 osf*)
5237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5239 # nice to cause kernel panics so lets avoid the loop below.
5240 # First set a reasonable default.
5241 lt_cv_sys_max_cmd_len=16384
5242 #
5243 if test -x /sbin/sysconfig; then
5244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5246 esac
5247 fi
5248 ;;
5249 sco3.2v5*)
5250 lt_cv_sys_max_cmd_len=102400
5251 ;;
5252 sysv5* | sco5v6* | sysv4.2uw2*)
5253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5254 if test -n "$kargmax"; then
5255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5256 else
5257 lt_cv_sys_max_cmd_len=32768
5258 fi
5259 ;;
5260 *)
5261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5262 if test -n "$lt_cv_sys_max_cmd_len"; then
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265 else
5266 # Make teststring a little bigger before we do anything with it.
5267 # a 1K string should be a reasonable start.
5268 for i in 1 2 3 4 5 6 7 8 ; do
5269 teststring=$teststring$teststring
5270 done
5271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5272 # If test is not a shell built-in, we'll probably end up computing a
5273 # maximum length that is only half of the actual maximum length, but
5274 # we can't tell.
5275 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5277 test $i != 17 # 1/2 MB should be enough
5278 do
5279 i=`expr $i + 1`
5280 teststring=$teststring$teststring
5281 done
5282 # Only check the string length outside the loop.
5283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5284 teststring=
5285 # Add a significant safety factor because C++ compilers can tack on
5286 # massive amounts of additional arguments before passing them to the
5287 # linker. It appears as though 1/2 is a usable value.
5288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5289 fi
5290 ;;
5291 esac
5292
5293 fi
5294
5295 if test -n $lt_cv_sys_max_cmd_len ; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5298 else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5300 $as_echo "none" >&6; }
5301 fi
5302 max_cmd_len=$lt_cv_sys_max_cmd_len
5303
5304
5305
5306
5307
5308
5309 : ${CP="cp -f"}
5310 : ${MV="mv -f"}
5311 : ${RM="rm -f"}
5312
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5315 # Try some XSI features
5316 xsi_shell=no
5317 ( _lt_dummy="a/b/c"
5318 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5319 = c,a/b,b/c, \
5320 && eval 'test $(( 1 + 1 )) -eq 2 \
5321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5322 && xsi_shell=yes
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5324 $as_echo "$xsi_shell" >&6; }
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5329 lt_shell_append=no
5330 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5331 >/dev/null 2>&1 \
5332 && lt_shell_append=yes
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5334 $as_echo "$lt_shell_append" >&6; }
5335
5336
5337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5338 lt_unset=unset
5339 else
5340 lt_unset=false
5341 fi
5342
5343
5344
5345
5346
5347 # test EBCDIC or ASCII
5348 case `echo X|tr X '\101'` in
5349 A) # ASCII based system
5350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5351 lt_SP2NL='tr \040 \012'
5352 lt_NL2SP='tr \015\012 \040\040'
5353 ;;
5354 *) # EBCDIC based system
5355 lt_SP2NL='tr \100 \n'
5356 lt_NL2SP='tr \r\n \100\100'
5357 ;;
5358 esac
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5369 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5370 if ${lt_cv_to_host_file_cmd+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 case $host in
5374 *-*-mingw* )
5375 case $build in
5376 *-*-mingw* ) # actually msys
5377 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5378 ;;
5379 *-*-cygwin* )
5380 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5381 ;;
5382 * ) # otherwise, assume *nix
5383 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5384 ;;
5385 esac
5386 ;;
5387 *-*-cygwin* )
5388 case $build in
5389 *-*-mingw* ) # actually msys
5390 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5391 ;;
5392 *-*-cygwin* )
5393 lt_cv_to_host_file_cmd=func_convert_file_noop
5394 ;;
5395 * ) # otherwise, assume *nix
5396 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5397 ;;
5398 esac
5399 ;;
5400 * ) # unhandled hosts (and "normal" native builds)
5401 lt_cv_to_host_file_cmd=func_convert_file_noop
5402 ;;
5403 esac
5404
5405 fi
5406
5407 to_host_file_cmd=$lt_cv_to_host_file_cmd
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5409 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5410
5411
5412
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5416 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5417 if ${lt_cv_to_tool_file_cmd+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 #assume ordinary cross tools, or native build.
5421 lt_cv_to_tool_file_cmd=func_convert_file_noop
5422 case $host in
5423 *-*-mingw* )
5424 case $build in
5425 *-*-mingw* ) # actually msys
5426 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5427 ;;
5428 esac
5429 ;;
5430 esac
5431
5432 fi
5433
5434 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5436 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5437
5438
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5443 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5444 if ${lt_cv_ld_reload_flag+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 lt_cv_ld_reload_flag='-r'
5448 fi
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5450 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5451 reload_flag=$lt_cv_ld_reload_flag
5452 case $reload_flag in
5453 "" | " "*) ;;
5454 *) reload_flag=" $reload_flag" ;;
5455 esac
5456 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5457 case $host_os in
5458 cygwin* | mingw* | pw32* | cegcc*)
5459 if test "$GCC" != yes; then
5460 reload_cmds=false
5461 fi
5462 ;;
5463 darwin*)
5464 if test "$GCC" = yes; then
5465 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5466 else
5467 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5468 fi
5469 ;;
5470 esac
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_OBJDUMP+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$OBJDUMP"; then
5489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 OBJDUMP=$ac_cv_prog_OBJDUMP
5509 if test -n "$OBJDUMP"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5511 $as_echo "$OBJDUMP" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 fi
5519 if test -z "$ac_cv_prog_OBJDUMP"; then
5520 ac_ct_OBJDUMP=$OBJDUMP
5521 # Extract the first word of "objdump", so it can be a program name with args.
5522 set dummy objdump; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$ac_ct_OBJDUMP"; then
5529 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5533 do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5541 fi
5542 done
5543 done
5544 IFS=$as_save_IFS
5545
5546 fi
5547 fi
5548 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5549 if test -n "$ac_ct_OBJDUMP"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5551 $as_echo "$ac_ct_OBJDUMP" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 fi
5556
5557 if test "x$ac_ct_OBJDUMP" = x; then
5558 OBJDUMP="false"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 OBJDUMP=$ac_ct_OBJDUMP
5567 fi
5568 else
5569 OBJDUMP="$ac_cv_prog_OBJDUMP"
5570 fi
5571
5572 test -z "$OBJDUMP" && OBJDUMP=objdump
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5583 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5584 if ${lt_cv_deplibs_check_method+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 lt_cv_file_magic_cmd='$MAGIC_CMD'
5588 lt_cv_file_magic_test_file=
5589 lt_cv_deplibs_check_method='unknown'
5590 # Need to set the preceding variable on all platforms that support
5591 # interlibrary dependencies.
5592 # 'none' -- dependencies not supported.
5593 # `unknown' -- same as none, but documents that we really don't know.
5594 # 'pass_all' -- all dependencies passed with no checks.
5595 # 'test_compile' -- check by making test program.
5596 # 'file_magic [[regex]]' -- check by looking for files in library path
5597 # which responds to the $file_magic_cmd with a given extended regex.
5598 # If you have `file' or equivalent on your system and you're not sure
5599 # whether `pass_all' will *always* work, you probably want this one.
5600
5601 case $host_os in
5602 aix[4-9]*)
5603 lt_cv_deplibs_check_method=pass_all
5604 ;;
5605
5606 beos*)
5607 lt_cv_deplibs_check_method=pass_all
5608 ;;
5609
5610 bsdi[45]*)
5611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5612 lt_cv_file_magic_cmd='/usr/bin/file -L'
5613 lt_cv_file_magic_test_file=/shlib/libc.so
5614 ;;
5615
5616 cygwin*)
5617 # func_win32_libid is a shell function defined in ltmain.sh
5618 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5619 lt_cv_file_magic_cmd='func_win32_libid'
5620 ;;
5621
5622 mingw* | pw32*)
5623 # Base MSYS/MinGW do not provide the 'file' command needed by
5624 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5625 # unless we find 'file', for example because we are cross-compiling.
5626 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5627 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5628 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5629 lt_cv_file_magic_cmd='func_win32_libid'
5630 else
5631 # Keep this pattern in sync with the one in func_win32_libid.
5632 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5633 lt_cv_file_magic_cmd='$OBJDUMP -f'
5634 fi
5635 ;;
5636
5637 cegcc*)
5638 # use the weaker test based on 'objdump'. See mingw*.
5639 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5640 lt_cv_file_magic_cmd='$OBJDUMP -f'
5641 ;;
5642
5643 darwin* | rhapsody*)
5644 lt_cv_deplibs_check_method=pass_all
5645 ;;
5646
5647 freebsd* | dragonfly*)
5648 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5649 case $host_cpu in
5650 i*86 )
5651 # Not sure whether the presence of OpenBSD here was a mistake.
5652 # Let's accept both of them until this is cleared up.
5653 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5654 lt_cv_file_magic_cmd=/usr/bin/file
5655 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5656 ;;
5657 esac
5658 else
5659 lt_cv_deplibs_check_method=pass_all
5660 fi
5661 ;;
5662
5663 gnu*)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666
5667 haiku*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 hpux10.20* | hpux11*)
5672 lt_cv_file_magic_cmd=/usr/bin/file
5673 case $host_cpu in
5674 ia64*)
5675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5676 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5677 ;;
5678 hppa*64*)
5679 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]'
5680 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5681 ;;
5682 *)
5683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5684 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5685 ;;
5686 esac
5687 ;;
5688
5689 interix[3-9]*)
5690 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5692 ;;
5693
5694 irix5* | irix6* | nonstopux*)
5695 case $LD in
5696 *-32|*"-32 ") libmagic=32-bit;;
5697 *-n32|*"-n32 ") libmagic=N32;;
5698 *-64|*"-64 ") libmagic=64-bit;;
5699 *) libmagic=never-match;;
5700 esac
5701 lt_cv_deplibs_check_method=pass_all
5702 ;;
5703
5704 # This must be glibc/ELF.
5705 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5706 lt_cv_deplibs_check_method=pass_all
5707 ;;
5708
5709 netbsd*)
5710 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5712 else
5713 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5714 fi
5715 ;;
5716
5717 newos6*)
5718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5719 lt_cv_file_magic_cmd=/usr/bin/file
5720 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5721 ;;
5722
5723 *nto* | *qnx*)
5724 lt_cv_deplibs_check_method=pass_all
5725 ;;
5726
5727 openbsd*)
5728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5730 else
5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5732 fi
5733 ;;
5734
5735 osf3* | osf4* | osf5*)
5736 lt_cv_deplibs_check_method=pass_all
5737 ;;
5738
5739 rdos*)
5740 lt_cv_deplibs_check_method=pass_all
5741 ;;
5742
5743 solaris*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 sysv4 | sysv4.3*)
5752 case $host_vendor in
5753 motorola)
5754 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]'
5755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5756 ;;
5757 ncr)
5758 lt_cv_deplibs_check_method=pass_all
5759 ;;
5760 sequent)
5761 lt_cv_file_magic_cmd='/bin/file'
5762 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5763 ;;
5764 sni)
5765 lt_cv_file_magic_cmd='/bin/file'
5766 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5767 lt_cv_file_magic_test_file=/lib/libc.so
5768 ;;
5769 siemens)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772 pc)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775 esac
5776 ;;
5777
5778 tpf*)
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781 esac
5782
5783 fi
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5785 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5786
5787 file_magic_glob=
5788 want_nocaseglob=no
5789 if test "$build" = "$host"; then
5790 case $host_os in
5791 mingw* | pw32*)
5792 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5793 want_nocaseglob=yes
5794 else
5795 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5796 fi
5797 ;;
5798 esac
5799 fi
5800
5801 file_magic_cmd=$lt_cv_file_magic_cmd
5802 deplibs_check_method=$lt_cv_deplibs_check_method
5803 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 if test -n "$ac_tool_prefix"; then
5827 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5828 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 $as_echo_n "checking for $ac_word... " >&6; }
5831 if ${ac_cv_prog_DLLTOOL+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 if test -n "$DLLTOOL"; then
5835 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5836 else
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5844 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5847 fi
5848 done
5849 done
5850 IFS=$as_save_IFS
5851
5852 fi
5853 fi
5854 DLLTOOL=$ac_cv_prog_DLLTOOL
5855 if test -n "$DLLTOOL"; then
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5857 $as_echo "$DLLTOOL" >&6; }
5858 else
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 fi
5862
5863
5864 fi
5865 if test -z "$ac_cv_prog_DLLTOOL"; then
5866 ac_ct_DLLTOOL=$DLLTOOL
5867 # Extract the first word of "dlltool", so it can be a program name with args.
5868 set dummy dlltool; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -n "$ac_ct_DLLTOOL"; then
5875 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5876 else
5877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 for as_dir in $PATH
5879 do
5880 IFS=$as_save_IFS
5881 test -z "$as_dir" && as_dir=.
5882 for ac_exec_ext in '' $ac_executable_extensions; do
5883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5884 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5886 break 2
5887 fi
5888 done
5889 done
5890 IFS=$as_save_IFS
5891
5892 fi
5893 fi
5894 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5895 if test -n "$ac_ct_DLLTOOL"; then
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5897 $as_echo "$ac_ct_DLLTOOL" >&6; }
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902
5903 if test "x$ac_ct_DLLTOOL" = x; then
5904 DLLTOOL="false"
5905 else
5906 case $cross_compiling:$ac_tool_warned in
5907 yes:)
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5910 ac_tool_warned=yes ;;
5911 esac
5912 DLLTOOL=$ac_ct_DLLTOOL
5913 fi
5914 else
5915 DLLTOOL="$ac_cv_prog_DLLTOOL"
5916 fi
5917
5918 test -z "$DLLTOOL" && DLLTOOL=dlltool
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5930 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5931 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 lt_cv_sharedlib_from_linklib_cmd='unknown'
5935
5936 case $host_os in
5937 cygwin* | mingw* | pw32* | cegcc*)
5938 # two different shell functions defined in ltmain.sh
5939 # decide which to use based on capabilities of $DLLTOOL
5940 case `$DLLTOOL --help 2>&1` in
5941 *--identify-strict*)
5942 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5943 ;;
5944 *)
5945 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5946 ;;
5947 esac
5948 ;;
5949 *)
5950 # fallback: assume linklib IS sharedlib
5951 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5952 ;;
5953 esac
5954
5955 fi
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5957 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5958 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5959 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5960
5961
5962
5963
5964
5965
5966
5967 if test -n "$ac_tool_prefix"; then
5968 for ac_prog in ar
5969 do
5970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_AR+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$AR"; then
5978 ac_cv_prog_AR="$AR" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983 IFS=$as_save_IFS
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989 break 2
5990 fi
5991 done
5992 done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 AR=$ac_cv_prog_AR
5998 if test -n "$AR"; then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6000 $as_echo "$AR" >&6; }
6001 else
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006
6007 test -n "$AR" && break
6008 done
6009 fi
6010 if test -z "$AR"; then
6011 ac_ct_AR=$AR
6012 for ac_prog in ar
6013 do
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015 set dummy $ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$ac_ct_AR"; then
6022 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_AR="$ac_prog"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6042 if test -n "$ac_ct_AR"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6044 $as_echo "$ac_ct_AR" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 test -n "$ac_ct_AR" && break
6052 done
6053
6054 if test "x$ac_ct_AR" = x; then
6055 AR="false"
6056 else
6057 case $cross_compiling:$ac_tool_warned in
6058 yes:)
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6060 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6061 ac_tool_warned=yes ;;
6062 esac
6063 AR=$ac_ct_AR
6064 fi
6065 fi
6066
6067 : ${AR=ar}
6068 : ${AR_FLAGS=cru}
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6081 $as_echo_n "checking for archiver @FILE support... " >&6; }
6082 if ${lt_cv_ar_at_file+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 lt_cv_ar_at_file=no
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088
6089 int
6090 main ()
6091 {
6092
6093 ;
6094 return 0;
6095 }
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 echo conftest.$ac_objext > conftest.lst
6099 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6101 (eval $lt_ar_try) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }
6105 if test "$ac_status" -eq 0; then
6106 # Ensure the archiver fails upon bogus file names.
6107 rm -f conftest.$ac_objext libconftest.a
6108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6109 (eval $lt_ar_try) 2>&5
6110 ac_status=$?
6111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6112 test $ac_status = 0; }
6113 if test "$ac_status" -ne 0; then
6114 lt_cv_ar_at_file=@
6115 fi
6116 fi
6117 rm -f conftest.* libconftest.a
6118
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121
6122 fi
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6124 $as_echo "$lt_cv_ar_at_file" >&6; }
6125
6126 if test "x$lt_cv_ar_at_file" = xno; then
6127 archiver_list_spec=
6128 else
6129 archiver_list_spec=$lt_cv_ar_at_file
6130 fi
6131
6132
6133
6134
6135
6136
6137
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6140 set dummy ${ac_tool_prefix}strip; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_STRIP+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 if test -n "$STRIP"; then
6147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6148 else
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164 fi
6165 fi
6166 STRIP=$ac_cv_prog_STRIP
6167 if test -n "$STRIP"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6169 $as_echo "$STRIP" >&6; }
6170 else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6173 fi
6174
6175
6176 fi
6177 if test -z "$ac_cv_prog_STRIP"; then
6178 ac_ct_STRIP=$STRIP
6179 # Extract the first word of "strip", so it can be a program name with args.
6180 set dummy strip; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 if test -n "$ac_ct_STRIP"; then
6187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192 IFS=$as_save_IFS
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_ac_ct_STRIP="strip"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198 break 2
6199 fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6207 if test -n "$ac_ct_STRIP"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6209 $as_echo "$ac_ct_STRIP" >&6; }
6210 else
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215 if test "x$ac_ct_STRIP" = x; then
6216 STRIP=":"
6217 else
6218 case $cross_compiling:$ac_tool_warned in
6219 yes:)
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224 STRIP=$ac_ct_STRIP
6225 fi
6226 else
6227 STRIP="$ac_cv_prog_STRIP"
6228 fi
6229
6230 test -z "$STRIP" && STRIP=:
6231
6232
6233
6234
6235
6236
6237 if test -n "$ac_tool_prefix"; then
6238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_RANLIB+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$RANLIB"; then
6246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 RANLIB=$ac_cv_prog_RANLIB
6266 if test -n "$RANLIB"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6268 $as_echo "$RANLIB" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274
6275 fi
6276 if test -z "$ac_cv_prog_RANLIB"; then
6277 ac_ct_RANLIB=$RANLIB
6278 # Extract the first word of "ranlib", so it can be a program name with args.
6279 set dummy ranlib; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6285 if test -n "$ac_ct_RANLIB"; then
6286 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_ac_ct_RANLIB="ranlib"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299 done
6300 done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6306 if test -n "$ac_ct_RANLIB"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6308 $as_echo "$ac_ct_RANLIB" >&6; }
6309 else
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314 if test "x$ac_ct_RANLIB" = x; then
6315 RANLIB=":"
6316 else
6317 case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323 RANLIB=$ac_ct_RANLIB
6324 fi
6325 else
6326 RANLIB="$ac_cv_prog_RANLIB"
6327 fi
6328
6329 test -z "$RANLIB" && RANLIB=:
6330
6331
6332
6333
6334
6335
6336 # Determine commands to create old-style static archives.
6337 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6338 old_postinstall_cmds='chmod 644 $oldlib'
6339 old_postuninstall_cmds=
6340
6341 if test -n "$RANLIB"; then
6342 case $host_os in
6343 openbsd*)
6344 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6345 ;;
6346 *)
6347 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6348 ;;
6349 esac
6350 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6351 fi
6352
6353 case $host_os in
6354 darwin*)
6355 lock_old_archive_extraction=yes ;;
6356 *)
6357 lock_old_archive_extraction=no ;;
6358 esac
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398 # If no C compiler was specified, use CC.
6399 LTCC=${LTCC-"$CC"}
6400
6401 # If no C compiler flags were specified, use CFLAGS.
6402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6403
6404 # Allow CC to be a program name with arguments.
6405 compiler=$CC
6406
6407
6408 # Check for command to grab the raw symbol name followed by C symbol from nm.
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6410 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6411 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414
6415 # These are sane defaults that work on at least a few old systems.
6416 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6417
6418 # Character class describing NM global symbol codes.
6419 symcode='[BCDEGRST]'
6420
6421 # Regexp to match symbols that can be accessed directly from C.
6422 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6423
6424 # Define system-specific variables.
6425 case $host_os in
6426 aix*)
6427 symcode='[BCDT]'
6428 ;;
6429 cygwin* | mingw* | pw32* | cegcc*)
6430 symcode='[ABCDGISTW]'
6431 ;;
6432 hpux*)
6433 if test "$host_cpu" = ia64; then
6434 symcode='[ABCDEGRST]'
6435 fi
6436 ;;
6437 irix* | nonstopux*)
6438 symcode='[BCDEGRST]'
6439 ;;
6440 osf*)
6441 symcode='[BCDEGQRST]'
6442 ;;
6443 solaris*)
6444 symcode='[BDRT]'
6445 ;;
6446 sco3.2v5*)
6447 symcode='[DT]'
6448 ;;
6449 sysv4.2uw2*)
6450 symcode='[DT]'
6451 ;;
6452 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6453 symcode='[ABDT]'
6454 ;;
6455 sysv4)
6456 symcode='[DFNSTU]'
6457 ;;
6458 esac
6459
6460 # If we're using GNU nm, then use its standard symbol codes.
6461 case `$NM -V 2>&1` in
6462 *GNU* | *'with BFD'*)
6463 symcode='[ABCDGIRSTW]' ;;
6464 esac
6465
6466 # Transform an extracted symbol line into a proper C declaration.
6467 # Some systems (esp. on ia64) link data and code symbols differently,
6468 # so use this general approach.
6469 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6470
6471 # Transform an extracted symbol line into symbol name and symbol address
6472 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6474
6475 # Handle CRLF in mingw tool chain
6476 opt_cr=
6477 case $build_os in
6478 mingw*)
6479 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6480 ;;
6481 esac
6482
6483 # Try without a prefix underscore, then with it.
6484 for ac_symprfx in "" "_"; do
6485
6486 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6487 symxfrm="\\1 $ac_symprfx\\2 \\2"
6488
6489 # Write the raw and C identifiers.
6490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6491 # Fake it for dumpbin and say T for any non-static function
6492 # and D for any global variable.
6493 # Also find C++ and __fastcall symbols from MSVC++,
6494 # which start with @ or ?.
6495 lt_cv_sys_global_symbol_pipe="$AWK '"\
6496 " {last_section=section; section=\$ 3};"\
6497 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6498 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6499 " \$ 0!~/External *\|/{next};"\
6500 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6501 " {if(hide[section]) next};"\
6502 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6503 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6504 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6505 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6506 " ' prfx=^$ac_symprfx"
6507 else
6508 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6509 fi
6510 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6511
6512 # Check to see that the pipe works correctly.
6513 pipe_works=no
6514
6515 rm -f conftest*
6516 cat > conftest.$ac_ext <<_LT_EOF
6517 #ifdef __cplusplus
6518 extern "C" {
6519 #endif
6520 char nm_test_var;
6521 void nm_test_func(void);
6522 void nm_test_func(void){}
6523 #ifdef __cplusplus
6524 }
6525 #endif
6526 int main(){nm_test_var='a';nm_test_func();return(0);}
6527 _LT_EOF
6528
6529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530 (eval $ac_compile) 2>&5
6531 ac_status=$?
6532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533 test $ac_status = 0; }; then
6534 # Now try to grab the symbols.
6535 nlist=conftest.nm
6536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6537 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6538 ac_status=$?
6539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6540 test $ac_status = 0; } && test -s "$nlist"; then
6541 # Try sorting and uniquifying the output.
6542 if sort "$nlist" | uniq > "$nlist"T; then
6543 mv -f "$nlist"T "$nlist"
6544 else
6545 rm -f "$nlist"T
6546 fi
6547
6548 # Make sure that we snagged all the symbols we need.
6549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6551 cat <<_LT_EOF > conftest.$ac_ext
6552 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6553 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6554 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6555 relocations are performed -- see ld's documentation on pseudo-relocs. */
6556 # define LT_DLSYM_CONST
6557 #elif defined(__osf__)
6558 /* This system does not cope well with relocations in const data. */
6559 # define LT_DLSYM_CONST
6560 #else
6561 # define LT_DLSYM_CONST const
6562 #endif
6563
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6567
6568 _LT_EOF
6569 # Now generate the symbol file.
6570 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6571
6572 cat <<_LT_EOF >> conftest.$ac_ext
6573
6574 /* The mapping between symbol names and symbols. */
6575 LT_DLSYM_CONST struct {
6576 const char *name;
6577 void *address;
6578 }
6579 lt__PROGRAM__LTX_preloaded_symbols[] =
6580 {
6581 { "@PROGRAM@", (void *) 0 },
6582 _LT_EOF
6583 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6584 cat <<\_LT_EOF >> conftest.$ac_ext
6585 {0, (void *) 0}
6586 };
6587
6588 /* This works around a problem in FreeBSD linker */
6589 #ifdef FREEBSD_WORKAROUND
6590 static const void *lt_preloaded_setup() {
6591 return lt__PROGRAM__LTX_preloaded_symbols;
6592 }
6593 #endif
6594
6595 #ifdef __cplusplus
6596 }
6597 #endif
6598 _LT_EOF
6599 # Now try linking the two files.
6600 mv conftest.$ac_objext conftstm.$ac_objext
6601 lt_globsym_save_LIBS=$LIBS
6602 lt_globsym_save_CFLAGS=$CFLAGS
6603 LIBS="conftstm.$ac_objext"
6604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6606 (eval $ac_link) 2>&5
6607 ac_status=$?
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6610 pipe_works=yes
6611 fi
6612 LIBS=$lt_globsym_save_LIBS
6613 CFLAGS=$lt_globsym_save_CFLAGS
6614 else
6615 echo "cannot find nm_test_func in $nlist" >&5
6616 fi
6617 else
6618 echo "cannot find nm_test_var in $nlist" >&5
6619 fi
6620 else
6621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6622 fi
6623 else
6624 echo "$progname: failed program was:" >&5
6625 cat conftest.$ac_ext >&5
6626 fi
6627 rm -rf conftest* conftst*
6628
6629 # Do not use the global_symbol_pipe unless it works.
6630 if test "$pipe_works" = yes; then
6631 break
6632 else
6633 lt_cv_sys_global_symbol_pipe=
6634 fi
6635 done
6636
6637 fi
6638
6639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6640 lt_cv_sys_global_symbol_to_cdecl=
6641 fi
6642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6644 $as_echo "failed" >&6; }
6645 else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6647 $as_echo "ok" >&6; }
6648 fi
6649
6650 # Response file support.
6651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652 nm_file_list_spec='@'
6653 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6654 nm_file_list_spec='@'
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6684 $as_echo_n "checking for sysroot... " >&6; }
6685
6686 # Check whether --with-sysroot was given.
6687 if test "${with_sysroot+set}" = set; then :
6688 withval=$with_sysroot;
6689 else
6690 with_sysroot=no
6691 fi
6692
6693
6694 lt_sysroot=
6695 case ${with_sysroot} in #(
6696 yes)
6697 if test "$GCC" = yes; then
6698 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6699 fi
6700 ;; #(
6701 /*)
6702 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6703 ;; #(
6704 no|'')
6705 ;; #(
6706 *)
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6708 $as_echo "${with_sysroot}" >&6; }
6709 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6710 ;;
6711 esac
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6714 $as_echo "${lt_sysroot:-no}" >&6; }
6715
6716
6717
6718
6719
6720 # Check whether --enable-libtool-lock was given.
6721 if test "${enable_libtool_lock+set}" = set; then :
6722 enableval=$enable_libtool_lock;
6723 fi
6724
6725 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6726
6727 # Some flags need to be propagated to the compiler or linker for good
6728 # libtool support.
6729 case $host in
6730 ia64-*-hpux*)
6731 # Find out which ABI we are using.
6732 echo 'int i;' > conftest.$ac_ext
6733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6737 test $ac_status = 0; }; then
6738 case `/usr/bin/file conftest.$ac_objext` in
6739 *ELF-32*)
6740 HPUX_IA64_MODE="32"
6741 ;;
6742 *ELF-64*)
6743 HPUX_IA64_MODE="64"
6744 ;;
6745 esac
6746 fi
6747 rm -rf conftest*
6748 ;;
6749 *-*-irix6*)
6750 # Find out which ABI we are using.
6751 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 if test "$lt_cv_prog_gnu_ld" = yes; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6759 *32-bit*)
6760 LD="${LD-ld} -melf32bsmip"
6761 ;;
6762 *N32*)
6763 LD="${LD-ld} -melf32bmipn32"
6764 ;;
6765 *64-bit*)
6766 LD="${LD-ld} -melf64bmip"
6767 ;;
6768 esac
6769 else
6770 case `/usr/bin/file conftest.$ac_objext` in
6771 *32-bit*)
6772 LD="${LD-ld} -32"
6773 ;;
6774 *N32*)
6775 LD="${LD-ld} -n32"
6776 ;;
6777 *64-bit*)
6778 LD="${LD-ld} -64"
6779 ;;
6780 esac
6781 fi
6782 fi
6783 rm -rf conftest*
6784 ;;
6785
6786 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6787 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6788 # Find out which ABI we are using.
6789 echo 'int i;' > conftest.$ac_ext
6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6792 ac_status=$?
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794 test $ac_status = 0; }; then
6795 case `/usr/bin/file conftest.o` in
6796 *32-bit*)
6797 case $host in
6798 x86_64-*kfreebsd*-gnu)
6799 LD="${LD-ld} -m elf_i386_fbsd"
6800 ;;
6801 x86_64-*linux*)
6802 LD="${LD-ld} -m elf_i386"
6803 ;;
6804 ppc64-*linux*|powerpc64-*linux*)
6805 LD="${LD-ld} -m elf32ppclinux"
6806 ;;
6807 s390x-*linux*)
6808 LD="${LD-ld} -m elf_s390"
6809 ;;
6810 sparc64-*linux*)
6811 LD="${LD-ld} -m elf32_sparc"
6812 ;;
6813 esac
6814 ;;
6815 *64-bit*)
6816 case $host in
6817 x86_64-*kfreebsd*-gnu)
6818 LD="${LD-ld} -m elf_x86_64_fbsd"
6819 ;;
6820 x86_64-*linux*)
6821 LD="${LD-ld} -m elf_x86_64"
6822 ;;
6823 ppc*-*linux*|powerpc*-*linux*)
6824 LD="${LD-ld} -m elf64ppc"
6825 ;;
6826 s390*-*linux*|s390*-*tpf*)
6827 LD="${LD-ld} -m elf64_s390"
6828 ;;
6829 sparc*-*linux*)
6830 LD="${LD-ld} -m elf64_sparc"
6831 ;;
6832 esac
6833 ;;
6834 esac
6835 fi
6836 rm -rf conftest*
6837 ;;
6838
6839 *-*-sco3.2v5*)
6840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6841 SAVE_CFLAGS="$CFLAGS"
6842 CFLAGS="$CFLAGS -belf"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6844 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6845 if ${lt_cv_cc_needs_belf+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855 /* end confdefs.h. */
6856
6857 int
6858 main ()
6859 {
6860
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_link "$LINENO"; then :
6866 lt_cv_cc_needs_belf=yes
6867 else
6868 lt_cv_cc_needs_belf=no
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
6872 ac_ext=c
6873 ac_cpp='$CPP $CPPFLAGS'
6874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6877
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6880 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6881 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6882 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6883 CFLAGS="$SAVE_CFLAGS"
6884 fi
6885 ;;
6886 *-*solaris*)
6887 # Find out which ABI we are using.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6895 *64-bit*)
6896 case $lt_cv_prog_gnu_ld in
6897 yes*)
6898 case $host in
6899 i?86-*-solaris*)
6900 LD="${LD-ld} -m elf_x86_64"
6901 ;;
6902 sparc*-*-solaris*)
6903 LD="${LD-ld} -m elf64_sparc"
6904 ;;
6905 esac
6906 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6907 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6908 LD="${LD-ld}_sol2"
6909 fi
6910 ;;
6911 *)
6912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6913 LD="${LD-ld} -64"
6914 fi
6915 ;;
6916 esac
6917 ;;
6918 esac
6919 fi
6920 rm -rf conftest*
6921 ;;
6922 esac
6923
6924 need_locks="$enable_libtool_lock"
6925
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}mt; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -n "$MANIFEST_TOOL"; then
6935 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950 IFS=$as_save_IFS
6951
6952 fi
6953 fi
6954 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6955 if test -n "$MANIFEST_TOOL"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6957 $as_echo "$MANIFEST_TOOL" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6961 fi
6962
6963
6964 fi
6965 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6966 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6967 # Extract the first word of "mt", so it can be a program name with args.
6968 set dummy mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$ac_ct_MANIFEST_TOOL"; then
6975 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6995 if test -n "$ac_ct_MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6997 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7004 MANIFEST_TOOL=":"
7005 else
7006 case $cross_compiling:$ac_tool_warned in
7007 yes:)
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7010 ac_tool_warned=yes ;;
7011 esac
7012 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7013 fi
7014 else
7015 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7016 fi
7017
7018 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7020 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7021 if ${lt_cv_path_mainfest_tool+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 lt_cv_path_mainfest_tool=no
7025 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7026 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7027 cat conftest.err >&5
7028 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7029 lt_cv_path_mainfest_tool=yes
7030 fi
7031 rm -f conftest*
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7034 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7035 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7036 MANIFEST_TOOL=:
7037 fi
7038
7039
7040
7041
7042
7043
7044 case $host_os in
7045 rhapsody* | darwin*)
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7050 $as_echo_n "checking for $ac_word... " >&6; }
7051 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if test -n "$DSYMUTIL"; then
7055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7075 if test -n "$DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7077 $as_echo "$DSYMUTIL" >&6; }
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7080 $as_echo "no" >&6; }
7081 fi
7082
7083
7084 fi
7085 if test -z "$ac_cv_prog_DSYMUTIL"; then
7086 ac_ct_DSYMUTIL=$DSYMUTIL
7087 # Extract the first word of "dsymutil", so it can be a program name with args.
7088 set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$ac_ct_DSYMUTIL"; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil"
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 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7115 if test -n "$ac_ct_DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7117 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_DSYMUTIL" = x; then
7124 DSYMUTIL=":"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7130 ac_tool_warned=yes ;;
7131 esac
7132 DSYMUTIL=$ac_ct_DSYMUTIL
7133 fi
7134 else
7135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7136 fi
7137
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_NMEDIT+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test -n "$NMEDIT"; then
7147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 break 2
7159 fi
7160 done
7161 done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 NMEDIT=$ac_cv_prog_NMEDIT
7167 if test -n "$NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7169 $as_echo "$NMEDIT" >&6; }
7170 else
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175
7176 fi
7177 if test -z "$ac_cv_prog_NMEDIT"; then
7178 ac_ct_NMEDIT=$NMEDIT
7179 # Extract the first word of "nmedit", so it can be a program name with args.
7180 set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then :
7184 $as_echo_n "(cached) " >&6
7185 else
7186 if test -n "$ac_ct_NMEDIT"; then
7187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7207 if test -n "$ac_ct_NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7209 $as_echo "$ac_ct_NMEDIT" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_NMEDIT" = x; then
7216 NMEDIT=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 NMEDIT=$ac_ct_NMEDIT
7225 fi
7226 else
7227 NMEDIT="$ac_cv_prog_NMEDIT"
7228 fi
7229
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_LIPO+:} false; then :
7236 $as_echo_n "(cached) " >&6
7237 else
7238 if test -n "$LIPO"; then
7239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7240 else
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 for as_dir in $PATH
7243 do
7244 IFS=$as_save_IFS
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7250 break 2
7251 fi
7252 done
7253 done
7254 IFS=$as_save_IFS
7255
7256 fi
7257 fi
7258 LIPO=$ac_cv_prog_LIPO
7259 if test -n "$LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7261 $as_echo "$LIPO" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7265 fi
7266
7267
7268 fi
7269 if test -z "$ac_cv_prog_LIPO"; then
7270 ac_ct_LIPO=$LIPO
7271 # Extract the first word of "lipo", so it can be a program name with args.
7272 set dummy lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7274 $as_echo_n "checking for $ac_word... " >&6; }
7275 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7276 $as_echo_n "(cached) " >&6
7277 else
7278 if test -n "$ac_ct_LIPO"; then
7279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7280 else
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7282 for as_dir in $PATH
7283 do
7284 IFS=$as_save_IFS
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_LIPO="lipo"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7299 if test -n "$ac_ct_LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7301 $as_echo "$ac_ct_LIPO" >&6; }
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 fi
7306
7307 if test "x$ac_ct_LIPO" = x; then
7308 LIPO=":"
7309 else
7310 case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316 LIPO=$ac_ct_LIPO
7317 fi
7318 else
7319 LIPO="$ac_cv_prog_LIPO"
7320 fi
7321
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}otool; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_OTOOL+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$OTOOL"; then
7331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7343 fi
7344 done
7345 done
7346 IFS=$as_save_IFS
7347
7348 fi
7349 fi
7350 OTOOL=$ac_cv_prog_OTOOL
7351 if test -n "$OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7353 $as_echo "$OTOOL" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359
7360 fi
7361 if test -z "$ac_cv_prog_OTOOL"; then
7362 ac_ct_OTOOL=$OTOOL
7363 # Extract the first word of "otool", so it can be a program name with args.
7364 set dummy otool; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$ac_ct_OTOOL"; then
7371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7375 do
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_OTOOL="otool"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7383 fi
7384 done
7385 done
7386 IFS=$as_save_IFS
7387
7388 fi
7389 fi
7390 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7391 if test -n "$ac_ct_OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7393 $as_echo "$ac_ct_OTOOL" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 fi
7398
7399 if test "x$ac_ct_OTOOL" = x; then
7400 OTOOL=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403 yes:)
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408 OTOOL=$ac_ct_OTOOL
7409 fi
7410 else
7411 OTOOL="$ac_cv_prog_OTOOL"
7412 fi
7413
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_OTOOL64+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 if test -n "$OTOOL64"; then
7423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7424 else
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 for as_dir in $PATH
7427 do
7428 IFS=$as_save_IFS
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 break 2
7435 fi
7436 done
7437 done
7438 IFS=$as_save_IFS
7439
7440 fi
7441 fi
7442 OTOOL64=$ac_cv_prog_OTOOL64
7443 if test -n "$OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7445 $as_echo "$OTOOL64" >&6; }
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7449 fi
7450
7451
7452 fi
7453 if test -z "$ac_cv_prog_OTOOL64"; then
7454 ac_ct_OTOOL64=$OTOOL64
7455 # Extract the first word of "otool64", so it can be a program name with args.
7456 set dummy otool64; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$ac_ct_OTOOL64"; then
7463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_OTOOL64="otool64"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7483 if test -n "$ac_ct_OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7485 $as_echo "$ac_ct_OTOOL64" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491 if test "x$ac_ct_OTOOL64" = x; then
7492 OTOOL64=":"
7493 else
7494 case $cross_compiling:$ac_tool_warned in
7495 yes:)
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7498 ac_tool_warned=yes ;;
7499 esac
7500 OTOOL64=$ac_ct_OTOOL64
7501 fi
7502 else
7503 OTOOL64="$ac_cv_prog_OTOOL64"
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7533 $as_echo_n "checking for -single_module linker flag... " >&6; }
7534 if ${lt_cv_apple_cc_single_mod+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 lt_cv_apple_cc_single_mod=no
7538 if test -z "${LT_MULTI_MODULE}"; then
7539 # By default we will add the -single_module flag. You can override
7540 # by either setting the environment variable LT_MULTI_MODULE
7541 # non-empty at configure time, or by adding -multi_module to the
7542 # link flags.
7543 rm -rf libconftest.dylib*
7544 echo "int foo(void){return 1;}" > conftest.c
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546 -dynamiclib -Wl,-single_module conftest.c" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7549 _lt_result=$?
7550 # If there is a non-empty error log, and "single_module"
7551 # appears in it, assume the flag caused a linker warning
7552 if test -s conftest.err && $GREP single_module conftest.err; then
7553 cat conftest.err >&5
7554 # Otherwise, if the output was created with a 0 exit code from
7555 # the compiler, it worked.
7556 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7557 lt_cv_apple_cc_single_mod=yes
7558 else
7559 cat conftest.err >&5
7560 fi
7561 rm -rf libconftest.dylib*
7562 rm -f conftest.*
7563 fi
7564 fi
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7569 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7570 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 lt_cv_ld_exported_symbols_list=no
7574 save_LDFLAGS=$LDFLAGS
7575 echo "_main" > conftest.sym
7576 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7579
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_link "$LINENO"; then :
7589 lt_cv_ld_exported_symbols_list=yes
7590 else
7591 lt_cv_ld_exported_symbols_list=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 LDFLAGS="$save_LDFLAGS"
7596
7597 fi
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7600
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7602 $as_echo_n "checking for -force_load linker flag... " >&6; }
7603 if ${lt_cv_ld_force_load+:} false; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 lt_cv_ld_force_load=no
7607 cat > conftest.c << _LT_EOF
7608 int forced_loaded() { return 2;}
7609 _LT_EOF
7610 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7611 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7612 echo "$AR cru libconftest.a conftest.o" >&5
7613 $AR cru libconftest.a conftest.o 2>&5
7614 echo "$RANLIB libconftest.a" >&5
7615 $RANLIB libconftest.a 2>&5
7616 cat > conftest.c << _LT_EOF
7617 int main() { return 0;}
7618 _LT_EOF
7619 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7620 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7621 _lt_result=$?
7622 if test -s conftest.err && $GREP force_load conftest.err; then
7623 cat conftest.err >&5
7624 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7625 lt_cv_ld_force_load=yes
7626 else
7627 cat conftest.err >&5
7628 fi
7629 rm -f conftest.err libconftest.a conftest conftest.c
7630 rm -rf conftest.dSYM
7631
7632 fi
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7634 $as_echo "$lt_cv_ld_force_load" >&6; }
7635 case $host_os in
7636 rhapsody* | darwin1.[012])
7637 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7638 darwin1.*)
7639 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7640 darwin*) # darwin 5.x on
7641 # if running on 10.5 or later, the deployment target defaults
7642 # to the OS version, if on x86, and 10.4, the deployment
7643 # target defaults to 10.4. Don't you love it?
7644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7646 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7647 10.[012]*)
7648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7649 10.*)
7650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7651 esac
7652 ;;
7653 esac
7654 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7655 _lt_dar_single_mod='$single_module'
7656 fi
7657 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7658 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7659 else
7660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7661 fi
7662 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7663 _lt_dsymutil='~$DSYMUTIL $lib || :'
7664 else
7665 _lt_dsymutil=
7666 fi
7667 ;;
7668 esac
7669
7670 ac_ext=c
7671 ac_cpp='$CPP $CPPFLAGS'
7672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7676 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7677 # On Suns, sometimes $CPP names a directory.
7678 if test -n "$CPP" && test -d "$CPP"; then
7679 CPP=
7680 fi
7681 if test -z "$CPP"; then
7682 if ${ac_cv_prog_CPP+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 # Double quotes because CPP needs to be expanded
7686 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7687 do
7688 ac_preproc_ok=false
7689 for ac_c_preproc_warn_flag in '' yes
7690 do
7691 # Use a header file that comes with gcc, so configuring glibc
7692 # with a fresh cross-compiler works.
7693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7694 # <limits.h> exists even on freestanding compilers.
7695 # On the NeXT, cc -E runs the code through the compiler's parser,
7696 # not just through cpp. "Syntax error" is here to catch this case.
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #ifdef __STDC__
7700 # include <limits.h>
7701 #else
7702 # include <assert.h>
7703 #endif
7704 Syntax error
7705 _ACEOF
7706 if ac_fn_c_try_cpp "$LINENO"; then :
7707
7708 else
7709 # Broken: fails on valid input.
7710 continue
7711 fi
7712 rm -f conftest.err conftest.i conftest.$ac_ext
7713
7714 # OK, works on sane cases. Now check whether nonexistent headers
7715 # can be detected and how.
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #include <ac_nonexistent.h>
7719 _ACEOF
7720 if ac_fn_c_try_cpp "$LINENO"; then :
7721 # Broken: success on invalid input.
7722 continue
7723 else
7724 # Passes both tests.
7725 ac_preproc_ok=:
7726 break
7727 fi
7728 rm -f conftest.err conftest.i conftest.$ac_ext
7729
7730 done
7731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7732 rm -f conftest.i conftest.err conftest.$ac_ext
7733 if $ac_preproc_ok; then :
7734 break
7735 fi
7736
7737 done
7738 ac_cv_prog_CPP=$CPP
7739
7740 fi
7741 CPP=$ac_cv_prog_CPP
7742 else
7743 ac_cv_prog_CPP=$CPP
7744 fi
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7746 $as_echo "$CPP" >&6; }
7747 ac_preproc_ok=false
7748 for ac_c_preproc_warn_flag in '' yes
7749 do
7750 # Use a header file that comes with gcc, so configuring glibc
7751 # with a fresh cross-compiler works.
7752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7753 # <limits.h> exists even on freestanding compilers.
7754 # On the NeXT, cc -E runs the code through the compiler's parser,
7755 # not just through cpp. "Syntax error" is here to catch this case.
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758 #ifdef __STDC__
7759 # include <limits.h>
7760 #else
7761 # include <assert.h>
7762 #endif
7763 Syntax error
7764 _ACEOF
7765 if ac_fn_c_try_cpp "$LINENO"; then :
7766
7767 else
7768 # Broken: fails on valid input.
7769 continue
7770 fi
7771 rm -f conftest.err conftest.i conftest.$ac_ext
7772
7773 # OK, works on sane cases. Now check whether nonexistent headers
7774 # can be detected and how.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 #include <ac_nonexistent.h>
7778 _ACEOF
7779 if ac_fn_c_try_cpp "$LINENO"; then :
7780 # Broken: success on invalid input.
7781 continue
7782 else
7783 # Passes both tests.
7784 ac_preproc_ok=:
7785 break
7786 fi
7787 rm -f conftest.err conftest.i conftest.$ac_ext
7788
7789 done
7790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7791 rm -f conftest.i conftest.err conftest.$ac_ext
7792 if $ac_preproc_ok; then :
7793
7794 else
7795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7797 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7798 See \`config.log' for more details" "$LINENO" 5; }
7799 fi
7800
7801 ac_ext=c
7802 ac_cpp='$CPP $CPPFLAGS'
7803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7809 $as_echo_n "checking for ANSI C header files... " >&6; }
7810 if ${ac_cv_header_stdc+:} false; then :
7811 $as_echo_n "(cached) " >&6
7812 else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <stdlib.h>
7816 #include <stdarg.h>
7817 #include <string.h>
7818 #include <float.h>
7819
7820 int
7821 main ()
7822 {
7823
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829 ac_cv_header_stdc=yes
7830 else
7831 ac_cv_header_stdc=no
7832 fi
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834
7835 if test $ac_cv_header_stdc = yes; then
7836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <string.h>
7840
7841 _ACEOF
7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7843 $EGREP "memchr" >/dev/null 2>&1; then :
7844
7845 else
7846 ac_cv_header_stdc=no
7847 fi
7848 rm -f conftest*
7849
7850 fi
7851
7852 if test $ac_cv_header_stdc = yes; then
7853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 #include <stdlib.h>
7857
7858 _ACEOF
7859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7860 $EGREP "free" >/dev/null 2>&1; then :
7861
7862 else
7863 ac_cv_header_stdc=no
7864 fi
7865 rm -f conftest*
7866
7867 fi
7868
7869 if test $ac_cv_header_stdc = yes; then
7870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7871 if test "$cross_compiling" = yes; then :
7872 :
7873 else
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #include <ctype.h>
7877 #include <stdlib.h>
7878 #if ((' ' & 0x0FF) == 0x020)
7879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7881 #else
7882 # define ISLOWER(c) \
7883 (('a' <= (c) && (c) <= 'i') \
7884 || ('j' <= (c) && (c) <= 'r') \
7885 || ('s' <= (c) && (c) <= 'z'))
7886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7887 #endif
7888
7889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7890 int
7891 main ()
7892 {
7893 int i;
7894 for (i = 0; i < 256; i++)
7895 if (XOR (islower (i), ISLOWER (i))
7896 || toupper (i) != TOUPPER (i))
7897 return 2;
7898 return 0;
7899 }
7900 _ACEOF
7901 if ac_fn_c_try_run "$LINENO"; then :
7902
7903 else
7904 ac_cv_header_stdc=no
7905 fi
7906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7907 conftest.$ac_objext conftest.beam conftest.$ac_ext
7908 fi
7909
7910 fi
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7913 $as_echo "$ac_cv_header_stdc" >&6; }
7914 if test $ac_cv_header_stdc = yes; then
7915
7916 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7917
7918 fi
7919
7920 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7921 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7922 inttypes.h stdint.h unistd.h
7923 do :
7924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7925 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7926 "
7927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7928 cat >>confdefs.h <<_ACEOF
7929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7931
7932 fi
7933
7934 done
7935
7936
7937 for ac_header in dlfcn.h
7938 do :
7939 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7940 "
7941 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7942 cat >>confdefs.h <<_ACEOF
7943 #define HAVE_DLFCN_H 1
7944 _ACEOF
7945
7946 fi
7947
7948 done
7949
7950
7951
7952
7953
7954 # Set options
7955 enable_dlopen=yes
7956 # Check whether --enable-static was given.
7957 if test "${enable_static+set}" = set; then :
7958 enableval=$enable_static; p=${PACKAGE-default}
7959 case $enableval in
7960 yes) enable_static=yes ;;
7961 no) enable_static=no ;;
7962 *)
7963 enable_static=no
7964 # Look at the argument we got. We use all the common list separators.
7965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7966 for pkg in $enableval; do
7967 IFS="$lt_save_ifs"
7968 if test "X$pkg" = "X$p"; then
7969 enable_static=yes
7970 fi
7971 done
7972 IFS="$lt_save_ifs"
7973 ;;
7974 esac
7975 else
7976 enable_static=no
7977 fi
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 enable_win32_dll=no
7990
7991
7992 # Check whether --enable-shared was given.
7993 if test "${enable_shared+set}" = set; then :
7994 enableval=$enable_shared; p=${PACKAGE-default}
7995 case $enableval in
7996 yes) enable_shared=yes ;;
7997 no) enable_shared=no ;;
7998 *)
7999 enable_shared=no
8000 # Look at the argument we got. We use all the common list separators.
8001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8002 for pkg in $enableval; do
8003 IFS="$lt_save_ifs"
8004 if test "X$pkg" = "X$p"; then
8005 enable_shared=yes
8006 fi
8007 done
8008 IFS="$lt_save_ifs"
8009 ;;
8010 esac
8011 else
8012 enable_shared=yes
8013 fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 # Check whether --with-pic was given.
8026 if test "${with_pic+set}" = set; then :
8027 withval=$with_pic; lt_p=${PACKAGE-default}
8028 case $withval in
8029 yes|no) pic_mode=$withval ;;
8030 *)
8031 pic_mode=default
8032 # Look at the argument we got. We use all the common list separators.
8033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8034 for lt_pkg in $withval; do
8035 IFS="$lt_save_ifs"
8036 if test "X$lt_pkg" = "X$lt_p"; then
8037 pic_mode=yes
8038 fi
8039 done
8040 IFS="$lt_save_ifs"
8041 ;;
8042 esac
8043 else
8044 pic_mode=default
8045 fi
8046
8047
8048 test -z "$pic_mode" && pic_mode=default
8049
8050
8051
8052
8053
8054
8055
8056 # Check whether --enable-fast-install was given.
8057 if test "${enable_fast_install+set}" = set; then :
8058 enableval=$enable_fast_install; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_fast_install=yes ;;
8061 no) enable_fast_install=no ;;
8062 *)
8063 enable_fast_install=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8067 IFS="$lt_save_ifs"
8068 if test "X$pkg" = "X$p"; then
8069 enable_fast_install=yes
8070 fi
8071 done
8072 IFS="$lt_save_ifs"
8073 ;;
8074 esac
8075 else
8076 enable_fast_install=yes
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 # This can be used to rebuild libtool when needed
8090 LIBTOOL_DEPS="$ltmain"
8091
8092 # Always use our own libtool.
8093 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 test -z "$LN_S" && LN_S="ln -s"
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 if test -n "${ZSH_VERSION+set}" ; then
8140 setopt NO_GLOB_SUBST
8141 fi
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8144 $as_echo_n "checking for objdir... " >&6; }
8145 if ${lt_cv_objdir+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 rm -f .libs 2>/dev/null
8149 mkdir .libs 2>/dev/null
8150 if test -d .libs; then
8151 lt_cv_objdir=.libs
8152 else
8153 # MS-DOS does not allow filenames that begin with a dot.
8154 lt_cv_objdir=_libs
8155 fi
8156 rmdir .libs 2>/dev/null
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8159 $as_echo "$lt_cv_objdir" >&6; }
8160 objdir=$lt_cv_objdir
8161
8162
8163
8164
8165
8166 cat >>confdefs.h <<_ACEOF
8167 #define LT_OBJDIR "$lt_cv_objdir/"
8168 _ACEOF
8169
8170
8171
8172
8173 case $host_os in
8174 aix3*)
8175 # AIX sometimes has problems with the GCC collect2 program. For some
8176 # reason, if we set the COLLECT_NAMES environment variable, the problems
8177 # vanish in a puff of smoke.
8178 if test "X${COLLECT_NAMES+set}" != Xset; then
8179 COLLECT_NAMES=
8180 export COLLECT_NAMES
8181 fi
8182 ;;
8183 esac
8184
8185 # Global variables:
8186 ofile=libtool
8187 can_build_shared=yes
8188
8189 # All known linkers require a `.a' archive for static linking (except MSVC,
8190 # which needs '.lib').
8191 libext=a
8192
8193 with_gnu_ld="$lt_cv_prog_gnu_ld"
8194
8195 old_CC="$CC"
8196 old_CFLAGS="$CFLAGS"
8197
8198 # Set sane defaults for various variables
8199 test -z "$CC" && CC=cc
8200 test -z "$LTCC" && LTCC=$CC
8201 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8202 test -z "$LD" && LD=ld
8203 test -z "$ac_objext" && ac_objext=o
8204
8205 for cc_temp in $compiler""; do
8206 case $cc_temp in
8207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8209 \-*) ;;
8210 *) break;;
8211 esac
8212 done
8213 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8214
8215
8216 # Only perform the check for file, if the check method requires it
8217 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8218 case $deplibs_check_method in
8219 file_magic*)
8220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8222 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8223 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 case $MAGIC_CMD in
8227 [\\/*] | ?:[\\/]*)
8228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8229 ;;
8230 *)
8231 lt_save_MAGIC_CMD="$MAGIC_CMD"
8232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8234 for ac_dir in $ac_dummy; do
8235 IFS="$lt_save_ifs"
8236 test -z "$ac_dir" && ac_dir=.
8237 if test -f $ac_dir/${ac_tool_prefix}file; then
8238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8239 if test -n "$file_magic_test_file"; then
8240 case $deplibs_check_method in
8241 "file_magic "*)
8242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8245 $EGREP "$file_magic_regex" > /dev/null; then
8246 :
8247 else
8248 cat <<_LT_EOF 1>&2
8249
8250 *** Warning: the command libtool uses to detect shared libraries,
8251 *** $file_magic_cmd, produces output that libtool cannot recognize.
8252 *** The result is that libtool may fail to recognize shared libraries
8253 *** as such. This will affect the creation of libtool libraries that
8254 *** depend on shared libraries, but programs linked with such libtool
8255 *** libraries will work regardless of this problem. Nevertheless, you
8256 *** may want to report the problem to your system manager and/or to
8257 *** bug-libtool@gnu.org
8258
8259 _LT_EOF
8260 fi ;;
8261 esac
8262 fi
8263 break
8264 fi
8265 done
8266 IFS="$lt_save_ifs"
8267 MAGIC_CMD="$lt_save_MAGIC_CMD"
8268 ;;
8269 esac
8270 fi
8271
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if test -n "$MAGIC_CMD"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8275 $as_echo "$MAGIC_CMD" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8279 fi
8280
8281
8282
8283
8284
8285 if test -z "$lt_cv_path_MAGIC_CMD"; then
8286 if test -n "$ac_tool_prefix"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8288 $as_echo_n "checking for file... " >&6; }
8289 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 case $MAGIC_CMD in
8293 [\\/*] | ?:[\\/]*)
8294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8295 ;;
8296 *)
8297 lt_save_MAGIC_CMD="$MAGIC_CMD"
8298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8300 for ac_dir in $ac_dummy; do
8301 IFS="$lt_save_ifs"
8302 test -z "$ac_dir" && ac_dir=.
8303 if test -f $ac_dir/file; then
8304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8305 if test -n "$file_magic_test_file"; then
8306 case $deplibs_check_method in
8307 "file_magic "*)
8308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8311 $EGREP "$file_magic_regex" > /dev/null; then
8312 :
8313 else
8314 cat <<_LT_EOF 1>&2
8315
8316 *** Warning: the command libtool uses to detect shared libraries,
8317 *** $file_magic_cmd, produces output that libtool cannot recognize.
8318 *** The result is that libtool may fail to recognize shared libraries
8319 *** as such. This will affect the creation of libtool libraries that
8320 *** depend on shared libraries, but programs linked with such libtool
8321 *** libraries will work regardless of this problem. Nevertheless, you
8322 *** may want to report the problem to your system manager and/or to
8323 *** bug-libtool@gnu.org
8324
8325 _LT_EOF
8326 fi ;;
8327 esac
8328 fi
8329 break
8330 fi
8331 done
8332 IFS="$lt_save_ifs"
8333 MAGIC_CMD="$lt_save_MAGIC_CMD"
8334 ;;
8335 esac
8336 fi
8337
8338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8339 if test -n "$MAGIC_CMD"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8341 $as_echo "$MAGIC_CMD" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8345 fi
8346
8347
8348 else
8349 MAGIC_CMD=:
8350 fi
8351 fi
8352
8353 fi
8354 ;;
8355 esac
8356
8357 # Use C for the default configuration in the libtool script
8358
8359 lt_save_CC="$CC"
8360 ac_ext=c
8361 ac_cpp='$CPP $CPPFLAGS'
8362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8365
8366
8367 # Source file extension for C test sources.
8368 ac_ext=c
8369
8370 # Object file extension for compiled C test sources.
8371 objext=o
8372 objext=$objext
8373
8374 # Code to be used in simple compile tests
8375 lt_simple_compile_test_code="int some_variable = 0;"
8376
8377 # Code to be used in simple link tests
8378 lt_simple_link_test_code='int main(){return(0);}'
8379
8380
8381
8382
8383
8384
8385
8386 # If no C compiler was specified, use CC.
8387 LTCC=${LTCC-"$CC"}
8388
8389 # If no C compiler flags were specified, use CFLAGS.
8390 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8391
8392 # Allow CC to be a program name with arguments.
8393 compiler=$CC
8394
8395 # Save the default compiler, since it gets overwritten when the other
8396 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8397 compiler_DEFAULT=$CC
8398
8399 # save warnings/boilerplate of simple test code
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8402 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8403 _lt_compiler_boilerplate=`cat conftest.err`
8404 $RM conftest*
8405
8406 ac_outfile=conftest.$ac_objext
8407 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8408 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8409 _lt_linker_boilerplate=`cat conftest.err`
8410 $RM -r conftest*
8411
8412
8413 if test -n "$compiler"; then
8414
8415 lt_prog_compiler_no_builtin_flag=
8416
8417 if test "$GCC" = yes; then
8418 case $cc_basename in
8419 nvcc*)
8420 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8421 *)
8422 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8423 esac
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8426 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8427 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 lt_cv_prog_compiler_rtti_exceptions=no
8431 ac_outfile=conftest.$ac_objext
8432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8433 lt_compiler_flag="-fno-rtti -fno-exceptions"
8434 # Insert the option either (1) after the last *FLAGS variable, or
8435 # (2) before a word containing "conftest.", or (3) at the end.
8436 # Note that $ac_compile itself does not contain backslashes and begins
8437 # with a dollar sign (not a hyphen), so the echo should work correctly.
8438 # The option is referenced via a variable to avoid confusing sed.
8439 lt_compile=`echo "$ac_compile" | $SED \
8440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8442 -e 's:$: $lt_compiler_flag:'`
8443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8444 (eval "$lt_compile" 2>conftest.err)
8445 ac_status=$?
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 if (exit $ac_status) && test -s "$ac_outfile"; then
8449 # The compiler can only warn and ignore the option if not recognized
8450 # So say no if there are warnings other than the usual output.
8451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8454 lt_cv_prog_compiler_rtti_exceptions=yes
8455 fi
8456 fi
8457 $RM conftest*
8458
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8461 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8462
8463 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8464 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8465 else
8466 :
8467 fi
8468
8469 fi
8470
8471
8472
8473
8474
8475
8476 lt_prog_compiler_wl=
8477 lt_prog_compiler_pic=
8478 lt_prog_compiler_static=
8479
8480
8481 if test "$GCC" = yes; then
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_static='-static'
8484
8485 case $host_os in
8486 aix*)
8487 # All AIX code is PIC.
8488 if test "$host_cpu" = ia64; then
8489 # AIX 5 now supports IA64 processor
8490 lt_prog_compiler_static='-Bstatic'
8491 fi
8492 ;;
8493
8494 amigaos*)
8495 case $host_cpu in
8496 powerpc)
8497 # see comment about AmigaOS4 .so support
8498 lt_prog_compiler_pic='-fPIC'
8499 ;;
8500 m68k)
8501 # FIXME: we need at least 68020 code to build shared libraries, but
8502 # adding the `-m68020' flag to GCC prevents building anything better,
8503 # like `-m68040'.
8504 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8505 ;;
8506 esac
8507 ;;
8508
8509 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8510 # PIC is the default for these OSes.
8511 ;;
8512
8513 mingw* | cygwin* | pw32* | os2* | cegcc*)
8514 # This hack is so that the source file can tell whether it is being
8515 # built for inclusion in a dll (and should export symbols for example).
8516 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8517 # (--disable-auto-import) libraries
8518 lt_prog_compiler_pic='-DDLL_EXPORT'
8519 ;;
8520
8521 darwin* | rhapsody*)
8522 # PIC is the default on this platform
8523 # Common symbols not allowed in MH_DYLIB files
8524 lt_prog_compiler_pic='-fno-common'
8525 ;;
8526
8527 haiku*)
8528 # PIC is the default for Haiku.
8529 # The "-static" flag exists, but is broken.
8530 lt_prog_compiler_static=
8531 ;;
8532
8533 hpux*)
8534 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8535 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8536 # sets the default TLS model and affects inlining.
8537 case $host_cpu in
8538 hppa*64*)
8539 # +Z the default
8540 ;;
8541 *)
8542 lt_prog_compiler_pic='-fPIC'
8543 ;;
8544 esac
8545 ;;
8546
8547 interix[3-9]*)
8548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8549 # Instead, we relocate shared libraries at runtime.
8550 ;;
8551
8552 msdosdjgpp*)
8553 # Just because we use GCC doesn't mean we suddenly get shared libraries
8554 # on systems that don't support them.
8555 lt_prog_compiler_can_build_shared=no
8556 enable_shared=no
8557 ;;
8558
8559 *nto* | *qnx*)
8560 # QNX uses GNU C++, but need to define -shared option too, otherwise
8561 # it will coredump.
8562 lt_prog_compiler_pic='-fPIC -shared'
8563 ;;
8564
8565 sysv4*MP*)
8566 if test -d /usr/nec; then
8567 lt_prog_compiler_pic=-Kconform_pic
8568 fi
8569 ;;
8570
8571 *)
8572 lt_prog_compiler_pic='-fPIC'
8573 ;;
8574 esac
8575
8576 case $cc_basename in
8577 nvcc*) # Cuda Compiler Driver 2.2
8578 lt_prog_compiler_wl='-Xlinker '
8579 if test -n "$lt_prog_compiler_pic"; then
8580 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8581 fi
8582 ;;
8583 esac
8584 else
8585 # PORTME Check for flag to pass linker flags through the system compiler.
8586 case $host_os in
8587 aix*)
8588 lt_prog_compiler_wl='-Wl,'
8589 if test "$host_cpu" = ia64; then
8590 # AIX 5 now supports IA64 processor
8591 lt_prog_compiler_static='-Bstatic'
8592 else
8593 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8594 fi
8595 ;;
8596
8597 mingw* | cygwin* | pw32* | os2* | cegcc*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 lt_prog_compiler_pic='-DDLL_EXPORT'
8601 ;;
8602
8603 hpux9* | hpux10* | hpux11*)
8604 lt_prog_compiler_wl='-Wl,'
8605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8606 # not for PA HP-UX.
8607 case $host_cpu in
8608 hppa*64*|ia64*)
8609 # +Z the default
8610 ;;
8611 *)
8612 lt_prog_compiler_pic='+Z'
8613 ;;
8614 esac
8615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8616 lt_prog_compiler_static='${wl}-a ${wl}archive'
8617 ;;
8618
8619 irix5* | irix6* | nonstopux*)
8620 lt_prog_compiler_wl='-Wl,'
8621 # PIC (with -KPIC) is the default.
8622 lt_prog_compiler_static='-non_shared'
8623 ;;
8624
8625 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8626 case $cc_basename in
8627 # old Intel for x86_64 which still supported -KPIC.
8628 ecc*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-static'
8632 ;;
8633 # icc used to be incompatible with GCC.
8634 # ICC 10 doesn't accept -KPIC any more.
8635 icc* | ifort*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-fPIC'
8638 lt_prog_compiler_static='-static'
8639 ;;
8640 # Lahey Fortran 8.1.
8641 lf95*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='--shared'
8644 lt_prog_compiler_static='--static'
8645 ;;
8646 nagfor*)
8647 # NAG Fortran compiler
8648 lt_prog_compiler_wl='-Wl,-Wl,,'
8649 lt_prog_compiler_pic='-PIC'
8650 lt_prog_compiler_static='-Bstatic'
8651 ;;
8652 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8653 # Portland Group compilers (*not* the Pentium gcc compiler,
8654 # which looks to be a dead project)
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='-fpic'
8657 lt_prog_compiler_static='-Bstatic'
8658 ;;
8659 ccc*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # All Alpha code is PIC.
8662 lt_prog_compiler_static='-non_shared'
8663 ;;
8664 xl* | bgxl* | bgf* | mpixl*)
8665 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='-qpic'
8668 lt_prog_compiler_static='-qstaticlink'
8669 ;;
8670 *)
8671 case `$CC -V 2>&1 | sed 5q` in
8672 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8673 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_wl=''
8677 ;;
8678 *Sun\ F* | *Sun*Fortran*)
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 lt_prog_compiler_wl='-Qoption ld '
8682 ;;
8683 *Sun\ C*)
8684 # Sun C 5.9
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 lt_prog_compiler_wl='-Wl,'
8688 ;;
8689 *Intel*\ [CF]*Compiler*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-fPIC'
8692 lt_prog_compiler_static='-static'
8693 ;;
8694 *Portland\ Group*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-fpic'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699 esac
8700 ;;
8701 esac
8702 ;;
8703
8704 newsos6)
8705 lt_prog_compiler_pic='-KPIC'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708
8709 *nto* | *qnx*)
8710 # QNX uses GNU C++, but need to define -shared option too, otherwise
8711 # it will coredump.
8712 lt_prog_compiler_pic='-fPIC -shared'
8713 ;;
8714
8715 osf3* | osf4* | osf5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All OSF/1 code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8719 ;;
8720
8721 rdos*)
8722 lt_prog_compiler_static='-non_shared'
8723 ;;
8724
8725 solaris*)
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 case $cc_basename in
8729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8730 lt_prog_compiler_wl='-Qoption ld ';;
8731 *)
8732 lt_prog_compiler_wl='-Wl,';;
8733 esac
8734 ;;
8735
8736 sunos4*)
8737 lt_prog_compiler_wl='-Qoption ld '
8738 lt_prog_compiler_pic='-PIC'
8739 lt_prog_compiler_static='-Bstatic'
8740 ;;
8741
8742 sysv4 | sysv4.2uw2* | sysv4.3*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747
8748 sysv4*MP*)
8749 if test -d /usr/nec ;then
8750 lt_prog_compiler_pic='-Kconform_pic'
8751 lt_prog_compiler_static='-Bstatic'
8752 fi
8753 ;;
8754
8755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='-KPIC'
8758 lt_prog_compiler_static='-Bstatic'
8759 ;;
8760
8761 unicos*)
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_can_build_shared=no
8764 ;;
8765
8766 uts4*)
8767 lt_prog_compiler_pic='-pic'
8768 lt_prog_compiler_static='-Bstatic'
8769 ;;
8770
8771 *)
8772 lt_prog_compiler_can_build_shared=no
8773 ;;
8774 esac
8775 fi
8776
8777 case $host_os in
8778 # For platforms which do not support PIC, -DPIC is meaningless:
8779 *djgpp*)
8780 lt_prog_compiler_pic=
8781 ;;
8782 *)
8783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8784 ;;
8785 esac
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8788 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8789 if ${lt_cv_prog_compiler_pic+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8795 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8796 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8797
8798 #
8799 # Check to make sure the PIC flag actually works.
8800 #
8801 if test -n "$lt_prog_compiler_pic"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8804 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_prog_compiler_pic_works=no
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 # The option is referenced via a variable to avoid confusing sed.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>conftest.err)
8822 ac_status=$?
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s "$ac_outfile"; then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings other than the usual output.
8828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831 lt_cv_prog_compiler_pic_works=yes
8832 fi
8833 fi
8834 $RM conftest*
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8838 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8839
8840 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8841 case $lt_prog_compiler_pic in
8842 "" | " "*) ;;
8843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844 esac
8845 else
8846 lt_prog_compiler_pic=
8847 lt_prog_compiler_can_build_shared=no
8848 fi
8849
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 #
8863 # Check to make sure the static flag actually works.
8864 #
8865 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8867 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8868 if ${lt_cv_prog_compiler_static_works+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 lt_cv_prog_compiler_static_works=no
8872 save_LDFLAGS="$LDFLAGS"
8873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8874 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8876 # The linker can only warn and ignore the option if not recognized
8877 # So say no if there are warnings
8878 if test -s conftest.err; then
8879 # Append any errors to the config.log.
8880 cat conftest.err 1>&5
8881 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8883 if diff conftest.exp conftest.er2 >/dev/null; then
8884 lt_cv_prog_compiler_static_works=yes
8885 fi
8886 else
8887 lt_cv_prog_compiler_static_works=yes
8888 fi
8889 fi
8890 $RM -r conftest*
8891 LDFLAGS="$save_LDFLAGS"
8892
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8895 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8896
8897 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8898 :
8899 else
8900 lt_prog_compiler_static=
8901 fi
8902
8903
8904
8905
8906
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8911 if ${lt_cv_prog_compiler_c_o+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 lt_cv_prog_compiler_c_o=no
8915 $RM -r conftest 2>/dev/null
8916 mkdir conftest
8917 cd conftest
8918 mkdir out
8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920
8921 lt_compiler_flag="-o out/conftest2.$ac_objext"
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 lt_compile=`echo "$ac_compile" | $SED \
8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929 -e 's:$: $lt_compiler_flag:'`
8930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8931 (eval "$lt_compile" 2>out/conftest.err)
8932 ac_status=$?
8933 cat out/conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8936 then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_c_o=yes
8943 fi
8944 fi
8945 chmod u+w . 2>&5
8946 $RM conftest*
8947 # SGI C++ compiler will create directory out/ii_files/ for
8948 # template instantiation
8949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8950 $RM out/* && rmdir out
8951 cd ..
8952 $RM -r conftest
8953 $RM conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8958
8959
8960
8961
8962
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8965 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8966 if ${lt_cv_prog_compiler_c_o+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 lt_cv_prog_compiler_c_o=no
8970 $RM -r conftest 2>/dev/null
8971 mkdir conftest
8972 cd conftest
8973 mkdir out
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975
8976 lt_compiler_flag="-o out/conftest2.$ac_objext"
8977 # Insert the option either (1) after the last *FLAGS variable, or
8978 # (2) before a word containing "conftest.", or (3) at the end.
8979 # Note that $ac_compile itself does not contain backslashes and begins
8980 # with a dollar sign (not a hyphen), so the echo should work correctly.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>out/conftest.err)
8987 ac_status=$?
8988 cat out/conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8991 then
8992 # The compiler can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8997 lt_cv_prog_compiler_c_o=yes
8998 fi
8999 fi
9000 chmod u+w . 2>&5
9001 $RM conftest*
9002 # SGI C++ compiler will create directory out/ii_files/ for
9003 # template instantiation
9004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9005 $RM out/* && rmdir out
9006 cd ..
9007 $RM -r conftest
9008 $RM conftest*
9009
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9012 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9013
9014
9015
9016
9017 hard_links="nottested"
9018 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9019 # do not overwrite the value of need_locks provided by the user
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9021 $as_echo_n "checking if we can lock with hard links... " >&6; }
9022 hard_links=yes
9023 $RM conftest*
9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025 touch conftest.a
9026 ln conftest.a conftest.b 2>&5 || hard_links=no
9027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9029 $as_echo "$hard_links" >&6; }
9030 if test "$hard_links" = no; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9032 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9033 need_locks=warn
9034 fi
9035 else
9036 need_locks=no
9037 fi
9038
9039
9040
9041
9042
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9046
9047 runpath_var=
9048 allow_undefined_flag=
9049 always_export_symbols=no
9050 archive_cmds=
9051 archive_expsym_cmds=
9052 compiler_needs_object=no
9053 enable_shared_with_static_runtimes=no
9054 export_dynamic_flag_spec=
9055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9056 hardcode_automatic=no
9057 hardcode_direct=no
9058 hardcode_direct_absolute=no
9059 hardcode_libdir_flag_spec=
9060 hardcode_libdir_separator=
9061 hardcode_minus_L=no
9062 hardcode_shlibpath_var=unsupported
9063 inherit_rpath=no
9064 link_all_deplibs=unknown
9065 module_cmds=
9066 module_expsym_cmds=
9067 old_archive_from_new_cmds=
9068 old_archive_from_expsyms_cmds=
9069 thread_safe_flag_spec=
9070 whole_archive_flag_spec=
9071 # include_expsyms should be a list of space-separated symbols to be *always*
9072 # included in the symbol list
9073 include_expsyms=
9074 # exclude_expsyms can be an extended regexp of symbols to exclude
9075 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9076 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9077 # as well as any symbol that contains `d'.
9078 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9080 # platforms (ab)use it in PIC code, but their linkers get confused if
9081 # the symbol is explicitly referenced. Since portable code cannot
9082 # rely on this symbol name, it's probably fine to never include it in
9083 # preloaded symbol tables.
9084 # Exclude shared library initialization/finalization symbols.
9085 extract_expsyms_cmds=
9086
9087 case $host_os in
9088 cygwin* | mingw* | pw32* | cegcc*)
9089 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9090 # When not using gcc, we currently assume that we are using
9091 # Microsoft Visual C++.
9092 if test "$GCC" != yes; then
9093 with_gnu_ld=no
9094 fi
9095 ;;
9096 interix*)
9097 # we just hope/assume this is gcc and not c89 (= MSVC++)
9098 with_gnu_ld=yes
9099 ;;
9100 openbsd*)
9101 with_gnu_ld=no
9102 ;;
9103 esac
9104
9105 ld_shlibs=yes
9106
9107 # On some targets, GNU ld is compatible enough with the native linker
9108 # that we're better off using the native interface for both.
9109 lt_use_gnu_ld_interface=no
9110 if test "$with_gnu_ld" = yes; then
9111 case $host_os in
9112 aix*)
9113 # The AIX port of GNU ld has always aspired to compatibility
9114 # with the native linker. However, as the warning in the GNU ld
9115 # block says, versions before 2.19.5* couldn't really create working
9116 # shared libraries, regardless of the interface used.
9117 case `$LD -v 2>&1` in
9118 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9119 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9120 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9121 *)
9122 lt_use_gnu_ld_interface=yes
9123 ;;
9124 esac
9125 ;;
9126 *)
9127 lt_use_gnu_ld_interface=yes
9128 ;;
9129 esac
9130 fi
9131
9132 if test "$lt_use_gnu_ld_interface" = yes; then
9133 # If archive_cmds runs LD, not CC, wlarc should be empty
9134 wlarc='${wl}'
9135
9136 # Set some defaults for GNU ld with shared library support. These
9137 # are reset later if shared libraries are not supported. Putting them
9138 # here allows them to be overridden if necessary.
9139 runpath_var=LD_RUN_PATH
9140 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9141 export_dynamic_flag_spec='${wl}--export-dynamic'
9142 # ancient GNU ld didn't support --whole-archive et. al.
9143 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9144 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9145 else
9146 whole_archive_flag_spec=
9147 fi
9148 supports_anon_versioning=no
9149 case `$LD -v 2>&1` in
9150 *GNU\ gold*) supports_anon_versioning=yes ;;
9151 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9152 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9153 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9154 *\ 2.11.*) ;; # other 2.11 versions
9155 *) supports_anon_versioning=yes ;;
9156 esac
9157
9158 # See if GNU ld supports shared libraries.
9159 case $host_os in
9160 aix[3-9]*)
9161 # On AIX/PPC, the GNU linker is very broken
9162 if test "$host_cpu" != ia64; then
9163 ld_shlibs=no
9164 cat <<_LT_EOF 1>&2
9165
9166 *** Warning: the GNU linker, at least up to release 2.19, is reported
9167 *** to be unable to reliably create shared libraries on AIX.
9168 *** Therefore, libtool is disabling shared libraries support. If you
9169 *** really care for shared libraries, you may want to install binutils
9170 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9171 *** You will then need to restart the configuration process.
9172
9173 _LT_EOF
9174 fi
9175 ;;
9176
9177 amigaos*)
9178 case $host_cpu in
9179 powerpc)
9180 # see comment about AmigaOS4 .so support
9181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182 archive_expsym_cmds=''
9183 ;;
9184 m68k)
9185 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)'
9186 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_minus_L=yes
9188 ;;
9189 esac
9190 ;;
9191
9192 beos*)
9193 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9194 allow_undefined_flag=unsupported
9195 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9196 # support --undefined. This deserves some investigation. FIXME
9197 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 else
9199 ld_shlibs=no
9200 fi
9201 ;;
9202
9203 cygwin* | mingw* | pw32* | cegcc*)
9204 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9205 # as there is no search path for DLLs.
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 export_dynamic_flag_spec='${wl}--export-all-symbols'
9208 allow_undefined_flag=unsupported
9209 always_export_symbols=no
9210 enable_shared_with_static_runtimes=yes
9211 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'
9212 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9213
9214 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9216 # If the export-symbols file already is a .def file (1st line
9217 # is EXPORTS), use it as is; otherwise, prepend...
9218 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9219 cp $export_symbols $output_objdir/$soname.def;
9220 else
9221 echo EXPORTS > $output_objdir/$soname.def;
9222 cat $export_symbols >> $output_objdir/$soname.def;
9223 fi~
9224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9225 else
9226 ld_shlibs=no
9227 fi
9228 ;;
9229
9230 haiku*)
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 link_all_deplibs=yes
9233 ;;
9234
9235 interix[3-9]*)
9236 hardcode_direct=no
9237 hardcode_shlibpath_var=no
9238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9239 export_dynamic_flag_spec='${wl}-E'
9240 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9241 # Instead, shared libraries are loaded at an image base (0x10000000 by
9242 # default) and relocated if they conflict, which is a slow very memory
9243 # consuming and fragmenting process. To avoid this, we pick a random,
9244 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9245 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9246 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9247 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'
9248 ;;
9249
9250 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9251 tmp_diet=no
9252 if test "$host_os" = linux-dietlibc; then
9253 case $cc_basename in
9254 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9255 esac
9256 fi
9257 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9258 && test "$tmp_diet" = no
9259 then
9260 tmp_addflag=' $pic_flag'
9261 tmp_sharedflag='-shared'
9262 case $cc_basename,$host_cpu in
9263 pgcc*) # Portland Group C compiler
9264 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'
9265 tmp_addflag=' $pic_flag'
9266 ;;
9267 pgf77* | pgf90* | pgf95* | pgfortran*)
9268 # Portland Group f77 and f90 compilers
9269 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'
9270 tmp_addflag=' $pic_flag -Mnomain' ;;
9271 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9272 tmp_addflag=' -i_dynamic' ;;
9273 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9274 tmp_addflag=' -i_dynamic -nofor_main' ;;
9275 ifc* | ifort*) # Intel Fortran compiler
9276 tmp_addflag=' -nofor_main' ;;
9277 lf95*) # Lahey Fortran 8.1
9278 whole_archive_flag_spec=
9279 tmp_sharedflag='--shared' ;;
9280 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9281 tmp_sharedflag='-qmkshrobj'
9282 tmp_addflag= ;;
9283 nvcc*) # Cuda Compiler Driver 2.2
9284 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'
9285 compiler_needs_object=yes
9286 ;;
9287 esac
9288 case `$CC -V 2>&1 | sed 5q` in
9289 *Sun\ C*) # Sun C 5.9
9290 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'
9291 compiler_needs_object=yes
9292 tmp_sharedflag='-G' ;;
9293 *Sun\ F*) # Sun Fortran 8.3
9294 tmp_sharedflag='-G' ;;
9295 esac
9296 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297
9298 if test "x$supports_anon_versioning" = xyes; then
9299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9301 echo "local: *; };" >> $output_objdir/$libname.ver~
9302 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9303 fi
9304
9305 case $cc_basename in
9306 xlf* | bgf* | bgxlf* | mpixlf*)
9307 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9308 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9311 if test "x$supports_anon_versioning" = xyes; then
9312 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314 echo "local: *; };" >> $output_objdir/$libname.ver~
9315 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9316 fi
9317 ;;
9318 esac
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323
9324 netbsd*)
9325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9326 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9327 wlarc=
9328 else
9329 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9331 fi
9332 ;;
9333
9334 solaris*)
9335 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9336 ld_shlibs=no
9337 cat <<_LT_EOF 1>&2
9338
9339 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9340 *** create shared libraries on Solaris systems. Therefore, libtool
9341 *** is disabling shared libraries support. We urge you to upgrade GNU
9342 *** binutils to release 2.9.1 or newer. Another option is to modify
9343 *** your PATH or compiler configuration so that the native linker is
9344 *** used, and then restart.
9345
9346 _LT_EOF
9347 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9356 case `$LD -v 2>&1` in
9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9358 ld_shlibs=no
9359 cat <<_LT_EOF 1>&2
9360
9361 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9362 *** reliably create shared libraries on SCO systems. Therefore, libtool
9363 *** is disabling shared libraries support. We urge you to upgrade GNU
9364 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9365 *** your PATH or compiler configuration so that the native linker is
9366 *** used, and then restart.
9367
9368 _LT_EOF
9369 ;;
9370 *)
9371 # For security reasons, it is highly recommended that you always
9372 # use absolute paths for naming shared libraries, and exclude the
9373 # DT_RUNPATH tag from executables and libraries. But doing so
9374 # requires that you compile everything twice, which is a pain.
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9378 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383 esac
9384 ;;
9385
9386 sunos4*)
9387 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388 wlarc=
9389 hardcode_direct=yes
9390 hardcode_shlibpath_var=no
9391 ;;
9392
9393 *)
9394 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401 esac
9402
9403 if test "$ld_shlibs" = no; then
9404 runpath_var=
9405 hardcode_libdir_flag_spec=
9406 export_dynamic_flag_spec=
9407 whole_archive_flag_spec=
9408 fi
9409 else
9410 # PORTME fill in a description of your system's linker (not GNU ld)
9411 case $host_os in
9412 aix3*)
9413 allow_undefined_flag=unsupported
9414 always_export_symbols=yes
9415 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'
9416 # Note: this linker hardcodes the directories in LIBPATH if there
9417 # are no directories specified by -L.
9418 hardcode_minus_L=yes
9419 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9420 # Neither direct hardcoding nor static linking is supported with a
9421 # broken collect2.
9422 hardcode_direct=unsupported
9423 fi
9424 ;;
9425
9426 aix[4-9]*)
9427 if test "$host_cpu" = ia64; then
9428 # On IA64, the linker does run time linking by default, so we don't
9429 # have to do anything special.
9430 aix_use_runtimelinking=no
9431 exp_sym_flag='-Bexport'
9432 no_entry_flag=""
9433 else
9434 # If we're using GNU nm, then we don't want the "-C" option.
9435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9436 # Also, AIX nm treats weak defined symbols like other global
9437 # defined symbols, whereas GNU nm marks them as "W".
9438 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9439 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9440 else
9441 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9442 fi
9443 aix_use_runtimelinking=no
9444
9445 # Test if we are trying to use run time linking or normal
9446 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9447 # need to do runtime linking.
9448 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9449 for ld_flag in $LDFLAGS; do
9450 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9451 aix_use_runtimelinking=yes
9452 break
9453 fi
9454 done
9455 ;;
9456 esac
9457
9458 exp_sym_flag='-bexport'
9459 no_entry_flag='-bnoentry'
9460 fi
9461
9462 # When large executables or shared objects are built, AIX ld can
9463 # have problems creating the table of contents. If linking a library
9464 # or program results in "error TOC overflow" add -mminimal-toc to
9465 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9466 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9467
9468 archive_cmds=''
9469 hardcode_direct=yes
9470 hardcode_direct_absolute=yes
9471 hardcode_libdir_separator=':'
9472 link_all_deplibs=yes
9473 file_list_spec='${wl}-f,'
9474
9475 if test "$GCC" = yes; then
9476 case $host_os in aix4.[012]|aix4.[012].*)
9477 # We only want to do this on AIX 4.2 and lower, the check
9478 # below for broken collect2 doesn't work under 4.3+
9479 collect2name=`${CC} -print-prog-name=collect2`
9480 if test -f "$collect2name" &&
9481 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9482 then
9483 # We have reworked collect2
9484 :
9485 else
9486 # We have old collect2
9487 hardcode_direct=unsupported
9488 # It fails to find uninstalled libraries when the uninstalled
9489 # path is not listed in the libpath. Setting hardcode_minus_L
9490 # to unsupported forces relinking
9491 hardcode_minus_L=yes
9492 hardcode_libdir_flag_spec='-L$libdir'
9493 hardcode_libdir_separator=
9494 fi
9495 ;;
9496 esac
9497 shared_flag='-shared'
9498 if test "$aix_use_runtimelinking" = yes; then
9499 shared_flag="$shared_flag "'${wl}-G'
9500 fi
9501 else
9502 # not using gcc
9503 if test "$host_cpu" = ia64; then
9504 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9505 # chokes on -Wl,-G. The following line is correct:
9506 shared_flag='-G'
9507 else
9508 if test "$aix_use_runtimelinking" = yes; then
9509 shared_flag='${wl}-G'
9510 else
9511 shared_flag='${wl}-bM:SRE'
9512 fi
9513 fi
9514 fi
9515
9516 export_dynamic_flag_spec='${wl}-bexpall'
9517 # It seems that -bexpall does not export symbols beginning with
9518 # underscore (_), so it is better to generate a list of symbols to export.
9519 always_export_symbols=yes
9520 if test "$aix_use_runtimelinking" = yes; then
9521 # Warning - without using the other runtime loading flags (-brtl),
9522 # -berok will link without error, but may produce a broken library.
9523 allow_undefined_flag='-berok'
9524 # Determine the default libpath from the value encoded in an
9525 # empty executable.
9526 if test "${lt_cv_aix_libpath+set}" = set; then
9527 aix_libpath=$lt_cv_aix_libpath
9528 else
9529 if ${lt_cv_aix_libpath_+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534
9535 int
9536 main ()
9537 {
9538
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 if ac_fn_c_try_link "$LINENO"; then :
9544
9545 lt_aix_libpath_sed='
9546 /Import File Strings/,/^$/ {
9547 /^0/ {
9548 s/^0 *\([^ ]*\) *$/\1/
9549 p
9550 }
9551 }'
9552 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 # Check for a 64-bit object if we didn't find anything.
9554 if test -z "$lt_cv_aix_libpath_"; then
9555 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556 fi
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 if test -z "$lt_cv_aix_libpath_"; then
9561 lt_cv_aix_libpath_="/usr/lib:/lib"
9562 fi
9563
9564 fi
9565
9566 aix_libpath=$lt_cv_aix_libpath_
9567 fi
9568
9569 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9570 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9571 else
9572 if test "$host_cpu" = ia64; then
9573 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9574 allow_undefined_flag="-z nodefs"
9575 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"
9576 else
9577 # Determine the default libpath from the value encoded in an
9578 # empty executable.
9579 if test "${lt_cv_aix_libpath+set}" = set; then
9580 aix_libpath=$lt_cv_aix_libpath
9581 else
9582 if ${lt_cv_aix_libpath_+:} false; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587
9588 int
9589 main ()
9590 {
9591
9592 ;
9593 return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9597
9598 lt_aix_libpath_sed='
9599 /Import File Strings/,/^$/ {
9600 /^0/ {
9601 s/^0 *\([^ ]*\) *$/\1/
9602 p
9603 }
9604 }'
9605 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 # Check for a 64-bit object if we didn't find anything.
9607 if test -z "$lt_cv_aix_libpath_"; then
9608 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609 fi
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 if test -z "$lt_cv_aix_libpath_"; then
9614 lt_cv_aix_libpath_="/usr/lib:/lib"
9615 fi
9616
9617 fi
9618
9619 aix_libpath=$lt_cv_aix_libpath_
9620 fi
9621
9622 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9623 # Warning - without using the other run time loading flags,
9624 # -berok will link without error, but may produce a broken library.
9625 no_undefined_flag=' ${wl}-bernotok'
9626 allow_undefined_flag=' ${wl}-berok'
9627 if test "$with_gnu_ld" = yes; then
9628 # We only use this code for GNU lds that support --whole-archive.
9629 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9630 else
9631 # Exported symbols can be pulled into shared objects from archives
9632 whole_archive_flag_spec='$convenience'
9633 fi
9634 archive_cmds_need_lc=yes
9635 # This is similar to how AIX traditionally builds its shared libraries.
9636 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9637 fi
9638 fi
9639 ;;
9640
9641 amigaos*)
9642 case $host_cpu in
9643 powerpc)
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9647 ;;
9648 m68k)
9649 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9652 ;;
9653 esac
9654 ;;
9655
9656 bsdi[45]*)
9657 export_dynamic_flag_spec=-rdynamic
9658 ;;
9659
9660 cygwin* | mingw* | pw32* | cegcc*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 case $cc_basename in
9666 cl*)
9667 # Native MSVC
9668 hardcode_libdir_flag_spec=' '
9669 allow_undefined_flag=unsupported
9670 always_export_symbols=yes
9671 file_list_spec='@'
9672 # Tell ltmain to make .lib files, not .a files.
9673 libext=lib
9674 # Tell ltmain to make .dll files, not .so files.
9675 shrext_cmds=".dll"
9676 # FIXME: Setting linknames here is a bad hack.
9677 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9678 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9679 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9680 else
9681 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9682 fi~
9683 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9684 linknames='
9685 # The linker will not automatically build a static lib if we build a DLL.
9686 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9687 enable_shared_with_static_runtimes=yes
9688 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9690 # Don't use ranlib
9691 old_postinstall_cmds='chmod 644 $oldlib'
9692 postlink_cmds='lt_outputfile="@OUTPUT@"~
9693 lt_tool_outputfile="@TOOL_OUTPUT@"~
9694 case $lt_outputfile in
9695 *.exe|*.EXE) ;;
9696 *)
9697 lt_outputfile="$lt_outputfile.exe"
9698 lt_tool_outputfile="$lt_tool_outputfile.exe"
9699 ;;
9700 esac~
9701 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9702 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9703 $RM "$lt_outputfile.manifest";
9704 fi'
9705 ;;
9706 *)
9707 # Assume MSVC wrapper
9708 hardcode_libdir_flag_spec=' '
9709 allow_undefined_flag=unsupported
9710 # Tell ltmain to make .lib files, not .a files.
9711 libext=lib
9712 # Tell ltmain to make .dll files, not .so files.
9713 shrext_cmds=".dll"
9714 # FIXME: Setting linknames here is a bad hack.
9715 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9716 # The linker will automatically build a .lib file if we build a DLL.
9717 old_archive_from_new_cmds='true'
9718 # FIXME: Should let the user specify the lib program.
9719 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9720 enable_shared_with_static_runtimes=yes
9721 ;;
9722 esac
9723 ;;
9724
9725 darwin* | rhapsody*)
9726
9727
9728 archive_cmds_need_lc=no
9729 hardcode_direct=no
9730 hardcode_automatic=yes
9731 hardcode_shlibpath_var=unsupported
9732 if test "$lt_cv_ld_force_load" = "yes"; then
9733 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\"`'
9734
9735 else
9736 whole_archive_flag_spec=''
9737 fi
9738 link_all_deplibs=yes
9739 allow_undefined_flag="$_lt_dar_allow_undefined"
9740 case $cc_basename in
9741 ifort*) _lt_dar_can_shared=yes ;;
9742 *) _lt_dar_can_shared=$GCC ;;
9743 esac
9744 if test "$_lt_dar_can_shared" = "yes"; then
9745 output_verbose_link_cmd=func_echo_all
9746 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9747 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9748 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}"
9749 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}"
9750
9751 else
9752 ld_shlibs=no
9753 fi
9754
9755 ;;
9756
9757 dgux*)
9758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9759 hardcode_libdir_flag_spec='-L$libdir'
9760 hardcode_shlibpath_var=no
9761 ;;
9762
9763 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9764 # support. Future versions do this automatically, but an explicit c++rt0.o
9765 # does not break anything, and helps significantly (at the cost of a little
9766 # extra space).
9767 freebsd2.2*)
9768 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9769 hardcode_libdir_flag_spec='-R$libdir'
9770 hardcode_direct=yes
9771 hardcode_shlibpath_var=no
9772 ;;
9773
9774 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9775 freebsd2.*)
9776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777 hardcode_direct=yes
9778 hardcode_minus_L=yes
9779 hardcode_shlibpath_var=no
9780 ;;
9781
9782 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9783 freebsd* | dragonfly*)
9784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_direct=yes
9787 hardcode_shlibpath_var=no
9788 ;;
9789
9790 hpux9*)
9791 if test "$GCC" = yes; then
9792 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9793 else
9794 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9795 fi
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9798 hardcode_direct=yes
9799
9800 # hardcode_minus_L: Not really in the search PATH,
9801 # but as the default location of the library.
9802 hardcode_minus_L=yes
9803 export_dynamic_flag_spec='${wl}-E'
9804 ;;
9805
9806 hpux10*)
9807 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9808 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9809 else
9810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9811 fi
9812 if test "$with_gnu_ld" = no; then
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 hardcode_direct=yes
9816 hardcode_direct_absolute=yes
9817 export_dynamic_flag_spec='${wl}-E'
9818 # hardcode_minus_L: Not really in the search PATH,
9819 # but as the default location of the library.
9820 hardcode_minus_L=yes
9821 fi
9822 ;;
9823
9824 hpux11*)
9825 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9826 case $host_cpu in
9827 hppa*64*)
9828 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9829 ;;
9830 ia64*)
9831 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9832 ;;
9833 *)
9834 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9835 ;;
9836 esac
9837 else
9838 case $host_cpu in
9839 hppa*64*)
9840 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 ;;
9842 ia64*)
9843 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9844 ;;
9845 *)
9846
9847 # Older versions of the 11.00 compiler do not understand -b yet
9848 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9850 $as_echo_n "checking if $CC understands -b... " >&6; }
9851 if ${lt_cv_prog_compiler__b+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 lt_cv_prog_compiler__b=no
9855 save_LDFLAGS="$LDFLAGS"
9856 LDFLAGS="$LDFLAGS -b"
9857 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9858 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9859 # The linker can only warn and ignore the option if not recognized
9860 # So say no if there are warnings
9861 if test -s conftest.err; then
9862 # Append any errors to the config.log.
9863 cat conftest.err 1>&5
9864 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9865 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9866 if diff conftest.exp conftest.er2 >/dev/null; then
9867 lt_cv_prog_compiler__b=yes
9868 fi
9869 else
9870 lt_cv_prog_compiler__b=yes
9871 fi
9872 fi
9873 $RM -r conftest*
9874 LDFLAGS="$save_LDFLAGS"
9875
9876 fi
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9878 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9879
9880 if test x"$lt_cv_prog_compiler__b" = xyes; then
9881 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9882 else
9883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9884 fi
9885
9886 ;;
9887 esac
9888 fi
9889 if test "$with_gnu_ld" = no; then
9890 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9891 hardcode_libdir_separator=:
9892
9893 case $host_cpu in
9894 hppa*64*|ia64*)
9895 hardcode_direct=no
9896 hardcode_shlibpath_var=no
9897 ;;
9898 *)
9899 hardcode_direct=yes
9900 hardcode_direct_absolute=yes
9901 export_dynamic_flag_spec='${wl}-E'
9902
9903 # hardcode_minus_L: Not really in the search PATH,
9904 # but as the default location of the library.
9905 hardcode_minus_L=yes
9906 ;;
9907 esac
9908 fi
9909 ;;
9910
9911 irix5* | irix6* | nonstopux*)
9912 if test "$GCC" = yes; then
9913 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'
9914 # Try to use the -exported_symbol ld option, if it does not
9915 # work, assume that -exports_file does not work either and
9916 # implicitly export all symbols.
9917 # This should be the same for all languages, so no per-tag cache variable.
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9919 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9920 if ${lt_cv_irix_exported_symbol+:} false; then :
9921 $as_echo_n "(cached) " >&6
9922 else
9923 save_LDFLAGS="$LDFLAGS"
9924 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9927 int foo (void) { return 0; }
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9930 lt_cv_irix_exported_symbol=yes
9931 else
9932 lt_cv_irix_exported_symbol=no
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LDFLAGS="$save_LDFLAGS"
9937 fi
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9939 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9940 if test "$lt_cv_irix_exported_symbol" = yes; then
9941 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'
9942 fi
9943 else
9944 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'
9945 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'
9946 fi
9947 archive_cmds_need_lc='no'
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 hardcode_libdir_separator=:
9950 inherit_rpath=yes
9951 link_all_deplibs=yes
9952 ;;
9953
9954 netbsd*)
9955 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9957 else
9958 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9959 fi
9960 hardcode_libdir_flag_spec='-R$libdir'
9961 hardcode_direct=yes
9962 hardcode_shlibpath_var=no
9963 ;;
9964
9965 newsos6)
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_direct=yes
9968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9969 hardcode_libdir_separator=:
9970 hardcode_shlibpath_var=no
9971 ;;
9972
9973 *nto* | *qnx*)
9974 ;;
9975
9976 openbsd*)
9977 if test -f /usr/libexec/ld.so; then
9978 hardcode_direct=yes
9979 hardcode_shlibpath_var=no
9980 hardcode_direct_absolute=yes
9981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9982 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9985 export_dynamic_flag_spec='${wl}-E'
9986 else
9987 case $host_os in
9988 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9989 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_libdir_flag_spec='-R$libdir'
9991 ;;
9992 *)
9993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9995 ;;
9996 esac
9997 fi
9998 else
9999 ld_shlibs=no
10000 fi
10001 ;;
10002
10003 os2*)
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_minus_L=yes
10006 allow_undefined_flag=unsupported
10007 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10008 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10009 ;;
10010
10011 osf3*)
10012 if test "$GCC" = yes; then
10013 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10014 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'
10015 else
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10018 fi
10019 archive_cmds_need_lc='no'
10020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10021 hardcode_libdir_separator=:
10022 ;;
10023
10024 osf4* | osf5*) # as osf3* with the addition of -msym flag
10025 if test "$GCC" = yes; then
10026 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10027 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'
10028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10029 else
10030 allow_undefined_flag=' -expect_unresolved \*'
10031 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'
10032 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~
10033 $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'
10034
10035 # Both c and cxx compiler support -rpath directly
10036 hardcode_libdir_flag_spec='-rpath $libdir'
10037 fi
10038 archive_cmds_need_lc='no'
10039 hardcode_libdir_separator=:
10040 ;;
10041
10042 solaris*)
10043 no_undefined_flag=' -z defs'
10044 if test "$GCC" = yes; then
10045 wlarc='${wl}'
10046 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10048 $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'
10049 else
10050 case `$CC -V 2>&1` in
10051 *"Compilers 5.0"*)
10052 wlarc=''
10053 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10056 ;;
10057 *)
10058 wlarc='${wl}'
10059 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10062 ;;
10063 esac
10064 fi
10065 hardcode_libdir_flag_spec='-R$libdir'
10066 hardcode_shlibpath_var=no
10067 case $host_os in
10068 solaris2.[0-5] | solaris2.[0-5].*) ;;
10069 *)
10070 # The compiler driver will combine and reorder linker options,
10071 # but understands `-z linker_flag'. GCC discards it without `$wl',
10072 # but is careful enough not to reorder.
10073 # Supported since Solaris 2.6 (maybe 2.5.1?)
10074 if test "$GCC" = yes; then
10075 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10076 else
10077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10078 fi
10079 ;;
10080 esac
10081 link_all_deplibs=yes
10082 ;;
10083
10084 sunos4*)
10085 if test "x$host_vendor" = xsequent; then
10086 # Use $CC to link under sequent, because it throws in some extra .o
10087 # files that make .init and .fini sections work.
10088 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10089 else
10090 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10091 fi
10092 hardcode_libdir_flag_spec='-L$libdir'
10093 hardcode_direct=yes
10094 hardcode_minus_L=yes
10095 hardcode_shlibpath_var=no
10096 ;;
10097
10098 sysv4)
10099 case $host_vendor in
10100 sni)
10101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10102 hardcode_direct=yes # is this really true???
10103 ;;
10104 siemens)
10105 ## LD is ld it makes a PLAMLIB
10106 ## CC just makes a GrossModule.
10107 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10108 reload_cmds='$CC -r -o $output$reload_objs'
10109 hardcode_direct=no
10110 ;;
10111 motorola)
10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10114 ;;
10115 esac
10116 runpath_var='LD_RUN_PATH'
10117 hardcode_shlibpath_var=no
10118 ;;
10119
10120 sysv4.3*)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_shlibpath_var=no
10123 export_dynamic_flag_spec='-Bexport'
10124 ;;
10125
10126 sysv4*MP*)
10127 if test -d /usr/nec; then
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_shlibpath_var=no
10130 runpath_var=LD_RUN_PATH
10131 hardcode_runpath_var=yes
10132 ld_shlibs=yes
10133 fi
10134 ;;
10135
10136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10137 no_undefined_flag='${wl}-z,text'
10138 archive_cmds_need_lc=no
10139 hardcode_shlibpath_var=no
10140 runpath_var='LD_RUN_PATH'
10141
10142 if test "$GCC" = yes; then
10143 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10145 else
10146 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 fi
10149 ;;
10150
10151 sysv5* | sco3.2v5* | sco5v6*)
10152 # Note: We can NOT use -z defs as we might desire, because we do not
10153 # link with -lc, and that would cause any symbols used from libc to
10154 # always be unresolved, which means just about no library would
10155 # ever link correctly. If we're not using GNU ld we use -z text
10156 # though, which does catch some bad symbols but isn't as heavy-handed
10157 # as -z defs.
10158 no_undefined_flag='${wl}-z,text'
10159 allow_undefined_flag='${wl}-z,nodefs'
10160 archive_cmds_need_lc=no
10161 hardcode_shlibpath_var=no
10162 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10163 hardcode_libdir_separator=':'
10164 link_all_deplibs=yes
10165 export_dynamic_flag_spec='${wl}-Bexport'
10166 runpath_var='LD_RUN_PATH'
10167
10168 if test "$GCC" = yes; then
10169 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10171 else
10172 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 fi
10175 ;;
10176
10177 uts4*)
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_libdir_flag_spec='-L$libdir'
10180 hardcode_shlibpath_var=no
10181 ;;
10182
10183 *)
10184 ld_shlibs=no
10185 ;;
10186 esac
10187
10188 if test x$host_vendor = xsni; then
10189 case $host in
10190 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10191 export_dynamic_flag_spec='${wl}-Blargedynsym'
10192 ;;
10193 esac
10194 fi
10195 fi
10196
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10198 $as_echo "$ld_shlibs" >&6; }
10199 test "$ld_shlibs" = no && can_build_shared=no
10200
10201 with_gnu_ld=$with_gnu_ld
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217 #
10218 # Do we need to explicitly link libc?
10219 #
10220 case "x$archive_cmds_need_lc" in
10221 x|xyes)
10222 # Assume -lc should be added
10223 archive_cmds_need_lc=yes
10224
10225 if test "$enable_shared" = yes && test "$GCC" = yes; then
10226 case $archive_cmds in
10227 *'~'*)
10228 # FIXME: we may have to deal with multi-command sequences.
10229 ;;
10230 '$CC '*)
10231 # Test whether the compiler implicitly links with -lc since on some
10232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10233 # to ld, don't add -lc before -lgcc.
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10235 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10236 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 $RM conftest*
10240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10241
10242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243 (eval $ac_compile) 2>&5
10244 ac_status=$?
10245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246 test $ac_status = 0; } 2>conftest.err; then
10247 soname=conftest
10248 lib=conftest
10249 libobjs=conftest.$ac_objext
10250 deplibs=
10251 wl=$lt_prog_compiler_wl
10252 pic_flag=$lt_prog_compiler_pic
10253 compiler_flags=-v
10254 linker_flags=-v
10255 verstring=
10256 output_objdir=.
10257 libname=conftest
10258 lt_save_allow_undefined_flag=$allow_undefined_flag
10259 allow_undefined_flag=
10260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10261 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10262 ac_status=$?
10263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10264 test $ac_status = 0; }
10265 then
10266 lt_cv_archive_cmds_need_lc=no
10267 else
10268 lt_cv_archive_cmds_need_lc=yes
10269 fi
10270 allow_undefined_flag=$lt_save_allow_undefined_flag
10271 else
10272 cat conftest.err 1>&5
10273 fi
10274 $RM conftest*
10275
10276 fi
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10278 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10279 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10280 ;;
10281 esac
10282 fi
10283 ;;
10284 esac
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
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10438 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10439
10440 if test "$GCC" = yes; then
10441 case $host_os in
10442 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10443 *) lt_awk_arg="/^libraries:/" ;;
10444 esac
10445 case $host_os in
10446 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10447 *) lt_sed_strip_eq="s,=/,/,g" ;;
10448 esac
10449 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10450 case $lt_search_path_spec in
10451 *\;*)
10452 # if the path contains ";" then we assume it to be the separator
10453 # otherwise default to the standard path separator (i.e. ":") - it is
10454 # assumed that no part of a normal pathname contains ";" but that should
10455 # okay in the real world where ";" in dirpaths is itself problematic.
10456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10457 ;;
10458 *)
10459 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10460 ;;
10461 esac
10462 # Ok, now we have the path, separated by spaces, we can step through it
10463 # and add multilib dir if necessary.
10464 lt_tmp_lt_search_path_spec=
10465 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10466 for lt_sys_path in $lt_search_path_spec; do
10467 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10469 else
10470 test -d "$lt_sys_path" && \
10471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10472 fi
10473 done
10474 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10475 BEGIN {RS=" "; FS="/|\n";} {
10476 lt_foo="";
10477 lt_count=0;
10478 for (lt_i = NF; lt_i > 0; lt_i--) {
10479 if ($lt_i != "" && $lt_i != ".") {
10480 if ($lt_i == "..") {
10481 lt_count++;
10482 } else {
10483 if (lt_count == 0) {
10484 lt_foo="/" $lt_i lt_foo;
10485 } else {
10486 lt_count--;
10487 }
10488 }
10489 }
10490 }
10491 if (lt_foo != "") { lt_freq[lt_foo]++; }
10492 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10493 }'`
10494 # AWK program above erroneously prepends '/' to C:/dos/paths
10495 # for these hosts.
10496 case $host_os in
10497 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10498 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10499 esac
10500 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10501 else
10502 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10503 fi
10504 library_names_spec=
10505 libname_spec='lib$name'
10506 soname_spec=
10507 shrext_cmds=".so"
10508 postinstall_cmds=
10509 postuninstall_cmds=
10510 finish_cmds=
10511 finish_eval=
10512 shlibpath_var=
10513 shlibpath_overrides_runpath=unknown
10514 version_type=none
10515 dynamic_linker="$host_os ld.so"
10516 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10517 need_lib_prefix=unknown
10518 hardcode_into_libs=no
10519
10520 # when you set need_version to no, make sure it does not cause -set_version
10521 # flags to be left without arguments
10522 need_version=unknown
10523
10524 case $host_os in
10525 aix3*)
10526 version_type=linux # correct to gnu/linux during the next big refactor
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10528 shlibpath_var=LIBPATH
10529
10530 # AIX 3 has no versioning support, so we append a major version to the name.
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 ;;
10533
10534 aix[4-9]*)
10535 version_type=linux # correct to gnu/linux during the next big refactor
10536 need_lib_prefix=no
10537 need_version=no
10538 hardcode_into_libs=yes
10539 if test "$host_cpu" = ia64; then
10540 # AIX 5 supports IA64
10541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 else
10544 # With GCC up to 2.95.x, collect2 would create an import file
10545 # for dependence libraries. The import file would start with
10546 # the line `#! .'. This would cause the generated library to
10547 # depend on `.', always an invalid library. This was fixed in
10548 # development snapshots of GCC prior to 3.0.
10549 case $host_os in
10550 aix4 | aix4.[01] | aix4.[01].*)
10551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10552 echo ' yes '
10553 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10554 :
10555 else
10556 can_build_shared=no
10557 fi
10558 ;;
10559 esac
10560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10561 # soname into executable. Probably we can add versioning support to
10562 # collect2, so additional links can be useful in future.
10563 if test "$aix_use_runtimelinking" = yes; then
10564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10565 # instead of lib<name>.a to let people know that these are not
10566 # typical AIX shared libraries.
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 else
10569 # We preserve .a as extension for shared libraries through AIX4.2
10570 # and later when we are not doing run time linking.
10571 library_names_spec='${libname}${release}.a $libname.a'
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 fi
10574 shlibpath_var=LIBPATH
10575 fi
10576 ;;
10577
10578 amigaos*)
10579 case $host_cpu in
10580 powerpc)
10581 # Since July 2007 AmigaOS4 officially supports .so libraries.
10582 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 ;;
10585 m68k)
10586 library_names_spec='$libname.ixlibrary $libname.a'
10587 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10588 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10589 ;;
10590 esac
10591 ;;
10592
10593 beos*)
10594 library_names_spec='${libname}${shared_ext}'
10595 dynamic_linker="$host_os ld.so"
10596 shlibpath_var=LIBRARY_PATH
10597 ;;
10598
10599 bsdi[45]*)
10600 version_type=linux # correct to gnu/linux during the next big refactor
10601 need_version=no
10602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10607 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10608 # the default ld.so.conf also contains /usr/contrib/lib and
10609 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10610 # libtool to hard-code these into programs
10611 ;;
10612
10613 cygwin* | mingw* | pw32* | cegcc*)
10614 version_type=windows
10615 shrext_cmds=".dll"
10616 need_version=no
10617 need_lib_prefix=no
10618
10619 case $GCC,$cc_basename in
10620 yes,*)
10621 # gcc
10622 library_names_spec='$libname.dll.a'
10623 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10624 postinstall_cmds='base_file=`basename \${file}`~
10625 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10626 dldir=$destdir/`dirname \$dlpath`~
10627 test -d \$dldir || mkdir -p \$dldir~
10628 $install_prog $dir/$dlname \$dldir/$dlname~
10629 chmod a+x \$dldir/$dlname~
10630 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10631 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10632 fi'
10633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10634 dlpath=$dir/\$dldll~
10635 $RM \$dlpath'
10636 shlibpath_overrides_runpath=yes
10637
10638 case $host_os in
10639 cygwin*)
10640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10642
10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10644 ;;
10645 mingw* | cegcc*)
10646 # MinGW DLLs use traditional 'lib' prefix
10647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648 ;;
10649 pw32*)
10650 # pw32 DLLs use 'pw' prefix rather than 'lib'
10651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10652 ;;
10653 esac
10654 dynamic_linker='Win32 ld.exe'
10655 ;;
10656
10657 *,cl*)
10658 # Native MSVC
10659 libname_spec='$name'
10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661 library_names_spec='${libname}.dll.lib'
10662
10663 case $build_os in
10664 mingw*)
10665 sys_lib_search_path_spec=
10666 lt_save_ifs=$IFS
10667 IFS=';'
10668 for lt_path in $LIB
10669 do
10670 IFS=$lt_save_ifs
10671 # Let DOS variable expansion print the short 8.3 style file name.
10672 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10674 done
10675 IFS=$lt_save_ifs
10676 # Convert to MSYS style.
10677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10678 ;;
10679 cygwin*)
10680 # Convert to unix form, then to dos form, then back to unix form
10681 # but this time dos style (no spaces!) so that the unix form looks
10682 # like /cygdrive/c/PROGRA~1:/cygdr...
10683 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10684 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10685 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10686 ;;
10687 *)
10688 sys_lib_search_path_spec="$LIB"
10689 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10690 # It is most probably a Windows format PATH.
10691 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10692 else
10693 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10694 fi
10695 # FIXME: find the short name or the path components, as spaces are
10696 # common. (e.g. "Program Files" -> "PROGRA~1")
10697 ;;
10698 esac
10699
10700 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701 postinstall_cmds='base_file=`basename \${file}`~
10702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10703 dldir=$destdir/`dirname \$dlpath`~
10704 test -d \$dldir || mkdir -p \$dldir~
10705 $install_prog $dir/$dlname \$dldir/$dlname'
10706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10707 dlpath=$dir/\$dldll~
10708 $RM \$dlpath'
10709 shlibpath_overrides_runpath=yes
10710 dynamic_linker='Win32 link.exe'
10711 ;;
10712
10713 *)
10714 # Assume MSVC wrapper
10715 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10716 dynamic_linker='Win32 ld.exe'
10717 ;;
10718 esac
10719 # FIXME: first we should search . and the directory the executable is in
10720 shlibpath_var=PATH
10721 ;;
10722
10723 darwin* | rhapsody*)
10724 dynamic_linker="$host_os dyld"
10725 version_type=darwin
10726 need_lib_prefix=no
10727 need_version=no
10728 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10729 soname_spec='${libname}${release}${major}$shared_ext'
10730 shlibpath_overrides_runpath=yes
10731 shlibpath_var=DYLD_LIBRARY_PATH
10732 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10733
10734 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10736 ;;
10737
10738 dgux*)
10739 version_type=linux # correct to gnu/linux during the next big refactor
10740 need_lib_prefix=no
10741 need_version=no
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 ;;
10746
10747 freebsd* | dragonfly*)
10748 # DragonFly does not have aout. When/if they implement a new
10749 # versioning mechanism, adjust this.
10750 if test -x /usr/bin/objformat; then
10751 objformat=`/usr/bin/objformat`
10752 else
10753 case $host_os in
10754 freebsd[23].*) objformat=aout ;;
10755 *) objformat=elf ;;
10756 esac
10757 fi
10758 version_type=freebsd-$objformat
10759 case $version_type in
10760 freebsd-elf*)
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10762 need_version=no
10763 need_lib_prefix=no
10764 ;;
10765 freebsd-*)
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10767 need_version=yes
10768 ;;
10769 esac
10770 shlibpath_var=LD_LIBRARY_PATH
10771 case $host_os in
10772 freebsd2.*)
10773 shlibpath_overrides_runpath=yes
10774 ;;
10775 freebsd3.[01]* | freebsdelf3.[01]*)
10776 shlibpath_overrides_runpath=yes
10777 hardcode_into_libs=yes
10778 ;;
10779 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10780 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10781 shlibpath_overrides_runpath=no
10782 hardcode_into_libs=yes
10783 ;;
10784 *) # from 4.6 on, and DragonFly
10785 shlibpath_overrides_runpath=yes
10786 hardcode_into_libs=yes
10787 ;;
10788 esac
10789 ;;
10790
10791 gnu*)
10792 version_type=linux # correct to gnu/linux during the next big refactor
10793 need_lib_prefix=no
10794 need_version=no
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=no
10799 hardcode_into_libs=yes
10800 ;;
10801
10802 haiku*)
10803 version_type=linux # correct to gnu/linux during the next big refactor
10804 need_lib_prefix=no
10805 need_version=no
10806 dynamic_linker="$host_os runtime_loader"
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 shlibpath_var=LIBRARY_PATH
10810 shlibpath_overrides_runpath=yes
10811 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10812 hardcode_into_libs=yes
10813 ;;
10814
10815 hpux9* | hpux10* | hpux11*)
10816 # Give a soname corresponding to the major version so that dld.sl refuses to
10817 # link against other versions.
10818 version_type=sunos
10819 need_lib_prefix=no
10820 need_version=no
10821 case $host_cpu in
10822 ia64*)
10823 shrext_cmds='.so'
10824 hardcode_into_libs=yes
10825 dynamic_linker="$host_os dld.so"
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 if test "X$HPUX_IA64_MODE" = X32; then
10831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10832 else
10833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10834 fi
10835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10836 ;;
10837 hppa*64*)
10838 shrext_cmds='.sl'
10839 hardcode_into_libs=yes
10840 dynamic_linker="$host_os dld.sl"
10841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10847 ;;
10848 *)
10849 shrext_cmds='.sl'
10850 dynamic_linker="$host_os dld.sl"
10851 shlibpath_var=SHLIB_PATH
10852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 ;;
10856 esac
10857 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10858 postinstall_cmds='chmod 555 $lib'
10859 # or fails outright, so override atomically:
10860 install_override_mode=555
10861 ;;
10862
10863 interix[3-9]*)
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10870 shlibpath_var=LD_LIBRARY_PATH
10871 shlibpath_overrides_runpath=no
10872 hardcode_into_libs=yes
10873 ;;
10874
10875 irix5* | irix6* | nonstopux*)
10876 case $host_os in
10877 nonstopux*) version_type=nonstopux ;;
10878 *)
10879 if test "$lt_cv_prog_gnu_ld" = yes; then
10880 version_type=linux # correct to gnu/linux during the next big refactor
10881 else
10882 version_type=irix
10883 fi ;;
10884 esac
10885 need_lib_prefix=no
10886 need_version=no
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10889 case $host_os in
10890 irix5* | nonstopux*)
10891 libsuff= shlibsuff=
10892 ;;
10893 *)
10894 case $LD in # libtool.m4 will add one of these switches to LD
10895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10896 libsuff= shlibsuff= libmagic=32-bit;;
10897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10898 libsuff=32 shlibsuff=N32 libmagic=N32;;
10899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10901 *) libsuff= shlibsuff= libmagic=never-match;;
10902 esac
10903 ;;
10904 esac
10905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10906 shlibpath_overrides_runpath=no
10907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10909 hardcode_into_libs=yes
10910 ;;
10911
10912 # No shared lib support for Linux oldld, aout, or coff.
10913 linux*oldld* | linux*aout* | linux*coff*)
10914 dynamic_linker=no
10915 ;;
10916
10917 # This must be glibc/ELF.
10918 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10919 version_type=linux # correct to gnu/linux during the next big refactor
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 shlibpath_overrides_runpath=no
10927
10928 # Some binutils ld are patched to set DT_RUNPATH
10929 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 lt_cv_shlibpath_overrides_runpath=no
10933 save_LDFLAGS=$LDFLAGS
10934 save_libdir=$libdir
10935 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10936 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939
10940 int
10941 main ()
10942 {
10943
10944 ;
10945 return 0;
10946 }
10947 _ACEOF
10948 if ac_fn_c_try_link "$LINENO"; then :
10949 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10950 lt_cv_shlibpath_overrides_runpath=yes
10951 fi
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LDFLAGS=$save_LDFLAGS
10956 libdir=$save_libdir
10957
10958 fi
10959
10960 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10961
10962 # This implies no fast_install, which is unacceptable.
10963 # Some rework will be needed to allow for fast_install
10964 # before this can be enabled.
10965 hardcode_into_libs=yes
10966
10967 # Append ld.so.conf contents to the search path
10968 if test -f /etc/ld.so.conf; then
10969 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' ' '`
10970 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10971 fi
10972
10973 # We used to test for /lib/ld.so.1 and disable shared libraries on
10974 # powerpc, because MkLinux only supported shared libraries with the
10975 # GNU dynamic linker. Since this was broken with cross compilers,
10976 # most powerpc-linux boxes support dynamic linking these days and
10977 # people can always --disable-shared, the test was removed, and we
10978 # assume the GNU/Linux dynamic linker is in use.
10979 dynamic_linker='GNU/Linux ld.so'
10980 ;;
10981
10982 netbsd*)
10983 version_type=sunos
10984 need_lib_prefix=no
10985 need_version=no
10986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10989 dynamic_linker='NetBSD (a.out) ld.so'
10990 else
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 dynamic_linker='NetBSD ld.elf_so'
10994 fi
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=yes
10997 hardcode_into_libs=yes
10998 ;;
10999
11000 newsos6)
11001 version_type=linux # correct to gnu/linux during the next big refactor
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes
11005 ;;
11006
11007 *nto* | *qnx*)
11008 version_type=qnx
11009 need_lib_prefix=no
11010 need_version=no
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 shlibpath_overrides_runpath=no
11015 hardcode_into_libs=yes
11016 dynamic_linker='ldqnx.so'
11017 ;;
11018
11019 openbsd*)
11020 version_type=sunos
11021 sys_lib_dlsearch_path_spec="/usr/lib"
11022 need_lib_prefix=no
11023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11024 case $host_os in
11025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11026 *) need_version=no ;;
11027 esac
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11032 case $host_os in
11033 openbsd2.[89] | openbsd2.[89].*)
11034 shlibpath_overrides_runpath=no
11035 ;;
11036 *)
11037 shlibpath_overrides_runpath=yes
11038 ;;
11039 esac
11040 else
11041 shlibpath_overrides_runpath=yes
11042 fi
11043 ;;
11044
11045 os2*)
11046 libname_spec='$name'
11047 shrext_cmds=".dll"
11048 need_lib_prefix=no
11049 library_names_spec='$libname${shared_ext} $libname.a'
11050 dynamic_linker='OS/2 ld.exe'
11051 shlibpath_var=LIBPATH
11052 ;;
11053
11054 osf3* | osf4* | osf5*)
11055 version_type=osf
11056 need_lib_prefix=no
11057 need_version=no
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11063 ;;
11064
11065 rdos*)
11066 dynamic_linker=no
11067 ;;
11068
11069 solaris*)
11070 version_type=linux # correct to gnu/linux during the next big refactor
11071 need_lib_prefix=no
11072 need_version=no
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=yes
11077 hardcode_into_libs=yes
11078 # ldd complains unless libraries are executable
11079 postinstall_cmds='chmod +x $lib'
11080 ;;
11081
11082 sunos4*)
11083 version_type=sunos
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11085 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 if test "$with_gnu_ld" = yes; then
11089 need_lib_prefix=no
11090 fi
11091 need_version=yes
11092 ;;
11093
11094 sysv4 | sysv4.3*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 case $host_vendor in
11100 sni)
11101 shlibpath_overrides_runpath=no
11102 need_lib_prefix=no
11103 runpath_var=LD_RUN_PATH
11104 ;;
11105 siemens)
11106 need_lib_prefix=no
11107 ;;
11108 motorola)
11109 need_lib_prefix=no
11110 need_version=no
11111 shlibpath_overrides_runpath=no
11112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11113 ;;
11114 esac
11115 ;;
11116
11117 sysv4*MP*)
11118 if test -d /usr/nec ;then
11119 version_type=linux # correct to gnu/linux during the next big refactor
11120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11121 soname_spec='$libname${shared_ext}.$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 fi
11124 ;;
11125
11126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11127 version_type=freebsd-elf
11128 need_lib_prefix=no
11129 need_version=no
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11134 hardcode_into_libs=yes
11135 if test "$with_gnu_ld" = yes; then
11136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11137 else
11138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11139 case $host_os in
11140 sco3.2v5*)
11141 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11142 ;;
11143 esac
11144 fi
11145 sys_lib_dlsearch_path_spec='/usr/lib'
11146 ;;
11147
11148 tpf*)
11149 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11150 version_type=linux # correct to gnu/linux during the next big refactor
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=no
11156 hardcode_into_libs=yes
11157 ;;
11158
11159 uts4*)
11160 version_type=linux # correct to gnu/linux during the next big refactor
11161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11162 soname_spec='${libname}${release}${shared_ext}$major'
11163 shlibpath_var=LD_LIBRARY_PATH
11164 ;;
11165
11166 *)
11167 dynamic_linker=no
11168 ;;
11169 esac
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11171 $as_echo "$dynamic_linker" >&6; }
11172 test "$dynamic_linker" = no && can_build_shared=no
11173
11174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11175 if test "$GCC" = yes; then
11176 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11177 fi
11178
11179 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11180 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11181 fi
11182 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11183 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11184 fi
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11278 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11279 hardcode_action=
11280 if test -n "$hardcode_libdir_flag_spec" ||
11281 test -n "$runpath_var" ||
11282 test "X$hardcode_automatic" = "Xyes" ; then
11283
11284 # We can hardcode non-existent directories.
11285 if test "$hardcode_direct" != no &&
11286 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11287 # have to relink, otherwise we might link with an installed library
11288 # when we should be linking with a yet-to-be-installed one
11289 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11290 test "$hardcode_minus_L" != no; then
11291 # Linking always hardcodes the temporary library directory.
11292 hardcode_action=relink
11293 else
11294 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11295 hardcode_action=immediate
11296 fi
11297 else
11298 # We cannot hardcode anything, or else we can only hardcode existing
11299 # directories.
11300 hardcode_action=unsupported
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11303 $as_echo "$hardcode_action" >&6; }
11304
11305 if test "$hardcode_action" = relink ||
11306 test "$inherit_rpath" = yes; then
11307 # Fast installation is not supported
11308 enable_fast_install=no
11309 elif test "$shlibpath_overrides_runpath" = yes ||
11310 test "$enable_shared" = no; then
11311 # Fast installation is not necessary
11312 enable_fast_install=needless
11313 fi
11314
11315
11316
11317
11318
11319
11320 if test "x$enable_dlopen" != xyes; then
11321 enable_dlopen=unknown
11322 enable_dlopen_self=unknown
11323 enable_dlopen_self_static=unknown
11324 else
11325 lt_cv_dlopen=no
11326 lt_cv_dlopen_libs=
11327
11328 case $host_os in
11329 beos*)
11330 lt_cv_dlopen="load_add_on"
11331 lt_cv_dlopen_libs=
11332 lt_cv_dlopen_self=yes
11333 ;;
11334
11335 mingw* | pw32* | cegcc*)
11336 lt_cv_dlopen="LoadLibrary"
11337 lt_cv_dlopen_libs=
11338 ;;
11339
11340 cygwin*)
11341 lt_cv_dlopen="dlopen"
11342 lt_cv_dlopen_libs=
11343 ;;
11344
11345 darwin*)
11346 # if libdl is installed we need to link against it
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11348 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11349 if ${ac_cv_lib_dl_dlopen+:} false; then :
11350 $as_echo_n "(cached) " >&6
11351 else
11352 ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-ldl $LIBS"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358 Use char because int might match the return type of a GCC
11359 builtin and then its argument prototype would still apply. */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char dlopen ();
11364 int
11365 main ()
11366 {
11367 return dlopen ();
11368 ;
11369 return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373 ac_cv_lib_dl_dlopen=yes
11374 else
11375 ac_cv_lib_dl_dlopen=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378 conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11382 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11383 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11385 else
11386
11387 lt_cv_dlopen="dyld"
11388 lt_cv_dlopen_libs=
11389 lt_cv_dlopen_self=yes
11390
11391 fi
11392
11393 ;;
11394
11395 *)
11396 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11397 if test "x$ac_cv_func_shl_load" = xyes; then :
11398 lt_cv_dlopen="shl_load"
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11401 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11402 if ${ac_cv_lib_dld_shl_load+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldld $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char shl_load ();
11417 int
11418 main ()
11419 {
11420 return shl_load ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dld_shl_load=yes
11427 else
11428 ac_cv_lib_dld_shl_load=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11435 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11436 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11437 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11438 else
11439 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11440 if test "x$ac_cv_func_dlopen" = xyes; then :
11441 lt_cv_dlopen="dlopen"
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11444 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11445 if ${ac_cv_lib_dl_dlopen+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-ldl $LIBS"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11452
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char dlopen ();
11460 int
11461 main ()
11462 {
11463 return dlopen ();
11464 ;
11465 return 0;
11466 }
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 ac_cv_lib_dl_dlopen=yes
11470 else
11471 ac_cv_lib_dl_dlopen=no
11472 fi
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11476 fi
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11478 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11479 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11481 else
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11483 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11484 if ${ac_cv_lib_svld_dlopen+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 ac_check_lib_save_LIBS=$LIBS
11488 LIBS="-lsvld $LIBS"
11489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11490 /* end confdefs.h. */
11491
11492 /* Override any GCC internal prototype to avoid an error.
11493 Use char because int might match the return type of a GCC
11494 builtin and then its argument prototype would still apply. */
11495 #ifdef __cplusplus
11496 extern "C"
11497 #endif
11498 char dlopen ();
11499 int
11500 main ()
11501 {
11502 return dlopen ();
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 if ac_fn_c_try_link "$LINENO"; then :
11508 ac_cv_lib_svld_dlopen=yes
11509 else
11510 ac_cv_lib_svld_dlopen=no
11511 fi
11512 rm -f core conftest.err conftest.$ac_objext \
11513 conftest$ac_exeext conftest.$ac_ext
11514 LIBS=$ac_check_lib_save_LIBS
11515 fi
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11517 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11518 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11519 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11522 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11523 if ${ac_cv_lib_dld_dld_link+:} false; then :
11524 $as_echo_n "(cached) " >&6
11525 else
11526 ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-ldld $LIBS"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530
11531 /* Override any GCC internal prototype to avoid an error.
11532 Use char because int might match the return type of a GCC
11533 builtin and then its argument prototype would still apply. */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 char dld_link ();
11538 int
11539 main ()
11540 {
11541 return dld_link ();
11542 ;
11543 return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547 ac_cv_lib_dld_dld_link=yes
11548 else
11549 ac_cv_lib_dld_dld_link=no
11550 fi
11551 rm -f core conftest.err conftest.$ac_objext \
11552 conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11554 fi
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11556 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11557 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11558 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11559 fi
11560
11561
11562 fi
11563
11564
11565 fi
11566
11567
11568 fi
11569
11570
11571 fi
11572
11573
11574 fi
11575
11576 ;;
11577 esac
11578
11579 if test "x$lt_cv_dlopen" != xno; then
11580 enable_dlopen=yes
11581 else
11582 enable_dlopen=no
11583 fi
11584
11585 case $lt_cv_dlopen in
11586 dlopen)
11587 save_CPPFLAGS="$CPPFLAGS"
11588 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11589
11590 save_LDFLAGS="$LDFLAGS"
11591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11592
11593 save_LIBS="$LIBS"
11594 LIBS="$lt_cv_dlopen_libs $LIBS"
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11597 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11598 if ${lt_cv_dlopen_self+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 if test "$cross_compiling" = yes; then :
11602 lt_cv_dlopen_self=cross
11603 else
11604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11605 lt_status=$lt_dlunknown
11606 cat > conftest.$ac_ext <<_LT_EOF
11607 #line $LINENO "configure"
11608 #include "confdefs.h"
11609
11610 #if HAVE_DLFCN_H
11611 #include <dlfcn.h>
11612 #endif
11613
11614 #include <stdio.h>
11615
11616 #ifdef RTLD_GLOBAL
11617 # define LT_DLGLOBAL RTLD_GLOBAL
11618 #else
11619 # ifdef DL_GLOBAL
11620 # define LT_DLGLOBAL DL_GLOBAL
11621 # else
11622 # define LT_DLGLOBAL 0
11623 # endif
11624 #endif
11625
11626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11627 find out it does not work in some platform. */
11628 #ifndef LT_DLLAZY_OR_NOW
11629 # ifdef RTLD_LAZY
11630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11631 # else
11632 # ifdef DL_LAZY
11633 # define LT_DLLAZY_OR_NOW DL_LAZY
11634 # else
11635 # ifdef RTLD_NOW
11636 # define LT_DLLAZY_OR_NOW RTLD_NOW
11637 # else
11638 # ifdef DL_NOW
11639 # define LT_DLLAZY_OR_NOW DL_NOW
11640 # else
11641 # define LT_DLLAZY_OR_NOW 0
11642 # endif
11643 # endif
11644 # endif
11645 # endif
11646 #endif
11647
11648 /* When -fvisbility=hidden is used, assume the code has been annotated
11649 correspondingly for the symbols needed. */
11650 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11651 int fnord () __attribute__((visibility("default")));
11652 #endif
11653
11654 int fnord () { return 42; }
11655 int main ()
11656 {
11657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11658 int status = $lt_dlunknown;
11659
11660 if (self)
11661 {
11662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11663 else
11664 {
11665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11666 else puts (dlerror ());
11667 }
11668 /* dlclose (self); */
11669 }
11670 else
11671 puts (dlerror ());
11672
11673 return status;
11674 }
11675 _LT_EOF
11676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11681 (./conftest; exit; ) >&5 2>/dev/null
11682 lt_status=$?
11683 case x$lt_status in
11684 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11685 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11686 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11687 esac
11688 else :
11689 # compilation failed
11690 lt_cv_dlopen_self=no
11691 fi
11692 fi
11693 rm -fr conftest*
11694
11695
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11698 $as_echo "$lt_cv_dlopen_self" >&6; }
11699
11700 if test "x$lt_cv_dlopen_self" = xyes; then
11701 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11703 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11704 if ${lt_cv_dlopen_self_static+:} false; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 if test "$cross_compiling" = yes; then :
11708 lt_cv_dlopen_self_static=cross
11709 else
11710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11711 lt_status=$lt_dlunknown
11712 cat > conftest.$ac_ext <<_LT_EOF
11713 #line $LINENO "configure"
11714 #include "confdefs.h"
11715
11716 #if HAVE_DLFCN_H
11717 #include <dlfcn.h>
11718 #endif
11719
11720 #include <stdio.h>
11721
11722 #ifdef RTLD_GLOBAL
11723 # define LT_DLGLOBAL RTLD_GLOBAL
11724 #else
11725 # ifdef DL_GLOBAL
11726 # define LT_DLGLOBAL DL_GLOBAL
11727 # else
11728 # define LT_DLGLOBAL 0
11729 # endif
11730 #endif
11731
11732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11733 find out it does not work in some platform. */
11734 #ifndef LT_DLLAZY_OR_NOW
11735 # ifdef RTLD_LAZY
11736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11737 # else
11738 # ifdef DL_LAZY
11739 # define LT_DLLAZY_OR_NOW DL_LAZY
11740 # else
11741 # ifdef RTLD_NOW
11742 # define LT_DLLAZY_OR_NOW RTLD_NOW
11743 # else
11744 # ifdef DL_NOW
11745 # define LT_DLLAZY_OR_NOW DL_NOW
11746 # else
11747 # define LT_DLLAZY_OR_NOW 0
11748 # endif
11749 # endif
11750 # endif
11751 # endif
11752 #endif
11753
11754 /* When -fvisbility=hidden is used, assume the code has been annotated
11755 correspondingly for the symbols needed. */
11756 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11757 int fnord () __attribute__((visibility("default")));
11758 #endif
11759
11760 int fnord () { return 42; }
11761 int main ()
11762 {
11763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11764 int status = $lt_dlunknown;
11765
11766 if (self)
11767 {
11768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11769 else
11770 {
11771 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11772 else puts (dlerror ());
11773 }
11774 /* dlclose (self); */
11775 }
11776 else
11777 puts (dlerror ());
11778
11779 return status;
11780 }
11781 _LT_EOF
11782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11783 (eval $ac_link) 2>&5
11784 ac_status=$?
11785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11786 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11787 (./conftest; exit; ) >&5 2>/dev/null
11788 lt_status=$?
11789 case x$lt_status in
11790 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11791 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11792 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11793 esac
11794 else :
11795 # compilation failed
11796 lt_cv_dlopen_self_static=no
11797 fi
11798 fi
11799 rm -fr conftest*
11800
11801
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11804 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11805 fi
11806
11807 CPPFLAGS="$save_CPPFLAGS"
11808 LDFLAGS="$save_LDFLAGS"
11809 LIBS="$save_LIBS"
11810 ;;
11811 esac
11812
11813 case $lt_cv_dlopen_self in
11814 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11815 *) enable_dlopen_self=unknown ;;
11816 esac
11817
11818 case $lt_cv_dlopen_self_static in
11819 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11820 *) enable_dlopen_self_static=unknown ;;
11821 esac
11822 fi
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840 striplib=
11841 old_striplib=
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11843 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11844 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11845 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11846 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11848 $as_echo "yes" >&6; }
11849 else
11850 # FIXME - insert some real tests, host_os isn't really good enough
11851 case $host_os in
11852 darwin*)
11853 if test -n "$STRIP" ; then
11854 striplib="$STRIP -x"
11855 old_striplib="$STRIP -S"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11857 $as_echo "yes" >&6; }
11858 else
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860 $as_echo "no" >&6; }
11861 fi
11862 ;;
11863 *)
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 ;;
11867 esac
11868 fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 # Report which library types will actually be built
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11883 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11885 $as_echo "$can_build_shared" >&6; }
11886
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11888 $as_echo_n "checking whether to build shared libraries... " >&6; }
11889 test "$can_build_shared" = "no" && enable_shared=no
11890
11891 # On AIX, shared libraries and static libraries use the same namespace, and
11892 # are all built from PIC.
11893 case $host_os in
11894 aix3*)
11895 test "$enable_shared" = yes && enable_static=no
11896 if test -n "$RANLIB"; then
11897 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11898 postinstall_cmds='$RANLIB $lib'
11899 fi
11900 ;;
11901
11902 aix[4-9]*)
11903 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11904 test "$enable_shared" = yes && enable_static=no
11905 fi
11906 ;;
11907 esac
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11909 $as_echo "$enable_shared" >&6; }
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11912 $as_echo_n "checking whether to build static libraries... " >&6; }
11913 # Make sure either enable_shared or enable_static is yes.
11914 test "$enable_shared" = yes || enable_static=yes
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11916 $as_echo "$enable_static" >&6; }
11917
11918
11919
11920
11921 fi
11922 ac_ext=c
11923 ac_cpp='$CPP $CPPFLAGS'
11924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927
11928 CC="$lt_save_CC"
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944 ac_config_commands="$ac_config_commands libtool"
11945
11946
11947
11948
11949 # Only expand once:
11950
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11953 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11954 if ${libltdl_cv_shlibext+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957
11958 module=yes
11959 eval libltdl_cv_shlibext=$shrext_cmds
11960 module=no
11961 eval libltdl_cv_shrext=$shrext_cmds
11962
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11965 $as_echo "$libltdl_cv_shlibext" >&6; }
11966 if test -n "$libltdl_cv_shlibext"; then
11967
11968 cat >>confdefs.h <<_ACEOF
11969 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11970 _ACEOF
11971
11972 fi
11973 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11974
11975 cat >>confdefs.h <<_ACEOF
11976 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11977 _ACEOF
11978
11979 fi
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11982 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11983 if ${lt_cv_module_path_var+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 lt_cv_module_path_var="$shlibpath_var"
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11989 $as_echo "$lt_cv_module_path_var" >&6; }
11990 if test -n "$lt_cv_module_path_var"; then
11991
11992 cat >>confdefs.h <<_ACEOF
11993 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11994 _ACEOF
11995
11996 fi
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11999 $as_echo_n "checking for the default library search path... " >&6; }
12000 if ${lt_cv_sys_dlsearch_path+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12004 fi
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12006 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12007 if test -n "$lt_cv_sys_dlsearch_path"; then
12008 sys_dlsearch_path=
12009 for dir in $lt_cv_sys_dlsearch_path; do
12010 if test -z "$sys_dlsearch_path"; then
12011 sys_dlsearch_path="$dir"
12012 else
12013 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12014 fi
12015 done
12016
12017 cat >>confdefs.h <<_ACEOF
12018 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12019 _ACEOF
12020
12021 fi
12022
12023
12024 LT_DLLOADERS=
12025
12026
12027 ac_ext=c
12028 ac_cpp='$CPP $CPPFLAGS'
12029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12032
12033
12034 LIBADD_DLOPEN=
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12036 $as_echo_n "checking for library containing dlopen... " >&6; }
12037 if ${ac_cv_search_dlopen+:} false; then :
12038 $as_echo_n "(cached) " >&6
12039 else
12040 ac_func_search_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12043
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char dlopen ();
12051 int
12052 main ()
12053 {
12054 return dlopen ();
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 for ac_lib in '' dl; do
12060 if test -z "$ac_lib"; then
12061 ac_res="none required"
12062 else
12063 ac_res=-l$ac_lib
12064 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12065 fi
12066 if ac_fn_c_try_link "$LINENO"; then :
12067 ac_cv_search_dlopen=$ac_res
12068 fi
12069 rm -f core conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext
12071 if ${ac_cv_search_dlopen+:} false; then :
12072 break
12073 fi
12074 done
12075 if ${ac_cv_search_dlopen+:} false; then :
12076
12077 else
12078 ac_cv_search_dlopen=no
12079 fi
12080 rm conftest.$ac_ext
12081 LIBS=$ac_func_search_save_LIBS
12082 fi
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12084 $as_echo "$ac_cv_search_dlopen" >&6; }
12085 ac_res=$ac_cv_search_dlopen
12086 if test "$ac_res" != no; then :
12087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12088
12089 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12090
12091 if test "$ac_cv_search_dlopen" != "none required" ; then
12092 LIBADD_DLOPEN="-ldl"
12093 fi
12094 libltdl_cv_lib_dl_dlopen="yes"
12095 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 #if HAVE_DLFCN_H
12100 # include <dlfcn.h>
12101 #endif
12102
12103 int
12104 main ()
12105 {
12106 dlopen(0, 0);
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112
12113 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12114
12115 libltdl_cv_func_dlopen="yes"
12116 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12117 else
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12119 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12120 if ${ac_cv_lib_svld_dlopen+:} false; then :
12121 $as_echo_n "(cached) " >&6
12122 else
12123 ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lsvld $LIBS"
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char dlopen ();
12135 int
12136 main ()
12137 {
12138 return dlopen ();
12139 ;
12140 return 0;
12141 }
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_svld_dlopen=yes
12145 else
12146 ac_cv_lib_svld_dlopen=no
12147 fi
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12153 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12154 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12155
12156 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12157
12158 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12159 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12160 fi
12161
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12165 fi
12166
12167 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12168 then
12169 lt_save_LIBS="$LIBS"
12170 LIBS="$LIBS $LIBADD_DLOPEN"
12171 for ac_func in dlerror
12172 do :
12173 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12174 if test "x$ac_cv_func_dlerror" = xyes; then :
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_DLERROR 1
12177 _ACEOF
12178
12179 fi
12180 done
12181
12182 LIBS="$lt_save_LIBS"
12183 fi
12184
12185
12186 LIBADD_SHL_LOAD=
12187 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12188 if test "x$ac_cv_func_shl_load" = xyes; then :
12189
12190 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12191
12192 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12196 if ${ac_cv_lib_dld_shl_load+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-ldld $LIBS"
12201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h. */
12203
12204 /* Override any GCC internal prototype to avoid an error.
12205 Use char because int might match the return type of a GCC
12206 builtin and then its argument prototype would still apply. */
12207 #ifdef __cplusplus
12208 extern "C"
12209 #endif
12210 char shl_load ();
12211 int
12212 main ()
12213 {
12214 return shl_load ();
12215 ;
12216 return 0;
12217 }
12218 _ACEOF
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_lib_dld_shl_load=yes
12221 else
12222 ac_cv_lib_dld_shl_load=no
12223 fi
12224 rm -f core conftest.err conftest.$ac_objext \
12225 conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12231
12232 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12233
12234 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12235 LIBADD_SHL_LOAD="-ldld"
12236 fi
12237
12238 fi
12239
12240
12241
12242 case $host_os in
12243 darwin[1567].*)
12244 # We only want this for pre-Mac OS X 10.4.
12245 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12246 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12247
12248 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12249
12250 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12251 fi
12252
12253 ;;
12254 beos*)
12255 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12256 ;;
12257 cygwin* | mingw* | os2* | pw32*)
12258 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12259 "
12260 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12261 ac_have_decl=1
12262 else
12263 ac_have_decl=0
12264 fi
12265
12266 cat >>confdefs.h <<_ACEOF
12267 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12268 _ACEOF
12269
12270 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12271 ;;
12272 esac
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12275 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12276 if ${ac_cv_lib_dld_dld_link+:} false; then :
12277 $as_echo_n "(cached) " >&6
12278 else
12279 ac_check_lib_save_LIBS=$LIBS
12280 LIBS="-ldld $LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283
12284 /* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287 #ifdef __cplusplus
12288 extern "C"
12289 #endif
12290 char dld_link ();
12291 int
12292 main ()
12293 {
12294 return dld_link ();
12295 ;
12296 return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_lib_dld_dld_link=yes
12301 else
12302 ac_cv_lib_dld_dld_link=no
12303 fi
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12309 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12310 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12311
12312 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12313
12314 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12315 fi
12316
12317
12318
12319
12320 LT_DLPREOPEN=
12321 if test -n "$LT_DLLOADERS"
12322 then
12323 for lt_loader in $LT_DLLOADERS; do
12324 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12325 done
12326
12327 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12328
12329 fi
12330
12331
12332 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12333
12334
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12343 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12344 if ${lt_cv_sys_symbol_underscore+:} false; then :
12345 $as_echo_n "(cached) " >&6
12346 else
12347 lt_cv_sys_symbol_underscore=no
12348 cat > conftest.$ac_ext <<_LT_EOF
12349 void nm_test_func(){}
12350 int main(){nm_test_func;return 0;}
12351 _LT_EOF
12352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12353 (eval $ac_compile) 2>&5
12354 ac_status=$?
12355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356 test $ac_status = 0; }; then
12357 # Now try to grab the symbols.
12358 ac_nlist=conftest.nm
12359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12361 ac_status=$?
12362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363 test $ac_status = 0; } && test -s "$ac_nlist"; then
12364 # See whether the symbols have a leading underscore.
12365 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12366 lt_cv_sys_symbol_underscore=yes
12367 else
12368 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12369 :
12370 else
12371 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12372 fi
12373 fi
12374 else
12375 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12376 fi
12377 else
12378 echo "configure: failed program was:" >&5
12379 cat conftest.c >&5
12380 fi
12381 rm -rf conftest*
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12385 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12386 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12387
12388
12389 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12390 if test x"$libltdl_cv_func_dlopen" = xyes ||
12391 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12393 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12394 if ${libltdl_cv_need_uscore+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 libltdl_cv_need_uscore=unknown
12398 save_LIBS="$LIBS"
12399 LIBS="$LIBS $LIBADD_DLOPEN"
12400 if test "$cross_compiling" = yes; then :
12401 libltdl_cv_need_uscore=cross
12402 else
12403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12404 lt_status=$lt_dlunknown
12405 cat > conftest.$ac_ext <<_LT_EOF
12406 #line $LINENO "configure"
12407 #include "confdefs.h"
12408
12409 #if HAVE_DLFCN_H
12410 #include <dlfcn.h>
12411 #endif
12412
12413 #include <stdio.h>
12414
12415 #ifdef RTLD_GLOBAL
12416 # define LT_DLGLOBAL RTLD_GLOBAL
12417 #else
12418 # ifdef DL_GLOBAL
12419 # define LT_DLGLOBAL DL_GLOBAL
12420 # else
12421 # define LT_DLGLOBAL 0
12422 # endif
12423 #endif
12424
12425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12426 find out it does not work in some platform. */
12427 #ifndef LT_DLLAZY_OR_NOW
12428 # ifdef RTLD_LAZY
12429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12430 # else
12431 # ifdef DL_LAZY
12432 # define LT_DLLAZY_OR_NOW DL_LAZY
12433 # else
12434 # ifdef RTLD_NOW
12435 # define LT_DLLAZY_OR_NOW RTLD_NOW
12436 # else
12437 # ifdef DL_NOW
12438 # define LT_DLLAZY_OR_NOW DL_NOW
12439 # else
12440 # define LT_DLLAZY_OR_NOW 0
12441 # endif
12442 # endif
12443 # endif
12444 # endif
12445 #endif
12446
12447 /* When -fvisbility=hidden is used, assume the code has been annotated
12448 correspondingly for the symbols needed. */
12449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12450 int fnord () __attribute__((visibility("default")));
12451 #endif
12452
12453 int fnord () { return 42; }
12454 int main ()
12455 {
12456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12457 int status = $lt_dlunknown;
12458
12459 if (self)
12460 {
12461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12462 else
12463 {
12464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12465 else puts (dlerror ());
12466 }
12467 /* dlclose (self); */
12468 }
12469 else
12470 puts (dlerror ());
12471
12472 return status;
12473 }
12474 _LT_EOF
12475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12476 (eval $ac_link) 2>&5
12477 ac_status=$?
12478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12480 (./conftest; exit; ) >&5 2>/dev/null
12481 lt_status=$?
12482 case x$lt_status in
12483 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12484 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12485 x$lt_dlunknown|x*) ;;
12486 esac
12487 else :
12488 # compilation failed
12489
12490 fi
12491 fi
12492 rm -fr conftest*
12493
12494 LIBS="$save_LIBS"
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12498 $as_echo "$libltdl_cv_need_uscore" >&6; }
12499 fi
12500 fi
12501
12502 if test x"$libltdl_cv_need_uscore" = xyes; then
12503
12504 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12505
12506 fi
12507
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12509 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12510 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 # PORTME does your system automatically load deplibs for dlopen?
12514 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12515 # For now, we just catch OSes we know something about -- in the
12516 # future, we'll try test this programmatically.
12517 lt_cv_sys_dlopen_deplibs=unknown
12518 case $host_os in
12519 aix3*|aix4.1.*|aix4.2.*)
12520 # Unknown whether this is true for these versions of AIX, but
12521 # we want this `case' here to explicitly catch those versions.
12522 lt_cv_sys_dlopen_deplibs=unknown
12523 ;;
12524 aix[4-9]*)
12525 lt_cv_sys_dlopen_deplibs=yes
12526 ;;
12527 amigaos*)
12528 case $host_cpu in
12529 powerpc)
12530 lt_cv_sys_dlopen_deplibs=no
12531 ;;
12532 esac
12533 ;;
12534 darwin*)
12535 # Assuming the user has installed a libdl from somewhere, this is true
12536 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12537 lt_cv_sys_dlopen_deplibs=yes
12538 ;;
12539 freebsd* | dragonfly*)
12540 lt_cv_sys_dlopen_deplibs=yes
12541 ;;
12542 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12543 # GNU and its variants, using gnu ld.so (Glibc)
12544 lt_cv_sys_dlopen_deplibs=yes
12545 ;;
12546 hpux10*|hpux11*)
12547 lt_cv_sys_dlopen_deplibs=yes
12548 ;;
12549 interix*)
12550 lt_cv_sys_dlopen_deplibs=yes
12551 ;;
12552 irix[12345]*|irix6.[01]*)
12553 # Catch all versions of IRIX before 6.2, and indicate that we don't
12554 # know how it worked for any of those versions.
12555 lt_cv_sys_dlopen_deplibs=unknown
12556 ;;
12557 irix*)
12558 # The case above catches anything before 6.2, and it's known that
12559 # at 6.2 and later dlopen does load deplibs.
12560 lt_cv_sys_dlopen_deplibs=yes
12561 ;;
12562 netbsd*)
12563 lt_cv_sys_dlopen_deplibs=yes
12564 ;;
12565 openbsd*)
12566 lt_cv_sys_dlopen_deplibs=yes
12567 ;;
12568 osf[1234]*)
12569 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12570 # it did *not* use an RPATH in a shared library to find objects the
12571 # library depends on, so we explicitly say `no'.
12572 lt_cv_sys_dlopen_deplibs=no
12573 ;;
12574 osf5.0|osf5.0a|osf5.1)
12575 # dlopen *does* load deplibs and with the right loader patch applied
12576 # it even uses RPATH in a shared library to search for shared objects
12577 # that the library depends on, but there's no easy way to know if that
12578 # patch is installed. Since this is the case, all we can really
12579 # say is unknown -- it depends on the patch being installed. If
12580 # it is, this changes to `yes'. Without it, it would be `no'.
12581 lt_cv_sys_dlopen_deplibs=unknown
12582 ;;
12583 osf*)
12584 # the two cases above should catch all versions of osf <= 5.1. Read
12585 # the comments above for what we know about them.
12586 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12587 # is used to find them so we can finally say `yes'.
12588 lt_cv_sys_dlopen_deplibs=yes
12589 ;;
12590 qnx*)
12591 lt_cv_sys_dlopen_deplibs=yes
12592 ;;
12593 solaris*)
12594 lt_cv_sys_dlopen_deplibs=yes
12595 ;;
12596 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12597 libltdl_cv_sys_dlopen_deplibs=yes
12598 ;;
12599 esac
12600
12601 fi
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12603 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12604 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12605
12606 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12607
12608 fi
12609
12610 :
12611
12612 for ac_header in argz.h
12613 do :
12614 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12615 "
12616 if test "x$ac_cv_header_argz_h" = xyes; then :
12617 cat >>confdefs.h <<_ACEOF
12618 #define HAVE_ARGZ_H 1
12619 _ACEOF
12620
12621 fi
12622
12623 done
12624
12625
12626 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12627 # include <argz.h>
12628 #endif
12629 "
12630 if test "x$ac_cv_type_error_t" = xyes; then :
12631
12632 cat >>confdefs.h <<_ACEOF
12633 #define HAVE_ERROR_T 1
12634 _ACEOF
12635
12636
12637 else
12638
12639 $as_echo "#define error_t int" >>confdefs.h
12640
12641
12642 $as_echo "#define __error_t_defined 1" >>confdefs.h
12643
12644 fi
12645
12646
12647 ARGZ_H=
12648 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12649 argz_next argz_stringify
12650 do :
12651 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12652 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12653 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12654 cat >>confdefs.h <<_ACEOF
12655 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12656 _ACEOF
12657
12658 else
12659 ARGZ_H=argz.h;
12660
12661 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12662
12663 fi
12664 done
12665
12666
12667 if test -z "$ARGZ_H"; then :
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12669 $as_echo_n "checking if argz actually works... " >&6; }
12670 if ${lt_cv_sys_argz_works+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672 else
12673 case $host_os in #(
12674 *cygwin*)
12675 lt_cv_sys_argz_works=no
12676 if test "$cross_compiling" != no; then
12677 lt_cv_sys_argz_works="guessing no"
12678 else
12679 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12680 save_IFS=$IFS
12681 IFS=-.
12682 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12683 IFS=$save_IFS
12684 lt_os_major=${2-0}
12685 lt_os_minor=${3-0}
12686 lt_os_micro=${4-0}
12687 if test "$lt_os_major" -gt 1 \
12688 || { test "$lt_os_major" -eq 1 \
12689 && { test "$lt_os_minor" -gt 5 \
12690 || { test "$lt_os_minor" -eq 5 \
12691 && test "$lt_os_micro" -gt 24; }; }; }; then
12692 lt_cv_sys_argz_works=yes
12693 fi
12694 fi
12695 ;; #(
12696 *) lt_cv_sys_argz_works=yes ;;
12697 esac
12698 fi
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12700 $as_echo "$lt_cv_sys_argz_works" >&6; }
12701 if test "$lt_cv_sys_argz_works" = yes; then :
12702
12703 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12704
12705 else
12706 ARGZ_H=argz.h
12707
12708
12709 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12710
12711 fi
12712 fi
12713
12714
12715
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12717 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12718 if ${libltdl_cv_preloaded_symbols+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12722 libltdl_cv_preloaded_symbols=yes
12723 else
12724 libltdl_cv_preloaded_symbols=no
12725 fi
12726
12727 fi
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12729 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12730 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12731
12732 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12733
12734 fi
12735
12736 # Set options
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748 # Check whether --with-included_ltdl was given.
12749 if test "${with_included_ltdl+set}" = set; then :
12750 withval=$with_included_ltdl;
12751 fi
12752
12753
12754 if test "x$with_included_ltdl" != xyes; then
12755 # We are not being forced to use the included libltdl sources, so
12756 # decide whether there is a useful installed version we can use.
12757 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12758
12759 "
12760 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12761 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12762 #include <ltdl.h>
12763 "
12764 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12766 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12767 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-lltdl $LIBS"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12774
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char lt_dladvise_preload ();
12782 int
12783 main ()
12784 {
12785 return lt_dladvise_preload ();
12786 ;
12787 return 0;
12788 }
12789 _ACEOF
12790 if ac_fn_c_try_link "$LINENO"; then :
12791 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12792 else
12793 ac_cv_lib_ltdl_lt_dladvise_preload=no
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12798 fi
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12800 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12801 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12802 with_included_ltdl=no
12803 else
12804 with_included_ltdl=yes
12805 fi
12806
12807 else
12808 with_included_ltdl=yes
12809 fi
12810
12811 else
12812 with_included_ltdl=yes
12813 fi
12814
12815
12816 fi
12817
12818
12819
12820
12821 # Check whether --with-ltdl_include was given.
12822 if test "${with_ltdl_include+set}" = set; then :
12823 withval=$with_ltdl_include;
12824 fi
12825
12826
12827 if test -n "$with_ltdl_include"; then
12828 if test -f "$with_ltdl_include/ltdl.h"; then :
12829 else
12830 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12831 fi
12832 else
12833 with_ltdl_include=no
12834 fi
12835
12836
12837 # Check whether --with-ltdl_lib was given.
12838 if test "${with_ltdl_lib+set}" = set; then :
12839 withval=$with_ltdl_lib;
12840 fi
12841
12842
12843 if test -n "$with_ltdl_lib"; then
12844 if test -f "$with_ltdl_lib/libltdl.la"; then :
12845 else
12846 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12847 fi
12848 else
12849 with_ltdl_lib=no
12850 fi
12851
12852 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12853 ,yes,no,no,)
12854 case $enable_ltdl_convenience in
12855 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12856 "") enable_ltdl_convenience=yes
12857 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12858 esac
12859 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12860 LTDLDEPS=$LIBLTDL
12861 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12862
12863
12864
12865
12866
12867 # For backwards non-gettext consistent compatibility...
12868 INCLTDL="$LTDLINCL"
12869
12870
12871 ;;
12872 ,no,no,no,)
12873 # If the included ltdl is not to be used, then use the
12874 # preinstalled libltdl we found.
12875
12876 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12877
12878 LIBLTDL=-lltdl
12879 LTDLDEPS=
12880 LTDLINCL=
12881 ;;
12882 ,no*,no,*)
12883 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12884 ;;
12885 *) with_included_ltdl=no
12886 LIBLTDL="-L$with_ltdl_lib -lltdl"
12887 LTDLDEPS=
12888 LTDLINCL="-I$with_ltdl_include"
12889 ;;
12890 esac
12891 INCLTDL="$LTDLINCL"
12892
12893 # Report our decision...
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12895 $as_echo_n "checking where to find libltdl headers... " >&6; }
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12897 $as_echo "$LTDLINCL" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12899 $as_echo_n "checking where to find libltdl library... " >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12901 $as_echo "$LIBLTDL" >&6; }
12902
12903
12904
12905 # Check whether --enable-ltdl-install was given.
12906 if test "${enable_ltdl_install+set}" = set; then :
12907 enableval=$enable_ltdl_install;
12908 fi
12909
12910
12911 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12912 *yes*) ;;
12913 *) enable_ltdl_convenience=yes ;;
12914 esac
12915
12916 if test x"${enable_ltdl_install-no}" != xno; then
12917 INSTALL_LTDL_TRUE=
12918 INSTALL_LTDL_FALSE='#'
12919 else
12920 INSTALL_LTDL_TRUE='#'
12921 INSTALL_LTDL_FALSE=
12922 fi
12923
12924 if test x"${enable_ltdl_convenience-no}" != xno; then
12925 CONVENIENCE_LTDL_TRUE=
12926 CONVENIENCE_LTDL_FALSE='#'
12927 else
12928 CONVENIENCE_LTDL_TRUE='#'
12929 CONVENIENCE_LTDL_FALSE=
12930 fi
12931
12932
12933
12934
12935
12936
12937 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12938 # the user used. This is so that ltdl.h can pick up the parent projects
12939 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12940 # definitions required by ltdl.c.
12941 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12942
12943
12944
12945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12946 do :
12947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12948 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12949 "
12950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12951 cat >>confdefs.h <<_ACEOF
12952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12953 _ACEOF
12954
12955 fi
12956
12957 done
12958
12959
12960 for ac_func in closedir opendir readdir
12961 do :
12962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12964 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12965 cat >>confdefs.h <<_ACEOF
12966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12967 _ACEOF
12968
12969 else
12970
12971
12972 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12973
12974 fi
12975 done
12976
12977 for ac_func in strlcat strlcpy
12978 do :
12979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12982 cat >>confdefs.h <<_ACEOF
12983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12984 _ACEOF
12985
12986 else
12987
12988
12989 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12990
12991 fi
12992 done
12993
12994
12995
12996 cat >>confdefs.h <<_ACEOF
12997 #define LT_LIBEXT "$libext"
12998 _ACEOF
12999
13000
13001 name=
13002 eval "lt_libprefix=\"$libname_spec\""
13003
13004 cat >>confdefs.h <<_ACEOF
13005 #define LT_LIBPREFIX "$lt_libprefix"
13006 _ACEOF
13007
13008
13009 name=ltdl
13010 eval "LTDLOPEN=\"$libname_spec\""
13011
13012
13013
13014
13015
13016
13017
13018
13019 # Only expand once:
13020
13021
13022 LIBTOOL="$LIBTOOL --silent"
13023
13024 # Checks for libraries.
13025
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13027 $as_echo_n "checking for library containing socket... " >&6; }
13028 if ${ac_cv_search_socket+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13031 ac_func_search_save_LIBS=$LIBS
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char socket ();
13042 int
13043 main ()
13044 {
13045 return socket ();
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 for ac_lib in '' socket; do
13051 if test -z "$ac_lib"; then
13052 ac_res="none required"
13053 else
13054 ac_res=-l$ac_lib
13055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13056 fi
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 ac_cv_search_socket=$ac_res
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext
13062 if ${ac_cv_search_socket+:} false; then :
13063 break
13064 fi
13065 done
13066 if ${ac_cv_search_socket+:} false; then :
13067
13068 else
13069 ac_cv_search_socket=no
13070 fi
13071 rm conftest.$ac_ext
13072 LIBS=$ac_func_search_save_LIBS
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13075 $as_echo "$ac_cv_search_socket" >&6; }
13076 ac_res=$ac_cv_search_socket
13077 if test "$ac_res" != no; then :
13078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079
13080 else
13081 as_fn_error $? "socket library not found" "$LINENO" 5
13082 fi
13083
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13085 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13086 if ${ac_cv_search_inet_ntoa+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 ac_func_search_save_LIBS=$LIBS
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char inet_ntoa ();
13100 int
13101 main ()
13102 {
13103 return inet_ntoa ();
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 for ac_lib in '' nsl; do
13109 if test -z "$ac_lib"; then
13110 ac_res="none required"
13111 else
13112 ac_res=-l$ac_lib
13113 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13114 fi
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_search_inet_ntoa=$ac_res
13117 fi
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext
13120 if ${ac_cv_search_inet_ntoa+:} false; then :
13121 break
13122 fi
13123 done
13124 if ${ac_cv_search_inet_ntoa+:} false; then :
13125
13126 else
13127 ac_cv_search_inet_ntoa=no
13128 fi
13129 rm conftest.$ac_ext
13130 LIBS=$ac_func_search_save_LIBS
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13133 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13134 ac_res=$ac_cv_search_inet_ntoa
13135 if test "$ac_res" != no; then :
13136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13137
13138 fi
13139
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13141 $as_echo_n "checking for library containing inet_aton... " >&6; }
13142 if ${ac_cv_search_inet_aton+:} false; then :
13143 $as_echo_n "(cached) " >&6
13144 else
13145 ac_func_search_save_LIBS=$LIBS
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148
13149 /* Override any GCC internal prototype to avoid an error.
13150 Use char because int might match the return type of a GCC
13151 builtin and then its argument prototype would still apply. */
13152 #ifdef __cplusplus
13153 extern "C"
13154 #endif
13155 char inet_aton ();
13156 int
13157 main ()
13158 {
13159 return inet_aton ();
13160 ;
13161 return 0;
13162 }
13163 _ACEOF
13164 for ac_lib in '' resolv; do
13165 if test -z "$ac_lib"; then
13166 ac_res="none required"
13167 else
13168 ac_res=-l$ac_lib
13169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13170 fi
13171 if ac_fn_c_try_link "$LINENO"; then :
13172 ac_cv_search_inet_aton=$ac_res
13173 fi
13174 rm -f core conftest.err conftest.$ac_objext \
13175 conftest$ac_exeext
13176 if ${ac_cv_search_inet_aton+:} false; then :
13177 break
13178 fi
13179 done
13180 if ${ac_cv_search_inet_aton+:} false; then :
13181
13182 else
13183 ac_cv_search_inet_aton=no
13184 fi
13185 rm conftest.$ac_ext
13186 LIBS=$ac_func_search_save_LIBS
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13189 $as_echo "$ac_cv_search_inet_aton" >&6; }
13190 ac_res=$ac_cv_search_inet_aton
13191 if test "$ac_res" != no; then :
13192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13193
13194 fi
13195
13196 for ac_func in inet_aton inet_ntop inet_pton
13197 do :
13198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13201 cat >>confdefs.h <<_ACEOF
13202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13203 _ACEOF
13204
13205 fi
13206 done
13207
13208 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13209 #include <sys/socket.h>
13210 #include <netdb.h>
13211
13212 "
13213 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_STRUCT_SOCKADDR_IN 1
13217 _ACEOF
13218
13219
13220 fi
13221 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13222 #include <sys/socket.h>
13223 #include <netdb.h>
13224
13225 "
13226 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13230 _ACEOF
13231
13232
13233 fi
13234 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13235 #include <sys/socket.h>
13236 #include <netdb.h>
13237
13238 "
13239 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13240
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_STRUCT_ADDRINFO 1
13243 _ACEOF
13244
13245
13246 fi
13247
13248 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13249 <sys/socket.h>
13250 "
13251 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13252
13253 cat >>confdefs.h <<_ACEOF
13254 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13255 _ACEOF
13256
13257
13258 fi
13259
13260
13261
13262 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13263 "
13264 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13265
13266 $as_echo "#define IPV6 1" >>confdefs.h
13267
13268 fi
13269
13270
13271
13272 # Checks for typedefs, structures, and compiler characteristics.
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13274 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13275 if ${ac_cv_c_bigendian+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 ac_cv_c_bigendian=unknown
13279 # See if we're dealing with a universal compiler.
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282 #ifndef __APPLE_CC__
13283 not a universal capable compiler
13284 #endif
13285 typedef int dummy;
13286
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"; then :
13289
13290 # Check for potential -arch flags. It is not universal unless
13291 # there are at least two -arch flags with different values.
13292 ac_arch=
13293 ac_prev=
13294 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13295 if test -n "$ac_prev"; then
13296 case $ac_word in
13297 i?86 | x86_64 | ppc | ppc64)
13298 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13299 ac_arch=$ac_word
13300 else
13301 ac_cv_c_bigendian=universal
13302 break
13303 fi
13304 ;;
13305 esac
13306 ac_prev=
13307 elif test "x$ac_word" = "x-arch"; then
13308 ac_prev=arch
13309 fi
13310 done
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 if test $ac_cv_c_bigendian = unknown; then
13314 # See if sys/param.h defines the BYTE_ORDER macro.
13315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h. */
13317 #include <sys/types.h>
13318 #include <sys/param.h>
13319
13320 int
13321 main ()
13322 {
13323 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13324 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13325 && LITTLE_ENDIAN)
13326 bogus endian macros
13327 #endif
13328
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334 # It does; now see whether it defined to BIG_ENDIAN or not.
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #include <sys/types.h>
13338 #include <sys/param.h>
13339
13340 int
13341 main ()
13342 {
13343 #if BYTE_ORDER != BIG_ENDIAN
13344 not big endian
13345 #endif
13346
13347 ;
13348 return 0;
13349 }
13350 _ACEOF
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352 ac_cv_c_bigendian=yes
13353 else
13354 ac_cv_c_bigendian=no
13355 fi
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 fi
13360 if test $ac_cv_c_bigendian = unknown; then
13361 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364 #include <limits.h>
13365
13366 int
13367 main ()
13368 {
13369 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13370 bogus endian macros
13371 #endif
13372
13373 ;
13374 return 0;
13375 }
13376 _ACEOF
13377 if ac_fn_c_try_compile "$LINENO"; then :
13378 # It does; now see whether it defined to _BIG_ENDIAN or not.
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 #include <limits.h>
13382
13383 int
13384 main ()
13385 {
13386 #ifndef _BIG_ENDIAN
13387 not big endian
13388 #endif
13389
13390 ;
13391 return 0;
13392 }
13393 _ACEOF
13394 if ac_fn_c_try_compile "$LINENO"; then :
13395 ac_cv_c_bigendian=yes
13396 else
13397 ac_cv_c_bigendian=no
13398 fi
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 fi
13403 if test $ac_cv_c_bigendian = unknown; then
13404 # Compile a test program.
13405 if test "$cross_compiling" = yes; then :
13406 # Try to guess by grepping values from an object file.
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 short int ascii_mm[] =
13410 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13411 short int ascii_ii[] =
13412 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13413 int use_ascii (int i) {
13414 return ascii_mm[i] + ascii_ii[i];
13415 }
13416 short int ebcdic_ii[] =
13417 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13418 short int ebcdic_mm[] =
13419 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13420 int use_ebcdic (int i) {
13421 return ebcdic_mm[i] + ebcdic_ii[i];
13422 }
13423 extern int foo;
13424
13425 int
13426 main ()
13427 {
13428 return use_ascii (foo) == use_ebcdic (foo);
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 if ac_fn_c_try_compile "$LINENO"; then :
13434 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13435 ac_cv_c_bigendian=yes
13436 fi
13437 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13438 if test "$ac_cv_c_bigendian" = unknown; then
13439 ac_cv_c_bigendian=no
13440 else
13441 # finding both strings is unlikely to happen, but who knows?
13442 ac_cv_c_bigendian=unknown
13443 fi
13444 fi
13445 fi
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447 else
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450 $ac_includes_default
13451 int
13452 main ()
13453 {
13454
13455 /* Are we little or big endian? From Harbison&Steele. */
13456 union
13457 {
13458 long int l;
13459 char c[sizeof (long int)];
13460 } u;
13461 u.l = 1;
13462 return u.c[sizeof (long int) - 1] == 1;
13463
13464 ;
13465 return 0;
13466 }
13467 _ACEOF
13468 if ac_fn_c_try_run "$LINENO"; then :
13469 ac_cv_c_bigendian=no
13470 else
13471 ac_cv_c_bigendian=yes
13472 fi
13473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13474 conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 fi
13476
13477 fi
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13480 $as_echo "$ac_cv_c_bigendian" >&6; }
13481 case $ac_cv_c_bigendian in #(
13482 yes)
13483 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13484 ;; #(
13485 no)
13486 ;; #(
13487 universal)
13488
13489 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13490
13491 ;; #(
13492 *)
13493 as_fn_error $? "unknown endianness
13494 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13495 esac
13496
13497
13498 # Checks for library functions.
13499
13500
13501
13502 for ac_func in $ac_func_list
13503 do :
13504 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13505 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13506 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13507 cat >>confdefs.h <<_ACEOF
13508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13509 _ACEOF
13510
13511 fi
13512 done
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526 # Checks for header files.
13527
13528
13529
13530 for ac_header in $ac_header_list
13531 do :
13532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13533 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13534 "
13535 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13536 cat >>confdefs.h <<_ACEOF
13537 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13538 _ACEOF
13539
13540 fi
13541
13542 done
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13561 $as_echo_n "checking for library containing crypt... " >&6; }
13562 if ${ac_cv_search_crypt+:} false; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 ac_func_search_save_LIBS=$LIBS
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13572 #ifdef __cplusplus
13573 extern "C"
13574 #endif
13575 char crypt ();
13576 int
13577 main ()
13578 {
13579 return crypt ();
13580 ;
13581 return 0;
13582 }
13583 _ACEOF
13584 for ac_lib in '' crypt; do
13585 if test -z "$ac_lib"; then
13586 ac_res="none required"
13587 else
13588 ac_res=-l$ac_lib
13589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13590 fi
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 ac_cv_search_crypt=$ac_res
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext
13596 if ${ac_cv_search_crypt+:} false; then :
13597 break
13598 fi
13599 done
13600 if ${ac_cv_search_crypt+:} false; then :
13601
13602 else
13603 ac_cv_search_crypt=no
13604 fi
13605 rm conftest.$ac_ext
13606 LIBS=$ac_func_search_save_LIBS
13607 fi
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13609 $as_echo "$ac_cv_search_crypt" >&6; }
13610 ac_res=$ac_cv_search_crypt
13611 if test "$ac_res" != no; then :
13612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13613
13614 fi
13615
13616
13617 # Check whether --enable-libpcre was given.
13618 if test "${enable_libpcre+set}" = set; then :
13619 enableval=$enable_libpcre;
13620 else
13621 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13622 if test "x$ac_cv_header_pcre_h" = xyes; then :
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13624 $as_echo_n "checking for library containing pcre_study... " >&6; }
13625 if ${ac_cv_search_pcre_study+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 ac_func_search_save_LIBS=$LIBS
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631
13632 /* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
13635 #ifdef __cplusplus
13636 extern "C"
13637 #endif
13638 char pcre_study ();
13639 int
13640 main ()
13641 {
13642 return pcre_study ();
13643 ;
13644 return 0;
13645 }
13646 _ACEOF
13647 for ac_lib in '' pcre; do
13648 if test -z "$ac_lib"; then
13649 ac_res="none required"
13650 else
13651 ac_res=-l$ac_lib
13652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13653 fi
13654 if ac_fn_c_try_link "$LINENO"; then :
13655 ac_cv_search_pcre_study=$ac_res
13656 fi
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext
13659 if ${ac_cv_search_pcre_study+:} false; then :
13660 break
13661 fi
13662 done
13663 if ${ac_cv_search_pcre_study+:} false; then :
13664
13665 else
13666 ac_cv_search_pcre_study=no
13667 fi
13668 rm conftest.$ac_ext
13669 LIBS=$ac_func_search_save_LIBS
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13672 $as_echo "$ac_cv_search_pcre_study" >&6; }
13673 ac_res=$ac_cv_search_pcre_study
13674 if test "$ac_res" != no; then :
13675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13676
13677 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13678
13679 fi
13680
13681 fi
13682
13683
13684 fi
13685
13686
13687 # Check whether --enable-openssl was given.
13688 if test "${enable_openssl+set}" = set; then :
13689 enableval=$enable_openssl; cf_enable_openssl=$enableval
13690 else
13691 cf_enable_openssl="auto"
13692 fi
13693
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13695 $as_echo_n "checking for OpenSSL... " >&6; }
13696 if test "$cf_enable_openssl" != "no"; then
13697 cf_openssl_basedir=""
13698 if test "$cf_enable_openssl" != "auto" &&
13699 test "$cf_enable_openssl" != "yes"; then
13700 cf_openssl_basedir="${cf_enable_openssl}"
13701 else
13702 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13703 /opt /opt/openssl /usr/local/openssl; do
13704 if test -f "${dirs}/include/openssl/opensslv.h"; then
13705 cf_openssl_basedir="${dirs}"
13706 break
13707 fi
13708 done
13709 unset dirs
13710 fi
13711
13712 if test ! -z "$cf_openssl_basedir"; then
13713 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13714 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13715 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13716 else
13717 cf_openssl_basedir=""
13718 fi
13719 else
13720 if test -f "/usr/include/openssl/opensslv.h"; then
13721 cf_openssl_basedir="/usr"
13722 fi
13723 fi
13724
13725 if test ! -z "$cf_openssl_basedir"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13727 $as_echo "$cf_openssl_basedir" >&6; }
13728 cf_enable_openssl="yes"
13729 else
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13731 $as_echo "not found. Please check your path." >&6; }
13732 cf_enable_openssl="no"
13733 fi
13734 unset cf_openssl_basedir
13735 else
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13737 $as_echo "disabled" >&6; }
13738 fi
13739
13740 if test "$cf_enable_openssl" != "no"; then :
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13742 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13743 if test "$cross_compiling" = yes; then :
13744 cf_openssl_version_ok=no
13745 else
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13748
13749
13750 #include <openssl/opensslv.h>
13751 #include <stdlib.h>
13752 int
13753 main ()
13754 {
13755 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13756 ;
13757 return 0;
13758 }
13759 _ACEOF
13760 if ac_fn_c_try_run "$LINENO"; then :
13761 cf_openssl_version_ok=yes
13762 else
13763 cf_openssl_version_ok=no
13764 fi
13765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13766 conftest.$ac_objext conftest.beam conftest.$ac_ext
13767 fi
13768
13769
13770 if test "$cf_openssl_version_ok" = "yes"; then :
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13772 $as_echo "found" >&6; }
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13775 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13776 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 ac_check_lib_save_LIBS=$LIBS
13780 LIBS="-lcrypto $LIBS"
13781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h. */
13783
13784 /* Override any GCC internal prototype to avoid an error.
13785 Use char because int might match the return type of a GCC
13786 builtin and then its argument prototype would still apply. */
13787 #ifdef __cplusplus
13788 extern "C"
13789 #endif
13790 char RSA_free ();
13791 int
13792 main ()
13793 {
13794 return RSA_free ();
13795 ;
13796 return 0;
13797 }
13798 _ACEOF
13799 if ac_fn_c_try_link "$LINENO"; then :
13800 ac_cv_lib_crypto_RSA_free=yes
13801 else
13802 ac_cv_lib_crypto_RSA_free=no
13803 fi
13804 rm -f core conftest.err conftest.$ac_objext \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13809 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13810 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_LIBCRYPTO 1
13813 _ACEOF
13814
13815 LIBS="-lcrypto $LIBS"
13816
13817 fi
13818
13819 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13821 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13822 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_check_lib_save_LIBS=$LIBS
13826 LIBS="-lssl $LIBS"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829
13830 /* Override any GCC internal prototype to avoid an error.
13831 Use char because int might match the return type of a GCC
13832 builtin and then its argument prototype would still apply. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 #endif
13836 char SSL_connect ();
13837 int
13838 main ()
13839 {
13840 return SSL_connect ();
13841 ;
13842 return 0;
13843 }
13844 _ACEOF
13845 if ac_fn_c_try_link "$LINENO"; then :
13846 ac_cv_lib_ssl_SSL_connect=yes
13847 else
13848 ac_cv_lib_ssl_SSL_connect=no
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13855 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13856 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define HAVE_LIBSSL 1
13859 _ACEOF
13860
13861 LIBS="-lssl $LIBS"
13862
13863 fi
13864
13865 fi
13866
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13869 $as_echo "no - OpenSSL support disabled" >&6; }
13870 cf_enable_openssl="no"
13871 fi
13872 fi
13873
13874 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13875 ENABLE_SSL_TRUE=
13876 ENABLE_SSL_FALSE='#'
13877 else
13878 ENABLE_SSL_TRUE='#'
13879 ENABLE_SSL_FALSE=
13880 fi
13881
13882
13883
13884 # Check whether --enable-assert was given.
13885 if test "${enable_assert+set}" = set; then :
13886 enableval=$enable_assert; assert=$enableval
13887 else
13888 assert=no
13889 fi
13890
13891
13892 if test "$assert" = "no"; then :
13893
13894 $as_echo "#define NDEBUG 1" >>confdefs.h
13895
13896 fi
13897
13898
13899 # Check whether --enable-small-net was given.
13900 if test "${enable_small_net+set}" = set; then :
13901 enableval=$enable_small_net; small_net=$enableval
13902 else
13903 small_net=no
13904 fi
13905
13906
13907 if test "$small_net" = "yes"; then :
13908
13909
13910 $as_echo "#define NICKNAMEHISTORYLENGTH 2048" >>confdefs.h
13911
13912
13913 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13914
13915
13916 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13917
13918
13919 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13920
13921
13922 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13923
13924
13925 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13926
13927
13928 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13929
13930
13931 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13932
13933
13934 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13935
13936
13937 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13938
13939 else
13940
13941
13942
13943 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13944
13945
13946 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13947
13948
13949 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13950
13951
13952 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13953
13954
13955 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13956
13957
13958 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13959
13960
13961 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13962
13963
13964 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13965
13966
13967 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13968
13969
13970 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13971
13972 fi
13973
13974
13975 # Argument processing.
13976
13977 desired_iopoll_mechanism="none"
13978 # Check whether --enable-kqueue was given.
13979 if test "${enable_kqueue+set}" = set; then :
13980 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13981 fi
13982
13983 # Check whether --enable-epoll was given.
13984 if test "${enable_epoll+set}" = set; then :
13985 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13986 fi
13987
13988 # Check whether --enable-devpoll was given.
13989 if test "${enable_devpoll+set}" = set; then :
13990 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13991 fi
13992
13993 # Check whether --enable-rtsigio was given.
13994 if test "${enable_rtsigio+set}" = set; then :
13995 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13996 fi
13997
13998 # Check whether --enable-poll was given.
13999 if test "${enable_poll+set}" = set; then :
14000 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14001 fi
14002
14003 # Check whether --enable-select was given.
14004 if test "${enable_select+set}" = set; then :
14005 enableval=$enable_select; desired_iopoll_mechanism="select"
14006 fi
14007
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14009 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14010 iopoll_mechanism_none=0
14011
14012 cat >>confdefs.h <<_ACEOF
14013 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14014 _ACEOF
14015
14016 iopoll_mechanism_kqueue=1
14017
14018 cat >>confdefs.h <<_ACEOF
14019 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14020 _ACEOF
14021
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14026 #define kevent innocuous_kevent
14027
14028 /* System header to define __stub macros and hopefully few prototypes,
14029 which can conflict with char kevent (); below.
14030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14031 <limits.h> exists even on freestanding compilers. */
14032
14033 #ifdef __STDC__
14034 # include <limits.h>
14035 #else
14036 # include <assert.h>
14037 #endif
14038
14039 #undef kevent
14040
14041 /* Override any GCC internal prototype to avoid an error.
14042 Use char because int might match the return type of a GCC
14043 builtin and then its argument prototype would still apply. */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 char kevent ();
14048 /* The GNU C library defines this for functions which it implements
14049 to always fail with ENOSYS. Some functions are actually named
14050 something starting with __ and the normal name is an alias. */
14051 #if defined __stub_kevent || defined __stub___kevent
14052 choke me
14053 #endif
14054
14055 int
14056 main ()
14057 {
14058 return kevent ();
14059 ;
14060 return 0;
14061 }
14062 _ACEOF
14063 if ac_fn_c_try_link "$LINENO"; then :
14064 is_kqueue_mechanism_available="yes"
14065 else
14066 is_kqueue_mechanism_available="no"
14067 fi
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 iopoll_mechanism_epoll=2
14071
14072 cat >>confdefs.h <<_ACEOF
14073 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14074 _ACEOF
14075
14076 if test "$cross_compiling" = yes; then :
14077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14079 as_fn_error $? "cannot run test program while cross compiling
14080 See \`config.log' for more details" "$LINENO" 5; }
14081 else
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084
14085 #include <sys/epoll.h>
14086 #include <sys/syscall.h>
14087 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14088 #if !defined(__NR_epoll_create)
14089 #if defined(__ia64__)
14090 #define __NR_epoll_create 1243
14091 #elif defined(__x86_64__)
14092 #define __NR_epoll_create 214
14093 #elif defined(__sparc64__) || defined(__sparc__)
14094 #define __NR_epoll_create 193
14095 #elif defined(__s390__) || defined(__m68k__)
14096 #define __NR_epoll_create 249
14097 #elif defined(__ppc64__) || defined(__ppc__)
14098 #define __NR_epoll_create 236
14099 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14100 #define __NR_epoll_create 224
14101 #elif defined(__alpha__)
14102 #define __NR_epoll_create 407
14103 #elif defined(__sh64__)
14104 #define __NR_epoll_create 282
14105 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14106 #define __NR_epoll_create 254
14107 #else
14108 #error No system call numbers defined for epoll family.
14109 #endif
14110 #endif
14111 _syscall1(int, epoll_create, int, size)
14112 #endif
14113
14114 int
14115 main ()
14116 {
14117 return epoll_create(256) == -1 ? 1 : 0
14118 ;
14119 return 0;
14120 }
14121 _ACEOF
14122 if ac_fn_c_try_run "$LINENO"; then :
14123 is_epoll_mechanism_available="yes"
14124 else
14125 is_epoll_mechanism_available="no"
14126 fi
14127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14128 conftest.$ac_objext conftest.beam conftest.$ac_ext
14129 fi
14130
14131 iopoll_mechanism_devpoll=3
14132
14133 cat >>confdefs.h <<_ACEOF
14134 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14135 _ACEOF
14136
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 #include <devpoll.h>
14140 int
14141 main ()
14142 {
14143
14144 ;
14145 return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14149 is_devpoll_mechanism_available="yes"
14150 else
14151 is_devpoll_mechanism_available="no"
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 if test "$is_devpoll_mechanism_available" = "yes" ; then
14155
14156 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14157
14158 fi
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <sys/devpoll.h>
14162 int
14163 main ()
14164 {
14165
14166 ;
14167 return 0;
14168 }
14169 _ACEOF
14170 if ac_fn_c_try_compile "$LINENO"; then :
14171 is_devpoll_mechanism_available="yes"
14172 else
14173 is_devpoll_mechanism_available="no"
14174 fi
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 if test "$is_devpoll_mechanism_available" = "yes" ; then
14177
14178 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14179
14180 fi
14181 iopoll_mechanism_rtsigio=4
14182
14183 cat >>confdefs.h <<_ACEOF
14184 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14185 _ACEOF
14186
14187 if test "$cross_compiling" = yes; then :
14188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14190 as_fn_error $? "cannot run test program while cross compiling
14191 See \`config.log' for more details" "$LINENO" 5; }
14192 else
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195
14196 #define _GNU_SOURCE
14197 #include <fcntl.h>
14198 static unsigned int have_f_setsig = 0;
14199
14200 int
14201 main ()
14202 {
14203
14204 #ifdef F_SETSIG
14205 have_f_setsig = 1;
14206 #endif
14207 return have_f_setsig == 0;
14208
14209 ;
14210 return 0;
14211 }
14212 _ACEOF
14213 if ac_fn_c_try_run "$LINENO"; then :
14214 is_rtsigio_mechanism_available="yes"
14215 else
14216 is_rtsigio_mechanism_available="no"
14217 fi
14218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14219 conftest.$ac_objext conftest.beam conftest.$ac_ext
14220 fi
14221
14222 iopoll_mechanism_poll=5
14223
14224 cat >>confdefs.h <<_ACEOF
14225 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14226 _ACEOF
14227
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14230 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14232 #define poll innocuous_poll
14233
14234 /* System header to define __stub macros and hopefully few prototypes,
14235 which can conflict with char poll (); below.
14236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14237 <limits.h> exists even on freestanding compilers. */
14238
14239 #ifdef __STDC__
14240 # include <limits.h>
14241 #else
14242 # include <assert.h>
14243 #endif
14244
14245 #undef poll
14246
14247 /* Override any GCC internal prototype to avoid an error.
14248 Use char because int might match the return type of a GCC
14249 builtin and then its argument prototype would still apply. */
14250 #ifdef __cplusplus
14251 extern "C"
14252 #endif
14253 char poll ();
14254 /* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257 #if defined __stub_poll || defined __stub___poll
14258 choke me
14259 #endif
14260
14261 int
14262 main ()
14263 {
14264 return poll ();
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_link "$LINENO"; then :
14270 is_poll_mechanism_available="yes"
14271 else
14272 is_poll_mechanism_available="no"
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 iopoll_mechanism_select=6
14277
14278 cat >>confdefs.h <<_ACEOF
14279 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14280 _ACEOF
14281
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 /* Define select to an innocuous variant, in case <limits.h> declares select.
14285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14286 #define select innocuous_select
14287
14288 /* System header to define __stub macros and hopefully few prototypes,
14289 which can conflict with char select (); below.
14290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14291 <limits.h> exists even on freestanding compilers. */
14292
14293 #ifdef __STDC__
14294 # include <limits.h>
14295 #else
14296 # include <assert.h>
14297 #endif
14298
14299 #undef select
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char select ();
14308 /* The GNU C library defines this for functions which it implements
14309 to always fail with ENOSYS. Some functions are actually named
14310 something starting with __ and the normal name is an alias. */
14311 #if defined __stub_select || defined __stub___select
14312 choke me
14313 #endif
14314
14315 int
14316 main ()
14317 {
14318 return select ();
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324 is_select_mechanism_available="yes"
14325 else
14326 is_select_mechanism_available="no"
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 optimal_iopoll_mechanism="none"
14331 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14332 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14333 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14334 optimal_iopoll_mechanism="$mechanism"
14335 break
14336 fi
14337 done
14338 if test "$desired_iopoll_mechanism" = "none" ; then
14339 if test "$optimal_iopoll_mechanism" = "none" ; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14341 $as_echo "none" >&6; }
14342 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14343 else
14344 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14346 $as_echo "$selected_iopoll_mechanism" >&6; }
14347 fi
14348 else
14349 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14350 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14351 selected_iopoll_mechanism=$desired_iopoll_mechanism
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14353 $as_echo "$selected_iopoll_mechanism" >&6; }
14354 else
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14356 $as_echo "none" >&6; }
14357 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14358 fi
14359 fi
14360 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14361
14362 cat >>confdefs.h <<_ACEOF
14363 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14364 _ACEOF
14365
14366
14367
14368
14369 # Check whether --with-nicklen was given.
14370 if test "${with_nicklen+set}" = set; then :
14371 withval=$with_nicklen; nicklen="$withval"
14372 else
14373 nicklen="9"
14374 fi
14375
14376
14377 cat >>confdefs.h <<_ACEOF
14378 #define NICKLEN ($nicklen)
14379 _ACEOF
14380
14381
14382
14383
14384 # Check whether --with-topiclen was given.
14385 if test "${with_topiclen+set}" = set; then :
14386 withval=$with_topiclen; topiclen="$withval"
14387 else
14388 topiclen="160"
14389 fi
14390
14391
14392 cat >>confdefs.h <<_ACEOF
14393 #define TOPICLEN ($topiclen)
14394 _ACEOF
14395
14396
14397
14398 # Check whether --enable-halfops was given.
14399 if test "${enable_halfops+set}" = set; then :
14400 enableval=$enable_halfops; halfops="$enableval"
14401 else
14402 halfops="no"
14403 fi
14404
14405 if test "$halfops" = "yes" ; then
14406
14407 $as_echo "#define HALFOPS 1" >>confdefs.h
14408
14409 fi
14410
14411
14412 # Check whether --enable-debugging was given.
14413 if test "${enable_debugging+set}" = set; then :
14414 enableval=$enable_debugging; debugging="$enableval"
14415 else
14416 debugging="no"
14417 fi
14418
14419 if test "$debugging" = "yes" ; then
14420
14421 $as_echo "#define DEBUG 1" >>confdefs.h
14422
14423 CFLAGS="-Wall -g -O0"
14424 else
14425
14426 $as_echo "#define NDEBUG 1" >>confdefs.h
14427
14428 fi
14429
14430
14431 # Check whether --enable-warnings was given.
14432 if test "${enable_warnings+set}" = set; then :
14433 enableval=$enable_warnings; warnings="$enableval"
14434 else
14435 warnings="no"
14436 fi
14437
14438 if test "$warnings" = "yes" ; then
14439 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14440 fi
14441
14442
14443
14444 prefix_NONE=
14445 exec_prefix_NONE=
14446 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14447 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14448 eval ac_define_dir="\"$prefix\""
14449 eval ac_define_dir="\"$ac_define_dir\""
14450 PREFIX="$ac_define_dir"
14451
14452
14453 cat >>confdefs.h <<_ACEOF
14454 #define PREFIX "$ac_define_dir"
14455 _ACEOF
14456
14457 test "$prefix_NONE" && prefix=NONE
14458 test "$exec_prefix_NONE" && exec_prefix=NONE
14459
14460
14461 prefix_NONE=
14462 exec_prefix_NONE=
14463 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14464 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14465 eval ac_define_dir="\"$sysconfdir\""
14466 eval ac_define_dir="\"$ac_define_dir\""
14467 SYSCONFDIR="$ac_define_dir"
14468
14469
14470 cat >>confdefs.h <<_ACEOF
14471 #define SYSCONFDIR "$ac_define_dir"
14472 _ACEOF
14473
14474 test "$prefix_NONE" && prefix=NONE
14475 test "$exec_prefix_NONE" && exec_prefix=NONE
14476
14477
14478 prefix_NONE=
14479 exec_prefix_NONE=
14480 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14481 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14482 eval ac_define_dir="\"$libdir\""
14483 eval ac_define_dir="\"$ac_define_dir\""
14484 LIBDIR="$ac_define_dir"
14485
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define LIBDIR "$ac_define_dir"
14489 _ACEOF
14490
14491 test "$prefix_NONE" && prefix=NONE
14492 test "$exec_prefix_NONE" && exec_prefix=NONE
14493
14494
14495 prefix_NONE=
14496 exec_prefix_NONE=
14497 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14498 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14499 eval ac_define_dir="\"$datadir\""
14500 eval ac_define_dir="\"$ac_define_dir\""
14501 DATADIR="$ac_define_dir"
14502
14503
14504 cat >>confdefs.h <<_ACEOF
14505 #define DATADIR "$ac_define_dir"
14506 _ACEOF
14507
14508 test "$prefix_NONE" && prefix=NONE
14509 test "$exec_prefix_NONE" && exec_prefix=NONE
14510
14511
14512 prefix_NONE=
14513 exec_prefix_NONE=
14514 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14515 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14516 eval ac_define_dir="\"$localstatedir\""
14517 eval ac_define_dir="\"$ac_define_dir\""
14518 LOCALSTATEDIR="$ac_define_dir"
14519
14520
14521 cat >>confdefs.h <<_ACEOF
14522 #define LOCALSTATEDIR "$ac_define_dir"
14523 _ACEOF
14524
14525 test "$prefix_NONE" && prefix=NONE
14526 test "$exec_prefix_NONE" && exec_prefix=NONE
14527
14528
14529 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14530
14531
14532 cat >confcache <<\_ACEOF
14533 # This file is a shell script that caches the results of configure
14534 # tests run on this system so they can be shared between configure
14535 # scripts and configure runs, see configure's option --config-cache.
14536 # It is not useful on other systems. If it contains results you don't
14537 # want to keep, you may remove or edit it.
14538 #
14539 # config.status only pays attention to the cache file if you give it
14540 # the --recheck option to rerun configure.
14541 #
14542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14544 # following values.
14545
14546 _ACEOF
14547
14548 # The following way of writing the cache mishandles newlines in values,
14549 # but we know of no workaround that is simple, portable, and efficient.
14550 # So, we kill variables containing newlines.
14551 # Ultrix sh set writes to stderr and can't be redirected directly,
14552 # and sets the high bit in the cache file unless we assign to the vars.
14553 (
14554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14555 eval ac_val=\$$ac_var
14556 case $ac_val in #(
14557 *${as_nl}*)
14558 case $ac_var in #(
14559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14561 esac
14562 case $ac_var in #(
14563 _ | IFS | as_nl) ;; #(
14564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14565 *) { eval $ac_var=; unset $ac_var;} ;;
14566 esac ;;
14567 esac
14568 done
14569
14570 (set) 2>&1 |
14571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14572 *${as_nl}ac_space=\ *)
14573 # `set' does not quote correctly, so add quotes: double-quote
14574 # substitution turns \\\\ into \\, and sed turns \\ into \.
14575 sed -n \
14576 "s/'/'\\\\''/g;
14577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14578 ;; #(
14579 *)
14580 # `set' quotes correctly as required by POSIX, so do not add quotes.
14581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14582 ;;
14583 esac |
14584 sort
14585 ) |
14586 sed '
14587 /^ac_cv_env_/b end
14588 t clear
14589 :clear
14590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14591 t end
14592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14593 :end' >>confcache
14594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14595 if test -w "$cache_file"; then
14596 if test "x$cache_file" != "x/dev/null"; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14598 $as_echo "$as_me: updating cache $cache_file" >&6;}
14599 if test ! -f "$cache_file" || test -h "$cache_file"; then
14600 cat confcache >"$cache_file"
14601 else
14602 case $cache_file in #(
14603 */* | ?:*)
14604 mv -f confcache "$cache_file"$$ &&
14605 mv -f "$cache_file"$$ "$cache_file" ;; #(
14606 *)
14607 mv -f confcache "$cache_file" ;;
14608 esac
14609 fi
14610 fi
14611 else
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14613 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14614 fi
14615 fi
14616 rm -f confcache
14617
14618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14619 # Let make expand exec_prefix.
14620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14621
14622 DEFS=-DHAVE_CONFIG_H
14623
14624 ac_libobjs=
14625 ac_ltlibobjs=
14626 U=
14627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14628 # 1. Remove the extension, and $U if already installed.
14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14632 # will be set to the directory where LIBOBJS objects are built.
14633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14634 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14635 done
14636 LIBOBJS=$ac_libobjs
14637
14638 LTLIBOBJS=$ac_ltlibobjs
14639
14640
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14642 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14643 if test -n "$am_sleep_pid"; then
14644 # Hide warnings about reused PIDs.
14645 wait $am_sleep_pid 2>/dev/null
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14648 $as_echo "done" >&6; }
14649 if test -n "$EXEEXT"; then
14650 am__EXEEXT_TRUE=
14651 am__EXEEXT_FALSE='#'
14652 else
14653 am__EXEEXT_TRUE='#'
14654 am__EXEEXT_FALSE=
14655 fi
14656
14657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14658 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14660 fi
14661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14662 as_fn_error $? "conditional \"AMDEP\" was never defined.
14663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14664 fi
14665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668 fi
14669 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14670 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14672 fi
14673 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14674 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14676 fi
14677 LT_CONFIG_H=config.h
14678
14679 _ltdl_libobjs=
14680 _ltdl_ltlibobjs=
14681 if test -n "$_LT_LIBOBJS"; then
14682 # Remove the extension.
14683 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14684 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14685 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14686 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14687 done
14688 fi
14689 ltdl_LIBOBJS=$_ltdl_libobjs
14690
14691 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14692
14693
14694
14695 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14696 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698 fi
14699
14700 : "${CONFIG_STATUS=./config.status}"
14701 ac_write_fail=0
14702 ac_clean_files_save=$ac_clean_files
14703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14706 as_write_fail=0
14707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14708 #! $SHELL
14709 # Generated by $as_me.
14710 # Run this file to recreate the current configuration.
14711 # Compiler output produced by configure, useful for debugging
14712 # configure, is in config.log if it exists.
14713
14714 debug=false
14715 ac_cs_recheck=false
14716 ac_cs_silent=false
14717
14718 SHELL=\${CONFIG_SHELL-$SHELL}
14719 export SHELL
14720 _ASEOF
14721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14722 ## -------------------- ##
14723 ## M4sh Initialization. ##
14724 ## -------------------- ##
14725
14726 # Be more Bourne compatible
14727 DUALCASE=1; export DUALCASE # for MKS sh
14728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14729 emulate sh
14730 NULLCMD=:
14731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14732 # is contrary to our usage. Disable this feature.
14733 alias -g '${1+"$@"}'='"$@"'
14734 setopt NO_GLOB_SUBST
14735 else
14736 case `(set -o) 2>/dev/null` in #(
14737 *posix*) :
14738 set -o posix ;; #(
14739 *) :
14740 ;;
14741 esac
14742 fi
14743
14744
14745 as_nl='
14746 '
14747 export as_nl
14748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14752 # Prefer a ksh shell builtin over an external printf program on Solaris,
14753 # but without wasting forks for bash or zsh.
14754 if test -z "$BASH_VERSION$ZSH_VERSION" \
14755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14756 as_echo='print -r --'
14757 as_echo_n='print -rn --'
14758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14759 as_echo='printf %s\n'
14760 as_echo_n='printf %s'
14761 else
14762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14764 as_echo_n='/usr/ucb/echo -n'
14765 else
14766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14767 as_echo_n_body='eval
14768 arg=$1;
14769 case $arg in #(
14770 *"$as_nl"*)
14771 expr "X$arg" : "X\\(.*\\)$as_nl";
14772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14773 esac;
14774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14775 '
14776 export as_echo_n_body
14777 as_echo_n='sh -c $as_echo_n_body as_echo'
14778 fi
14779 export as_echo_body
14780 as_echo='sh -c $as_echo_body as_echo'
14781 fi
14782
14783 # The user is always right.
14784 if test "${PATH_SEPARATOR+set}" != set; then
14785 PATH_SEPARATOR=:
14786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14788 PATH_SEPARATOR=';'
14789 }
14790 fi
14791
14792
14793 # IFS
14794 # We need space, tab and new line, in precisely that order. Quoting is
14795 # there to prevent editors from complaining about space-tab.
14796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14797 # splitting by setting IFS to empty value.)
14798 IFS=" "" $as_nl"
14799
14800 # Find who we are. Look in the path if we contain no directory separator.
14801 as_myself=
14802 case $0 in #((
14803 *[\\/]* ) as_myself=$0 ;;
14804 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807 IFS=$as_save_IFS
14808 test -z "$as_dir" && as_dir=.
14809 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14810 done
14811 IFS=$as_save_IFS
14812
14813 ;;
14814 esac
14815 # We did not find ourselves, most probably we were run as `sh COMMAND'
14816 # in which case we are not to be found in the path.
14817 if test "x$as_myself" = x; then
14818 as_myself=$0
14819 fi
14820 if test ! -f "$as_myself"; then
14821 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14822 exit 1
14823 fi
14824
14825 # Unset variables that we do not need and which cause bugs (e.g. in
14826 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14827 # suppresses any "Segmentation fault" message there. '((' could
14828 # trigger a bug in pdksh 5.2.14.
14829 for as_var in BASH_ENV ENV MAIL MAILPATH
14830 do eval test x\${$as_var+set} = xset \
14831 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14832 done
14833 PS1='$ '
14834 PS2='> '
14835 PS4='+ '
14836
14837 # NLS nuisances.
14838 LC_ALL=C
14839 export LC_ALL
14840 LANGUAGE=C
14841 export LANGUAGE
14842
14843 # CDPATH.
14844 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14845
14846
14847 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14848 # ----------------------------------------
14849 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14850 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14851 # script with STATUS, using 1 if that was 0.
14852 as_fn_error ()
14853 {
14854 as_status=$1; test $as_status -eq 0 && as_status=1
14855 if test "$4"; then
14856 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14857 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14858 fi
14859 $as_echo "$as_me: error: $2" >&2
14860 as_fn_exit $as_status
14861 } # as_fn_error
14862
14863
14864 # as_fn_set_status STATUS
14865 # -----------------------
14866 # Set $? to STATUS, without forking.
14867 as_fn_set_status ()
14868 {
14869 return $1
14870 } # as_fn_set_status
14871
14872 # as_fn_exit STATUS
14873 # -----------------
14874 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14875 as_fn_exit ()
14876 {
14877 set +e
14878 as_fn_set_status $1
14879 exit $1
14880 } # as_fn_exit
14881
14882 # as_fn_unset VAR
14883 # ---------------
14884 # Portably unset VAR.
14885 as_fn_unset ()
14886 {
14887 { eval $1=; unset $1;}
14888 }
14889 as_unset=as_fn_unset
14890 # as_fn_append VAR VALUE
14891 # ----------------------
14892 # Append the text in VALUE to the end of the definition contained in VAR. Take
14893 # advantage of any shell optimizations that allow amortized linear growth over
14894 # repeated appends, instead of the typical quadratic growth present in naive
14895 # implementations.
14896 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14897 eval 'as_fn_append ()
14898 {
14899 eval $1+=\$2
14900 }'
14901 else
14902 as_fn_append ()
14903 {
14904 eval $1=\$$1\$2
14905 }
14906 fi # as_fn_append
14907
14908 # as_fn_arith ARG...
14909 # ------------------
14910 # Perform arithmetic evaluation on the ARGs, and store the result in the
14911 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14912 # must be portable across $(()) and expr.
14913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14914 eval 'as_fn_arith ()
14915 {
14916 as_val=$(( $* ))
14917 }'
14918 else
14919 as_fn_arith ()
14920 {
14921 as_val=`expr "$@" || test $? -eq 1`
14922 }
14923 fi # as_fn_arith
14924
14925
14926 if expr a : '\(a\)' >/dev/null 2>&1 &&
14927 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14928 as_expr=expr
14929 else
14930 as_expr=false
14931 fi
14932
14933 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14934 as_basename=basename
14935 else
14936 as_basename=false
14937 fi
14938
14939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14940 as_dirname=dirname
14941 else
14942 as_dirname=false
14943 fi
14944
14945 as_me=`$as_basename -- "$0" ||
14946 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14947 X"$0" : 'X\(//\)$' \| \
14948 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14949 $as_echo X/"$0" |
14950 sed '/^.*\/\([^/][^/]*\)\/*$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\/\(\/\/\)$/{
14955 s//\1/
14956 q
14957 }
14958 /^X\/\(\/\).*/{
14959 s//\1/
14960 q
14961 }
14962 s/.*/./; q'`
14963
14964 # Avoid depending upon Character Ranges.
14965 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14966 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14967 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14968 as_cr_digits='0123456789'
14969 as_cr_alnum=$as_cr_Letters$as_cr_digits
14970
14971 ECHO_C= ECHO_N= ECHO_T=
14972 case `echo -n x` in #(((((
14973 -n*)
14974 case `echo 'xy\c'` in
14975 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14976 xy) ECHO_C='\c';;
14977 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14978 ECHO_T=' ';;
14979 esac;;
14980 *)
14981 ECHO_N='-n';;
14982 esac
14983
14984 rm -f conf$$ conf$$.exe conf$$.file
14985 if test -d conf$$.dir; then
14986 rm -f conf$$.dir/conf$$.file
14987 else
14988 rm -f conf$$.dir
14989 mkdir conf$$.dir 2>/dev/null
14990 fi
14991 if (echo >conf$$.file) 2>/dev/null; then
14992 if ln -s conf$$.file conf$$ 2>/dev/null; then
14993 as_ln_s='ln -s'
14994 # ... but there are two gotchas:
14995 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14996 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14997 # In both cases, we have to default to `cp -pR'.
14998 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14999 as_ln_s='cp -pR'
15000 elif ln conf$$.file conf$$ 2>/dev/null; then
15001 as_ln_s=ln
15002 else
15003 as_ln_s='cp -pR'
15004 fi
15005 else
15006 as_ln_s='cp -pR'
15007 fi
15008 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15009 rmdir conf$$.dir 2>/dev/null
15010
15011
15012 # as_fn_mkdir_p
15013 # -------------
15014 # Create "$as_dir" as a directory, including parents if necessary.
15015 as_fn_mkdir_p ()
15016 {
15017
15018 case $as_dir in #(
15019 -*) as_dir=./$as_dir;;
15020 esac
15021 test -d "$as_dir" || eval $as_mkdir_p || {
15022 as_dirs=
15023 while :; do
15024 case $as_dir in #(
15025 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15026 *) as_qdir=$as_dir;;
15027 esac
15028 as_dirs="'$as_qdir' $as_dirs"
15029 as_dir=`$as_dirname -- "$as_dir" ||
15030 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15031 X"$as_dir" : 'X\(//\)[^/]' \| \
15032 X"$as_dir" : 'X\(//\)$' \| \
15033 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15034 $as_echo X"$as_dir" |
15035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15036 s//\1/
15037 q
15038 }
15039 /^X\(\/\/\)[^/].*/{
15040 s//\1/
15041 q
15042 }
15043 /^X\(\/\/\)$/{
15044 s//\1/
15045 q
15046 }
15047 /^X\(\/\).*/{
15048 s//\1/
15049 q
15050 }
15051 s/.*/./; q'`
15052 test -d "$as_dir" && break
15053 done
15054 test -z "$as_dirs" || eval "mkdir $as_dirs"
15055 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15056
15057
15058 } # as_fn_mkdir_p
15059 if mkdir -p . 2>/dev/null; then
15060 as_mkdir_p='mkdir -p "$as_dir"'
15061 else
15062 test -d ./-p && rmdir ./-p
15063 as_mkdir_p=false
15064 fi
15065
15066
15067 # as_fn_executable_p FILE
15068 # -----------------------
15069 # Test if FILE is an executable regular file.
15070 as_fn_executable_p ()
15071 {
15072 test -f "$1" && test -x "$1"
15073 } # as_fn_executable_p
15074 as_test_x='test -x'
15075 as_executable_p=as_fn_executable_p
15076
15077 # Sed expression to map a string onto a valid CPP name.
15078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15079
15080 # Sed expression to map a string onto a valid variable name.
15081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15082
15083
15084 exec 6>&1
15085 ## ----------------------------------- ##
15086 ## Main body of $CONFIG_STATUS script. ##
15087 ## ----------------------------------- ##
15088 _ASEOF
15089 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15090
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # Save the log message, to keep $0 and so on meaningful, and to
15093 # report actual input values of CONFIG_FILES etc. instead of their
15094 # values after options handling.
15095 ac_log="
15096 This file was extended by ircd-hybrid $as_me 8beta2, which was
15097 generated by GNU Autoconf 2.69. Invocation command line was
15098
15099 CONFIG_FILES = $CONFIG_FILES
15100 CONFIG_HEADERS = $CONFIG_HEADERS
15101 CONFIG_LINKS = $CONFIG_LINKS
15102 CONFIG_COMMANDS = $CONFIG_COMMANDS
15103 $ $0 $@
15104
15105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15106 "
15107
15108 _ACEOF
15109
15110 case $ac_config_files in *"
15111 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15112 esac
15113
15114 case $ac_config_headers in *"
15115 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15116 esac
15117
15118
15119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120 # Files that config.status was made for.
15121 config_files="$ac_config_files"
15122 config_headers="$ac_config_headers"
15123 config_commands="$ac_config_commands"
15124
15125 _ACEOF
15126
15127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128 ac_cs_usage="\
15129 \`$as_me' instantiates files and other configuration actions
15130 from templates according to the current configuration. Unless the files
15131 and actions are specified as TAGs, all are instantiated by default.
15132
15133 Usage: $0 [OPTION]... [TAG]...
15134
15135 -h, --help print this help, then exit
15136 -V, --version print version number and configuration settings, then exit
15137 --config print configuration, then exit
15138 -q, --quiet, --silent
15139 do not print progress messages
15140 -d, --debug don't remove temporary files
15141 --recheck update $as_me by reconfiguring in the same conditions
15142 --file=FILE[:TEMPLATE]
15143 instantiate the configuration file FILE
15144 --header=FILE[:TEMPLATE]
15145 instantiate the configuration header FILE
15146
15147 Configuration files:
15148 $config_files
15149
15150 Configuration headers:
15151 $config_headers
15152
15153 Configuration commands:
15154 $config_commands
15155
15156 Report bugs to <bugs@ircd-hybrid.org>."
15157
15158 _ACEOF
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15161 ac_cs_version="\\
15162 ircd-hybrid config.status 8beta2
15163 configured by $0, generated by GNU Autoconf 2.69,
15164 with options \\"\$ac_cs_config\\"
15165
15166 Copyright (C) 2012 Free Software Foundation, Inc.
15167 This config.status script is free software; the Free Software Foundation
15168 gives unlimited permission to copy, distribute and modify it."
15169
15170 ac_pwd='$ac_pwd'
15171 srcdir='$srcdir'
15172 INSTALL='$INSTALL'
15173 MKDIR_P='$MKDIR_P'
15174 AWK='$AWK'
15175 test -n "\$AWK" || AWK=awk
15176 _ACEOF
15177
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 # The default lists apply if the user does not specify any file.
15180 ac_need_defaults=:
15181 while test $# != 0
15182 do
15183 case $1 in
15184 --*=?*)
15185 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15186 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15187 ac_shift=:
15188 ;;
15189 --*=)
15190 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15191 ac_optarg=
15192 ac_shift=:
15193 ;;
15194 *)
15195 ac_option=$1
15196 ac_optarg=$2
15197 ac_shift=shift
15198 ;;
15199 esac
15200
15201 case $ac_option in
15202 # Handling of the options.
15203 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15204 ac_cs_recheck=: ;;
15205 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15206 $as_echo "$ac_cs_version"; exit ;;
15207 --config | --confi | --conf | --con | --co | --c )
15208 $as_echo "$ac_cs_config"; exit ;;
15209 --debug | --debu | --deb | --de | --d | -d )
15210 debug=: ;;
15211 --file | --fil | --fi | --f )
15212 $ac_shift
15213 case $ac_optarg in
15214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15215 '') as_fn_error $? "missing file argument" ;;
15216 esac
15217 as_fn_append CONFIG_FILES " '$ac_optarg'"
15218 ac_need_defaults=false;;
15219 --header | --heade | --head | --hea )
15220 $ac_shift
15221 case $ac_optarg in
15222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15223 esac
15224 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15225 ac_need_defaults=false;;
15226 --he | --h)
15227 # Conflict between --help and --header
15228 as_fn_error $? "ambiguous option: \`$1'
15229 Try \`$0 --help' for more information.";;
15230 --help | --hel | -h )
15231 $as_echo "$ac_cs_usage"; exit ;;
15232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15233 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15234 ac_cs_silent=: ;;
15235
15236 # This is an error.
15237 -*) as_fn_error $? "unrecognized option: \`$1'
15238 Try \`$0 --help' for more information." ;;
15239
15240 *) as_fn_append ac_config_targets " $1"
15241 ac_need_defaults=false ;;
15242
15243 esac
15244 shift
15245 done
15246
15247 ac_configure_extra_args=
15248
15249 if $ac_cs_silent; then
15250 exec 6>/dev/null
15251 ac_configure_extra_args="$ac_configure_extra_args --silent"
15252 fi
15253
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 if \$ac_cs_recheck; then
15257 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15258 shift
15259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15260 CONFIG_SHELL='$SHELL'
15261 export CONFIG_SHELL
15262 exec "\$@"
15263 fi
15264
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 exec 5>>config.log
15268 {
15269 echo
15270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15271 ## Running $as_me. ##
15272 _ASBOX
15273 $as_echo "$ac_log"
15274 } >&5
15275
15276 _ACEOF
15277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15278 #
15279 # INIT-COMMANDS
15280 #
15281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15282
15283
15284 # The HP-UX ksh and POSIX shell print the target directory to stdout
15285 # if CDPATH is set.
15286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15287
15288 sed_quote_subst='$sed_quote_subst'
15289 double_quote_subst='$double_quote_subst'
15290 delay_variable_subst='$delay_variable_subst'
15291 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15292 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15293 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15296 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15297 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15298 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15299 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15321 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15322 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15323 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15324 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15325 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15326 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15327 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15328 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15329 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15330 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15331 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15332 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15333 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15334 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15335 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15336 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15337 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15338 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15339 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15340 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15341 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15342 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15343 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15344 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15345 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15346 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15347 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"`'
15348 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15349 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15350 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15351 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15352 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15353 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15354 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15355 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15356 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15357 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15358 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15359 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15360 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15361 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15362 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15363 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15364 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15365 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15366 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15367 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15368 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15369 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15370 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15371 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15372 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15373 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15374 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15375 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15376 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15377 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15378 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15379 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15380 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15381 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15382 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15383 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15384 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15385 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15386 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15387 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15388 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15389 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15390 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15391 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15392 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15393 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15394 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15395 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15396 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15397 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15398 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15399 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15400 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15401 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15402 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15403 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15404 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15405 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15406 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15407 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15408 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15409 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15410 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15411 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15412 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15413 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15414 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15415 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15416 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15417 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15418 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15419 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15420 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15421
15422 LTCC='$LTCC'
15423 LTCFLAGS='$LTCFLAGS'
15424 compiler='$compiler_DEFAULT'
15425
15426 # A function that is used when there is no print builtin or printf.
15427 func_fallback_echo ()
15428 {
15429 eval 'cat <<_LTECHO_EOF
15430 \$1
15431 _LTECHO_EOF'
15432 }
15433
15434 # Quote evaled strings.
15435 for var in SHELL \
15436 ECHO \
15437 PATH_SEPARATOR \
15438 SED \
15439 GREP \
15440 EGREP \
15441 FGREP \
15442 LD \
15443 NM \
15444 LN_S \
15445 lt_SP2NL \
15446 lt_NL2SP \
15447 reload_flag \
15448 OBJDUMP \
15449 deplibs_check_method \
15450 file_magic_cmd \
15451 file_magic_glob \
15452 want_nocaseglob \
15453 DLLTOOL \
15454 sharedlib_from_linklib_cmd \
15455 AR \
15456 AR_FLAGS \
15457 archiver_list_spec \
15458 STRIP \
15459 RANLIB \
15460 CC \
15461 CFLAGS \
15462 compiler \
15463 lt_cv_sys_global_symbol_pipe \
15464 lt_cv_sys_global_symbol_to_cdecl \
15465 lt_cv_sys_global_symbol_to_c_name_address \
15466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15467 nm_file_list_spec \
15468 lt_prog_compiler_no_builtin_flag \
15469 lt_prog_compiler_pic \
15470 lt_prog_compiler_wl \
15471 lt_prog_compiler_static \
15472 lt_cv_prog_compiler_c_o \
15473 need_locks \
15474 MANIFEST_TOOL \
15475 DSYMUTIL \
15476 NMEDIT \
15477 LIPO \
15478 OTOOL \
15479 OTOOL64 \
15480 shrext_cmds \
15481 export_dynamic_flag_spec \
15482 whole_archive_flag_spec \
15483 compiler_needs_object \
15484 with_gnu_ld \
15485 allow_undefined_flag \
15486 no_undefined_flag \
15487 hardcode_libdir_flag_spec \
15488 hardcode_libdir_separator \
15489 exclude_expsyms \
15490 include_expsyms \
15491 file_list_spec \
15492 variables_saved_for_relink \
15493 libname_spec \
15494 library_names_spec \
15495 soname_spec \
15496 install_override_mode \
15497 finish_eval \
15498 old_striplib \
15499 striplib; do
15500 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15501 *[\\\\\\\`\\"\\\$]*)
15502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15503 ;;
15504 *)
15505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15506 ;;
15507 esac
15508 done
15509
15510 # Double-quote double-evaled strings.
15511 for var in reload_cmds \
15512 old_postinstall_cmds \
15513 old_postuninstall_cmds \
15514 old_archive_cmds \
15515 extract_expsyms_cmds \
15516 old_archive_from_new_cmds \
15517 old_archive_from_expsyms_cmds \
15518 archive_cmds \
15519 archive_expsym_cmds \
15520 module_cmds \
15521 module_expsym_cmds \
15522 export_symbols_cmds \
15523 prelink_cmds \
15524 postlink_cmds \
15525 postinstall_cmds \
15526 postuninstall_cmds \
15527 finish_cmds \
15528 sys_lib_search_path_spec \
15529 sys_lib_dlsearch_path_spec; do
15530 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15531 *[\\\\\\\`\\"\\\$]*)
15532 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15533 ;;
15534 *)
15535 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15536 ;;
15537 esac
15538 done
15539
15540 ac_aux_dir='$ac_aux_dir'
15541 xsi_shell='$xsi_shell'
15542 lt_shell_append='$lt_shell_append'
15543
15544 # See if we are running on zsh, and set the options which allow our
15545 # commands through without removal of \ escapes INIT.
15546 if test -n "\${ZSH_VERSION+set}" ; then
15547 setopt NO_GLOB_SUBST
15548 fi
15549
15550
15551 PACKAGE='$PACKAGE'
15552 VERSION='$VERSION'
15553 TIMESTAMP='$TIMESTAMP'
15554 RM='$RM'
15555 ofile='$ofile'
15556
15557
15558
15559
15560 _ACEOF
15561
15562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15563
15564 # Handling of arguments.
15565 for ac_config_target in $ac_config_targets
15566 do
15567 case $ac_config_target in
15568 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15569 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15570 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15571 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15572 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15573 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15574 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15575 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15576 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15577 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15578 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15579 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15580 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15581 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15582 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15583 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15584
15585 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15586 esac
15587 done
15588
15589
15590 # If the user did not use the arguments to specify the items to instantiate,
15591 # then the envvar interface is used. Set only those that are not.
15592 # We use the long form for the default assignment because of an extremely
15593 # bizarre bug on SunOS 4.1.3.
15594 if $ac_need_defaults; then
15595 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15596 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15598 fi
15599
15600 # Have a temporary directory for convenience. Make it in the build tree
15601 # simply because there is no reason against having it here, and in addition,
15602 # creating and moving files from /tmp can sometimes cause problems.
15603 # Hook for its removal unless debugging.
15604 # Note that there is a small window in which the directory will not be cleaned:
15605 # after its creation but before its name has been assigned to `$tmp'.
15606 $debug ||
15607 {
15608 tmp= ac_tmp=
15609 trap 'exit_status=$?
15610 : "${ac_tmp:=$tmp}"
15611 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15612 ' 0
15613 trap 'as_fn_exit 1' 1 2 13 15
15614 }
15615 # Create a (secure) tmp directory for tmp files.
15616
15617 {
15618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15619 test -d "$tmp"
15620 } ||
15621 {
15622 tmp=./conf$$-$RANDOM
15623 (umask 077 && mkdir "$tmp")
15624 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15625 ac_tmp=$tmp
15626
15627 # Set up the scripts for CONFIG_FILES section.
15628 # No need to generate them if there are no CONFIG_FILES.
15629 # This happens for instance with `./config.status config.h'.
15630 if test -n "$CONFIG_FILES"; then
15631
15632
15633 ac_cr=`echo X | tr X '\015'`
15634 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15635 # But we know of no other shell where ac_cr would be empty at this
15636 # point, so we can use a bashism as a fallback.
15637 if test "x$ac_cr" = x; then
15638 eval ac_cr=\$\'\\r\'
15639 fi
15640 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15641 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15642 ac_cs_awk_cr='\\r'
15643 else
15644 ac_cs_awk_cr=$ac_cr
15645 fi
15646
15647 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15648 _ACEOF
15649
15650
15651 {
15652 echo "cat >conf$$subs.awk <<_ACEOF" &&
15653 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15654 echo "_ACEOF"
15655 } >conf$$subs.sh ||
15656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15657 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15658 ac_delim='%!_!# '
15659 for ac_last_try in false false false false false :; do
15660 . ./conf$$subs.sh ||
15661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15662
15663 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15664 if test $ac_delim_n = $ac_delim_num; then
15665 break
15666 elif $ac_last_try; then
15667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15668 else
15669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15670 fi
15671 done
15672 rm -f conf$$subs.sh
15673
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15676 _ACEOF
15677 sed -n '
15678 h
15679 s/^/S["/; s/!.*/"]=/
15680 p
15681 g
15682 s/^[^!]*!//
15683 :repl
15684 t repl
15685 s/'"$ac_delim"'$//
15686 t delim
15687 :nl
15688 h
15689 s/\(.\{148\}\)..*/\1/
15690 t more1
15691 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15692 p
15693 n
15694 b repl
15695 :more1
15696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15697 p
15698 g
15699 s/.\{148\}//
15700 t nl
15701 :delim
15702 h
15703 s/\(.\{148\}\)..*/\1/
15704 t more2
15705 s/["\\]/\\&/g; s/^/"/; s/$/"/
15706 p
15707 b
15708 :more2
15709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15710 p
15711 g
15712 s/.\{148\}//
15713 t delim
15714 ' <conf$$subs.awk | sed '
15715 /^[^""]/{
15716 N
15717 s/\n//
15718 }
15719 ' >>$CONFIG_STATUS || ac_write_fail=1
15720 rm -f conf$$subs.awk
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 _ACAWK
15723 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15724 for (key in S) S_is_set[key] = 1
15725 FS = ""
15726
15727 }
15728 {
15729 line = $ 0
15730 nfields = split(line, field, "@")
15731 substed = 0
15732 len = length(field[1])
15733 for (i = 2; i < nfields; i++) {
15734 key = field[i]
15735 keylen = length(key)
15736 if (S_is_set[key]) {
15737 value = S[key]
15738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15739 len += length(value) + length(field[++i])
15740 substed = 1
15741 } else
15742 len += 1 + keylen
15743 }
15744
15745 print line
15746 }
15747
15748 _ACAWK
15749 _ACEOF
15750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15751 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15752 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15753 else
15754 cat
15755 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15756 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15757 _ACEOF
15758
15759 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15760 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15761 # trailing colons and then remove the whole line if VPATH becomes empty
15762 # (actually we leave an empty line to preserve line numbers).
15763 if test "x$srcdir" = x.; then
15764 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15765 h
15766 s///
15767 s/^/:/
15768 s/[ ]*$/:/
15769 s/:\$(srcdir):/:/g
15770 s/:\${srcdir}:/:/g
15771 s/:@srcdir@:/:/g
15772 s/^:*//
15773 s/:*$//
15774 x
15775 s/\(=[ ]*\).*/\1/
15776 G
15777 s/\n//
15778 s/^[^=]*=[ ]*$//
15779 }'
15780 fi
15781
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 fi # test -n "$CONFIG_FILES"
15784
15785 # Set up the scripts for CONFIG_HEADERS section.
15786 # No need to generate them if there are no CONFIG_HEADERS.
15787 # This happens for instance with `./config.status Makefile'.
15788 if test -n "$CONFIG_HEADERS"; then
15789 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15790 BEGIN {
15791 _ACEOF
15792
15793 # Transform confdefs.h into an awk script `defines.awk', embedded as
15794 # here-document in config.status, that substitutes the proper values into
15795 # config.h.in to produce config.h.
15796
15797 # Create a delimiter string that does not exist in confdefs.h, to ease
15798 # handling of long lines.
15799 ac_delim='%!_!# '
15800 for ac_last_try in false false :; do
15801 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15802 if test -z "$ac_tt"; then
15803 break
15804 elif $ac_last_try; then
15805 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15806 else
15807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15808 fi
15809 done
15810
15811 # For the awk script, D is an array of macro values keyed by name,
15812 # likewise P contains macro parameters if any. Preserve backslash
15813 # newline sequences.
15814
15815 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15816 sed -n '
15817 s/.\{148\}/&'"$ac_delim"'/g
15818 t rset
15819 :rset
15820 s/^[ ]*#[ ]*define[ ][ ]*/ /
15821 t def
15822 d
15823 :def
15824 s/\\$//
15825 t bsnl
15826 s/["\\]/\\&/g
15827 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15828 D["\1"]=" \3"/p
15829 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15830 d
15831 :bsnl
15832 s/["\\]/\\&/g
15833 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15834 D["\1"]=" \3\\\\\\n"\\/p
15835 t cont
15836 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15837 t cont
15838 d
15839 :cont
15840 n
15841 s/.\{148\}/&'"$ac_delim"'/g
15842 t clear
15843 :clear
15844 s/\\$//
15845 t bsnlc
15846 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15847 d
15848 :bsnlc
15849 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15850 b cont
15851 ' <confdefs.h | sed '
15852 s/'"$ac_delim"'/"\\\
15853 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15854
15855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15856 for (key in D) D_is_set[key] = 1
15857 FS = ""
15858 }
15859 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15860 line = \$ 0
15861 split(line, arg, " ")
15862 if (arg[1] == "#") {
15863 defundef = arg[2]
15864 mac1 = arg[3]
15865 } else {
15866 defundef = substr(arg[1], 2)
15867 mac1 = arg[2]
15868 }
15869 split(mac1, mac2, "(") #)
15870 macro = mac2[1]
15871 prefix = substr(line, 1, index(line, defundef) - 1)
15872 if (D_is_set[macro]) {
15873 # Preserve the white space surrounding the "#".
15874 print prefix "define", macro P[macro] D[macro]
15875 next
15876 } else {
15877 # Replace #undef with comments. This is necessary, for example,
15878 # in the case of _POSIX_SOURCE, which is predefined and required
15879 # on some systems where configure will not decide to define it.
15880 if (defundef == "undef") {
15881 print "/*", prefix defundef, macro, "*/"
15882 next
15883 }
15884 }
15885 }
15886 { print }
15887 _ACAWK
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15890 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15891 fi # test -n "$CONFIG_HEADERS"
15892
15893
15894 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15895 shift
15896 for ac_tag
15897 do
15898 case $ac_tag in
15899 :[FHLC]) ac_mode=$ac_tag; continue;;
15900 esac
15901 case $ac_mode$ac_tag in
15902 :[FHL]*:*);;
15903 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15904 :[FH]-) ac_tag=-:-;;
15905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15906 esac
15907 ac_save_IFS=$IFS
15908 IFS=:
15909 set x $ac_tag
15910 IFS=$ac_save_IFS
15911 shift
15912 ac_file=$1
15913 shift
15914
15915 case $ac_mode in
15916 :L) ac_source=$1;;
15917 :[FH])
15918 ac_file_inputs=
15919 for ac_f
15920 do
15921 case $ac_f in
15922 -) ac_f="$ac_tmp/stdin";;
15923 *) # Look for the file first in the build tree, then in the source tree
15924 # (if the path is not absolute). The absolute path cannot be DOS-style,
15925 # because $ac_f cannot contain `:'.
15926 test -f "$ac_f" ||
15927 case $ac_f in
15928 [\\/$]*) false;;
15929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15930 esac ||
15931 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15932 esac
15933 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15934 as_fn_append ac_file_inputs " '$ac_f'"
15935 done
15936
15937 # Let's still pretend it is `configure' which instantiates (i.e., don't
15938 # use $as_me), people would be surprised to read:
15939 # /* config.h. Generated by config.status. */
15940 configure_input='Generated from '`
15941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15942 `' by configure.'
15943 if test x"$ac_file" != x-; then
15944 configure_input="$ac_file. $configure_input"
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15946 $as_echo "$as_me: creating $ac_file" >&6;}
15947 fi
15948 # Neutralize special characters interpreted by sed in replacement strings.
15949 case $configure_input in #(
15950 *\&* | *\|* | *\\* )
15951 ac_sed_conf_input=`$as_echo "$configure_input" |
15952 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15953 *) ac_sed_conf_input=$configure_input;;
15954 esac
15955
15956 case $ac_tag in
15957 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15959 esac
15960 ;;
15961 esac
15962
15963 ac_dir=`$as_dirname -- "$ac_file" ||
15964 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15965 X"$ac_file" : 'X\(//\)[^/]' \| \
15966 X"$ac_file" : 'X\(//\)$' \| \
15967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15968 $as_echo X"$ac_file" |
15969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15970 s//\1/
15971 q
15972 }
15973 /^X\(\/\/\)[^/].*/{
15974 s//\1/
15975 q
15976 }
15977 /^X\(\/\/\)$/{
15978 s//\1/
15979 q
15980 }
15981 /^X\(\/\).*/{
15982 s//\1/
15983 q
15984 }
15985 s/.*/./; q'`
15986 as_dir="$ac_dir"; as_fn_mkdir_p
15987 ac_builddir=.
15988
15989 case "$ac_dir" in
15990 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15991 *)
15992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15993 # A ".." for each directory in $ac_dir_suffix.
15994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15995 case $ac_top_builddir_sub in
15996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15998 esac ;;
15999 esac
16000 ac_abs_top_builddir=$ac_pwd
16001 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16002 # for backward compatibility:
16003 ac_top_builddir=$ac_top_build_prefix
16004
16005 case $srcdir in
16006 .) # We are building in place.
16007 ac_srcdir=.
16008 ac_top_srcdir=$ac_top_builddir_sub
16009 ac_abs_top_srcdir=$ac_pwd ;;
16010 [\\/]* | ?:[\\/]* ) # Absolute name.
16011 ac_srcdir=$srcdir$ac_dir_suffix;
16012 ac_top_srcdir=$srcdir
16013 ac_abs_top_srcdir=$srcdir ;;
16014 *) # Relative name.
16015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16016 ac_top_srcdir=$ac_top_build_prefix$srcdir
16017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16018 esac
16019 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16020
16021
16022 case $ac_mode in
16023 :F)
16024 #
16025 # CONFIG_FILE
16026 #
16027
16028 case $INSTALL in
16029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16031 esac
16032 ac_MKDIR_P=$MKDIR_P
16033 case $MKDIR_P in
16034 [\\/$]* | ?:[\\/]* ) ;;
16035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16036 esac
16037 _ACEOF
16038
16039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16040 # If the template does not know about datarootdir, expand it.
16041 # FIXME: This hack should be removed a few years after 2.60.
16042 ac_datarootdir_hack=; ac_datarootdir_seen=
16043 ac_sed_dataroot='
16044 /datarootdir/ {
16045 p
16046 q
16047 }
16048 /@datadir@/p
16049 /@docdir@/p
16050 /@infodir@/p
16051 /@localedir@/p
16052 /@mandir@/p'
16053 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16054 *datarootdir*) ac_datarootdir_seen=yes;;
16055 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16057 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16058 _ACEOF
16059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16060 ac_datarootdir_hack='
16061 s&@datadir@&$datadir&g
16062 s&@docdir@&$docdir&g
16063 s&@infodir@&$infodir&g
16064 s&@localedir@&$localedir&g
16065 s&@mandir@&$mandir&g
16066 s&\\\${datarootdir}&$datarootdir&g' ;;
16067 esac
16068 _ACEOF
16069
16070 # Neutralize VPATH when `$srcdir' = `.'.
16071 # Shell code in configure.ac might set extrasub.
16072 # FIXME: do we really want to maintain this feature?
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 ac_sed_extra="$ac_vpsub
16075 $extrasub
16076 _ACEOF
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 :t
16079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16080 s|@configure_input@|$ac_sed_conf_input|;t t
16081 s&@top_builddir@&$ac_top_builddir_sub&;t t
16082 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16083 s&@srcdir@&$ac_srcdir&;t t
16084 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16085 s&@top_srcdir@&$ac_top_srcdir&;t t
16086 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16087 s&@builddir@&$ac_builddir&;t t
16088 s&@abs_builddir@&$ac_abs_builddir&;t t
16089 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16090 s&@INSTALL@&$ac_INSTALL&;t t
16091 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16092 $ac_datarootdir_hack
16093 "
16094 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16096
16097 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16100 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16102 which seems to be undefined. Please make sure it is defined" >&5
16103 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16104 which seems to be undefined. Please make sure it is defined" >&2;}
16105
16106 rm -f "$ac_tmp/stdin"
16107 case $ac_file in
16108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16110 esac \
16111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16112 ;;
16113 :H)
16114 #
16115 # CONFIG_HEADER
16116 #
16117 if test x"$ac_file" != x-; then
16118 {
16119 $as_echo "/* $configure_input */" \
16120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16121 } >"$ac_tmp/config.h" \
16122 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16123 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16126 else
16127 rm -f "$ac_file"
16128 mv "$ac_tmp/config.h" "$ac_file" \
16129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16130 fi
16131 else
16132 $as_echo "/* $configure_input */" \
16133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16134 || as_fn_error $? "could not create -" "$LINENO" 5
16135 fi
16136 # Compute "$ac_file"'s index in $config_headers.
16137 _am_arg="$ac_file"
16138 _am_stamp_count=1
16139 for _am_header in $config_headers :; do
16140 case $_am_header in
16141 $_am_arg | $_am_arg:* )
16142 break ;;
16143 * )
16144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16145 esac
16146 done
16147 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16148 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16149 X"$_am_arg" : 'X\(//\)[^/]' \| \
16150 X"$_am_arg" : 'X\(//\)$' \| \
16151 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16152 $as_echo X"$_am_arg" |
16153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16154 s//\1/
16155 q
16156 }
16157 /^X\(\/\/\)[^/].*/{
16158 s//\1/
16159 q
16160 }
16161 /^X\(\/\/\)$/{
16162 s//\1/
16163 q
16164 }
16165 /^X\(\/\).*/{
16166 s//\1/
16167 q
16168 }
16169 s/.*/./; q'`/stamp-h$_am_stamp_count
16170 ;;
16171
16172 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16173 $as_echo "$as_me: executing $ac_file commands" >&6;}
16174 ;;
16175 esac
16176
16177
16178 case $ac_file$ac_mode in
16179 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16180 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16181 # are listed without --file. Let's play safe and only enable the eval
16182 # if we detect the quoting.
16183 case $CONFIG_FILES in
16184 *\'*) eval set x "$CONFIG_FILES" ;;
16185 *) set x $CONFIG_FILES ;;
16186 esac
16187 shift
16188 for mf
16189 do
16190 # Strip MF so we end up with the name of the file.
16191 mf=`echo "$mf" | sed -e 's/:.*$//'`
16192 # Check whether this is an Automake generated Makefile or not.
16193 # We used to match only the files named 'Makefile.in', but
16194 # some people rename them; so instead we look at the file content.
16195 # Grep'ing the first line is not enough: some people post-process
16196 # each Makefile.in and add a new line on top of each file to say so.
16197 # Grep'ing the whole file is not good either: AIX grep has a line
16198 # limit of 2048, but all sed's we know have understand at least 4000.
16199 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16200 dirpart=`$as_dirname -- "$mf" ||
16201 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16202 X"$mf" : 'X\(//\)[^/]' \| \
16203 X"$mf" : 'X\(//\)$' \| \
16204 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16205 $as_echo X"$mf" |
16206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16207 s//\1/
16208 q
16209 }
16210 /^X\(\/\/\)[^/].*/{
16211 s//\1/
16212 q
16213 }
16214 /^X\(\/\/\)$/{
16215 s//\1/
16216 q
16217 }
16218 /^X\(\/\).*/{
16219 s//\1/
16220 q
16221 }
16222 s/.*/./; q'`
16223 else
16224 continue
16225 fi
16226 # Extract the definition of DEPDIR, am__include, and am__quote
16227 # from the Makefile without running 'make'.
16228 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16229 test -z "$DEPDIR" && continue
16230 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16231 test -z "am__include" && continue
16232 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16233 # Find all dependency output files, they are included files with
16234 # $(DEPDIR) in their names. We invoke sed twice because it is the
16235 # simplest approach to changing $(DEPDIR) to its actual value in the
16236 # expansion.
16237 for file in `sed -n "
16238 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16239 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16240 # Make sure the directory exists.
16241 test -f "$dirpart/$file" && continue
16242 fdir=`$as_dirname -- "$file" ||
16243 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16244 X"$file" : 'X\(//\)[^/]' \| \
16245 X"$file" : 'X\(//\)$' \| \
16246 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16247 $as_echo X"$file" |
16248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16249 s//\1/
16250 q
16251 }
16252 /^X\(\/\/\)[^/].*/{
16253 s//\1/
16254 q
16255 }
16256 /^X\(\/\/\)$/{
16257 s//\1/
16258 q
16259 }
16260 /^X\(\/\).*/{
16261 s//\1/
16262 q
16263 }
16264 s/.*/./; q'`
16265 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16266 # echo "creating $dirpart/$file"
16267 echo '# dummy' > "$dirpart/$file"
16268 done
16269 done
16270 }
16271 ;;
16272 "libtool":C)
16273
16274 # See if we are running on zsh, and set the options which allow our
16275 # commands through without removal of \ escapes.
16276 if test -n "${ZSH_VERSION+set}" ; then
16277 setopt NO_GLOB_SUBST
16278 fi
16279
16280 cfgfile="${ofile}T"
16281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16282 $RM "$cfgfile"
16283
16284 cat <<_LT_EOF >> "$cfgfile"
16285 #! $SHELL
16286
16287 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16288 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16290 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16291 #
16292 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16293 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16294 # Foundation, Inc.
16295 # Written by Gordon Matzigkeit, 1996
16296 #
16297 # This file is part of GNU Libtool.
16298 #
16299 # GNU Libtool is free software; you can redistribute it and/or
16300 # modify it under the terms of the GNU General Public License as
16301 # published by the Free Software Foundation; either version 2 of
16302 # the License, or (at your option) any later version.
16303 #
16304 # As a special exception to the GNU General Public License,
16305 # if you distribute this file as part of a program or library that
16306 # is built using GNU Libtool, you may include this file under the
16307 # same distribution terms that you use for the rest of that program.
16308 #
16309 # GNU Libtool is distributed in the hope that it will be useful,
16310 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16312 # GNU General Public License for more details.
16313 #
16314 # You should have received a copy of the GNU General Public License
16315 # along with GNU Libtool; see the file COPYING. If not, a copy
16316 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16317 # obtained by writing to the Free Software Foundation, Inc.,
16318 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16319
16320
16321 # The names of the tagged configurations supported by this script.
16322 available_tags=""
16323
16324 # ### BEGIN LIBTOOL CONFIG
16325
16326 # Which release of libtool.m4 was used?
16327 macro_version=$macro_version
16328 macro_revision=$macro_revision
16329
16330 # Whether or not to build static libraries.
16331 build_old_libs=$enable_static
16332
16333 # Whether or not to build shared libraries.
16334 build_libtool_libs=$enable_shared
16335
16336 # What type of objects to build.
16337 pic_mode=$pic_mode
16338
16339 # Whether or not to optimize for fast installation.
16340 fast_install=$enable_fast_install
16341
16342 # Shell to use when invoking shell scripts.
16343 SHELL=$lt_SHELL
16344
16345 # An echo program that protects backslashes.
16346 ECHO=$lt_ECHO
16347
16348 # The PATH separator for the build system.
16349 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16350
16351 # The host system.
16352 host_alias=$host_alias
16353 host=$host
16354 host_os=$host_os
16355
16356 # The build system.
16357 build_alias=$build_alias
16358 build=$build
16359 build_os=$build_os
16360
16361 # A sed program that does not truncate output.
16362 SED=$lt_SED
16363
16364 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16365 Xsed="\$SED -e 1s/^X//"
16366
16367 # A grep program that handles long lines.
16368 GREP=$lt_GREP
16369
16370 # An ERE matcher.
16371 EGREP=$lt_EGREP
16372
16373 # A literal string matcher.
16374 FGREP=$lt_FGREP
16375
16376 # A BSD- or MS-compatible name lister.
16377 NM=$lt_NM
16378
16379 # Whether we need soft or hard links.
16380 LN_S=$lt_LN_S
16381
16382 # What is the maximum length of a command?
16383 max_cmd_len=$max_cmd_len
16384
16385 # Object file suffix (normally "o").
16386 objext=$ac_objext
16387
16388 # Executable file suffix (normally "").
16389 exeext=$exeext
16390
16391 # whether the shell understands "unset".
16392 lt_unset=$lt_unset
16393
16394 # turn spaces into newlines.
16395 SP2NL=$lt_lt_SP2NL
16396
16397 # turn newlines into spaces.
16398 NL2SP=$lt_lt_NL2SP
16399
16400 # convert \$build file names to \$host format.
16401 to_host_file_cmd=$lt_cv_to_host_file_cmd
16402
16403 # convert \$build files to toolchain format.
16404 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16405
16406 # An object symbol dumper.
16407 OBJDUMP=$lt_OBJDUMP
16408
16409 # Method to check whether dependent libraries are shared objects.
16410 deplibs_check_method=$lt_deplibs_check_method
16411
16412 # Command to use when deplibs_check_method = "file_magic".
16413 file_magic_cmd=$lt_file_magic_cmd
16414
16415 # How to find potential files when deplibs_check_method = "file_magic".
16416 file_magic_glob=$lt_file_magic_glob
16417
16418 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16419 want_nocaseglob=$lt_want_nocaseglob
16420
16421 # DLL creation program.
16422 DLLTOOL=$lt_DLLTOOL
16423
16424 # Command to associate shared and link libraries.
16425 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16426
16427 # The archiver.
16428 AR=$lt_AR
16429
16430 # Flags to create an archive.
16431 AR_FLAGS=$lt_AR_FLAGS
16432
16433 # How to feed a file listing to the archiver.
16434 archiver_list_spec=$lt_archiver_list_spec
16435
16436 # A symbol stripping program.
16437 STRIP=$lt_STRIP
16438
16439 # Commands used to install an old-style archive.
16440 RANLIB=$lt_RANLIB
16441 old_postinstall_cmds=$lt_old_postinstall_cmds
16442 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16443
16444 # Whether to use a lock for old archive extraction.
16445 lock_old_archive_extraction=$lock_old_archive_extraction
16446
16447 # A C compiler.
16448 LTCC=$lt_CC
16449
16450 # LTCC compiler flags.
16451 LTCFLAGS=$lt_CFLAGS
16452
16453 # Take the output of nm and produce a listing of raw symbols and C names.
16454 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16455
16456 # Transform the output of nm in a proper C declaration.
16457 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16458
16459 # Transform the output of nm in a C name address pair.
16460 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16461
16462 # Transform the output of nm in a C name address pair when lib prefix is needed.
16463 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16464
16465 # Specify filename containing input files for \$NM.
16466 nm_file_list_spec=$lt_nm_file_list_spec
16467
16468 # The root where to search for dependent libraries,and in which our libraries should be installed.
16469 lt_sysroot=$lt_sysroot
16470
16471 # The name of the directory that contains temporary libtool files.
16472 objdir=$objdir
16473
16474 # Used to examine libraries when file_magic_cmd begins with "file".
16475 MAGIC_CMD=$MAGIC_CMD
16476
16477 # Must we lock files when doing compilation?
16478 need_locks=$lt_need_locks
16479
16480 # Manifest tool.
16481 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16482
16483 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16484 DSYMUTIL=$lt_DSYMUTIL
16485
16486 # Tool to change global to local symbols on Mac OS X.
16487 NMEDIT=$lt_NMEDIT
16488
16489 # Tool to manipulate fat objects and archives on Mac OS X.
16490 LIPO=$lt_LIPO
16491
16492 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16493 OTOOL=$lt_OTOOL
16494
16495 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16496 OTOOL64=$lt_OTOOL64
16497
16498 # Old archive suffix (normally "a").
16499 libext=$libext
16500
16501 # Shared library suffix (normally ".so").
16502 shrext_cmds=$lt_shrext_cmds
16503
16504 # The commands to extract the exported symbol list from a shared archive.
16505 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16506
16507 # Variables whose values should be saved in libtool wrapper scripts and
16508 # restored at link time.
16509 variables_saved_for_relink=$lt_variables_saved_for_relink
16510
16511 # Do we need the "lib" prefix for modules?
16512 need_lib_prefix=$need_lib_prefix
16513
16514 # Do we need a version for libraries?
16515 need_version=$need_version
16516
16517 # Library versioning type.
16518 version_type=$version_type
16519
16520 # Shared library runtime path variable.
16521 runpath_var=$runpath_var
16522
16523 # Shared library path variable.
16524 shlibpath_var=$shlibpath_var
16525
16526 # Is shlibpath searched before the hard-coded library search path?
16527 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16528
16529 # Format of library name prefix.
16530 libname_spec=$lt_libname_spec
16531
16532 # List of archive names. First name is the real one, the rest are links.
16533 # The last name is the one that the linker finds with -lNAME
16534 library_names_spec=$lt_library_names_spec
16535
16536 # The coded name of the library, if different from the real name.
16537 soname_spec=$lt_soname_spec
16538
16539 # Permission mode override for installation of shared libraries.
16540 install_override_mode=$lt_install_override_mode
16541
16542 # Command to use after installation of a shared archive.
16543 postinstall_cmds=$lt_postinstall_cmds
16544
16545 # Command to use after uninstallation of a shared archive.
16546 postuninstall_cmds=$lt_postuninstall_cmds
16547
16548 # Commands used to finish a libtool library installation in a directory.
16549 finish_cmds=$lt_finish_cmds
16550
16551 # As "finish_cmds", except a single script fragment to be evaled but
16552 # not shown.
16553 finish_eval=$lt_finish_eval
16554
16555 # Whether we should hardcode library paths into libraries.
16556 hardcode_into_libs=$hardcode_into_libs
16557
16558 # Compile-time system search path for libraries.
16559 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16560
16561 # Run-time system search path for libraries.
16562 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16563
16564 # Whether dlopen is supported.
16565 dlopen_support=$enable_dlopen
16566
16567 # Whether dlopen of programs is supported.
16568 dlopen_self=$enable_dlopen_self
16569
16570 # Whether dlopen of statically linked programs is supported.
16571 dlopen_self_static=$enable_dlopen_self_static
16572
16573 # Commands to strip libraries.
16574 old_striplib=$lt_old_striplib
16575 striplib=$lt_striplib
16576
16577
16578 # The linker used to build libraries.
16579 LD=$lt_LD
16580
16581 # How to create reloadable object files.
16582 reload_flag=$lt_reload_flag
16583 reload_cmds=$lt_reload_cmds
16584
16585 # Commands used to build an old-style archive.
16586 old_archive_cmds=$lt_old_archive_cmds
16587
16588 # A language specific compiler.
16589 CC=$lt_compiler
16590
16591 # Is the compiler the GNU compiler?
16592 with_gcc=$GCC
16593
16594 # Compiler flag to turn off builtin functions.
16595 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16596
16597 # Additional compiler flags for building library objects.
16598 pic_flag=$lt_lt_prog_compiler_pic
16599
16600 # How to pass a linker flag through the compiler.
16601 wl=$lt_lt_prog_compiler_wl
16602
16603 # Compiler flag to prevent dynamic linking.
16604 link_static_flag=$lt_lt_prog_compiler_static
16605
16606 # Does compiler simultaneously support -c and -o options?
16607 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16608
16609 # Whether or not to add -lc for building shared libraries.
16610 build_libtool_need_lc=$archive_cmds_need_lc
16611
16612 # Whether or not to disallow shared libs when runtime libs are static.
16613 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16614
16615 # Compiler flag to allow reflexive dlopens.
16616 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16617
16618 # Compiler flag to generate shared objects directly from archives.
16619 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16620
16621 # Whether the compiler copes with passing no objects directly.
16622 compiler_needs_object=$lt_compiler_needs_object
16623
16624 # Create an old-style archive from a shared archive.
16625 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16626
16627 # Create a temporary old-style archive to link instead of a shared archive.
16628 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16629
16630 # Commands used to build a shared archive.
16631 archive_cmds=$lt_archive_cmds
16632 archive_expsym_cmds=$lt_archive_expsym_cmds
16633
16634 # Commands used to build a loadable module if different from building
16635 # a shared archive.
16636 module_cmds=$lt_module_cmds
16637 module_expsym_cmds=$lt_module_expsym_cmds
16638
16639 # Whether we are building with GNU ld or not.
16640 with_gnu_ld=$lt_with_gnu_ld
16641
16642 # Flag that allows shared libraries with undefined symbols to be built.
16643 allow_undefined_flag=$lt_allow_undefined_flag
16644
16645 # Flag that enforces no undefined symbols.
16646 no_undefined_flag=$lt_no_undefined_flag
16647
16648 # Flag to hardcode \$libdir into a binary during linking.
16649 # This must work even if \$libdir does not exist
16650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16651
16652 # Whether we need a single "-rpath" flag with a separated argument.
16653 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16654
16655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16656 # DIR into the resulting binary.
16657 hardcode_direct=$hardcode_direct
16658
16659 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16660 # DIR into the resulting binary and the resulting library dependency is
16661 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16662 # library is relocated.
16663 hardcode_direct_absolute=$hardcode_direct_absolute
16664
16665 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16666 # into the resulting binary.
16667 hardcode_minus_L=$hardcode_minus_L
16668
16669 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16670 # into the resulting binary.
16671 hardcode_shlibpath_var=$hardcode_shlibpath_var
16672
16673 # Set to "yes" if building a shared library automatically hardcodes DIR
16674 # into the library and all subsequent libraries and executables linked
16675 # against it.
16676 hardcode_automatic=$hardcode_automatic
16677
16678 # Set to yes if linker adds runtime paths of dependent libraries
16679 # to runtime path list.
16680 inherit_rpath=$inherit_rpath
16681
16682 # Whether libtool must link a program against all its dependency libraries.
16683 link_all_deplibs=$link_all_deplibs
16684
16685 # Set to "yes" if exported symbols are required.
16686 always_export_symbols=$always_export_symbols
16687
16688 # The commands to list exported symbols.
16689 export_symbols_cmds=$lt_export_symbols_cmds
16690
16691 # Symbols that should not be listed in the preloaded symbols.
16692 exclude_expsyms=$lt_exclude_expsyms
16693
16694 # Symbols that must always be exported.
16695 include_expsyms=$lt_include_expsyms
16696
16697 # Commands necessary for linking programs (against libraries) with templates.
16698 prelink_cmds=$lt_prelink_cmds
16699
16700 # Commands necessary for finishing linking programs.
16701 postlink_cmds=$lt_postlink_cmds
16702
16703 # Specify filename containing input files.
16704 file_list_spec=$lt_file_list_spec
16705
16706 # How to hardcode a shared library path into an executable.
16707 hardcode_action=$hardcode_action
16708
16709 # ### END LIBTOOL CONFIG
16710
16711 _LT_EOF
16712
16713 case $host_os in
16714 aix3*)
16715 cat <<\_LT_EOF >> "$cfgfile"
16716 # AIX sometimes has problems with the GCC collect2 program. For some
16717 # reason, if we set the COLLECT_NAMES environment variable, the problems
16718 # vanish in a puff of smoke.
16719 if test "X${COLLECT_NAMES+set}" != Xset; then
16720 COLLECT_NAMES=
16721 export COLLECT_NAMES
16722 fi
16723 _LT_EOF
16724 ;;
16725 esac
16726
16727
16728 ltmain="$ac_aux_dir/ltmain.sh"
16729
16730
16731 # We use sed instead of cat because bash on DJGPP gets confused if
16732 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16733 # text mode, it properly converts lines to CR/LF. This bash problem
16734 # is reportedly fixed, but why not run on old versions too?
16735 sed '$q' "$ltmain" >> "$cfgfile" \
16736 || (rm -f "$cfgfile"; exit 1)
16737
16738 if test x"$xsi_shell" = xyes; then
16739 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16740 func_dirname ()\
16741 {\
16742 \ case ${1} in\
16743 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16744 \ * ) func_dirname_result="${3}" ;;\
16745 \ esac\
16746 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16747 && mv -f "$cfgfile.tmp" "$cfgfile" \
16748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16749 test 0 -eq $? || _lt_function_replace_fail=:
16750
16751
16752 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16753 func_basename ()\
16754 {\
16755 \ func_basename_result="${1##*/}"\
16756 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16757 && mv -f "$cfgfile.tmp" "$cfgfile" \
16758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16759 test 0 -eq $? || _lt_function_replace_fail=:
16760
16761
16762 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16763 func_dirname_and_basename ()\
16764 {\
16765 \ case ${1} in\
16766 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16767 \ * ) func_dirname_result="${3}" ;;\
16768 \ esac\
16769 \ func_basename_result="${1##*/}"\
16770 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16771 && mv -f "$cfgfile.tmp" "$cfgfile" \
16772 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16773 test 0 -eq $? || _lt_function_replace_fail=:
16774
16775
16776 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16777 func_stripname ()\
16778 {\
16779 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16780 \ # positional parameters, so assign one to ordinary parameter first.\
16781 \ func_stripname_result=${3}\
16782 \ func_stripname_result=${func_stripname_result#"${1}"}\
16783 \ func_stripname_result=${func_stripname_result%"${2}"}\
16784 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16785 && mv -f "$cfgfile.tmp" "$cfgfile" \
16786 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16787 test 0 -eq $? || _lt_function_replace_fail=:
16788
16789
16790 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16791 func_split_long_opt ()\
16792 {\
16793 \ func_split_long_opt_name=${1%%=*}\
16794 \ func_split_long_opt_arg=${1#*=}\
16795 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16796 && mv -f "$cfgfile.tmp" "$cfgfile" \
16797 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16798 test 0 -eq $? || _lt_function_replace_fail=:
16799
16800
16801 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16802 func_split_short_opt ()\
16803 {\
16804 \ func_split_short_opt_arg=${1#??}\
16805 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16806 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16807 && mv -f "$cfgfile.tmp" "$cfgfile" \
16808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16809 test 0 -eq $? || _lt_function_replace_fail=:
16810
16811
16812 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16813 func_lo2o ()\
16814 {\
16815 \ case ${1} in\
16816 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16817 \ *) func_lo2o_result=${1} ;;\
16818 \ esac\
16819 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16820 && mv -f "$cfgfile.tmp" "$cfgfile" \
16821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16822 test 0 -eq $? || _lt_function_replace_fail=:
16823
16824
16825 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16826 func_xform ()\
16827 {\
16828 func_xform_result=${1%.*}.lo\
16829 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16830 && mv -f "$cfgfile.tmp" "$cfgfile" \
16831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16832 test 0 -eq $? || _lt_function_replace_fail=:
16833
16834
16835 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16836 func_arith ()\
16837 {\
16838 func_arith_result=$(( $* ))\
16839 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16840 && mv -f "$cfgfile.tmp" "$cfgfile" \
16841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16842 test 0 -eq $? || _lt_function_replace_fail=:
16843
16844
16845 sed -e '/^func_len ()$/,/^} # func_len /c\
16846 func_len ()\
16847 {\
16848 func_len_result=${#1}\
16849 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16850 && mv -f "$cfgfile.tmp" "$cfgfile" \
16851 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16852 test 0 -eq $? || _lt_function_replace_fail=:
16853
16854 fi
16855
16856 if test x"$lt_shell_append" = xyes; then
16857 sed -e '/^func_append ()$/,/^} # func_append /c\
16858 func_append ()\
16859 {\
16860 eval "${1}+=\\${2}"\
16861 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16862 && mv -f "$cfgfile.tmp" "$cfgfile" \
16863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16864 test 0 -eq $? || _lt_function_replace_fail=:
16865
16866
16867 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16868 func_append_quoted ()\
16869 {\
16870 \ func_quote_for_eval "${2}"\
16871 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16872 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16873 && mv -f "$cfgfile.tmp" "$cfgfile" \
16874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16875 test 0 -eq $? || _lt_function_replace_fail=:
16876
16877
16878 # Save a `func_append' function call where possible by direct use of '+='
16879 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16880 && mv -f "$cfgfile.tmp" "$cfgfile" \
16881 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16882 test 0 -eq $? || _lt_function_replace_fail=:
16883 else
16884 # Save a `func_append' function call even when '+=' is not available
16885 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16886 && mv -f "$cfgfile.tmp" "$cfgfile" \
16887 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16888 test 0 -eq $? || _lt_function_replace_fail=:
16889 fi
16890
16891 if test x"$_lt_function_replace_fail" = x":"; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16893 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16894 fi
16895
16896
16897 mv -f "$cfgfile" "$ofile" ||
16898 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16899 chmod +x "$ofile"
16900
16901 ;;
16902
16903 esac
16904 done # for ac_tag
16905
16906
16907 as_fn_exit 0
16908 _ACEOF
16909 ac_clean_files=$ac_clean_files_save
16910
16911 test $ac_write_fail = 0 ||
16912 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16913
16914
16915 # configure is writing to config.log, and then calls config.status.
16916 # config.status does its own redirection, appending to config.log.
16917 # Unfortunately, on DOS this fails, as config.log is still kept open
16918 # by configure, so config.status won't be able to write to it; its
16919 # output is simply discarded. So we exec the FD to /dev/null,
16920 # effectively closing config.log, so it can be properly (re)opened and
16921 # appended to by config.status. When coming back to configure, we
16922 # need to make the FD available again.
16923 if test "$no_create" != yes; then
16924 ac_cs_success=:
16925 ac_config_status_args=
16926 test "$silent" = yes &&
16927 ac_config_status_args="$ac_config_status_args --quiet"
16928 exec 5>/dev/null
16929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16930 exec 5>>config.log
16931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16932 # would make configure fail if this is the last instruction.
16933 $ac_cs_success || as_fn_exit 1
16934 fi
16935 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16937 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16938 fi
16939

Properties

Name Value
svn:executable *