ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 1856
Committed: Wed Apr 24 19:43:22 2013 UTC (10 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/configure
File size: 491198 byte(s)
Log Message:
- Added configure test for libGeoIP for later usage

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1837 2013-04-21 09:27:27Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 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='TRUNK'
597 PACKAGE_STRING='ircd-hybrid TRUNK'
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_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libpcre
809 enable_libGeoIP
810 enable_openssl
811 enable_assert
812 enable_kqueue
813 enable_epoll
814 enable_devpoll
815 enable_poll
816 enable_select
817 enable_halfops
818 enable_debugging
819 enable_warnings
820 '
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
824 CC
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
829 YACC
830 YFLAGS
831 CPP'
832
833
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
891 fi
892
893 case $ac_option in
894 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *=) ac_optarg= ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information"
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error $? "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290 fi
1291
1292 ac_tool_prefix=
1293 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295 test "$silent" = yes && exec 6>/dev/null
1296
1297
1298 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299 ac_ls_di=`ls -di .` &&
1300 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error $? "working directory cannot be determined"
1302 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1336 fi
1337 else
1338 ac_srcdir_defaulted=no
1339 fi
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343 fi
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345 ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347 pwd)`
1348 # When building in place, set srcdir=.
1349 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351 fi
1352 # Remove unnecessary trailing slashes from srcdir.
1353 # Double slashes in file names in object file debugging info
1354 # mess up M-x gdb in Emacs.
1355 case $srcdir in
1356 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357 esac
1358 for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 done
1364
1365 #
1366 # Report the --help message.
1367 #
1368 if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1373
1374 Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377 VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379 Defaults for the options are specified in brackets.
1380
1381 Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking ...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
1392 Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
1394 [$ac_default_prefix]
1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 [PREFIX]
1397
1398 By default, \`make install' will install all the files in
1399 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401 for instance \`--prefix=\$HOME'.
1402
1403 For better control, use the options below.
1404
1405 Fine tuning of the installation directories:
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
1425 _ACEOF
1426
1427 cat <<\_ACEOF
1428
1429 Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-silent-rules less verbose build output (undo: "make V=1")
1451 --disable-silent-rules verbose build output (undo: "make V=0")
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-static[=PKGS] build static libraries [default=no]
1460 --enable-shared[=PKGS] build shared libraries [default=yes]
1461 --enable-fast-install[=PKGS]
1462 optimize for fast installation [default=yes]
1463 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --enable-ltdl-install install libltdl
1465 --disable-libpcre Disable PCRE support
1466 --disable-libgeoip Disable GeoIP support
1467 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1468 --disable-openssl Disable OpenSSL support.
1469 --enable-assert Enable assert() statements
1470 --enable-kqueue Force kqueue usage.
1471 --enable-epoll Force epoll usage.
1472 --enable-devpoll Force devpoll usage.
1473 --enable-poll Force poll usage.
1474 --enable-select Force select usage.
1475 --enable-halfops Enable halfops support.
1476 --enable-debugging Enable debugging.
1477 --enable-warnings Enable compiler warnings.
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot=DIR Search for dependent libraries within DIR
1486 (or the compiler's sysroot if not specified).
1487 --with-included-ltdl use the GNU ltdl sources included here
1488 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1489 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1490
1491 Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
1496 LIBS libraries to pass to the linker, e.g. -l<library>
1497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1498 you have headers in a nonstandard directory <include dir>
1499 YACC The `Yet Another Compiler Compiler' implementation to use.
1500 Defaults to the first program found out of: `bison -y', `byacc',
1501 `yacc'.
1502 YFLAGS The list of arguments that will be passed by default to $YACC.
1503 This script will default YFLAGS to the empty string to avoid a
1504 default value of `-d' given by some make applications.
1505 CPP C preprocessor
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 Report bugs to <bugs@ircd-hybrid.org>.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1514
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 continue
1521 ac_builddir=.
1522
1523 case "$ac_dir" in
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *)
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 esac ;;
1533 esac
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1538
1539 case $srcdir in
1540 .) # We are building in place.
1541 ac_srcdir=.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1548 *) # Relative name.
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 esac
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1563 else
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 fi || ac_status=$?
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1567 done
1568 fi
1569
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1572 cat <<\_ACEOF
1573 ircd-hybrid configure TRUNK
1574 generated by GNU Autoconf 2.69
1575
1576 Copyright (C) 2012 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580 exit
1581 fi
1582
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1586
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1613 ac_retval=0
1614 else
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618 ac_retval=1
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_c_try_compile
1624
1625 # ac_fn_c_try_link LINENO
1626 # -----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_link ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest$ac_exeext
1632 if { { ac_try="$ac_link"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest$ac_exeext && {
1651 test "$cross_compiling" = yes ||
1652 test -x conftest$ac_exeext
1653 }; then :
1654 ac_retval=0
1655 else
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1658
1659 ac_retval=1
1660 fi
1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663 # interfere with the next link command; also delete a directory that is
1664 # left behind by Apple's compiler. We do this before executing the actions.
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_c_try_link
1670
1671 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists and can be compiled using the include files in
1674 # INCLUDES, setting the cache variable VAR accordingly.
1675 ac_fn_c_check_header_compile ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1685 $4
1686 #include <$2>
1687 _ACEOF
1688 if ac_fn_c_try_compile "$LINENO"; then :
1689 eval "$3=yes"
1690 else
1691 eval "$3=no"
1692 fi
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1694 fi
1695 eval ac_res=\$$3
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_c_check_header_compile
1701
1702 # ac_fn_c_try_cpp LINENO
1703 # ----------------------
1704 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_cpp ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 ac_status=$?
1717 if test -s conftest.err; then
1718 grep -v '^ *+' conftest.err >conftest.er1
1719 cat conftest.er1 >&5
1720 mv -f conftest.er1 conftest.err
1721 fi
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } > conftest.i && {
1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1725 test ! -s conftest.err
1726 }; then :
1727 ac_retval=0
1728 else
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_cpp
1738
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1742 # that executables *can* be run.
1743 ac_fn_c_try_run ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: program exited with status $ac_status" >&5
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773 ac_retval=$ac_status
1774 fi
1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1778
1779 } # ac_fn_c_try_run
1780
1781 # ac_fn_c_check_func LINENO FUNC VAR
1782 # ----------------------------------
1783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1784 ac_fn_c_check_func ()
1785 {
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791 else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1796 #define $2 innocuous_$2
1797
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $2 (); below.
1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1801 <limits.h> exists even on freestanding compilers. */
1802
1803 #ifdef __STDC__
1804 # include <limits.h>
1805 #else
1806 # include <assert.h>
1807 #endif
1808
1809 #undef $2
1810
1811 /* Override any GCC internal prototype to avoid an error.
1812 Use char because int might match the return type of a GCC
1813 builtin and then its argument prototype would still apply. */
1814 #ifdef __cplusplus
1815 extern "C"
1816 #endif
1817 char $2 ();
1818 /* The GNU C library defines this for functions which it implements
1819 to always fail with ENOSYS. Some functions are actually named
1820 something starting with __ and the normal name is an alias. */
1821 #if defined __stub_$2 || defined __stub___$2
1822 choke me
1823 #endif
1824
1825 int
1826 main ()
1827 {
1828 return $2 ();
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_c_try_link "$LINENO"; then :
1834 eval "$3=yes"
1835 else
1836 eval "$3=no"
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext \
1839 conftest$ac_exeext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_func
1847
1848 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1849 # ---------------------------------------------
1850 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1851 # accordingly.
1852 ac_fn_c_check_decl ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 as_decl_name=`echo $2|sed 's/ *(.*//'`
1856 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1858 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 int
1866 main ()
1867 {
1868 #ifndef $as_decl_name
1869 #ifdef __cplusplus
1870 (void) $as_decl_use;
1871 #else
1872 (void) $as_decl_name;
1873 #endif
1874 #endif
1875
1876 ;
1877 return 0;
1878 }
1879 _ACEOF
1880 if ac_fn_c_try_compile "$LINENO"; then :
1881 eval "$3=yes"
1882 else
1883 eval "$3=no"
1884 fi
1885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_decl
1893
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1899 {
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1905 else
1906 eval "$3=no"
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof ($2))
1914 return 0;
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof (($2)))
1927 return 0;
1928 ;
1929 return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933
1934 else
1935 eval "$3=yes"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_type
1947
1948 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1949 # ----------------------------------------------------
1950 # Tries to find if the field MEMBER exists in type AGGR, after including
1951 # INCLUDES, setting cache variable VAR accordingly.
1952 ac_fn_c_check_member ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1956 $as_echo_n "checking for $2.$3... " >&6; }
1957 if eval \${$4+:} false; then :
1958 $as_echo_n "(cached) " >&6
1959 else
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1962 $5
1963 int
1964 main ()
1965 {
1966 static $2 ac_aggr;
1967 if (ac_aggr.$3)
1968 return 0;
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$4=yes"
1975 else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $5
1979 int
1980 main ()
1981 {
1982 static $2 ac_aggr;
1983 if (sizeof ac_aggr.$3)
1984 return 0;
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$4=yes"
1991 else
1992 eval "$4=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$4
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_member
2004
2005 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008 # the include files in INCLUDES and setting the cache variable VAR
2009 # accordingly.
2010 ac_fn_c_check_header_mongrel ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if eval \${$3+:} false; then :
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2018 fi
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 else
2023 # Is the header compilable?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025 $as_echo_n "checking $2 usability... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_header_compiler=yes
2033 else
2034 ac_header_compiler=no
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038 $as_echo "$ac_header_compiler" >&6; }
2039
2040 # Is the header present?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042 $as_echo_n "checking $2 presence... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 #include <$2>
2046 _ACEOF
2047 if ac_fn_c_try_cpp "$LINENO"; then :
2048 ac_header_preproc=yes
2049 else
2050 ac_header_preproc=no
2051 fi
2052 rm -f conftest.err conftest.i conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054 $as_echo "$ac_header_preproc" >&6; }
2055
2056 # So? What about this header?
2057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 yes:no: )
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ;;
2064 no:yes:* )
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2068 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2072 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 ( $as_echo "## ----------------------------------- ##
2076 ## Report this to bugs@ircd-hybrid.org ##
2077 ## ----------------------------------- ##"
2078 ) | sed "s/^/$as_me: WARNING: /" >&2
2079 ;;
2080 esac
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2085 else
2086 eval "$3=\$ac_header_compiler"
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 fi
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094 } # ac_fn_c_check_header_mongrel
2095 cat >config.log <<_ACEOF
2096 This file contains any messages produced by compilers while
2097 running configure, to aid debugging if configure makes a mistake.
2098
2099 It was created by ircd-hybrid $as_me TRUNK, which was
2100 generated by GNU Autoconf 2.69. Invocation command line was
2101
2102 $ $0 $@
2103
2104 _ACEOF
2105 exec 5>>config.log
2106 {
2107 cat <<_ASUNAME
2108 ## --------- ##
2109 ## Platform. ##
2110 ## --------- ##
2111
2112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
2129 _ASUNAME
2130
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
2136 $as_echo "PATH: $as_dir"
2137 done
2138 IFS=$as_save_IFS
2139
2140 } >&5
2141
2142 cat >&5 <<_ACEOF
2143
2144
2145 ## ----------- ##
2146 ## Core tests. ##
2147 ## ----------- ##
2148
2149 _ACEOF
2150
2151
2152 # Keep a trace of the command line.
2153 # Strip out --no-create and --no-recursion so they do not pile up.
2154 # Strip out --silent because we don't want to record it for future runs.
2155 # Also quote any args containing shell meta-characters.
2156 # Make two passes to allow for proper duplicate-argument suppression.
2157 ac_configure_args=
2158 ac_configure_args0=
2159 ac_configure_args1=
2160 ac_must_keep_next=false
2161 for ac_pass in 1 2
2162 do
2163 for ac_arg
2164 do
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
2170 *\'*)
2171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2172 esac
2173 case $ac_pass in
2174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2175 2)
2176 as_fn_append ac_configure_args1 " '$ac_arg'"
2177 if test $ac_must_keep_next = true; then
2178 ac_must_keep_next=false # Got value, back to normal.
2179 else
2180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2188 ;;
2189 -* ) ac_must_keep_next=true ;;
2190 esac
2191 fi
2192 as_fn_append ac_configure_args " '$ac_arg'"
2193 ;;
2194 esac
2195 done
2196 done
2197 { ac_configure_args0=; unset ac_configure_args0;}
2198 { ac_configure_args1=; unset ac_configure_args1;}
2199
2200 # When interrupted or exit'd, cleanup temporary files, and complete
2201 # config.log. We remove comments because anyway the quotes in there
2202 # would cause problems or look ugly.
2203 # WARNING: Use '\'' to represent an apostrophe within the trap.
2204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2205 trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
2207 {
2208 echo
2209
2210 $as_echo "## ---------------- ##
2211 ## Cache variables. ##
2212 ## ---------------- ##"
2213 echo
2214 # The following way of writing the cache mishandles newlines in values,
2215 (
2216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217 eval ac_val=\$$ac_var
2218 case $ac_val in #(
2219 *${as_nl}*)
2220 case $ac_var in #(
2221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223 esac
2224 case $ac_var in #(
2225 _ | IFS | as_nl) ;; #(
2226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227 *) { eval $ac_var=; unset $ac_var;} ;;
2228 esac ;;
2229 esac
2230 done
2231 (set) 2>&1 |
2232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233 *${as_nl}ac_space=\ *)
2234 sed -n \
2235 "s/'\''/'\''\\\\'\'''\''/g;
2236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237 ;; #(
2238 *)
2239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 ;;
2241 esac |
2242 sort
2243 )
2244 echo
2245
2246 $as_echo "## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##"
2249 echo
2250 for ac_var in $ac_subst_vars
2251 do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 esac
2256 $as_echo "$ac_var='\''$ac_val'\''"
2257 done | sort
2258 echo
2259
2260 if test -n "$ac_subst_files"; then
2261 $as_echo "## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##"
2264 echo
2265 for ac_var in $ac_subst_files
2266 do
2267 eval ac_val=\$$ac_var
2268 case $ac_val in
2269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 esac
2271 $as_echo "$ac_var='\''$ac_val'\''"
2272 done | sort
2273 echo
2274 fi
2275
2276 if test -s confdefs.h; then
2277 $as_echo "## ----------- ##
2278 ## confdefs.h. ##
2279 ## ----------- ##"
2280 echo
2281 cat confdefs.h
2282 echo
2283 fi
2284 test "$ac_signal" != 0 &&
2285 $as_echo "$as_me: caught signal $ac_signal"
2286 $as_echo "$as_me: exit $exit_status"
2287 } >&5
2288 rm -f core *.core core.conftest.* &&
2289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2290 exit $exit_status
2291 ' 0
2292 for ac_signal in 1 2 13 15; do
2293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2294 done
2295 ac_signal=0
2296
2297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2298 rm -f -r conftest* confdefs.h
2299
2300 $as_echo "/* confdefs.h */" > confdefs.h
2301
2302 # Predefined preprocessor variables.
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_NAME "$PACKAGE_NAME"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_STRING "$PACKAGE_STRING"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_URL "$PACKAGE_URL"
2326 _ACEOF
2327
2328
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 ac_site_file1=NONE
2332 ac_site_file2=NONE
2333 if test -n "$CONFIG_SITE"; then
2334 # We do not want a PATH search for config.site.
2335 case $CONFIG_SITE in #((
2336 -*) ac_site_file1=./$CONFIG_SITE;;
2337 */*) ac_site_file1=$CONFIG_SITE;;
2338 *) ac_site_file1=./$CONFIG_SITE;;
2339 esac
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_file1=$prefix/share/config.site
2342 ac_site_file2=$prefix/etc/config.site
2343 else
2344 ac_site_file1=$ac_default_prefix/share/config.site
2345 ac_site_file2=$ac_default_prefix/etc/config.site
2346 fi
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2348 do
2349 test "x$ac_site_file" = xNONE && continue
2350 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2354 . "$ac_site_file" \
2355 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 as_fn_error $? "failed to load site script $ac_site_file
2358 See \`config.log' for more details" "$LINENO" 5; }
2359 fi
2360 done
2361
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special files
2364 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 case $cache_file in
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2371 esac
2372 fi
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2376 >$cache_file
2377 fi
2378
2379 as_fn_append ac_func_list " strtok_r"
2380 as_fn_append ac_func_list " usleep"
2381 as_fn_append ac_func_list " strlcat"
2382 as_fn_append ac_func_list " strlcpy"
2383 as_fn_append ac_header_list " crypt.h"
2384 as_fn_append ac_header_list " sys/resource.h"
2385 as_fn_append ac_header_list " sys/param.h"
2386 as_fn_append ac_header_list " types.h"
2387 as_fn_append ac_header_list " socket.h"
2388 as_fn_append ac_header_list " sys/wait.h"
2389 as_fn_append ac_header_list " wait.h"
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
2396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
2398 case $ac_old_set,$ac_new_set in
2399 set,)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,set)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,);;
2408 *)
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
2410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 fi;;
2427 esac
2428 # Pass precious variables to config.status.
2429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
2431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 esac
2438 fi
2439 done
2440 if $ac_cache_corrupted; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 fi
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458 am__api_version='1.13'
2459
2460 ac_aux_dir=
2461 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2474 fi
2475 done
2476 if test -z "$ac_aux_dir"; then
2477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2478 fi
2479
2480 # These three variables are undocumented and unsupported,
2481 # and are intended to be withdrawn in a future Autoconf release.
2482 # They can cause serious problems if a builder's source tree is in a directory
2483 # whose full name contains unusual characters.
2484 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487
2488
2489 # Find a good install program. We prefer a C program (faster),
2490 # so one script is as good as another. But avoid the broken or
2491 # incompatible versions:
2492 # SysV /etc/install, /usr/sbin/install
2493 # SunOS /usr/etc/install
2494 # IRIX /sbin/install
2495 # AIX /bin/install
2496 # AmigaOS /C/install, which installs bootblocks on floppy discs
2497 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500 # OS/2's system install, which has a completely different semantic
2501 # ./install, which can be erroneously created by make from ./install.sh.
2502 # Reject install programs that cannot install multiple files.
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2504 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2505 if test -z "$INSTALL"; then
2506 if ${ac_cv_path_install+:} false; then :
2507 $as_echo_n "(cached) " >&6
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515 case $as_dir/ in #((
2516 ./ | .// | /[cC]/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2519 /usr/ucb/* ) ;;
2520 *)
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2527 if test $ac_prog = install &&
2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # AIX install. It has an incompatible calling convention.
2530 :
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2534 :
2535 else
2536 rm -rf conftest.one conftest.two conftest.dir
2537 echo one > conftest.one
2538 echo two > conftest.two
2539 mkdir conftest.dir
2540 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2541 test -s conftest.one && test -s conftest.two &&
2542 test -s conftest.dir/conftest.one &&
2543 test -s conftest.dir/conftest.two
2544 then
2545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2546 break 3
2547 fi
2548 fi
2549 fi
2550 done
2551 done
2552 ;;
2553 esac
2554
2555 done
2556 IFS=$as_save_IFS
2557
2558 rm -rf conftest.one conftest.two conftest.dir
2559
2560 fi
2561 if test "${ac_cv_path_install+set}" = set; then
2562 INSTALL=$ac_cv_path_install
2563 else
2564 # As a last resort, use the slow shell script. Don't cache a
2565 # value for INSTALL within a source directory, because that will
2566 # break other packages using the cache if that directory is
2567 # removed, or if the value is a relative name.
2568 INSTALL=$ac_install_sh
2569 fi
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2572 $as_echo "$INSTALL" >&6; }
2573
2574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2575 # It thinks the first close brace ends the variable substitution.
2576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577
2578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579
2580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2581
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2583 $as_echo_n "checking whether build environment is sane... " >&6; }
2584 # Reject unsafe characters in $srcdir or the absolute working directory
2585 # name. Accept space and tab only in the latter.
2586 am_lf='
2587 '
2588 case `pwd` in
2589 *[\\\"\#\$\&\'\`$am_lf]*)
2590 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2591 esac
2592 case $srcdir in
2593 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2594 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2595 esac
2596
2597 # Do 'set' in a subshell so we don't clobber the current shell's
2598 # arguments. Must try -L first in case configure is actually a
2599 # symlink; some systems play weird games with the mod time of symlinks
2600 # (eg FreeBSD returns the mod time of the symlink's containing
2601 # directory).
2602 if (
2603 am_has_slept=no
2604 for am_try in 1 2; do
2605 echo "timestamp, slept: $am_has_slept" > conftest.file
2606 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2607 if test "$*" = "X"; then
2608 # -L didn't work.
2609 set X `ls -t "$srcdir/configure" conftest.file`
2610 fi
2611 if test "$*" != "X $srcdir/configure conftest.file" \
2612 && test "$*" != "X conftest.file $srcdir/configure"; then
2613
2614 # If neither matched, then we have a broken ls. This can happen
2615 # if, for instance, CONFIG_SHELL is bash and it inherits a
2616 # broken ls alias from the environment. This has actually
2617 # happened. Such a system could not be considered "sane".
2618 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2619 alias in your environment" "$LINENO" 5
2620 fi
2621 if test "$2" = conftest.file || test $am_try -eq 2; then
2622 break
2623 fi
2624 # Just in case.
2625 sleep 1
2626 am_has_slept=yes
2627 done
2628 test "$2" = conftest.file
2629 )
2630 then
2631 # Ok.
2632 :
2633 else
2634 as_fn_error $? "newly created file is older than distributed files!
2635 Check your system clock" "$LINENO" 5
2636 fi
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2638 $as_echo "yes" >&6; }
2639 # If we didn't sleep, we still need to ensure time stamps of config.status and
2640 # generated files are strictly newer.
2641 am_sleep_pid=
2642 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2643 ( sleep 1 ) &
2644 am_sleep_pid=$!
2645 fi
2646
2647 rm -f conftest.file
2648
2649 test "$program_prefix" != NONE &&
2650 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2651 # Use a double $ so make ignores it.
2652 test "$program_suffix" != NONE &&
2653 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2654 # Double any \ or $.
2655 # By default was `s,x,x', remove it if useless.
2656 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2657 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2658
2659 # expand $ac_aux_dir to an absolute path
2660 am_aux_dir=`cd $ac_aux_dir && pwd`
2661
2662 if test x"${MISSING+set}" != xset; then
2663 case $am_aux_dir in
2664 *\ * | *\ *)
2665 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2666 *)
2667 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2668 esac
2669 fi
2670 # Use eval to expand $SHELL
2671 if eval "$MISSING --is-lightweight"; then
2672 am_missing_run="$MISSING "
2673 else
2674 am_missing_run=
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2676 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2677 fi
2678
2679 if test x"${install_sh}" != xset; then
2680 case $am_aux_dir in
2681 *\ * | *\ *)
2682 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2683 *)
2684 install_sh="\${SHELL} $am_aux_dir/install-sh"
2685 esac
2686 fi
2687
2688 # Installed binaries are usually stripped using 'strip' when the user
2689 # run "make install-strip". However 'strip' might not be the right
2690 # tool to use in cross-compilation environments, therefore Automake
2691 # will honor the 'STRIP' environment variable to overrule this program.
2692 if test "$cross_compiling" != no; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}strip; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_STRIP+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$STRIP"; then
2702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 STRIP=$ac_cv_prog_STRIP
2722 if test -n "$STRIP"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2724 $as_echo "$STRIP" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731 fi
2732 if test -z "$ac_cv_prog_STRIP"; then
2733 ac_ct_STRIP=$STRIP
2734 # Extract the first word of "strip", so it can be a program name with args.
2735 set dummy strip; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test -n "$ac_ct_STRIP"; then
2742 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_ac_ct_STRIP="strip"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2762 if test -n "$ac_ct_STRIP"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2764 $as_echo "$ac_ct_STRIP" >&6; }
2765 else
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2768 fi
2769
2770 if test "x$ac_ct_STRIP" = x; then
2771 STRIP=":"
2772 else
2773 case $cross_compiling:$ac_tool_warned in
2774 yes:)
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2777 ac_tool_warned=yes ;;
2778 esac
2779 STRIP=$ac_ct_STRIP
2780 fi
2781 else
2782 STRIP="$ac_cv_prog_STRIP"
2783 fi
2784
2785 fi
2786 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2789 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2790 if test -z "$MKDIR_P"; then
2791 if ${ac_cv_path_mkdir+:} false; then :
2792 $as_echo_n "(cached) " >&6
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2796 do
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_prog in mkdir gmkdir; do
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2802 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2803 'mkdir (GNU coreutils) '* | \
2804 'mkdir (coreutils) '* | \
2805 'mkdir (fileutils) '4.1*)
2806 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2807 break 3;;
2808 esac
2809 done
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815
2816 test -d ./--version && rmdir ./--version
2817 if test "${ac_cv_path_mkdir+set}" = set; then
2818 MKDIR_P="$ac_cv_path_mkdir -p"
2819 else
2820 # As a last resort, use the slow shell script. Don't cache a
2821 # value for MKDIR_P within a source directory, because that will
2822 # break other packages using the cache if that directory is
2823 # removed, or if the value is a relative name.
2824 MKDIR_P="$ac_install_sh -d"
2825 fi
2826 fi
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2828 $as_echo "$MKDIR_P" >&6; }
2829
2830 for ac_prog in gawk mawk nawk awk
2831 do
2832 # Extract the first word of "$ac_prog", so it can be a program name with args.
2833 set dummy $ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_AWK+:} false; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$AWK"; then
2840 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849 ac_cv_prog_AWK="$ac_prog"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2852 fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 AWK=$ac_cv_prog_AWK
2860 if test -n "$AWK"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2862 $as_echo "$AWK" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869 test -n "$AWK" && break
2870 done
2871
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2873 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2874 set x ${MAKE-make}
2875 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2876 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 cat >conftest.make <<\_ACEOF
2880 SHELL = /bin/sh
2881 all:
2882 @echo '@@@%%%=$(MAKE)=@@@%%%'
2883 _ACEOF
2884 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2885 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2886 *@@@%%%=?*=@@@%%%*)
2887 eval ac_cv_prog_make_${ac_make}_set=yes;;
2888 *)
2889 eval ac_cv_prog_make_${ac_make}_set=no;;
2890 esac
2891 rm -f conftest.make
2892 fi
2893 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895 $as_echo "yes" >&6; }
2896 SET_MAKE=
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2900 SET_MAKE="MAKE=${MAKE-make}"
2901 fi
2902
2903 rm -rf .tst 2>/dev/null
2904 mkdir .tst 2>/dev/null
2905 if test -d .tst; then
2906 am__leading_dot=.
2907 else
2908 am__leading_dot=_
2909 fi
2910 rmdir .tst 2>/dev/null
2911
2912 # Check whether --enable-silent-rules was given.
2913 if test "${enable_silent_rules+set}" = set; then :
2914 enableval=$enable_silent_rules;
2915 fi
2916
2917 case $enable_silent_rules in # (((
2918 yes) AM_DEFAULT_VERBOSITY=0;;
2919 no) AM_DEFAULT_VERBOSITY=1;;
2920 *) AM_DEFAULT_VERBOSITY=1;;
2921 esac
2922 am_make=${MAKE-make}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2924 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2925 if ${am_cv_make_support_nested_variables+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if $as_echo 'TRUE=$(BAR$(V))
2929 BAR0=false
2930 BAR1=true
2931 V=1
2932 am__doit:
2933 @$(TRUE)
2934 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2935 am_cv_make_support_nested_variables=yes
2936 else
2937 am_cv_make_support_nested_variables=no
2938 fi
2939 fi
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2941 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2942 if test $am_cv_make_support_nested_variables = yes; then
2943 AM_V='$(V)'
2944 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2945 else
2946 AM_V=$AM_DEFAULT_VERBOSITY
2947 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2948 fi
2949 AM_BACKSLASH='\'
2950
2951 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2952 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2953 # is not polluted with repeated "-I."
2954 am__isrc=' -I$(srcdir)'
2955 # test to see if srcdir already configured
2956 if test -f $srcdir/config.status; then
2957 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2958 fi
2959 fi
2960
2961 # test whether we have cygpath
2962 if test -z "$CYGPATH_W"; then
2963 if (cygpath --version) >/dev/null 2>/dev/null; then
2964 CYGPATH_W='cygpath -w'
2965 else
2966 CYGPATH_W=echo
2967 fi
2968 fi
2969
2970
2971 # Define the identity of the package.
2972 PACKAGE='ircd-hybrid'
2973 VERSION='TRUNK'
2974
2975
2976 cat >>confdefs.h <<_ACEOF
2977 #define PACKAGE "$PACKAGE"
2978 _ACEOF
2979
2980
2981 cat >>confdefs.h <<_ACEOF
2982 #define VERSION "$VERSION"
2983 _ACEOF
2984
2985 # Some tools Automake needs.
2986
2987 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2988
2989
2990 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2991
2992
2993 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2994
2995
2996 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2997
2998
2999 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3000
3001 # For better backward compatibility. To be removed once Automake 1.9.x
3002 # dies out for good. For more background, see:
3003 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3004 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3005 mkdir_p='$(MKDIR_P)'
3006
3007 # We need awk for the "check" target. The system "awk" is bad on
3008 # some platforms.
3009 # Always define AMTAR for backward compatibility. Yes, it's still used
3010 # in the wild :-( We should find a proper way to deprecate it ...
3011 AMTAR='$${TAR-tar}'
3012
3013 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3021 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3022 # Check whether --enable-maintainer-mode was given.
3023 if test "${enable_maintainer_mode+set}" = set; then :
3024 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3025 else
3026 USE_MAINTAINER_MODE=no
3027 fi
3028
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3030 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3031 if test $USE_MAINTAINER_MODE = yes; then
3032 MAINTAINER_MODE_TRUE=
3033 MAINTAINER_MODE_FALSE='#'
3034 else
3035 MAINTAINER_MODE_TRUE='#'
3036 MAINTAINER_MODE_FALSE=
3037 fi
3038
3039 MAINT=$MAINTAINER_MODE_TRUE
3040
3041
3042 ac_config_headers="$ac_config_headers config.h"
3043
3044
3045
3046 # Checks for programs.
3047 DEPDIR="${am__leading_dot}deps"
3048
3049 ac_config_commands="$ac_config_commands depfiles"
3050
3051
3052 am_make=${MAKE-make}
3053 cat > confinc << 'END'
3054 am__doit:
3055 @echo this is the am__doit target
3056 .PHONY: am__doit
3057 END
3058 # If we don't find an include directive, just comment out the code.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3060 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3061 am__include="#"
3062 am__quote=
3063 _am_result=none
3064 # First try GNU make style include.
3065 echo "include confinc" > confmf
3066 # Ignore all kinds of additional output from 'make'.
3067 case `$am_make -s -f confmf 2> /dev/null` in #(
3068 *the\ am__doit\ target*)
3069 am__include=include
3070 am__quote=
3071 _am_result=GNU
3072 ;;
3073 esac
3074 # Now try BSD make style include.
3075 if test "$am__include" = "#"; then
3076 echo '.include "confinc"' > confmf
3077 case `$am_make -s -f confmf 2> /dev/null` in #(
3078 *the\ am__doit\ target*)
3079 am__include=.include
3080 am__quote="\""
3081 _am_result=BSD
3082 ;;
3083 esac
3084 fi
3085
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3088 $as_echo "$_am_result" >&6; }
3089 rm -f confinc confmf
3090
3091 # Check whether --enable-dependency-tracking was given.
3092 if test "${enable_dependency_tracking+set}" = set; then :
3093 enableval=$enable_dependency_tracking;
3094 fi
3095
3096 if test "x$enable_dependency_tracking" != xno; then
3097 am_depcomp="$ac_aux_dir/depcomp"
3098 AMDEPBACKSLASH='\'
3099 am__nodep='_no'
3100 fi
3101 if test "x$enable_dependency_tracking" != xno; then
3102 AMDEP_TRUE=
3103 AMDEP_FALSE='#'
3104 else
3105 AMDEP_TRUE='#'
3106 AMDEP_FALSE=
3107 fi
3108
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 CC=$ac_cv_prog_CC
3144 if test -n "$CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3146 $as_echo "$CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$ac_cv_prog_CC"; then
3155 ac_ct_CC=$CC
3156 # Extract the first word of "gcc", so it can be a program name with args.
3157 set dummy gcc; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_CC"; then
3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_ac_ct_CC="gcc"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184 if test -n "$ac_ct_CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186 $as_echo "$ac_ct_CC" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192 if test "x$ac_ct_CC" = x; then
3193 CC=""
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199 ac_tool_warned=yes ;;
3200 esac
3201 CC=$ac_ct_CC
3202 fi
3203 else
3204 CC="$ac_cv_prog_CC"
3205 fi
3206
3207 if test -z "$CC"; then
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}cc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_CC="${ac_tool_prefix}cc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3239 $as_echo "$CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 fi
3244
3245
3246 fi
3247 fi
3248 if test -z "$CC"; then
3249 # Extract the first word of "cc", so it can be a program name with args.
3250 set dummy cc; ac_word=$2
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252 $as_echo_n "checking for $ac_word... " >&6; }
3253 if ${ac_cv_prog_CC+:} false; then :
3254 $as_echo_n "(cached) " >&6
3255 else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258 else
3259 ac_prog_rejected=no
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3268 ac_prog_rejected=yes
3269 continue
3270 fi
3271 ac_cv_prog_CC="cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 if test $ac_prog_rejected = yes; then
3280 # We found a bogon in the path, so make sure we never use it.
3281 set dummy $ac_cv_prog_CC
3282 shift
3283 if test $# != 0; then
3284 # We chose a different compiler from the bogus one.
3285 # However, it has the same basename, so the bogon will be chosen
3286 # first if we set CC to just the basename; use the full file name.
3287 shift
3288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3289 fi
3290 fi
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303 fi
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 for ac_prog in cl.exe
3307 do
3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3311 $as_echo_n "checking for $ac_word... " >&6; }
3312 if ${ac_cv_prog_CC+:} false; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 if test -n "$CC"; then
3316 ac_cv_prog_CC="$CC" # Let the user override the test.
3317 else
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321 IFS=$as_save_IFS
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3328 fi
3329 done
3330 done
3331 IFS=$as_save_IFS
3332
3333 fi
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 $as_echo "$CC" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 fi
3343
3344
3345 test -n "$CC" && break
3346 done
3347 fi
3348 if test -z "$CC"; then
3349 ac_ct_CC=$CC
3350 for ac_prog in cl.exe
3351 do
3352 # Extract the first word of "$ac_prog", so it can be a program name with args.
3353 set dummy $ac_prog; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 if test -n "$ac_ct_CC"; then
3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
3367 for ac_exec_ext in '' $ac_executable_extensions; do
3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369 ac_cv_prog_ac_ct_CC="$ac_prog"
3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 break 2
3372 fi
3373 done
3374 done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3380 if test -n "$ac_ct_CC"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3382 $as_echo "$ac_ct_CC" >&6; }
3383 else
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389 test -n "$ac_ct_CC" && break
3390 done
3391
3392 if test "x$ac_ct_CC" = x; then
3393 CC=""
3394 else
3395 case $cross_compiling:$ac_tool_warned in
3396 yes:)
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3399 ac_tool_warned=yes ;;
3400 esac
3401 CC=$ac_ct_CC
3402 fi
3403 fi
3404
3405 fi
3406
3407
3408 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "no acceptable C compiler found in \$PATH
3411 See \`config.log' for more details" "$LINENO" 5; }
3412
3413 # Provide some information about the compiler.
3414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3415 set X $ac_compile
3416 ac_compiler=$2
3417 for ac_option in --version -v -V -qversion; do
3418 { { ac_try="$ac_compiler $ac_option >&5"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3426 ac_status=$?
3427 if test -s conftest.err; then
3428 sed '10a\
3429 ... rest of stderr output deleted ...
3430 10q' conftest.err >conftest.er1
3431 cat conftest.er1 >&5
3432 fi
3433 rm -f conftest.er1 conftest.err
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }
3436 done
3437
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440
3441 int
3442 main ()
3443 {
3444
3445 ;
3446 return 0;
3447 }
3448 _ACEOF
3449 ac_clean_files_save=$ac_clean_files
3450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3451 # Try to create an executable without -o first, disregard a.out.
3452 # It will help us diagnose broken compilers, and finding out an intuition
3453 # of exeext.
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3455 $as_echo_n "checking whether the C compiler works... " >&6; }
3456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3457
3458 # The possible output files:
3459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3460
3461 ac_rmfiles=
3462 for ac_file in $ac_files
3463 do
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3467 esac
3468 done
3469 rm -f $ac_rmfiles
3470
3471 if { { ac_try="$ac_link_default"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link_default") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3485 # so that the user can short-circuit this test for compilers unknown to
3486 # Autoconf.
3487 for ac_file in $ac_files ''
3488 do
3489 test -f "$ac_file" || continue
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3492 ;;
3493 [ab].out )
3494 # We found the default executable, but exeext='' is most
3495 # certainly right.
3496 break;;
3497 *.* )
3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3499 then :; else
3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3501 fi
3502 # We set ac_cv_exeext here because the later test for it is not
3503 # safe: cross compilers may not add the suffix if given an `-o'
3504 # argument, so we may need to know it at that point already.
3505 # Even if this section looks crufty: it has the advantage of
3506 # actually working.
3507 break;;
3508 * )
3509 break;;
3510 esac
3511 done
3512 test "$ac_cv_exeext" = no && ac_cv_exeext=
3513
3514 else
3515 ac_file=''
3516 fi
3517 if test -z "$ac_file"; then :
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error 77 "C compiler cannot create executables
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529 $as_echo "yes" >&6; }
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3532 $as_echo_n "checking for C compiler default output file name... " >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3534 $as_echo "$ac_file" >&6; }
3535 ac_exeext=$ac_cv_exeext
3536
3537 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3538 ac_clean_files=$ac_clean_files_save
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { { ac_try="$ac_link"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 break;;
3562 * ) break;;
3563 esac
3564 done
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 fi
3571 rm -f conftest conftest$ac_cv_exeext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573 $as_echo "$ac_cv_exeext" >&6; }
3574
3575 rm -f conftest.$ac_ext
3576 EXEEXT=$ac_cv_exeext
3577 ac_exeext=$EXEEXT
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdio.h>
3581 int
3582 main ()
3583 {
3584 FILE *f = fopen ("conftest.out", "w");
3585 return ferror (f) || fclose (f) != 0;
3586
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 ac_clean_files="$ac_clean_files conftest.out"
3592 # Check that the compiler produces executables we can run. If not, either
3593 # the compiler is broken, or we cross compile.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3595 $as_echo_n "checking whether we are cross compiling... " >&6; }
3596 if test "$cross_compiling" != yes; then
3597 { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 if { ac_try='./conftest$ac_cv_exeext'
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_try") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; }; then
3619 cross_compiling=no
3620 else
3621 if test "$cross_compiling" = maybe; then
3622 cross_compiling=yes
3623 else
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "cannot run C compiled programs.
3627 If you meant to cross compile, use \`--host'.
3628 See \`config.log' for more details" "$LINENO" 5; }
3629 fi
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3633 $as_echo "$cross_compiling" >&6; }
3634
3635 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3636 ac_clean_files=$ac_clean_files_save
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3638 $as_echo_n "checking for suffix of object files... " >&6; }
3639 if ${ac_cv_objext+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.o conftest.obj
3654 if { { ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compile") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 for ac_file in conftest.o conftest.obj conftest.*; do
3666 test -f "$ac_file" || continue;
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670 break;;
3671 esac
3672 done
3673 else
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 fi
3682 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3683 fi
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3685 $as_echo "$ac_cv_objext" >&6; }
3686 OBJEXT=$ac_cv_objext
3687 ac_objext=$OBJEXT
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3689 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3690 if ${ac_cv_c_compiler_gnu+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699 #ifndef __GNUC__
3700 choke me
3701 #endif
3702
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_compiler_gnu=yes
3709 else
3710 ac_compiler_gnu=no
3711 fi
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3714
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3717 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3718 if test $ac_compiler_gnu = yes; then
3719 GCC=yes
3720 else
3721 GCC=
3722 fi
3723 ac_test_CFLAGS=${CFLAGS+set}
3724 ac_save_CFLAGS=$CFLAGS
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3726 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3727 if ${ac_cv_prog_cc_g+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_save_c_werror_flag=$ac_c_werror_flag
3731 ac_c_werror_flag=yes
3732 ac_cv_prog_cc_g=no
3733 CFLAGS="-g"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3736
3737 int
3738 main ()
3739 {
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_g=yes
3747 else
3748 CFLAGS=""
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761
3762 else
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3764 CFLAGS="-g"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3767
3768 int
3769 main ()
3770 {
3771
3772 ;
3773 return 0;
3774 }
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_g=yes
3778 fi
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 fi
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3792 CFLAGS="-g -O2"
3793 else
3794 CFLAGS="-g"
3795 fi
3796 else
3797 if test "$GCC" = yes; then
3798 CFLAGS="-O2"
3799 else
3800 CFLAGS=
3801 fi
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805 if ${ac_cv_prog_cc_c89+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 ac_cv_prog_cc_c89=no
3809 ac_save_CC=$CC
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <stdarg.h>
3813 #include <stdio.h>
3814 struct stat;
3815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3816 struct buf { int x; };
3817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3818 static char *e (p, i)
3819 char **p;
3820 int i;
3821 {
3822 return p[i];
3823 }
3824 static char *f (char * (*g) (char **, int), char **p, ...)
3825 {
3826 char *s;
3827 va_list v;
3828 va_start (v,p);
3829 s = g (p, va_arg (v,int));
3830 va_end (v);
3831 return s;
3832 }
3833
3834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3835 function prototypes and stuff, but not '\xHH' hex character constants.
3836 These don't provoke an error unfortunately, instead are silently treated
3837 as 'x'. The following induces an error, until -std is added to get
3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3839 array size at least. It's necessary to write '\x00'==0 to get something
3840 that's true only with -std. */
3841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842
3843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3844 inside strings and character constants. */
3845 #define FOO(x) 'x'
3846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847
3848 int test (int i, double x);
3849 struct s1 {int (*f) (int a);};
3850 struct s2 {int (*f) (double a);};
3851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 int argc;
3853 char **argv;
3854 int
3855 main ()
3856 {
3857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 do
3865 CC="$ac_save_CC $ac_arg"
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_c89=$ac_arg
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext
3870 test "x$ac_cv_prog_cc_c89" != "xno" && break
3871 done
3872 rm -f conftest.$ac_ext
3873 CC=$ac_save_CC
3874
3875 fi
3876 # AC_CACHE_VAL
3877 case "x$ac_cv_prog_cc_c89" in
3878 x)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880 $as_echo "none needed" >&6; } ;;
3881 xno)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3883 $as_echo "unsupported" >&6; } ;;
3884 *)
3885 CC="$CC $ac_cv_prog_cc_c89"
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3888 esac
3889 if test "x$ac_cv_prog_cc_c89" != xno; then :
3890
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
3899 depcc="$CC" am_compiler_list=
3900
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3902 $as_echo_n "checking dependency style of $depcc... " >&6; }
3903 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3907 # We make a subdir and do the tests there. Otherwise we can end up
3908 # making bogus files that we don't know about and never remove. For
3909 # instance it was reported that on HP-UX the gcc test will end up
3910 # making a dummy file named 'D' -- because '-MD' means "put the output
3911 # in D".
3912 rm -rf conftest.dir
3913 mkdir conftest.dir
3914 # Copy depcomp to subdir because otherwise we won't find it if we're
3915 # using a relative directory.
3916 cp "$am_depcomp" conftest.dir
3917 cd conftest.dir
3918 # We will build objects and dependencies in a subdirectory because
3919 # it helps to detect inapplicable dependency modes. For instance
3920 # both Tru64's cc and ICC support -MD to output dependencies as a
3921 # side effect of compilation, but ICC will put the dependencies in
3922 # the current directory while Tru64 will put them in the object
3923 # directory.
3924 mkdir sub
3925
3926 am_cv_CC_dependencies_compiler_type=none
3927 if test "$am_compiler_list" = ""; then
3928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3929 fi
3930 am__universal=false
3931 case " $depcc " in #(
3932 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3933 esac
3934
3935 for depmode in $am_compiler_list; do
3936 # Setup a source with many dependencies, because some compilers
3937 # like to wrap large dependency lists on column 80 (with \), and
3938 # we should not choose a depcomp mode which is confused by this.
3939 #
3940 # We need to recreate these files for each test, as the compiler may
3941 # overwrite some of them when testing with obscure command lines.
3942 # This happens at least with the AIX C compiler.
3943 : > sub/conftest.c
3944 for i in 1 2 3 4 5 6; do
3945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3946 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3947 # Solaris 10 /bin/sh.
3948 echo '/* dummy */' > sub/conftst$i.h
3949 done
3950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3951
3952 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3953 # mode. It turns out that the SunPro C++ compiler does not properly
3954 # handle '-M -o', and we need to detect this. Also, some Intel
3955 # versions had trouble with output in subdirs.
3956 am__obj=sub/conftest.${OBJEXT-o}
3957 am__minus_obj="-o $am__obj"
3958 case $depmode in
3959 gcc)
3960 # This depmode causes a compiler race in universal mode.
3961 test "$am__universal" = false || continue
3962 ;;
3963 nosideeffect)
3964 # After this tag, mechanisms are not by side-effect, so they'll
3965 # only be used when explicitly requested.
3966 if test "x$enable_dependency_tracking" = xyes; then
3967 continue
3968 else
3969 break
3970 fi
3971 ;;
3972 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3973 # This compiler won't grok '-c -o', but also, the minuso test has
3974 # not run yet. These depmodes are late enough in the game, and
3975 # so weak that their functioning should not be impacted.
3976 am__obj=conftest.${OBJEXT-o}
3977 am__minus_obj=
3978 ;;
3979 none) break ;;
3980 esac
3981 if depmode=$depmode \
3982 source=sub/conftest.c object=$am__obj \
3983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3985 >/dev/null 2>conftest.err &&
3986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3990 # icc doesn't choke on unknown options, it will just issue warnings
3991 # or remarks (even with -Werror). So we grep stderr for any message
3992 # that says an option was ignored or not supported.
3993 # When given -MP, icc 7.0 and 7.1 complain thusly:
3994 # icc: Command line warning: ignoring option '-M'; no argument required
3995 # The diagnosis changed in icc 8.0:
3996 # icc: Command line remark: option '-MP' not supported
3997 if (grep 'ignoring option' conftest.err ||
3998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3999 am_cv_CC_dependencies_compiler_type=$depmode
4000 break
4001 fi
4002 fi
4003 done
4004
4005 cd ..
4006 rm -rf conftest.dir
4007 else
4008 am_cv_CC_dependencies_compiler_type=none
4009 fi
4010
4011 fi
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4013 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4015
4016 if
4017 test "x$enable_dependency_tracking" != xno \
4018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4019 am__fastdepCC_TRUE=
4020 am__fastdepCC_FALSE='#'
4021 else
4022 am__fastdepCC_TRUE='#'
4023 am__fastdepCC_FALSE=
4024 fi
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4028 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4029 if ${ac_cv_prog_cc_c99+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 ac_cv_prog_cc_c99=no
4033 ac_save_CC=$CC
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdarg.h>
4037 #include <stdbool.h>
4038 #include <stdlib.h>
4039 #include <wchar.h>
4040 #include <stdio.h>
4041
4042 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4043 #define debug(...) fprintf (stderr, __VA_ARGS__)
4044 #define showlist(...) puts (#__VA_ARGS__)
4045 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4046 static void
4047 test_varargs_macros (void)
4048 {
4049 int x = 1234;
4050 int y = 5678;
4051 debug ("Flag");
4052 debug ("X = %d\n", x);
4053 showlist (The first, second, and third items.);
4054 report (x>y, "x is %d but y is %d", x, y);
4055 }
4056
4057 // Check long long types.
4058 #define BIG64 18446744073709551615ull
4059 #define BIG32 4294967295ul
4060 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4061 #if !BIG_OK
4062 your preprocessor is broken;
4063 #endif
4064 #if BIG_OK
4065 #else
4066 your preprocessor is broken;
4067 #endif
4068 static long long int bignum = -9223372036854775807LL;
4069 static unsigned long long int ubignum = BIG64;
4070
4071 struct incomplete_array
4072 {
4073 int datasize;
4074 double data[];
4075 };
4076
4077 struct named_init {
4078 int number;
4079 const wchar_t *name;
4080 double average;
4081 };
4082
4083 typedef const char *ccp;
4084
4085 static inline int
4086 test_restrict (ccp restrict text)
4087 {
4088 // See if C++-style comments work.
4089 // Iterate through items via the restricted pointer.
4090 // Also check for declarations in for loops.
4091 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4092 continue;
4093 return 0;
4094 }
4095
4096 // Check varargs and va_copy.
4097 static void
4098 test_varargs (const char *format, ...)
4099 {
4100 va_list args;
4101 va_start (args, format);
4102 va_list args_copy;
4103 va_copy (args_copy, args);
4104
4105 const char *str;
4106 int number;
4107 float fnumber;
4108
4109 while (*format)
4110 {
4111 switch (*format++)
4112 {
4113 case 's': // string
4114 str = va_arg (args_copy, const char *);
4115 break;
4116 case 'd': // int
4117 number = va_arg (args_copy, int);
4118 break;
4119 case 'f': // float
4120 fnumber = va_arg (args_copy, double);
4121 break;
4122 default:
4123 break;
4124 }
4125 }
4126 va_end (args_copy);
4127 va_end (args);
4128 }
4129
4130 int
4131 main ()
4132 {
4133
4134 // Check bool.
4135 _Bool success = false;
4136
4137 // Check restrict.
4138 if (test_restrict ("String literal") == 0)
4139 success = true;
4140 char *restrict newvar = "Another string";
4141
4142 // Check varargs.
4143 test_varargs ("s, d' f .", "string", 65, 34.234);
4144 test_varargs_macros ();
4145
4146 // Check flexible array members.
4147 struct incomplete_array *ia =
4148 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4149 ia->datasize = 10;
4150 for (int i = 0; i < ia->datasize; ++i)
4151 ia->data[i] = i * 1.234;
4152
4153 // Check named initializers.
4154 struct named_init ni = {
4155 .number = 34,
4156 .name = L"Test wide string",
4157 .average = 543.34343,
4158 };
4159
4160 ni.number = 58;
4161
4162 int dynamic_array[ni.number];
4163 dynamic_array[ni.number - 1] = 543;
4164
4165 // work around unused variable warnings
4166 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4167 || dynamic_array[ni.number - 1] != 543);
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4174 do
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c99=$ac_arg
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c99" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4184
4185 fi
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c99" in
4188 x)
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4194 *)
4195 CC="$CC $ac_cv_prog_cc_c99"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4197 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c99" != xno; then :
4200
4201 fi
4202
4203
4204 if test "$ac_cv_prog_cc_c99" = "no"; then :
4205 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4206 fi
4207 for ac_prog in 'bison -y' byacc
4208 do
4209 # Extract the first word of "$ac_prog", so it can be a program name with args.
4210 set dummy $ac_prog; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if ${ac_cv_prog_YACC+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$YACC"; then
4217 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4226 ac_cv_prog_YACC="$ac_prog"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 YACC=$ac_cv_prog_YACC
4237 if test -n "$YACC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4239 $as_echo "$YACC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 test -n "$YACC" && break
4247 done
4248 test -n "$YACC" || YACC="yacc"
4249
4250
4251 for ac_prog in flex lex
4252 do
4253 # Extract the first word of "$ac_prog", so it can be a program name with args.
4254 set dummy $ac_prog; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_LEX+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$LEX"; then
4261 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270 ac_cv_prog_LEX="$ac_prog"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4273 fi
4274 done
4275 done
4276 IFS=$as_save_IFS
4277
4278 fi
4279 fi
4280 LEX=$ac_cv_prog_LEX
4281 if test -n "$LEX"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4283 $as_echo "$LEX" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290 test -n "$LEX" && break
4291 done
4292 test -n "$LEX" || LEX=":"
4293
4294 if test "x$LEX" != "x:"; then
4295 cat >conftest.l <<_ACEOF
4296 %%
4297 a { ECHO; }
4298 b { REJECT; }
4299 c { yymore (); }
4300 d { yyless (1); }
4301 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4302 yyless ((input () != 0)); }
4303 f { unput (yytext[0]); }
4304 . { BEGIN INITIAL; }
4305 %%
4306 #ifdef YYTEXT_POINTER
4307 extern char *yytext;
4308 #endif
4309 int
4310 main (void)
4311 {
4312 return ! yylex () + ! yywrap ();
4313 }
4314 _ACEOF
4315 { { ac_try="$LEX conftest.l"
4316 case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322 (eval "$LEX conftest.l") 2>&5
4323 ac_status=$?
4324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325 test $ac_status = 0; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4327 $as_echo_n "checking lex output file root... " >&6; }
4328 if ${ac_cv_prog_lex_root+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331
4332 if test -f lex.yy.c; then
4333 ac_cv_prog_lex_root=lex.yy
4334 elif test -f lexyy.c; then
4335 ac_cv_prog_lex_root=lexyy
4336 else
4337 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4338 fi
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4341 $as_echo "$ac_cv_prog_lex_root" >&6; }
4342 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4343
4344 if test -z "${LEXLIB+set}"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4346 $as_echo_n "checking lex library... " >&6; }
4347 if ${ac_cv_lib_lex+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350
4351 ac_save_LIBS=$LIBS
4352 ac_cv_lib_lex='none needed'
4353 for ac_lib in '' -lfl -ll; do
4354 LIBS="$ac_lib $ac_save_LIBS"
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 `cat $LEX_OUTPUT_ROOT.c`
4358 _ACEOF
4359 if ac_fn_c_try_link "$LINENO"; then :
4360 ac_cv_lib_lex=$ac_lib
4361 fi
4362 rm -f core conftest.err conftest.$ac_objext \
4363 conftest$ac_exeext conftest.$ac_ext
4364 test "$ac_cv_lib_lex" != 'none needed' && break
4365 done
4366 LIBS=$ac_save_LIBS
4367
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4370 $as_echo "$ac_cv_lib_lex" >&6; }
4371 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4372 fi
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4376 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4377 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 # POSIX says lex can declare yytext either as a pointer or an array; the
4381 # default is implementation-dependent. Figure out which it is, since
4382 # not all implementations provide the %pointer and %array declarations.
4383 ac_cv_prog_lex_yytext_pointer=no
4384 ac_save_LIBS=$LIBS
4385 LIBS="$LEXLIB $ac_save_LIBS"
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h. */
4388
4389 #define YYTEXT_POINTER 1
4390 `cat $LEX_OUTPUT_ROOT.c`
4391 _ACEOF
4392 if ac_fn_c_try_link "$LINENO"; then :
4393 ac_cv_prog_lex_yytext_pointer=yes
4394 fi
4395 rm -f core conftest.err conftest.$ac_objext \
4396 conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_save_LIBS
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4401 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4402 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4403
4404 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4405
4406 fi
4407 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4408
4409 fi
4410 if test "$LEX" = :; then
4411 LEX=${am_missing_run}flex
4412 fi
4413
4414
4415 # Initializing libtool.
4416
4417
4418
4419
4420
4421
4422
4423 case `pwd` in
4424 *\ * | *\ *)
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4426 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4427 esac
4428
4429
4430
4431 macro_version='2.4.2'
4432 macro_revision='1.3337'
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 ltmain="$ac_aux_dir/ltmain.sh"
4447
4448 # Make sure we can run config.sub.
4449 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4450 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4451
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4453 $as_echo_n "checking build system type... " >&6; }
4454 if ${ac_cv_build+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 ac_build_alias=$build_alias
4458 test "x$ac_build_alias" = x &&
4459 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4460 test "x$ac_build_alias" = x &&
4461 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4462 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4464
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4467 $as_echo "$ac_cv_build" >&6; }
4468 case $ac_cv_build in
4469 *-*-*) ;;
4470 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4471 esac
4472 build=$ac_cv_build
4473 ac_save_IFS=$IFS; IFS='-'
4474 set x $ac_cv_build
4475 shift
4476 build_cpu=$1
4477 build_vendor=$2
4478 shift; shift
4479 # Remember, the first character of IFS is used to create $*,
4480 # except with old shells:
4481 build_os=$*
4482 IFS=$ac_save_IFS
4483 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4487 $as_echo_n "checking host system type... " >&6; }
4488 if ${ac_cv_host+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test "x$host_alias" = x; then
4492 ac_cv_host=$ac_cv_build
4493 else
4494 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4496 fi
4497
4498 fi
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4500 $as_echo "$ac_cv_host" >&6; }
4501 case $ac_cv_host in
4502 *-*-*) ;;
4503 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4504 esac
4505 host=$ac_cv_host
4506 ac_save_IFS=$IFS; IFS='-'
4507 set x $ac_cv_host
4508 shift
4509 host_cpu=$1
4510 host_vendor=$2
4511 shift; shift
4512 # Remember, the first character of IFS is used to create $*,
4513 # except with old shells:
4514 host_os=$*
4515 IFS=$ac_save_IFS
4516 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4517
4518
4519 # Backslashify metacharacters that are still active within
4520 # double-quoted strings.
4521 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4522
4523 # Same as above, but do not quote variable references.
4524 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4525
4526 # Sed substitution to delay expansion of an escaped shell variable in a
4527 # double_quote_subst'ed string.
4528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4529
4530 # Sed substitution to delay expansion of an escaped single quote.
4531 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4532
4533 # Sed substitution to avoid accidental globbing in evaled expressions
4534 no_glob_subst='s/\*/\\\*/g'
4535
4536 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4538 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4541 $as_echo_n "checking how to print strings... " >&6; }
4542 # Test print first, because it will be a builtin if present.
4543 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4544 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4545 ECHO='print -r --'
4546 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4547 ECHO='printf %s\n'
4548 else
4549 # Use this function as a fallback that always works.
4550 func_fallback_echo ()
4551 {
4552 eval 'cat <<_LTECHO_EOF
4553 $1
4554 _LTECHO_EOF'
4555 }
4556 ECHO='func_fallback_echo'
4557 fi
4558
4559 # func_echo_all arg...
4560 # Invoke $ECHO with all args, space-separated.
4561 func_echo_all ()
4562 {
4563 $ECHO ""
4564 }
4565
4566 case "$ECHO" in
4567 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4568 $as_echo "printf" >&6; } ;;
4569 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4570 $as_echo "print -r" >&6; } ;;
4571 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4572 $as_echo "cat" >&6; } ;;
4573 esac
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4590 if ${ac_cv_path_SED+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4594 for ac_i in 1 2 3 4 5 6 7; do
4595 ac_script="$ac_script$as_nl$ac_script"
4596 done
4597 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4598 { ac_script=; unset ac_script;}
4599 if test -z "$SED"; then
4600 ac_path_SED_found=false
4601 # Loop through the user's path and test for each of PROGNAME-LIST
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_prog in sed gsed; do
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4610 as_fn_executable_p "$ac_path_SED" || continue
4611 # Check for GNU ac_path_SED and select it if it is found.
4612 # Check for GNU $ac_path_SED
4613 case `"$ac_path_SED" --version 2>&1` in
4614 *GNU*)
4615 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4616 *)
4617 ac_count=0
4618 $as_echo_n 0123456789 >"conftest.in"
4619 while :
4620 do
4621 cat "conftest.in" "conftest.in" >"conftest.tmp"
4622 mv "conftest.tmp" "conftest.in"
4623 cp "conftest.in" "conftest.nl"
4624 $as_echo '' >> "conftest.nl"
4625 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627 as_fn_arith $ac_count + 1 && ac_count=$as_val
4628 if test $ac_count -gt ${ac_path_SED_max-0}; then
4629 # Best one so far, save it but keep looking for a better one
4630 ac_cv_path_SED="$ac_path_SED"
4631 ac_path_SED_max=$ac_count
4632 fi
4633 # 10*(2^10) chars as input seems more than enough
4634 test $ac_count -gt 10 && break
4635 done
4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 esac
4638
4639 $ac_path_SED_found && break 3
4640 done
4641 done
4642 done
4643 IFS=$as_save_IFS
4644 if test -z "$ac_cv_path_SED"; then
4645 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4646 fi
4647 else
4648 ac_cv_path_SED=$SED
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4653 $as_echo "$ac_cv_path_SED" >&6; }
4654 SED="$ac_cv_path_SED"
4655 rm -f conftest.sed
4656
4657 test -z "$SED" && SED=sed
4658 Xsed="$SED -e 1s/^X//"
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if ${ac_cv_path_GREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in grep ggrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_GREP" || continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4690 *GNU*)
4691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4692 *)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP="$ac_path_GREP"
4707 ac_path_GREP_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715 $ac_path_GREP_found && break 3
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722 fi
4723 else
4724 ac_cv_path_GREP=$GREP
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if ${ac_cv_path_EGREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4740 else
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in egrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752 as_fn_executable_p "$ac_path_EGREP" || continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4756 *GNU*)
4757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4758 *)
4759 ac_count=0
4760 $as_echo_n 0123456789 >"conftest.in"
4761 while :
4762 do
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP="$ac_path_EGREP"
4773 ac_path_EGREP_max=$ac_count
4774 fi
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4777 done
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781 $ac_path_EGREP_found && break 3
4782 done
4783 done
4784 done
4785 IFS=$as_save_IFS
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788 fi
4789 else
4790 ac_cv_path_EGREP=$EGREP
4791 fi
4792
4793 fi
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4801 $as_echo_n "checking for fgrep... " >&6; }
4802 if ${ac_cv_path_FGREP+:} false; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4806 then ac_cv_path_FGREP="$GREP -F"
4807 else
4808 if test -z "$FGREP"; then
4809 ac_path_FGREP_found=false
4810 # Loop through the user's path and test for each of PROGNAME-LIST
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 do
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_prog in fgrep; do
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4819 as_fn_executable_p "$ac_path_FGREP" || continue
4820 # Check for GNU ac_path_FGREP and select it if it is found.
4821 # Check for GNU $ac_path_FGREP
4822 case `"$ac_path_FGREP" --version 2>&1` in
4823 *GNU*)
4824 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4825 *)
4826 ac_count=0
4827 $as_echo_n 0123456789 >"conftest.in"
4828 while :
4829 do
4830 cat "conftest.in" "conftest.in" >"conftest.tmp"
4831 mv "conftest.tmp" "conftest.in"
4832 cp "conftest.in" "conftest.nl"
4833 $as_echo 'FGREP' >> "conftest.nl"
4834 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836 as_fn_arith $ac_count + 1 && ac_count=$as_val
4837 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4838 # Best one so far, save it but keep looking for a better one
4839 ac_cv_path_FGREP="$ac_path_FGREP"
4840 ac_path_FGREP_max=$ac_count
4841 fi
4842 # 10*(2^10) chars as input seems more than enough
4843 test $ac_count -gt 10 && break
4844 done
4845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847
4848 $ac_path_FGREP_found && break 3
4849 done
4850 done
4851 done
4852 IFS=$as_save_IFS
4853 if test -z "$ac_cv_path_FGREP"; then
4854 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855 fi
4856 else
4857 ac_cv_path_FGREP=$FGREP
4858 fi
4859
4860 fi
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4863 $as_echo "$ac_cv_path_FGREP" >&6; }
4864 FGREP="$ac_cv_path_FGREP"
4865
4866
4867 test -z "$GREP" && GREP=grep
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 # Check whether --with-gnu-ld was given.
4888 if test "${with_gnu_ld+set}" = set; then :
4889 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4890 else
4891 with_gnu_ld=no
4892 fi
4893
4894 ac_prog=ld
4895 if test "$GCC" = yes; then
4896 # Check if gcc -print-prog-name=ld gives a path.
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4898 $as_echo_n "checking for ld used by $CC... " >&6; }
4899 case $host in
4900 *-*-mingw*)
4901 # gcc leaves a trailing carriage return which upsets mingw
4902 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4903 *)
4904 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4905 esac
4906 case $ac_prog in
4907 # Accept absolute paths.
4908 [\\/]* | ?:[\\/]*)
4909 re_direlt='/[^/][^/]*/\.\./'
4910 # Canonicalize the pathname of ld
4911 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4912 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4913 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4914 done
4915 test -z "$LD" && LD="$ac_prog"
4916 ;;
4917 "")
4918 # If it fails, then pretend we aren't using GCC.
4919 ac_prog=ld
4920 ;;
4921 *)
4922 # If it is relative, then search for the first ld in PATH.
4923 with_gnu_ld=unknown
4924 ;;
4925 esac
4926 elif test "$with_gnu_ld" = yes; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4928 $as_echo_n "checking for GNU ld... " >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4931 $as_echo_n "checking for non-GNU ld... " >&6; }
4932 fi
4933 if ${lt_cv_path_LD+:} false; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -z "$LD"; then
4937 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938 for ac_dir in $PATH; do
4939 IFS="$lt_save_ifs"
4940 test -z "$ac_dir" && ac_dir=.
4941 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4942 lt_cv_path_LD="$ac_dir/$ac_prog"
4943 # Check to see if the program is GNU ld. I'd rather use --version,
4944 # but apparently some variants of GNU ld only accept -v.
4945 # Break only if it was the GNU/non-GNU ld that we prefer.
4946 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4947 *GNU* | *'with BFD'*)
4948 test "$with_gnu_ld" != no && break
4949 ;;
4950 *)
4951 test "$with_gnu_ld" != yes && break
4952 ;;
4953 esac
4954 fi
4955 done
4956 IFS="$lt_save_ifs"
4957 else
4958 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4959 fi
4960 fi
4961
4962 LD="$lt_cv_path_LD"
4963 if test -n "$LD"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4965 $as_echo "$LD" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4973 if ${lt_cv_prog_gnu_ld+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4977 case `$LD -v 2>&1 </dev/null` in
4978 *GNU* | *'with BFD'*)
4979 lt_cv_prog_gnu_ld=yes
4980 ;;
4981 *)
4982 lt_cv_prog_gnu_ld=no
4983 ;;
4984 esac
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4988 with_gnu_ld=$lt_cv_prog_gnu_ld
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4999 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5000 if ${lt_cv_path_NM+:} false; then :
5001 $as_echo_n "(cached) " >&6
5002 else
5003 if test -n "$NM"; then
5004 # Let the user override the test.
5005 lt_cv_path_NM="$NM"
5006 else
5007 lt_nm_to_check="${ac_tool_prefix}nm"
5008 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5009 lt_nm_to_check="$lt_nm_to_check nm"
5010 fi
5011 for lt_tmp_nm in $lt_nm_to_check; do
5012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5014 IFS="$lt_save_ifs"
5015 test -z "$ac_dir" && ac_dir=.
5016 tmp_nm="$ac_dir/$lt_tmp_nm"
5017 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5018 # Check to see if the nm accepts a BSD-compat flag.
5019 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5020 # nm: unknown option "B" ignored
5021 # Tru64's nm complains that /dev/null is an invalid object file
5022 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5023 */dev/null* | *'Invalid file or object type'*)
5024 lt_cv_path_NM="$tmp_nm -B"
5025 break
5026 ;;
5027 *)
5028 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5029 */dev/null*)
5030 lt_cv_path_NM="$tmp_nm -p"
5031 break
5032 ;;
5033 *)
5034 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5035 continue # so that we can try to find one that supports BSD flags
5036 ;;
5037 esac
5038 ;;
5039 esac
5040 fi
5041 done
5042 IFS="$lt_save_ifs"
5043 done
5044 : ${lt_cv_path_NM=no}
5045 fi
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5048 $as_echo "$lt_cv_path_NM" >&6; }
5049 if test "$lt_cv_path_NM" != "no"; then
5050 NM="$lt_cv_path_NM"
5051 else
5052 # Didn't find any BSD compatible name lister, look for dumpbin.
5053 if test -n "$DUMPBIN"; then :
5054 # Let the user override the test.
5055 else
5056 if test -n "$ac_tool_prefix"; then
5057 for ac_prog in dumpbin "link -dump"
5058 do
5059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_DUMPBIN+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -n "$DUMPBIN"; then
5067 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 DUMPBIN=$ac_cv_prog_DUMPBIN
5087 if test -n "$DUMPBIN"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5089 $as_echo "$DUMPBIN" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096 test -n "$DUMPBIN" && break
5097 done
5098 fi
5099 if test -z "$DUMPBIN"; then
5100 ac_ct_DUMPBIN=$DUMPBIN
5101 for ac_prog in dumpbin "link -dump"
5102 do
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$ac_ct_DUMPBIN"; then
5111 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5131 if test -n "$ac_ct_DUMPBIN"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5133 $as_echo "$ac_ct_DUMPBIN" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140 test -n "$ac_ct_DUMPBIN" && break
5141 done
5142
5143 if test "x$ac_ct_DUMPBIN" = x; then
5144 DUMPBIN=":"
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 DUMPBIN=$ac_ct_DUMPBIN
5153 fi
5154 fi
5155
5156 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5157 *COFF*)
5158 DUMPBIN="$DUMPBIN -symbols"
5159 ;;
5160 *)
5161 DUMPBIN=:
5162 ;;
5163 esac
5164 fi
5165
5166 if test "$DUMPBIN" != ":"; then
5167 NM="$DUMPBIN"
5168 fi
5169 fi
5170 test -z "$NM" && NM=nm
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5178 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5179 if ${lt_cv_nm_interface+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 lt_cv_nm_interface="BSD nm"
5183 echo "int some_variable = 0;" > conftest.$ac_ext
5184 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5185 (eval "$ac_compile" 2>conftest.err)
5186 cat conftest.err >&5
5187 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5191 cat conftest.out >&5
5192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5193 lt_cv_nm_interface="MS dumpbin"
5194 fi
5195 rm -f conftest*
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5198 $as_echo "$lt_cv_nm_interface" >&6; }
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5201 $as_echo_n "checking whether ln -s works... " >&6; }
5202 LN_S=$as_ln_s
5203 if test "$LN_S" = "ln -s"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5208 $as_echo "no, using $LN_S" >&6; }
5209 fi
5210
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if ${lt_cv_sys_max_cmd_len+:} false; then :
5215 $as_echo_n "(cached) " >&6
5216 else
5217 i=0
5218 teststring="ABCD"
5219
5220 case $build_os in
5221 msdosdjgpp*)
5222 # On DJGPP, this test can blow up pretty badly due to problems in libc
5223 # (any single argument exceeding 2000 bytes causes a buffer overrun
5224 # during glob expansion). Even if it were fixed, the result of this
5225 # check would be larger than it should be.
5226 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5227 ;;
5228
5229 gnu*)
5230 # Under GNU Hurd, this test is not required because there is
5231 # no limit to the length of command line arguments.
5232 # Libtool will interpret -1 as no limit whatsoever
5233 lt_cv_sys_max_cmd_len=-1;
5234 ;;
5235
5236 cygwin* | mingw* | cegcc*)
5237 # On Win9x/ME, this test blows up -- it succeeds, but takes
5238 # about 5 minutes as the teststring grows exponentially.
5239 # Worse, since 9x/ME are not pre-emptively multitasking,
5240 # you end up with a "frozen" computer, even though with patience
5241 # the test eventually succeeds (with a max line length of 256k).
5242 # Instead, let's just punt: use the minimum linelength reported by
5243 # all of the supported platforms: 8192 (on NT/2K/XP).
5244 lt_cv_sys_max_cmd_len=8192;
5245 ;;
5246
5247 mint*)
5248 # On MiNT this can take a long time and run out of memory.
5249 lt_cv_sys_max_cmd_len=8192;
5250 ;;
5251
5252 amigaos*)
5253 # On AmigaOS with pdksh, this test takes hours, literally.
5254 # So we just punt and use a minimum line length of 8192.
5255 lt_cv_sys_max_cmd_len=8192;
5256 ;;
5257
5258 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5259 # This has been around since 386BSD, at least. Likely further.
5260 if test -x /sbin/sysctl; then
5261 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5262 elif test -x /usr/sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5264 else
5265 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5266 fi
5267 # And add a safety zone
5268 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5270 ;;
5271
5272 interix*)
5273 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5274 lt_cv_sys_max_cmd_len=196608
5275 ;;
5276
5277 os2*)
5278 # The test takes a long time on OS/2.
5279 lt_cv_sys_max_cmd_len=8192
5280 ;;
5281
5282 osf*)
5283 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5284 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5285 # nice to cause kernel panics so lets avoid the loop below.
5286 # First set a reasonable default.
5287 lt_cv_sys_max_cmd_len=16384
5288 #
5289 if test -x /sbin/sysconfig; then
5290 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5291 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5292 esac
5293 fi
5294 ;;
5295 sco3.2v5*)
5296 lt_cv_sys_max_cmd_len=102400
5297 ;;
5298 sysv5* | sco5v6* | sysv4.2uw2*)
5299 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5300 if test -n "$kargmax"; then
5301 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5302 else
5303 lt_cv_sys_max_cmd_len=32768
5304 fi
5305 ;;
5306 *)
5307 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5308 if test -n "$lt_cv_sys_max_cmd_len"; then
5309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5311 else
5312 # Make teststring a little bigger before we do anything with it.
5313 # a 1K string should be a reasonable start.
5314 for i in 1 2 3 4 5 6 7 8 ; do
5315 teststring=$teststring$teststring
5316 done
5317 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5318 # If test is not a shell built-in, we'll probably end up computing a
5319 # maximum length that is only half of the actual maximum length, but
5320 # we can't tell.
5321 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5322 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5323 test $i != 17 # 1/2 MB should be enough
5324 do
5325 i=`expr $i + 1`
5326 teststring=$teststring$teststring
5327 done
5328 # Only check the string length outside the loop.
5329 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5330 teststring=
5331 # Add a significant safety factor because C++ compilers can tack on
5332 # massive amounts of additional arguments before passing them to the
5333 # linker. It appears as though 1/2 is a usable value.
5334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5335 fi
5336 ;;
5337 esac
5338
5339 fi
5340
5341 if test -n $lt_cv_sys_max_cmd_len ; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5343 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5346 $as_echo "none" >&6; }
5347 fi
5348 max_cmd_len=$lt_cv_sys_max_cmd_len
5349
5350
5351
5352
5353
5354
5355 : ${CP="cp -f"}
5356 : ${MV="mv -f"}
5357 : ${RM="rm -f"}
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5360 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5361 # Try some XSI features
5362 xsi_shell=no
5363 ( _lt_dummy="a/b/c"
5364 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5365 = c,a/b,b/c, \
5366 && eval 'test $(( 1 + 1 )) -eq 2 \
5367 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5368 && xsi_shell=yes
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5370 $as_echo "$xsi_shell" >&6; }
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5374 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5375 lt_shell_append=no
5376 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5377 >/dev/null 2>&1 \
5378 && lt_shell_append=yes
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5380 $as_echo "$lt_shell_append" >&6; }
5381
5382
5383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5384 lt_unset=unset
5385 else
5386 lt_unset=false
5387 fi
5388
5389
5390
5391
5392
5393 # test EBCDIC or ASCII
5394 case `echo X|tr X '\101'` in
5395 A) # ASCII based system
5396 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5397 lt_SP2NL='tr \040 \012'
5398 lt_NL2SP='tr \015\012 \040\040'
5399 ;;
5400 *) # EBCDIC based system
5401 lt_SP2NL='tr \100 \n'
5402 lt_NL2SP='tr \r\n \100\100'
5403 ;;
5404 esac
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5415 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5416 if ${lt_cv_to_host_file_cmd+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 case $host in
5420 *-*-mingw* )
5421 case $build in
5422 *-*-mingw* ) # actually msys
5423 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5424 ;;
5425 *-*-cygwin* )
5426 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5427 ;;
5428 * ) # otherwise, assume *nix
5429 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5430 ;;
5431 esac
5432 ;;
5433 *-*-cygwin* )
5434 case $build in
5435 *-*-mingw* ) # actually msys
5436 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5437 ;;
5438 *-*-cygwin* )
5439 lt_cv_to_host_file_cmd=func_convert_file_noop
5440 ;;
5441 * ) # otherwise, assume *nix
5442 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5443 ;;
5444 esac
5445 ;;
5446 * ) # unhandled hosts (and "normal" native builds)
5447 lt_cv_to_host_file_cmd=func_convert_file_noop
5448 ;;
5449 esac
5450
5451 fi
5452
5453 to_host_file_cmd=$lt_cv_to_host_file_cmd
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5455 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5456
5457
5458
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5462 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5463 if ${lt_cv_to_tool_file_cmd+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 #assume ordinary cross tools, or native build.
5467 lt_cv_to_tool_file_cmd=func_convert_file_noop
5468 case $host in
5469 *-*-mingw* )
5470 case $build in
5471 *-*-mingw* ) # actually msys
5472 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5473 ;;
5474 esac
5475 ;;
5476 esac
5477
5478 fi
5479
5480 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5482 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5490 if ${lt_cv_ld_reload_flag+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 lt_cv_ld_reload_flag='-r'
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5497 reload_flag=$lt_cv_ld_reload_flag
5498 case $reload_flag in
5499 "" | " "*) ;;
5500 *) reload_flag=" $reload_flag" ;;
5501 esac
5502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5503 case $host_os in
5504 cygwin* | mingw* | pw32* | cegcc*)
5505 if test "$GCC" != yes; then
5506 reload_cmds=false
5507 fi
5508 ;;
5509 darwin*)
5510 if test "$GCC" = yes; then
5511 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5512 else
5513 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514 fi
5515 ;;
5516 esac
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 if test -n "$ac_tool_prefix"; then
5527 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$OBJDUMP"; then
5535 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548 done
5549 done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566 ac_ct_OBJDUMP=$OBJDUMP
5567 # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603 if test "x$ac_ct_OBJDUMP" = x; then
5604 OBJDUMP="false"
5605 else
5606 case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612 OBJDUMP=$ac_ct_OBJDUMP
5613 fi
5614 else
5615 OBJDUMP="$ac_cv_prog_OBJDUMP"
5616 fi
5617
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # `unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # which responds to the $file_magic_cmd with a given extended regex.
5644 # If you have `file' or equivalent on your system and you're not sure
5645 # whether `pass_all' will *always* work, you probably want this one.
5646
5647 case $host_os in
5648 aix[4-9]*)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651
5652 beos*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 bsdi[45]*)
5657 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658 lt_cv_file_magic_cmd='/usr/bin/file -L'
5659 lt_cv_file_magic_test_file=/shlib/libc.so
5660 ;;
5661
5662 cygwin*)
5663 # func_win32_libid is a shell function defined in ltmain.sh
5664 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665 lt_cv_file_magic_cmd='func_win32_libid'
5666 ;;
5667
5668 mingw* | pw32*)
5669 # Base MSYS/MinGW do not provide the 'file' command needed by
5670 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671 # unless we find 'file', for example because we are cross-compiling.
5672 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5673 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5674 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675 lt_cv_file_magic_cmd='func_win32_libid'
5676 else
5677 # Keep this pattern in sync with the one in func_win32_libid.
5678 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5679 lt_cv_file_magic_cmd='$OBJDUMP -f'
5680 fi
5681 ;;
5682
5683 cegcc*)
5684 # use the weaker test based on 'objdump'. See mingw*.
5685 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5686 lt_cv_file_magic_cmd='$OBJDUMP -f'
5687 ;;
5688
5689 darwin* | rhapsody*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 freebsd* | dragonfly*)
5694 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5695 case $host_cpu in
5696 i*86 )
5697 # Not sure whether the presence of OpenBSD here was a mistake.
5698 # Let's accept both of them until this is cleared up.
5699 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5700 lt_cv_file_magic_cmd=/usr/bin/file
5701 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5702 ;;
5703 esac
5704 else
5705 lt_cv_deplibs_check_method=pass_all
5706 fi
5707 ;;
5708
5709 gnu*)
5710 lt_cv_deplibs_check_method=pass_all
5711 ;;
5712
5713 haiku*)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717 hpux10.20* | hpux11*)
5718 lt_cv_file_magic_cmd=/usr/bin/file
5719 case $host_cpu in
5720 ia64*)
5721 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5722 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5723 ;;
5724 hppa*64*)
5725 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]'
5726 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5727 ;;
5728 *)
5729 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5730 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731 ;;
5732 esac
5733 ;;
5734
5735 interix[3-9]*)
5736 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5738 ;;
5739
5740 irix5* | irix6* | nonstopux*)
5741 case $LD in
5742 *-32|*"-32 ") libmagic=32-bit;;
5743 *-n32|*"-n32 ") libmagic=N32;;
5744 *-64|*"-64 ") libmagic=64-bit;;
5745 *) libmagic=never-match;;
5746 esac
5747 lt_cv_deplibs_check_method=pass_all
5748 ;;
5749
5750 # This must be glibc/ELF.
5751 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 netbsd*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5758 else
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5760 fi
5761 ;;
5762
5763 newos6*)
5764 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5765 lt_cv_file_magic_cmd=/usr/bin/file
5766 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5767 ;;
5768
5769 *nto* | *qnx*)
5770 lt_cv_deplibs_check_method=pass_all
5771 ;;
5772
5773 openbsd*)
5774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5776 else
5777 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5778 fi
5779 ;;
5780
5781 osf3* | osf4* | osf5*)
5782 lt_cv_deplibs_check_method=pass_all
5783 ;;
5784
5785 rdos*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 solaris*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797 sysv4 | sysv4.3*)
5798 case $host_vendor in
5799 motorola)
5800 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]'
5801 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5802 ;;
5803 ncr)
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806 sequent)
5807 lt_cv_file_magic_cmd='/bin/file'
5808 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5809 ;;
5810 sni)
5811 lt_cv_file_magic_cmd='/bin/file'
5812 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5813 lt_cv_file_magic_test_file=/lib/libc.so
5814 ;;
5815 siemens)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818 pc)
5819 lt_cv_deplibs_check_method=pass_all
5820 ;;
5821 esac
5822 ;;
5823
5824 tpf*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827 esac
5828
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5831 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5832
5833 file_magic_glob=
5834 want_nocaseglob=no
5835 if test "$build" = "$host"; then
5836 case $host_os in
5837 mingw* | pw32*)
5838 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5839 want_nocaseglob=yes
5840 else
5841 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5842 fi
5843 ;;
5844 esac
5845 fi
5846
5847 file_magic_cmd=$lt_cv_file_magic_cmd
5848 deplibs_check_method=$lt_cv_deplibs_check_method
5849 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 if test -n "$ac_tool_prefix"; then
5873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_DLLTOOL+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 if test -n "$DLLTOOL"; then
5881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886 IFS=$as_save_IFS
5887 test -z "$as_dir" && as_dir=.
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 break 2
5893 fi
5894 done
5895 done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5903 $as_echo "$DLLTOOL" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if test -z "$ac_cv_prog_DLLTOOL"; then
5912 ac_ct_DLLTOOL=$DLLTOOL
5913 # Extract the first word of "dlltool", so it can be a program name with args.
5914 set dummy dlltool; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 if test -n "$ac_ct_DLLTOOL"; then
5921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2
5933 fi
5934 done
5935 done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5941 if test -n "$ac_ct_DLLTOOL"; then
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5943 $as_echo "$ac_ct_DLLTOOL" >&6; }
5944 else
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949 if test "x$ac_ct_DLLTOOL" = x; then
5950 DLLTOOL="false"
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958 DLLTOOL=$ac_ct_DLLTOOL
5959 fi
5960 else
5961 DLLTOOL="$ac_cv_prog_DLLTOOL"
5962 fi
5963
5964 test -z "$DLLTOOL" && DLLTOOL=dlltool
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5976 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5977 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 lt_cv_sharedlib_from_linklib_cmd='unknown'
5981
5982 case $host_os in
5983 cygwin* | mingw* | pw32* | cegcc*)
5984 # two different shell functions defined in ltmain.sh
5985 # decide which to use based on capabilities of $DLLTOOL
5986 case `$DLLTOOL --help 2>&1` in
5987 *--identify-strict*)
5988 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5989 ;;
5990 *)
5991 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5992 ;;
5993 esac
5994 ;;
5995 *)
5996 # fallback: assume linklib IS sharedlib
5997 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5998 ;;
5999 esac
6000
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6003 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6004 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6005 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6006
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 for ac_prog in ar
6015 do
6016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6019 $as_echo_n "checking for $ac_word... " >&6; }
6020 if ${ac_cv_prog_AR+:} false; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test -n "$AR"; then
6024 ac_cv_prog_AR="$AR" # Let the user override the test.
6025 else
6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6027 for as_dir in $PATH
6028 do
6029 IFS=$as_save_IFS
6030 test -z "$as_dir" && as_dir=.
6031 for ac_exec_ext in '' $ac_executable_extensions; do
6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6033 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 break 2
6036 fi
6037 done
6038 done
6039 IFS=$as_save_IFS
6040
6041 fi
6042 fi
6043 AR=$ac_cv_prog_AR
6044 if test -n "$AR"; then
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6046 $as_echo "$AR" >&6; }
6047 else
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6049 $as_echo "no" >&6; }
6050 fi
6051
6052
6053 test -n "$AR" && break
6054 done
6055 fi
6056 if test -z "$AR"; then
6057 ac_ct_AR=$AR
6058 for ac_prog in ar
6059 do
6060 # Extract the first word of "$ac_prog", so it can be a program name with args.
6061 set dummy $ac_prog; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$ac_ct_AR"; then
6068 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077 ac_cv_prog_ac_ct_AR="$ac_prog"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6080 fi
6081 done
6082 done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6088 if test -n "$ac_ct_AR"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6090 $as_echo "$ac_ct_AR" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 test -n "$ac_ct_AR" && break
6098 done
6099
6100 if test "x$ac_ct_AR" = x; then
6101 AR="false"
6102 else
6103 case $cross_compiling:$ac_tool_warned in
6104 yes:)
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6107 ac_tool_warned=yes ;;
6108 esac
6109 AR=$ac_ct_AR
6110 fi
6111 fi
6112
6113 : ${AR=ar}
6114 : ${AR_FLAGS=cru}
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6127 $as_echo_n "checking for archiver @FILE support... " >&6; }
6128 if ${lt_cv_ar_at_file+:} false; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 lt_cv_ar_at_file=no
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134
6135 int
6136 main ()
6137 {
6138
6139 ;
6140 return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_compile "$LINENO"; then :
6144 echo conftest.$ac_objext > conftest.lst
6145 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6147 (eval $lt_ar_try) 2>&5
6148 ac_status=$?
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }
6151 if test "$ac_status" -eq 0; then
6152 # Ensure the archiver fails upon bogus file names.
6153 rm -f conftest.$ac_objext libconftest.a
6154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6155 (eval $lt_ar_try) 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; }
6159 if test "$ac_status" -ne 0; then
6160 lt_cv_ar_at_file=@
6161 fi
6162 fi
6163 rm -f conftest.* libconftest.a
6164
6165 fi
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167
6168 fi
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6170 $as_echo "$lt_cv_ar_at_file" >&6; }
6171
6172 if test "x$lt_cv_ar_at_file" = xno; then
6173 archiver_list_spec=
6174 else
6175 archiver_list_spec=$lt_cv_ar_at_file
6176 fi
6177
6178
6179
6180
6181
6182
6183
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}strip; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if ${ac_cv_prog_STRIP+:} false; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 if test -n "$STRIP"; then
6193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 break 2
6205 fi
6206 done
6207 done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 STRIP=$ac_cv_prog_STRIP
6213 if test -n "$STRIP"; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6215 $as_echo "$STRIP" >&6; }
6216 else
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_STRIP"; then
6224 ac_ct_STRIP=$STRIP
6225 # Extract the first word of "strip", so it can be a program name with args.
6226 set dummy strip; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6230 $as_echo_n "(cached) " >&6
6231 else
6232 if test -n "$ac_ct_STRIP"; then
6233 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238 IFS=$as_save_IFS
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242 ac_cv_prog_ac_ct_STRIP="strip"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 break 2
6245 fi
6246 done
6247 done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6253 if test -n "$ac_ct_STRIP"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6255 $as_echo "$ac_ct_STRIP" >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261 if test "x$ac_ct_STRIP" = x; then
6262 STRIP=":"
6263 else
6264 case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270 STRIP=$ac_ct_STRIP
6271 fi
6272 else
6273 STRIP="$ac_cv_prog_STRIP"
6274 fi
6275
6276 test -z "$STRIP" && STRIP=:
6277
6278
6279
6280
6281
6282
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if ${ac_cv_prog_RANLIB+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 if test -n "$RANLIB"; then
6292 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
6299 for ac_exec_ext in '' $ac_executable_extensions; do
6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6301 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303 break 2
6304 fi
6305 done
6306 done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 RANLIB=$ac_cv_prog_RANLIB
6312 if test -n "$RANLIB"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6314 $as_echo "$RANLIB" >&6; }
6315 else
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320
6321 fi
6322 if test -z "$ac_cv_prog_RANLIB"; then
6323 ac_ct_RANLIB=$RANLIB
6324 # Extract the first word of "ranlib", so it can be a program name with args.
6325 set dummy ranlib; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$ac_ct_RANLIB"; then
6332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6341 ac_cv_prog_ac_ct_RANLIB="ranlib"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6344 fi
6345 done
6346 done
6347 IFS=$as_save_IFS
6348
6349 fi
6350 fi
6351 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6352 if test -n "$ac_ct_RANLIB"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6354 $as_echo "$ac_ct_RANLIB" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6358 fi
6359
6360 if test "x$ac_ct_RANLIB" = x; then
6361 RANLIB=":"
6362 else
6363 case $cross_compiling:$ac_tool_warned in
6364 yes:)
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6367 ac_tool_warned=yes ;;
6368 esac
6369 RANLIB=$ac_ct_RANLIB
6370 fi
6371 else
6372 RANLIB="$ac_cv_prog_RANLIB"
6373 fi
6374
6375 test -z "$RANLIB" && RANLIB=:
6376
6377
6378
6379
6380
6381
6382 # Determine commands to create old-style static archives.
6383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6384 old_postinstall_cmds='chmod 644 $oldlib'
6385 old_postuninstall_cmds=
6386
6387 if test -n "$RANLIB"; then
6388 case $host_os in
6389 openbsd*)
6390 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6391 ;;
6392 *)
6393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6394 ;;
6395 esac
6396 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6397 fi
6398
6399 case $host_os in
6400 darwin*)
6401 lock_old_archive_extraction=yes ;;
6402 *)
6403 lock_old_archive_extraction=no ;;
6404 esac
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444 # If no C compiler was specified, use CC.
6445 LTCC=${LTCC-"$CC"}
6446
6447 # If no C compiler flags were specified, use CFLAGS.
6448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6449
6450 # Allow CC to be a program name with arguments.
6451 compiler=$CC
6452
6453
6454 # Check for command to grab the raw symbol name followed by C symbol from nm.
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6456 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6457 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460
6461 # These are sane defaults that work on at least a few old systems.
6462 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6463
6464 # Character class describing NM global symbol codes.
6465 symcode='[BCDEGRST]'
6466
6467 # Regexp to match symbols that can be accessed directly from C.
6468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6469
6470 # Define system-specific variables.
6471 case $host_os in
6472 aix*)
6473 symcode='[BCDT]'
6474 ;;
6475 cygwin* | mingw* | pw32* | cegcc*)
6476 symcode='[ABCDGISTW]'
6477 ;;
6478 hpux*)
6479 if test "$host_cpu" = ia64; then
6480 symcode='[ABCDEGRST]'
6481 fi
6482 ;;
6483 irix* | nonstopux*)
6484 symcode='[BCDEGRST]'
6485 ;;
6486 osf*)
6487 symcode='[BCDEGQRST]'
6488 ;;
6489 solaris*)
6490 symcode='[BDRT]'
6491 ;;
6492 sco3.2v5*)
6493 symcode='[DT]'
6494 ;;
6495 sysv4.2uw2*)
6496 symcode='[DT]'
6497 ;;
6498 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6499 symcode='[ABDT]'
6500 ;;
6501 sysv4)
6502 symcode='[DFNSTU]'
6503 ;;
6504 esac
6505
6506 # If we're using GNU nm, then use its standard symbol codes.
6507 case `$NM -V 2>&1` in
6508 *GNU* | *'with BFD'*)
6509 symcode='[ABCDGIRSTW]' ;;
6510 esac
6511
6512 # Transform an extracted symbol line into a proper C declaration.
6513 # Some systems (esp. on ia64) link data and code symbols differently,
6514 # so use this general approach.
6515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6516
6517 # Transform an extracted symbol line into symbol name and symbol address
6518 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6519 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'"
6520
6521 # Handle CRLF in mingw tool chain
6522 opt_cr=
6523 case $build_os in
6524 mingw*)
6525 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6526 ;;
6527 esac
6528
6529 # Try without a prefix underscore, then with it.
6530 for ac_symprfx in "" "_"; do
6531
6532 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6533 symxfrm="\\1 $ac_symprfx\\2 \\2"
6534
6535 # Write the raw and C identifiers.
6536 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6537 # Fake it for dumpbin and say T for any non-static function
6538 # and D for any global variable.
6539 # Also find C++ and __fastcall symbols from MSVC++,
6540 # which start with @ or ?.
6541 lt_cv_sys_global_symbol_pipe="$AWK '"\
6542 " {last_section=section; section=\$ 3};"\
6543 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6544 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6545 " \$ 0!~/External *\|/{next};"\
6546 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6547 " {if(hide[section]) next};"\
6548 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6549 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6550 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6551 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6552 " ' prfx=^$ac_symprfx"
6553 else
6554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6555 fi
6556 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6557
6558 # Check to see that the pipe works correctly.
6559 pipe_works=no
6560
6561 rm -f conftest*
6562 cat > conftest.$ac_ext <<_LT_EOF
6563 #ifdef __cplusplus
6564 extern "C" {
6565 #endif
6566 char nm_test_var;
6567 void nm_test_func(void);
6568 void nm_test_func(void){}
6569 #ifdef __cplusplus
6570 }
6571 #endif
6572 int main(){nm_test_var='a';nm_test_func();return(0);}
6573 _LT_EOF
6574
6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6576 (eval $ac_compile) 2>&5
6577 ac_status=$?
6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6579 test $ac_status = 0; }; then
6580 # Now try to grab the symbols.
6581 nlist=conftest.nm
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6583 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; } && test -s "$nlist"; then
6587 # Try sorting and uniquifying the output.
6588 if sort "$nlist" | uniq > "$nlist"T; then
6589 mv -f "$nlist"T "$nlist"
6590 else
6591 rm -f "$nlist"T
6592 fi
6593
6594 # Make sure that we snagged all the symbols we need.
6595 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6596 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6597 cat <<_LT_EOF > conftest.$ac_ext
6598 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6599 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6600 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6601 relocations are performed -- see ld's documentation on pseudo-relocs. */
6602 # define LT_DLSYM_CONST
6603 #elif defined(__osf__)
6604 /* This system does not cope well with relocations in const data. */
6605 # define LT_DLSYM_CONST
6606 #else
6607 # define LT_DLSYM_CONST const
6608 #endif
6609
6610 #ifdef __cplusplus
6611 extern "C" {
6612 #endif
6613
6614 _LT_EOF
6615 # Now generate the symbol file.
6616 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6617
6618 cat <<_LT_EOF >> conftest.$ac_ext
6619
6620 /* The mapping between symbol names and symbols. */
6621 LT_DLSYM_CONST struct {
6622 const char *name;
6623 void *address;
6624 }
6625 lt__PROGRAM__LTX_preloaded_symbols[] =
6626 {
6627 { "@PROGRAM@", (void *) 0 },
6628 _LT_EOF
6629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6630 cat <<\_LT_EOF >> conftest.$ac_ext
6631 {0, (void *) 0}
6632 };
6633
6634 /* This works around a problem in FreeBSD linker */
6635 #ifdef FREEBSD_WORKAROUND
6636 static const void *lt_preloaded_setup() {
6637 return lt__PROGRAM__LTX_preloaded_symbols;
6638 }
6639 #endif
6640
6641 #ifdef __cplusplus
6642 }
6643 #endif
6644 _LT_EOF
6645 # Now try linking the two files.
6646 mv conftest.$ac_objext conftstm.$ac_objext
6647 lt_globsym_save_LIBS=$LIBS
6648 lt_globsym_save_CFLAGS=$CFLAGS
6649 LIBS="conftstm.$ac_objext"
6650 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6652 (eval $ac_link) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6656 pipe_works=yes
6657 fi
6658 LIBS=$lt_globsym_save_LIBS
6659 CFLAGS=$lt_globsym_save_CFLAGS
6660 else
6661 echo "cannot find nm_test_func in $nlist" >&5
6662 fi
6663 else
6664 echo "cannot find nm_test_var in $nlist" >&5
6665 fi
6666 else
6667 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6668 fi
6669 else
6670 echo "$progname: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 fi
6673 rm -rf conftest* conftst*
6674
6675 # Do not use the global_symbol_pipe unless it works.
6676 if test "$pipe_works" = yes; then
6677 break
6678 else
6679 lt_cv_sys_global_symbol_pipe=
6680 fi
6681 done
6682
6683 fi
6684
6685 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6686 lt_cv_sys_global_symbol_to_cdecl=
6687 fi
6688 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6690 $as_echo "failed" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6693 $as_echo "ok" >&6; }
6694 fi
6695
6696 # Response file support.
6697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6698 nm_file_list_spec='@'
6699 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6700 nm_file_list_spec='@'
6701 fi
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6730 $as_echo_n "checking for sysroot... " >&6; }
6731
6732 # Check whether --with-sysroot was given.
6733 if test "${with_sysroot+set}" = set; then :
6734 withval=$with_sysroot;
6735 else
6736 with_sysroot=no
6737 fi
6738
6739
6740 lt_sysroot=
6741 case ${with_sysroot} in #(
6742 yes)
6743 if test "$GCC" = yes; then
6744 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6745 fi
6746 ;; #(
6747 /*)
6748 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6749 ;; #(
6750 no|'')
6751 ;; #(
6752 *)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6754 $as_echo "${with_sysroot}" >&6; }
6755 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6756 ;;
6757 esac
6758
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6760 $as_echo "${lt_sysroot:-no}" >&6; }
6761
6762
6763
6764
6765
6766 # Check whether --enable-libtool-lock was given.
6767 if test "${enable_libtool_lock+set}" = set; then :
6768 enableval=$enable_libtool_lock;
6769 fi
6770
6771 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6772
6773 # Some flags need to be propagated to the compiler or linker for good
6774 # libtool support.
6775 case $host in
6776 ia64-*-hpux*)
6777 # Find out which ABI we are using.
6778 echo 'int i;' > conftest.$ac_ext
6779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6780 (eval $ac_compile) 2>&5
6781 ac_status=$?
6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783 test $ac_status = 0; }; then
6784 case `/usr/bin/file conftest.$ac_objext` in
6785 *ELF-32*)
6786 HPUX_IA64_MODE="32"
6787 ;;
6788 *ELF-64*)
6789 HPUX_IA64_MODE="64"
6790 ;;
6791 esac
6792 fi
6793 rm -rf conftest*
6794 ;;
6795 *-*-irix6*)
6796 # Find out which ABI we are using.
6797 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799 (eval $ac_compile) 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802 test $ac_status = 0; }; then
6803 if test "$lt_cv_prog_gnu_ld" = yes; then
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *32-bit*)
6806 LD="${LD-ld} -melf32bsmip"
6807 ;;
6808 *N32*)
6809 LD="${LD-ld} -melf32bmipn32"
6810 ;;
6811 *64-bit*)
6812 LD="${LD-ld} -melf64bmip"
6813 ;;
6814 esac
6815 else
6816 case `/usr/bin/file conftest.$ac_objext` in
6817 *32-bit*)
6818 LD="${LD-ld} -32"
6819 ;;
6820 *N32*)
6821 LD="${LD-ld} -n32"
6822 ;;
6823 *64-bit*)
6824 LD="${LD-ld} -64"
6825 ;;
6826 esac
6827 fi
6828 fi
6829 rm -rf conftest*
6830 ;;
6831
6832 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6833 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6834 # Find out which ABI we are using.
6835 echo 'int i;' > conftest.$ac_ext
6836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6837 (eval $ac_compile) 2>&5
6838 ac_status=$?
6839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6840 test $ac_status = 0; }; then
6841 case `/usr/bin/file conftest.o` in
6842 *32-bit*)
6843 case $host in
6844 x86_64-*kfreebsd*-gnu)
6845 LD="${LD-ld} -m elf_i386_fbsd"
6846 ;;
6847 x86_64-*linux*)
6848 LD="${LD-ld} -m elf_i386"
6849 ;;
6850 ppc64-*linux*|powerpc64-*linux*)
6851 LD="${LD-ld} -m elf32ppclinux"
6852 ;;
6853 s390x-*linux*)
6854 LD="${LD-ld} -m elf_s390"
6855 ;;
6856 sparc64-*linux*)
6857 LD="${LD-ld} -m elf32_sparc"
6858 ;;
6859 esac
6860 ;;
6861 *64-bit*)
6862 case $host in
6863 x86_64-*kfreebsd*-gnu)
6864 LD="${LD-ld} -m elf_x86_64_fbsd"
6865 ;;
6866 x86_64-*linux*)
6867 LD="${LD-ld} -m elf_x86_64"
6868 ;;
6869 ppc*-*linux*|powerpc*-*linux*)
6870 LD="${LD-ld} -m elf64ppc"
6871 ;;
6872 s390*-*linux*|s390*-*tpf*)
6873 LD="${LD-ld} -m elf64_s390"
6874 ;;
6875 sparc*-*linux*)
6876 LD="${LD-ld} -m elf64_sparc"
6877 ;;
6878 esac
6879 ;;
6880 esac
6881 fi
6882 rm -rf conftest*
6883 ;;
6884
6885 *-*-sco3.2v5*)
6886 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6887 SAVE_CFLAGS="$CFLAGS"
6888 CFLAGS="$CFLAGS -belf"
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6890 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6891 if ${lt_cv_cc_needs_belf+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 ac_ext=c
6895 ac_cpp='$CPP $CPPFLAGS'
6896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6899
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902
6903 int
6904 main ()
6905 {
6906
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 lt_cv_cc_needs_belf=yes
6913 else
6914 lt_cv_cc_needs_belf=no
6915 fi
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 ac_ext=c
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6926 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6927 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6928 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6929 CFLAGS="$SAVE_CFLAGS"
6930 fi
6931 ;;
6932 *-*solaris*)
6933 # Find out which ABI we are using.
6934 echo 'int i;' > conftest.$ac_ext
6935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936 (eval $ac_compile) 2>&5
6937 ac_status=$?
6938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939 test $ac_status = 0; }; then
6940 case `/usr/bin/file conftest.o` in
6941 *64-bit*)
6942 case $lt_cv_prog_gnu_ld in
6943 yes*)
6944 case $host in
6945 i?86-*-solaris*)
6946 LD="${LD-ld} -m elf_x86_64"
6947 ;;
6948 sparc*-*-solaris*)
6949 LD="${LD-ld} -m elf64_sparc"
6950 ;;
6951 esac
6952 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6953 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6954 LD="${LD-ld}_sol2"
6955 fi
6956 ;;
6957 *)
6958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6959 LD="${LD-ld} -64"
6960 fi
6961 ;;
6962 esac
6963 ;;
6964 esac
6965 fi
6966 rm -rf conftest*
6967 ;;
6968 esac
6969
6970 need_locks="$enable_libtool_lock"
6971
6972 if test -n "$ac_tool_prefix"; then
6973 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}mt; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 if test -n "$MANIFEST_TOOL"; then
6981 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6993 fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7001 if test -n "$MANIFEST_TOOL"; then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7003 $as_echo "$MANIFEST_TOOL" >&6; }
7004 else
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7012 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7013 # Extract the first word of "mt", so it can be a program name with args.
7014 set dummy mt; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -n "$ac_ct_MANIFEST_TOOL"; then
7021 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
7029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7041 if test -n "$ac_ct_MANIFEST_TOOL"; then
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7043 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7044 else
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7050 MANIFEST_TOOL=":"
7051 else
7052 case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7059 fi
7060 else
7061 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7062 fi
7063
7064 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7066 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7067 if ${lt_cv_path_mainfest_tool+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 lt_cv_path_mainfest_tool=no
7071 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7072 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7073 cat conftest.err >&5
7074 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7075 lt_cv_path_mainfest_tool=yes
7076 fi
7077 rm -f conftest*
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7080 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7081 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7082 MANIFEST_TOOL=:
7083 fi
7084
7085
7086
7087
7088
7089
7090 case $host_os in
7091 rhapsody* | darwin*)
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$DSYMUTIL"; then
7101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7121 if test -n "$DSYMUTIL"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7123 $as_echo "$DSYMUTIL" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_DSYMUTIL"; then
7132 ac_ct_DSYMUTIL=$DSYMUTIL
7133 # Extract the first word of "dsymutil", so it can be a program name with args.
7134 set dummy dsymutil; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$ac_ct_DSYMUTIL"; then
7141 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7161 if test -n "$ac_ct_DSYMUTIL"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7163 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169 if test "x$ac_ct_DSYMUTIL" = x; then
7170 DSYMUTIL=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178 DSYMUTIL=$ac_ct_DSYMUTIL
7179 fi
7180 else
7181 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7182 fi
7183
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_NMEDIT+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$NMEDIT"; then
7193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 NMEDIT=$ac_cv_prog_NMEDIT
7213 if test -n "$NMEDIT"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7215 $as_echo "$NMEDIT" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_NMEDIT"; then
7224 ac_ct_NMEDIT=$NMEDIT
7225 # Extract the first word of "nmedit", so it can be a program name with args.
7226 set dummy nmedit; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$ac_ct_NMEDIT"; then
7233 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7253 if test -n "$ac_ct_NMEDIT"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7255 $as_echo "$ac_ct_NMEDIT" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261 if test "x$ac_ct_NMEDIT" = x; then
7262 NMEDIT=":"
7263 else
7264 case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270 NMEDIT=$ac_ct_NMEDIT
7271 fi
7272 else
7273 NMEDIT="$ac_cv_prog_NMEDIT"
7274 fi
7275
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_LIPO+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 if test -n "$LIPO"; then
7285 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7297 fi
7298 done
7299 done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 LIPO=$ac_cv_prog_LIPO
7305 if test -n "$LIPO"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7307 $as_echo "$LIPO" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_LIPO"; then
7316 ac_ct_LIPO=$LIPO
7317 # Extract the first word of "lipo", so it can be a program name with args.
7318 set dummy lipo; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if test -n "$ac_ct_LIPO"; then
7325 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_ac_ct_LIPO="lipo"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7337 fi
7338 done
7339 done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7345 if test -n "$ac_ct_LIPO"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7347 $as_echo "$ac_ct_LIPO" >&6; }
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353 if test "x$ac_ct_LIPO" = x; then
7354 LIPO=":"
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 LIPO=$ac_ct_LIPO
7363 fi
7364 else
7365 LIPO="$ac_cv_prog_LIPO"
7366 fi
7367
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}otool; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_OTOOL+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$OTOOL"; then
7377 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7389 fi
7390 done
7391 done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 OTOOL=$ac_cv_prog_OTOOL
7397 if test -n "$OTOOL"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7399 $as_echo "$OTOOL" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406 fi
7407 if test -z "$ac_cv_prog_OTOOL"; then
7408 ac_ct_OTOOL=$OTOOL
7409 # Extract the first word of "otool", so it can be a program name with args.
7410 set dummy otool; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$ac_ct_OTOOL"; then
7417 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_ac_ct_OTOOL="otool"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7429 fi
7430 done
7431 done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7437 if test -n "$ac_ct_OTOOL"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7439 $as_echo "$ac_ct_OTOOL" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445 if test "x$ac_ct_OTOOL" = x; then
7446 OTOOL=":"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454 OTOOL=$ac_ct_OTOOL
7455 fi
7456 else
7457 OTOOL="$ac_cv_prog_OTOOL"
7458 fi
7459
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_OTOOL64+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 if test -n "$OTOOL64"; then
7469 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482 done
7483 done
7484 IFS=$as_save_IFS
7485
7486 fi
7487 fi
7488 OTOOL64=$ac_cv_prog_OTOOL64
7489 if test -n "$OTOOL64"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7491 $as_echo "$OTOOL64" >&6; }
7492 else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498 fi
7499 if test -z "$ac_cv_prog_OTOOL64"; then
7500 ac_ct_OTOOL64=$OTOOL64
7501 # Extract the first word of "otool64", so it can be a program name with args.
7502 set dummy otool64; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 if test -n "$ac_ct_OTOOL64"; then
7509 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_OTOOL64="otool64"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7521 fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7529 if test -n "$ac_ct_OTOOL64"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7531 $as_echo "$ac_ct_OTOOL64" >&6; }
7532 else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537 if test "x$ac_ct_OTOOL64" = x; then
7538 OTOOL64=":"
7539 else
7540 case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546 OTOOL64=$ac_ct_OTOOL64
7547 fi
7548 else
7549 OTOOL64="$ac_cv_prog_OTOOL64"
7550 fi
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7579 $as_echo_n "checking for -single_module linker flag... " >&6; }
7580 if ${lt_cv_apple_cc_single_mod+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 lt_cv_apple_cc_single_mod=no
7584 if test -z "${LT_MULTI_MODULE}"; then
7585 # By default we will add the -single_module flag. You can override
7586 # by either setting the environment variable LT_MULTI_MODULE
7587 # non-empty at configure time, or by adding -multi_module to the
7588 # link flags.
7589 rm -rf libconftest.dylib*
7590 echo "int foo(void){return 1;}" > conftest.c
7591 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7592 -dynamiclib -Wl,-single_module conftest.c" >&5
7593 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7594 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7595 _lt_result=$?
7596 # If there is a non-empty error log, and "single_module"
7597 # appears in it, assume the flag caused a linker warning
7598 if test -s conftest.err && $GREP single_module conftest.err; then
7599 cat conftest.err >&5
7600 # Otherwise, if the output was created with a 0 exit code from
7601 # the compiler, it worked.
7602 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7603 lt_cv_apple_cc_single_mod=yes
7604 else
7605 cat conftest.err >&5
7606 fi
7607 rm -rf libconftest.dylib*
7608 rm -f conftest.*
7609 fi
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7612 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7615 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7616 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 lt_cv_ld_exported_symbols_list=no
7620 save_LDFLAGS=$LDFLAGS
7621 echo "_main" > conftest.sym
7622 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625
7626 int
7627 main ()
7628 {
7629
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 if ac_fn_c_try_link "$LINENO"; then :
7635 lt_cv_ld_exported_symbols_list=yes
7636 else
7637 lt_cv_ld_exported_symbols_list=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641 LDFLAGS="$save_LDFLAGS"
7642
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7645 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7646
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7648 $as_echo_n "checking for -force_load linker flag... " >&6; }
7649 if ${lt_cv_ld_force_load+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 lt_cv_ld_force_load=no
7653 cat > conftest.c << _LT_EOF
7654 int forced_loaded() { return 2;}
7655 _LT_EOF
7656 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7657 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7658 echo "$AR cru libconftest.a conftest.o" >&5
7659 $AR cru libconftest.a conftest.o 2>&5
7660 echo "$RANLIB libconftest.a" >&5
7661 $RANLIB libconftest.a 2>&5
7662 cat > conftest.c << _LT_EOF
7663 int main() { return 0;}
7664 _LT_EOF
7665 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7666 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7667 _lt_result=$?
7668 if test -s conftest.err && $GREP force_load conftest.err; then
7669 cat conftest.err >&5
7670 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7671 lt_cv_ld_force_load=yes
7672 else
7673 cat conftest.err >&5
7674 fi
7675 rm -f conftest.err libconftest.a conftest conftest.c
7676 rm -rf conftest.dSYM
7677
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7680 $as_echo "$lt_cv_ld_force_load" >&6; }
7681 case $host_os in
7682 rhapsody* | darwin1.[012])
7683 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7684 darwin1.*)
7685 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7686 darwin*) # darwin 5.x on
7687 # if running on 10.5 or later, the deployment target defaults
7688 # to the OS version, if on x86, and 10.4, the deployment
7689 # target defaults to 10.4. Don't you love it?
7690 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7691 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7692 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7693 10.[012]*)
7694 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7695 10.*)
7696 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7697 esac
7698 ;;
7699 esac
7700 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7701 _lt_dar_single_mod='$single_module'
7702 fi
7703 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7704 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7705 else
7706 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7707 fi
7708 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7709 _lt_dsymutil='~$DSYMUTIL $lib || :'
7710 else
7711 _lt_dsymutil=
7712 fi
7713 ;;
7714 esac
7715
7716 ac_ext=c
7717 ac_cpp='$CPP $CPPFLAGS'
7718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7723 # On Suns, sometimes $CPP names a directory.
7724 if test -n "$CPP" && test -d "$CPP"; then
7725 CPP=
7726 fi
7727 if test -z "$CPP"; then
7728 if ${ac_cv_prog_CPP+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 # Double quotes because CPP needs to be expanded
7732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7733 do
7734 ac_preproc_ok=false
7735 for ac_c_preproc_warn_flag in '' yes
7736 do
7737 # Use a header file that comes with gcc, so configuring glibc
7738 # with a fresh cross-compiler works.
7739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7740 # <limits.h> exists even on freestanding compilers.
7741 # On the NeXT, cc -E runs the code through the compiler's parser,
7742 # not just through cpp. "Syntax error" is here to catch this case.
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #ifdef __STDC__
7746 # include <limits.h>
7747 #else
7748 # include <assert.h>
7749 #endif
7750 Syntax error
7751 _ACEOF
7752 if ac_fn_c_try_cpp "$LINENO"; then :
7753
7754 else
7755 # Broken: fails on valid input.
7756 continue
7757 fi
7758 rm -f conftest.err conftest.i conftest.$ac_ext
7759
7760 # OK, works on sane cases. Now check whether nonexistent headers
7761 # can be detected and how.
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 #include <ac_nonexistent.h>
7765 _ACEOF
7766 if ac_fn_c_try_cpp "$LINENO"; then :
7767 # Broken: success on invalid input.
7768 continue
7769 else
7770 # Passes both tests.
7771 ac_preproc_ok=:
7772 break
7773 fi
7774 rm -f conftest.err conftest.i conftest.$ac_ext
7775
7776 done
7777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7778 rm -f conftest.i conftest.err conftest.$ac_ext
7779 if $ac_preproc_ok; then :
7780 break
7781 fi
7782
7783 done
7784 ac_cv_prog_CPP=$CPP
7785
7786 fi
7787 CPP=$ac_cv_prog_CPP
7788 else
7789 ac_cv_prog_CPP=$CPP
7790 fi
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7792 $as_echo "$CPP" >&6; }
7793 ac_preproc_ok=false
7794 for ac_c_preproc_warn_flag in '' yes
7795 do
7796 # Use a header file that comes with gcc, so configuring glibc
7797 # with a fresh cross-compiler works.
7798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7799 # <limits.h> exists even on freestanding compilers.
7800 # On the NeXT, cc -E runs the code through the compiler's parser,
7801 # not just through cpp. "Syntax error" is here to catch this case.
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 #ifdef __STDC__
7805 # include <limits.h>
7806 #else
7807 # include <assert.h>
7808 #endif
7809 Syntax error
7810 _ACEOF
7811 if ac_fn_c_try_cpp "$LINENO"; then :
7812
7813 else
7814 # Broken: fails on valid input.
7815 continue
7816 fi
7817 rm -f conftest.err conftest.i conftest.$ac_ext
7818
7819 # OK, works on sane cases. Now check whether nonexistent headers
7820 # can be detected and how.
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <ac_nonexistent.h>
7824 _ACEOF
7825 if ac_fn_c_try_cpp "$LINENO"; then :
7826 # Broken: success on invalid input.
7827 continue
7828 else
7829 # Passes both tests.
7830 ac_preproc_ok=:
7831 break
7832 fi
7833 rm -f conftest.err conftest.i conftest.$ac_ext
7834
7835 done
7836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7837 rm -f conftest.i conftest.err conftest.$ac_ext
7838 if $ac_preproc_ok; then :
7839
7840 else
7841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7843 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7844 See \`config.log' for more details" "$LINENO" 5; }
7845 fi
7846
7847 ac_ext=c
7848 ac_cpp='$CPP $CPPFLAGS'
7849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7852
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7855 $as_echo_n "checking for ANSI C header files... " >&6; }
7856 if ${ac_cv_header_stdc+:} false; then :
7857 $as_echo_n "(cached) " >&6
7858 else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7861 #include <stdlib.h>
7862 #include <stdarg.h>
7863 #include <string.h>
7864 #include <float.h>
7865
7866 int
7867 main ()
7868 {
7869
7870 ;
7871 return 0;
7872 }
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"; then :
7875 ac_cv_header_stdc=yes
7876 else
7877 ac_cv_header_stdc=no
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880
7881 if test $ac_cv_header_stdc = yes; then
7882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <string.h>
7886
7887 _ACEOF
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "memchr" >/dev/null 2>&1; then :
7890
7891 else
7892 ac_cv_header_stdc=no
7893 fi
7894 rm -f conftest*
7895
7896 fi
7897
7898 if test $ac_cv_header_stdc = yes; then
7899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <stdlib.h>
7903
7904 _ACEOF
7905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906 $EGREP "free" >/dev/null 2>&1; then :
7907
7908 else
7909 ac_cv_header_stdc=no
7910 fi
7911 rm -f conftest*
7912
7913 fi
7914
7915 if test $ac_cv_header_stdc = yes; then
7916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7917 if test "$cross_compiling" = yes; then :
7918 :
7919 else
7920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h. */
7922 #include <ctype.h>
7923 #include <stdlib.h>
7924 #if ((' ' & 0x0FF) == 0x020)
7925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7927 #else
7928 # define ISLOWER(c) \
7929 (('a' <= (c) && (c) <= 'i') \
7930 || ('j' <= (c) && (c) <= 'r') \
7931 || ('s' <= (c) && (c) <= 'z'))
7932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7933 #endif
7934
7935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7936 int
7937 main ()
7938 {
7939 int i;
7940 for (i = 0; i < 256; i++)
7941 if (XOR (islower (i), ISLOWER (i))
7942 || toupper (i) != TOUPPER (i))
7943 return 2;
7944 return 0;
7945 }
7946 _ACEOF
7947 if ac_fn_c_try_run "$LINENO"; then :
7948
7949 else
7950 ac_cv_header_stdc=no
7951 fi
7952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7953 conftest.$ac_objext conftest.beam conftest.$ac_ext
7954 fi
7955
7956 fi
7957 fi
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7959 $as_echo "$ac_cv_header_stdc" >&6; }
7960 if test $ac_cv_header_stdc = yes; then
7961
7962 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7963
7964 fi
7965
7966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7967 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7968 inttypes.h stdint.h unistd.h
7969 do :
7970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7972 "
7973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7974 cat >>confdefs.h <<_ACEOF
7975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7976 _ACEOF
7977
7978 fi
7979
7980 done
7981
7982
7983 for ac_header in dlfcn.h
7984 do :
7985 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7986 "
7987 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7988 cat >>confdefs.h <<_ACEOF
7989 #define HAVE_DLFCN_H 1
7990 _ACEOF
7991
7992 fi
7993
7994 done
7995
7996
7997
7998
7999
8000 # Set options
8001 enable_dlopen=yes
8002 # Check whether --enable-static was given.
8003 if test "${enable_static+set}" = set; then :
8004 enableval=$enable_static; p=${PACKAGE-default}
8005 case $enableval in
8006 yes) enable_static=yes ;;
8007 no) enable_static=no ;;
8008 *)
8009 enable_static=no
8010 # Look at the argument we got. We use all the common list separators.
8011 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8012 for pkg in $enableval; do
8013 IFS="$lt_save_ifs"
8014 if test "X$pkg" = "X$p"; then
8015 enable_static=yes
8016 fi
8017 done
8018 IFS="$lt_save_ifs"
8019 ;;
8020 esac
8021 else
8022 enable_static=no
8023 fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 enable_win32_dll=no
8036
8037
8038 # Check whether --enable-shared was given.
8039 if test "${enable_shared+set}" = set; then :
8040 enableval=$enable_shared; p=${PACKAGE-default}
8041 case $enableval in
8042 yes) enable_shared=yes ;;
8043 no) enable_shared=no ;;
8044 *)
8045 enable_shared=no
8046 # Look at the argument we got. We use all the common list separators.
8047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8048 for pkg in $enableval; do
8049 IFS="$lt_save_ifs"
8050 if test "X$pkg" = "X$p"; then
8051 enable_shared=yes
8052 fi
8053 done
8054 IFS="$lt_save_ifs"
8055 ;;
8056 esac
8057 else
8058 enable_shared=yes
8059 fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 # Check whether --with-pic was given.
8072 if test "${with_pic+set}" = set; then :
8073 withval=$with_pic; lt_p=${PACKAGE-default}
8074 case $withval in
8075 yes|no) pic_mode=$withval ;;
8076 *)
8077 pic_mode=default
8078 # Look at the argument we got. We use all the common list separators.
8079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8080 for lt_pkg in $withval; do
8081 IFS="$lt_save_ifs"
8082 if test "X$lt_pkg" = "X$lt_p"; then
8083 pic_mode=yes
8084 fi
8085 done
8086 IFS="$lt_save_ifs"
8087 ;;
8088 esac
8089 else
8090 pic_mode=default
8091 fi
8092
8093
8094 test -z "$pic_mode" && pic_mode=default
8095
8096
8097
8098
8099
8100
8101
8102 # Check whether --enable-fast-install was given.
8103 if test "${enable_fast_install+set}" = set; then :
8104 enableval=$enable_fast_install; p=${PACKAGE-default}
8105 case $enableval in
8106 yes) enable_fast_install=yes ;;
8107 no) enable_fast_install=no ;;
8108 *)
8109 enable_fast_install=no
8110 # Look at the argument we got. We use all the common list separators.
8111 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8112 for pkg in $enableval; do
8113 IFS="$lt_save_ifs"
8114 if test "X$pkg" = "X$p"; then
8115 enable_fast_install=yes
8116 fi
8117 done
8118 IFS="$lt_save_ifs"
8119 ;;
8120 esac
8121 else
8122 enable_fast_install=yes
8123 fi
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 # This can be used to rebuild libtool when needed
8136 LIBTOOL_DEPS="$ltmain"
8137
8138 # Always use our own libtool.
8139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170 test -z "$LN_S" && LN_S="ln -s"
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 if test -n "${ZSH_VERSION+set}" ; then
8186 setopt NO_GLOB_SUBST
8187 fi
8188
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8190 $as_echo_n "checking for objdir... " >&6; }
8191 if ${lt_cv_objdir+:} false; then :
8192 $as_echo_n "(cached) " >&6
8193 else
8194 rm -f .libs 2>/dev/null
8195 mkdir .libs 2>/dev/null
8196 if test -d .libs; then
8197 lt_cv_objdir=.libs
8198 else
8199 # MS-DOS does not allow filenames that begin with a dot.
8200 lt_cv_objdir=_libs
8201 fi
8202 rmdir .libs 2>/dev/null
8203 fi
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8205 $as_echo "$lt_cv_objdir" >&6; }
8206 objdir=$lt_cv_objdir
8207
8208
8209
8210
8211
8212 cat >>confdefs.h <<_ACEOF
8213 #define LT_OBJDIR "$lt_cv_objdir/"
8214 _ACEOF
8215
8216
8217
8218
8219 case $host_os in
8220 aix3*)
8221 # AIX sometimes has problems with the GCC collect2 program. For some
8222 # reason, if we set the COLLECT_NAMES environment variable, the problems
8223 # vanish in a puff of smoke.
8224 if test "X${COLLECT_NAMES+set}" != Xset; then
8225 COLLECT_NAMES=
8226 export COLLECT_NAMES
8227 fi
8228 ;;
8229 esac
8230
8231 # Global variables:
8232 ofile=libtool
8233 can_build_shared=yes
8234
8235 # All known linkers require a `.a' archive for static linking (except MSVC,
8236 # which needs '.lib').
8237 libext=a
8238
8239 with_gnu_ld="$lt_cv_prog_gnu_ld"
8240
8241 old_CC="$CC"
8242 old_CFLAGS="$CFLAGS"
8243
8244 # Set sane defaults for various variables
8245 test -z "$CC" && CC=cc
8246 test -z "$LTCC" && LTCC=$CC
8247 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8248 test -z "$LD" && LD=ld
8249 test -z "$ac_objext" && ac_objext=o
8250
8251 for cc_temp in $compiler""; do
8252 case $cc_temp in
8253 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8254 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8255 \-*) ;;
8256 *) break;;
8257 esac
8258 done
8259 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8260
8261
8262 # Only perform the check for file, if the check method requires it
8263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8264 case $deplibs_check_method in
8265 file_magic*)
8266 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8268 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8269 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8270 $as_echo_n "(cached) " >&6
8271 else
8272 case $MAGIC_CMD in
8273 [\\/*] | ?:[\\/]*)
8274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 lt_save_MAGIC_CMD="$MAGIC_CMD"
8278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8279 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8280 for ac_dir in $ac_dummy; do
8281 IFS="$lt_save_ifs"
8282 test -z "$ac_dir" && ac_dir=.
8283 if test -f $ac_dir/${ac_tool_prefix}file; then
8284 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8285 if test -n "$file_magic_test_file"; then
8286 case $deplibs_check_method in
8287 "file_magic "*)
8288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8291 $EGREP "$file_magic_regex" > /dev/null; then
8292 :
8293 else
8294 cat <<_LT_EOF 1>&2
8295
8296 *** Warning: the command libtool uses to detect shared libraries,
8297 *** $file_magic_cmd, produces output that libtool cannot recognize.
8298 *** The result is that libtool may fail to recognize shared libraries
8299 *** as such. This will affect the creation of libtool libraries that
8300 *** depend on shared libraries, but programs linked with such libtool
8301 *** libraries will work regardless of this problem. Nevertheless, you
8302 *** may want to report the problem to your system manager and/or to
8303 *** bug-libtool@gnu.org
8304
8305 _LT_EOF
8306 fi ;;
8307 esac
8308 fi
8309 break
8310 fi
8311 done
8312 IFS="$lt_save_ifs"
8313 MAGIC_CMD="$lt_save_MAGIC_CMD"
8314 ;;
8315 esac
8316 fi
8317
8318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8319 if test -n "$MAGIC_CMD"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8321 $as_echo "$MAGIC_CMD" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327
8328
8329
8330
8331 if test -z "$lt_cv_path_MAGIC_CMD"; then
8332 if test -n "$ac_tool_prefix"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8334 $as_echo_n "checking for file... " >&6; }
8335 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $MAGIC_CMD in
8339 [\\/*] | ?:[\\/]*)
8340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 ;;
8342 *)
8343 lt_save_MAGIC_CMD="$MAGIC_CMD"
8344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346 for ac_dir in $ac_dummy; do
8347 IFS="$lt_save_ifs"
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/file; then
8350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8351 if test -n "$file_magic_test_file"; then
8352 case $deplibs_check_method in
8353 "file_magic "*)
8354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357 $EGREP "$file_magic_regex" > /dev/null; then
8358 :
8359 else
8360 cat <<_LT_EOF 1>&2
8361
8362 *** Warning: the command libtool uses to detect shared libraries,
8363 *** $file_magic_cmd, produces output that libtool cannot recognize.
8364 *** The result is that libtool may fail to recognize shared libraries
8365 *** as such. This will affect the creation of libtool libraries that
8366 *** depend on shared libraries, but programs linked with such libtool
8367 *** libraries will work regardless of this problem. Nevertheless, you
8368 *** may want to report the problem to your system manager and/or to
8369 *** bug-libtool@gnu.org
8370
8371 _LT_EOF
8372 fi ;;
8373 esac
8374 fi
8375 break
8376 fi
8377 done
8378 IFS="$lt_save_ifs"
8379 MAGIC_CMD="$lt_save_MAGIC_CMD"
8380 ;;
8381 esac
8382 fi
8383
8384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385 if test -n "$MAGIC_CMD"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387 $as_echo "$MAGIC_CMD" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393
8394 else
8395 MAGIC_CMD=:
8396 fi
8397 fi
8398
8399 fi
8400 ;;
8401 esac
8402
8403 # Use C for the default configuration in the libtool script
8404
8405 lt_save_CC="$CC"
8406 ac_ext=c
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411
8412
8413 # Source file extension for C test sources.
8414 ac_ext=c
8415
8416 # Object file extension for compiled C test sources.
8417 objext=o
8418 objext=$objext
8419
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;"
8422
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}'
8425
8426
8427
8428
8429
8430
8431
8432 # If no C compiler was specified, use CC.
8433 LTCC=${LTCC-"$CC"}
8434
8435 # If no C compiler flags were specified, use CFLAGS.
8436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8437
8438 # Allow CC to be a program name with arguments.
8439 compiler=$CC
8440
8441 # Save the default compiler, since it gets overwritten when the other
8442 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8443 compiler_DEFAULT=$CC
8444
8445 # save warnings/boilerplate of simple test code
8446 ac_outfile=conftest.$ac_objext
8447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8449 _lt_compiler_boilerplate=`cat conftest.err`
8450 $RM conftest*
8451
8452 ac_outfile=conftest.$ac_objext
8453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8455 _lt_linker_boilerplate=`cat conftest.err`
8456 $RM -r conftest*
8457
8458
8459 if test -n "$compiler"; then
8460
8461 lt_prog_compiler_no_builtin_flag=
8462
8463 if test "$GCC" = yes; then
8464 case $cc_basename in
8465 nvcc*)
8466 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8467 *)
8468 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8469 esac
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8472 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8473 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 lt_cv_prog_compiler_rtti_exceptions=no
8477 ac_outfile=conftest.$ac_objext
8478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8479 lt_compiler_flag="-fno-rtti -fno-exceptions"
8480 # Insert the option either (1) after the last *FLAGS variable, or
8481 # (2) before a word containing "conftest.", or (3) at the end.
8482 # Note that $ac_compile itself does not contain backslashes and begins
8483 # with a dollar sign (not a hyphen), so the echo should work correctly.
8484 # The option is referenced via a variable to avoid confusing sed.
8485 lt_compile=`echo "$ac_compile" | $SED \
8486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8488 -e 's:$: $lt_compiler_flag:'`
8489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8490 (eval "$lt_compile" 2>conftest.err)
8491 ac_status=$?
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 if (exit $ac_status) && test -s "$ac_outfile"; then
8495 # The compiler can only warn and ignore the option if not recognized
8496 # So say no if there are warnings other than the usual output.
8497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8500 lt_cv_prog_compiler_rtti_exceptions=yes
8501 fi
8502 fi
8503 $RM conftest*
8504
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8507 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8508
8509 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8510 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8511 else
8512 :
8513 fi
8514
8515 fi
8516
8517
8518
8519
8520
8521
8522 lt_prog_compiler_wl=
8523 lt_prog_compiler_pic=
8524 lt_prog_compiler_static=
8525
8526
8527 if test "$GCC" = yes; then
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_static='-static'
8530
8531 case $host_os in
8532 aix*)
8533 # All AIX code is PIC.
8534 if test "$host_cpu" = ia64; then
8535 # AIX 5 now supports IA64 processor
8536 lt_prog_compiler_static='-Bstatic'
8537 fi
8538 ;;
8539
8540 amigaos*)
8541 case $host_cpu in
8542 powerpc)
8543 # see comment about AmigaOS4 .so support
8544 lt_prog_compiler_pic='-fPIC'
8545 ;;
8546 m68k)
8547 # FIXME: we need at least 68020 code to build shared libraries, but
8548 # adding the `-m68020' flag to GCC prevents building anything better,
8549 # like `-m68040'.
8550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8551 ;;
8552 esac
8553 ;;
8554
8555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8556 # PIC is the default for these OSes.
8557 ;;
8558
8559 mingw* | cygwin* | pw32* | os2* | cegcc*)
8560 # This hack is so that the source file can tell whether it is being
8561 # built for inclusion in a dll (and should export symbols for example).
8562 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8563 # (--disable-auto-import) libraries
8564 lt_prog_compiler_pic='-DDLL_EXPORT'
8565 ;;
8566
8567 darwin* | rhapsody*)
8568 # PIC is the default on this platform
8569 # Common symbols not allowed in MH_DYLIB files
8570 lt_prog_compiler_pic='-fno-common'
8571 ;;
8572
8573 haiku*)
8574 # PIC is the default for Haiku.
8575 # The "-static" flag exists, but is broken.
8576 lt_prog_compiler_static=
8577 ;;
8578
8579 hpux*)
8580 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8581 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8582 # sets the default TLS model and affects inlining.
8583 case $host_cpu in
8584 hppa*64*)
8585 # +Z the default
8586 ;;
8587 *)
8588 lt_prog_compiler_pic='-fPIC'
8589 ;;
8590 esac
8591 ;;
8592
8593 interix[3-9]*)
8594 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8595 # Instead, we relocate shared libraries at runtime.
8596 ;;
8597
8598 msdosdjgpp*)
8599 # Just because we use GCC doesn't mean we suddenly get shared libraries
8600 # on systems that don't support them.
8601 lt_prog_compiler_can_build_shared=no
8602 enable_shared=no
8603 ;;
8604
8605 *nto* | *qnx*)
8606 # QNX uses GNU C++, but need to define -shared option too, otherwise
8607 # it will coredump.
8608 lt_prog_compiler_pic='-fPIC -shared'
8609 ;;
8610
8611 sysv4*MP*)
8612 if test -d /usr/nec; then
8613 lt_prog_compiler_pic=-Kconform_pic
8614 fi
8615 ;;
8616
8617 *)
8618 lt_prog_compiler_pic='-fPIC'
8619 ;;
8620 esac
8621
8622 case $cc_basename in
8623 nvcc*) # Cuda Compiler Driver 2.2
8624 lt_prog_compiler_wl='-Xlinker '
8625 if test -n "$lt_prog_compiler_pic"; then
8626 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8627 fi
8628 ;;
8629 esac
8630 else
8631 # PORTME Check for flag to pass linker flags through the system compiler.
8632 case $host_os in
8633 aix*)
8634 lt_prog_compiler_wl='-Wl,'
8635 if test "$host_cpu" = ia64; then
8636 # AIX 5 now supports IA64 processor
8637 lt_prog_compiler_static='-Bstatic'
8638 else
8639 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8640 fi
8641 ;;
8642
8643 mingw* | cygwin* | pw32* | os2* | cegcc*)
8644 # This hack is so that the source file can tell whether it is being
8645 # built for inclusion in a dll (and should export symbols for example).
8646 lt_prog_compiler_pic='-DDLL_EXPORT'
8647 ;;
8648
8649 hpux9* | hpux10* | hpux11*)
8650 lt_prog_compiler_wl='-Wl,'
8651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8652 # not for PA HP-UX.
8653 case $host_cpu in
8654 hppa*64*|ia64*)
8655 # +Z the default
8656 ;;
8657 *)
8658 lt_prog_compiler_pic='+Z'
8659 ;;
8660 esac
8661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8662 lt_prog_compiler_static='${wl}-a ${wl}archive'
8663 ;;
8664
8665 irix5* | irix6* | nonstopux*)
8666 lt_prog_compiler_wl='-Wl,'
8667 # PIC (with -KPIC) is the default.
8668 lt_prog_compiler_static='-non_shared'
8669 ;;
8670
8671 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8672 case $cc_basename in
8673 # old Intel for x86_64 which still supported -KPIC.
8674 ecc*)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-static'
8678 ;;
8679 # icc used to be incompatible with GCC.
8680 # ICC 10 doesn't accept -KPIC any more.
8681 icc* | ifort*)
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_pic='-fPIC'
8684 lt_prog_compiler_static='-static'
8685 ;;
8686 # Lahey Fortran 8.1.
8687 lf95*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='--shared'
8690 lt_prog_compiler_static='--static'
8691 ;;
8692 nagfor*)
8693 # NAG Fortran compiler
8694 lt_prog_compiler_wl='-Wl,-Wl,,'
8695 lt_prog_compiler_pic='-PIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 ;;
8698 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8699 # Portland Group compilers (*not* the Pentium gcc compiler,
8700 # which looks to be a dead project)
8701 lt_prog_compiler_wl='-Wl,'
8702 lt_prog_compiler_pic='-fpic'
8703 lt_prog_compiler_static='-Bstatic'
8704 ;;
8705 ccc*)
8706 lt_prog_compiler_wl='-Wl,'
8707 # All Alpha code is PIC.
8708 lt_prog_compiler_static='-non_shared'
8709 ;;
8710 xl* | bgxl* | bgf* | mpixl*)
8711 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-qpic'
8714 lt_prog_compiler_static='-qstaticlink'
8715 ;;
8716 *)
8717 case `$CC -V 2>&1 | sed 5q` in
8718 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8719 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-Bstatic'
8722 lt_prog_compiler_wl=''
8723 ;;
8724 *Sun\ F* | *Sun*Fortran*)
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 lt_prog_compiler_wl='-Qoption ld '
8728 ;;
8729 *Sun\ C*)
8730 # Sun C 5.9
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 lt_prog_compiler_wl='-Wl,'
8734 ;;
8735 *Intel*\ [CF]*Compiler*)
8736 lt_prog_compiler_wl='-Wl,'
8737 lt_prog_compiler_pic='-fPIC'
8738 lt_prog_compiler_static='-static'
8739 ;;
8740 *Portland\ Group*)
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='-fpic'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745 esac
8746 ;;
8747 esac
8748 ;;
8749
8750 newsos6)
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-Bstatic'
8753 ;;
8754
8755 *nto* | *qnx*)
8756 # QNX uses GNU C++, but need to define -shared option too, otherwise
8757 # it will coredump.
8758 lt_prog_compiler_pic='-fPIC -shared'
8759 ;;
8760
8761 osf3* | osf4* | osf5*)
8762 lt_prog_compiler_wl='-Wl,'
8763 # All OSF/1 code is PIC.
8764 lt_prog_compiler_static='-non_shared'
8765 ;;
8766
8767 rdos*)
8768 lt_prog_compiler_static='-non_shared'
8769 ;;
8770
8771 solaris*)
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 case $cc_basename in
8775 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8776 lt_prog_compiler_wl='-Qoption ld ';;
8777 *)
8778 lt_prog_compiler_wl='-Wl,';;
8779 esac
8780 ;;
8781
8782 sunos4*)
8783 lt_prog_compiler_wl='-Qoption ld '
8784 lt_prog_compiler_pic='-PIC'
8785 lt_prog_compiler_static='-Bstatic'
8786 ;;
8787
8788 sysv4 | sysv4.2uw2* | sysv4.3*)
8789 lt_prog_compiler_wl='-Wl,'
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 ;;
8793
8794 sysv4*MP*)
8795 if test -d /usr/nec ;then
8796 lt_prog_compiler_pic='-Kconform_pic'
8797 lt_prog_compiler_static='-Bstatic'
8798 fi
8799 ;;
8800
8801 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 ;;
8806
8807 unicos*)
8808 lt_prog_compiler_wl='-Wl,'
8809 lt_prog_compiler_can_build_shared=no
8810 ;;
8811
8812 uts4*)
8813 lt_prog_compiler_pic='-pic'
8814 lt_prog_compiler_static='-Bstatic'
8815 ;;
8816
8817 *)
8818 lt_prog_compiler_can_build_shared=no
8819 ;;
8820 esac
8821 fi
8822
8823 case $host_os in
8824 # For platforms which do not support PIC, -DPIC is meaningless:
8825 *djgpp*)
8826 lt_prog_compiler_pic=
8827 ;;
8828 *)
8829 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8830 ;;
8831 esac
8832
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8834 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8835 if ${lt_cv_prog_compiler_pic+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8839 fi
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8841 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8842 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8843
8844 #
8845 # Check to make sure the PIC flag actually works.
8846 #
8847 if test -n "$lt_prog_compiler_pic"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8849 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8850 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 lt_cv_prog_compiler_pic_works=no
8854 ac_outfile=conftest.$ac_objext
8855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8856 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8857 # Insert the option either (1) after the last *FLAGS variable, or
8858 # (2) before a word containing "conftest.", or (3) at the end.
8859 # Note that $ac_compile itself does not contain backslashes and begins
8860 # with a dollar sign (not a hyphen), so the echo should work correctly.
8861 # The option is referenced via a variable to avoid confusing sed.
8862 lt_compile=`echo "$ac_compile" | $SED \
8863 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8864 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8865 -e 's:$: $lt_compiler_flag:'`
8866 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8867 (eval "$lt_compile" 2>conftest.err)
8868 ac_status=$?
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 if (exit $ac_status) && test -s "$ac_outfile"; then
8872 # The compiler can only warn and ignore the option if not recognized
8873 # So say no if there are warnings other than the usual output.
8874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8876 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_pic_works=yes
8878 fi
8879 fi
8880 $RM conftest*
8881
8882 fi
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8884 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8885
8886 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8887 case $lt_prog_compiler_pic in
8888 "" | " "*) ;;
8889 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8890 esac
8891 else
8892 lt_prog_compiler_pic=
8893 lt_prog_compiler_can_build_shared=no
8894 fi
8895
8896 fi
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908 #
8909 # Check to make sure the static flag actually works.
8910 #
8911 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8913 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8914 if ${lt_cv_prog_compiler_static_works+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 lt_cv_prog_compiler_static_works=no
8918 save_LDFLAGS="$LDFLAGS"
8919 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8920 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8921 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8922 # The linker can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
8924 if test -s conftest.err; then
8925 # Append any errors to the config.log.
8926 cat conftest.err 1>&5
8927 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8929 if diff conftest.exp conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_static_works=yes
8931 fi
8932 else
8933 lt_cv_prog_compiler_static_works=yes
8934 fi
8935 fi
8936 $RM -r conftest*
8937 LDFLAGS="$save_LDFLAGS"
8938
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8942
8943 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8944 :
8945 else
8946 lt_prog_compiler_static=
8947 fi
8948
8949
8950
8951
8952
8953
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8956 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8957 if ${lt_cv_prog_compiler_c_o+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 lt_cv_prog_compiler_c_o=no
8961 $RM -r conftest 2>/dev/null
8962 mkdir conftest
8963 cd conftest
8964 mkdir out
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8966
8967 lt_compiler_flag="-o out/conftest2.$ac_objext"
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8977 (eval "$lt_compile" 2>out/conftest.err)
8978 ac_status=$?
8979 cat out/conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8982 then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings
8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_c_o=yes
8989 fi
8990 fi
8991 chmod u+w . 2>&5
8992 $RM conftest*
8993 # SGI C++ compiler will create directory out/ii_files/ for
8994 # template instantiation
8995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8996 $RM out/* && rmdir out
8997 cd ..
8998 $RM -r conftest
8999 $RM conftest*
9000
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9003 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9004
9005
9006
9007
9008
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9012 if ${lt_cv_prog_compiler_c_o+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 lt_cv_prog_compiler_c_o=no
9016 $RM -r conftest 2>/dev/null
9017 mkdir conftest
9018 cd conftest
9019 mkdir out
9020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
9022 lt_compiler_flag="-o out/conftest2.$ac_objext"
9023 # Insert the option either (1) after the last *FLAGS variable, or
9024 # (2) before a word containing "conftest.", or (3) at the end.
9025 # Note that $ac_compile itself does not contain backslashes and begins
9026 # with a dollar sign (not a hyphen), so the echo should work correctly.
9027 lt_compile=`echo "$ac_compile" | $SED \
9028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030 -e 's:$: $lt_compiler_flag:'`
9031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032 (eval "$lt_compile" 2>out/conftest.err)
9033 ac_status=$?
9034 cat out/conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9037 then
9038 # The compiler can only warn and ignore the option if not recognized
9039 # So say no if there are warnings
9040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9043 lt_cv_prog_compiler_c_o=yes
9044 fi
9045 fi
9046 chmod u+w . 2>&5
9047 $RM conftest*
9048 # SGI C++ compiler will create directory out/ii_files/ for
9049 # template instantiation
9050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9051 $RM out/* && rmdir out
9052 cd ..
9053 $RM -r conftest
9054 $RM conftest*
9055
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059
9060
9061
9062
9063 hard_links="nottested"
9064 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9065 # do not overwrite the value of need_locks provided by the user
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9067 $as_echo_n "checking if we can lock with hard links... " >&6; }
9068 hard_links=yes
9069 $RM conftest*
9070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9071 touch conftest.a
9072 ln conftest.a conftest.b 2>&5 || hard_links=no
9073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9075 $as_echo "$hard_links" >&6; }
9076 if test "$hard_links" = no; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9078 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9079 need_locks=warn
9080 fi
9081 else
9082 need_locks=no
9083 fi
9084
9085
9086
9087
9088
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9092
9093 runpath_var=
9094 allow_undefined_flag=
9095 always_export_symbols=no
9096 archive_cmds=
9097 archive_expsym_cmds=
9098 compiler_needs_object=no
9099 enable_shared_with_static_runtimes=no
9100 export_dynamic_flag_spec=
9101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9102 hardcode_automatic=no
9103 hardcode_direct=no
9104 hardcode_direct_absolute=no
9105 hardcode_libdir_flag_spec=
9106 hardcode_libdir_separator=
9107 hardcode_minus_L=no
9108 hardcode_shlibpath_var=unsupported
9109 inherit_rpath=no
9110 link_all_deplibs=unknown
9111 module_cmds=
9112 module_expsym_cmds=
9113 old_archive_from_new_cmds=
9114 old_archive_from_expsyms_cmds=
9115 thread_safe_flag_spec=
9116 whole_archive_flag_spec=
9117 # include_expsyms should be a list of space-separated symbols to be *always*
9118 # included in the symbol list
9119 include_expsyms=
9120 # exclude_expsyms can be an extended regexp of symbols to exclude
9121 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9122 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9123 # as well as any symbol that contains `d'.
9124 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9125 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9126 # platforms (ab)use it in PIC code, but their linkers get confused if
9127 # the symbol is explicitly referenced. Since portable code cannot
9128 # rely on this symbol name, it's probably fine to never include it in
9129 # preloaded symbol tables.
9130 # Exclude shared library initialization/finalization symbols.
9131 extract_expsyms_cmds=
9132
9133 case $host_os in
9134 cygwin* | mingw* | pw32* | cegcc*)
9135 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9136 # When not using gcc, we currently assume that we are using
9137 # Microsoft Visual C++.
9138 if test "$GCC" != yes; then
9139 with_gnu_ld=no
9140 fi
9141 ;;
9142 interix*)
9143 # we just hope/assume this is gcc and not c89 (= MSVC++)
9144 with_gnu_ld=yes
9145 ;;
9146 openbsd*)
9147 with_gnu_ld=no
9148 ;;
9149 esac
9150
9151 ld_shlibs=yes
9152
9153 # On some targets, GNU ld is compatible enough with the native linker
9154 # that we're better off using the native interface for both.
9155 lt_use_gnu_ld_interface=no
9156 if test "$with_gnu_ld" = yes; then
9157 case $host_os in
9158 aix*)
9159 # The AIX port of GNU ld has always aspired to compatibility
9160 # with the native linker. However, as the warning in the GNU ld
9161 # block says, versions before 2.19.5* couldn't really create working
9162 # shared libraries, regardless of the interface used.
9163 case `$LD -v 2>&1` in
9164 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9165 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9166 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9167 *)
9168 lt_use_gnu_ld_interface=yes
9169 ;;
9170 esac
9171 ;;
9172 *)
9173 lt_use_gnu_ld_interface=yes
9174 ;;
9175 esac
9176 fi
9177
9178 if test "$lt_use_gnu_ld_interface" = yes; then
9179 # If archive_cmds runs LD, not CC, wlarc should be empty
9180 wlarc='${wl}'
9181
9182 # Set some defaults for GNU ld with shared library support. These
9183 # are reset later if shared libraries are not supported. Putting them
9184 # here allows them to be overridden if necessary.
9185 runpath_var=LD_RUN_PATH
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 export_dynamic_flag_spec='${wl}--export-dynamic'
9188 # ancient GNU ld didn't support --whole-archive et. al.
9189 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9190 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9191 else
9192 whole_archive_flag_spec=
9193 fi
9194 supports_anon_versioning=no
9195 case `$LD -v 2>&1` in
9196 *GNU\ gold*) supports_anon_versioning=yes ;;
9197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9200 *\ 2.11.*) ;; # other 2.11 versions
9201 *) supports_anon_versioning=yes ;;
9202 esac
9203
9204 # See if GNU ld supports shared libraries.
9205 case $host_os in
9206 aix[3-9]*)
9207 # On AIX/PPC, the GNU linker is very broken
9208 if test "$host_cpu" != ia64; then
9209 ld_shlibs=no
9210 cat <<_LT_EOF 1>&2
9211
9212 *** Warning: the GNU linker, at least up to release 2.19, is reported
9213 *** to be unable to reliably create shared libraries on AIX.
9214 *** Therefore, libtool is disabling shared libraries support. If you
9215 *** really care for shared libraries, you may want to install binutils
9216 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9217 *** You will then need to restart the configuration process.
9218
9219 _LT_EOF
9220 fi
9221 ;;
9222
9223 amigaos*)
9224 case $host_cpu in
9225 powerpc)
9226 # see comment about AmigaOS4 .so support
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds=''
9229 ;;
9230 m68k)
9231 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)'
9232 hardcode_libdir_flag_spec='-L$libdir'
9233 hardcode_minus_L=yes
9234 ;;
9235 esac
9236 ;;
9237
9238 beos*)
9239 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9240 allow_undefined_flag=unsupported
9241 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9242 # support --undefined. This deserves some investigation. FIXME
9243 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9244 else
9245 ld_shlibs=no
9246 fi
9247 ;;
9248
9249 cygwin* | mingw* | pw32* | cegcc*)
9250 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9251 # as there is no search path for DLLs.
9252 hardcode_libdir_flag_spec='-L$libdir'
9253 export_dynamic_flag_spec='${wl}--export-all-symbols'
9254 allow_undefined_flag=unsupported
9255 always_export_symbols=no
9256 enable_shared_with_static_runtimes=yes
9257 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'
9258 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9259
9260 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9262 # If the export-symbols file already is a .def file (1st line
9263 # is EXPORTS), use it as is; otherwise, prepend...
9264 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9265 cp $export_symbols $output_objdir/$soname.def;
9266 else
9267 echo EXPORTS > $output_objdir/$soname.def;
9268 cat $export_symbols >> $output_objdir/$soname.def;
9269 fi~
9270 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9271 else
9272 ld_shlibs=no
9273 fi
9274 ;;
9275
9276 haiku*)
9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278 link_all_deplibs=yes
9279 ;;
9280
9281 interix[3-9]*)
9282 hardcode_direct=no
9283 hardcode_shlibpath_var=no
9284 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9285 export_dynamic_flag_spec='${wl}-E'
9286 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9287 # Instead, shared libraries are loaded at an image base (0x10000000 by
9288 # default) and relocated if they conflict, which is a slow very memory
9289 # consuming and fragmenting process. To avoid this, we pick a random,
9290 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9291 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9293 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'
9294 ;;
9295
9296 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9297 tmp_diet=no
9298 if test "$host_os" = linux-dietlibc; then
9299 case $cc_basename in
9300 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9301 esac
9302 fi
9303 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9304 && test "$tmp_diet" = no
9305 then
9306 tmp_addflag=' $pic_flag'
9307 tmp_sharedflag='-shared'
9308 case $cc_basename,$host_cpu in
9309 pgcc*) # Portland Group C compiler
9310 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'
9311 tmp_addflag=' $pic_flag'
9312 ;;
9313 pgf77* | pgf90* | pgf95* | pgfortran*)
9314 # Portland Group f77 and f90 compilers
9315 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'
9316 tmp_addflag=' $pic_flag -Mnomain' ;;
9317 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9318 tmp_addflag=' -i_dynamic' ;;
9319 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9320 tmp_addflag=' -i_dynamic -nofor_main' ;;
9321 ifc* | ifort*) # Intel Fortran compiler
9322 tmp_addflag=' -nofor_main' ;;
9323 lf95*) # Lahey Fortran 8.1
9324 whole_archive_flag_spec=
9325 tmp_sharedflag='--shared' ;;
9326 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9327 tmp_sharedflag='-qmkshrobj'
9328 tmp_addflag= ;;
9329 nvcc*) # Cuda Compiler Driver 2.2
9330 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'
9331 compiler_needs_object=yes
9332 ;;
9333 esac
9334 case `$CC -V 2>&1 | sed 5q` in
9335 *Sun\ C*) # Sun C 5.9
9336 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'
9337 compiler_needs_object=yes
9338 tmp_sharedflag='-G' ;;
9339 *Sun\ F*) # Sun Fortran 8.3
9340 tmp_sharedflag='-G' ;;
9341 esac
9342 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343
9344 if test "x$supports_anon_versioning" = xyes; then
9345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9347 echo "local: *; };" >> $output_objdir/$libname.ver~
9348 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9349 fi
9350
9351 case $cc_basename in
9352 xlf* | bgf* | bgxlf* | mpixlf*)
9353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9354 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9357 if test "x$supports_anon_versioning" = xyes; then
9358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9360 echo "local: *; };" >> $output_objdir/$libname.ver~
9361 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9362 fi
9363 ;;
9364 esac
9365 else
9366 ld_shlibs=no
9367 fi
9368 ;;
9369
9370 netbsd*)
9371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9373 wlarc=
9374 else
9375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9377 fi
9378 ;;
9379
9380 solaris*)
9381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9382 ld_shlibs=no
9383 cat <<_LT_EOF 1>&2
9384
9385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9386 *** create shared libraries on Solaris systems. Therefore, libtool
9387 *** is disabling shared libraries support. We urge you to upgrade GNU
9388 *** binutils to release 2.9.1 or newer. Another option is to modify
9389 *** your PATH or compiler configuration so that the native linker is
9390 *** used, and then restart.
9391
9392 _LT_EOF
9393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9396 else
9397 ld_shlibs=no
9398 fi
9399 ;;
9400
9401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9402 case `$LD -v 2>&1` in
9403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9404 ld_shlibs=no
9405 cat <<_LT_EOF 1>&2
9406
9407 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9408 *** reliably create shared libraries on SCO systems. Therefore, libtool
9409 *** is disabling shared libraries support. We urge you to upgrade GNU
9410 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9411 *** your PATH or compiler configuration so that the native linker is
9412 *** used, and then restart.
9413
9414 _LT_EOF
9415 ;;
9416 *)
9417 # For security reasons, it is highly recommended that you always
9418 # use absolute paths for naming shared libraries, and exclude the
9419 # DT_RUNPATH tag from executables and libraries. But doing so
9420 # requires that you compile everything twice, which is a pain.
9421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429 esac
9430 ;;
9431
9432 sunos4*)
9433 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9434 wlarc=
9435 hardcode_direct=yes
9436 hardcode_shlibpath_var=no
9437 ;;
9438
9439 *)
9440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9443 else
9444 ld_shlibs=no
9445 fi
9446 ;;
9447 esac
9448
9449 if test "$ld_shlibs" = no; then
9450 runpath_var=
9451 hardcode_libdir_flag_spec=
9452 export_dynamic_flag_spec=
9453 whole_archive_flag_spec=
9454 fi
9455 else
9456 # PORTME fill in a description of your system's linker (not GNU ld)
9457 case $host_os in
9458 aix3*)
9459 allow_undefined_flag=unsupported
9460 always_export_symbols=yes
9461 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'
9462 # Note: this linker hardcodes the directories in LIBPATH if there
9463 # are no directories specified by -L.
9464 hardcode_minus_L=yes
9465 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9466 # Neither direct hardcoding nor static linking is supported with a
9467 # broken collect2.
9468 hardcode_direct=unsupported
9469 fi
9470 ;;
9471
9472 aix[4-9]*)
9473 if test "$host_cpu" = ia64; then
9474 # On IA64, the linker does run time linking by default, so we don't
9475 # have to do anything special.
9476 aix_use_runtimelinking=no
9477 exp_sym_flag='-Bexport'
9478 no_entry_flag=""
9479 else
9480 # If we're using GNU nm, then we don't want the "-C" option.
9481 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9482 # Also, AIX nm treats weak defined symbols like other global
9483 # defined symbols, whereas GNU nm marks them as "W".
9484 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9485 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'
9486 else
9487 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'
9488 fi
9489 aix_use_runtimelinking=no
9490
9491 # Test if we are trying to use run time linking or normal
9492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9493 # need to do runtime linking.
9494 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9495 for ld_flag in $LDFLAGS; do
9496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9497 aix_use_runtimelinking=yes
9498 break
9499 fi
9500 done
9501 ;;
9502 esac
9503
9504 exp_sym_flag='-bexport'
9505 no_entry_flag='-bnoentry'
9506 fi
9507
9508 # When large executables or shared objects are built, AIX ld can
9509 # have problems creating the table of contents. If linking a library
9510 # or program results in "error TOC overflow" add -mminimal-toc to
9511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9513
9514 archive_cmds=''
9515 hardcode_direct=yes
9516 hardcode_direct_absolute=yes
9517 hardcode_libdir_separator=':'
9518 link_all_deplibs=yes
9519 file_list_spec='${wl}-f,'
9520
9521 if test "$GCC" = yes; then
9522 case $host_os in aix4.[012]|aix4.[012].*)
9523 # We only want to do this on AIX 4.2 and lower, the check
9524 # below for broken collect2 doesn't work under 4.3+
9525 collect2name=`${CC} -print-prog-name=collect2`
9526 if test -f "$collect2name" &&
9527 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9528 then
9529 # We have reworked collect2
9530 :
9531 else
9532 # We have old collect2
9533 hardcode_direct=unsupported
9534 # It fails to find uninstalled libraries when the uninstalled
9535 # path is not listed in the libpath. Setting hardcode_minus_L
9536 # to unsupported forces relinking
9537 hardcode_minus_L=yes
9538 hardcode_libdir_flag_spec='-L$libdir'
9539 hardcode_libdir_separator=
9540 fi
9541 ;;
9542 esac
9543 shared_flag='-shared'
9544 if test "$aix_use_runtimelinking" = yes; then
9545 shared_flag="$shared_flag "'${wl}-G'
9546 fi
9547 else
9548 # not using gcc
9549 if test "$host_cpu" = ia64; then
9550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9551 # chokes on -Wl,-G. The following line is correct:
9552 shared_flag='-G'
9553 else
9554 if test "$aix_use_runtimelinking" = yes; then
9555 shared_flag='${wl}-G'
9556 else
9557 shared_flag='${wl}-bM:SRE'
9558 fi
9559 fi
9560 fi
9561
9562 export_dynamic_flag_spec='${wl}-bexpall'
9563 # It seems that -bexpall does not export symbols beginning with
9564 # underscore (_), so it is better to generate a list of symbols to export.
9565 always_export_symbols=yes
9566 if test "$aix_use_runtimelinking" = yes; then
9567 # Warning - without using the other runtime loading flags (-brtl),
9568 # -berok will link without error, but may produce a broken library.
9569 allow_undefined_flag='-berok'
9570 # Determine the default libpath from the value encoded in an
9571 # empty executable.
9572 if test "${lt_cv_aix_libpath+set}" = set; then
9573 aix_libpath=$lt_cv_aix_libpath
9574 else
9575 if ${lt_cv_aix_libpath_+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9579 /* end confdefs.h. */
9580
9581 int
9582 main ()
9583 {
9584
9585 ;
9586 return 0;
9587 }
9588 _ACEOF
9589 if ac_fn_c_try_link "$LINENO"; then :
9590
9591 lt_aix_libpath_sed='
9592 /Import File Strings/,/^$/ {
9593 /^0/ {
9594 s/^0 *\([^ ]*\) *$/\1/
9595 p
9596 }
9597 }'
9598 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9599 # Check for a 64-bit object if we didn't find anything.
9600 if test -z "$lt_cv_aix_libpath_"; then
9601 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9602 fi
9603 fi
9604 rm -f core conftest.err conftest.$ac_objext \
9605 conftest$ac_exeext conftest.$ac_ext
9606 if test -z "$lt_cv_aix_libpath_"; then
9607 lt_cv_aix_libpath_="/usr/lib:/lib"
9608 fi
9609
9610 fi
9611
9612 aix_libpath=$lt_cv_aix_libpath_
9613 fi
9614
9615 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9616 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"
9617 else
9618 if test "$host_cpu" = ia64; then
9619 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9620 allow_undefined_flag="-z nodefs"
9621 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"
9622 else
9623 # Determine the default libpath from the value encoded in an
9624 # empty executable.
9625 if test "${lt_cv_aix_libpath+set}" = set; then
9626 aix_libpath=$lt_cv_aix_libpath
9627 else
9628 if ${lt_cv_aix_libpath_+:} false; then :
9629 $as_echo_n "(cached) " >&6
9630 else
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633
9634 int
9635 main ()
9636 {
9637
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643
9644 lt_aix_libpath_sed='
9645 /Import File Strings/,/^$/ {
9646 /^0/ {
9647 s/^0 *\([^ ]*\) *$/\1/
9648 p
9649 }
9650 }'
9651 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9652 # Check for a 64-bit object if we didn't find anything.
9653 if test -z "$lt_cv_aix_libpath_"; then
9654 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9655 fi
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 if test -z "$lt_cv_aix_libpath_"; then
9660 lt_cv_aix_libpath_="/usr/lib:/lib"
9661 fi
9662
9663 fi
9664
9665 aix_libpath=$lt_cv_aix_libpath_
9666 fi
9667
9668 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9669 # Warning - without using the other run time loading flags,
9670 # -berok will link without error, but may produce a broken library.
9671 no_undefined_flag=' ${wl}-bernotok'
9672 allow_undefined_flag=' ${wl}-berok'
9673 if test "$with_gnu_ld" = yes; then
9674 # We only use this code for GNU lds that support --whole-archive.
9675 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9676 else
9677 # Exported symbols can be pulled into shared objects from archives
9678 whole_archive_flag_spec='$convenience'
9679 fi
9680 archive_cmds_need_lc=yes
9681 # This is similar to how AIX traditionally builds its shared libraries.
9682 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'
9683 fi
9684 fi
9685 ;;
9686
9687 amigaos*)
9688 case $host_cpu in
9689 powerpc)
9690 # see comment about AmigaOS4 .so support
9691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692 archive_expsym_cmds=''
9693 ;;
9694 m68k)
9695 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)'
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 ;;
9699 esac
9700 ;;
9701
9702 bsdi[45]*)
9703 export_dynamic_flag_spec=-rdynamic
9704 ;;
9705
9706 cygwin* | mingw* | pw32* | cegcc*)
9707 # When not using gcc, we currently assume that we are using
9708 # Microsoft Visual C++.
9709 # hardcode_libdir_flag_spec is actually meaningless, as there is
9710 # no search path for DLLs.
9711 case $cc_basename in
9712 cl*)
9713 # Native MSVC
9714 hardcode_libdir_flag_spec=' '
9715 allow_undefined_flag=unsupported
9716 always_export_symbols=yes
9717 file_list_spec='@'
9718 # Tell ltmain to make .lib files, not .a files.
9719 libext=lib
9720 # Tell ltmain to make .dll files, not .so files.
9721 shrext_cmds=".dll"
9722 # FIXME: Setting linknames here is a bad hack.
9723 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9724 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9725 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9726 else
9727 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9728 fi~
9729 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9730 linknames='
9731 # The linker will not automatically build a static lib if we build a DLL.
9732 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9733 enable_shared_with_static_runtimes=yes
9734 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9736 # Don't use ranlib
9737 old_postinstall_cmds='chmod 644 $oldlib'
9738 postlink_cmds='lt_outputfile="@OUTPUT@"~
9739 lt_tool_outputfile="@TOOL_OUTPUT@"~
9740 case $lt_outputfile in
9741 *.exe|*.EXE) ;;
9742 *)
9743 lt_outputfile="$lt_outputfile.exe"
9744 lt_tool_outputfile="$lt_tool_outputfile.exe"
9745 ;;
9746 esac~
9747 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9748 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9749 $RM "$lt_outputfile.manifest";
9750 fi'
9751 ;;
9752 *)
9753 # Assume MSVC wrapper
9754 hardcode_libdir_flag_spec=' '
9755 allow_undefined_flag=unsupported
9756 # Tell ltmain to make .lib files, not .a files.
9757 libext=lib
9758 # Tell ltmain to make .dll files, not .so files.
9759 shrext_cmds=".dll"
9760 # FIXME: Setting linknames here is a bad hack.
9761 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9762 # The linker will automatically build a .lib file if we build a DLL.
9763 old_archive_from_new_cmds='true'
9764 # FIXME: Should let the user specify the lib program.
9765 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9766 enable_shared_with_static_runtimes=yes
9767 ;;
9768 esac
9769 ;;
9770
9771 darwin* | rhapsody*)
9772
9773
9774 archive_cmds_need_lc=no
9775 hardcode_direct=no
9776 hardcode_automatic=yes
9777 hardcode_shlibpath_var=unsupported
9778 if test "$lt_cv_ld_force_load" = "yes"; then
9779 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\"`'
9780
9781 else
9782 whole_archive_flag_spec=''
9783 fi
9784 link_all_deplibs=yes
9785 allow_undefined_flag="$_lt_dar_allow_undefined"
9786 case $cc_basename in
9787 ifort*) _lt_dar_can_shared=yes ;;
9788 *) _lt_dar_can_shared=$GCC ;;
9789 esac
9790 if test "$_lt_dar_can_shared" = "yes"; then
9791 output_verbose_link_cmd=func_echo_all
9792 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9793 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9794 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}"
9795 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}"
9796
9797 else
9798 ld_shlibs=no
9799 fi
9800
9801 ;;
9802
9803 dgux*)
9804 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec='-L$libdir'
9806 hardcode_shlibpath_var=no
9807 ;;
9808
9809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810 # support. Future versions do this automatically, but an explicit c++rt0.o
9811 # does not break anything, and helps significantly (at the cost of a little
9812 # extra space).
9813 freebsd2.2*)
9814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815 hardcode_libdir_flag_spec='-R$libdir'
9816 hardcode_direct=yes
9817 hardcode_shlibpath_var=no
9818 ;;
9819
9820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9821 freebsd2.*)
9822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_direct=yes
9824 hardcode_minus_L=yes
9825 hardcode_shlibpath_var=no
9826 ;;
9827
9828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9829 freebsd* | dragonfly*)
9830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831 hardcode_libdir_flag_spec='-R$libdir'
9832 hardcode_direct=yes
9833 hardcode_shlibpath_var=no
9834 ;;
9835
9836 hpux9*)
9837 if test "$GCC" = yes; then
9838 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'
9839 else
9840 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'
9841 fi
9842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9843 hardcode_libdir_separator=:
9844 hardcode_direct=yes
9845
9846 # hardcode_minus_L: Not really in the search PATH,
9847 # but as the default location of the library.
9848 hardcode_minus_L=yes
9849 export_dynamic_flag_spec='${wl}-E'
9850 ;;
9851
9852 hpux10*)
9853 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9854 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 else
9856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 fi
9858 if test "$with_gnu_ld" = no; then
9859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860 hardcode_libdir_separator=:
9861 hardcode_direct=yes
9862 hardcode_direct_absolute=yes
9863 export_dynamic_flag_spec='${wl}-E'
9864 # hardcode_minus_L: Not really in the search PATH,
9865 # but as the default location of the library.
9866 hardcode_minus_L=yes
9867 fi
9868 ;;
9869
9870 hpux11*)
9871 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9872 case $host_cpu in
9873 hppa*64*)
9874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9875 ;;
9876 ia64*)
9877 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878 ;;
9879 *)
9880 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881 ;;
9882 esac
9883 else
9884 case $host_cpu in
9885 hppa*64*)
9886 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 ;;
9888 ia64*)
9889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890 ;;
9891 *)
9892
9893 # Older versions of the 11.00 compiler do not understand -b yet
9894 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9896 $as_echo_n "checking if $CC understands -b... " >&6; }
9897 if ${lt_cv_prog_compiler__b+:} false; then :
9898 $as_echo_n "(cached) " >&6
9899 else
9900 lt_cv_prog_compiler__b=no
9901 save_LDFLAGS="$LDFLAGS"
9902 LDFLAGS="$LDFLAGS -b"
9903 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9904 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9905 # The linker can only warn and ignore the option if not recognized
9906 # So say no if there are warnings
9907 if test -s conftest.err; then
9908 # Append any errors to the config.log.
9909 cat conftest.err 1>&5
9910 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9911 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9912 if diff conftest.exp conftest.er2 >/dev/null; then
9913 lt_cv_prog_compiler__b=yes
9914 fi
9915 else
9916 lt_cv_prog_compiler__b=yes
9917 fi
9918 fi
9919 $RM -r conftest*
9920 LDFLAGS="$save_LDFLAGS"
9921
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9924 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9925
9926 if test x"$lt_cv_prog_compiler__b" = xyes; then
9927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928 else
9929 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930 fi
9931
9932 ;;
9933 esac
9934 fi
9935 if test "$with_gnu_ld" = no; then
9936 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9937 hardcode_libdir_separator=:
9938
9939 case $host_cpu in
9940 hppa*64*|ia64*)
9941 hardcode_direct=no
9942 hardcode_shlibpath_var=no
9943 ;;
9944 *)
9945 hardcode_direct=yes
9946 hardcode_direct_absolute=yes
9947 export_dynamic_flag_spec='${wl}-E'
9948
9949 # hardcode_minus_L: Not really in the search PATH,
9950 # but as the default location of the library.
9951 hardcode_minus_L=yes
9952 ;;
9953 esac
9954 fi
9955 ;;
9956
9957 irix5* | irix6* | nonstopux*)
9958 if test "$GCC" = yes; then
9959 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'
9960 # Try to use the -exported_symbol ld option, if it does not
9961 # work, assume that -exports_file does not work either and
9962 # implicitly export all symbols.
9963 # This should be the same for all languages, so no per-tag cache variable.
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9965 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9966 if ${lt_cv_irix_exported_symbol+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 save_LDFLAGS="$LDFLAGS"
9970 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 int foo (void) { return 0; }
9974 _ACEOF
9975 if ac_fn_c_try_link "$LINENO"; then :
9976 lt_cv_irix_exported_symbol=yes
9977 else
9978 lt_cv_irix_exported_symbol=no
9979 fi
9980 rm -f core conftest.err conftest.$ac_objext \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LDFLAGS="$save_LDFLAGS"
9983 fi
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9985 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9986 if test "$lt_cv_irix_exported_symbol" = yes; then
9987 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'
9988 fi
9989 else
9990 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'
9991 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'
9992 fi
9993 archive_cmds_need_lc='no'
9994 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9995 hardcode_libdir_separator=:
9996 inherit_rpath=yes
9997 link_all_deplibs=yes
9998 ;;
9999
10000 netbsd*)
10001 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10003 else
10004 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10005 fi
10006 hardcode_libdir_flag_spec='-R$libdir'
10007 hardcode_direct=yes
10008 hardcode_shlibpath_var=no
10009 ;;
10010
10011 newsos6)
10012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_direct=yes
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015 hardcode_libdir_separator=:
10016 hardcode_shlibpath_var=no
10017 ;;
10018
10019 *nto* | *qnx*)
10020 ;;
10021
10022 openbsd*)
10023 if test -f /usr/libexec/ld.so; then
10024 hardcode_direct=yes
10025 hardcode_shlibpath_var=no
10026 hardcode_direct_absolute=yes
10027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10028 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10029 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10030 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10031 export_dynamic_flag_spec='${wl}-E'
10032 else
10033 case $host_os in
10034 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10036 hardcode_libdir_flag_spec='-R$libdir'
10037 ;;
10038 *)
10039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10040 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10041 ;;
10042 esac
10043 fi
10044 else
10045 ld_shlibs=no
10046 fi
10047 ;;
10048
10049 os2*)
10050 hardcode_libdir_flag_spec='-L$libdir'
10051 hardcode_minus_L=yes
10052 allow_undefined_flag=unsupported
10053 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'
10054 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10055 ;;
10056
10057 osf3*)
10058 if test "$GCC" = yes; then
10059 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10060 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'
10061 else
10062 allow_undefined_flag=' -expect_unresolved \*'
10063 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'
10064 fi
10065 archive_cmds_need_lc='no'
10066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10067 hardcode_libdir_separator=:
10068 ;;
10069
10070 osf4* | osf5*) # as osf3* with the addition of -msym flag
10071 if test "$GCC" = yes; then
10072 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10073 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'
10074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075 else
10076 allow_undefined_flag=' -expect_unresolved \*'
10077 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'
10078 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~
10079 $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'
10080
10081 # Both c and cxx compiler support -rpath directly
10082 hardcode_libdir_flag_spec='-rpath $libdir'
10083 fi
10084 archive_cmds_need_lc='no'
10085 hardcode_libdir_separator=:
10086 ;;
10087
10088 solaris*)
10089 no_undefined_flag=' -z defs'
10090 if test "$GCC" = yes; then
10091 wlarc='${wl}'
10092 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10094 $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'
10095 else
10096 case `$CC -V 2>&1` in
10097 *"Compilers 5.0"*)
10098 wlarc=''
10099 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10101 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10102 ;;
10103 *)
10104 wlarc='${wl}'
10105 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10107 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10108 ;;
10109 esac
10110 fi
10111 hardcode_libdir_flag_spec='-R$libdir'
10112 hardcode_shlibpath_var=no
10113 case $host_os in
10114 solaris2.[0-5] | solaris2.[0-5].*) ;;
10115 *)
10116 # The compiler driver will combine and reorder linker options,
10117 # but understands `-z linker_flag'. GCC discards it without `$wl',
10118 # but is careful enough not to reorder.
10119 # Supported since Solaris 2.6 (maybe 2.5.1?)
10120 if test "$GCC" = yes; then
10121 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10122 else
10123 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10124 fi
10125 ;;
10126 esac
10127 link_all_deplibs=yes
10128 ;;
10129
10130 sunos4*)
10131 if test "x$host_vendor" = xsequent; then
10132 # Use $CC to link under sequent, because it throws in some extra .o
10133 # files that make .init and .fini sections work.
10134 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10135 else
10136 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10137 fi
10138 hardcode_libdir_flag_spec='-L$libdir'
10139 hardcode_direct=yes
10140 hardcode_minus_L=yes
10141 hardcode_shlibpath_var=no
10142 ;;
10143
10144 sysv4)
10145 case $host_vendor in
10146 sni)
10147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10148 hardcode_direct=yes # is this really true???
10149 ;;
10150 siemens)
10151 ## LD is ld it makes a PLAMLIB
10152 ## CC just makes a GrossModule.
10153 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10154 reload_cmds='$CC -r -o $output$reload_objs'
10155 hardcode_direct=no
10156 ;;
10157 motorola)
10158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10160 ;;
10161 esac
10162 runpath_var='LD_RUN_PATH'
10163 hardcode_shlibpath_var=no
10164 ;;
10165
10166 sysv4.3*)
10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_shlibpath_var=no
10169 export_dynamic_flag_spec='-Bexport'
10170 ;;
10171
10172 sysv4*MP*)
10173 if test -d /usr/nec; then
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_shlibpath_var=no
10176 runpath_var=LD_RUN_PATH
10177 hardcode_runpath_var=yes
10178 ld_shlibs=yes
10179 fi
10180 ;;
10181
10182 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10183 no_undefined_flag='${wl}-z,text'
10184 archive_cmds_need_lc=no
10185 hardcode_shlibpath_var=no
10186 runpath_var='LD_RUN_PATH'
10187
10188 if test "$GCC" = yes; then
10189 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10191 else
10192 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 fi
10195 ;;
10196
10197 sysv5* | sco3.2v5* | sco5v6*)
10198 # Note: We can NOT use -z defs as we might desire, because we do not
10199 # link with -lc, and that would cause any symbols used from libc to
10200 # always be unresolved, which means just about no library would
10201 # ever link correctly. If we're not using GNU ld we use -z text
10202 # though, which does catch some bad symbols but isn't as heavy-handed
10203 # as -z defs.
10204 no_undefined_flag='${wl}-z,text'
10205 allow_undefined_flag='${wl}-z,nodefs'
10206 archive_cmds_need_lc=no
10207 hardcode_shlibpath_var=no
10208 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10209 hardcode_libdir_separator=':'
10210 link_all_deplibs=yes
10211 export_dynamic_flag_spec='${wl}-Bexport'
10212 runpath_var='LD_RUN_PATH'
10213
10214 if test "$GCC" = yes; then
10215 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 else
10218 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 fi
10221 ;;
10222
10223 uts4*)
10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 hardcode_libdir_flag_spec='-L$libdir'
10226 hardcode_shlibpath_var=no
10227 ;;
10228
10229 *)
10230 ld_shlibs=no
10231 ;;
10232 esac
10233
10234 if test x$host_vendor = xsni; then
10235 case $host in
10236 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10237 export_dynamic_flag_spec='${wl}-Blargedynsym'
10238 ;;
10239 esac
10240 fi
10241 fi
10242
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10244 $as_echo "$ld_shlibs" >&6; }
10245 test "$ld_shlibs" = no && can_build_shared=no
10246
10247 with_gnu_ld=$with_gnu_ld
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263 #
10264 # Do we need to explicitly link libc?
10265 #
10266 case "x$archive_cmds_need_lc" in
10267 x|xyes)
10268 # Assume -lc should be added
10269 archive_cmds_need_lc=yes
10270
10271 if test "$enable_shared" = yes && test "$GCC" = yes; then
10272 case $archive_cmds in
10273 *'~'*)
10274 # FIXME: we may have to deal with multi-command sequences.
10275 ;;
10276 '$CC '*)
10277 # Test whether the compiler implicitly links with -lc since on some
10278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10279 # to ld, don't add -lc before -lgcc.
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10281 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10282 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 $RM conftest*
10286 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10287
10288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10289 (eval $ac_compile) 2>&5
10290 ac_status=$?
10291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10292 test $ac_status = 0; } 2>conftest.err; then
10293 soname=conftest
10294 lib=conftest
10295 libobjs=conftest.$ac_objext
10296 deplibs=
10297 wl=$lt_prog_compiler_wl
10298 pic_flag=$lt_prog_compiler_pic
10299 compiler_flags=-v
10300 linker_flags=-v
10301 verstring=
10302 output_objdir=.
10303 libname=conftest
10304 lt_save_allow_undefined_flag=$allow_undefined_flag
10305 allow_undefined_flag=
10306 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10307 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10308 ac_status=$?
10309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310 test $ac_status = 0; }
10311 then
10312 lt_cv_archive_cmds_need_lc=no
10313 else
10314 lt_cv_archive_cmds_need_lc=yes
10315 fi
10316 allow_undefined_flag=$lt_save_allow_undefined_flag
10317 else
10318 cat conftest.err 1>&5
10319 fi
10320 $RM conftest*
10321
10322 fi
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10324 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10325 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10326 ;;
10327 esac
10328 fi
10329 ;;
10330 esac
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10484 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10485
10486 if test "$GCC" = yes; then
10487 case $host_os in
10488 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10489 *) lt_awk_arg="/^libraries:/" ;;
10490 esac
10491 case $host_os in
10492 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10493 *) lt_sed_strip_eq="s,=/,/,g" ;;
10494 esac
10495 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10496 case $lt_search_path_spec in
10497 *\;*)
10498 # if the path contains ";" then we assume it to be the separator
10499 # otherwise default to the standard path separator (i.e. ":") - it is
10500 # assumed that no part of a normal pathname contains ";" but that should
10501 # okay in the real world where ";" in dirpaths is itself problematic.
10502 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10503 ;;
10504 *)
10505 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10506 ;;
10507 esac
10508 # Ok, now we have the path, separated by spaces, we can step through it
10509 # and add multilib dir if necessary.
10510 lt_tmp_lt_search_path_spec=
10511 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10512 for lt_sys_path in $lt_search_path_spec; do
10513 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10514 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10515 else
10516 test -d "$lt_sys_path" && \
10517 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10518 fi
10519 done
10520 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10521 BEGIN {RS=" "; FS="/|\n";} {
10522 lt_foo="";
10523 lt_count=0;
10524 for (lt_i = NF; lt_i > 0; lt_i--) {
10525 if ($lt_i != "" && $lt_i != ".") {
10526 if ($lt_i == "..") {
10527 lt_count++;
10528 } else {
10529 if (lt_count == 0) {
10530 lt_foo="/" $lt_i lt_foo;
10531 } else {
10532 lt_count--;
10533 }
10534 }
10535 }
10536 }
10537 if (lt_foo != "") { lt_freq[lt_foo]++; }
10538 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10539 }'`
10540 # AWK program above erroneously prepends '/' to C:/dos/paths
10541 # for these hosts.
10542 case $host_os in
10543 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10544 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10545 esac
10546 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10547 else
10548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10549 fi
10550 library_names_spec=
10551 libname_spec='lib$name'
10552 soname_spec=
10553 shrext_cmds=".so"
10554 postinstall_cmds=
10555 postuninstall_cmds=
10556 finish_cmds=
10557 finish_eval=
10558 shlibpath_var=
10559 shlibpath_overrides_runpath=unknown
10560 version_type=none
10561 dynamic_linker="$host_os ld.so"
10562 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10563 need_lib_prefix=unknown
10564 hardcode_into_libs=no
10565
10566 # when you set need_version to no, make sure it does not cause -set_version
10567 # flags to be left without arguments
10568 need_version=unknown
10569
10570 case $host_os in
10571 aix3*)
10572 version_type=linux # correct to gnu/linux during the next big refactor
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10574 shlibpath_var=LIBPATH
10575
10576 # AIX 3 has no versioning support, so we append a major version to the name.
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 ;;
10579
10580 aix[4-9]*)
10581 version_type=linux # correct to gnu/linux during the next big refactor
10582 need_lib_prefix=no
10583 need_version=no
10584 hardcode_into_libs=yes
10585 if test "$host_cpu" = ia64; then
10586 # AIX 5 supports IA64
10587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 else
10590 # With GCC up to 2.95.x, collect2 would create an import file
10591 # for dependence libraries. The import file would start with
10592 # the line `#! .'. This would cause the generated library to
10593 # depend on `.', always an invalid library. This was fixed in
10594 # development snapshots of GCC prior to 3.0.
10595 case $host_os in
10596 aix4 | aix4.[01] | aix4.[01].*)
10597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10598 echo ' yes '
10599 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10600 :
10601 else
10602 can_build_shared=no
10603 fi
10604 ;;
10605 esac
10606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10607 # soname into executable. Probably we can add versioning support to
10608 # collect2, so additional links can be useful in future.
10609 if test "$aix_use_runtimelinking" = yes; then
10610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10611 # instead of lib<name>.a to let people know that these are not
10612 # typical AIX shared libraries.
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614 else
10615 # We preserve .a as extension for shared libraries through AIX4.2
10616 # and later when we are not doing run time linking.
10617 library_names_spec='${libname}${release}.a $libname.a'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 fi
10620 shlibpath_var=LIBPATH
10621 fi
10622 ;;
10623
10624 amigaos*)
10625 case $host_cpu in
10626 powerpc)
10627 # Since July 2007 AmigaOS4 officially supports .so libraries.
10628 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 ;;
10631 m68k)
10632 library_names_spec='$libname.ixlibrary $libname.a'
10633 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10634 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'
10635 ;;
10636 esac
10637 ;;
10638
10639 beos*)
10640 library_names_spec='${libname}${shared_ext}'
10641 dynamic_linker="$host_os ld.so"
10642 shlibpath_var=LIBRARY_PATH
10643 ;;
10644
10645 bsdi[45]*)
10646 version_type=linux # correct to gnu/linux during the next big refactor
10647 need_version=no
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10649 soname_spec='${libname}${release}${shared_ext}$major'
10650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10654 # the default ld.so.conf also contains /usr/contrib/lib and
10655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10656 # libtool to hard-code these into programs
10657 ;;
10658
10659 cygwin* | mingw* | pw32* | cegcc*)
10660 version_type=windows
10661 shrext_cmds=".dll"
10662 need_version=no
10663 need_lib_prefix=no
10664
10665 case $GCC,$cc_basename in
10666 yes,*)
10667 # gcc
10668 library_names_spec='$libname.dll.a'
10669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10670 postinstall_cmds='base_file=`basename \${file}`~
10671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10672 dldir=$destdir/`dirname \$dlpath`~
10673 test -d \$dldir || mkdir -p \$dldir~
10674 $install_prog $dir/$dlname \$dldir/$dlname~
10675 chmod a+x \$dldir/$dlname~
10676 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10677 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10678 fi'
10679 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10680 dlpath=$dir/\$dldll~
10681 $RM \$dlpath'
10682 shlibpath_overrides_runpath=yes
10683
10684 case $host_os in
10685 cygwin*)
10686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10687 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10688
10689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10690 ;;
10691 mingw* | cegcc*)
10692 # MinGW DLLs use traditional 'lib' prefix
10693 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10694 ;;
10695 pw32*)
10696 # pw32 DLLs use 'pw' prefix rather than 'lib'
10697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 ;;
10699 esac
10700 dynamic_linker='Win32 ld.exe'
10701 ;;
10702
10703 *,cl*)
10704 # Native MSVC
10705 libname_spec='$name'
10706 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10707 library_names_spec='${libname}.dll.lib'
10708
10709 case $build_os in
10710 mingw*)
10711 sys_lib_search_path_spec=
10712 lt_save_ifs=$IFS
10713 IFS=';'
10714 for lt_path in $LIB
10715 do
10716 IFS=$lt_save_ifs
10717 # Let DOS variable expansion print the short 8.3 style file name.
10718 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10719 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10720 done
10721 IFS=$lt_save_ifs
10722 # Convert to MSYS style.
10723 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10724 ;;
10725 cygwin*)
10726 # Convert to unix form, then to dos form, then back to unix form
10727 # but this time dos style (no spaces!) so that the unix form looks
10728 # like /cygdrive/c/PROGRA~1:/cygdr...
10729 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10730 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10731 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10732 ;;
10733 *)
10734 sys_lib_search_path_spec="$LIB"
10735 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10736 # It is most probably a Windows format PATH.
10737 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10738 else
10739 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10740 fi
10741 # FIXME: find the short name or the path components, as spaces are
10742 # common. (e.g. "Program Files" -> "PROGRA~1")
10743 ;;
10744 esac
10745
10746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10747 postinstall_cmds='base_file=`basename \${file}`~
10748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10749 dldir=$destdir/`dirname \$dlpath`~
10750 test -d \$dldir || mkdir -p \$dldir~
10751 $install_prog $dir/$dlname \$dldir/$dlname'
10752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753 dlpath=$dir/\$dldll~
10754 $RM \$dlpath'
10755 shlibpath_overrides_runpath=yes
10756 dynamic_linker='Win32 link.exe'
10757 ;;
10758
10759 *)
10760 # Assume MSVC wrapper
10761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10762 dynamic_linker='Win32 ld.exe'
10763 ;;
10764 esac
10765 # FIXME: first we should search . and the directory the executable is in
10766 shlibpath_var=PATH
10767 ;;
10768
10769 darwin* | rhapsody*)
10770 dynamic_linker="$host_os dyld"
10771 version_type=darwin
10772 need_lib_prefix=no
10773 need_version=no
10774 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10775 soname_spec='${libname}${release}${major}$shared_ext'
10776 shlibpath_overrides_runpath=yes
10777 shlibpath_var=DYLD_LIBRARY_PATH
10778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10779
10780 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10782 ;;
10783
10784 dgux*)
10785 version_type=linux # correct to gnu/linux during the next big refactor
10786 need_lib_prefix=no
10787 need_version=no
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10789 soname_spec='${libname}${release}${shared_ext}$major'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 ;;
10792
10793 freebsd* | dragonfly*)
10794 # DragonFly does not have aout. When/if they implement a new
10795 # versioning mechanism, adjust this.
10796 if test -x /usr/bin/objformat; then
10797 objformat=`/usr/bin/objformat`
10798 else
10799 case $host_os in
10800 freebsd[23].*) objformat=aout ;;
10801 *) objformat=elf ;;
10802 esac
10803 fi
10804 version_type=freebsd-$objformat
10805 case $version_type in
10806 freebsd-elf*)
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10808 need_version=no
10809 need_lib_prefix=no
10810 ;;
10811 freebsd-*)
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10813 need_version=yes
10814 ;;
10815 esac
10816 shlibpath_var=LD_LIBRARY_PATH
10817 case $host_os in
10818 freebsd2.*)
10819 shlibpath_overrides_runpath=yes
10820 ;;
10821 freebsd3.[01]* | freebsdelf3.[01]*)
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10827 shlibpath_overrides_runpath=no
10828 hardcode_into_libs=yes
10829 ;;
10830 *) # from 4.6 on, and DragonFly
10831 shlibpath_overrides_runpath=yes
10832 hardcode_into_libs=yes
10833 ;;
10834 esac
10835 ;;
10836
10837 gnu*)
10838 version_type=linux # correct to gnu/linux during the next big refactor
10839 need_lib_prefix=no
10840 need_version=no
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10845 hardcode_into_libs=yes
10846 ;;
10847
10848 haiku*)
10849 version_type=linux # correct to gnu/linux during the next big refactor
10850 need_lib_prefix=no
10851 need_version=no
10852 dynamic_linker="$host_os runtime_loader"
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 shlibpath_var=LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes
10857 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10858 hardcode_into_libs=yes
10859 ;;
10860
10861 hpux9* | hpux10* | hpux11*)
10862 # Give a soname corresponding to the major version so that dld.sl refuses to
10863 # link against other versions.
10864 version_type=sunos
10865 need_lib_prefix=no
10866 need_version=no
10867 case $host_cpu in
10868 ia64*)
10869 shrext_cmds='.so'
10870 hardcode_into_libs=yes
10871 dynamic_linker="$host_os dld.so"
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875 soname_spec='${libname}${release}${shared_ext}$major'
10876 if test "X$HPUX_IA64_MODE" = X32; then
10877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10878 else
10879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10880 fi
10881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10882 ;;
10883 hppa*64*)
10884 shrext_cmds='.sl'
10885 hardcode_into_libs=yes
10886 dynamic_linker="$host_os dld.sl"
10887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 soname_spec='${libname}${release}${shared_ext}$major'
10891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10893 ;;
10894 *)
10895 shrext_cmds='.sl'
10896 dynamic_linker="$host_os dld.sl"
10897 shlibpath_var=SHLIB_PATH
10898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 ;;
10902 esac
10903 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10904 postinstall_cmds='chmod 555 $lib'
10905 # or fails outright, so override atomically:
10906 install_override_mode=555
10907 ;;
10908
10909 interix[3-9]*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10919 ;;
10920
10921 irix5* | irix6* | nonstopux*)
10922 case $host_os in
10923 nonstopux*) version_type=nonstopux ;;
10924 *)
10925 if test "$lt_cv_prog_gnu_ld" = yes; then
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 else
10928 version_type=irix
10929 fi ;;
10930 esac
10931 need_lib_prefix=no
10932 need_version=no
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10935 case $host_os in
10936 irix5* | nonstopux*)
10937 libsuff= shlibsuff=
10938 ;;
10939 *)
10940 case $LD in # libtool.m4 will add one of these switches to LD
10941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10942 libsuff= shlibsuff= libmagic=32-bit;;
10943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10944 libsuff=32 shlibsuff=N32 libmagic=N32;;
10945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10947 *) libsuff= shlibsuff= libmagic=never-match;;
10948 esac
10949 ;;
10950 esac
10951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10952 shlibpath_overrides_runpath=no
10953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10955 hardcode_into_libs=yes
10956 ;;
10957
10958 # No shared lib support for Linux oldld, aout, or coff.
10959 linux*oldld* | linux*aout* | linux*coff*)
10960 dynamic_linker=no
10961 ;;
10962
10963 # This must be glibc/ELF.
10964 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10965 version_type=linux # correct to gnu/linux during the next big refactor
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=no
10973
10974 # Some binutils ld are patched to set DT_RUNPATH
10975 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10976 $as_echo_n "(cached) " >&6
10977 else
10978 lt_cv_shlibpath_overrides_runpath=no
10979 save_LDFLAGS=$LDFLAGS
10980 save_libdir=$libdir
10981 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10982 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10985
10986 int
10987 main ()
10988 {
10989
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10996 lt_cv_shlibpath_overrides_runpath=yes
10997 fi
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LDFLAGS=$save_LDFLAGS
11002 libdir=$save_libdir
11003
11004 fi
11005
11006 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11007
11008 # This implies no fast_install, which is unacceptable.
11009 # Some rework will be needed to allow for fast_install
11010 # before this can be enabled.
11011 hardcode_into_libs=yes
11012
11013 # Append ld.so.conf contents to the search path
11014 if test -f /etc/ld.so.conf; then
11015 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' ' '`
11016 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11017 fi
11018
11019 # We used to test for /lib/ld.so.1 and disable shared libraries on
11020 # powerpc, because MkLinux only supported shared libraries with the
11021 # GNU dynamic linker. Since this was broken with cross compilers,
11022 # most powerpc-linux boxes support dynamic linking these days and
11023 # people can always --disable-shared, the test was removed, and we
11024 # assume the GNU/Linux dynamic linker is in use.
11025 dynamic_linker='GNU/Linux ld.so'
11026 ;;
11027
11028 netbsd*)
11029 version_type=sunos
11030 need_lib_prefix=no
11031 need_version=no
11032 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11035 dynamic_linker='NetBSD (a.out) ld.so'
11036 else
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 dynamic_linker='NetBSD ld.elf_so'
11040 fi
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=yes
11043 hardcode_into_libs=yes
11044 ;;
11045
11046 newsos6)
11047 version_type=linux # correct to gnu/linux during the next big refactor
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=yes
11051 ;;
11052
11053 *nto* | *qnx*)
11054 version_type=qnx
11055 need_lib_prefix=no
11056 need_version=no
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 hardcode_into_libs=yes
11062 dynamic_linker='ldqnx.so'
11063 ;;
11064
11065 openbsd*)
11066 version_type=sunos
11067 sys_lib_dlsearch_path_spec="/usr/lib"
11068 need_lib_prefix=no
11069 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11070 case $host_os in
11071 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11072 *) need_version=no ;;
11073 esac
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11078 case $host_os in
11079 openbsd2.[89] | openbsd2.[89].*)
11080 shlibpath_overrides_runpath=no
11081 ;;
11082 *)
11083 shlibpath_overrides_runpath=yes
11084 ;;
11085 esac
11086 else
11087 shlibpath_overrides_runpath=yes
11088 fi
11089 ;;
11090
11091 os2*)
11092 libname_spec='$name'
11093 shrext_cmds=".dll"
11094 need_lib_prefix=no
11095 library_names_spec='$libname${shared_ext} $libname.a'
11096 dynamic_linker='OS/2 ld.exe'
11097 shlibpath_var=LIBPATH
11098 ;;
11099
11100 osf3* | osf4* | osf5*)
11101 version_type=osf
11102 need_lib_prefix=no
11103 need_version=no
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11108 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11109 ;;
11110
11111 rdos*)
11112 dynamic_linker=no
11113 ;;
11114
11115 solaris*)
11116 version_type=linux # correct to gnu/linux during the next big refactor
11117 need_lib_prefix=no
11118 need_version=no
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 hardcode_into_libs=yes
11124 # ldd complains unless libraries are executable
11125 postinstall_cmds='chmod +x $lib'
11126 ;;
11127
11128 sunos4*)
11129 version_type=sunos
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11131 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11134 if test "$with_gnu_ld" = yes; then
11135 need_lib_prefix=no
11136 fi
11137 need_version=yes
11138 ;;
11139
11140 sysv4 | sysv4.3*)
11141 version_type=linux # correct to gnu/linux during the next big refactor
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143 soname_spec='${libname}${release}${shared_ext}$major'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 case $host_vendor in
11146 sni)
11147 shlibpath_overrides_runpath=no
11148 need_lib_prefix=no
11149 runpath_var=LD_RUN_PATH
11150 ;;
11151 siemens)
11152 need_lib_prefix=no
11153 ;;
11154 motorola)
11155 need_lib_prefix=no
11156 need_version=no
11157 shlibpath_overrides_runpath=no
11158 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11159 ;;
11160 esac
11161 ;;
11162
11163 sysv4*MP*)
11164 if test -d /usr/nec ;then
11165 version_type=linux # correct to gnu/linux during the next big refactor
11166 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11167 soname_spec='$libname${shared_ext}.$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 fi
11170 ;;
11171
11172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11173 version_type=freebsd-elf
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11177 soname_spec='${libname}${release}${shared_ext}$major'
11178 shlibpath_var=LD_LIBRARY_PATH
11179 shlibpath_overrides_runpath=yes
11180 hardcode_into_libs=yes
11181 if test "$with_gnu_ld" = yes; then
11182 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11183 else
11184 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11185 case $host_os in
11186 sco3.2v5*)
11187 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11188 ;;
11189 esac
11190 fi
11191 sys_lib_dlsearch_path_spec='/usr/lib'
11192 ;;
11193
11194 tpf*)
11195 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11196 version_type=linux # correct to gnu/linux during the next big refactor
11197 need_lib_prefix=no
11198 need_version=no
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=no
11202 hardcode_into_libs=yes
11203 ;;
11204
11205 uts4*)
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 ;;
11211
11212 *)
11213 dynamic_linker=no
11214 ;;
11215 esac
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11217 $as_echo "$dynamic_linker" >&6; }
11218 test "$dynamic_linker" = no && can_build_shared=no
11219
11220 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11221 if test "$GCC" = yes; then
11222 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11223 fi
11224
11225 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11226 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11227 fi
11228 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11229 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11230 fi
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11324 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11325 hardcode_action=
11326 if test -n "$hardcode_libdir_flag_spec" ||
11327 test -n "$runpath_var" ||
11328 test "X$hardcode_automatic" = "Xyes" ; then
11329
11330 # We can hardcode non-existent directories.
11331 if test "$hardcode_direct" != no &&
11332 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11333 # have to relink, otherwise we might link with an installed library
11334 # when we should be linking with a yet-to-be-installed one
11335 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11336 test "$hardcode_minus_L" != no; then
11337 # Linking always hardcodes the temporary library directory.
11338 hardcode_action=relink
11339 else
11340 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11341 hardcode_action=immediate
11342 fi
11343 else
11344 # We cannot hardcode anything, or else we can only hardcode existing
11345 # directories.
11346 hardcode_action=unsupported
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11349 $as_echo "$hardcode_action" >&6; }
11350
11351 if test "$hardcode_action" = relink ||
11352 test "$inherit_rpath" = yes; then
11353 # Fast installation is not supported
11354 enable_fast_install=no
11355 elif test "$shlibpath_overrides_runpath" = yes ||
11356 test "$enable_shared" = no; then
11357 # Fast installation is not necessary
11358 enable_fast_install=needless
11359 fi
11360
11361
11362
11363
11364
11365
11366 if test "x$enable_dlopen" != xyes; then
11367 enable_dlopen=unknown
11368 enable_dlopen_self=unknown
11369 enable_dlopen_self_static=unknown
11370 else
11371 lt_cv_dlopen=no
11372 lt_cv_dlopen_libs=
11373
11374 case $host_os in
11375 beos*)
11376 lt_cv_dlopen="load_add_on"
11377 lt_cv_dlopen_libs=
11378 lt_cv_dlopen_self=yes
11379 ;;
11380
11381 mingw* | pw32* | cegcc*)
11382 lt_cv_dlopen="LoadLibrary"
11383 lt_cv_dlopen_libs=
11384 ;;
11385
11386 cygwin*)
11387 lt_cv_dlopen="dlopen"
11388 lt_cv_dlopen_libs=
11389 ;;
11390
11391 darwin*)
11392 # if libdl is installed we need to link against it
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11395 if ${ac_cv_lib_dl_dlopen+:} false; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-ldl $LIBS"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char dlopen ();
11410 int
11411 main ()
11412 {
11413 return dlopen ();
11414 ;
11415 return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_dl_dlopen=yes
11420 else
11421 ac_cv_lib_dl_dlopen=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431 else
11432
11433 lt_cv_dlopen="dyld"
11434 lt_cv_dlopen_libs=
11435 lt_cv_dlopen_self=yes
11436
11437 fi
11438
11439 ;;
11440
11441 *)
11442 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11443 if test "x$ac_cv_func_shl_load" = xyes; then :
11444 lt_cv_dlopen="shl_load"
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11447 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11448 if ${ac_cv_lib_dld_shl_load+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldld $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char shl_load ();
11463 int
11464 main ()
11465 {
11466 return shl_load ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dld_shl_load=yes
11473 else
11474 ac_cv_lib_dld_shl_load=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11481 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11482 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11484 else
11485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11486 if test "x$ac_cv_func_dlopen" = xyes; then :
11487 lt_cv_dlopen="dlopen"
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if ${ac_cv_lib_dl_dlopen+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldl $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char dlopen ();
11506 int
11507 main ()
11508 {
11509 return dlopen ();
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_dl_dlopen=yes
11516 else
11517 ac_cv_lib_dl_dlopen=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11525 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11529 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11530 if ${ac_cv_lib_svld_dlopen+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-lsvld $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 return dlopen ();
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_svld_dlopen=yes
11555 else
11556 ac_cv_lib_svld_dlopen=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11563 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11564 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11568 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11569 if ${ac_cv_lib_dld_dld_link+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-ldld $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char dld_link ();
11584 int
11585 main ()
11586 {
11587 return dld_link ();
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_dld_dld_link=yes
11594 else
11595 ac_cv_lib_dld_dld_link=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11602 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11603 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11604 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613
11614 fi
11615
11616
11617 fi
11618
11619
11620 fi
11621
11622 ;;
11623 esac
11624
11625 if test "x$lt_cv_dlopen" != xno; then
11626 enable_dlopen=yes
11627 else
11628 enable_dlopen=no
11629 fi
11630
11631 case $lt_cv_dlopen in
11632 dlopen)
11633 save_CPPFLAGS="$CPPFLAGS"
11634 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11635
11636 save_LDFLAGS="$LDFLAGS"
11637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11638
11639 save_LIBS="$LIBS"
11640 LIBS="$lt_cv_dlopen_libs $LIBS"
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11643 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11644 if ${lt_cv_dlopen_self+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test "$cross_compiling" = yes; then :
11648 lt_cv_dlopen_self=cross
11649 else
11650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11651 lt_status=$lt_dlunknown
11652 cat > conftest.$ac_ext <<_LT_EOF
11653 #line $LINENO "configure"
11654 #include "confdefs.h"
11655
11656 #if HAVE_DLFCN_H
11657 #include <dlfcn.h>
11658 #endif
11659
11660 #include <stdio.h>
11661
11662 #ifdef RTLD_GLOBAL
11663 # define LT_DLGLOBAL RTLD_GLOBAL
11664 #else
11665 # ifdef DL_GLOBAL
11666 # define LT_DLGLOBAL DL_GLOBAL
11667 # else
11668 # define LT_DLGLOBAL 0
11669 # endif
11670 #endif
11671
11672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11673 find out it does not work in some platform. */
11674 #ifndef LT_DLLAZY_OR_NOW
11675 # ifdef RTLD_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11677 # else
11678 # ifdef DL_LAZY
11679 # define LT_DLLAZY_OR_NOW DL_LAZY
11680 # else
11681 # ifdef RTLD_NOW
11682 # define LT_DLLAZY_OR_NOW RTLD_NOW
11683 # else
11684 # ifdef DL_NOW
11685 # define LT_DLLAZY_OR_NOW DL_NOW
11686 # else
11687 # define LT_DLLAZY_OR_NOW 0
11688 # endif
11689 # endif
11690 # endif
11691 # endif
11692 #endif
11693
11694 /* When -fvisbility=hidden is used, assume the code has been annotated
11695 correspondingly for the symbols needed. */
11696 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11697 int fnord () __attribute__((visibility("default")));
11698 #endif
11699
11700 int fnord () { return 42; }
11701 int main ()
11702 {
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11705
11706 if (self)
11707 {
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else
11710 {
11711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 else puts (dlerror ());
11713 }
11714 /* dlclose (self); */
11715 }
11716 else
11717 puts (dlerror ());
11718
11719 return status;
11720 }
11721 _LT_EOF
11722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11727 (./conftest; exit; ) >&5 2>/dev/null
11728 lt_status=$?
11729 case x$lt_status in
11730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11733 esac
11734 else :
11735 # compilation failed
11736 lt_cv_dlopen_self=no
11737 fi
11738 fi
11739 rm -fr conftest*
11740
11741
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11744 $as_echo "$lt_cv_dlopen_self" >&6; }
11745
11746 if test "x$lt_cv_dlopen_self" = xyes; then
11747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11749 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11750 if ${lt_cv_dlopen_self_static+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test "$cross_compiling" = yes; then :
11754 lt_cv_dlopen_self_static=cross
11755 else
11756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757 lt_status=$lt_dlunknown
11758 cat > conftest.$ac_ext <<_LT_EOF
11759 #line $LINENO "configure"
11760 #include "confdefs.h"
11761
11762 #if HAVE_DLFCN_H
11763 #include <dlfcn.h>
11764 #endif
11765
11766 #include <stdio.h>
11767
11768 #ifdef RTLD_GLOBAL
11769 # define LT_DLGLOBAL RTLD_GLOBAL
11770 #else
11771 # ifdef DL_GLOBAL
11772 # define LT_DLGLOBAL DL_GLOBAL
11773 # else
11774 # define LT_DLGLOBAL 0
11775 # endif
11776 #endif
11777
11778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779 find out it does not work in some platform. */
11780 #ifndef LT_DLLAZY_OR_NOW
11781 # ifdef RTLD_LAZY
11782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11783 # else
11784 # ifdef DL_LAZY
11785 # define LT_DLLAZY_OR_NOW DL_LAZY
11786 # else
11787 # ifdef RTLD_NOW
11788 # define LT_DLLAZY_OR_NOW RTLD_NOW
11789 # else
11790 # ifdef DL_NOW
11791 # define LT_DLLAZY_OR_NOW DL_NOW
11792 # else
11793 # define LT_DLLAZY_OR_NOW 0
11794 # endif
11795 # endif
11796 # endif
11797 # endif
11798 #endif
11799
11800 /* When -fvisbility=hidden is used, assume the code has been annotated
11801 correspondingly for the symbols needed. */
11802 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803 int fnord () __attribute__((visibility("default")));
11804 #endif
11805
11806 int fnord () { return 42; }
11807 int main ()
11808 {
11809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810 int status = $lt_dlunknown;
11811
11812 if (self)
11813 {
11814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 else
11816 {
11817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11818 else puts (dlerror ());
11819 }
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 return status;
11826 }
11827 _LT_EOF
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self_static=no
11843 fi
11844 fi
11845 rm -fr conftest*
11846
11847
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11850 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11851 fi
11852
11853 CPPFLAGS="$save_CPPFLAGS"
11854 LDFLAGS="$save_LDFLAGS"
11855 LIBS="$save_LIBS"
11856 ;;
11857 esac
11858
11859 case $lt_cv_dlopen_self in
11860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11861 *) enable_dlopen_self=unknown ;;
11862 esac
11863
11864 case $lt_cv_dlopen_self_static in
11865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11866 *) enable_dlopen_self_static=unknown ;;
11867 esac
11868 fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886 striplib=
11887 old_striplib=
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11889 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11890 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895 else
11896 # FIXME - insert some real tests, host_os isn't really good enough
11897 case $host_os in
11898 darwin*)
11899 if test -n "$STRIP" ; then
11900 striplib="$STRIP -x"
11901 old_striplib="$STRIP -S"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908 ;;
11909 *)
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 ;;
11913 esac
11914 fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 # Report which library types will actually be built
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11929 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11931 $as_echo "$can_build_shared" >&6; }
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11934 $as_echo_n "checking whether to build shared libraries... " >&6; }
11935 test "$can_build_shared" = "no" && enable_shared=no
11936
11937 # On AIX, shared libraries and static libraries use the same namespace, and
11938 # are all built from PIC.
11939 case $host_os in
11940 aix3*)
11941 test "$enable_shared" = yes && enable_static=no
11942 if test -n "$RANLIB"; then
11943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11944 postinstall_cmds='$RANLIB $lib'
11945 fi
11946 ;;
11947
11948 aix[4-9]*)
11949 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11950 test "$enable_shared" = yes && enable_static=no
11951 fi
11952 ;;
11953 esac
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11955 $as_echo "$enable_shared" >&6; }
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11958 $as_echo_n "checking whether to build static libraries... " >&6; }
11959 # Make sure either enable_shared or enable_static is yes.
11960 test "$enable_shared" = yes || enable_static=yes
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11962 $as_echo "$enable_static" >&6; }
11963
11964
11965
11966
11967 fi
11968 ac_ext=c
11969 ac_cpp='$CPP $CPPFLAGS'
11970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11973
11974 CC="$lt_save_CC"
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990 ac_config_commands="$ac_config_commands libtool"
11991
11992
11993
11994
11995 # Only expand once:
11996
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11999 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12000 if ${libltdl_cv_shlibext+:} false; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003
12004 module=yes
12005 eval libltdl_cv_shlibext=$shrext_cmds
12006 module=no
12007 eval libltdl_cv_shrext=$shrext_cmds
12008
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12011 $as_echo "$libltdl_cv_shlibext" >&6; }
12012 if test -n "$libltdl_cv_shlibext"; then
12013
12014 cat >>confdefs.h <<_ACEOF
12015 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12016 _ACEOF
12017
12018 fi
12019 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12020
12021 cat >>confdefs.h <<_ACEOF
12022 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12023 _ACEOF
12024
12025 fi
12026
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12028 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12029 if ${lt_cv_module_path_var+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 lt_cv_module_path_var="$shlibpath_var"
12033 fi
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12035 $as_echo "$lt_cv_module_path_var" >&6; }
12036 if test -n "$lt_cv_module_path_var"; then
12037
12038 cat >>confdefs.h <<_ACEOF
12039 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12040 _ACEOF
12041
12042 fi
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12045 $as_echo_n "checking for the default library search path... " >&6; }
12046 if ${lt_cv_sys_dlsearch_path+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12052 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12053 if test -n "$lt_cv_sys_dlsearch_path"; then
12054 sys_dlsearch_path=
12055 for dir in $lt_cv_sys_dlsearch_path; do
12056 if test -z "$sys_dlsearch_path"; then
12057 sys_dlsearch_path="$dir"
12058 else
12059 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12060 fi
12061 done
12062
12063 cat >>confdefs.h <<_ACEOF
12064 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12065 _ACEOF
12066
12067 fi
12068
12069
12070 LT_DLLOADERS=
12071
12072
12073 ac_ext=c
12074 ac_cpp='$CPP $CPPFLAGS'
12075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12078
12079
12080 LIBADD_DLOPEN=
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12082 $as_echo_n "checking for library containing dlopen... " >&6; }
12083 if ${ac_cv_search_dlopen+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 ac_func_search_save_LIBS=$LIBS
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char dlopen ();
12097 int
12098 main ()
12099 {
12100 return dlopen ();
12101 ;
12102 return 0;
12103 }
12104 _ACEOF
12105 for ac_lib in '' dl; do
12106 if test -z "$ac_lib"; then
12107 ac_res="none required"
12108 else
12109 ac_res=-l$ac_lib
12110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12111 fi
12112 if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_search_dlopen=$ac_res
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext
12117 if ${ac_cv_search_dlopen+:} false; then :
12118 break
12119 fi
12120 done
12121 if ${ac_cv_search_dlopen+:} false; then :
12122
12123 else
12124 ac_cv_search_dlopen=no
12125 fi
12126 rm conftest.$ac_ext
12127 LIBS=$ac_func_search_save_LIBS
12128 fi
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12130 $as_echo "$ac_cv_search_dlopen" >&6; }
12131 ac_res=$ac_cv_search_dlopen
12132 if test "$ac_res" != no; then :
12133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12134
12135 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12136
12137 if test "$ac_cv_search_dlopen" != "none required" ; then
12138 LIBADD_DLOPEN="-ldl"
12139 fi
12140 libltdl_cv_lib_dl_dlopen="yes"
12141 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12142 else
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 #if HAVE_DLFCN_H
12146 # include <dlfcn.h>
12147 #endif
12148
12149 int
12150 main ()
12151 {
12152 dlopen(0, 0);
12153 ;
12154 return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158
12159 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12160
12161 libltdl_cv_func_dlopen="yes"
12162 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12163 else
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12165 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12166 if ${ac_cv_lib_svld_dlopen+:} false; then :
12167 $as_echo_n "(cached) " >&6
12168 else
12169 ac_check_lib_save_LIBS=$LIBS
12170 LIBS="-lsvld $LIBS"
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char dlopen ();
12181 int
12182 main ()
12183 {
12184 return dlopen ();
12185 ;
12186 return 0;
12187 }
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_svld_dlopen=yes
12191 else
12192 ac_cv_lib_svld_dlopen=no
12193 fi
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12197 fi
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12199 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12200 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12201
12202 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12203
12204 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12205 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12206 fi
12207
12208 fi
12209 rm -f core conftest.err conftest.$ac_objext \
12210 conftest$ac_exeext conftest.$ac_ext
12211 fi
12212
12213 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12214 then
12215 lt_save_LIBS="$LIBS"
12216 LIBS="$LIBS $LIBADD_DLOPEN"
12217 for ac_func in dlerror
12218 do :
12219 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12220 if test "x$ac_cv_func_dlerror" = xyes; then :
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_DLERROR 1
12223 _ACEOF
12224
12225 fi
12226 done
12227
12228 LIBS="$lt_save_LIBS"
12229 fi
12230
12231
12232 LIBADD_SHL_LOAD=
12233 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12234 if test "x$ac_cv_func_shl_load" = xyes; then :
12235
12236 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12237
12238 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12241 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12242 if ${ac_cv_lib_dld_shl_load+:} false; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 ac_check_lib_save_LIBS=$LIBS
12246 LIBS="-ldld $LIBS"
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12253 #ifdef __cplusplus
12254 extern "C"
12255 #endif
12256 char shl_load ();
12257 int
12258 main ()
12259 {
12260 return shl_load ();
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266 ac_cv_lib_dld_shl_load=yes
12267 else
12268 ac_cv_lib_dld_shl_load=no
12269 fi
12270 rm -f core conftest.err conftest.$ac_objext \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12273 fi
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12275 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12276 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12277
12278 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12279
12280 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12281 LIBADD_SHL_LOAD="-ldld"
12282 fi
12283
12284 fi
12285
12286
12287
12288 case $host_os in
12289 darwin[1567].*)
12290 # We only want this for pre-Mac OS X 10.4.
12291 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12292 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12293
12294 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12295
12296 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12297 fi
12298
12299 ;;
12300 beos*)
12301 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12302 ;;
12303 cygwin* | mingw* | os2* | pw32*)
12304 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12305 "
12306 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12307 ac_have_decl=1
12308 else
12309 ac_have_decl=0
12310 fi
12311
12312 cat >>confdefs.h <<_ACEOF
12313 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12314 _ACEOF
12315
12316 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12317 ;;
12318 esac
12319
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12321 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12322 if ${ac_cv_lib_dld_dld_link+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 ac_check_lib_save_LIBS=$LIBS
12326 LIBS="-ldld $LIBS"
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 /* Override any GCC internal prototype to avoid an error.
12331 Use char because int might match the return type of a GCC
12332 builtin and then its argument prototype would still apply. */
12333 #ifdef __cplusplus
12334 extern "C"
12335 #endif
12336 char dld_link ();
12337 int
12338 main ()
12339 {
12340 return dld_link ();
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 if ac_fn_c_try_link "$LINENO"; then :
12346 ac_cv_lib_dld_dld_link=yes
12347 else
12348 ac_cv_lib_dld_dld_link=no
12349 fi
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_lib_save_LIBS
12353 fi
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12355 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12356 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12357
12358 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12359
12360 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12361 fi
12362
12363
12364
12365
12366 LT_DLPREOPEN=
12367 if test -n "$LT_DLLOADERS"
12368 then
12369 for lt_loader in $LT_DLLOADERS; do
12370 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12371 done
12372
12373 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12374
12375 fi
12376
12377
12378 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12379
12380
12381 ac_ext=c
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12389 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12390 if ${lt_cv_sys_symbol_underscore+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 lt_cv_sys_symbol_underscore=no
12394 cat > conftest.$ac_ext <<_LT_EOF
12395 void nm_test_func(){}
12396 int main(){nm_test_func;return 0;}
12397 _LT_EOF
12398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12399 (eval $ac_compile) 2>&5
12400 ac_status=$?
12401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402 test $ac_status = 0; }; then
12403 # Now try to grab the symbols.
12404 ac_nlist=conftest.nm
12405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12406 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12407 ac_status=$?
12408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12409 test $ac_status = 0; } && test -s "$ac_nlist"; then
12410 # See whether the symbols have a leading underscore.
12411 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12412 lt_cv_sys_symbol_underscore=yes
12413 else
12414 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12415 :
12416 else
12417 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12418 fi
12419 fi
12420 else
12421 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12422 fi
12423 else
12424 echo "configure: failed program was:" >&5
12425 cat conftest.c >&5
12426 fi
12427 rm -rf conftest*
12428
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12431 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12432 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12433
12434
12435 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12436 if test x"$libltdl_cv_func_dlopen" = xyes ||
12437 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12439 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12440 if ${libltdl_cv_need_uscore+:} false; then :
12441 $as_echo_n "(cached) " >&6
12442 else
12443 libltdl_cv_need_uscore=unknown
12444 save_LIBS="$LIBS"
12445 LIBS="$LIBS $LIBADD_DLOPEN"
12446 if test "$cross_compiling" = yes; then :
12447 libltdl_cv_need_uscore=cross
12448 else
12449 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12450 lt_status=$lt_dlunknown
12451 cat > conftest.$ac_ext <<_LT_EOF
12452 #line $LINENO "configure"
12453 #include "confdefs.h"
12454
12455 #if HAVE_DLFCN_H
12456 #include <dlfcn.h>
12457 #endif
12458
12459 #include <stdio.h>
12460
12461 #ifdef RTLD_GLOBAL
12462 # define LT_DLGLOBAL RTLD_GLOBAL
12463 #else
12464 # ifdef DL_GLOBAL
12465 # define LT_DLGLOBAL DL_GLOBAL
12466 # else
12467 # define LT_DLGLOBAL 0
12468 # endif
12469 #endif
12470
12471 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12472 find out it does not work in some platform. */
12473 #ifndef LT_DLLAZY_OR_NOW
12474 # ifdef RTLD_LAZY
12475 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12476 # else
12477 # ifdef DL_LAZY
12478 # define LT_DLLAZY_OR_NOW DL_LAZY
12479 # else
12480 # ifdef RTLD_NOW
12481 # define LT_DLLAZY_OR_NOW RTLD_NOW
12482 # else
12483 # ifdef DL_NOW
12484 # define LT_DLLAZY_OR_NOW DL_NOW
12485 # else
12486 # define LT_DLLAZY_OR_NOW 0
12487 # endif
12488 # endif
12489 # endif
12490 # endif
12491 #endif
12492
12493 /* When -fvisbility=hidden is used, assume the code has been annotated
12494 correspondingly for the symbols needed. */
12495 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12496 int fnord () __attribute__((visibility("default")));
12497 #endif
12498
12499 int fnord () { return 42; }
12500 int main ()
12501 {
12502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12503 int status = $lt_dlunknown;
12504
12505 if (self)
12506 {
12507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12508 else
12509 {
12510 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12511 else puts (dlerror ());
12512 }
12513 /* dlclose (self); */
12514 }
12515 else
12516 puts (dlerror ());
12517
12518 return status;
12519 }
12520 _LT_EOF
12521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12522 (eval $ac_link) 2>&5
12523 ac_status=$?
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12526 (./conftest; exit; ) >&5 2>/dev/null
12527 lt_status=$?
12528 case x$lt_status in
12529 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12530 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12531 x$lt_dlunknown|x*) ;;
12532 esac
12533 else :
12534 # compilation failed
12535
12536 fi
12537 fi
12538 rm -fr conftest*
12539
12540 LIBS="$save_LIBS"
12541
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12544 $as_echo "$libltdl_cv_need_uscore" >&6; }
12545 fi
12546 fi
12547
12548 if test x"$libltdl_cv_need_uscore" = xyes; then
12549
12550 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12551
12552 fi
12553
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12555 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12556 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12557 $as_echo_n "(cached) " >&6
12558 else
12559 # PORTME does your system automatically load deplibs for dlopen?
12560 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12561 # For now, we just catch OSes we know something about -- in the
12562 # future, we'll try test this programmatically.
12563 lt_cv_sys_dlopen_deplibs=unknown
12564 case $host_os in
12565 aix3*|aix4.1.*|aix4.2.*)
12566 # Unknown whether this is true for these versions of AIX, but
12567 # we want this `case' here to explicitly catch those versions.
12568 lt_cv_sys_dlopen_deplibs=unknown
12569 ;;
12570 aix[4-9]*)
12571 lt_cv_sys_dlopen_deplibs=yes
12572 ;;
12573 amigaos*)
12574 case $host_cpu in
12575 powerpc)
12576 lt_cv_sys_dlopen_deplibs=no
12577 ;;
12578 esac
12579 ;;
12580 darwin*)
12581 # Assuming the user has installed a libdl from somewhere, this is true
12582 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12583 lt_cv_sys_dlopen_deplibs=yes
12584 ;;
12585 freebsd* | dragonfly*)
12586 lt_cv_sys_dlopen_deplibs=yes
12587 ;;
12588 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12589 # GNU and its variants, using gnu ld.so (Glibc)
12590 lt_cv_sys_dlopen_deplibs=yes
12591 ;;
12592 hpux10*|hpux11*)
12593 lt_cv_sys_dlopen_deplibs=yes
12594 ;;
12595 interix*)
12596 lt_cv_sys_dlopen_deplibs=yes
12597 ;;
12598 irix[12345]*|irix6.[01]*)
12599 # Catch all versions of IRIX before 6.2, and indicate that we don't
12600 # know how it worked for any of those versions.
12601 lt_cv_sys_dlopen_deplibs=unknown
12602 ;;
12603 irix*)
12604 # The case above catches anything before 6.2, and it's known that
12605 # at 6.2 and later dlopen does load deplibs.
12606 lt_cv_sys_dlopen_deplibs=yes
12607 ;;
12608 netbsd*)
12609 lt_cv_sys_dlopen_deplibs=yes
12610 ;;
12611 openbsd*)
12612 lt_cv_sys_dlopen_deplibs=yes
12613 ;;
12614 osf[1234]*)
12615 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12616 # it did *not* use an RPATH in a shared library to find objects the
12617 # library depends on, so we explicitly say `no'.
12618 lt_cv_sys_dlopen_deplibs=no
12619 ;;
12620 osf5.0|osf5.0a|osf5.1)
12621 # dlopen *does* load deplibs and with the right loader patch applied
12622 # it even uses RPATH in a shared library to search for shared objects
12623 # that the library depends on, but there's no easy way to know if that
12624 # patch is installed. Since this is the case, all we can really
12625 # say is unknown -- it depends on the patch being installed. If
12626 # it is, this changes to `yes'. Without it, it would be `no'.
12627 lt_cv_sys_dlopen_deplibs=unknown
12628 ;;
12629 osf*)
12630 # the two cases above should catch all versions of osf <= 5.1. Read
12631 # the comments above for what we know about them.
12632 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12633 # is used to find them so we can finally say `yes'.
12634 lt_cv_sys_dlopen_deplibs=yes
12635 ;;
12636 qnx*)
12637 lt_cv_sys_dlopen_deplibs=yes
12638 ;;
12639 solaris*)
12640 lt_cv_sys_dlopen_deplibs=yes
12641 ;;
12642 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12643 libltdl_cv_sys_dlopen_deplibs=yes
12644 ;;
12645 esac
12646
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12649 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12650 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12651
12652 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12653
12654 fi
12655
12656 :
12657
12658 for ac_header in argz.h
12659 do :
12660 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12661 "
12662 if test "x$ac_cv_header_argz_h" = xyes; then :
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_ARGZ_H 1
12665 _ACEOF
12666
12667 fi
12668
12669 done
12670
12671
12672 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12673 # include <argz.h>
12674 #endif
12675 "
12676 if test "x$ac_cv_type_error_t" = xyes; then :
12677
12678 cat >>confdefs.h <<_ACEOF
12679 #define HAVE_ERROR_T 1
12680 _ACEOF
12681
12682
12683 else
12684
12685 $as_echo "#define error_t int" >>confdefs.h
12686
12687
12688 $as_echo "#define __error_t_defined 1" >>confdefs.h
12689
12690 fi
12691
12692
12693 ARGZ_H=
12694 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12695 argz_next argz_stringify
12696 do :
12697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12700 cat >>confdefs.h <<_ACEOF
12701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12702 _ACEOF
12703
12704 else
12705 ARGZ_H=argz.h;
12706
12707 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12708
12709 fi
12710 done
12711
12712
12713 if test -z "$ARGZ_H"; then :
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12715 $as_echo_n "checking if argz actually works... " >&6; }
12716 if ${lt_cv_sys_argz_works+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 case $host_os in #(
12720 *cygwin*)
12721 lt_cv_sys_argz_works=no
12722 if test "$cross_compiling" != no; then
12723 lt_cv_sys_argz_works="guessing no"
12724 else
12725 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12726 save_IFS=$IFS
12727 IFS=-.
12728 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12729 IFS=$save_IFS
12730 lt_os_major=${2-0}
12731 lt_os_minor=${3-0}
12732 lt_os_micro=${4-0}
12733 if test "$lt_os_major" -gt 1 \
12734 || { test "$lt_os_major" -eq 1 \
12735 && { test "$lt_os_minor" -gt 5 \
12736 || { test "$lt_os_minor" -eq 5 \
12737 && test "$lt_os_micro" -gt 24; }; }; }; then
12738 lt_cv_sys_argz_works=yes
12739 fi
12740 fi
12741 ;; #(
12742 *) lt_cv_sys_argz_works=yes ;;
12743 esac
12744 fi
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12746 $as_echo "$lt_cv_sys_argz_works" >&6; }
12747 if test "$lt_cv_sys_argz_works" = yes; then :
12748
12749 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12750
12751 else
12752 ARGZ_H=argz.h
12753
12754
12755 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12756
12757 fi
12758 fi
12759
12760
12761
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12763 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12764 if ${libltdl_cv_preloaded_symbols+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12768 libltdl_cv_preloaded_symbols=yes
12769 else
12770 libltdl_cv_preloaded_symbols=no
12771 fi
12772
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12775 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12776 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12777
12778 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12779
12780 fi
12781
12782 # Set options
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794 # Check whether --with-included_ltdl was given.
12795 if test "${with_included_ltdl+set}" = set; then :
12796 withval=$with_included_ltdl;
12797 fi
12798
12799
12800 if test "x$with_included_ltdl" != xyes; then
12801 # We are not being forced to use the included libltdl sources, so
12802 # decide whether there is a useful installed version we can use.
12803 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12804
12805 "
12806 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12807 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12808 #include <ltdl.h>
12809 "
12810 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12812 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12813 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 ac_check_lib_save_LIBS=$LIBS
12817 LIBS="-lltdl $LIBS"
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820
12821 /* Override any GCC internal prototype to avoid an error.
12822 Use char because int might match the return type of a GCC
12823 builtin and then its argument prototype would still apply. */
12824 #ifdef __cplusplus
12825 extern "C"
12826 #endif
12827 char lt_dladvise_preload ();
12828 int
12829 main ()
12830 {
12831 return lt_dladvise_preload ();
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 if ac_fn_c_try_link "$LINENO"; then :
12837 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12838 else
12839 ac_cv_lib_ltdl_lt_dladvise_preload=no
12840 fi
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12844 fi
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12846 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12847 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12848 with_included_ltdl=no
12849 else
12850 with_included_ltdl=yes
12851 fi
12852
12853 else
12854 with_included_ltdl=yes
12855 fi
12856
12857 else
12858 with_included_ltdl=yes
12859 fi
12860
12861
12862 fi
12863
12864
12865
12866
12867 # Check whether --with-ltdl_include was given.
12868 if test "${with_ltdl_include+set}" = set; then :
12869 withval=$with_ltdl_include;
12870 fi
12871
12872
12873 if test -n "$with_ltdl_include"; then
12874 if test -f "$with_ltdl_include/ltdl.h"; then :
12875 else
12876 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12877 fi
12878 else
12879 with_ltdl_include=no
12880 fi
12881
12882
12883 # Check whether --with-ltdl_lib was given.
12884 if test "${with_ltdl_lib+set}" = set; then :
12885 withval=$with_ltdl_lib;
12886 fi
12887
12888
12889 if test -n "$with_ltdl_lib"; then
12890 if test -f "$with_ltdl_lib/libltdl.la"; then :
12891 else
12892 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12893 fi
12894 else
12895 with_ltdl_lib=no
12896 fi
12897
12898 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12899 ,yes,no,no,)
12900 case $enable_ltdl_convenience in
12901 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12902 "") enable_ltdl_convenience=yes
12903 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12904 esac
12905 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12906 LTDLDEPS=$LIBLTDL
12907 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12908
12909
12910
12911
12912
12913 # For backwards non-gettext consistent compatibility...
12914 INCLTDL="$LTDLINCL"
12915
12916
12917 ;;
12918 ,no,no,no,)
12919 # If the included ltdl is not to be used, then use the
12920 # preinstalled libltdl we found.
12921
12922 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12923
12924 LIBLTDL=-lltdl
12925 LTDLDEPS=
12926 LTDLINCL=
12927 ;;
12928 ,no*,no,*)
12929 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12930 ;;
12931 *) with_included_ltdl=no
12932 LIBLTDL="-L$with_ltdl_lib -lltdl"
12933 LTDLDEPS=
12934 LTDLINCL="-I$with_ltdl_include"
12935 ;;
12936 esac
12937 INCLTDL="$LTDLINCL"
12938
12939 # Report our decision...
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12941 $as_echo_n "checking where to find libltdl headers... " >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12943 $as_echo "$LTDLINCL" >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12945 $as_echo_n "checking where to find libltdl library... " >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12947 $as_echo "$LIBLTDL" >&6; }
12948
12949
12950
12951 # Check whether --enable-ltdl-install was given.
12952 if test "${enable_ltdl_install+set}" = set; then :
12953 enableval=$enable_ltdl_install;
12954 fi
12955
12956
12957 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12958 *yes*) ;;
12959 *) enable_ltdl_convenience=yes ;;
12960 esac
12961
12962 if test x"${enable_ltdl_install-no}" != xno; then
12963 INSTALL_LTDL_TRUE=
12964 INSTALL_LTDL_FALSE='#'
12965 else
12966 INSTALL_LTDL_TRUE='#'
12967 INSTALL_LTDL_FALSE=
12968 fi
12969
12970 if test x"${enable_ltdl_convenience-no}" != xno; then
12971 CONVENIENCE_LTDL_TRUE=
12972 CONVENIENCE_LTDL_FALSE='#'
12973 else
12974 CONVENIENCE_LTDL_TRUE='#'
12975 CONVENIENCE_LTDL_FALSE=
12976 fi
12977
12978
12979
12980
12981
12982
12983 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12984 # the user used. This is so that ltdl.h can pick up the parent projects
12985 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12986 # definitions required by ltdl.c.
12987 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12988
12989
12990
12991 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12992 do :
12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12994 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12995 "
12996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12997 cat >>confdefs.h <<_ACEOF
12998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12999 _ACEOF
13000
13001 fi
13002
13003 done
13004
13005
13006 for ac_func in closedir opendir readdir
13007 do :
13008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13013 _ACEOF
13014
13015 else
13016
13017
13018 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13019
13020 fi
13021 done
13022
13023 for ac_func in strlcat strlcpy
13024 do :
13025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13026 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13027 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13028 cat >>confdefs.h <<_ACEOF
13029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13030 _ACEOF
13031
13032 else
13033
13034
13035 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13036
13037 fi
13038 done
13039
13040
13041
13042 cat >>confdefs.h <<_ACEOF
13043 #define LT_LIBEXT "$libext"
13044 _ACEOF
13045
13046
13047 name=
13048 eval "lt_libprefix=\"$libname_spec\""
13049
13050 cat >>confdefs.h <<_ACEOF
13051 #define LT_LIBPREFIX "$lt_libprefix"
13052 _ACEOF
13053
13054
13055 name=ltdl
13056 eval "LTDLOPEN=\"$libname_spec\""
13057
13058
13059
13060
13061
13062
13063
13064
13065 # Only expand once:
13066
13067
13068 LIBTOOL="$LIBTOOL --silent"
13069
13070 # Checks for libraries.
13071
13072 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13073 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13074
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13077 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13078 if ${ac_cv_search_getaddrinfo+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 ac_func_search_save_LIBS=$LIBS
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084
13085 /* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13088 #ifdef __cplusplus
13089 extern "C"
13090 #endif
13091 char getaddrinfo ();
13092 int
13093 main ()
13094 {
13095 return getaddrinfo ();
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 for ac_lib in '' nsl; do
13101 if test -z "$ac_lib"; then
13102 ac_res="none required"
13103 else
13104 ac_res=-l$ac_lib
13105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13106 fi
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 ac_cv_search_getaddrinfo=$ac_res
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext
13112 if ${ac_cv_search_getaddrinfo+:} false; then :
13113 break
13114 fi
13115 done
13116 if ${ac_cv_search_getaddrinfo+:} false; then :
13117
13118 else
13119 ac_cv_search_getaddrinfo=no
13120 fi
13121 rm conftest.$ac_ext
13122 LIBS=$ac_func_search_save_LIBS
13123 fi
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13125 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13126 ac_res=$ac_cv_search_getaddrinfo
13127 if test "$ac_res" != no; then :
13128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13129
13130 fi
13131
13132 fi
13133
13134 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13135 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13136
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13139 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13140 if ${ac_cv_search_getnameinfo+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 ac_func_search_save_LIBS=$LIBS
13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13145 /* end confdefs.h. */
13146
13147 /* Override any GCC internal prototype to avoid an error.
13148 Use char because int might match the return type of a GCC
13149 builtin and then its argument prototype would still apply. */
13150 #ifdef __cplusplus
13151 extern "C"
13152 #endif
13153 char getnameinfo ();
13154 int
13155 main ()
13156 {
13157 return getnameinfo ();
13158 ;
13159 return 0;
13160 }
13161 _ACEOF
13162 for ac_lib in '' nsl; do
13163 if test -z "$ac_lib"; then
13164 ac_res="none required"
13165 else
13166 ac_res=-l$ac_lib
13167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13168 fi
13169 if ac_fn_c_try_link "$LINENO"; then :
13170 ac_cv_search_getnameinfo=$ac_res
13171 fi
13172 rm -f core conftest.err conftest.$ac_objext \
13173 conftest$ac_exeext
13174 if ${ac_cv_search_getnameinfo+:} false; then :
13175 break
13176 fi
13177 done
13178 if ${ac_cv_search_getnameinfo+:} false; then :
13179
13180 else
13181 ac_cv_search_getnameinfo=no
13182 fi
13183 rm conftest.$ac_ext
13184 LIBS=$ac_func_search_save_LIBS
13185 fi
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13187 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13188 ac_res=$ac_cv_search_getnameinfo
13189 if test "$ac_res" != no; then :
13190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13191
13192 fi
13193
13194 fi
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13197 $as_echo_n "checking for library containing socket... " >&6; }
13198 if ${ac_cv_search_socket+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 ac_func_search_save_LIBS=$LIBS
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204
13205 /* Override any GCC internal prototype to avoid an error.
13206 Use char because int might match the return type of a GCC
13207 builtin and then its argument prototype would still apply. */
13208 #ifdef __cplusplus
13209 extern "C"
13210 #endif
13211 char socket ();
13212 int
13213 main ()
13214 {
13215 return socket ();
13216 ;
13217 return 0;
13218 }
13219 _ACEOF
13220 for ac_lib in '' socket; do
13221 if test -z "$ac_lib"; then
13222 ac_res="none required"
13223 else
13224 ac_res=-l$ac_lib
13225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13226 fi
13227 if ac_fn_c_try_link "$LINENO"; then :
13228 ac_cv_search_socket=$ac_res
13229 fi
13230 rm -f core conftest.err conftest.$ac_objext \
13231 conftest$ac_exeext
13232 if ${ac_cv_search_socket+:} false; then :
13233 break
13234 fi
13235 done
13236 if ${ac_cv_search_socket+:} false; then :
13237
13238 else
13239 ac_cv_search_socket=no
13240 fi
13241 rm conftest.$ac_ext
13242 LIBS=$ac_func_search_save_LIBS
13243 fi
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13245 $as_echo "$ac_cv_search_socket" >&6; }
13246 ac_res=$ac_cv_search_socket
13247 if test "$ac_res" != no; then :
13248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13249
13250 else
13251 as_fn_error $? "socket library not found" "$LINENO" 5
13252 fi
13253
13254 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13255 #include <sys/socket.h>
13256 #include <netdb.h>
13257
13258 "
13259 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13260
13261 cat >>confdefs.h <<_ACEOF
13262 #define HAVE_STRUCT_SOCKADDR_IN 1
13263 _ACEOF
13264
13265
13266 fi
13267 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13268 #include <sys/socket.h>
13269 #include <netdb.h>
13270
13271 "
13272 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13273
13274 cat >>confdefs.h <<_ACEOF
13275 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13276 _ACEOF
13277
13278
13279 fi
13280 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13281 #include <sys/socket.h>
13282 #include <netdb.h>
13283
13284 "
13285 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13286
13287 cat >>confdefs.h <<_ACEOF
13288 #define HAVE_STRUCT_ADDRINFO 1
13289 _ACEOF
13290
13291
13292 fi
13293
13294 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13295 <sys/socket.h>
13296 "
13297 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13298
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13301 _ACEOF
13302
13303
13304 fi
13305
13306
13307
13308 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13309 "
13310 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13311
13312 $as_echo "#define IPV6 1" >>confdefs.h
13313
13314 fi
13315
13316
13317
13318 # Checks for typedefs, structures, and compiler characteristics.
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13320 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13321 if ${ac_cv_c_bigendian+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 ac_cv_c_bigendian=unknown
13325 # See if we're dealing with a universal compiler.
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13328 #ifndef __APPLE_CC__
13329 not a universal capable compiler
13330 #endif
13331 typedef int dummy;
13332
13333 _ACEOF
13334 if ac_fn_c_try_compile "$LINENO"; then :
13335
13336 # Check for potential -arch flags. It is not universal unless
13337 # there are at least two -arch flags with different values.
13338 ac_arch=
13339 ac_prev=
13340 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13341 if test -n "$ac_prev"; then
13342 case $ac_word in
13343 i?86 | x86_64 | ppc | ppc64)
13344 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13345 ac_arch=$ac_word
13346 else
13347 ac_cv_c_bigendian=universal
13348 break
13349 fi
13350 ;;
13351 esac
13352 ac_prev=
13353 elif test "x$ac_word" = "x-arch"; then
13354 ac_prev=arch
13355 fi
13356 done
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359 if test $ac_cv_c_bigendian = unknown; then
13360 # See if sys/param.h defines the BYTE_ORDER macro.
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <sys/types.h>
13364 #include <sys/param.h>
13365
13366 int
13367 main ()
13368 {
13369 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13370 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13371 && LITTLE_ENDIAN)
13372 bogus endian macros
13373 #endif
13374
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380 # It does; now see whether it defined to BIG_ENDIAN or not.
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13383 #include <sys/types.h>
13384 #include <sys/param.h>
13385
13386 int
13387 main ()
13388 {
13389 #if BYTE_ORDER != BIG_ENDIAN
13390 not big endian
13391 #endif
13392
13393 ;
13394 return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 ac_cv_c_bigendian=yes
13399 else
13400 ac_cv_c_bigendian=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 if test $ac_cv_c_bigendian = unknown; then
13407 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #include <limits.h>
13411
13412 int
13413 main ()
13414 {
13415 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13416 bogus endian macros
13417 #endif
13418
13419 ;
13420 return 0;
13421 }
13422 _ACEOF
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 # It does; now see whether it defined to _BIG_ENDIAN or not.
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #include <limits.h>
13428
13429 int
13430 main ()
13431 {
13432 #ifndef _BIG_ENDIAN
13433 not big endian
13434 #endif
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 if ac_fn_c_try_compile "$LINENO"; then :
13441 ac_cv_c_bigendian=yes
13442 else
13443 ac_cv_c_bigendian=no
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 fi
13449 if test $ac_cv_c_bigendian = unknown; then
13450 # Compile a test program.
13451 if test "$cross_compiling" = yes; then :
13452 # Try to guess by grepping values from an object file.
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 short int ascii_mm[] =
13456 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13457 short int ascii_ii[] =
13458 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13459 int use_ascii (int i) {
13460 return ascii_mm[i] + ascii_ii[i];
13461 }
13462 short int ebcdic_ii[] =
13463 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13464 short int ebcdic_mm[] =
13465 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13466 int use_ebcdic (int i) {
13467 return ebcdic_mm[i] + ebcdic_ii[i];
13468 }
13469 extern int foo;
13470
13471 int
13472 main ()
13473 {
13474 return use_ascii (foo) == use_ebcdic (foo);
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13481 ac_cv_c_bigendian=yes
13482 fi
13483 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13484 if test "$ac_cv_c_bigendian" = unknown; then
13485 ac_cv_c_bigendian=no
13486 else
13487 # finding both strings is unlikely to happen, but who knows?
13488 ac_cv_c_bigendian=unknown
13489 fi
13490 fi
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 $ac_includes_default
13497 int
13498 main ()
13499 {
13500
13501 /* Are we little or big endian? From Harbison&Steele. */
13502 union
13503 {
13504 long int l;
13505 char c[sizeof (long int)];
13506 } u;
13507 u.l = 1;
13508 return u.c[sizeof (long int) - 1] == 1;
13509
13510 ;
13511 return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_run "$LINENO"; then :
13515 ac_cv_c_bigendian=no
13516 else
13517 ac_cv_c_bigendian=yes
13518 fi
13519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13520 conftest.$ac_objext conftest.beam conftest.$ac_ext
13521 fi
13522
13523 fi
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13526 $as_echo "$ac_cv_c_bigendian" >&6; }
13527 case $ac_cv_c_bigendian in #(
13528 yes)
13529 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13530 ;; #(
13531 no)
13532 ;; #(
13533 universal)
13534
13535 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13536
13537 ;; #(
13538 *)
13539 as_fn_error $? "unknown endianness
13540 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13541 esac
13542
13543
13544 # Checks for library functions.
13545
13546
13547
13548 for ac_func in $ac_func_list
13549 do :
13550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13552 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13555 _ACEOF
13556
13557 fi
13558 done
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570 # Checks for header files.
13571
13572
13573
13574 for ac_header in $ac_header_list
13575 do :
13576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13577 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13578 "
13579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13580 cat >>confdefs.h <<_ACEOF
13581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13582 _ACEOF
13583
13584 fi
13585
13586 done
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13605 $as_echo_n "checking for library containing crypt... " >&6; }
13606 if ${ac_cv_search_crypt+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 ac_func_search_save_LIBS=$LIBS
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13616 #ifdef __cplusplus
13617 extern "C"
13618 #endif
13619 char crypt ();
13620 int
13621 main ()
13622 {
13623 return crypt ();
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 for ac_lib in '' crypt; do
13629 if test -z "$ac_lib"; then
13630 ac_res="none required"
13631 else
13632 ac_res=-l$ac_lib
13633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13634 fi
13635 if ac_fn_c_try_link "$LINENO"; then :
13636 ac_cv_search_crypt=$ac_res
13637 fi
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext
13640 if ${ac_cv_search_crypt+:} false; then :
13641 break
13642 fi
13643 done
13644 if ${ac_cv_search_crypt+:} false; then :
13645
13646 else
13647 ac_cv_search_crypt=no
13648 fi
13649 rm conftest.$ac_ext
13650 LIBS=$ac_func_search_save_LIBS
13651 fi
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13653 $as_echo "$ac_cv_search_crypt" >&6; }
13654 ac_res=$ac_cv_search_crypt
13655 if test "$ac_res" != no; then :
13656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13657
13658 fi
13659
13660
13661 # Check whether --enable-libpcre was given.
13662 if test "${enable_libpcre+set}" = set; then :
13663 enableval=$enable_libpcre;
13664 else
13665 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_pcre_h" = xyes; then :
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13668 $as_echo_n "checking for library containing pcre_study... " >&6; }
13669 if ${ac_cv_search_pcre_study+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 ac_func_search_save_LIBS=$LIBS
13673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674 /* end confdefs.h. */
13675
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13679 #ifdef __cplusplus
13680 extern "C"
13681 #endif
13682 char pcre_study ();
13683 int
13684 main ()
13685 {
13686 return pcre_study ();
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 for ac_lib in '' pcre; do
13692 if test -z "$ac_lib"; then
13693 ac_res="none required"
13694 else
13695 ac_res=-l$ac_lib
13696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13697 fi
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 ac_cv_search_pcre_study=$ac_res
13700 fi
13701 rm -f core conftest.err conftest.$ac_objext \
13702 conftest$ac_exeext
13703 if ${ac_cv_search_pcre_study+:} false; then :
13704 break
13705 fi
13706 done
13707 if ${ac_cv_search_pcre_study+:} false; then :
13708
13709 else
13710 ac_cv_search_pcre_study=no
13711 fi
13712 rm conftest.$ac_ext
13713 LIBS=$ac_func_search_save_LIBS
13714 fi
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13716 $as_echo "$ac_cv_search_pcre_study" >&6; }
13717 ac_res=$ac_cv_search_pcre_study
13718 if test "$ac_res" != no; then :
13719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13720
13721 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13722
13723 fi
13724
13725 fi
13726
13727
13728 fi
13729
13730
13731 # Check whether --enable-libGeoIP was given.
13732 if test "${enable_libGeoIP+set}" = set; then :
13733 enableval=$enable_libGeoIP;
13734 else
13735 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13736 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13738 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13739 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 ac_func_search_save_LIBS=$LIBS
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745
13746 /* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 char GeoIP_id_by_ipnum_v6_gl ();
13753 int
13754 main ()
13755 {
13756 return GeoIP_id_by_ipnum_v6_gl ();
13757 ;
13758 return 0;
13759 }
13760 _ACEOF
13761 for ac_lib in '' GeoIP; do
13762 if test -z "$ac_lib"; then
13763 ac_res="none required"
13764 else
13765 ac_res=-l$ac_lib
13766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13767 fi
13768 if ac_fn_c_try_link "$LINENO"; then :
13769 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext \
13772 conftest$ac_exeext
13773 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13774 break
13775 fi
13776 done
13777 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13778
13779 else
13780 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13781 fi
13782 rm conftest.$ac_ext
13783 LIBS=$ac_func_search_save_LIBS
13784 fi
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13786 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13787 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13788 if test "$ac_res" != no; then :
13789 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13790
13791 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13792
13793 fi
13794
13795 fi
13796
13797
13798 fi
13799
13800
13801 # Check whether --enable-openssl was given.
13802 if test "${enable_openssl+set}" = set; then :
13803 enableval=$enable_openssl; cf_enable_openssl=$enableval
13804 else
13805 cf_enable_openssl="auto"
13806 fi
13807
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13809 $as_echo_n "checking for OpenSSL... " >&6; }
13810 if test "$cf_enable_openssl" != "no"; then
13811 cf_openssl_basedir=""
13812 if test "$cf_enable_openssl" != "auto" &&
13813 test "$cf_enable_openssl" != "yes"; then
13814 cf_openssl_basedir="${cf_enable_openssl}"
13815 else
13816 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13817 /opt /opt/openssl /usr/local/openssl; do
13818 if test -f "${dirs}/include/openssl/opensslv.h"; then
13819 cf_openssl_basedir="${dirs}"
13820 break
13821 fi
13822 done
13823 unset dirs
13824 fi
13825
13826 if test ! -z "$cf_openssl_basedir"; then
13827 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13828 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13829 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13830 else
13831 cf_openssl_basedir=""
13832 fi
13833 else
13834 if test -f "/usr/include/openssl/opensslv.h"; then
13835 cf_openssl_basedir="/usr"
13836 fi
13837 fi
13838
13839 if test ! -z "$cf_openssl_basedir"; then
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13841 $as_echo "$cf_openssl_basedir" >&6; }
13842 cf_enable_openssl="yes"
13843 else
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13845 $as_echo "not found. Please check your path." >&6; }
13846 cf_enable_openssl="no"
13847 fi
13848 unset cf_openssl_basedir
13849 else
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13851 $as_echo "disabled" >&6; }
13852 fi
13853
13854 if test "$cf_enable_openssl" != "no"; then :
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8s or above" >&5
13856 $as_echo_n "checking for OpenSSL 0.9.8s or above... " >&6; }
13857 if test "$cross_compiling" = yes; then :
13858 cf_openssl_version_ok=no
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862
13863
13864 #include <openssl/opensslv.h>
13865 #include <stdlib.h>
13866 int
13867 main ()
13868 {
13869 exit(!(OPENSSL_VERSION_NUMBER >= 0x0090813f));
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_run "$LINENO"; then :
13875 cf_openssl_version_ok=yes
13876 else
13877 cf_openssl_version_ok=no
13878 fi
13879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13880 conftest.$ac_objext conftest.beam conftest.$ac_ext
13881 fi
13882
13883
13884 if test "$cf_openssl_version_ok" = "yes"; then :
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13886 $as_echo "found" >&6; }
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13889 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13890 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 ac_check_lib_save_LIBS=$LIBS
13894 LIBS="-lcrypto $LIBS"
13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h. */
13897
13898 /* Override any GCC internal prototype to avoid an error.
13899 Use char because int might match the return type of a GCC
13900 builtin and then its argument prototype would still apply. */
13901 #ifdef __cplusplus
13902 extern "C"
13903 #endif
13904 char RSA_free ();
13905 int
13906 main ()
13907 {
13908 return RSA_free ();
13909 ;
13910 return 0;
13911 }
13912 _ACEOF
13913 if ac_fn_c_try_link "$LINENO"; then :
13914 ac_cv_lib_crypto_RSA_free=yes
13915 else
13916 ac_cv_lib_crypto_RSA_free=no
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext \
13919 conftest$ac_exeext conftest.$ac_ext
13920 LIBS=$ac_check_lib_save_LIBS
13921 fi
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13923 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13924 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13925 cat >>confdefs.h <<_ACEOF
13926 #define HAVE_LIBCRYPTO 1
13927 _ACEOF
13928
13929 LIBS="-lcrypto $LIBS"
13930
13931 fi
13932
13933 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13935 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13936 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 ac_check_lib_save_LIBS=$LIBS
13940 LIBS="-lssl $LIBS"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943
13944 /* Override any GCC internal prototype to avoid an error.
13945 Use char because int might match the return type of a GCC
13946 builtin and then its argument prototype would still apply. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 char SSL_connect ();
13951 int
13952 main ()
13953 {
13954 return SSL_connect ();
13955 ;
13956 return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_link "$LINENO"; then :
13960 ac_cv_lib_ssl_SSL_connect=yes
13961 else
13962 ac_cv_lib_ssl_SSL_connect=no
13963 fi
13964 rm -f core conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13969 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13970 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_LIBSSL 1
13973 _ACEOF
13974
13975 LIBS="-lssl $LIBS"
13976
13977 fi
13978
13979 fi
13980
13981 else
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13983 $as_echo "no - OpenSSL support disabled" >&6; }
13984 cf_enable_openssl="no"
13985 fi
13986 fi
13987
13988 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13989 ENABLE_SSL_TRUE=
13990 ENABLE_SSL_FALSE='#'
13991 else
13992 ENABLE_SSL_TRUE='#'
13993 ENABLE_SSL_FALSE=
13994 fi
13995
13996
13997
13998 # Check whether --enable-assert was given.
13999 if test "${enable_assert+set}" = set; then :
14000 enableval=$enable_assert; assert=$enableval
14001 else
14002 assert=no
14003 fi
14004
14005
14006 if test "$assert" = "no"; then :
14007
14008 $as_echo "#define NDEBUG 1" >>confdefs.h
14009
14010 fi
14011
14012
14013
14014 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
14015
14016
14017 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h
14018
14019
14020 $as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h
14021
14022
14023 $as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h
14024
14025
14026 $as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h
14027
14028
14029 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h
14030
14031
14032 $as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h
14033
14034
14035 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14036
14037
14038 $as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h
14039
14040
14041 $as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h
14042
14043
14044 $as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h
14045
14046
14047 # Argument processing.
14048
14049 desired_iopoll_mechanism="none"
14050 # Check whether --enable-kqueue was given.
14051 if test "${enable_kqueue+set}" = set; then :
14052 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14053 fi
14054
14055 # Check whether --enable-epoll was given.
14056 if test "${enable_epoll+set}" = set; then :
14057 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14058 fi
14059
14060 # Check whether --enable-devpoll was given.
14061 if test "${enable_devpoll+set}" = set; then :
14062 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14063 fi
14064
14065 # Check whether --enable-poll was given.
14066 if test "${enable_poll+set}" = set; then :
14067 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14068 fi
14069
14070 # Check whether --enable-select was given.
14071 if test "${enable_select+set}" = set; then :
14072 enableval=$enable_select; desired_iopoll_mechanism="select"
14073 fi
14074
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14076 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14077 iopoll_mechanism_none=0
14078
14079 cat >>confdefs.h <<_ACEOF
14080 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14081 _ACEOF
14082
14083 iopoll_mechanism_kqueue=1
14084
14085 cat >>confdefs.h <<_ACEOF
14086 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14087 _ACEOF
14088
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14093 #define kevent innocuous_kevent
14094
14095 /* System header to define __stub macros and hopefully few prototypes,
14096 which can conflict with char kevent (); below.
14097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14098 <limits.h> exists even on freestanding compilers. */
14099
14100 #ifdef __STDC__
14101 # include <limits.h>
14102 #else
14103 # include <assert.h>
14104 #endif
14105
14106 #undef kevent
14107
14108 /* Override any GCC internal prototype to avoid an error.
14109 Use char because int might match the return type of a GCC
14110 builtin and then its argument prototype would still apply. */
14111 #ifdef __cplusplus
14112 extern "C"
14113 #endif
14114 char kevent ();
14115 /* The GNU C library defines this for functions which it implements
14116 to always fail with ENOSYS. Some functions are actually named
14117 something starting with __ and the normal name is an alias. */
14118 #if defined __stub_kevent || defined __stub___kevent
14119 choke me
14120 #endif
14121
14122 int
14123 main ()
14124 {
14125 return kevent ();
14126 ;
14127 return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 is_kqueue_mechanism_available="yes"
14132 else
14133 is_kqueue_mechanism_available="no"
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 iopoll_mechanism_epoll=2
14138
14139 cat >>confdefs.h <<_ACEOF
14140 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14141 _ACEOF
14142
14143 if test "$cross_compiling" = yes; then :
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14146 as_fn_error $? "cannot run test program while cross compiling
14147 See \`config.log' for more details" "$LINENO" 5; }
14148 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151
14152 #include <sys/epoll.h>
14153 #include <sys/syscall.h>
14154 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14155 #if !defined(__NR_epoll_create)
14156 #if defined(__ia64__)
14157 #define __NR_epoll_create 1243
14158 #elif defined(__x86_64__)
14159 #define __NR_epoll_create 214
14160 #elif defined(__sparc64__) || defined(__sparc__)
14161 #define __NR_epoll_create 193
14162 #elif defined(__s390__) || defined(__m68k__)
14163 #define __NR_epoll_create 249
14164 #elif defined(__ppc64__) || defined(__ppc__)
14165 #define __NR_epoll_create 236
14166 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14167 #define __NR_epoll_create 224
14168 #elif defined(__alpha__)
14169 #define __NR_epoll_create 407
14170 #elif defined(__sh64__)
14171 #define __NR_epoll_create 282
14172 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14173 #define __NR_epoll_create 254
14174 #else
14175 #error No system call numbers defined for epoll family.
14176 #endif
14177 #endif
14178 _syscall1(int, epoll_create, int, size)
14179 #endif
14180
14181 int
14182 main ()
14183 {
14184 return epoll_create(256) == -1 ? 1 : 0
14185 ;
14186 return 0;
14187 }
14188 _ACEOF
14189 if ac_fn_c_try_run "$LINENO"; then :
14190 is_epoll_mechanism_available="yes"
14191 else
14192 is_epoll_mechanism_available="no"
14193 fi
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14195 conftest.$ac_objext conftest.beam conftest.$ac_ext
14196 fi
14197
14198 iopoll_mechanism_devpoll=3
14199
14200 cat >>confdefs.h <<_ACEOF
14201 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14202 _ACEOF
14203
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14206 #include <devpoll.h>
14207 int
14208 main ()
14209 {
14210
14211 ;
14212 return 0;
14213 }
14214 _ACEOF
14215 if ac_fn_c_try_compile "$LINENO"; then :
14216 is_devpoll_mechanism_available="yes"
14217 else
14218 is_devpoll_mechanism_available="no"
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 if test "$is_devpoll_mechanism_available" = "yes" ; then
14222
14223 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14224
14225 fi
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #include <sys/devpoll.h>
14229 int
14230 main ()
14231 {
14232
14233 ;
14234 return 0;
14235 }
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 is_devpoll_mechanism_available="yes"
14239 else
14240 is_devpoll_mechanism_available="no"
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 if test "$is_devpoll_mechanism_available" = "yes" ; then
14244
14245 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14246
14247 fi
14248 iopoll_mechanism_poll=4
14249
14250 cat >>confdefs.h <<_ACEOF
14251 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14252 _ACEOF
14253
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14258 #define poll innocuous_poll
14259
14260 /* System header to define __stub macros and hopefully few prototypes,
14261 which can conflict with char poll (); below.
14262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14263 <limits.h> exists even on freestanding compilers. */
14264
14265 #ifdef __STDC__
14266 # include <limits.h>
14267 #else
14268 # include <assert.h>
14269 #endif
14270
14271 #undef poll
14272
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14276 #ifdef __cplusplus
14277 extern "C"
14278 #endif
14279 char poll ();
14280 /* The GNU C library defines this for functions which it implements
14281 to always fail with ENOSYS. Some functions are actually named
14282 something starting with __ and the normal name is an alias. */
14283 #if defined __stub_poll || defined __stub___poll
14284 choke me
14285 #endif
14286
14287 int
14288 main ()
14289 {
14290 return poll ();
14291 ;
14292 return 0;
14293 }
14294 _ACEOF
14295 if ac_fn_c_try_link "$LINENO"; then :
14296 is_poll_mechanism_available="yes"
14297 else
14298 is_poll_mechanism_available="no"
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14302 iopoll_mechanism_select=5
14303
14304 cat >>confdefs.h <<_ACEOF
14305 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14306 _ACEOF
14307
14308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 /* Define select to an innocuous variant, in case <limits.h> declares select.
14311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14312 #define select innocuous_select
14313
14314 /* System header to define __stub macros and hopefully few prototypes,
14315 which can conflict with char select (); below.
14316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14317 <limits.h> exists even on freestanding compilers. */
14318
14319 #ifdef __STDC__
14320 # include <limits.h>
14321 #else
14322 # include <assert.h>
14323 #endif
14324
14325 #undef select
14326
14327 /* Override any GCC internal prototype to avoid an error.
14328 Use char because int might match the return type of a GCC
14329 builtin and then its argument prototype would still apply. */
14330 #ifdef __cplusplus
14331 extern "C"
14332 #endif
14333 char select ();
14334 /* The GNU C library defines this for functions which it implements
14335 to always fail with ENOSYS. Some functions are actually named
14336 something starting with __ and the normal name is an alias. */
14337 #if defined __stub_select || defined __stub___select
14338 choke me
14339 #endif
14340
14341 int
14342 main ()
14343 {
14344 return select ();
14345 ;
14346 return 0;
14347 }
14348 _ACEOF
14349 if ac_fn_c_try_link "$LINENO"; then :
14350 is_select_mechanism_available="yes"
14351 else
14352 is_select_mechanism_available="no"
14353 fi
14354 rm -f core conftest.err conftest.$ac_objext \
14355 conftest$ac_exeext conftest.$ac_ext
14356 optimal_iopoll_mechanism="none"
14357 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14358 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14359 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14360 optimal_iopoll_mechanism="$mechanism"
14361 break
14362 fi
14363 done
14364 if test "$desired_iopoll_mechanism" = "none" ; then
14365 if test "$optimal_iopoll_mechanism" = "none" ; then
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14367 $as_echo "none" >&6; }
14368 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14369 else
14370 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14372 $as_echo "$selected_iopoll_mechanism" >&6; }
14373 fi
14374 else
14375 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14376 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14377 selected_iopoll_mechanism=$desired_iopoll_mechanism
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14379 $as_echo "$selected_iopoll_mechanism" >&6; }
14380 else
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14382 $as_echo "none" >&6; }
14383 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14384 fi
14385 fi
14386 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14387
14388 cat >>confdefs.h <<_ACEOF
14389 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14390 _ACEOF
14391
14392
14393
14394 # Check whether --enable-halfops was given.
14395 if test "${enable_halfops+set}" = set; then :
14396 enableval=$enable_halfops; halfops="$enableval"
14397 else
14398 halfops="no"
14399 fi
14400
14401 if test "$halfops" = "yes" ; then
14402
14403 $as_echo "#define HALFOPS 1" >>confdefs.h
14404
14405 fi
14406
14407
14408 # Check whether --enable-debugging was given.
14409 if test "${enable_debugging+set}" = set; then :
14410 enableval=$enable_debugging; debugging="$enableval"
14411 else
14412 debugging="no"
14413 fi
14414
14415 if test "$debugging" = "yes" ; then
14416 CFLAGS="-Wall -g -O0"
14417 fi
14418
14419
14420 # Check whether --enable-warnings was given.
14421 if test "${enable_warnings+set}" = set; then :
14422 enableval=$enable_warnings; warnings="$enableval"
14423 else
14424 warnings="no"
14425 fi
14426
14427 if test "$warnings" = "yes" ; then
14428 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14429 fi
14430
14431
14432
14433 prefix_NONE=
14434 exec_prefix_NONE=
14435 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14436 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14437 eval ac_define_dir="\"$prefix\""
14438 eval ac_define_dir="\"$ac_define_dir\""
14439 PREFIX="$ac_define_dir"
14440
14441
14442 cat >>confdefs.h <<_ACEOF
14443 #define PREFIX "$ac_define_dir"
14444 _ACEOF
14445
14446 test "$prefix_NONE" && prefix=NONE
14447 test "$exec_prefix_NONE" && exec_prefix=NONE
14448
14449
14450 prefix_NONE=
14451 exec_prefix_NONE=
14452 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14453 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14454 eval ac_define_dir="\"$sysconfdir\""
14455 eval ac_define_dir="\"$ac_define_dir\""
14456 SYSCONFDIR="$ac_define_dir"
14457
14458
14459 cat >>confdefs.h <<_ACEOF
14460 #define SYSCONFDIR "$ac_define_dir"
14461 _ACEOF
14462
14463 test "$prefix_NONE" && prefix=NONE
14464 test "$exec_prefix_NONE" && exec_prefix=NONE
14465
14466
14467 prefix_NONE=
14468 exec_prefix_NONE=
14469 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14470 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14471 eval ac_define_dir="\"$libdir\""
14472 eval ac_define_dir="\"$ac_define_dir\""
14473 LIBDIR="$ac_define_dir"
14474
14475
14476 cat >>confdefs.h <<_ACEOF
14477 #define LIBDIR "$ac_define_dir"
14478 _ACEOF
14479
14480 test "$prefix_NONE" && prefix=NONE
14481 test "$exec_prefix_NONE" && exec_prefix=NONE
14482
14483
14484 prefix_NONE=
14485 exec_prefix_NONE=
14486 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14487 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14488 eval ac_define_dir="\"$datadir\""
14489 eval ac_define_dir="\"$ac_define_dir\""
14490 DATADIR="$ac_define_dir"
14491
14492
14493 cat >>confdefs.h <<_ACEOF
14494 #define DATADIR "$ac_define_dir"
14495 _ACEOF
14496
14497 test "$prefix_NONE" && prefix=NONE
14498 test "$exec_prefix_NONE" && exec_prefix=NONE
14499
14500
14501 prefix_NONE=
14502 exec_prefix_NONE=
14503 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14504 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14505 eval ac_define_dir="\"$localstatedir\""
14506 eval ac_define_dir="\"$ac_define_dir\""
14507 LOCALSTATEDIR="$ac_define_dir"
14508
14509
14510 cat >>confdefs.h <<_ACEOF
14511 #define LOCALSTATEDIR "$ac_define_dir"
14512 _ACEOF
14513
14514 test "$prefix_NONE" && prefix=NONE
14515 test "$exec_prefix_NONE" && exec_prefix=NONE
14516
14517
14518 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14519
14520
14521 cat >confcache <<\_ACEOF
14522 # This file is a shell script that caches the results of configure
14523 # tests run on this system so they can be shared between configure
14524 # scripts and configure runs, see configure's option --config-cache.
14525 # It is not useful on other systems. If it contains results you don't
14526 # want to keep, you may remove or edit it.
14527 #
14528 # config.status only pays attention to the cache file if you give it
14529 # the --recheck option to rerun configure.
14530 #
14531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14533 # following values.
14534
14535 _ACEOF
14536
14537 # The following way of writing the cache mishandles newlines in values,
14538 # but we know of no workaround that is simple, portable, and efficient.
14539 # So, we kill variables containing newlines.
14540 # Ultrix sh set writes to stderr and can't be redirected directly,
14541 # and sets the high bit in the cache file unless we assign to the vars.
14542 (
14543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14544 eval ac_val=\$$ac_var
14545 case $ac_val in #(
14546 *${as_nl}*)
14547 case $ac_var in #(
14548 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14549 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14550 esac
14551 case $ac_var in #(
14552 _ | IFS | as_nl) ;; #(
14553 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14554 *) { eval $ac_var=; unset $ac_var;} ;;
14555 esac ;;
14556 esac
14557 done
14558
14559 (set) 2>&1 |
14560 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14561 *${as_nl}ac_space=\ *)
14562 # `set' does not quote correctly, so add quotes: double-quote
14563 # substitution turns \\\\ into \\, and sed turns \\ into \.
14564 sed -n \
14565 "s/'/'\\\\''/g;
14566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14567 ;; #(
14568 *)
14569 # `set' quotes correctly as required by POSIX, so do not add quotes.
14570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14571 ;;
14572 esac |
14573 sort
14574 ) |
14575 sed '
14576 /^ac_cv_env_/b end
14577 t clear
14578 :clear
14579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14580 t end
14581 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14582 :end' >>confcache
14583 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14584 if test -w "$cache_file"; then
14585 if test "x$cache_file" != "x/dev/null"; then
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14587 $as_echo "$as_me: updating cache $cache_file" >&6;}
14588 if test ! -f "$cache_file" || test -h "$cache_file"; then
14589 cat confcache >"$cache_file"
14590 else
14591 case $cache_file in #(
14592 */* | ?:*)
14593 mv -f confcache "$cache_file"$$ &&
14594 mv -f "$cache_file"$$ "$cache_file" ;; #(
14595 *)
14596 mv -f confcache "$cache_file" ;;
14597 esac
14598 fi
14599 fi
14600 else
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14603 fi
14604 fi
14605 rm -f confcache
14606
14607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14608 # Let make expand exec_prefix.
14609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14610
14611 DEFS=-DHAVE_CONFIG_H
14612
14613 ac_libobjs=
14614 ac_ltlibobjs=
14615 U=
14616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14617 # 1. Remove the extension, and $U if already installed.
14618 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14619 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14620 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14621 # will be set to the directory where LIBOBJS objects are built.
14622 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14623 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14624 done
14625 LIBOBJS=$ac_libobjs
14626
14627 LTLIBOBJS=$ac_ltlibobjs
14628
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14631 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14632 if test -n "$am_sleep_pid"; then
14633 # Hide warnings about reused PIDs.
14634 wait $am_sleep_pid 2>/dev/null
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14637 $as_echo "done" >&6; }
14638 if test -n "$EXEEXT"; then
14639 am__EXEEXT_TRUE=
14640 am__EXEEXT_FALSE='#'
14641 else
14642 am__EXEEXT_TRUE='#'
14643 am__EXEEXT_FALSE=
14644 fi
14645
14646 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14647 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14649 fi
14650 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14651 as_fn_error $? "conditional \"AMDEP\" was never defined.
14652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14653 fi
14654 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14655 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14657 fi
14658 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14659 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14661 fi
14662 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14663 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14665 fi
14666 LT_CONFIG_H=config.h
14667
14668 _ltdl_libobjs=
14669 _ltdl_ltlibobjs=
14670 if test -n "$_LT_LIBOBJS"; then
14671 # Remove the extension.
14672 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14673 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14674 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14675 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14676 done
14677 fi
14678 ltdl_LIBOBJS=$_ltdl_libobjs
14679
14680 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14681
14682
14683
14684 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14685 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688
14689 : "${CONFIG_STATUS=./config.status}"
14690 ac_write_fail=0
14691 ac_clean_files_save=$ac_clean_files
14692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14695 as_write_fail=0
14696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14697 #! $SHELL
14698 # Generated by $as_me.
14699 # Run this file to recreate the current configuration.
14700 # Compiler output produced by configure, useful for debugging
14701 # configure, is in config.log if it exists.
14702
14703 debug=false
14704 ac_cs_recheck=false
14705 ac_cs_silent=false
14706
14707 SHELL=\${CONFIG_SHELL-$SHELL}
14708 export SHELL
14709 _ASEOF
14710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14711 ## -------------------- ##
14712 ## M4sh Initialization. ##
14713 ## -------------------- ##
14714
14715 # Be more Bourne compatible
14716 DUALCASE=1; export DUALCASE # for MKS sh
14717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14718 emulate sh
14719 NULLCMD=:
14720 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14721 # is contrary to our usage. Disable this feature.
14722 alias -g '${1+"$@"}'='"$@"'
14723 setopt NO_GLOB_SUBST
14724 else
14725 case `(set -o) 2>/dev/null` in #(
14726 *posix*) :
14727 set -o posix ;; #(
14728 *) :
14729 ;;
14730 esac
14731 fi
14732
14733
14734 as_nl='
14735 '
14736 export as_nl
14737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14741 # Prefer a ksh shell builtin over an external printf program on Solaris,
14742 # but without wasting forks for bash or zsh.
14743 if test -z "$BASH_VERSION$ZSH_VERSION" \
14744 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14745 as_echo='print -r --'
14746 as_echo_n='print -rn --'
14747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14748 as_echo='printf %s\n'
14749 as_echo_n='printf %s'
14750 else
14751 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14752 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14753 as_echo_n='/usr/ucb/echo -n'
14754 else
14755 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14756 as_echo_n_body='eval
14757 arg=$1;
14758 case $arg in #(
14759 *"$as_nl"*)
14760 expr "X$arg" : "X\\(.*\\)$as_nl";
14761 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14762 esac;
14763 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14764 '
14765 export as_echo_n_body
14766 as_echo_n='sh -c $as_echo_n_body as_echo'
14767 fi
14768 export as_echo_body
14769 as_echo='sh -c $as_echo_body as_echo'
14770 fi
14771
14772 # The user is always right.
14773 if test "${PATH_SEPARATOR+set}" != set; then
14774 PATH_SEPARATOR=:
14775 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14776 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14777 PATH_SEPARATOR=';'
14778 }
14779 fi
14780
14781
14782 # IFS
14783 # We need space, tab and new line, in precisely that order. Quoting is
14784 # there to prevent editors from complaining about space-tab.
14785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14786 # splitting by setting IFS to empty value.)
14787 IFS=" "" $as_nl"
14788
14789 # Find who we are. Look in the path if we contain no directory separator.
14790 as_myself=
14791 case $0 in #((
14792 *[\\/]* ) as_myself=$0 ;;
14793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $PATH
14795 do
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14799 done
14800 IFS=$as_save_IFS
14801
14802 ;;
14803 esac
14804 # We did not find ourselves, most probably we were run as `sh COMMAND'
14805 # in which case we are not to be found in the path.
14806 if test "x$as_myself" = x; then
14807 as_myself=$0
14808 fi
14809 if test ! -f "$as_myself"; then
14810 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14811 exit 1
14812 fi
14813
14814 # Unset variables that we do not need and which cause bugs (e.g. in
14815 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14816 # suppresses any "Segmentation fault" message there. '((' could
14817 # trigger a bug in pdksh 5.2.14.
14818 for as_var in BASH_ENV ENV MAIL MAILPATH
14819 do eval test x\${$as_var+set} = xset \
14820 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14821 done
14822 PS1='$ '
14823 PS2='> '
14824 PS4='+ '
14825
14826 # NLS nuisances.
14827 LC_ALL=C
14828 export LC_ALL
14829 LANGUAGE=C
14830 export LANGUAGE
14831
14832 # CDPATH.
14833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14834
14835
14836 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14837 # ----------------------------------------
14838 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14839 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14840 # script with STATUS, using 1 if that was 0.
14841 as_fn_error ()
14842 {
14843 as_status=$1; test $as_status -eq 0 && as_status=1
14844 if test "$4"; then
14845 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14846 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14847 fi
14848 $as_echo "$as_me: error: $2" >&2
14849 as_fn_exit $as_status
14850 } # as_fn_error
14851
14852
14853 # as_fn_set_status STATUS
14854 # -----------------------
14855 # Set $? to STATUS, without forking.
14856 as_fn_set_status ()
14857 {
14858 return $1
14859 } # as_fn_set_status
14860
14861 # as_fn_exit STATUS
14862 # -----------------
14863 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14864 as_fn_exit ()
14865 {
14866 set +e
14867 as_fn_set_status $1
14868 exit $1
14869 } # as_fn_exit
14870
14871 # as_fn_unset VAR
14872 # ---------------
14873 # Portably unset VAR.
14874 as_fn_unset ()
14875 {
14876 { eval $1=; unset $1;}
14877 }
14878 as_unset=as_fn_unset
14879 # as_fn_append VAR VALUE
14880 # ----------------------
14881 # Append the text in VALUE to the end of the definition contained in VAR. Take
14882 # advantage of any shell optimizations that allow amortized linear growth over
14883 # repeated appends, instead of the typical quadratic growth present in naive
14884 # implementations.
14885 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14886 eval 'as_fn_append ()
14887 {
14888 eval $1+=\$2
14889 }'
14890 else
14891 as_fn_append ()
14892 {
14893 eval $1=\$$1\$2
14894 }
14895 fi # as_fn_append
14896
14897 # as_fn_arith ARG...
14898 # ------------------
14899 # Perform arithmetic evaluation on the ARGs, and store the result in the
14900 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14901 # must be portable across $(()) and expr.
14902 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14903 eval 'as_fn_arith ()
14904 {
14905 as_val=$(( $* ))
14906 }'
14907 else
14908 as_fn_arith ()
14909 {
14910 as_val=`expr "$@" || test $? -eq 1`
14911 }
14912 fi # as_fn_arith
14913
14914
14915 if expr a : '\(a\)' >/dev/null 2>&1 &&
14916 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14917 as_expr=expr
14918 else
14919 as_expr=false
14920 fi
14921
14922 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14923 as_basename=basename
14924 else
14925 as_basename=false
14926 fi
14927
14928 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14929 as_dirname=dirname
14930 else
14931 as_dirname=false
14932 fi
14933
14934 as_me=`$as_basename -- "$0" ||
14935 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14936 X"$0" : 'X\(//\)$' \| \
14937 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14938 $as_echo X/"$0" |
14939 sed '/^.*\/\([^/][^/]*\)\/*$/{
14940 s//\1/
14941 q
14942 }
14943 /^X\/\(\/\/\)$/{
14944 s//\1/
14945 q
14946 }
14947 /^X\/\(\/\).*/{
14948 s//\1/
14949 q
14950 }
14951 s/.*/./; q'`
14952
14953 # Avoid depending upon Character Ranges.
14954 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14955 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14956 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14957 as_cr_digits='0123456789'
14958 as_cr_alnum=$as_cr_Letters$as_cr_digits
14959
14960 ECHO_C= ECHO_N= ECHO_T=
14961 case `echo -n x` in #(((((
14962 -n*)
14963 case `echo 'xy\c'` in
14964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14965 xy) ECHO_C='\c';;
14966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14967 ECHO_T=' ';;
14968 esac;;
14969 *)
14970 ECHO_N='-n';;
14971 esac
14972
14973 rm -f conf$$ conf$$.exe conf$$.file
14974 if test -d conf$$.dir; then
14975 rm -f conf$$.dir/conf$$.file
14976 else
14977 rm -f conf$$.dir
14978 mkdir conf$$.dir 2>/dev/null
14979 fi
14980 if (echo >conf$$.file) 2>/dev/null; then
14981 if ln -s conf$$.file conf$$ 2>/dev/null; then
14982 as_ln_s='ln -s'
14983 # ... but there are two gotchas:
14984 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14985 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14986 # In both cases, we have to default to `cp -pR'.
14987 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14988 as_ln_s='cp -pR'
14989 elif ln conf$$.file conf$$ 2>/dev/null; then
14990 as_ln_s=ln
14991 else
14992 as_ln_s='cp -pR'
14993 fi
14994 else
14995 as_ln_s='cp -pR'
14996 fi
14997 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14998 rmdir conf$$.dir 2>/dev/null
14999
15000
15001 # as_fn_mkdir_p
15002 # -------------
15003 # Create "$as_dir" as a directory, including parents if necessary.
15004 as_fn_mkdir_p ()
15005 {
15006
15007 case $as_dir in #(
15008 -*) as_dir=./$as_dir;;
15009 esac
15010 test -d "$as_dir" || eval $as_mkdir_p || {
15011 as_dirs=
15012 while :; do
15013 case $as_dir in #(
15014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15015 *) as_qdir=$as_dir;;
15016 esac
15017 as_dirs="'$as_qdir' $as_dirs"
15018 as_dir=`$as_dirname -- "$as_dir" ||
15019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15020 X"$as_dir" : 'X\(//\)[^/]' \| \
15021 X"$as_dir" : 'X\(//\)$' \| \
15022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15023 $as_echo X"$as_dir" |
15024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15025 s//\1/
15026 q
15027 }
15028 /^X\(\/\/\)[^/].*/{
15029 s//\1/
15030 q
15031 }
15032 /^X\(\/\/\)$/{
15033 s//\1/
15034 q
15035 }
15036 /^X\(\/\).*/{
15037 s//\1/
15038 q
15039 }
15040 s/.*/./; q'`
15041 test -d "$as_dir" && break
15042 done
15043 test -z "$as_dirs" || eval "mkdir $as_dirs"
15044 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15045
15046
15047 } # as_fn_mkdir_p
15048 if mkdir -p . 2>/dev/null; then
15049 as_mkdir_p='mkdir -p "$as_dir"'
15050 else
15051 test -d ./-p && rmdir ./-p
15052 as_mkdir_p=false
15053 fi
15054
15055
15056 # as_fn_executable_p FILE
15057 # -----------------------
15058 # Test if FILE is an executable regular file.
15059 as_fn_executable_p ()
15060 {
15061 test -f "$1" && test -x "$1"
15062 } # as_fn_executable_p
15063 as_test_x='test -x'
15064 as_executable_p=as_fn_executable_p
15065
15066 # Sed expression to map a string onto a valid CPP name.
15067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15068
15069 # Sed expression to map a string onto a valid variable name.
15070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15071
15072
15073 exec 6>&1
15074 ## ----------------------------------- ##
15075 ## Main body of $CONFIG_STATUS script. ##
15076 ## ----------------------------------- ##
15077 _ASEOF
15078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15079
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 # Save the log message, to keep $0 and so on meaningful, and to
15082 # report actual input values of CONFIG_FILES etc. instead of their
15083 # values after options handling.
15084 ac_log="
15085 This file was extended by ircd-hybrid $as_me TRUNK, which was
15086 generated by GNU Autoconf 2.69. Invocation command line was
15087
15088 CONFIG_FILES = $CONFIG_FILES
15089 CONFIG_HEADERS = $CONFIG_HEADERS
15090 CONFIG_LINKS = $CONFIG_LINKS
15091 CONFIG_COMMANDS = $CONFIG_COMMANDS
15092 $ $0 $@
15093
15094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15095 "
15096
15097 _ACEOF
15098
15099 case $ac_config_files in *"
15100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15101 esac
15102
15103 case $ac_config_headers in *"
15104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15105 esac
15106
15107
15108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109 # Files that config.status was made for.
15110 config_files="$ac_config_files"
15111 config_headers="$ac_config_headers"
15112 config_commands="$ac_config_commands"
15113
15114 _ACEOF
15115
15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15117 ac_cs_usage="\
15118 \`$as_me' instantiates files and other configuration actions
15119 from templates according to the current configuration. Unless the files
15120 and actions are specified as TAGs, all are instantiated by default.
15121
15122 Usage: $0 [OPTION]... [TAG]...
15123
15124 -h, --help print this help, then exit
15125 -V, --version print version number and configuration settings, then exit
15126 --config print configuration, then exit
15127 -q, --quiet, --silent
15128 do not print progress messages
15129 -d, --debug don't remove temporary files
15130 --recheck update $as_me by reconfiguring in the same conditions
15131 --file=FILE[:TEMPLATE]
15132 instantiate the configuration file FILE
15133 --header=FILE[:TEMPLATE]
15134 instantiate the configuration header FILE
15135
15136 Configuration files:
15137 $config_files
15138
15139 Configuration headers:
15140 $config_headers
15141
15142 Configuration commands:
15143 $config_commands
15144
15145 Report bugs to <bugs@ircd-hybrid.org>."
15146
15147 _ACEOF
15148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15149 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15150 ac_cs_version="\\
15151 ircd-hybrid config.status TRUNK
15152 configured by $0, generated by GNU Autoconf 2.69,
15153 with options \\"\$ac_cs_config\\"
15154
15155 Copyright (C) 2012 Free Software Foundation, Inc.
15156 This config.status script is free software; the Free Software Foundation
15157 gives unlimited permission to copy, distribute and modify it."
15158
15159 ac_pwd='$ac_pwd'
15160 srcdir='$srcdir'
15161 INSTALL='$INSTALL'
15162 MKDIR_P='$MKDIR_P'
15163 AWK='$AWK'
15164 test -n "\$AWK" || AWK=awk
15165 _ACEOF
15166
15167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168 # The default lists apply if the user does not specify any file.
15169 ac_need_defaults=:
15170 while test $# != 0
15171 do
15172 case $1 in
15173 --*=?*)
15174 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15176 ac_shift=:
15177 ;;
15178 --*=)
15179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15180 ac_optarg=
15181 ac_shift=:
15182 ;;
15183 *)
15184 ac_option=$1
15185 ac_optarg=$2
15186 ac_shift=shift
15187 ;;
15188 esac
15189
15190 case $ac_option in
15191 # Handling of the options.
15192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15193 ac_cs_recheck=: ;;
15194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15195 $as_echo "$ac_cs_version"; exit ;;
15196 --config | --confi | --conf | --con | --co | --c )
15197 $as_echo "$ac_cs_config"; exit ;;
15198 --debug | --debu | --deb | --de | --d | -d )
15199 debug=: ;;
15200 --file | --fil | --fi | --f )
15201 $ac_shift
15202 case $ac_optarg in
15203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15204 '') as_fn_error $? "missing file argument" ;;
15205 esac
15206 as_fn_append CONFIG_FILES " '$ac_optarg'"
15207 ac_need_defaults=false;;
15208 --header | --heade | --head | --hea )
15209 $ac_shift
15210 case $ac_optarg in
15211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15212 esac
15213 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15214 ac_need_defaults=false;;
15215 --he | --h)
15216 # Conflict between --help and --header
15217 as_fn_error $? "ambiguous option: \`$1'
15218 Try \`$0 --help' for more information.";;
15219 --help | --hel | -h )
15220 $as_echo "$ac_cs_usage"; exit ;;
15221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15222 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15223 ac_cs_silent=: ;;
15224
15225 # This is an error.
15226 -*) as_fn_error $? "unrecognized option: \`$1'
15227 Try \`$0 --help' for more information." ;;
15228
15229 *) as_fn_append ac_config_targets " $1"
15230 ac_need_defaults=false ;;
15231
15232 esac
15233 shift
15234 done
15235
15236 ac_configure_extra_args=
15237
15238 if $ac_cs_silent; then
15239 exec 6>/dev/null
15240 ac_configure_extra_args="$ac_configure_extra_args --silent"
15241 fi
15242
15243 _ACEOF
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 if \$ac_cs_recheck; then
15246 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15247 shift
15248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15249 CONFIG_SHELL='$SHELL'
15250 export CONFIG_SHELL
15251 exec "\$@"
15252 fi
15253
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256 exec 5>>config.log
15257 {
15258 echo
15259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15260 ## Running $as_me. ##
15261 _ASBOX
15262 $as_echo "$ac_log"
15263 } >&5
15264
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15267 #
15268 # INIT-COMMANDS
15269 #
15270 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15271
15272
15273 # The HP-UX ksh and POSIX shell print the target directory to stdout
15274 # if CDPATH is set.
15275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15276
15277 sed_quote_subst='$sed_quote_subst'
15278 double_quote_subst='$double_quote_subst'
15279 delay_variable_subst='$delay_variable_subst'
15280 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15281 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15284 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15285 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15288 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15313 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15314 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15315 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15316 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15317 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15336 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"`'
15337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15371 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15372 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15373 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15374 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15375 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15376 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15377 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15378 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15379 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15380 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15381 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15382 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15383 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15384 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15385 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15386 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15387 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15388 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15389 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15390 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15391 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15392 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15393 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15394 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15395 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15396 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15397 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15398 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15399 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15400 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15401 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15402 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15403 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15404 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15405 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15406 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15407 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15408 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15409 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15410
15411 LTCC='$LTCC'
15412 LTCFLAGS='$LTCFLAGS'
15413 compiler='$compiler_DEFAULT'
15414
15415 # A function that is used when there is no print builtin or printf.
15416 func_fallback_echo ()
15417 {
15418 eval 'cat <<_LTECHO_EOF
15419 \$1
15420 _LTECHO_EOF'
15421 }
15422
15423 # Quote evaled strings.
15424 for var in SHELL \
15425 ECHO \
15426 PATH_SEPARATOR \
15427 SED \
15428 GREP \
15429 EGREP \
15430 FGREP \
15431 LD \
15432 NM \
15433 LN_S \
15434 lt_SP2NL \
15435 lt_NL2SP \
15436 reload_flag \
15437 OBJDUMP \
15438 deplibs_check_method \
15439 file_magic_cmd \
15440 file_magic_glob \
15441 want_nocaseglob \
15442 DLLTOOL \
15443 sharedlib_from_linklib_cmd \
15444 AR \
15445 AR_FLAGS \
15446 archiver_list_spec \
15447 STRIP \
15448 RANLIB \
15449 CC \
15450 CFLAGS \
15451 compiler \
15452 lt_cv_sys_global_symbol_pipe \
15453 lt_cv_sys_global_symbol_to_cdecl \
15454 lt_cv_sys_global_symbol_to_c_name_address \
15455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15456 nm_file_list_spec \
15457 lt_prog_compiler_no_builtin_flag \
15458 lt_prog_compiler_pic \
15459 lt_prog_compiler_wl \
15460 lt_prog_compiler_static \
15461 lt_cv_prog_compiler_c_o \
15462 need_locks \
15463 MANIFEST_TOOL \
15464 DSYMUTIL \
15465 NMEDIT \
15466 LIPO \
15467 OTOOL \
15468 OTOOL64 \
15469 shrext_cmds \
15470 export_dynamic_flag_spec \
15471 whole_archive_flag_spec \
15472 compiler_needs_object \
15473 with_gnu_ld \
15474 allow_undefined_flag \
15475 no_undefined_flag \
15476 hardcode_libdir_flag_spec \
15477 hardcode_libdir_separator \
15478 exclude_expsyms \
15479 include_expsyms \
15480 file_list_spec \
15481 variables_saved_for_relink \
15482 libname_spec \
15483 library_names_spec \
15484 soname_spec \
15485 install_override_mode \
15486 finish_eval \
15487 old_striplib \
15488 striplib; do
15489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15490 *[\\\\\\\`\\"\\\$]*)
15491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15492 ;;
15493 *)
15494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15495 ;;
15496 esac
15497 done
15498
15499 # Double-quote double-evaled strings.
15500 for var in reload_cmds \
15501 old_postinstall_cmds \
15502 old_postuninstall_cmds \
15503 old_archive_cmds \
15504 extract_expsyms_cmds \
15505 old_archive_from_new_cmds \
15506 old_archive_from_expsyms_cmds \
15507 archive_cmds \
15508 archive_expsym_cmds \
15509 module_cmds \
15510 module_expsym_cmds \
15511 export_symbols_cmds \
15512 prelink_cmds \
15513 postlink_cmds \
15514 postinstall_cmds \
15515 postuninstall_cmds \
15516 finish_cmds \
15517 sys_lib_search_path_spec \
15518 sys_lib_dlsearch_path_spec; do
15519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15520 *[\\\\\\\`\\"\\\$]*)
15521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15522 ;;
15523 *)
15524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15525 ;;
15526 esac
15527 done
15528
15529 ac_aux_dir='$ac_aux_dir'
15530 xsi_shell='$xsi_shell'
15531 lt_shell_append='$lt_shell_append'
15532
15533 # See if we are running on zsh, and set the options which allow our
15534 # commands through without removal of \ escapes INIT.
15535 if test -n "\${ZSH_VERSION+set}" ; then
15536 setopt NO_GLOB_SUBST
15537 fi
15538
15539
15540 PACKAGE='$PACKAGE'
15541 VERSION='$VERSION'
15542 TIMESTAMP='$TIMESTAMP'
15543 RM='$RM'
15544 ofile='$ofile'
15545
15546
15547
15548
15549 _ACEOF
15550
15551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15552
15553 # Handling of arguments.
15554 for ac_config_target in $ac_config_targets
15555 do
15556 case $ac_config_target in
15557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15558 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15560 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15561 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15562 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15563 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15564 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15565 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15566 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15567 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15568 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15569 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15570
15571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15572 esac
15573 done
15574
15575
15576 # If the user did not use the arguments to specify the items to instantiate,
15577 # then the envvar interface is used. Set only those that are not.
15578 # We use the long form for the default assignment because of an extremely
15579 # bizarre bug on SunOS 4.1.3.
15580 if $ac_need_defaults; then
15581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15583 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15584 fi
15585
15586 # Have a temporary directory for convenience. Make it in the build tree
15587 # simply because there is no reason against having it here, and in addition,
15588 # creating and moving files from /tmp can sometimes cause problems.
15589 # Hook for its removal unless debugging.
15590 # Note that there is a small window in which the directory will not be cleaned:
15591 # after its creation but before its name has been assigned to `$tmp'.
15592 $debug ||
15593 {
15594 tmp= ac_tmp=
15595 trap 'exit_status=$?
15596 : "${ac_tmp:=$tmp}"
15597 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15598 ' 0
15599 trap 'as_fn_exit 1' 1 2 13 15
15600 }
15601 # Create a (secure) tmp directory for tmp files.
15602
15603 {
15604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15605 test -d "$tmp"
15606 } ||
15607 {
15608 tmp=./conf$$-$RANDOM
15609 (umask 077 && mkdir "$tmp")
15610 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15611 ac_tmp=$tmp
15612
15613 # Set up the scripts for CONFIG_FILES section.
15614 # No need to generate them if there are no CONFIG_FILES.
15615 # This happens for instance with `./config.status config.h'.
15616 if test -n "$CONFIG_FILES"; then
15617
15618
15619 ac_cr=`echo X | tr X '\015'`
15620 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15621 # But we know of no other shell where ac_cr would be empty at this
15622 # point, so we can use a bashism as a fallback.
15623 if test "x$ac_cr" = x; then
15624 eval ac_cr=\$\'\\r\'
15625 fi
15626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15628 ac_cs_awk_cr='\\r'
15629 else
15630 ac_cs_awk_cr=$ac_cr
15631 fi
15632
15633 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15634 _ACEOF
15635
15636
15637 {
15638 echo "cat >conf$$subs.awk <<_ACEOF" &&
15639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15640 echo "_ACEOF"
15641 } >conf$$subs.sh ||
15642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15644 ac_delim='%!_!# '
15645 for ac_last_try in false false false false false :; do
15646 . ./conf$$subs.sh ||
15647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15648
15649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15650 if test $ac_delim_n = $ac_delim_num; then
15651 break
15652 elif $ac_last_try; then
15653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15654 else
15655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15656 fi
15657 done
15658 rm -f conf$$subs.sh
15659
15660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15661 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15662 _ACEOF
15663 sed -n '
15664 h
15665 s/^/S["/; s/!.*/"]=/
15666 p
15667 g
15668 s/^[^!]*!//
15669 :repl
15670 t repl
15671 s/'"$ac_delim"'$//
15672 t delim
15673 :nl
15674 h
15675 s/\(.\{148\}\)..*/\1/
15676 t more1
15677 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15678 p
15679 n
15680 b repl
15681 :more1
15682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15683 p
15684 g
15685 s/.\{148\}//
15686 t nl
15687 :delim
15688 h
15689 s/\(.\{148\}\)..*/\1/
15690 t more2
15691 s/["\\]/\\&/g; s/^/"/; s/$/"/
15692 p
15693 b
15694 :more2
15695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15696 p
15697 g
15698 s/.\{148\}//
15699 t delim
15700 ' <conf$$subs.awk | sed '
15701 /^[^""]/{
15702 N
15703 s/\n//
15704 }
15705 ' >>$CONFIG_STATUS || ac_write_fail=1
15706 rm -f conf$$subs.awk
15707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15708 _ACAWK
15709 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15710 for (key in S) S_is_set[key] = 1
15711 FS = ""
15712
15713 }
15714 {
15715 line = $ 0
15716 nfields = split(line, field, "@")
15717 substed = 0
15718 len = length(field[1])
15719 for (i = 2; i < nfields; i++) {
15720 key = field[i]
15721 keylen = length(key)
15722 if (S_is_set[key]) {
15723 value = S[key]
15724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15725 len += length(value) + length(field[++i])
15726 substed = 1
15727 } else
15728 len += 1 + keylen
15729 }
15730
15731 print line
15732 }
15733
15734 _ACAWK
15735 _ACEOF
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15739 else
15740 cat
15741 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15743 _ACEOF
15744
15745 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15746 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15747 # trailing colons and then remove the whole line if VPATH becomes empty
15748 # (actually we leave an empty line to preserve line numbers).
15749 if test "x$srcdir" = x.; then
15750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15751 h
15752 s///
15753 s/^/:/
15754 s/[ ]*$/:/
15755 s/:\$(srcdir):/:/g
15756 s/:\${srcdir}:/:/g
15757 s/:@srcdir@:/:/g
15758 s/^:*//
15759 s/:*$//
15760 x
15761 s/\(=[ ]*\).*/\1/
15762 G
15763 s/\n//
15764 s/^[^=]*=[ ]*$//
15765 }'
15766 fi
15767
15768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769 fi # test -n "$CONFIG_FILES"
15770
15771 # Set up the scripts for CONFIG_HEADERS section.
15772 # No need to generate them if there are no CONFIG_HEADERS.
15773 # This happens for instance with `./config.status Makefile'.
15774 if test -n "$CONFIG_HEADERS"; then
15775 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15776 BEGIN {
15777 _ACEOF
15778
15779 # Transform confdefs.h into an awk script `defines.awk', embedded as
15780 # here-document in config.status, that substitutes the proper values into
15781 # config.h.in to produce config.h.
15782
15783 # Create a delimiter string that does not exist in confdefs.h, to ease
15784 # handling of long lines.
15785 ac_delim='%!_!# '
15786 for ac_last_try in false false :; do
15787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15788 if test -z "$ac_tt"; then
15789 break
15790 elif $ac_last_try; then
15791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15792 else
15793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15794 fi
15795 done
15796
15797 # For the awk script, D is an array of macro values keyed by name,
15798 # likewise P contains macro parameters if any. Preserve backslash
15799 # newline sequences.
15800
15801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15802 sed -n '
15803 s/.\{148\}/&'"$ac_delim"'/g
15804 t rset
15805 :rset
15806 s/^[ ]*#[ ]*define[ ][ ]*/ /
15807 t def
15808 d
15809 :def
15810 s/\\$//
15811 t bsnl
15812 s/["\\]/\\&/g
15813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15814 D["\1"]=" \3"/p
15815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15816 d
15817 :bsnl
15818 s/["\\]/\\&/g
15819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15820 D["\1"]=" \3\\\\\\n"\\/p
15821 t cont
15822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15823 t cont
15824 d
15825 :cont
15826 n
15827 s/.\{148\}/&'"$ac_delim"'/g
15828 t clear
15829 :clear
15830 s/\\$//
15831 t bsnlc
15832 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15833 d
15834 :bsnlc
15835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15836 b cont
15837 ' <confdefs.h | sed '
15838 s/'"$ac_delim"'/"\\\
15839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15840
15841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15842 for (key in D) D_is_set[key] = 1
15843 FS = ""
15844 }
15845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15846 line = \$ 0
15847 split(line, arg, " ")
15848 if (arg[1] == "#") {
15849 defundef = arg[2]
15850 mac1 = arg[3]
15851 } else {
15852 defundef = substr(arg[1], 2)
15853 mac1 = arg[2]
15854 }
15855 split(mac1, mac2, "(") #)
15856 macro = mac2[1]
15857 prefix = substr(line, 1, index(line, defundef) - 1)
15858 if (D_is_set[macro]) {
15859 # Preserve the white space surrounding the "#".
15860 print prefix "define", macro P[macro] D[macro]
15861 next
15862 } else {
15863 # Replace #undef with comments. This is necessary, for example,
15864 # in the case of _POSIX_SOURCE, which is predefined and required
15865 # on some systems where configure will not decide to define it.
15866 if (defundef == "undef") {
15867 print "/*", prefix defundef, macro, "*/"
15868 next
15869 }
15870 }
15871 }
15872 { print }
15873 _ACAWK
15874 _ACEOF
15875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15877 fi # test -n "$CONFIG_HEADERS"
15878
15879
15880 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15881 shift
15882 for ac_tag
15883 do
15884 case $ac_tag in
15885 :[FHLC]) ac_mode=$ac_tag; continue;;
15886 esac
15887 case $ac_mode$ac_tag in
15888 :[FHL]*:*);;
15889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15890 :[FH]-) ac_tag=-:-;;
15891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15892 esac
15893 ac_save_IFS=$IFS
15894 IFS=:
15895 set x $ac_tag
15896 IFS=$ac_save_IFS
15897 shift
15898 ac_file=$1
15899 shift
15900
15901 case $ac_mode in
15902 :L) ac_source=$1;;
15903 :[FH])
15904 ac_file_inputs=
15905 for ac_f
15906 do
15907 case $ac_f in
15908 -) ac_f="$ac_tmp/stdin";;
15909 *) # Look for the file first in the build tree, then in the source tree
15910 # (if the path is not absolute). The absolute path cannot be DOS-style,
15911 # because $ac_f cannot contain `:'.
15912 test -f "$ac_f" ||
15913 case $ac_f in
15914 [\\/$]*) false;;
15915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15916 esac ||
15917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15918 esac
15919 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15920 as_fn_append ac_file_inputs " '$ac_f'"
15921 done
15922
15923 # Let's still pretend it is `configure' which instantiates (i.e., don't
15924 # use $as_me), people would be surprised to read:
15925 # /* config.h. Generated by config.status. */
15926 configure_input='Generated from '`
15927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15928 `' by configure.'
15929 if test x"$ac_file" != x-; then
15930 configure_input="$ac_file. $configure_input"
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15932 $as_echo "$as_me: creating $ac_file" >&6;}
15933 fi
15934 # Neutralize special characters interpreted by sed in replacement strings.
15935 case $configure_input in #(
15936 *\&* | *\|* | *\\* )
15937 ac_sed_conf_input=`$as_echo "$configure_input" |
15938 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15939 *) ac_sed_conf_input=$configure_input;;
15940 esac
15941
15942 case $ac_tag in
15943 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15945 esac
15946 ;;
15947 esac
15948
15949 ac_dir=`$as_dirname -- "$ac_file" ||
15950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15951 X"$ac_file" : 'X\(//\)[^/]' \| \
15952 X"$ac_file" : 'X\(//\)$' \| \
15953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15954 $as_echo X"$ac_file" |
15955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15956 s//\1/
15957 q
15958 }
15959 /^X\(\/\/\)[^/].*/{
15960 s//\1/
15961 q
15962 }
15963 /^X\(\/\/\)$/{
15964 s//\1/
15965 q
15966 }
15967 /^X\(\/\).*/{
15968 s//\1/
15969 q
15970 }
15971 s/.*/./; q'`
15972 as_dir="$ac_dir"; as_fn_mkdir_p
15973 ac_builddir=.
15974
15975 case "$ac_dir" in
15976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15977 *)
15978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15979 # A ".." for each directory in $ac_dir_suffix.
15980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15981 case $ac_top_builddir_sub in
15982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15984 esac ;;
15985 esac
15986 ac_abs_top_builddir=$ac_pwd
15987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15988 # for backward compatibility:
15989 ac_top_builddir=$ac_top_build_prefix
15990
15991 case $srcdir in
15992 .) # We are building in place.
15993 ac_srcdir=.
15994 ac_top_srcdir=$ac_top_builddir_sub
15995 ac_abs_top_srcdir=$ac_pwd ;;
15996 [\\/]* | ?:[\\/]* ) # Absolute name.
15997 ac_srcdir=$srcdir$ac_dir_suffix;
15998 ac_top_srcdir=$srcdir
15999 ac_abs_top_srcdir=$srcdir ;;
16000 *) # Relative name.
16001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16002 ac_top_srcdir=$ac_top_build_prefix$srcdir
16003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16004 esac
16005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16006
16007
16008 case $ac_mode in
16009 :F)
16010 #
16011 # CONFIG_FILE
16012 #
16013
16014 case $INSTALL in
16015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16017 esac
16018 ac_MKDIR_P=$MKDIR_P
16019 case $MKDIR_P in
16020 [\\/$]* | ?:[\\/]* ) ;;
16021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16022 esac
16023 _ACEOF
16024
16025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026 # If the template does not know about datarootdir, expand it.
16027 # FIXME: This hack should be removed a few years after 2.60.
16028 ac_datarootdir_hack=; ac_datarootdir_seen=
16029 ac_sed_dataroot='
16030 /datarootdir/ {
16031 p
16032 q
16033 }
16034 /@datadir@/p
16035 /@docdir@/p
16036 /@infodir@/p
16037 /@localedir@/p
16038 /@mandir@/p'
16039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16040 *datarootdir*) ac_datarootdir_seen=yes;;
16041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16044 _ACEOF
16045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16046 ac_datarootdir_hack='
16047 s&@datadir@&$datadir&g
16048 s&@docdir@&$docdir&g
16049 s&@infodir@&$infodir&g
16050 s&@localedir@&$localedir&g
16051 s&@mandir@&$mandir&g
16052 s&\\\${datarootdir}&$datarootdir&g' ;;
16053 esac
16054 _ACEOF
16055
16056 # Neutralize VPATH when `$srcdir' = `.'.
16057 # Shell code in configure.ac might set extrasub.
16058 # FIXME: do we really want to maintain this feature?
16059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16060 ac_sed_extra="$ac_vpsub
16061 $extrasub
16062 _ACEOF
16063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16064 :t
16065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16066 s|@configure_input@|$ac_sed_conf_input|;t t
16067 s&@top_builddir@&$ac_top_builddir_sub&;t t
16068 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16069 s&@srcdir@&$ac_srcdir&;t t
16070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16071 s&@top_srcdir@&$ac_top_srcdir&;t t
16072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16073 s&@builddir@&$ac_builddir&;t t
16074 s&@abs_builddir@&$ac_abs_builddir&;t t
16075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16076 s&@INSTALL@&$ac_INSTALL&;t t
16077 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16078 $ac_datarootdir_hack
16079 "
16080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16082
16083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16086 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16088 which seems to be undefined. Please make sure it is defined" >&5
16089 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16090 which seems to be undefined. Please make sure it is defined" >&2;}
16091
16092 rm -f "$ac_tmp/stdin"
16093 case $ac_file in
16094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16096 esac \
16097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16098 ;;
16099 :H)
16100 #
16101 # CONFIG_HEADER
16102 #
16103 if test x"$ac_file" != x-; then
16104 {
16105 $as_echo "/* $configure_input */" \
16106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16107 } >"$ac_tmp/config.h" \
16108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16112 else
16113 rm -f "$ac_file"
16114 mv "$ac_tmp/config.h" "$ac_file" \
16115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16116 fi
16117 else
16118 $as_echo "/* $configure_input */" \
16119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16120 || as_fn_error $? "could not create -" "$LINENO" 5
16121 fi
16122 # Compute "$ac_file"'s index in $config_headers.
16123 _am_arg="$ac_file"
16124 _am_stamp_count=1
16125 for _am_header in $config_headers :; do
16126 case $_am_header in
16127 $_am_arg | $_am_arg:* )
16128 break ;;
16129 * )
16130 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16131 esac
16132 done
16133 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16134 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16135 X"$_am_arg" : 'X\(//\)[^/]' \| \
16136 X"$_am_arg" : 'X\(//\)$' \| \
16137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X"$_am_arg" |
16139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16140 s//\1/
16141 q
16142 }
16143 /^X\(\/\/\)[^/].*/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\/\)$/{
16148 s//\1/
16149 q
16150 }
16151 /^X\(\/\).*/{
16152 s//\1/
16153 q
16154 }
16155 s/.*/./; q'`/stamp-h$_am_stamp_count
16156 ;;
16157
16158 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16159 $as_echo "$as_me: executing $ac_file commands" >&6;}
16160 ;;
16161 esac
16162
16163
16164 case $ac_file$ac_mode in
16165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16166 # Older Autoconf quotes --file arguments for eval, but not when files
16167 # are listed without --file. Let's play safe and only enable the eval
16168 # if we detect the quoting.
16169 case $CONFIG_FILES in
16170 *\'*) eval set x "$CONFIG_FILES" ;;
16171 *) set x $CONFIG_FILES ;;
16172 esac
16173 shift
16174 for mf
16175 do
16176 # Strip MF so we end up with the name of the file.
16177 mf=`echo "$mf" | sed -e 's/:.*$//'`
16178 # Check whether this is an Automake generated Makefile or not.
16179 # We used to match only the files named 'Makefile.in', but
16180 # some people rename them; so instead we look at the file content.
16181 # Grep'ing the first line is not enough: some people post-process
16182 # each Makefile.in and add a new line on top of each file to say so.
16183 # Grep'ing the whole file is not good either: AIX grep has a line
16184 # limit of 2048, but all sed's we know have understand at least 4000.
16185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16186 dirpart=`$as_dirname -- "$mf" ||
16187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16188 X"$mf" : 'X\(//\)[^/]' \| \
16189 X"$mf" : 'X\(//\)$' \| \
16190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16191 $as_echo X"$mf" |
16192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16193 s//\1/
16194 q
16195 }
16196 /^X\(\/\/\)[^/].*/{
16197 s//\1/
16198 q
16199 }
16200 /^X\(\/\/\)$/{
16201 s//\1/
16202 q
16203 }
16204 /^X\(\/\).*/{
16205 s//\1/
16206 q
16207 }
16208 s/.*/./; q'`
16209 else
16210 continue
16211 fi
16212 # Extract the definition of DEPDIR, am__include, and am__quote
16213 # from the Makefile without running 'make'.
16214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16215 test -z "$DEPDIR" && continue
16216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16217 test -z "am__include" && continue
16218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16219 # Find all dependency output files, they are included files with
16220 # $(DEPDIR) in their names. We invoke sed twice because it is the
16221 # simplest approach to changing $(DEPDIR) to its actual value in the
16222 # expansion.
16223 for file in `sed -n "
16224 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16225 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16226 # Make sure the directory exists.
16227 test -f "$dirpart/$file" && continue
16228 fdir=`$as_dirname -- "$file" ||
16229 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16230 X"$file" : 'X\(//\)[^/]' \| \
16231 X"$file" : 'X\(//\)$' \| \
16232 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16233 $as_echo X"$file" |
16234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16235 s//\1/
16236 q
16237 }
16238 /^X\(\/\/\)[^/].*/{
16239 s//\1/
16240 q
16241 }
16242 /^X\(\/\/\)$/{
16243 s//\1/
16244 q
16245 }
16246 /^X\(\/\).*/{
16247 s//\1/
16248 q
16249 }
16250 s/.*/./; q'`
16251 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16252 # echo "creating $dirpart/$file"
16253 echo '# dummy' > "$dirpart/$file"
16254 done
16255 done
16256 }
16257 ;;
16258 "libtool":C)
16259
16260 # See if we are running on zsh, and set the options which allow our
16261 # commands through without removal of \ escapes.
16262 if test -n "${ZSH_VERSION+set}" ; then
16263 setopt NO_GLOB_SUBST
16264 fi
16265
16266 cfgfile="${ofile}T"
16267 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16268 $RM "$cfgfile"
16269
16270 cat <<_LT_EOF >> "$cfgfile"
16271 #! $SHELL
16272
16273 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16274 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16276 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16277 #
16278 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16279 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16280 # Foundation, Inc.
16281 # Written by Gordon Matzigkeit, 1996
16282 #
16283 # This file is part of GNU Libtool.
16284 #
16285 # GNU Libtool is free software; you can redistribute it and/or
16286 # modify it under the terms of the GNU General Public License as
16287 # published by the Free Software Foundation; either version 2 of
16288 # the License, or (at your option) any later version.
16289 #
16290 # As a special exception to the GNU General Public License,
16291 # if you distribute this file as part of a program or library that
16292 # is built using GNU Libtool, you may include this file under the
16293 # same distribution terms that you use for the rest of that program.
16294 #
16295 # GNU Libtool is distributed in the hope that it will be useful,
16296 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16298 # GNU General Public License for more details.
16299 #
16300 # You should have received a copy of the GNU General Public License
16301 # along with GNU Libtool; see the file COPYING. If not, a copy
16302 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16303 # obtained by writing to the Free Software Foundation, Inc.,
16304 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16305
16306
16307 # The names of the tagged configurations supported by this script.
16308 available_tags=""
16309
16310 # ### BEGIN LIBTOOL CONFIG
16311
16312 # Which release of libtool.m4 was used?
16313 macro_version=$macro_version
16314 macro_revision=$macro_revision
16315
16316 # Whether or not to build static libraries.
16317 build_old_libs=$enable_static
16318
16319 # Whether or not to build shared libraries.
16320 build_libtool_libs=$enable_shared
16321
16322 # What type of objects to build.
16323 pic_mode=$pic_mode
16324
16325 # Whether or not to optimize for fast installation.
16326 fast_install=$enable_fast_install
16327
16328 # Shell to use when invoking shell scripts.
16329 SHELL=$lt_SHELL
16330
16331 # An echo program that protects backslashes.
16332 ECHO=$lt_ECHO
16333
16334 # The PATH separator for the build system.
16335 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16336
16337 # The host system.
16338 host_alias=$host_alias
16339 host=$host
16340 host_os=$host_os
16341
16342 # The build system.
16343 build_alias=$build_alias
16344 build=$build
16345 build_os=$build_os
16346
16347 # A sed program that does not truncate output.
16348 SED=$lt_SED
16349
16350 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16351 Xsed="\$SED -e 1s/^X//"
16352
16353 # A grep program that handles long lines.
16354 GREP=$lt_GREP
16355
16356 # An ERE matcher.
16357 EGREP=$lt_EGREP
16358
16359 # A literal string matcher.
16360 FGREP=$lt_FGREP
16361
16362 # A BSD- or MS-compatible name lister.
16363 NM=$lt_NM
16364
16365 # Whether we need soft or hard links.
16366 LN_S=$lt_LN_S
16367
16368 # What is the maximum length of a command?
16369 max_cmd_len=$max_cmd_len
16370
16371 # Object file suffix (normally "o").
16372 objext=$ac_objext
16373
16374 # Executable file suffix (normally "").
16375 exeext=$exeext
16376
16377 # whether the shell understands "unset".
16378 lt_unset=$lt_unset
16379
16380 # turn spaces into newlines.
16381 SP2NL=$lt_lt_SP2NL
16382
16383 # turn newlines into spaces.
16384 NL2SP=$lt_lt_NL2SP
16385
16386 # convert \$build file names to \$host format.
16387 to_host_file_cmd=$lt_cv_to_host_file_cmd
16388
16389 # convert \$build files to toolchain format.
16390 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16391
16392 # An object symbol dumper.
16393 OBJDUMP=$lt_OBJDUMP
16394
16395 # Method to check whether dependent libraries are shared objects.
16396 deplibs_check_method=$lt_deplibs_check_method
16397
16398 # Command to use when deplibs_check_method = "file_magic".
16399 file_magic_cmd=$lt_file_magic_cmd
16400
16401 # How to find potential files when deplibs_check_method = "file_magic".
16402 file_magic_glob=$lt_file_magic_glob
16403
16404 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16405 want_nocaseglob=$lt_want_nocaseglob
16406
16407 # DLL creation program.
16408 DLLTOOL=$lt_DLLTOOL
16409
16410 # Command to associate shared and link libraries.
16411 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16412
16413 # The archiver.
16414 AR=$lt_AR
16415
16416 # Flags to create an archive.
16417 AR_FLAGS=$lt_AR_FLAGS
16418
16419 # How to feed a file listing to the archiver.
16420 archiver_list_spec=$lt_archiver_list_spec
16421
16422 # A symbol stripping program.
16423 STRIP=$lt_STRIP
16424
16425 # Commands used to install an old-style archive.
16426 RANLIB=$lt_RANLIB
16427 old_postinstall_cmds=$lt_old_postinstall_cmds
16428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16429
16430 # Whether to use a lock for old archive extraction.
16431 lock_old_archive_extraction=$lock_old_archive_extraction
16432
16433 # A C compiler.
16434 LTCC=$lt_CC
16435
16436 # LTCC compiler flags.
16437 LTCFLAGS=$lt_CFLAGS
16438
16439 # Take the output of nm and produce a listing of raw symbols and C names.
16440 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16441
16442 # Transform the output of nm in a proper C declaration.
16443 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16444
16445 # Transform the output of nm in a C name address pair.
16446 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16447
16448 # Transform the output of nm in a C name address pair when lib prefix is needed.
16449 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16450
16451 # Specify filename containing input files for \$NM.
16452 nm_file_list_spec=$lt_nm_file_list_spec
16453
16454 # The root where to search for dependent libraries,and in which our libraries should be installed.
16455 lt_sysroot=$lt_sysroot
16456
16457 # The name of the directory that contains temporary libtool files.
16458 objdir=$objdir
16459
16460 # Used to examine libraries when file_magic_cmd begins with "file".
16461 MAGIC_CMD=$MAGIC_CMD
16462
16463 # Must we lock files when doing compilation?
16464 need_locks=$lt_need_locks
16465
16466 # Manifest tool.
16467 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16468
16469 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16470 DSYMUTIL=$lt_DSYMUTIL
16471
16472 # Tool to change global to local symbols on Mac OS X.
16473 NMEDIT=$lt_NMEDIT
16474
16475 # Tool to manipulate fat objects and archives on Mac OS X.
16476 LIPO=$lt_LIPO
16477
16478 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16479 OTOOL=$lt_OTOOL
16480
16481 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16482 OTOOL64=$lt_OTOOL64
16483
16484 # Old archive suffix (normally "a").
16485 libext=$libext
16486
16487 # Shared library suffix (normally ".so").
16488 shrext_cmds=$lt_shrext_cmds
16489
16490 # The commands to extract the exported symbol list from a shared archive.
16491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16492
16493 # Variables whose values should be saved in libtool wrapper scripts and
16494 # restored at link time.
16495 variables_saved_for_relink=$lt_variables_saved_for_relink
16496
16497 # Do we need the "lib" prefix for modules?
16498 need_lib_prefix=$need_lib_prefix
16499
16500 # Do we need a version for libraries?
16501 need_version=$need_version
16502
16503 # Library versioning type.
16504 version_type=$version_type
16505
16506 # Shared library runtime path variable.
16507 runpath_var=$runpath_var
16508
16509 # Shared library path variable.
16510 shlibpath_var=$shlibpath_var
16511
16512 # Is shlibpath searched before the hard-coded library search path?
16513 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16514
16515 # Format of library name prefix.
16516 libname_spec=$lt_libname_spec
16517
16518 # List of archive names. First name is the real one, the rest are links.
16519 # The last name is the one that the linker finds with -lNAME
16520 library_names_spec=$lt_library_names_spec
16521
16522 # The coded name of the library, if different from the real name.
16523 soname_spec=$lt_soname_spec
16524
16525 # Permission mode override for installation of shared libraries.
16526 install_override_mode=$lt_install_override_mode
16527
16528 # Command to use after installation of a shared archive.
16529 postinstall_cmds=$lt_postinstall_cmds
16530
16531 # Command to use after uninstallation of a shared archive.
16532 postuninstall_cmds=$lt_postuninstall_cmds
16533
16534 # Commands used to finish a libtool library installation in a directory.
16535 finish_cmds=$lt_finish_cmds
16536
16537 # As "finish_cmds", except a single script fragment to be evaled but
16538 # not shown.
16539 finish_eval=$lt_finish_eval
16540
16541 # Whether we should hardcode library paths into libraries.
16542 hardcode_into_libs=$hardcode_into_libs
16543
16544 # Compile-time system search path for libraries.
16545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16546
16547 # Run-time system search path for libraries.
16548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16549
16550 # Whether dlopen is supported.
16551 dlopen_support=$enable_dlopen
16552
16553 # Whether dlopen of programs is supported.
16554 dlopen_self=$enable_dlopen_self
16555
16556 # Whether dlopen of statically linked programs is supported.
16557 dlopen_self_static=$enable_dlopen_self_static
16558
16559 # Commands to strip libraries.
16560 old_striplib=$lt_old_striplib
16561 striplib=$lt_striplib
16562
16563
16564 # The linker used to build libraries.
16565 LD=$lt_LD
16566
16567 # How to create reloadable object files.
16568 reload_flag=$lt_reload_flag
16569 reload_cmds=$lt_reload_cmds
16570
16571 # Commands used to build an old-style archive.
16572 old_archive_cmds=$lt_old_archive_cmds
16573
16574 # A language specific compiler.
16575 CC=$lt_compiler
16576
16577 # Is the compiler the GNU compiler?
16578 with_gcc=$GCC
16579
16580 # Compiler flag to turn off builtin functions.
16581 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16582
16583 # Additional compiler flags for building library objects.
16584 pic_flag=$lt_lt_prog_compiler_pic
16585
16586 # How to pass a linker flag through the compiler.
16587 wl=$lt_lt_prog_compiler_wl
16588
16589 # Compiler flag to prevent dynamic linking.
16590 link_static_flag=$lt_lt_prog_compiler_static
16591
16592 # Does compiler simultaneously support -c and -o options?
16593 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16594
16595 # Whether or not to add -lc for building shared libraries.
16596 build_libtool_need_lc=$archive_cmds_need_lc
16597
16598 # Whether or not to disallow shared libs when runtime libs are static.
16599 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16600
16601 # Compiler flag to allow reflexive dlopens.
16602 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16603
16604 # Compiler flag to generate shared objects directly from archives.
16605 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16606
16607 # Whether the compiler copes with passing no objects directly.
16608 compiler_needs_object=$lt_compiler_needs_object
16609
16610 # Create an old-style archive from a shared archive.
16611 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16612
16613 # Create a temporary old-style archive to link instead of a shared archive.
16614 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16615
16616 # Commands used to build a shared archive.
16617 archive_cmds=$lt_archive_cmds
16618 archive_expsym_cmds=$lt_archive_expsym_cmds
16619
16620 # Commands used to build a loadable module if different from building
16621 # a shared archive.
16622 module_cmds=$lt_module_cmds
16623 module_expsym_cmds=$lt_module_expsym_cmds
16624
16625 # Whether we are building with GNU ld or not.
16626 with_gnu_ld=$lt_with_gnu_ld
16627
16628 # Flag that allows shared libraries with undefined symbols to be built.
16629 allow_undefined_flag=$lt_allow_undefined_flag
16630
16631 # Flag that enforces no undefined symbols.
16632 no_undefined_flag=$lt_no_undefined_flag
16633
16634 # Flag to hardcode \$libdir into a binary during linking.
16635 # This must work even if \$libdir does not exist
16636 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16637
16638 # Whether we need a single "-rpath" flag with a separated argument.
16639 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16640
16641 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16642 # DIR into the resulting binary.
16643 hardcode_direct=$hardcode_direct
16644
16645 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16646 # DIR into the resulting binary and the resulting library dependency is
16647 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16648 # library is relocated.
16649 hardcode_direct_absolute=$hardcode_direct_absolute
16650
16651 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16652 # into the resulting binary.
16653 hardcode_minus_L=$hardcode_minus_L
16654
16655 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16656 # into the resulting binary.
16657 hardcode_shlibpath_var=$hardcode_shlibpath_var
16658
16659 # Set to "yes" if building a shared library automatically hardcodes DIR
16660 # into the library and all subsequent libraries and executables linked
16661 # against it.
16662 hardcode_automatic=$hardcode_automatic
16663
16664 # Set to yes if linker adds runtime paths of dependent libraries
16665 # to runtime path list.
16666 inherit_rpath=$inherit_rpath
16667
16668 # Whether libtool must link a program against all its dependency libraries.
16669 link_all_deplibs=$link_all_deplibs
16670
16671 # Set to "yes" if exported symbols are required.
16672 always_export_symbols=$always_export_symbols
16673
16674 # The commands to list exported symbols.
16675 export_symbols_cmds=$lt_export_symbols_cmds
16676
16677 # Symbols that should not be listed in the preloaded symbols.
16678 exclude_expsyms=$lt_exclude_expsyms
16679
16680 # Symbols that must always be exported.
16681 include_expsyms=$lt_include_expsyms
16682
16683 # Commands necessary for linking programs (against libraries) with templates.
16684 prelink_cmds=$lt_prelink_cmds
16685
16686 # Commands necessary for finishing linking programs.
16687 postlink_cmds=$lt_postlink_cmds
16688
16689 # Specify filename containing input files.
16690 file_list_spec=$lt_file_list_spec
16691
16692 # How to hardcode a shared library path into an executable.
16693 hardcode_action=$hardcode_action
16694
16695 # ### END LIBTOOL CONFIG
16696
16697 _LT_EOF
16698
16699 case $host_os in
16700 aix3*)
16701 cat <<\_LT_EOF >> "$cfgfile"
16702 # AIX sometimes has problems with the GCC collect2 program. For some
16703 # reason, if we set the COLLECT_NAMES environment variable, the problems
16704 # vanish in a puff of smoke.
16705 if test "X${COLLECT_NAMES+set}" != Xset; then
16706 COLLECT_NAMES=
16707 export COLLECT_NAMES
16708 fi
16709 _LT_EOF
16710 ;;
16711 esac
16712
16713
16714 ltmain="$ac_aux_dir/ltmain.sh"
16715
16716
16717 # We use sed instead of cat because bash on DJGPP gets confused if
16718 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16719 # text mode, it properly converts lines to CR/LF. This bash problem
16720 # is reportedly fixed, but why not run on old versions too?
16721 sed '$q' "$ltmain" >> "$cfgfile" \
16722 || (rm -f "$cfgfile"; exit 1)
16723
16724 if test x"$xsi_shell" = xyes; then
16725 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16726 func_dirname ()\
16727 {\
16728 \ case ${1} in\
16729 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16730 \ * ) func_dirname_result="${3}" ;;\
16731 \ esac\
16732 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16733 && mv -f "$cfgfile.tmp" "$cfgfile" \
16734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16735 test 0 -eq $? || _lt_function_replace_fail=:
16736
16737
16738 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16739 func_basename ()\
16740 {\
16741 \ func_basename_result="${1##*/}"\
16742 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16743 && mv -f "$cfgfile.tmp" "$cfgfile" \
16744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16745 test 0 -eq $? || _lt_function_replace_fail=:
16746
16747
16748 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16749 func_dirname_and_basename ()\
16750 {\
16751 \ case ${1} in\
16752 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16753 \ * ) func_dirname_result="${3}" ;;\
16754 \ esac\
16755 \ func_basename_result="${1##*/}"\
16756 } # Extended-shell func_dirname_and_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_stripname ()$/,/^} # func_stripname /c\
16763 func_stripname ()\
16764 {\
16765 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16766 \ # positional parameters, so assign one to ordinary parameter first.\
16767 \ func_stripname_result=${3}\
16768 \ func_stripname_result=${func_stripname_result#"${1}"}\
16769 \ func_stripname_result=${func_stripname_result%"${2}"}\
16770 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
16777 func_split_long_opt ()\
16778 {\
16779 \ func_split_long_opt_name=${1%%=*}\
16780 \ func_split_long_opt_arg=${1#*=}\
16781 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16782 && mv -f "$cfgfile.tmp" "$cfgfile" \
16783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16784 test 0 -eq $? || _lt_function_replace_fail=:
16785
16786
16787 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16788 func_split_short_opt ()\
16789 {\
16790 \ func_split_short_opt_arg=${1#??}\
16791 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16792 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16793 && mv -f "$cfgfile.tmp" "$cfgfile" \
16794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16795 test 0 -eq $? || _lt_function_replace_fail=:
16796
16797
16798 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16799 func_lo2o ()\
16800 {\
16801 \ case ${1} in\
16802 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16803 \ *) func_lo2o_result=${1} ;;\
16804 \ esac\
16805 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16806 && mv -f "$cfgfile.tmp" "$cfgfile" \
16807 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16808 test 0 -eq $? || _lt_function_replace_fail=:
16809
16810
16811 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16812 func_xform ()\
16813 {\
16814 func_xform_result=${1%.*}.lo\
16815 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16816 && mv -f "$cfgfile.tmp" "$cfgfile" \
16817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16818 test 0 -eq $? || _lt_function_replace_fail=:
16819
16820
16821 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16822 func_arith ()\
16823 {\
16824 func_arith_result=$(( $* ))\
16825 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16826 && mv -f "$cfgfile.tmp" "$cfgfile" \
16827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16828 test 0 -eq $? || _lt_function_replace_fail=:
16829
16830
16831 sed -e '/^func_len ()$/,/^} # func_len /c\
16832 func_len ()\
16833 {\
16834 func_len_result=${#1}\
16835 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16836 && mv -f "$cfgfile.tmp" "$cfgfile" \
16837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16838 test 0 -eq $? || _lt_function_replace_fail=:
16839
16840 fi
16841
16842 if test x"$lt_shell_append" = xyes; then
16843 sed -e '/^func_append ()$/,/^} # func_append /c\
16844 func_append ()\
16845 {\
16846 eval "${1}+=\\${2}"\
16847 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16848 && mv -f "$cfgfile.tmp" "$cfgfile" \
16849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16850 test 0 -eq $? || _lt_function_replace_fail=:
16851
16852
16853 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16854 func_append_quoted ()\
16855 {\
16856 \ func_quote_for_eval "${2}"\
16857 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16858 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16859 && mv -f "$cfgfile.tmp" "$cfgfile" \
16860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16861 test 0 -eq $? || _lt_function_replace_fail=:
16862
16863
16864 # Save a `func_append' function call where possible by direct use of '+='
16865 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16866 && mv -f "$cfgfile.tmp" "$cfgfile" \
16867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16868 test 0 -eq $? || _lt_function_replace_fail=:
16869 else
16870 # Save a `func_append' function call even when '+=' is not available
16871 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16872 && mv -f "$cfgfile.tmp" "$cfgfile" \
16873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16874 test 0 -eq $? || _lt_function_replace_fail=:
16875 fi
16876
16877 if test x"$_lt_function_replace_fail" = x":"; then
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16879 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16880 fi
16881
16882
16883 mv -f "$cfgfile" "$ofile" ||
16884 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16885 chmod +x "$ofile"
16886
16887 ;;
16888
16889 esac
16890 done # for ac_tag
16891
16892
16893 as_fn_exit 0
16894 _ACEOF
16895 ac_clean_files=$ac_clean_files_save
16896
16897 test $ac_write_fail = 0 ||
16898 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16899
16900
16901 # configure is writing to config.log, and then calls config.status.
16902 # config.status does its own redirection, appending to config.log.
16903 # Unfortunately, on DOS this fails, as config.log is still kept open
16904 # by configure, so config.status won't be able to write to it; its
16905 # output is simply discarded. So we exec the FD to /dev/null,
16906 # effectively closing config.log, so it can be properly (re)opened and
16907 # appended to by config.status. When coming back to configure, we
16908 # need to make the FD available again.
16909 if test "$no_create" != yes; then
16910 ac_cs_success=:
16911 ac_config_status_args=
16912 test "$silent" = yes &&
16913 ac_config_status_args="$ac_config_status_args --quiet"
16914 exec 5>/dev/null
16915 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16916 exec 5>>config.log
16917 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16918 # would make configure fail if this is the last instruction.
16919 $ac_cs_success || as_fn_exit 1
16920 fi
16921 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16923 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16924 fi
16925

Properties

Name Value
svn:eol-style native
svn:executable *