ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1011
Committed: Fri Sep 18 10:14:09 2009 UTC (14 years, 6 months ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 465091 byte(s)
Log Message:
- move list manipulation routines from tools.c to list.c
- mem_frob() goes to memory.c
- sort out redundant/unneeded header includes

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1010 2009-09-17 17:06:11Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 fi
370 $as_echo "$as_me: error: $1" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528
529 # Check that we are running under the correct shell.
530 SHELL=${CONFIG_SHELL-/bin/sh}
531
532 case X$lt_ECHO in
533 X*--fallback-echo)
534 # Remove one level of quotation (which was required for Make).
535 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 ;;
537 esac
538
539 ECHO=${lt_ECHO-echo}
540 if test "X$1" = X--no-reexec; then
541 # Discard the --no-reexec flag, and continue.
542 shift
543 elif test "X$1" = X--fallback-echo; then
544 # Avoid inline document here, it may be left over
545 :
546 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547 # Yippee, $ECHO works!
548 :
549 else
550 # Restart under the correct shell.
551 exec $SHELL "$0" --no-reexec ${1+"$@"}
552 fi
553
554 if test "X$1" = X--fallback-echo; then
555 # used as fallback echo
556 shift
557 cat <<_LT_EOF
558 $*
559 _LT_EOF
560 exit 0
561 fi
562
563 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 # if CDPATH is set.
565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566
567 if test -z "$lt_ECHO"; then
568 if test "X${echo_test_string+set}" != Xset; then
569 # find a string as large as possible, as long as the shell can cope with it
570 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574 then
575 break
576 fi
577 done
578 fi
579
580 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582 test "X$echo_testing_string" = "X$echo_test_string"; then
583 :
584 else
585 # The Solaris, AIX, and Digital Unix default echo programs unquote
586 # backslashes. This makes it impossible to quote backslashes using
587 # echo "$something" | sed 's/\\/\\\\/g'
588 #
589 # So, first we look for a working echo in the user's PATH.
590
591 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592 for dir in $PATH /usr/ucb; do
593 IFS="$lt_save_ifs"
594 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
598 ECHO="$dir/echo"
599 break
600 fi
601 done
602 IFS="$lt_save_ifs"
603
604 if test "X$ECHO" = Xecho; then
605 # We didn't find a better echo, so look for alternatives.
606 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # This shell has a builtin print -r that does the trick.
610 ECHO='print -r'
611 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612 test "X$CONFIG_SHELL" != X/bin/ksh; then
613 # If we have ksh, try running configure again with it.
614 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615 export ORIGINAL_CONFIG_SHELL
616 CONFIG_SHELL=/bin/ksh
617 export CONFIG_SHELL
618 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619 else
620 # Try using printf.
621 ECHO='printf %s\n'
622 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 # Cool, printf works
626 :
627 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628 test "X$echo_testing_string" = 'X\t' &&
629 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 export CONFIG_SHELL
633 SHELL="$CONFIG_SHELL"
634 export SHELL
635 ECHO="$CONFIG_SHELL $0 --fallback-echo"
636 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 else
642 # maybe with a smaller string...
643 prev=:
644
645 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647 then
648 break
649 fi
650 prev="$cmd"
651 done
652
653 if test "$prev" != 'sed 50q "$0"'; then
654 echo_test_string=`eval $prev`
655 export echo_test_string
656 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 else
658 # Oops. We lost completely, so just stick with echo.
659 ECHO=echo
660 fi
661 fi
662 fi
663 fi
664 fi
665 fi
666
667 # Copy echo and quote the copy suitably for passing to libtool from
668 # the Makefile, instead of quoting the original, which is used later.
669 lt_ECHO=$ECHO
670 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 fi
673
674
675
676
677 lt_ltdl_dir='libltdl'
678
679 lt_dlopen_dir="$lt_ltdl_dir"
680
681 exec 7<&0 </dev/null 6>&1
682
683 # Name of the host.
684 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685 # so uname gets run too.
686 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687
688 #
689 # Initializations.
690 #
691 ac_default_prefix=/usr/local
692 ac_clean_files=
693 ac_config_libobj_dir=.
694 LIBOBJS=
695 cross_compiling=no
696 subdirs=
697 MFLAGS=
698 MAKEFLAGS=
699
700 # Identity of this package.
701 PACKAGE_NAME='ircd-hybrid'
702 PACKAGE_TARNAME='ircd-hybrid'
703 PACKAGE_VERSION='7.2.4'
704 PACKAGE_STRING='ircd-hybrid 7.2.4'
705 PACKAGE_BUGREPORT=''
706 PACKAGE_URL=''
707
708 ac_unique_file="src/ircd.c"
709 # Factoring default headers for most tests.
710 ac_includes_default="\
711 #include <stdio.h>
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef STDC_HEADERS
719 # include <stdlib.h>
720 # include <stddef.h>
721 #else
722 # ifdef HAVE_STDLIB_H
723 # include <stdlib.h>
724 # endif
725 #endif
726 #ifdef HAVE_STRING_H
727 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728 # include <memory.h>
729 # endif
730 # include <string.h>
731 #endif
732 #ifdef HAVE_STRINGS_H
733 # include <strings.h>
734 #endif
735 #ifdef HAVE_INTTYPES_H
736 # include <inttypes.h>
737 #endif
738 #ifdef HAVE_STDINT_H
739 # include <stdint.h>
740 #endif
741 #ifdef HAVE_UNISTD_H
742 # include <unistd.h>
743 #endif"
744
745 enable_option_checking=no
746 ac_func_list=
747 ac_header_list=
748 ac_subst_vars='ltdl_LTLIBOBJS
749 ltdl_LIBOBJS
750 am__EXEEXT_FALSE
751 am__EXEEXT_TRUE
752 LTLIBOBJS
753 LIBOBJS
754 LOCALSTATEDIR
755 DATADIR
756 LIBDIR
757 SYSCONFDIR
758 PREFIX
759 EFNET_FALSE
760 EFNET_TRUE
761 ENABLE_SSL_FALSE
762 ENABLE_SSL_TRUE
763 ENABLE_PCRE_FALSE
764 ENABLE_PCRE_TRUE
765 LTDLOPEN
766 LT_CONFIG_H
767 subdirs
768 CONVENIENCE_LTDL_FALSE
769 CONVENIENCE_LTDL_TRUE
770 INSTALL_LTDL_FALSE
771 INSTALL_LTDL_TRUE
772 ARGZ_H
773 sys_symbol_underscore
774 LIBADD_DL
775 LT_DLPREOPEN
776 LIBADD_DLD_LINK
777 LIBADD_SHL_LOAD
778 LIBADD_DLOPEN
779 LT_DLLOADERS
780 INCLTDL
781 LTDLINCL
782 LTDLDEPS
783 LIBLTDL
784 CPP
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 lt_ECHO
791 RANLIB
792 AR
793 OBJDUMP
794 LN_S
795 NM
796 ac_ct_DUMPBIN
797 DUMPBIN
798 LD
799 FGREP
800 EGREP
801 GREP
802 SED
803 host_os
804 host_vendor
805 host_cpu
806 host
807 build_os
808 build_vendor
809 build_cpu
810 build
811 LIBTOOL
812 LEXLIB
813 LEX_OUTPUT_ROOT
814 LEX
815 YFLAGS
816 YACC
817 am__fastdepCC_FALSE
818 am__fastdepCC_TRUE
819 CCDEPMODE
820 AMDEPBACKSLASH
821 AMDEP_FALSE
822 AMDEP_TRUE
823 am__quote
824 am__include
825 DEPDIR
826 OBJEXT
827 EXEEXT
828 ac_ct_CC
829 CPPFLAGS
830 LDFLAGS
831 CFLAGS
832 CC
833 MAINT
834 MAINTAINER_MODE_FALSE
835 MAINTAINER_MODE_TRUE
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_maintainer_mode
901 enable_dependency_tracking
902 enable_static
903 enable_shared
904 with_pic
905 enable_fast_install
906 with_gnu_ld
907 enable_libtool_lock
908 with_included_ltdl
909 with_ltdl_include
910 with_ltdl_lib
911 enable_ltdl_install
912 with_zlib_path
913 enable_zlib
914 with_libpcre_path
915 enable_libpcre
916 enable_openssl
917 enable_assert
918 enable_small_net
919 enable_kqueue
920 enable_epoll
921 enable_devpoll
922 enable_rtsigio
923 enable_poll
924 enable_select
925 with_nicklen
926 with_topiclen
927 with_syslog_facility
928 enable_efnet
929 enable_halfops
930 enable_debugging
931 enable_warnings
932 enable_syslog
933 '
934 ac_precious_vars='build_alias
935 host_alias
936 target_alias
937 CC
938 CFLAGS
939 LDFLAGS
940 LIBS
941 CPPFLAGS
942 YACC
943 YFLAGS
944 CPP'
945 ac_subdirs_all='libltdl'
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
1010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
1016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
1037 -datadir | --datadir | --datadi | --datad)
1038 ac_prev=datadir ;;
1039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040 datadir=$ac_optarg ;;
1041
1042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
1049 -disable-* | --disable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=no ;;
1064
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1069
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1074
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid feature name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
1116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
1122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
1146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
1151 -localstatedir | --localstatedir | --localstatedi | --localstated \
1152 | --localstate | --localstat | --localsta | --localst | --locals)
1153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
1220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
1230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=\$ac_optarg ;;
1294
1295 -without-* | --without-*)
1296 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 as_fn_error "invalid package name: $ac_useropt"
1300 ac_useropt_orig=$ac_useropt
1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302 case $ac_user_opts in
1303 *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307 ac_unrecognized_sep=', ';;
1308 esac
1309 eval with_$ac_useropt=no ;;
1310
1311 --x)
1312 # Obsolete; use --with-x.
1313 with_x=yes ;;
1314
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1321
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1328
1329 -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1331 ;;
1332
1333 *=*)
1334 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335 # Reject names that are not valid shell variable names.
1336 case $ac_envvar in #(
1337 '' | [0-9]* | *[!_$as_cr_alnum]* )
1338 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339 esac
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1342
1343 *)
1344 # FIXME: should be removed in autoconf 3.0.
1345 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 ;;
1350
1351 esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 as_fn_error "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360 case $enable_option_checking in
1361 no) ;;
1362 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369 datadir sysconfdir sharedstatedir localstatedir includedir \
1370 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371 libdir localedir mandir
1372 do
1373 eval ac_val=\$$ac_var
1374 # Remove trailing slashes.
1375 case $ac_val in
1376 */ )
1377 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378 eval $ac_var=\$ac_val;;
1379 esac
1380 # Be sure to have absolute directory names.
1381 case $ac_val in
1382 [\\/$]* | ?:[\\/]* ) continue;;
1383 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 esac
1385 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 as_fn_error "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422 ac_srcdir_defaulted=yes
1423 # Try the directory containing this script, then the parent directory.
1424 ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426 X"$as_myself" : 'X\(//\)[^/]' \| \
1427 X"$as_myself" : 'X\(//\)$' \| \
1428 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)[^/].*/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\/\)$/{
1439 s//\1/
1440 q
1441 }
1442 /^X\(\/\).*/{
1443 s//\1/
1444 q
1445 }
1446 s/.*/./; q'`
1447 srcdir=$ac_confdir
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 srcdir=..
1450 fi
1451 else
1452 ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --enable-maintainer-mode enable make rules and dependencies not useful
1565 (and sometimes confusing) to the casual installer
1566 --disable-dependency-tracking speeds up one-time build
1567 --enable-dependency-tracking do not reject slow dependency extractors
1568 --enable-static[=PKGS] build static libraries [default=no]
1569 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 --enable-fast-install[=PKGS]
1571 optimize for fast installation [default=yes]
1572 --disable-libtool-lock avoid locking (might break parallel builds)
1573 --enable-ltdl-install install libltdl
1574 --disable-zlib Disable ziplinks support
1575 --disable-libpcre Disable PCRE support
1576 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1577 --disable-openssl Disable OpenSSL support.
1578 --enable-assert Enable assert() statements
1579 --enable-small-net Enable small network support.
1580 --enable-kqueue Force kqueue usage.
1581 --enable-epoll Force epoll usage.
1582 --enable-devpoll Force devpoll usage.
1583 --enable-rtsigio Force rtsigio usage.
1584 --enable-poll Force poll usage.
1585 --enable-select Force select usage.
1586 --enable-efnet For IRCDs running on EFnet.
1587 --enable-halfops Enable halfops support.
1588 --enable-debugging Enable debugging.
1589 --enable-warnings Enable compiler warnings.
1590 --enable-syslog="EVENTS"
1591 Enable syslog for events: users oper (space
1592 separated in quotes; default: disabled).
1593
1594 Optional Packages:
1595 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
1599 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600 --with-included-ltdl use the GNU ltdl sources included here
1601 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1602 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1603 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1604 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1605 --with-nicklen=<value> Set nickname length (default 9).
1606 --with-topiclen=<value> Set topic length (default 160).
1607 --with-syslog-facility=LOG
1608 Define the syslog facility to use (default:
1609 LOG_LOCAL4)
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1620 the first program found out of: `bison -y', `byacc', `yacc'.
1621 YFLAGS The list of arguments that will be passed by default to $YACC.
1622 This script will default YFLAGS to the empty string to avoid a
1623 default value of `-d' given by some make applications.
1624 CPP C preprocessor
1625
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1628
1629 Report bugs to the package provider.
1630 _ACEOF
1631 ac_status=$?
1632 fi
1633
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 continue
1640 ac_builddir=.
1641
1642 case "$ac_dir" in
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *)
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 esac ;;
1652 esac
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1657
1658 case $srcdir in
1659 .) # We are building in place.
1660 ac_srcdir=.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1667 *) # Relative name.
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671 esac
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1677 echo &&
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1682 else
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 fi || ac_status=$?
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1686 done
1687 fi
1688
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1691 cat <<\_ACEOF
1692 ircd-hybrid configure 7.2.4
1693 generated by GNU Autoconf 2.64
1694
1695 Copyright (C) 2009 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1698 _ACEOF
1699 exit
1700 fi
1701
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1705
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1721 ac_status=$?
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1726 fi
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1732 ac_retval=0
1733 else
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738 fi
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 return $ac_retval
1741
1742 } # ac_fn_c_try_compile
1743
1744 # ac_fn_c_try_link LINENO
1745 # -----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded.
1747 ac_fn_c_try_link ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 rm -f conftest.$ac_objext conftest$ac_exeext
1751 if { { ac_try="$ac_link"
1752 case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>conftest.err
1759 ac_status=$?
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1764 fi
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } && {
1767 test -z "$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1769 } && test -s conftest$ac_exeext && {
1770 test "$cross_compiling" = yes ||
1771 $as_test_x conftest$ac_exeext
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782 # interfere with the next link command; also delete a directory that is
1783 # left behind by Apple's compiler. We do this before executing the actions.
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786 return $ac_retval
1787
1788 } # ac_fn_c_try_link
1789
1790 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791 # -------------------------------------------------------
1792 # Tests whether HEADER exists and can be compiled using the include files in
1793 # INCLUDES, setting the cache variable VAR accordingly.
1794 ac_fn_c_check_header_compile ()
1795 {
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800 $as_echo_n "(cached) " >&6
1801 else
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 #include <$2>
1806 _ACEOF
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 fi
1814 eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818
1819 } # ac_fn_c_check_header_compile
1820
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1840 fi
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=1
1852 fi
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1855
1856 } # ac_fn_c_try_cpp
1857
1858 # ac_fn_c_try_run LINENO
1859 # ----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861 # that executables *can* be run.
1862 ac_fn_c_try_run ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>&5
1873 ac_status=$?
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876 { { case "(($ac_try" in
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_try") 2>&5
1883 ac_status=$?
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; }; }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: program exited with status $ac_status" >&5
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_retval=$ac_status
1893 fi
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 return $ac_retval
1897
1898 } # ac_fn_c_try_run
1899
1900 # ac_fn_c_check_func LINENO FUNC VAR
1901 # ----------------------------------
1902 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903 ac_fn_c_check_func ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915 #define $2 innocuous_$2
1916
1917 /* System header to define __stub macros and hopefully few prototypes,
1918 which can conflict with char $2 (); below.
1919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920 <limits.h> exists even on freestanding compilers. */
1921
1922 #ifdef __STDC__
1923 # include <limits.h>
1924 #else
1925 # include <assert.h>
1926 #endif
1927
1928 #undef $2
1929
1930 /* Override any GCC internal prototype to avoid an error.
1931 Use char because int might match the return type of a GCC
1932 builtin and then its argument prototype would still apply. */
1933 #ifdef __cplusplus
1934 extern "C"
1935 #endif
1936 char $2 ();
1937 /* The GNU C library defines this for functions which it implements
1938 to always fail with ENOSYS. Some functions are actually named
1939 something starting with __ and the normal name is an alias. */
1940 #if defined __stub_$2 || defined __stub___$2
1941 choke me
1942 #endif
1943
1944 int
1945 main ()
1946 {
1947 return $2 ();
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_link "$LINENO"; then :
1953 eval "$3=yes"
1954 else
1955 eval "$3=no"
1956 fi
1957 rm -f core conftest.err conftest.$ac_objext \
1958 conftest$ac_exeext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965 } # ac_fn_c_check_func
1966
1967 # ac_fn_c_check_decl LINENO SYMBOL VAR
1968 # ------------------------------------
1969 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1970 ac_fn_c_check_decl ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1974 $as_echo_n "checking whether $2 is declared... " >&6; }
1975 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976 $as_echo_n "(cached) " >&6
1977 else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 #ifndef $2
1985 (void) $2;
1986 #endif
1987
1988 ;
1989 return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_decl
2005
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2011 {
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2017 else
2018 eval "$3=no"
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 $4
2022 int
2023 main ()
2024 {
2025 if (sizeof ($2))
2026 return 0;
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $4
2035 int
2036 main ()
2037 {
2038 if (sizeof (($2)))
2039 return 0;
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045
2046 else
2047 eval "$3=yes"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058 } # ac_fn_c_check_type
2059
2060 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2061 # ----------------------------------------------------
2062 # Tries to find if the field MEMBER exists in type AGGR, after including
2063 # INCLUDES, setting cache variable VAR accordingly.
2064 ac_fn_c_check_member ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2068 $as_echo_n "checking for $2.$3... " >&6; }
2069 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $5
2075 int
2076 main ()
2077 {
2078 static $2 ac_aggr;
2079 if (ac_aggr.$3)
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 eval "$4=yes"
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $5
2091 int
2092 main ()
2093 {
2094 static $2 ac_aggr;
2095 if (sizeof ac_aggr.$3)
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 eval "$4=yes"
2103 else
2104 eval "$4=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$4
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_member
2116
2117 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118 # -------------------------------------------------------
2119 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120 # the include files in INCLUDES and setting the cache variable VAR
2121 # accordingly.
2122 ac_fn_c_check_header_mongrel ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129 $as_echo_n "(cached) " >&6
2130 fi
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 else
2135 # Is the header compilable?
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137 $as_echo_n "checking $2 usability... " >&6; }
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 #include <$2>
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_header_compiler=yes
2145 else
2146 ac_header_compiler=no
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150 $as_echo "$ac_header_compiler" >&6; }
2151
2152 # Is the header present?
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154 $as_echo_n "checking $2 presence... " >&6; }
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h. */
2157 #include <$2>
2158 _ACEOF
2159 if ac_fn_c_try_cpp "$LINENO"; then :
2160 ac_header_preproc=yes
2161 else
2162 ac_header_preproc=no
2163 fi
2164 rm -f conftest.err conftest.$ac_ext
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166 $as_echo "$ac_header_preproc" >&6; }
2167
2168 # So? What about this header?
2169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2170 yes:no: )
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175 ;;
2176 no:yes:* )
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 ;;
2188 esac
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2193 else
2194 eval "$3=\$ac_header_compiler"
2195 fi
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 fi
2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201
2202 } # ac_fn_c_check_header_mongrel
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by ircd-hybrid $as_me 7.2.4, which was
2208 generated by GNU Autoconf 2.64. Invocation command line was
2209
2210 $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228
2229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242 IFS=$as_save_IFS
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2245 done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271 for ac_arg
2272 do
2273 case $ac_arg in
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2277 continue ;;
2278 *\'*)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 esac
2281 case $ac_pass in
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 2)
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2287 else
2288 case $ac_arg in
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295 esac
2296 ;;
2297 -* ) ac_must_keep_next=true ;;
2298 esac
2299 fi
2300 as_fn_append ac_configure_args " '$ac_arg'"
2301 ;;
2302 esac
2303 done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2315 {
2316 echo
2317
2318 cat <<\_ASBOX
2319 ## ---------------- ##
2320 ## Cache variables. ##
2321 ## ---------------- ##
2322 _ASBOX
2323 echo
2324 # The following way of writing the cache mishandles newlines in values,
2325 (
2326 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327 eval ac_val=\$$ac_var
2328 case $ac_val in #(
2329 *${as_nl}*)
2330 case $ac_var in #(
2331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 esac
2334 case $ac_var in #(
2335 _ | IFS | as_nl) ;; #(
2336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 *) { eval $ac_var=; unset $ac_var;} ;;
2338 esac ;;
2339 esac
2340 done
2341 (set) 2>&1 |
2342 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343 *${as_nl}ac_space=\ *)
2344 sed -n \
2345 "s/'\''/'\''\\\\'\'''\''/g;
2346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 ;; #(
2348 *)
2349 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350 ;;
2351 esac |
2352 sort
2353 )
2354 echo
2355
2356 cat <<\_ASBOX
2357 ## ----------------- ##
2358 ## Output variables. ##
2359 ## ----------------- ##
2360 _ASBOX
2361 echo
2362 for ac_var in $ac_subst_vars
2363 do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 esac
2368 $as_echo "$ac_var='\''$ac_val'\''"
2369 done | sort
2370 echo
2371
2372 if test -n "$ac_subst_files"; then
2373 cat <<\_ASBOX
2374 ## ------------------- ##
2375 ## File substitutions. ##
2376 ## ------------------- ##
2377 _ASBOX
2378 echo
2379 for ac_var in $ac_subst_files
2380 do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in
2383 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 esac
2385 $as_echo "$ac_var='\''$ac_val'\''"
2386 done | sort
2387 echo
2388 fi
2389
2390 if test -s confdefs.h; then
2391 cat <<\_ASBOX
2392 ## ----------- ##
2393 ## confdefs.h. ##
2394 ## ----------- ##
2395 _ASBOX
2396 echo
2397 cat confdefs.h
2398 echo
2399 fi
2400 test "$ac_signal" != 0 &&
2401 $as_echo "$as_me: caught signal $ac_signal"
2402 $as_echo "$as_me: exit $exit_status"
2403 } >&5
2404 rm -f core *.core core.conftest.* &&
2405 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406 exit $exit_status
2407 ' 0
2408 for ac_signal in 1 2 13 15; do
2409 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 done
2411 ac_signal=0
2412
2413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2414 rm -f -r conftest* confdefs.h
2415
2416 $as_echo "/* confdefs.h */" > confdefs.h
2417
2418 # Predefined preprocessor variables.
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_NAME "$PACKAGE_NAME"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_STRING "$PACKAGE_STRING"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438 _ACEOF
2439
2440 cat >>confdefs.h <<_ACEOF
2441 #define PACKAGE_URL "$PACKAGE_URL"
2442 _ACEOF
2443
2444
2445 # Let the site file select an alternate cache file if it wants to.
2446 # Prefer an explicitly selected file to automatically selected ones.
2447 ac_site_file1=NONE
2448 ac_site_file2=NONE
2449 if test -n "$CONFIG_SITE"; then
2450 ac_site_file1=$CONFIG_SITE
2451 elif test "x$prefix" != xNONE; then
2452 ac_site_file1=$prefix/share/config.site
2453 ac_site_file2=$prefix/etc/config.site
2454 else
2455 ac_site_file1=$ac_default_prefix/share/config.site
2456 ac_site_file2=$ac_default_prefix/etc/config.site
2457 fi
2458 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 do
2460 test "x$ac_site_file" = xNONE && continue
2461 if test -r "$ac_site_file"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464 sed 's/^/| /' "$ac_site_file" >&5
2465 . "$ac_site_file"
2466 fi
2467 done
2468
2469 if test -r "$cache_file"; then
2470 # Some versions of bash will fail to source /dev/null (special
2471 # files actually), so we avoid doing that.
2472 if test -f "$cache_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2479 fi
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2484 fi
2485
2486 as_fn_append ac_func_list " mmap"
2487 as_fn_append ac_func_list " strtok_r"
2488 as_fn_append ac_func_list " usleep"
2489 as_fn_append ac_func_list " strlcat"
2490 as_fn_append ac_func_list " strlcpy"
2491 as_fn_append ac_header_list " crypt.h"
2492 as_fn_append ac_header_list " inttypes.h"
2493 as_fn_append ac_header_list " stdint.h"
2494 as_fn_append ac_header_list " sys/resource.h"
2495 as_fn_append ac_header_list " sys/param.h"
2496 as_fn_append ac_header_list " errno.h"
2497 as_fn_append ac_header_list " sys/syslog.h"
2498 as_fn_append ac_header_list " stddef.h"
2499 as_fn_append ac_header_list " libgen.h"
2500 as_fn_append ac_header_list " types.h"
2501 as_fn_append ac_header_list " socket.h"
2502 as_fn_append ac_header_list " sys/wait.h"
2503 as_fn_append ac_header_list " wait.h"
2504 as_fn_append ac_header_list " link.h"
2505 # Check that the precious variables saved in the cache have kept the same
2506 # value.
2507 ac_cache_corrupted=false
2508 for ac_var in $ac_precious_vars; do
2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510 eval ac_new_set=\$ac_env_${ac_var}_set
2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512 eval ac_new_val=\$ac_env_${ac_var}_value
2513 case $ac_old_set,$ac_new_set in
2514 set,)
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 ac_cache_corrupted=: ;;
2518 ,set)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,);;
2523 *)
2524 if test "x$ac_old_val" != "x$ac_new_val"; then
2525 # differences in whitespace do not lead to failure.
2526 ac_old_val_w=`echo x $ac_old_val`
2527 ac_new_val_w=`echo x $ac_new_val`
2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531 ac_cache_corrupted=:
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535 eval $ac_var=\$ac_old_val
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 fi;;
2542 esac
2543 # Pass precious variables to config.status.
2544 if test "$ac_new_set" = set; then
2545 case $ac_new_val in
2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 *) ac_arg=$ac_var=$ac_new_val ;;
2548 esac
2549 case " $ac_configure_args " in
2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 esac
2553 fi
2554 done
2555 if $ac_cache_corrupted; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 fi
2562 ## -------------------- ##
2563 ## Main body of script. ##
2564 ## -------------------- ##
2565
2566 ac_ext=c
2567 ac_cpp='$CPP $CPPFLAGS'
2568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571
2572
2573 am__api_version='1.11'
2574
2575 ac_aux_dir=
2576 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 for ac_t in install-sh install.sh shtool; do
2578 if test -f "$ac_dir/$ac_t"; then
2579 ac_aux_dir=$ac_dir
2580 ac_install_sh="$ac_aux_dir/$ac_t -c"
2581 break 2
2582 fi
2583 done
2584 done
2585 if test -z "$ac_aux_dir"; then
2586 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2587 fi
2588
2589 # These three variables are undocumented and unsupported,
2590 # and are intended to be withdrawn in a future Autoconf release.
2591 # They can cause serious problems if a builder's source tree is in a directory
2592 # whose full name contains unusual characters.
2593 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2594 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2595 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2596
2597
2598 # Find a good install program. We prefer a C program (faster),
2599 # so one script is as good as another. But avoid the broken or
2600 # incompatible versions:
2601 # SysV /etc/install, /usr/sbin/install
2602 # SunOS /usr/etc/install
2603 # IRIX /sbin/install
2604 # AIX /bin/install
2605 # AmigaOS /C/install, which installs bootblocks on floppy discs
2606 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2607 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609 # OS/2's system install, which has a completely different semantic
2610 # ./install, which can be erroneously created by make from ./install.sh.
2611 # Reject install programs that cannot install multiple files.
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2613 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2614 if test -z "$INSTALL"; then
2615 if test "${ac_cv_path_install+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 # Account for people who put trailing slashes in PATH elements.
2624 case $as_dir/ in #((
2625 ./ | .// | /[cC]/* | \
2626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2627 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2628 /usr/ucb/* ) ;;
2629 *)
2630 # OSF1 and SCO ODT 3.0 have their own names for install.
2631 # Don't use installbsd from OSF since it installs stuff as root
2632 # by default.
2633 for ac_prog in ginstall scoinst install; do
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2636 if test $ac_prog = install &&
2637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638 # AIX install. It has an incompatible calling convention.
2639 :
2640 elif test $ac_prog = install &&
2641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2642 # program-specific install script used by HP pwplus--don't use.
2643 :
2644 else
2645 rm -rf conftest.one conftest.two conftest.dir
2646 echo one > conftest.one
2647 echo two > conftest.two
2648 mkdir conftest.dir
2649 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2650 test -s conftest.one && test -s conftest.two &&
2651 test -s conftest.dir/conftest.one &&
2652 test -s conftest.dir/conftest.two
2653 then
2654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2655 break 3
2656 fi
2657 fi
2658 fi
2659 done
2660 done
2661 ;;
2662 esac
2663
2664 done
2665 IFS=$as_save_IFS
2666
2667 rm -rf conftest.one conftest.two conftest.dir
2668
2669 fi
2670 if test "${ac_cv_path_install+set}" = set; then
2671 INSTALL=$ac_cv_path_install
2672 else
2673 # As a last resort, use the slow shell script. Don't cache a
2674 # value for INSTALL within a source directory, because that will
2675 # break other packages using the cache if that directory is
2676 # removed, or if the value is a relative name.
2677 INSTALL=$ac_install_sh
2678 fi
2679 fi
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2681 $as_echo "$INSTALL" >&6; }
2682
2683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2684 # It thinks the first close brace ends the variable substitution.
2685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2686
2687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2688
2689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2692 $as_echo_n "checking whether build environment is sane... " >&6; }
2693 # Just in case
2694 sleep 1
2695 echo timestamp > conftest.file
2696 # Reject unsafe characters in $srcdir or the absolute working directory
2697 # name. Accept space and tab only in the latter.
2698 am_lf='
2699 '
2700 case `pwd` in
2701 *[\\\"\#\$\&\'\`$am_lf]*)
2702 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2703 esac
2704 case $srcdir in
2705 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2706 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2707 esac
2708
2709 # Do `set' in a subshell so we don't clobber the current shell's
2710 # arguments. Must try -L first in case configure is actually a
2711 # symlink; some systems play weird games with the mod time of symlinks
2712 # (eg FreeBSD returns the mod time of the symlink's containing
2713 # directory).
2714 if (
2715 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2716 if test "$*" = "X"; then
2717 # -L didn't work.
2718 set X `ls -t "$srcdir/configure" conftest.file`
2719 fi
2720 rm -f conftest.file
2721 if test "$*" != "X $srcdir/configure conftest.file" \
2722 && test "$*" != "X conftest.file $srcdir/configure"; then
2723
2724 # If neither matched, then we have a broken ls. This can happen
2725 # if, for instance, CONFIG_SHELL is bash and it inherits a
2726 # broken ls alias from the environment. This has actually
2727 # happened. Such a system could not be considered "sane".
2728 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2729 alias in your environment" "$LINENO" 5
2730 fi
2731
2732 test "$2" = conftest.file
2733 )
2734 then
2735 # Ok.
2736 :
2737 else
2738 as_fn_error "newly created file is older than distributed files!
2739 Check your system clock" "$LINENO" 5
2740 fi
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2742 $as_echo "yes" >&6; }
2743 test "$program_prefix" != NONE &&
2744 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2745 # Use a double $ so make ignores it.
2746 test "$program_suffix" != NONE &&
2747 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2748 # Double any \ or $.
2749 # By default was `s,x,x', remove it if useless.
2750 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2751 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2752
2753 # expand $ac_aux_dir to an absolute path
2754 am_aux_dir=`cd $ac_aux_dir && pwd`
2755
2756 if test x"${MISSING+set}" != xset; then
2757 case $am_aux_dir in
2758 *\ * | *\ *)
2759 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2760 *)
2761 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2762 esac
2763 fi
2764 # Use eval to expand $SHELL
2765 if eval "$MISSING --run true"; then
2766 am_missing_run="$MISSING --run "
2767 else
2768 am_missing_run=
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2770 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2771 fi
2772
2773 if test x"${install_sh}" != xset; then
2774 case $am_aux_dir in
2775 *\ * | *\ *)
2776 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2777 *)
2778 install_sh="\${SHELL} $am_aux_dir/install-sh"
2779 esac
2780 fi
2781
2782 # Installed binaries are usually stripped using `strip' when the user
2783 # run `make install-strip'. However `strip' might not be the right
2784 # tool to use in cross-compilation environments, therefore Automake
2785 # will honor the `STRIP' environment variable to overrule this program.
2786 if test "$cross_compiling" != no; then
2787 if test -n "$ac_tool_prefix"; then
2788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2789 set dummy ${ac_tool_prefix}strip; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_STRIP+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 if test -n "$STRIP"; then
2796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811 IFS=$as_save_IFS
2812
2813 fi
2814 fi
2815 STRIP=$ac_cv_prog_STRIP
2816 if test -n "$STRIP"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2818 $as_echo "$STRIP" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2822 fi
2823
2824
2825 fi
2826 if test -z "$ac_cv_prog_STRIP"; then
2827 ac_ct_STRIP=$STRIP
2828 # Extract the first word of "strip", so it can be a program name with args.
2829 set dummy strip; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$ac_ct_STRIP"; then
2836 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 ac_cv_prog_ac_ct_STRIP="strip"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2856 if test -n "$ac_ct_STRIP"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2858 $as_echo "$ac_ct_STRIP" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864 if test "x$ac_ct_STRIP" = x; then
2865 STRIP=":"
2866 else
2867 case $cross_compiling:$ac_tool_warned in
2868 yes:)
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871 ac_tool_warned=yes ;;
2872 esac
2873 STRIP=$ac_ct_STRIP
2874 fi
2875 else
2876 STRIP="$ac_cv_prog_STRIP"
2877 fi
2878
2879 fi
2880 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2881
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2883 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2884 if test -z "$MKDIR_P"; then
2885 if test "${ac_cv_path_mkdir+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2890 do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_prog in mkdir gmkdir; do
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2896 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2897 'mkdir (GNU coreutils) '* | \
2898 'mkdir (coreutils) '* | \
2899 'mkdir (fileutils) '4.1*)
2900 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2901 break 3;;
2902 esac
2903 done
2904 done
2905 done
2906 IFS=$as_save_IFS
2907
2908 fi
2909
2910 if test "${ac_cv_path_mkdir+set}" = set; then
2911 MKDIR_P="$ac_cv_path_mkdir -p"
2912 else
2913 # As a last resort, use the slow shell script. Don't cache a
2914 # value for MKDIR_P within a source directory, because that will
2915 # break other packages using the cache if that directory is
2916 # removed, or if the value is a relative name.
2917 test -d ./--version && rmdir ./--version
2918 MKDIR_P="$ac_install_sh -d"
2919 fi
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2922 $as_echo "$MKDIR_P" >&6; }
2923
2924 mkdir_p="$MKDIR_P"
2925 case $mkdir_p in
2926 [\\/$]* | ?:[\\/]*) ;;
2927 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2928 esac
2929
2930 for ac_prog in gawk mawk nawk awk
2931 do
2932 # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if test "${ac_cv_prog_AWK+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$AWK"; then
2940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_AWK="$ac_prog"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 AWK=$ac_cv_prog_AWK
2960 if test -n "$AWK"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2962 $as_echo "$AWK" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 test -n "$AWK" && break
2970 done
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2974 set x ${MAKE-make}
2975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2976 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 cat >conftest.make <<\_ACEOF
2980 SHELL = /bin/sh
2981 all:
2982 @echo '@@@%%%=$(MAKE)=@@@%%%'
2983 _ACEOF
2984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2986 *@@@%%%=?*=@@@%%%*)
2987 eval ac_cv_prog_make_${ac_make}_set=yes;;
2988 *)
2989 eval ac_cv_prog_make_${ac_make}_set=no;;
2990 esac
2991 rm -f conftest.make
2992 fi
2993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996 SET_MAKE=
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000 SET_MAKE="MAKE=${MAKE-make}"
3001 fi
3002
3003 rm -rf .tst 2>/dev/null
3004 mkdir .tst 2>/dev/null
3005 if test -d .tst; then
3006 am__leading_dot=.
3007 else
3008 am__leading_dot=_
3009 fi
3010 rmdir .tst 2>/dev/null
3011
3012 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3013 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3014 # is not polluted with repeated "-I."
3015 am__isrc=' -I$(srcdir)'
3016 # test to see if srcdir already configured
3017 if test -f $srcdir/config.status; then
3018 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3019 fi
3020 fi
3021
3022 # test whether we have cygpath
3023 if test -z "$CYGPATH_W"; then
3024 if (cygpath --version) >/dev/null 2>/dev/null; then
3025 CYGPATH_W='cygpath -w'
3026 else
3027 CYGPATH_W=echo
3028 fi
3029 fi
3030
3031
3032 # Define the identity of the package.
3033 PACKAGE='ircd-hybrid'
3034 VERSION='7.2.4'
3035
3036
3037 cat >>confdefs.h <<_ACEOF
3038 #define PACKAGE "$PACKAGE"
3039 _ACEOF
3040
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define VERSION "$VERSION"
3044 _ACEOF
3045
3046 # Some tools Automake needs.
3047
3048 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3049
3050
3051 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3052
3053
3054 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3055
3056
3057 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3058
3059
3060 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3061
3062 # We need awk for the "check" target. The system "awk" is bad on
3063 # some platforms.
3064 # Always define AMTAR for backward compatibility.
3065
3066 AMTAR=${AMTAR-"${am_missing_run}tar"}
3067
3068 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3069
3070
3071
3072
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3076 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3077 # Check whether --enable-maintainer-mode was given.
3078 if test "${enable_maintainer_mode+set}" = set; then :
3079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3080 else
3081 USE_MAINTAINER_MODE=no
3082 fi
3083
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3085 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3086 if test $USE_MAINTAINER_MODE = yes; then
3087 MAINTAINER_MODE_TRUE=
3088 MAINTAINER_MODE_FALSE='#'
3089 else
3090 MAINTAINER_MODE_TRUE='#'
3091 MAINTAINER_MODE_FALSE=
3092 fi
3093
3094 MAINT=$MAINTAINER_MODE_TRUE
3095
3096
3097 ac_config_headers="$ac_config_headers config.h"
3098
3099
3100
3101 # Checks for programs.
3102 DEPDIR="${am__leading_dot}deps"
3103
3104 ac_config_commands="$ac_config_commands depfiles"
3105
3106
3107 am_make=${MAKE-make}
3108 cat > confinc << 'END'
3109 am__doit:
3110 @echo this is the am__doit target
3111 .PHONY: am__doit
3112 END
3113 # If we don't find an include directive, just comment out the code.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116 am__include="#"
3117 am__quote=
3118 _am_result=none
3119 # First try GNU make style include.
3120 echo "include confinc" > confmf
3121 # Ignore all kinds of additional output from `make'.
3122 case `$am_make -s -f confmf 2> /dev/null` in #(
3123 *the\ am__doit\ target*)
3124 am__include=include
3125 am__quote=
3126 _am_result=GNU
3127 ;;
3128 esac
3129 # Now try BSD make style include.
3130 if test "$am__include" = "#"; then
3131 echo '.include "confinc"' > confmf
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=.include
3135 am__quote="\""
3136 _am_result=BSD
3137 ;;
3138 esac
3139 fi
3140
3141
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143 $as_echo "$_am_result" >&6; }
3144 rm -f confinc confmf
3145
3146 # Check whether --enable-dependency-tracking was given.
3147 if test "${enable_dependency_tracking+set}" = set; then :
3148 enableval=$enable_dependency_tracking;
3149 fi
3150
3151 if test "x$enable_dependency_tracking" != xno; then
3152 am_depcomp="$ac_aux_dir/depcomp"
3153 AMDEPBACKSLASH='\'
3154 fi
3155 if test "x$enable_dependency_tracking" != xno; then
3156 AMDEP_TRUE=
3157 AMDEP_FALSE='#'
3158 else
3159 AMDEP_TRUE='#'
3160 AMDEP_FALSE=
3161 fi
3162
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191 done
3192 done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 if test -z "$ac_cv_prog_CC"; then
3209 ac_ct_CC=$CC
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_CC="gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3230 fi
3231 done
3232 done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 CC=$ac_ct_CC
3256 fi
3257 else
3258 CC="$ac_cv_prog_CC"
3259 fi
3260
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_CC+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284 done
3285 done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300 fi
3301 fi
3302 if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if test "${ac_cv_prog_CC+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 ac_prog_rejected=no
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3323 continue
3324 fi
3325 ac_cv_prog_CC="cc"
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 if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3336 shift
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3341 shift
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343 fi
3344 fi
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3361 do
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399 test -n "$CC" && break
3400 done
3401 fi
3402 if test -z "$CC"; then
3403 ac_ct_CC=$CC
3404 for ac_prog in cl.exe
3405 do
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 test -n "$ac_ct_CC" && break
3444 done
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3456 fi
3457 fi
3458
3459 fi
3460
3461
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details." "$LINENO" 5; }
3466
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 set X $ac_compile
3470 ac_compiler=$2
3471 for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 ac_status=$?
3481 if test -s conftest.err; then
3482 sed '10a\
3483 ... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3486 rm -f conftest.er1 conftest.err
3487 fi
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 done
3491
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3494 #include <stdio.h>
3495 int
3496 main ()
3497 {
3498 FILE *f = fopen ("conftest.out", "w");
3499 return ferror (f) || fclose (f) != 0;
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3509 # of exeext.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3511 $as_echo_n "checking for C compiler default output file name... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3519 do
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 esac
3524 done
3525 rm -f $ac_rmfiles
3526
3527 if { { ac_try="$ac_link_default"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3542 # Autoconf.
3543 for ac_file in $ac_files ''
3544 do
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 ;;
3549 [ab].out )
3550 # We found the default executable, but exeext='' is most
3551 # certainly right.
3552 break;;
3553 *.* )
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 then :; else
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 fi
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3562 # actually working.
3563 break;;
3564 * )
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570 else
3571 ac_file=''
3572 fi
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 $as_echo "$ac_file" >&6; }
3575 if test -z "$ac_file"; then :
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { as_fn_set_status 77
3582 as_fn_error "C compiler cannot create executables
3583 See \`config.log' for more details." "$LINENO" 5; }; }
3584 fi
3585 ac_exeext=$ac_cv_exeext
3586
3587 # Check that the compiler produces executables we can run. If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # If not cross compiling, check that we can run a simple program.
3592 if test "$cross_compiling" != yes; then
3593 if { ac_try='./$ac_file'
3594 { { case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600 (eval "$ac_try") 2>&5
3601 ac_status=$?
3602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603 test $ac_status = 0; }; }; then
3604 cross_compiling=no
3605 else
3606 if test "$cross_compiling" = maybe; then
3607 cross_compiling=yes
3608 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error "cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details." "$LINENO" 5; }
3614 fi
3615 fi
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618 $as_echo "yes" >&6; }
3619
3620 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3621 ac_clean_files=$ac_clean_files_save
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627 $as_echo "$cross_compiling" >&6; }
3628
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3630 $as_echo_n "checking for suffix of executables... " >&6; }
3631 if { { ac_try="$ac_link"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_link") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644 # work properly (i.e., refer to `conftest.exe'), while it won't with
3645 # `rm'.
3646 for ac_file in conftest.exe conftest conftest.*; do
3647 test -f "$ac_file" || continue
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651 break;;
3652 * ) break;;
3653 esac
3654 done
3655 else
3656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 as_fn_error "cannot compute suffix of executables: cannot compile and link
3659 See \`config.log' for more details." "$LINENO" 5; }
3660 fi
3661 rm -f conftest$ac_cv_exeext
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3663 $as_echo "$ac_cv_exeext" >&6; }
3664
3665 rm -f conftest.$ac_ext
3666 EXEEXT=$ac_cv_exeext
3667 ac_exeext=$EXEEXT
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3669 $as_echo_n "checking for suffix of object files... " >&6; }
3670 if test "${ac_cv_objext+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675
3676 int
3677 main ()
3678 {
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.o conftest.obj
3685 if { { ac_try="$ac_compile"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_compile") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 for ac_file in conftest.o conftest.obj conftest.*; do
3697 test -f "$ac_file" || continue;
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3700 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701 break;;
3702 esac
3703 done
3704 else
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error "cannot compute suffix of object files: cannot compile
3711 See \`config.log' for more details." "$LINENO" 5; }
3712 fi
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3716 $as_echo "$ac_cv_objext" >&6; }
3717 OBJEXT=$ac_cv_objext
3718 ac_objext=$OBJEXT
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3720 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3721 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3723 else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main ()
3729 {
3730 #ifndef __GNUC__
3731 choke me
3732 #endif
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_compiler_gnu=yes
3740 else
3741 ac_compiler_gnu=no
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745
3746 fi
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3748 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3749 if test $ac_compiler_gnu = yes; then
3750 GCC=yes
3751 else
3752 GCC=
3753 fi
3754 ac_test_CFLAGS=${CFLAGS+set}
3755 ac_save_CFLAGS=$CFLAGS
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3757 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3758 if test "${ac_cv_prog_cc_g+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 ac_save_c_werror_flag=$ac_c_werror_flag
3762 ac_c_werror_flag=yes
3763 ac_cv_prog_cc_g=no
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 else
3779 CFLAGS=""
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3782
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 if ac_fn_c_try_compile "$LINENO"; then :
3792
3793 else
3794 ac_c_werror_flag=$ac_save_c_werror_flag
3795 CFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
3809 fi
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3818 $as_echo "$ac_cv_prog_cc_g" >&6; }
3819 if test "$ac_test_CFLAGS" = set; then
3820 CFLAGS=$ac_save_CFLAGS
3821 elif test $ac_cv_prog_cc_g = yes; then
3822 if test "$GCC" = yes; then
3823 CFLAGS="-g -O2"
3824 else
3825 CFLAGS="-g"
3826 fi
3827 else
3828 if test "$GCC" = yes; then
3829 CFLAGS="-O2"
3830 else
3831 CFLAGS=
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3836 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 ac_cv_prog_cc_c89=no
3840 ac_save_CC=$CC
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <stdarg.h>
3844 #include <stdio.h>
3845 #include <sys/types.h>
3846 #include <sys/stat.h>
3847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848 struct buf { int x; };
3849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850 static char *e (p, i)
3851 char **p;
3852 int i;
3853 {
3854 return p[i];
3855 }
3856 static char *f (char * (*g) (char **, int), char **p, ...)
3857 {
3858 char *s;
3859 va_list v;
3860 va_start (v,p);
3861 s = g (p, va_arg (v,int));
3862 va_end (v);
3863 return s;
3864 }
3865
3866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867 function prototypes and stuff, but not '\xHH' hex character constants.
3868 These don't provoke an error unfortunately, instead are silently treated
3869 as 'x'. The following induces an error, until -std is added to get
3870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871 array size at least. It's necessary to write '\x00'==0 to get something
3872 that's true only with -std. */
3873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874
3875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876 inside strings and character constants. */
3877 #define FOO(x) 'x'
3878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879
3880 int test (int i, double x);
3881 struct s1 {int (*f) (int a);};
3882 struct s2 {int (*f) (double a);};
3883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884 int argc;
3885 char **argv;
3886 int
3887 main ()
3888 {
3889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 ;
3891 return 0;
3892 }
3893 _ACEOF
3894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 do
3897 CC="$ac_save_CC $ac_arg"
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_c89=$ac_arg
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext
3902 test "x$ac_cv_prog_cc_c89" != "xno" && break
3903 done
3904 rm -f conftest.$ac_ext
3905 CC=$ac_save_CC
3906
3907 fi
3908 # AC_CACHE_VAL
3909 case "x$ac_cv_prog_cc_c89" in
3910 x)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912 $as_echo "none needed" >&6; } ;;
3913 xno)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915 $as_echo "unsupported" >&6; } ;;
3916 *)
3917 CC="$CC $ac_cv_prog_cc_c89"
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 esac
3921 if test "x$ac_cv_prog_cc_c89" != xno; then :
3922
3923 fi
3924
3925 ac_ext=c
3926 ac_cpp='$CPP $CPPFLAGS'
3927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930
3931 depcc="$CC" am_compiler_list=
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3934 $as_echo_n "checking dependency style of $depcc... " >&6; }
3935 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3939 # We make a subdir and do the tests there. Otherwise we can end up
3940 # making bogus files that we don't know about and never remove. For
3941 # instance it was reported that on HP-UX the gcc test will end up
3942 # making a dummy file named `D' -- because `-MD' means `put the output
3943 # in D'.
3944 mkdir conftest.dir
3945 # Copy depcomp to subdir because otherwise we won't find it if we're
3946 # using a relative directory.
3947 cp "$am_depcomp" conftest.dir
3948 cd conftest.dir
3949 # We will build objects and dependencies in a subdirectory because
3950 # it helps to detect inapplicable dependency modes. For instance
3951 # both Tru64's cc and ICC support -MD to output dependencies as a
3952 # side effect of compilation, but ICC will put the dependencies in
3953 # the current directory while Tru64 will put them in the object
3954 # directory.
3955 mkdir sub
3956
3957 am_cv_CC_dependencies_compiler_type=none
3958 if test "$am_compiler_list" = ""; then
3959 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960 fi
3961 am__universal=false
3962 case " $depcc " in #(
3963 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964 esac
3965
3966 for depmode in $am_compiler_list; do
3967 # Setup a source with many dependencies, because some compilers
3968 # like to wrap large dependency lists on column 80 (with \), and
3969 # we should not choose a depcomp mode which is confused by this.
3970 #
3971 # We need to recreate these files for each test, as the compiler may
3972 # overwrite some of them when testing with obscure command lines.
3973 # This happens at least with the AIX C compiler.
3974 : > sub/conftest.c
3975 for i in 1 2 3 4 5 6; do
3976 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3977 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3978 # Solaris 8's {/usr,}/bin/sh.
3979 touch sub/conftst$i.h
3980 done
3981 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982
3983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984 # mode. It turns out that the SunPro C++ compiler does not properly
3985 # handle `-M -o', and we need to detect this. Also, some Intel
3986 # versions had trouble with output in subdirs
3987 am__obj=sub/conftest.${OBJEXT-o}
3988 am__minus_obj="-o $am__obj"
3989 case $depmode in
3990 gcc)
3991 # This depmode causes a compiler race in universal mode.
3992 test "$am__universal" = false || continue
3993 ;;
3994 nosideeffect)
3995 # after this tag, mechanisms are not by side-effect, so they'll
3996 # only be used when explicitly requested
3997 if test "x$enable_dependency_tracking" = xyes; then
3998 continue
3999 else
4000 break
4001 fi
4002 ;;
4003 msvisualcpp | msvcmsys)
4004 # This compiler won't grok `-c -o', but also, the minuso test has
4005 # not run yet. These depmodes are late enough in the game, and
4006 # so weak that their functioning should not be impacted.
4007 am__obj=conftest.${OBJEXT-o}
4008 am__minus_obj=
4009 ;;
4010 none) break ;;
4011 esac
4012 if depmode=$depmode \
4013 source=sub/conftest.c object=$am__obj \
4014 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016 >/dev/null 2>conftest.err &&
4017 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021 # icc doesn't choke on unknown options, it will just issue warnings
4022 # or remarks (even with -Werror). So we grep stderr for any message
4023 # that says an option was ignored or not supported.
4024 # When given -MP, icc 7.0 and 7.1 complain thusly:
4025 # icc: Command line warning: ignoring option '-M'; no argument required
4026 # The diagnosis changed in icc 8.0:
4027 # icc: Command line remark: option '-MP' not supported
4028 if (grep 'ignoring option' conftest.err ||
4029 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030 am_cv_CC_dependencies_compiler_type=$depmode
4031 break
4032 fi
4033 fi
4034 done
4035
4036 cd ..
4037 rm -rf conftest.dir
4038 else
4039 am_cv_CC_dependencies_compiler_type=none
4040 fi
4041
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4044 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046
4047 if
4048 test "x$enable_dependency_tracking" != xno \
4049 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050 am__fastdepCC_TRUE=
4051 am__fastdepCC_FALSE='#'
4052 else
4053 am__fastdepCC_TRUE='#'
4054 am__fastdepCC_FALSE=
4055 fi
4056
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4059 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4060 if test "${ac_cv_prog_cc_c99+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 ac_cv_prog_cc_c99=no
4064 ac_save_CC=$CC
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067 #include <stdarg.h>
4068 #include <stdbool.h>
4069 #include <stdlib.h>
4070 #include <wchar.h>
4071 #include <stdio.h>
4072
4073 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4074 #define debug(...) fprintf (stderr, __VA_ARGS__)
4075 #define showlist(...) puts (#__VA_ARGS__)
4076 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4077 static void
4078 test_varargs_macros (void)
4079 {
4080 int x = 1234;
4081 int y = 5678;
4082 debug ("Flag");
4083 debug ("X = %d\n", x);
4084 showlist (The first, second, and third items.);
4085 report (x>y, "x is %d but y is %d", x, y);
4086 }
4087
4088 // Check long long types.
4089 #define BIG64 18446744073709551615ull
4090 #define BIG32 4294967295ul
4091 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4092 #if !BIG_OK
4093 your preprocessor is broken;
4094 #endif
4095 #if BIG_OK
4096 #else
4097 your preprocessor is broken;
4098 #endif
4099 static long long int bignum = -9223372036854775807LL;
4100 static unsigned long long int ubignum = BIG64;
4101
4102 struct incomplete_array
4103 {
4104 int datasize;
4105 double data[];
4106 };
4107
4108 struct named_init {
4109 int number;
4110 const wchar_t *name;
4111 double average;
4112 };
4113
4114 typedef const char *ccp;
4115
4116 static inline int
4117 test_restrict (ccp restrict text)
4118 {
4119 // See if C++-style comments work.
4120 // Iterate through items via the restricted pointer.
4121 // Also check for declarations in for loops.
4122 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4123 continue;
4124 return 0;
4125 }
4126
4127 // Check varargs and va_copy.
4128 static void
4129 test_varargs (const char *format, ...)
4130 {
4131 va_list args;
4132 va_start (args, format);
4133 va_list args_copy;
4134 va_copy (args_copy, args);
4135
4136 const char *str;
4137 int number;
4138 float fnumber;
4139
4140 while (*format)
4141 {
4142 switch (*format++)
4143 {
4144 case 's': // string
4145 str = va_arg (args_copy, const char *);
4146 break;
4147 case 'd': // int
4148 number = va_arg (args_copy, int);
4149 break;
4150 case 'f': // float
4151 fnumber = va_arg (args_copy, double);
4152 break;
4153 default:
4154 break;
4155 }
4156 }
4157 va_end (args_copy);
4158 va_end (args);
4159 }
4160
4161 int
4162 main ()
4163 {
4164
4165 // Check bool.
4166 _Bool success = false;
4167
4168 // Check restrict.
4169 if (test_restrict ("String literal") == 0)
4170 success = true;
4171 char *restrict newvar = "Another string";
4172
4173 // Check varargs.
4174 test_varargs ("s, d' f .", "string", 65, 34.234);
4175 test_varargs_macros ();
4176
4177 // Check flexible array members.
4178 struct incomplete_array *ia =
4179 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4180 ia->datasize = 10;
4181 for (int i = 0; i < ia->datasize; ++i)
4182 ia->data[i] = i * 1.234;
4183
4184 // Check named initializers.
4185 struct named_init ni = {
4186 .number = 34,
4187 .name = L"Test wide string",
4188 .average = 543.34343,
4189 };
4190
4191 ni.number = 58;
4192
4193 int dynamic_array[ni.number];
4194 dynamic_array[ni.number - 1] = 543;
4195
4196 // work around unused variable warnings
4197 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4198 || dynamic_array[ni.number - 1] != 543);
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4205 do
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c99=$ac_arg
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c99" != "xno" && break
4212 done
4213 rm -f conftest.$ac_ext
4214 CC=$ac_save_CC
4215
4216 fi
4217 # AC_CACHE_VAL
4218 case "x$ac_cv_prog_cc_c99" in
4219 x)
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4222 xno)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4225 *)
4226 CC="$CC $ac_cv_prog_cc_c99"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4228 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4229 esac
4230 if test "x$ac_cv_prog_cc_c99" != xno; then :
4231
4232 fi
4233
4234
4235 if test "$ac_cv_prog_cc_c99" = "no"; then :
4236 as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4237 fi
4238 for ac_prog in 'bison -y' byacc
4239 do
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if test "${ac_cv_prog_YACC+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$YACC"; then
4248 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_YACC="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261 done
4262 done
4263 IFS=$as_save_IFS
4264
4265 fi
4266 fi
4267 YACC=$ac_cv_prog_YACC
4268 if test -n "$YACC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4270 $as_echo "$YACC" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4274 fi
4275
4276
4277 test -n "$YACC" && break
4278 done
4279 test -n "$YACC" || YACC="yacc"
4280
4281
4282 for ac_prog in flex lex
4283 do
4284 # Extract the first word of "$ac_prog", so it can be a program name with args.
4285 set dummy $ac_prog; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if test "${ac_cv_prog_LEX+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$LEX"; then
4292 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_LEX="$ac_prog"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 fi
4310 fi
4311 LEX=$ac_cv_prog_LEX
4312 if test -n "$LEX"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4314 $as_echo "$LEX" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4318 fi
4319
4320
4321 test -n "$LEX" && break
4322 done
4323 test -n "$LEX" || LEX=":"
4324
4325 if test "x$LEX" != "x:"; then
4326 cat >conftest.l <<_ACEOF
4327 %%
4328 a { ECHO; }
4329 b { REJECT; }
4330 c { yymore (); }
4331 d { yyless (1); }
4332 e { yyless (input () != 0); }
4333 f { unput (yytext[0]); }
4334 . { BEGIN INITIAL; }
4335 %%
4336 #ifdef YYTEXT_POINTER
4337 extern char *yytext;
4338 #endif
4339 int
4340 main (void)
4341 {
4342 return ! yylex () + ! yywrap ();
4343 }
4344 _ACEOF
4345 { { ac_try="$LEX conftest.l"
4346 case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349 esac
4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351 $as_echo "$ac_try_echo"; } >&5
4352 (eval "$LEX conftest.l") 2>&5
4353 ac_status=$?
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4357 $as_echo_n "checking lex output file root... " >&6; }
4358 if test "${ac_cv_prog_lex_root+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361
4362 if test -f lex.yy.c; then
4363 ac_cv_prog_lex_root=lex.yy
4364 elif test -f lexyy.c; then
4365 ac_cv_prog_lex_root=lexyy
4366 else
4367 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4368 fi
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4371 $as_echo "$ac_cv_prog_lex_root" >&6; }
4372 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4373
4374 if test -z "${LEXLIB+set}"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4376 $as_echo_n "checking lex library... " >&6; }
4377 if test "${ac_cv_lib_lex+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380
4381 ac_save_LIBS=$LIBS
4382 ac_cv_lib_lex='none needed'
4383 for ac_lib in '' -lfl -ll; do
4384 LIBS="$ac_lib $ac_save_LIBS"
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 `cat $LEX_OUTPUT_ROOT.c`
4388 _ACEOF
4389 if ac_fn_c_try_link "$LINENO"; then :
4390 ac_cv_lib_lex=$ac_lib
4391 fi
4392 rm -f core conftest.err conftest.$ac_objext \
4393 conftest$ac_exeext conftest.$ac_ext
4394 test "$ac_cv_lib_lex" != 'none needed' && break
4395 done
4396 LIBS=$ac_save_LIBS
4397
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4400 $as_echo "$ac_cv_lib_lex" >&6; }
4401 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4402 fi
4403
4404
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4406 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4407 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 # POSIX says lex can declare yytext either as a pointer or an array; the
4411 # default is implementation-dependent. Figure out which it is, since
4412 # not all implementations provide the %pointer and %array declarations.
4413 ac_cv_prog_lex_yytext_pointer=no
4414 ac_save_LIBS=$LIBS
4415 LIBS="$LEXLIB $ac_save_LIBS"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 #define YYTEXT_POINTER 1
4419 `cat $LEX_OUTPUT_ROOT.c`
4420 _ACEOF
4421 if ac_fn_c_try_link "$LINENO"; then :
4422 ac_cv_prog_lex_yytext_pointer=yes
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext \
4425 conftest$ac_exeext conftest.$ac_ext
4426 LIBS=$ac_save_LIBS
4427
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4430 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4431 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4432
4433 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4434
4435 fi
4436 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4437
4438 fi
4439 if test "$LEX" = :; then
4440 LEX=${am_missing_run}flex
4441 fi
4442
4443
4444 #ltdl stuff
4445 case `pwd` in
4446 *\ * | *\ *)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4448 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4449 esac
4450
4451
4452
4453 macro_version='2.2.6'
4454 macro_revision='1.3012'
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468 ltmain="$ac_aux_dir/ltmain.sh"
4469
4470 # Make sure we can run config.sub.
4471 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4473
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475 $as_echo_n "checking build system type... " >&6; }
4476 if test "${ac_cv_build+set}" = set; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 ac_build_alias=$build_alias
4480 test "x$ac_build_alias" = x &&
4481 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482 test "x$ac_build_alias" = x &&
4483 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4484 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489 $as_echo "$ac_cv_build" >&6; }
4490 case $ac_cv_build in
4491 *-*-*) ;;
4492 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4493 esac
4494 build=$ac_cv_build
4495 ac_save_IFS=$IFS; IFS='-'
4496 set x $ac_cv_build
4497 shift
4498 build_cpu=$1
4499 build_vendor=$2
4500 shift; shift
4501 # Remember, the first character of IFS is used to create $*,
4502 # except with old shells:
4503 build_os=$*
4504 IFS=$ac_save_IFS
4505 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509 $as_echo_n "checking host system type... " >&6; }
4510 if test "${ac_cv_host+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test "x$host_alias" = x; then
4514 ac_cv_host=$ac_cv_build
4515 else
4516 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4518 fi
4519
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522 $as_echo "$ac_cv_host" >&6; }
4523 case $ac_cv_host in
4524 *-*-*) ;;
4525 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4526 esac
4527 host=$ac_cv_host
4528 ac_save_IFS=$IFS; IFS='-'
4529 set x $ac_cv_host
4530 shift
4531 host_cpu=$1
4532 host_vendor=$2
4533 shift; shift
4534 # Remember, the first character of IFS is used to create $*,
4535 # except with old shells:
4536 host_os=$*
4537 IFS=$ac_save_IFS
4538 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539
4540
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 if test "${ac_cv_path_SED+set}" = set; then :
4544 $as_echo_n "(cached) " >&6
4545 else
4546 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547 for ac_i in 1 2 3 4 5 6 7; do
4548 ac_script="$ac_script$as_nl$ac_script"
4549 done
4550 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551 { ac_script=; unset ac_script;}
4552 if test -z "$SED"; then
4553 ac_path_SED_found=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_prog in sed gsed; do
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564 # Check for GNU ac_path_SED and select it if it is found.
4565 # Check for GNU $ac_path_SED
4566 case `"$ac_path_SED" --version 2>&1` in
4567 *GNU*)
4568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569 *)
4570 ac_count=0
4571 $as_echo_n 0123456789 >"conftest.in"
4572 while :
4573 do
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo '' >> "conftest.nl"
4578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 if test $ac_count -gt ${ac_path_SED_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_SED="$ac_path_SED"
4584 ac_path_SED_max=$ac_count
4585 fi
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4588 done
4589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592 $ac_path_SED_found && break 3
4593 done
4594 done
4595 done
4596 IFS=$as_save_IFS
4597 if test -z "$ac_cv_path_SED"; then
4598 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599 fi
4600 else
4601 ac_cv_path_SED=$SED
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 $as_echo "$ac_cv_path_SED" >&6; }
4607 SED="$ac_cv_path_SED"
4608 rm -f conftest.sed
4609
4610 test -z "$SED" && SED=sed
4611 Xsed="$SED -e 1s/^X//"
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625 if test "${ac_cv_path_GREP+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 if test -z "$GREP"; then
4629 ac_path_GREP_found=false
4630 # Loop through the user's path and test for each of PROGNAME-LIST
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_prog in grep ggrep; do
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4640 # Check for GNU ac_path_GREP and select it if it is found.
4641 # Check for GNU $ac_path_GREP
4642 case `"$ac_path_GREP" --version 2>&1` in
4643 *GNU*)
4644 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645 *)
4646 ac_count=0
4647 $as_echo_n 0123456789 >"conftest.in"
4648 while :
4649 do
4650 cat "conftest.in" "conftest.in" >"conftest.tmp"
4651 mv "conftest.tmp" "conftest.in"
4652 cp "conftest.in" "conftest.nl"
4653 $as_echo 'GREP' >> "conftest.nl"
4654 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 as_fn_arith $ac_count + 1 && ac_count=$as_val
4657 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658 # Best one so far, save it but keep looking for a better one
4659 ac_cv_path_GREP="$ac_path_GREP"
4660 ac_path_GREP_max=$ac_count
4661 fi
4662 # 10*(2^10) chars as input seems more than enough
4663 test $ac_count -gt 10 && break
4664 done
4665 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666 esac
4667
4668 $ac_path_GREP_found && break 3
4669 done
4670 done
4671 done
4672 IFS=$as_save_IFS
4673 if test -z "$ac_cv_path_GREP"; then
4674 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 fi
4676 else
4677 ac_cv_path_GREP=$GREP
4678 fi
4679
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682 $as_echo "$ac_cv_path_GREP" >&6; }
4683 GREP="$ac_cv_path_GREP"
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687 $as_echo_n "checking for egrep... " >&6; }
4688 if test "${ac_cv_path_EGREP+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692 then ac_cv_path_EGREP="$GREP -E"
4693 else
4694 if test -z "$EGREP"; then
4695 ac_path_EGREP_found=false
4696 # Loop through the user's path and test for each of PROGNAME-LIST
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_prog in egrep; do
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4706 # Check for GNU ac_path_EGREP and select it if it is found.
4707 # Check for GNU $ac_path_EGREP
4708 case `"$ac_path_EGREP" --version 2>&1` in
4709 *GNU*)
4710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711 *)
4712 ac_count=0
4713 $as_echo_n 0123456789 >"conftest.in"
4714 while :
4715 do
4716 cat "conftest.in" "conftest.in" >"conftest.tmp"
4717 mv "conftest.tmp" "conftest.in"
4718 cp "conftest.in" "conftest.nl"
4719 $as_echo 'EGREP' >> "conftest.nl"
4720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724 # Best one so far, save it but keep looking for a better one
4725 ac_cv_path_EGREP="$ac_path_EGREP"
4726 ac_path_EGREP_max=$ac_count
4727 fi
4728 # 10*(2^10) chars as input seems more than enough
4729 test $ac_count -gt 10 && break
4730 done
4731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732 esac
4733
4734 $ac_path_EGREP_found && break 3
4735 done
4736 done
4737 done
4738 IFS=$as_save_IFS
4739 if test -z "$ac_cv_path_EGREP"; then
4740 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741 fi
4742 else
4743 ac_cv_path_EGREP=$EGREP
4744 fi
4745
4746 fi
4747 fi
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749 $as_echo "$ac_cv_path_EGREP" >&6; }
4750 EGREP="$ac_cv_path_EGREP"
4751
4752
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4754 $as_echo_n "checking for fgrep... " >&6; }
4755 if test "${ac_cv_path_FGREP+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4759 then ac_cv_path_FGREP="$GREP -F"
4760 else
4761 if test -z "$FGREP"; then
4762 ac_path_FGREP_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766 do
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in fgrep; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4772 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4773 # Check for GNU ac_path_FGREP and select it if it is found.
4774 # Check for GNU $ac_path_FGREP
4775 case `"$ac_path_FGREP" --version 2>&1` in
4776 *GNU*)
4777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4778 *)
4779 ac_count=0
4780 $as_echo_n 0123456789 >"conftest.in"
4781 while :
4782 do
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo 'FGREP' >> "conftest.nl"
4787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_FGREP="$ac_path_FGREP"
4793 ac_path_FGREP_max=$ac_count
4794 fi
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4797 done
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 esac
4800
4801 $ac_path_FGREP_found && break 3
4802 done
4803 done
4804 done
4805 IFS=$as_save_IFS
4806 if test -z "$ac_cv_path_FGREP"; then
4807 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 fi
4809 else
4810 ac_cv_path_FGREP=$FGREP
4811 fi
4812
4813 fi
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4816 $as_echo "$ac_cv_path_FGREP" >&6; }
4817 FGREP="$ac_cv_path_FGREP"
4818
4819
4820 test -z "$GREP" && GREP=grep
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 # Check whether --with-gnu-ld was given.
4841 if test "${with_gnu_ld+set}" = set; then :
4842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4843 else
4844 with_gnu_ld=no
4845 fi
4846
4847 ac_prog=ld
4848 if test "$GCC" = yes; then
4849 # Check if gcc -print-prog-name=ld gives a path.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4851 $as_echo_n "checking for ld used by $CC... " >&6; }
4852 case $host in
4853 *-*-mingw*)
4854 # gcc leaves a trailing carriage return which upsets mingw
4855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4856 *)
4857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4858 esac
4859 case $ac_prog in
4860 # Accept absolute paths.
4861 [\\/]* | ?:[\\/]*)
4862 re_direlt='/[^/][^/]*/\.\./'
4863 # Canonicalize the pathname of ld
4864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4867 done
4868 test -z "$LD" && LD="$ac_prog"
4869 ;;
4870 "")
4871 # If it fails, then pretend we aren't using GCC.
4872 ac_prog=ld
4873 ;;
4874 *)
4875 # If it is relative, then search for the first ld in PATH.
4876 with_gnu_ld=unknown
4877 ;;
4878 esac
4879 elif test "$with_gnu_ld" = yes; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4881 $as_echo_n "checking for GNU ld... " >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4884 $as_echo_n "checking for non-GNU ld... " >&6; }
4885 fi
4886 if test "${lt_cv_path_LD+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 if test -z "$LD"; then
4890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4891 for ac_dir in $PATH; do
4892 IFS="$lt_save_ifs"
4893 test -z "$ac_dir" && ac_dir=.
4894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4895 lt_cv_path_LD="$ac_dir/$ac_prog"
4896 # Check to see if the program is GNU ld. I'd rather use --version,
4897 # but apparently some variants of GNU ld only accept -v.
4898 # Break only if it was the GNU/non-GNU ld that we prefer.
4899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4900 *GNU* | *'with BFD'*)
4901 test "$with_gnu_ld" != no && break
4902 ;;
4903 *)
4904 test "$with_gnu_ld" != yes && break
4905 ;;
4906 esac
4907 fi
4908 done
4909 IFS="$lt_save_ifs"
4910 else
4911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4912 fi
4913 fi
4914
4915 LD="$lt_cv_path_LD"
4916 if test -n "$LD"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4918 $as_echo "$LD" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4922 fi
4923 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4926 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4930 case `$LD -v 2>&1 </dev/null` in
4931 *GNU* | *'with BFD'*)
4932 lt_cv_prog_gnu_ld=yes
4933 ;;
4934 *)
4935 lt_cv_prog_gnu_ld=no
4936 ;;
4937 esac
4938 fi
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4941 with_gnu_ld=$lt_cv_prog_gnu_ld
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4953 if test "${lt_cv_path_NM+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 if test -n "$NM"; then
4957 # Let the user override the test.
4958 lt_cv_path_NM="$NM"
4959 else
4960 lt_nm_to_check="${ac_tool_prefix}nm"
4961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4962 lt_nm_to_check="$lt_nm_to_check nm"
4963 fi
4964 for lt_tmp_nm in $lt_nm_to_check; do
4965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4967 IFS="$lt_save_ifs"
4968 test -z "$ac_dir" && ac_dir=.
4969 tmp_nm="$ac_dir/$lt_tmp_nm"
4970 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4971 # Check to see if the nm accepts a BSD-compat flag.
4972 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4973 # nm: unknown option "B" ignored
4974 # Tru64's nm complains that /dev/null is an invalid object file
4975 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4976 */dev/null* | *'Invalid file or object type'*)
4977 lt_cv_path_NM="$tmp_nm -B"
4978 break
4979 ;;
4980 *)
4981 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4982 */dev/null*)
4983 lt_cv_path_NM="$tmp_nm -p"
4984 break
4985 ;;
4986 *)
4987 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4988 continue # so that we can try to find one that supports BSD flags
4989 ;;
4990 esac
4991 ;;
4992 esac
4993 fi
4994 done
4995 IFS="$lt_save_ifs"
4996 done
4997 : ${lt_cv_path_NM=no}
4998 fi
4999 fi
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5001 $as_echo "$lt_cv_path_NM" >&6; }
5002 if test "$lt_cv_path_NM" != "no"; then
5003 NM="$lt_cv_path_NM"
5004 else
5005 # Didn't find any BSD compatible name lister, look for dumpbin.
5006 if test -n "$ac_tool_prefix"; then
5007 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5008 do
5009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 if test -n "$DUMPBIN"; then
5017 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5029 fi
5030 done
5031 done
5032 IFS=$as_save_IFS
5033
5034 fi
5035 fi
5036 DUMPBIN=$ac_cv_prog_DUMPBIN
5037 if test -n "$DUMPBIN"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5039 $as_echo "$DUMPBIN" >&6; }
5040 else
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5043 fi
5044
5045
5046 test -n "$DUMPBIN" && break
5047 done
5048 fi
5049 if test -z "$DUMPBIN"; then
5050 ac_ct_DUMPBIN=$DUMPBIN
5051 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5052 do
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5058 $as_echo_n "(cached) " >&6
5059 else
5060 if test -n "$ac_ct_DUMPBIN"; then
5061 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5062 else
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 for as_dir in $PATH
5065 do
5066 IFS=$as_save_IFS
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 break 2
5073 fi
5074 done
5075 done
5076 IFS=$as_save_IFS
5077
5078 fi
5079 fi
5080 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5081 if test -n "$ac_ct_DUMPBIN"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5083 $as_echo "$ac_ct_DUMPBIN" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5087 fi
5088
5089
5090 test -n "$ac_ct_DUMPBIN" && break
5091 done
5092
5093 if test "x$ac_ct_DUMPBIN" = x; then
5094 DUMPBIN=":"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5101 esac
5102 DUMPBIN=$ac_ct_DUMPBIN
5103 fi
5104 fi
5105
5106
5107 if test "$DUMPBIN" != ":"; then
5108 NM="$DUMPBIN"
5109 fi
5110 fi
5111 test -z "$NM" && NM=nm
5112
5113
5114
5115
5116
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5119 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5120 if test "${lt_cv_nm_interface+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 lt_cv_nm_interface="BSD nm"
5124 echo "int some_variable = 0;" > conftest.$ac_ext
5125 (eval echo "\"\$as_me:5125: $ac_compile\"" >&5)
5126 (eval "$ac_compile" 2>conftest.err)
5127 cat conftest.err >&5
5128 (eval echo "\"\$as_me:5128: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5129 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5130 cat conftest.err >&5
5131 (eval echo "\"\$as_me:5131: output\"" >&5)
5132 cat conftest.out >&5
5133 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5134 lt_cv_nm_interface="MS dumpbin"
5135 fi
5136 rm -f conftest*
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5139 $as_echo "$lt_cv_nm_interface" >&6; }
5140
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5142 $as_echo_n "checking whether ln -s works... " >&6; }
5143 LN_S=$as_ln_s
5144 if test "$LN_S" = "ln -s"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 $as_echo "yes" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5149 $as_echo "no, using $LN_S" >&6; }
5150 fi
5151
5152 # find the maximum length of command line arguments
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5154 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5155 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 i=0
5159 teststring="ABCD"
5160
5161 case $build_os in
5162 msdosdjgpp*)
5163 # On DJGPP, this test can blow up pretty badly due to problems in libc
5164 # (any single argument exceeding 2000 bytes causes a buffer overrun
5165 # during glob expansion). Even if it were fixed, the result of this
5166 # check would be larger than it should be.
5167 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5168 ;;
5169
5170 gnu*)
5171 # Under GNU Hurd, this test is not required because there is
5172 # no limit to the length of command line arguments.
5173 # Libtool will interpret -1 as no limit whatsoever
5174 lt_cv_sys_max_cmd_len=-1;
5175 ;;
5176
5177 cygwin* | mingw* | cegcc*)
5178 # On Win9x/ME, this test blows up -- it succeeds, but takes
5179 # about 5 minutes as the teststring grows exponentially.
5180 # Worse, since 9x/ME are not pre-emptively multitasking,
5181 # you end up with a "frozen" computer, even though with patience
5182 # the test eventually succeeds (with a max line length of 256k).
5183 # Instead, let's just punt: use the minimum linelength reported by
5184 # all of the supported platforms: 8192 (on NT/2K/XP).
5185 lt_cv_sys_max_cmd_len=8192;
5186 ;;
5187
5188 amigaos*)
5189 # On AmigaOS with pdksh, this test takes hours, literally.
5190 # So we just punt and use a minimum line length of 8192.
5191 lt_cv_sys_max_cmd_len=8192;
5192 ;;
5193
5194 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5195 # This has been around since 386BSD, at least. Likely further.
5196 if test -x /sbin/sysctl; then
5197 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5198 elif test -x /usr/sbin/sysctl; then
5199 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5200 else
5201 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5202 fi
5203 # And add a safety zone
5204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5205 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5206 ;;
5207
5208 interix*)
5209 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5210 lt_cv_sys_max_cmd_len=196608
5211 ;;
5212
5213 osf*)
5214 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5215 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5216 # nice to cause kernel panics so lets avoid the loop below.
5217 # First set a reasonable default.
5218 lt_cv_sys_max_cmd_len=16384
5219 #
5220 if test -x /sbin/sysconfig; then
5221 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5222 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5223 esac
5224 fi
5225 ;;
5226 sco3.2v5*)
5227 lt_cv_sys_max_cmd_len=102400
5228 ;;
5229 sysv5* | sco5v6* | sysv4.2uw2*)
5230 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5231 if test -n "$kargmax"; then
5232 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5233 else
5234 lt_cv_sys_max_cmd_len=32768
5235 fi
5236 ;;
5237 *)
5238 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5239 if test -n "$lt_cv_sys_max_cmd_len"; then
5240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5241 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5242 else
5243 # Make teststring a little bigger before we do anything with it.
5244 # a 1K string should be a reasonable start.
5245 for i in 1 2 3 4 5 6 7 8 ; do
5246 teststring=$teststring$teststring
5247 done
5248 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5249 # If test is not a shell built-in, we'll probably end up computing a
5250 # maximum length that is only half of the actual maximum length, but
5251 # we can't tell.
5252 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5253 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5254 test $i != 17 # 1/2 MB should be enough
5255 do
5256 i=`expr $i + 1`
5257 teststring=$teststring$teststring
5258 done
5259 # Only check the string length outside the loop.
5260 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5261 teststring=
5262 # Add a significant safety factor because C++ compilers can tack on
5263 # massive amounts of additional arguments before passing them to the
5264 # linker. It appears as though 1/2 is a usable value.
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5266 fi
5267 ;;
5268 esac
5269
5270 fi
5271
5272 if test -n $lt_cv_sys_max_cmd_len ; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5274 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5277 $as_echo "none" >&6; }
5278 fi
5279 max_cmd_len=$lt_cv_sys_max_cmd_len
5280
5281
5282
5283
5284
5285
5286 : ${CP="cp -f"}
5287 : ${MV="mv -f"}
5288 : ${RM="rm -f"}
5289
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5291 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5292 # Try some XSI features
5293 xsi_shell=no
5294 ( _lt_dummy="a/b/c"
5295 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5296 = c,a/b,, \
5297 && eval 'test $(( 1 + 1 )) -eq 2 \
5298 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5299 && xsi_shell=yes
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5301 $as_echo "$xsi_shell" >&6; }
5302
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5305 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5306 lt_shell_append=no
5307 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5308 >/dev/null 2>&1 \
5309 && lt_shell_append=yes
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5311 $as_echo "$lt_shell_append" >&6; }
5312
5313
5314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5315 lt_unset=unset
5316 else
5317 lt_unset=false
5318 fi
5319
5320
5321
5322
5323
5324 # test EBCDIC or ASCII
5325 case `echo X|tr X '\101'` in
5326 A) # ASCII based system
5327 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5328 lt_SP2NL='tr \040 \012'
5329 lt_NL2SP='tr \015\012 \040\040'
5330 ;;
5331 *) # EBCDIC based system
5332 lt_SP2NL='tr \100 \n'
5333 lt_NL2SP='tr \r\n \100\100'
5334 ;;
5335 esac
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5346 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5347 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 lt_cv_ld_reload_flag='-r'
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5353 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5354 reload_flag=$lt_cv_ld_reload_flag
5355 case $reload_flag in
5356 "" | " "*) ;;
5357 *) reload_flag=" $reload_flag" ;;
5358 esac
5359 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5360 case $host_os in
5361 darwin*)
5362 if test "$GCC" = yes; then
5363 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5364 else
5365 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366 fi
5367 ;;
5368 esac
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$OBJDUMP"; then
5387 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5399 fi
5400 done
5401 done
5402 IFS=$as_save_IFS
5403
5404 fi
5405 fi
5406 OBJDUMP=$ac_cv_prog_OBJDUMP
5407 if test -n "$OBJDUMP"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5409 $as_echo "$OBJDUMP" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5413 fi
5414
5415
5416 fi
5417 if test -z "$ac_cv_prog_OBJDUMP"; then
5418 ac_ct_OBJDUMP=$OBJDUMP
5419 # Extract the first word of "objdump", so it can be a program name with args.
5420 set dummy objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$ac_ct_OBJDUMP"; then
5427 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5447 if test -n "$ac_ct_OBJDUMP"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5449 $as_echo "$ac_ct_OBJDUMP" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455 if test "x$ac_ct_OBJDUMP" = x; then
5456 OBJDUMP="false"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459 yes:)
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5463 esac
5464 OBJDUMP=$ac_ct_OBJDUMP
5465 fi
5466 else
5467 OBJDUMP="$ac_cv_prog_OBJDUMP"
5468 fi
5469
5470 test -z "$OBJDUMP" && OBJDUMP=objdump
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5481 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5482 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5483 $as_echo_n "(cached) " >&6
5484 else
5485 lt_cv_file_magic_cmd='$MAGIC_CMD'
5486 lt_cv_file_magic_test_file=
5487 lt_cv_deplibs_check_method='unknown'
5488 # Need to set the preceding variable on all platforms that support
5489 # interlibrary dependencies.
5490 # 'none' -- dependencies not supported.
5491 # `unknown' -- same as none, but documents that we really don't know.
5492 # 'pass_all' -- all dependencies passed with no checks.
5493 # 'test_compile' -- check by making test program.
5494 # 'file_magic [[regex]]' -- check by looking for files in library path
5495 # which responds to the $file_magic_cmd with a given extended regex.
5496 # If you have `file' or equivalent on your system and you're not sure
5497 # whether `pass_all' will *always* work, you probably want this one.
5498
5499 case $host_os in
5500 aix[4-9]*)
5501 lt_cv_deplibs_check_method=pass_all
5502 ;;
5503
5504 beos*)
5505 lt_cv_deplibs_check_method=pass_all
5506 ;;
5507
5508 bsdi[45]*)
5509 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5510 lt_cv_file_magic_cmd='/usr/bin/file -L'
5511 lt_cv_file_magic_test_file=/shlib/libc.so
5512 ;;
5513
5514 cygwin*)
5515 # func_win32_libid is a shell function defined in ltmain.sh
5516 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5517 lt_cv_file_magic_cmd='func_win32_libid'
5518 ;;
5519
5520 mingw* | pw32*)
5521 # Base MSYS/MinGW do not provide the 'file' command needed by
5522 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5523 # unless we find 'file', for example because we are cross-compiling.
5524 if ( file / ) >/dev/null 2>&1; then
5525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526 lt_cv_file_magic_cmd='func_win32_libid'
5527 else
5528 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5529 lt_cv_file_magic_cmd='$OBJDUMP -f'
5530 fi
5531 ;;
5532
5533 cegcc)
5534 # use the weaker test based on 'objdump'. See mingw*.
5535 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5536 lt_cv_file_magic_cmd='$OBJDUMP -f'
5537 ;;
5538
5539 darwin* | rhapsody*)
5540 lt_cv_deplibs_check_method=pass_all
5541 ;;
5542
5543 freebsd* | dragonfly*)
5544 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5545 case $host_cpu in
5546 i*86 )
5547 # Not sure whether the presence of OpenBSD here was a mistake.
5548 # Let's accept both of them until this is cleared up.
5549 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5550 lt_cv_file_magic_cmd=/usr/bin/file
5551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5552 ;;
5553 esac
5554 else
5555 lt_cv_deplibs_check_method=pass_all
5556 fi
5557 ;;
5558
5559 gnu*)
5560 lt_cv_deplibs_check_method=pass_all
5561 ;;
5562
5563 hpux10.20* | hpux11*)
5564 lt_cv_file_magic_cmd=/usr/bin/file
5565 case $host_cpu in
5566 ia64*)
5567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5569 ;;
5570 hppa*64*)
5571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5572 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5573 ;;
5574 *)
5575 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5576 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577 ;;
5578 esac
5579 ;;
5580
5581 interix[3-9]*)
5582 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5584 ;;
5585
5586 irix5* | irix6* | nonstopux*)
5587 case $LD in
5588 *-32|*"-32 ") libmagic=32-bit;;
5589 *-n32|*"-n32 ") libmagic=N32;;
5590 *-64|*"-64 ") libmagic=64-bit;;
5591 *) libmagic=never-match;;
5592 esac
5593 lt_cv_deplibs_check_method=pass_all
5594 ;;
5595
5596 # This must be Linux ELF.
5597 linux* | k*bsd*-gnu)
5598 lt_cv_deplibs_check_method=pass_all
5599 ;;
5600
5601 netbsd*)
5602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5603 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604 else
5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606 fi
5607 ;;
5608
5609 newos6*)
5610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611 lt_cv_file_magic_cmd=/usr/bin/file
5612 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613 ;;
5614
5615 *nto* | *qnx*)
5616 lt_cv_deplibs_check_method=pass_all
5617 ;;
5618
5619 openbsd*)
5620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622 else
5623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624 fi
5625 ;;
5626
5627 osf3* | osf4* | osf5*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631 rdos*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 solaris*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5640 lt_cv_deplibs_check_method=pass_all
5641 ;;
5642
5643 sysv4 | sysv4.3*)
5644 case $host_vendor in
5645 motorola)
5646 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]'
5647 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5648 ;;
5649 ncr)
5650 lt_cv_deplibs_check_method=pass_all
5651 ;;
5652 sequent)
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5655 ;;
5656 sni)
5657 lt_cv_file_magic_cmd='/bin/file'
5658 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659 lt_cv_file_magic_test_file=/lib/libc.so
5660 ;;
5661 siemens)
5662 lt_cv_deplibs_check_method=pass_all
5663 ;;
5664 pc)
5665 lt_cv_deplibs_check_method=pass_all
5666 ;;
5667 esac
5668 ;;
5669
5670 tpf*)
5671 lt_cv_deplibs_check_method=pass_all
5672 ;;
5673 esac
5674
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5678 file_magic_cmd=$lt_cv_file_magic_cmd
5679 deplibs_check_method=$lt_cv_deplibs_check_method
5680 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}ar; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_prog_AR+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$AR"; then
5702 ac_cv_prog_AR="$AR" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5706 do
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_AR="${ac_tool_prefix}ar"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5714 fi
5715 done
5716 done
5717 IFS=$as_save_IFS
5718
5719 fi
5720 fi
5721 AR=$ac_cv_prog_AR
5722 if test -n "$AR"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5724 $as_echo "$AR" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5728 fi
5729
5730
5731 fi
5732 if test -z "$ac_cv_prog_AR"; then
5733 ac_ct_AR=$AR
5734 # Extract the first word of "ar", so it can be a program name with args.
5735 set dummy ar; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$ac_ct_AR"; then
5742 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5746 do
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751 ac_cv_prog_ac_ct_AR="ar"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 fi
5760 fi
5761 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5762 if test -n "$ac_ct_AR"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5764 $as_echo "$ac_ct_AR" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770 if test "x$ac_ct_AR" = x; then
5771 AR="false"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 AR=$ac_ct_AR
5780 fi
5781 else
5782 AR="$ac_cv_prog_AR"
5783 fi
5784
5785 test -z "$AR" && AR=ar
5786 test -z "$AR_FLAGS" && AR_FLAGS=cru
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 if test -n "$ac_tool_prefix"; then
5799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5800 set dummy ${ac_tool_prefix}strip; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_STRIP+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5805 else
5806 if test -n "$STRIP"; then
5807 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 STRIP=$ac_cv_prog_STRIP
5827 if test -n "$STRIP"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5829 $as_echo "$STRIP" >&6; }
5830 else
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835
5836 fi
5837 if test -z "$ac_cv_prog_STRIP"; then
5838 ac_ct_STRIP=$STRIP
5839 # Extract the first word of "strip", so it can be a program name with args.
5840 set dummy strip; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 if test -n "$ac_ct_STRIP"; then
5847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5848 else
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852 IFS=$as_save_IFS
5853 test -z "$as_dir" && as_dir=.
5854 for ac_exec_ext in '' $ac_executable_extensions; do
5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856 ac_cv_prog_ac_ct_STRIP="strip"
5857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 break 2
5859 fi
5860 done
5861 done
5862 IFS=$as_save_IFS
5863
5864 fi
5865 fi
5866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5867 if test -n "$ac_ct_STRIP"; then
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5869 $as_echo "$ac_ct_STRIP" >&6; }
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874
5875 if test "x$ac_ct_STRIP" = x; then
5876 STRIP=":"
5877 else
5878 case $cross_compiling:$ac_tool_warned in
5879 yes:)
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882 ac_tool_warned=yes ;;
5883 esac
5884 STRIP=$ac_ct_STRIP
5885 fi
5886 else
5887 STRIP="$ac_cv_prog_STRIP"
5888 fi
5889
5890 test -z "$STRIP" && STRIP=:
5891
5892
5893
5894
5895
5896
5897 if test -n "$ac_tool_prefix"; then
5898 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5899 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 if test -n "$RANLIB"; then
5906 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911 IFS=$as_save_IFS
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 break 2
5918 fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 RANLIB=$ac_cv_prog_RANLIB
5926 if test -n "$RANLIB"; then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5928 $as_echo "$RANLIB" >&6; }
5929 else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934
5935 fi
5936 if test -z "$ac_cv_prog_RANLIB"; then
5937 ac_ct_RANLIB=$RANLIB
5938 # Extract the first word of "ranlib", so it can be a program name with args.
5939 set dummy ranlib; ac_word=$2
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 $as_echo_n "checking for $ac_word... " >&6; }
5942 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 if test -n "$ac_ct_RANLIB"; then
5946 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5947 else
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951 IFS=$as_save_IFS
5952 test -z "$as_dir" && as_dir=.
5953 for ac_exec_ext in '' $ac_executable_extensions; do
5954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955 ac_cv_prog_ac_ct_RANLIB="ranlib"
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 break 2
5958 fi
5959 done
5960 done
5961 IFS=$as_save_IFS
5962
5963 fi
5964 fi
5965 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5966 if test -n "$ac_ct_RANLIB"; then
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5968 $as_echo "$ac_ct_RANLIB" >&6; }
5969 else
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 $as_echo "no" >&6; }
5972 fi
5973
5974 if test "x$ac_ct_RANLIB" = x; then
5975 RANLIB=":"
5976 else
5977 case $cross_compiling:$ac_tool_warned in
5978 yes:)
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983 RANLIB=$ac_ct_RANLIB
5984 fi
5985 else
5986 RANLIB="$ac_cv_prog_RANLIB"
5987 fi
5988
5989 test -z "$RANLIB" && RANLIB=:
5990
5991
5992
5993
5994
5995
5996 # Determine commands to create old-style static archives.
5997 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5998 old_postinstall_cmds='chmod 644 $oldlib'
5999 old_postuninstall_cmds=
6000
6001 if test -n "$RANLIB"; then
6002 case $host_os in
6003 openbsd*)
6004 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6005 ;;
6006 *)
6007 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6008 ;;
6009 esac
6010 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6011 fi
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046 # If no C compiler was specified, use CC.
6047 LTCC=${LTCC-"$CC"}
6048
6049 # If no C compiler flags were specified, use CFLAGS.
6050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6051
6052 # Allow CC to be a program name with arguments.
6053 compiler=$CC
6054
6055
6056 # Check for command to grab the raw symbol name followed by C symbol from nm.
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6058 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6059 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062
6063 # These are sane defaults that work on at least a few old systems.
6064 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6065
6066 # Character class describing NM global symbol codes.
6067 symcode='[BCDEGRST]'
6068
6069 # Regexp to match symbols that can be accessed directly from C.
6070 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6071
6072 # Define system-specific variables.
6073 case $host_os in
6074 aix*)
6075 symcode='[BCDT]'
6076 ;;
6077 cygwin* | mingw* | pw32* | cegcc*)
6078 symcode='[ABCDGISTW]'
6079 ;;
6080 hpux*)
6081 if test "$host_cpu" = ia64; then
6082 symcode='[ABCDEGRST]'
6083 fi
6084 ;;
6085 irix* | nonstopux*)
6086 symcode='[BCDEGRST]'
6087 ;;
6088 osf*)
6089 symcode='[BCDEGQRST]'
6090 ;;
6091 solaris*)
6092 symcode='[BDRT]'
6093 ;;
6094 sco3.2v5*)
6095 symcode='[DT]'
6096 ;;
6097 sysv4.2uw2*)
6098 symcode='[DT]'
6099 ;;
6100 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6101 symcode='[ABDT]'
6102 ;;
6103 sysv4)
6104 symcode='[DFNSTU]'
6105 ;;
6106 esac
6107
6108 # If we're using GNU nm, then use its standard symbol codes.
6109 case `$NM -V 2>&1` in
6110 *GNU* | *'with BFD'*)
6111 symcode='[ABCDGIRSTW]' ;;
6112 esac
6113
6114 # Transform an extracted symbol line into a proper C declaration.
6115 # Some systems (esp. on ia64) link data and code symbols differently,
6116 # so use this general approach.
6117 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6118
6119 # Transform an extracted symbol line into symbol name and symbol address
6120 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6121 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'"
6122
6123 # Handle CRLF in mingw tool chain
6124 opt_cr=
6125 case $build_os in
6126 mingw*)
6127 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6128 ;;
6129 esac
6130
6131 # Try without a prefix underscore, then with it.
6132 for ac_symprfx in "" "_"; do
6133
6134 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6135 symxfrm="\\1 $ac_symprfx\\2 \\2"
6136
6137 # Write the raw and C identifiers.
6138 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139 # Fake it for dumpbin and say T for any non-static function
6140 # and D for any global variable.
6141 # Also find C++ and __fastcall symbols from MSVC++,
6142 # which start with @ or ?.
6143 lt_cv_sys_global_symbol_pipe="$AWK '"\
6144 " {last_section=section; section=\$ 3};"\
6145 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6146 " \$ 0!~/External *\|/{next};"\
6147 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6148 " {if(hide[section]) next};"\
6149 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6150 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6151 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6152 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6153 " ' prfx=^$ac_symprfx"
6154 else
6155 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6156 fi
6157
6158 # Check to see that the pipe works correctly.
6159 pipe_works=no
6160
6161 rm -f conftest*
6162 cat > conftest.$ac_ext <<_LT_EOF
6163 #ifdef __cplusplus
6164 extern "C" {
6165 #endif
6166 char nm_test_var;
6167 void nm_test_func(void);
6168 void nm_test_func(void){}
6169 #ifdef __cplusplus
6170 }
6171 #endif
6172 int main(){nm_test_var='a';nm_test_func();return(0);}
6173 _LT_EOF
6174
6175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 (eval $ac_compile) 2>&5
6177 ac_status=$?
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; then
6180 # Now try to grab the symbols.
6181 nlist=conftest.nm
6182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6183 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6184 ac_status=$?
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; } && test -s "$nlist"; then
6187 # Try sorting and uniquifying the output.
6188 if sort "$nlist" | uniq > "$nlist"T; then
6189 mv -f "$nlist"T "$nlist"
6190 else
6191 rm -f "$nlist"T
6192 fi
6193
6194 # Make sure that we snagged all the symbols we need.
6195 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6196 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6197 cat <<_LT_EOF > conftest.$ac_ext
6198 #ifdef __cplusplus
6199 extern "C" {
6200 #endif
6201
6202 _LT_EOF
6203 # Now generate the symbol file.
6204 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6205
6206 cat <<_LT_EOF >> conftest.$ac_ext
6207
6208 /* The mapping between symbol names and symbols. */
6209 const struct {
6210 const char *name;
6211 void *address;
6212 }
6213 lt__PROGRAM__LTX_preloaded_symbols[] =
6214 {
6215 { "@PROGRAM@", (void *) 0 },
6216 _LT_EOF
6217 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6218 cat <<\_LT_EOF >> conftest.$ac_ext
6219 {0, (void *) 0}
6220 };
6221
6222 /* This works around a problem in FreeBSD linker */
6223 #ifdef FREEBSD_WORKAROUND
6224 static const void *lt_preloaded_setup() {
6225 return lt__PROGRAM__LTX_preloaded_symbols;
6226 }
6227 #endif
6228
6229 #ifdef __cplusplus
6230 }
6231 #endif
6232 _LT_EOF
6233 # Now try linking the two files.
6234 mv conftest.$ac_objext conftstm.$ac_objext
6235 lt_save_LIBS="$LIBS"
6236 lt_save_CFLAGS="$CFLAGS"
6237 LIBS="conftstm.$ac_objext"
6238 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6240 (eval $ac_link) 2>&5
6241 ac_status=$?
6242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6244 pipe_works=yes
6245 fi
6246 LIBS="$lt_save_LIBS"
6247 CFLAGS="$lt_save_CFLAGS"
6248 else
6249 echo "cannot find nm_test_func in $nlist" >&5
6250 fi
6251 else
6252 echo "cannot find nm_test_var in $nlist" >&5
6253 fi
6254 else
6255 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6256 fi
6257 else
6258 echo "$progname: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6260 fi
6261 rm -rf conftest* conftst*
6262
6263 # Do not use the global_symbol_pipe unless it works.
6264 if test "$pipe_works" = yes; then
6265 break
6266 else
6267 lt_cv_sys_global_symbol_pipe=
6268 fi
6269 done
6270
6271 fi
6272
6273 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6274 lt_cv_sys_global_symbol_to_cdecl=
6275 fi
6276 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6278 $as_echo "failed" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6281 $as_echo "ok" >&6; }
6282 fi
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305 # Check whether --enable-libtool-lock was given.
6306 if test "${enable_libtool_lock+set}" = set; then :
6307 enableval=$enable_libtool_lock;
6308 fi
6309
6310 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311
6312 # Some flags need to be propagated to the compiler or linker for good
6313 # libtool support.
6314 case $host in
6315 ia64-*-hpux*)
6316 # Find out which ABI we are using.
6317 echo 'int i;' > conftest.$ac_ext
6318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 (eval $ac_compile) 2>&5
6320 ac_status=$?
6321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322 test $ac_status = 0; }; then
6323 case `/usr/bin/file conftest.$ac_objext` in
6324 *ELF-32*)
6325 HPUX_IA64_MODE="32"
6326 ;;
6327 *ELF-64*)
6328 HPUX_IA64_MODE="64"
6329 ;;
6330 esac
6331 fi
6332 rm -rf conftest*
6333 ;;
6334 *-*-irix6*)
6335 # Find out which ABI we are using.
6336 echo '#line 6336 "configure"' > conftest.$ac_ext
6337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 (eval $ac_compile) 2>&5
6339 ac_status=$?
6340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341 test $ac_status = 0; }; then
6342 if test "$lt_cv_prog_gnu_ld" = yes; then
6343 case `/usr/bin/file conftest.$ac_objext` in
6344 *32-bit*)
6345 LD="${LD-ld} -melf32bsmip"
6346 ;;
6347 *N32*)
6348 LD="${LD-ld} -melf32bmipn32"
6349 ;;
6350 *64-bit*)
6351 LD="${LD-ld} -melf64bmip"
6352 ;;
6353 esac
6354 else
6355 case `/usr/bin/file conftest.$ac_objext` in
6356 *32-bit*)
6357 LD="${LD-ld} -32"
6358 ;;
6359 *N32*)
6360 LD="${LD-ld} -n32"
6361 ;;
6362 *64-bit*)
6363 LD="${LD-ld} -64"
6364 ;;
6365 esac
6366 fi
6367 fi
6368 rm -rf conftest*
6369 ;;
6370
6371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6373 # Find out which ABI we are using.
6374 echo 'int i;' > conftest.$ac_ext
6375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376 (eval $ac_compile) 2>&5
6377 ac_status=$?
6378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379 test $ac_status = 0; }; then
6380 case `/usr/bin/file conftest.o` in
6381 *32-bit*)
6382 case $host in
6383 x86_64-*kfreebsd*-gnu)
6384 LD="${LD-ld} -m elf_i386_fbsd"
6385 ;;
6386 x86_64-*linux*)
6387 LD="${LD-ld} -m elf_i386"
6388 ;;
6389 ppc64-*linux*|powerpc64-*linux*)
6390 LD="${LD-ld} -m elf32ppclinux"
6391 ;;
6392 s390x-*linux*)
6393 LD="${LD-ld} -m elf_s390"
6394 ;;
6395 sparc64-*linux*)
6396 LD="${LD-ld} -m elf32_sparc"
6397 ;;
6398 esac
6399 ;;
6400 *64-bit*)
6401 case $host in
6402 x86_64-*kfreebsd*-gnu)
6403 LD="${LD-ld} -m elf_x86_64_fbsd"
6404 ;;
6405 x86_64-*linux*)
6406 LD="${LD-ld} -m elf_x86_64"
6407 ;;
6408 ppc*-*linux*|powerpc*-*linux*)
6409 LD="${LD-ld} -m elf64ppc"
6410 ;;
6411 s390*-*linux*|s390*-*tpf*)
6412 LD="${LD-ld} -m elf64_s390"
6413 ;;
6414 sparc*-*linux*)
6415 LD="${LD-ld} -m elf64_sparc"
6416 ;;
6417 esac
6418 ;;
6419 esac
6420 fi
6421 rm -rf conftest*
6422 ;;
6423
6424 *-*-sco3.2v5*)
6425 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6426 SAVE_CFLAGS="$CFLAGS"
6427 CFLAGS="$CFLAGS -belf"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6429 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6430 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6441
6442 int
6443 main ()
6444 {
6445
6446 ;
6447 return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_link "$LINENO"; then :
6451 lt_cv_cc_needs_belf=yes
6452 else
6453 lt_cv_cc_needs_belf=no
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457 ac_ext=c
6458 ac_cpp='$CPP $CPPFLAGS'
6459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462
6463 fi
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6465 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6466 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6467 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6468 CFLAGS="$SAVE_CFLAGS"
6469 fi
6470 ;;
6471 sparc*-*solaris*)
6472 # Find out which ABI we are using.
6473 echo 'int i;' > conftest.$ac_ext
6474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475 (eval $ac_compile) 2>&5
6476 ac_status=$?
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }; then
6479 case `/usr/bin/file conftest.o` in
6480 *64-bit*)
6481 case $lt_cv_prog_gnu_ld in
6482 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6483 *)
6484 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6485 LD="${LD-ld} -64"
6486 fi
6487 ;;
6488 esac
6489 ;;
6490 esac
6491 fi
6492 rm -rf conftest*
6493 ;;
6494 esac
6495
6496 need_locks="$enable_libtool_lock"
6497
6498
6499 case $host_os in
6500 rhapsody* | darwin*)
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6509 if test -n "$DSYMUTIL"; then
6510 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6514 do
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6522 fi
6523 done
6524 done
6525 IFS=$as_save_IFS
6526
6527 fi
6528 fi
6529 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6530 if test -n "$DSYMUTIL"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6532 $as_echo "$DSYMUTIL" >&6; }
6533 else
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6536 fi
6537
6538
6539 fi
6540 if test -z "$ac_cv_prog_DSYMUTIL"; then
6541 ac_ct_DSYMUTIL=$DSYMUTIL
6542 # Extract the first word of "dsymutil", so it can be a program name with args.
6543 set dummy dsymutil; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6549 if test -n "$ac_ct_DSYMUTIL"; then
6550 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6551 else
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553 for as_dir in $PATH
6554 do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563 done
6564 done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6570 if test -n "$ac_ct_DSYMUTIL"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6572 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6573 else
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6576 fi
6577
6578 if test "x$ac_ct_DSYMUTIL" = x; then
6579 DSYMUTIL=":"
6580 else
6581 case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 DSYMUTIL=$ac_ct_DSYMUTIL
6588 fi
6589 else
6590 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6591 fi
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$NMEDIT"; then
6602 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 NMEDIT=$ac_cv_prog_NMEDIT
6622 if test -n "$NMEDIT"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6624 $as_echo "$NMEDIT" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_NMEDIT"; then
6633 ac_ct_NMEDIT=$NMEDIT
6634 # Extract the first word of "nmedit", so it can be a program name with args.
6635 set dummy nmedit; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$ac_ct_NMEDIT"; then
6642 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6662 if test -n "$ac_ct_NMEDIT"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6664 $as_echo "$ac_ct_NMEDIT" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670 if test "x$ac_ct_NMEDIT" = x; then
6671 NMEDIT=":"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 NMEDIT=$ac_ct_NMEDIT
6680 fi
6681 else
6682 NMEDIT="$ac_cv_prog_NMEDIT"
6683 fi
6684
6685 if test -n "$ac_tool_prefix"; then
6686 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6687 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_LIPO+set}" = set; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if test -n "$LIPO"; then
6694 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699 IFS=$as_save_IFS
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 LIPO=$ac_cv_prog_LIPO
6714 if test -n "$LIPO"; then
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6716 $as_echo "$LIPO" >&6; }
6717 else
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722
6723 fi
6724 if test -z "$ac_cv_prog_LIPO"; then
6725 ac_ct_LIPO=$LIPO
6726 # Extract the first word of "lipo", so it can be a program name with args.
6727 set dummy lipo; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_LIPO"; then
6734 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_ac_ct_LIPO="lipo"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6754 if test -n "$ac_ct_LIPO"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6756 $as_echo "$ac_ct_LIPO" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762 if test "x$ac_ct_LIPO" = x; then
6763 LIPO=":"
6764 else
6765 case $cross_compiling:$ac_tool_warned in
6766 yes:)
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769 ac_tool_warned=yes ;;
6770 esac
6771 LIPO=$ac_ct_LIPO
6772 fi
6773 else
6774 LIPO="$ac_cv_prog_LIPO"
6775 fi
6776
6777 if test -n "$ac_tool_prefix"; then
6778 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6779 set dummy ${ac_tool_prefix}otool; ac_word=$2
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6783 $as_echo_n "(cached) " >&6
6784 else
6785 if test -n "$OTOOL"; then
6786 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6787 else
6788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 for as_dir in $PATH
6790 do
6791 IFS=$as_save_IFS
6792 test -z "$as_dir" && as_dir=.
6793 for ac_exec_ext in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 break 2
6798 fi
6799 done
6800 done
6801 IFS=$as_save_IFS
6802
6803 fi
6804 fi
6805 OTOOL=$ac_cv_prog_OTOOL
6806 if test -n "$OTOOL"; then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6808 $as_echo "$OTOOL" >&6; }
6809 else
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 $as_echo "no" >&6; }
6812 fi
6813
6814
6815 fi
6816 if test -z "$ac_cv_prog_OTOOL"; then
6817 ac_ct_OTOOL=$OTOOL
6818 # Extract the first word of "otool", so it can be a program name with args.
6819 set dummy otool; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$ac_ct_OTOOL"; then
6826 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_prog_ac_ct_OTOOL="otool"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6846 if test -n "$ac_ct_OTOOL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6848 $as_echo "$ac_ct_OTOOL" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854 if test "x$ac_ct_OTOOL" = x; then
6855 OTOOL=":"
6856 else
6857 case $cross_compiling:$ac_tool_warned in
6858 yes:)
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863 OTOOL=$ac_ct_OTOOL
6864 fi
6865 else
6866 OTOOL="$ac_cv_prog_OTOOL"
6867 fi
6868
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 $as_echo_n "checking for $ac_word... " >&6; }
6874 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876 else
6877 if test -n "$OTOOL64"; then
6878 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6890 fi
6891 done
6892 done
6893 IFS=$as_save_IFS
6894
6895 fi
6896 fi
6897 OTOOL64=$ac_cv_prog_OTOOL64
6898 if test -n "$OTOOL64"; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6900 $as_echo "$OTOOL64" >&6; }
6901 else
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 $as_echo "no" >&6; }
6904 fi
6905
6906
6907 fi
6908 if test -z "$ac_cv_prog_OTOOL64"; then
6909 ac_ct_OTOOL64=$OTOOL64
6910 # Extract the first word of "otool64", so it can be a program name with args.
6911 set dummy otool64; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$ac_ct_OTOOL64"; then
6918 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_OTOOL64="otool64"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6938 if test -n "$ac_ct_OTOOL64"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6940 $as_echo "$ac_ct_OTOOL64" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946 if test "x$ac_ct_OTOOL64" = x; then
6947 OTOOL64=":"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953 ac_tool_warned=yes ;;
6954 esac
6955 OTOOL64=$ac_ct_OTOOL64
6956 fi
6957 else
6958 OTOOL64="$ac_cv_prog_OTOOL64"
6959 fi
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6988 $as_echo_n "checking for -single_module linker flag... " >&6; }
6989 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_apple_cc_single_mod=no
6993 if test -z "${LT_MULTI_MODULE}"; then
6994 # By default we will add the -single_module flag. You can override
6995 # by either setting the environment variable LT_MULTI_MODULE
6996 # non-empty at configure time, or by adding -multi_module to the
6997 # link flags.
6998 rm -rf libconftest.dylib*
6999 echo "int foo(void){return 1;}" > conftest.c
7000 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7001 -dynamiclib -Wl,-single_module conftest.c" >&5
7002 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7003 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7004 _lt_result=$?
7005 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7006 lt_cv_apple_cc_single_mod=yes
7007 else
7008 cat conftest.err >&5
7009 fi
7010 rm -rf libconftest.dylib*
7011 rm -f conftest.*
7012 fi
7013 fi
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7015 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7017 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7018 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 lt_cv_ld_exported_symbols_list=no
7022 save_LDFLAGS=$LDFLAGS
7023 echo "_main" > conftest.sym
7024 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 /* end confdefs.h. */
7027
7028 int
7029 main ()
7030 {
7031
7032 ;
7033 return 0;
7034 }
7035 _ACEOF
7036 if ac_fn_c_try_link "$LINENO"; then :
7037 lt_cv_ld_exported_symbols_list=yes
7038 else
7039 lt_cv_ld_exported_symbols_list=no
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043 LDFLAGS="$save_LDFLAGS"
7044
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7047 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7048 case $host_os in
7049 rhapsody* | darwin1.[012])
7050 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7051 darwin1.*)
7052 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7053 darwin*) # darwin 5.x on
7054 # if running on 10.5 or later, the deployment target defaults
7055 # to the OS version, if on x86, and 10.4, the deployment
7056 # target defaults to 10.4. Don't you love it?
7057 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7058 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7059 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7060 10.[012]*)
7061 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7062 10.*)
7063 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7064 esac
7065 ;;
7066 esac
7067 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7068 _lt_dar_single_mod='$single_module'
7069 fi
7070 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7071 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7072 else
7073 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7074 fi
7075 if test "$DSYMUTIL" != ":"; then
7076 _lt_dsymutil='~$DSYMUTIL $lib || :'
7077 else
7078 _lt_dsymutil=
7079 fi
7080 ;;
7081 esac
7082
7083 ac_ext=c
7084 ac_cpp='$CPP $CPPFLAGS'
7085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7089 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7090 # On Suns, sometimes $CPP names a directory.
7091 if test -n "$CPP" && test -d "$CPP"; then
7092 CPP=
7093 fi
7094 if test -z "$CPP"; then
7095 if test "${ac_cv_prog_CPP+set}" = set; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 # Double quotes because CPP needs to be expanded
7099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7100 do
7101 ac_preproc_ok=false
7102 for ac_c_preproc_warn_flag in '' yes
7103 do
7104 # Use a header file that comes with gcc, so configuring glibc
7105 # with a fresh cross-compiler works.
7106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 # <limits.h> exists even on freestanding compilers.
7108 # On the NeXT, cc -E runs the code through the compiler's parser,
7109 # not just through cpp. "Syntax error" is here to catch this case.
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #ifdef __STDC__
7113 # include <limits.h>
7114 #else
7115 # include <assert.h>
7116 #endif
7117 Syntax error
7118 _ACEOF
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7120
7121 else
7122 # Broken: fails on valid input.
7123 continue
7124 fi
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 # OK, works on sane cases. Now check whether nonexistent headers
7128 # can be detected and how.
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 #include <ac_nonexistent.h>
7132 _ACEOF
7133 if ac_fn_c_try_cpp "$LINENO"; then :
7134 # Broken: success on invalid input.
7135 continue
7136 else
7137 # Passes both tests.
7138 ac_preproc_ok=:
7139 break
7140 fi
7141 rm -f conftest.err conftest.$ac_ext
7142
7143 done
7144 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145 rm -f conftest.err conftest.$ac_ext
7146 if $ac_preproc_ok; then :
7147 break
7148 fi
7149
7150 done
7151 ac_cv_prog_CPP=$CPP
7152
7153 fi
7154 CPP=$ac_cv_prog_CPP
7155 else
7156 ac_cv_prog_CPP=$CPP
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7159 $as_echo "$CPP" >&6; }
7160 ac_preproc_ok=false
7161 for ac_c_preproc_warn_flag in '' yes
7162 do
7163 # Use a header file that comes with gcc, so configuring glibc
7164 # with a fresh cross-compiler works.
7165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7166 # <limits.h> exists even on freestanding compilers.
7167 # On the NeXT, cc -E runs the code through the compiler's parser,
7168 # not just through cpp. "Syntax error" is here to catch this case.
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 #ifdef __STDC__
7172 # include <limits.h>
7173 #else
7174 # include <assert.h>
7175 #endif
7176 Syntax error
7177 _ACEOF
7178 if ac_fn_c_try_cpp "$LINENO"; then :
7179
7180 else
7181 # Broken: fails on valid input.
7182 continue
7183 fi
7184 rm -f conftest.err conftest.$ac_ext
7185
7186 # OK, works on sane cases. Now check whether nonexistent headers
7187 # can be detected and how.
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 #include <ac_nonexistent.h>
7191 _ACEOF
7192 if ac_fn_c_try_cpp "$LINENO"; then :
7193 # Broken: success on invalid input.
7194 continue
7195 else
7196 # Passes both tests.
7197 ac_preproc_ok=:
7198 break
7199 fi
7200 rm -f conftest.err conftest.$ac_ext
7201
7202 done
7203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7204 rm -f conftest.err conftest.$ac_ext
7205 if $ac_preproc_ok; then :
7206
7207 else
7208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7211 See \`config.log' for more details." "$LINENO" 5; }
7212 fi
7213
7214 ac_ext=c
7215 ac_cpp='$CPP $CPPFLAGS'
7216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219
7220
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7222 $as_echo_n "checking for ANSI C header files... " >&6; }
7223 if test "${ac_cv_header_stdc+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <stdlib.h>
7229 #include <stdarg.h>
7230 #include <string.h>
7231 #include <float.h>
7232
7233 int
7234 main ()
7235 {
7236
7237 ;
7238 return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 ac_cv_header_stdc=yes
7243 else
7244 ac_cv_header_stdc=no
7245 fi
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247
7248 if test $ac_cv_header_stdc = yes; then
7249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 #include <string.h>
7253
7254 _ACEOF
7255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7256 $EGREP "memchr" >/dev/null 2>&1; then :
7257
7258 else
7259 ac_cv_header_stdc=no
7260 fi
7261 rm -f conftest*
7262
7263 fi
7264
7265 if test $ac_cv_header_stdc = yes; then
7266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <stdlib.h>
7270
7271 _ACEOF
7272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7273 $EGREP "free" >/dev/null 2>&1; then :
7274
7275 else
7276 ac_cv_header_stdc=no
7277 fi
7278 rm -f conftest*
7279
7280 fi
7281
7282 if test $ac_cv_header_stdc = yes; then
7283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7284 if test "$cross_compiling" = yes; then :
7285 :
7286 else
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <ctype.h>
7290 #include <stdlib.h>
7291 #if ((' ' & 0x0FF) == 0x020)
7292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7294 #else
7295 # define ISLOWER(c) \
7296 (('a' <= (c) && (c) <= 'i') \
7297 || ('j' <= (c) && (c) <= 'r') \
7298 || ('s' <= (c) && (c) <= 'z'))
7299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7300 #endif
7301
7302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7303 int
7304 main ()
7305 {
7306 int i;
7307 for (i = 0; i < 256; i++)
7308 if (XOR (islower (i), ISLOWER (i))
7309 || toupper (i) != TOUPPER (i))
7310 return 2;
7311 return 0;
7312 }
7313 _ACEOF
7314 if ac_fn_c_try_run "$LINENO"; then :
7315
7316 else
7317 ac_cv_header_stdc=no
7318 fi
7319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7320 conftest.$ac_objext conftest.beam conftest.$ac_ext
7321 fi
7322
7323 fi
7324 fi
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7326 $as_echo "$ac_cv_header_stdc" >&6; }
7327 if test $ac_cv_header_stdc = yes; then
7328
7329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7330
7331 fi
7332
7333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7334 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7335 inttypes.h stdint.h unistd.h
7336 do :
7337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7339 "
7340 eval as_val=\$$as_ac_Header
7341 if test "x$as_val" = x""yes; then :
7342 cat >>confdefs.h <<_ACEOF
7343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344 _ACEOF
7345
7346 fi
7347
7348 done
7349
7350
7351 for ac_header in dlfcn.h
7352 do :
7353 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7354 "
7355 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_DLFCN_H 1
7358 _ACEOF
7359
7360 fi
7361
7362 done
7363
7364
7365
7366 # Set options
7367 enable_dlopen=yes
7368 # Check whether --enable-static was given.
7369 if test "${enable_static+set}" = set; then :
7370 enableval=$enable_static; p=${PACKAGE-default}
7371 case $enableval in
7372 yes) enable_static=yes ;;
7373 no) enable_static=no ;;
7374 *)
7375 enable_static=no
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7379 IFS="$lt_save_ifs"
7380 if test "X$pkg" = "X$p"; then
7381 enable_static=yes
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 ;;
7386 esac
7387 else
7388 enable_static=no
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401 enable_win32_dll=no
7402
7403
7404 # Check whether --enable-shared was given.
7405 if test "${enable_shared+set}" = set; then :
7406 enableval=$enable_shared; p=${PACKAGE-default}
7407 case $enableval in
7408 yes) enable_shared=yes ;;
7409 no) enable_shared=no ;;
7410 *)
7411 enable_shared=no
7412 # Look at the argument we got. We use all the common list separators.
7413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414 for pkg in $enableval; do
7415 IFS="$lt_save_ifs"
7416 if test "X$pkg" = "X$p"; then
7417 enable_shared=yes
7418 fi
7419 done
7420 IFS="$lt_save_ifs"
7421 ;;
7422 esac
7423 else
7424 enable_shared=yes
7425 fi
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 # Check whether --with-pic was given.
7438 if test "${with_pic+set}" = set; then :
7439 withval=$with_pic; pic_mode="$withval"
7440 else
7441 pic_mode=default
7442 fi
7443
7444
7445 test -z "$pic_mode" && pic_mode=default
7446
7447
7448
7449
7450
7451
7452
7453 # Check whether --enable-fast-install was given.
7454 if test "${enable_fast_install+set}" = set; then :
7455 enableval=$enable_fast_install; p=${PACKAGE-default}
7456 case $enableval in
7457 yes) enable_fast_install=yes ;;
7458 no) enable_fast_install=no ;;
7459 *)
7460 enable_fast_install=no
7461 # Look at the argument we got. We use all the common list separators.
7462 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463 for pkg in $enableval; do
7464 IFS="$lt_save_ifs"
7465 if test "X$pkg" = "X$p"; then
7466 enable_fast_install=yes
7467 fi
7468 done
7469 IFS="$lt_save_ifs"
7470 ;;
7471 esac
7472 else
7473 enable_fast_install=yes
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 # This can be used to rebuild libtool when needed
7487 LIBTOOL_DEPS="$ltmain"
7488
7489 # Always use our own libtool.
7490 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 test -z "$LN_S" && LN_S="ln -s"
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 if test -n "${ZSH_VERSION+set}" ; then
7532 setopt NO_GLOB_SUBST
7533 fi
7534
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536 $as_echo_n "checking for objdir... " >&6; }
7537 if test "${lt_cv_objdir+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 rm -f .libs 2>/dev/null
7541 mkdir .libs 2>/dev/null
7542 if test -d .libs; then
7543 lt_cv_objdir=.libs
7544 else
7545 # MS-DOS does not allow filenames that begin with a dot.
7546 lt_cv_objdir=_libs
7547 fi
7548 rmdir .libs 2>/dev/null
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551 $as_echo "$lt_cv_objdir" >&6; }
7552 objdir=$lt_cv_objdir
7553
7554
7555
7556
7557
7558 cat >>confdefs.h <<_ACEOF
7559 #define LT_OBJDIR "$lt_cv_objdir/"
7560 _ACEOF
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 case $host_os in
7579 aix3*)
7580 # AIX sometimes has problems with the GCC collect2 program. For some
7581 # reason, if we set the COLLECT_NAMES environment variable, the problems
7582 # vanish in a puff of smoke.
7583 if test "X${COLLECT_NAMES+set}" != Xset; then
7584 COLLECT_NAMES=
7585 export COLLECT_NAMES
7586 fi
7587 ;;
7588 esac
7589
7590 # Sed substitution that helps us do robust quoting. It backslashifies
7591 # metacharacters that are still active within double-quoted strings.
7592 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7593
7594 # Same as above, but do not quote variable references.
7595 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7596
7597 # Sed substitution to delay expansion of an escaped shell variable in a
7598 # double_quote_subst'ed string.
7599 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7600
7601 # Sed substitution to delay expansion of an escaped single quote.
7602 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7603
7604 # Sed substitution to avoid accidental globbing in evaled expressions
7605 no_glob_subst='s/\*/\\\*/g'
7606
7607 # Global variables:
7608 ofile=libtool
7609 can_build_shared=yes
7610
7611 # All known linkers require a `.a' archive for static linking (except MSVC,
7612 # which needs '.lib').
7613 libext=a
7614
7615 with_gnu_ld="$lt_cv_prog_gnu_ld"
7616
7617 old_CC="$CC"
7618 old_CFLAGS="$CFLAGS"
7619
7620 # Set sane defaults for various variables
7621 test -z "$CC" && CC=cc
7622 test -z "$LTCC" && LTCC=$CC
7623 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7624 test -z "$LD" && LD=ld
7625 test -z "$ac_objext" && ac_objext=o
7626
7627 for cc_temp in $compiler""; do
7628 case $cc_temp in
7629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7631 \-*) ;;
7632 *) break;;
7633 esac
7634 done
7635 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7636
7637
7638 # Only perform the check for file, if the check method requires it
7639 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7640 case $deplibs_check_method in
7641 file_magic*)
7642 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7644 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7645 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 case $MAGIC_CMD in
7649 [\\/*] | ?:[\\/]*)
7650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 lt_save_MAGIC_CMD="$MAGIC_CMD"
7654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656 for ac_dir in $ac_dummy; do
7657 IFS="$lt_save_ifs"
7658 test -z "$ac_dir" && ac_dir=.
7659 if test -f $ac_dir/${ac_tool_prefix}file; then
7660 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7661 if test -n "$file_magic_test_file"; then
7662 case $deplibs_check_method in
7663 "file_magic "*)
7664 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667 $EGREP "$file_magic_regex" > /dev/null; then
7668 :
7669 else
7670 cat <<_LT_EOF 1>&2
7671
7672 *** Warning: the command libtool uses to detect shared libraries,
7673 *** $file_magic_cmd, produces output that libtool cannot recognize.
7674 *** The result is that libtool may fail to recognize shared libraries
7675 *** as such. This will affect the creation of libtool libraries that
7676 *** depend on shared libraries, but programs linked with such libtool
7677 *** libraries will work regardless of this problem. Nevertheless, you
7678 *** may want to report the problem to your system manager and/or to
7679 *** bug-libtool@gnu.org
7680
7681 _LT_EOF
7682 fi ;;
7683 esac
7684 fi
7685 break
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 MAGIC_CMD="$lt_save_MAGIC_CMD"
7690 ;;
7691 esac
7692 fi
7693
7694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695 if test -n "$MAGIC_CMD"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697 $as_echo "$MAGIC_CMD" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7701 fi
7702
7703
7704
7705
7706
7707 if test -z "$lt_cv_path_MAGIC_CMD"; then
7708 if test -n "$ac_tool_prefix"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7710 $as_echo_n "checking for file... " >&6; }
7711 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 case $MAGIC_CMD in
7715 [\\/*] | ?:[\\/]*)
7716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7717 ;;
7718 *)
7719 lt_save_MAGIC_CMD="$MAGIC_CMD"
7720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7722 for ac_dir in $ac_dummy; do
7723 IFS="$lt_save_ifs"
7724 test -z "$ac_dir" && ac_dir=.
7725 if test -f $ac_dir/file; then
7726 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7727 if test -n "$file_magic_test_file"; then
7728 case $deplibs_check_method in
7729 "file_magic "*)
7730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7733 $EGREP "$file_magic_regex" > /dev/null; then
7734 :
7735 else
7736 cat <<_LT_EOF 1>&2
7737
7738 *** Warning: the command libtool uses to detect shared libraries,
7739 *** $file_magic_cmd, produces output that libtool cannot recognize.
7740 *** The result is that libtool may fail to recognize shared libraries
7741 *** as such. This will affect the creation of libtool libraries that
7742 *** depend on shared libraries, but programs linked with such libtool
7743 *** libraries will work regardless of this problem. Nevertheless, you
7744 *** may want to report the problem to your system manager and/or to
7745 *** bug-libtool@gnu.org
7746
7747 _LT_EOF
7748 fi ;;
7749 esac
7750 fi
7751 break
7752 fi
7753 done
7754 IFS="$lt_save_ifs"
7755 MAGIC_CMD="$lt_save_MAGIC_CMD"
7756 ;;
7757 esac
7758 fi
7759
7760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761 if test -n "$MAGIC_CMD"; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7763 $as_echo "$MAGIC_CMD" >&6; }
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 else
7771 MAGIC_CMD=:
7772 fi
7773 fi
7774
7775 fi
7776 ;;
7777 esac
7778
7779 # Use C for the default configuration in the libtool script
7780
7781 lt_save_CC="$CC"
7782 ac_ext=c
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787
7788
7789 # Source file extension for C test sources.
7790 ac_ext=c
7791
7792 # Object file extension for compiled C test sources.
7793 objext=o
7794 objext=$objext
7795
7796 # Code to be used in simple compile tests
7797 lt_simple_compile_test_code="int some_variable = 0;"
7798
7799 # Code to be used in simple link tests
7800 lt_simple_link_test_code='int main(){return(0);}'
7801
7802
7803
7804
7805
7806
7807
7808 # If no C compiler was specified, use CC.
7809 LTCC=${LTCC-"$CC"}
7810
7811 # If no C compiler flags were specified, use CFLAGS.
7812 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7813
7814 # Allow CC to be a program name with arguments.
7815 compiler=$CC
7816
7817 # Save the default compiler, since it gets overwritten when the other
7818 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7819 compiler_DEFAULT=$CC
7820
7821 # save warnings/boilerplate of simple test code
7822 ac_outfile=conftest.$ac_objext
7823 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7824 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825 _lt_compiler_boilerplate=`cat conftest.err`
7826 $RM conftest*
7827
7828 ac_outfile=conftest.$ac_objext
7829 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7830 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7831 _lt_linker_boilerplate=`cat conftest.err`
7832 $RM -r conftest*
7833
7834
7835 if test -n "$compiler"; then
7836
7837 lt_prog_compiler_no_builtin_flag=
7838
7839 if test "$GCC" = yes; then
7840 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7843 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7844 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 lt_cv_prog_compiler_rtti_exceptions=no
7848 ac_outfile=conftest.$ac_objext
7849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7850 lt_compiler_flag="-fno-rtti -fno-exceptions"
7851 # Insert the option either (1) after the last *FLAGS variable, or
7852 # (2) before a word containing "conftest.", or (3) at the end.
7853 # Note that $ac_compile itself does not contain backslashes and begins
7854 # with a dollar sign (not a hyphen), so the echo should work correctly.
7855 # The option is referenced via a variable to avoid confusing sed.
7856 lt_compile=`echo "$ac_compile" | $SED \
7857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859 -e 's:$: $lt_compiler_flag:'`
7860 (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
7861 (eval "$lt_compile" 2>conftest.err)
7862 ac_status=$?
7863 cat conftest.err >&5
7864 echo "$as_me:7864: \$? = $ac_status" >&5
7865 if (exit $ac_status) && test -s "$ac_outfile"; then
7866 # The compiler can only warn and ignore the option if not recognized
7867 # So say no if there are warnings other than the usual output.
7868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7871 lt_cv_prog_compiler_rtti_exceptions=yes
7872 fi
7873 fi
7874 $RM conftest*
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7878 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7879
7880 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7881 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7882 else
7883 :
7884 fi
7885
7886 fi
7887
7888
7889
7890
7891
7892
7893 lt_prog_compiler_wl=
7894 lt_prog_compiler_pic=
7895 lt_prog_compiler_static=
7896
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7898 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7899
7900 if test "$GCC" = yes; then
7901 lt_prog_compiler_wl='-Wl,'
7902 lt_prog_compiler_static='-static'
7903
7904 case $host_os in
7905 aix*)
7906 # All AIX code is PIC.
7907 if test "$host_cpu" = ia64; then
7908 # AIX 5 now supports IA64 processor
7909 lt_prog_compiler_static='-Bstatic'
7910 fi
7911 ;;
7912
7913 amigaos*)
7914 case $host_cpu in
7915 powerpc)
7916 # see comment about AmigaOS4 .so support
7917 lt_prog_compiler_pic='-fPIC'
7918 ;;
7919 m68k)
7920 # FIXME: we need at least 68020 code to build shared libraries, but
7921 # adding the `-m68020' flag to GCC prevents building anything better,
7922 # like `-m68040'.
7923 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7924 ;;
7925 esac
7926 ;;
7927
7928 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7929 # PIC is the default for these OSes.
7930 ;;
7931
7932 mingw* | cygwin* | pw32* | os2* | cegcc*)
7933 # This hack is so that the source file can tell whether it is being
7934 # built for inclusion in a dll (and should export symbols for example).
7935 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7936 # (--disable-auto-import) libraries
7937 lt_prog_compiler_pic='-DDLL_EXPORT'
7938 ;;
7939
7940 darwin* | rhapsody*)
7941 # PIC is the default on this platform
7942 # Common symbols not allowed in MH_DYLIB files
7943 lt_prog_compiler_pic='-fno-common'
7944 ;;
7945
7946 hpux*)
7947 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7948 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7949 # sets the default TLS model and affects inlining.
7950 case $host_cpu in
7951 hppa*64*)
7952 # +Z the default
7953 ;;
7954 *)
7955 lt_prog_compiler_pic='-fPIC'
7956 ;;
7957 esac
7958 ;;
7959
7960 interix[3-9]*)
7961 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7962 # Instead, we relocate shared libraries at runtime.
7963 ;;
7964
7965 msdosdjgpp*)
7966 # Just because we use GCC doesn't mean we suddenly get shared libraries
7967 # on systems that don't support them.
7968 lt_prog_compiler_can_build_shared=no
7969 enable_shared=no
7970 ;;
7971
7972 *nto* | *qnx*)
7973 # QNX uses GNU C++, but need to define -shared option too, otherwise
7974 # it will coredump.
7975 lt_prog_compiler_pic='-fPIC -shared'
7976 ;;
7977
7978 sysv4*MP*)
7979 if test -d /usr/nec; then
7980 lt_prog_compiler_pic=-Kconform_pic
7981 fi
7982 ;;
7983
7984 *)
7985 lt_prog_compiler_pic='-fPIC'
7986 ;;
7987 esac
7988 else
7989 # PORTME Check for flag to pass linker flags through the system compiler.
7990 case $host_os in
7991 aix*)
7992 lt_prog_compiler_wl='-Wl,'
7993 if test "$host_cpu" = ia64; then
7994 # AIX 5 now supports IA64 processor
7995 lt_prog_compiler_static='-Bstatic'
7996 else
7997 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7998 fi
7999 ;;
8000
8001 mingw* | cygwin* | pw32* | os2* | cegcc*)
8002 # This hack is so that the source file can tell whether it is being
8003 # built for inclusion in a dll (and should export symbols for example).
8004 lt_prog_compiler_pic='-DDLL_EXPORT'
8005 ;;
8006
8007 hpux9* | hpux10* | hpux11*)
8008 lt_prog_compiler_wl='-Wl,'
8009 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010 # not for PA HP-UX.
8011 case $host_cpu in
8012 hppa*64*|ia64*)
8013 # +Z the default
8014 ;;
8015 *)
8016 lt_prog_compiler_pic='+Z'
8017 ;;
8018 esac
8019 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8020 lt_prog_compiler_static='${wl}-a ${wl}archive'
8021 ;;
8022
8023 irix5* | irix6* | nonstopux*)
8024 lt_prog_compiler_wl='-Wl,'
8025 # PIC (with -KPIC) is the default.
8026 lt_prog_compiler_static='-non_shared'
8027 ;;
8028
8029 linux* | k*bsd*-gnu)
8030 case $cc_basename in
8031 # old Intel for x86_64 which still supported -KPIC.
8032 ecc*)
8033 lt_prog_compiler_wl='-Wl,'
8034 lt_prog_compiler_pic='-KPIC'
8035 lt_prog_compiler_static='-static'
8036 ;;
8037 # icc used to be incompatible with GCC.
8038 # ICC 10 doesn't accept -KPIC any more.
8039 icc* | ifort*)
8040 lt_prog_compiler_wl='-Wl,'
8041 lt_prog_compiler_pic='-fPIC'
8042 lt_prog_compiler_static='-static'
8043 ;;
8044 # Lahey Fortran 8.1.
8045 lf95*)
8046 lt_prog_compiler_wl='-Wl,'
8047 lt_prog_compiler_pic='--shared'
8048 lt_prog_compiler_static='--static'
8049 ;;
8050 pgcc* | pgf77* | pgf90* | pgf95*)
8051 # Portland Group compilers (*not* the Pentium gcc compiler,
8052 # which looks to be a dead project)
8053 lt_prog_compiler_wl='-Wl,'
8054 lt_prog_compiler_pic='-fpic'
8055 lt_prog_compiler_static='-Bstatic'
8056 ;;
8057 ccc*)
8058 lt_prog_compiler_wl='-Wl,'
8059 # All Alpha code is PIC.
8060 lt_prog_compiler_static='-non_shared'
8061 ;;
8062 xl*)
8063 # IBM XL C 8.0/Fortran 10.1 on PPC
8064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-qpic'
8066 lt_prog_compiler_static='-qstaticlink'
8067 ;;
8068 *)
8069 case `$CC -V 2>&1 | sed 5q` in
8070 *Sun\ C*)
8071 # Sun C 5.9
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 lt_prog_compiler_wl='-Wl,'
8075 ;;
8076 *Sun\ F*)
8077 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 lt_prog_compiler_wl=''
8081 ;;
8082 esac
8083 ;;
8084 esac
8085 ;;
8086
8087 newsos6)
8088 lt_prog_compiler_pic='-KPIC'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 *nto* | *qnx*)
8093 # QNX uses GNU C++, but need to define -shared option too, otherwise
8094 # it will coredump.
8095 lt_prog_compiler_pic='-fPIC -shared'
8096 ;;
8097
8098 osf3* | osf4* | osf5*)
8099 lt_prog_compiler_wl='-Wl,'
8100 # All OSF/1 code is PIC.
8101 lt_prog_compiler_static='-non_shared'
8102 ;;
8103
8104 rdos*)
8105 lt_prog_compiler_static='-non_shared'
8106 ;;
8107
8108 solaris*)
8109 lt_prog_compiler_pic='-KPIC'
8110 lt_prog_compiler_static='-Bstatic'
8111 case $cc_basename in
8112 f77* | f90* | f95*)
8113 lt_prog_compiler_wl='-Qoption ld ';;
8114 *)
8115 lt_prog_compiler_wl='-Wl,';;
8116 esac
8117 ;;
8118
8119 sunos4*)
8120 lt_prog_compiler_wl='-Qoption ld '
8121 lt_prog_compiler_pic='-PIC'
8122 lt_prog_compiler_static='-Bstatic'
8123 ;;
8124
8125 sysv4 | sysv4.2uw2* | sysv4.3*)
8126 lt_prog_compiler_wl='-Wl,'
8127 lt_prog_compiler_pic='-KPIC'
8128 lt_prog_compiler_static='-Bstatic'
8129 ;;
8130
8131 sysv4*MP*)
8132 if test -d /usr/nec ;then
8133 lt_prog_compiler_pic='-Kconform_pic'
8134 lt_prog_compiler_static='-Bstatic'
8135 fi
8136 ;;
8137
8138 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-KPIC'
8141 lt_prog_compiler_static='-Bstatic'
8142 ;;
8143
8144 unicos*)
8145 lt_prog_compiler_wl='-Wl,'
8146 lt_prog_compiler_can_build_shared=no
8147 ;;
8148
8149 uts4*)
8150 lt_prog_compiler_pic='-pic'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153
8154 *)
8155 lt_prog_compiler_can_build_shared=no
8156 ;;
8157 esac
8158 fi
8159
8160 case $host_os in
8161 # For platforms which do not support PIC, -DPIC is meaningless:
8162 *djgpp*)
8163 lt_prog_compiler_pic=
8164 ;;
8165 *)
8166 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8167 ;;
8168 esac
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8170 $as_echo "$lt_prog_compiler_pic" >&6; }
8171
8172
8173
8174
8175
8176
8177 #
8178 # Check to make sure the PIC flag actually works.
8179 #
8180 if test -n "$lt_prog_compiler_pic"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8182 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8183 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_prog_compiler_pic_works=no
8187 ac_outfile=conftest.$ac_objext
8188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8189 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8190 # Insert the option either (1) after the last *FLAGS variable, or
8191 # (2) before a word containing "conftest.", or (3) at the end.
8192 # Note that $ac_compile itself does not contain backslashes and begins
8193 # with a dollar sign (not a hyphen), so the echo should work correctly.
8194 # The option is referenced via a variable to avoid confusing sed.
8195 lt_compile=`echo "$ac_compile" | $SED \
8196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8198 -e 's:$: $lt_compiler_flag:'`
8199 (eval echo "\"\$as_me:8199: $lt_compile\"" >&5)
8200 (eval "$lt_compile" 2>conftest.err)
8201 ac_status=$?
8202 cat conftest.err >&5
8203 echo "$as_me:8203: \$? = $ac_status" >&5
8204 if (exit $ac_status) && test -s "$ac_outfile"; then
8205 # The compiler can only warn and ignore the option if not recognized
8206 # So say no if there are warnings other than the usual output.
8207 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8209 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8210 lt_cv_prog_compiler_pic_works=yes
8211 fi
8212 fi
8213 $RM conftest*
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8217 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8218
8219 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8220 case $lt_prog_compiler_pic in
8221 "" | " "*) ;;
8222 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8223 esac
8224 else
8225 lt_prog_compiler_pic=
8226 lt_prog_compiler_can_build_shared=no
8227 fi
8228
8229 fi
8230
8231
8232
8233
8234
8235
8236 #
8237 # Check to make sure the static flag actually works.
8238 #
8239 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8242 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_static_works=no
8246 save_LDFLAGS="$LDFLAGS"
8247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8250 # The linker can only warn and ignore the option if not recognized
8251 # So say no if there are warnings
8252 if test -s conftest.err; then
8253 # Append any errors to the config.log.
8254 cat conftest.err 1>&5
8255 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257 if diff conftest.exp conftest.er2 >/dev/null; then
8258 lt_cv_prog_compiler_static_works=yes
8259 fi
8260 else
8261 lt_cv_prog_compiler_static_works=yes
8262 fi
8263 fi
8264 $RM -r conftest*
8265 LDFLAGS="$save_LDFLAGS"
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8269 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8270
8271 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8272 :
8273 else
8274 lt_prog_compiler_static=
8275 fi
8276
8277
8278
8279
8280
8281
8282
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
8287 else
8288 lt_cv_prog_compiler_c_o=no
8289 $RM -r conftest 2>/dev/null
8290 mkdir conftest
8291 cd conftest
8292 mkdir out
8293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8294
8295 lt_compiler_flag="-o out/conftest2.$ac_objext"
8296 # Insert the option either (1) after the last *FLAGS variable, or
8297 # (2) before a word containing "conftest.", or (3) at the end.
8298 # Note that $ac_compile itself does not contain backslashes and begins
8299 # with a dollar sign (not a hyphen), so the echo should work correctly.
8300 lt_compile=`echo "$ac_compile" | $SED \
8301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8303 -e 's:$: $lt_compiler_flag:'`
8304 (eval echo "\"\$as_me:8304: $lt_compile\"" >&5)
8305 (eval "$lt_compile" 2>out/conftest.err)
8306 ac_status=$?
8307 cat out/conftest.err >&5
8308 echo "$as_me:8308: \$? = $ac_status" >&5
8309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8310 then
8311 # The compiler can only warn and ignore the option if not recognized
8312 # So say no if there are warnings
8313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8316 lt_cv_prog_compiler_c_o=yes
8317 fi
8318 fi
8319 chmod u+w . 2>&5
8320 $RM conftest*
8321 # SGI C++ compiler will create directory out/ii_files/ for
8322 # template instantiation
8323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8324 $RM out/* && rmdir out
8325 cd ..
8326 $RM -r conftest
8327 $RM conftest*
8328
8329 fi
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8332
8333
8334
8335
8336
8337
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8340 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 lt_cv_prog_compiler_c_o=no
8344 $RM -r conftest 2>/dev/null
8345 mkdir conftest
8346 cd conftest
8347 mkdir out
8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349
8350 lt_compiler_flag="-o out/conftest2.$ac_objext"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 lt_compile=`echo "$ac_compile" | $SED \
8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358 -e 's:$: $lt_compiler_flag:'`
8359 (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360 (eval "$lt_compile" 2>out/conftest.err)
8361 ac_status=$?
8362 cat out/conftest.err >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365 then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings
8368 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8369 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8370 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_c_o=yes
8372 fi
8373 fi
8374 chmod u+w . 2>&5
8375 $RM conftest*
8376 # SGI C++ compiler will create directory out/ii_files/ for
8377 # template instantiation
8378 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8379 $RM out/* && rmdir out
8380 cd ..
8381 $RM -r conftest
8382 $RM conftest*
8383
8384 fi
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8386 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8387
8388
8389
8390
8391 hard_links="nottested"
8392 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8393 # do not overwrite the value of need_locks provided by the user
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8395 $as_echo_n "checking if we can lock with hard links... " >&6; }
8396 hard_links=yes
8397 $RM conftest*
8398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8399 touch conftest.a
8400 ln conftest.a conftest.b 2>&5 || hard_links=no
8401 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8403 $as_echo "$hard_links" >&6; }
8404 if test "$hard_links" = no; then
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8406 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8407 need_locks=warn
8408 fi
8409 else
8410 need_locks=no
8411 fi
8412
8413
8414
8415
8416
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8420
8421 runpath_var=
8422 allow_undefined_flag=
8423 always_export_symbols=no
8424 archive_cmds=
8425 archive_expsym_cmds=
8426 compiler_needs_object=no
8427 enable_shared_with_static_runtimes=no
8428 export_dynamic_flag_spec=
8429 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8430 hardcode_automatic=no
8431 hardcode_direct=no
8432 hardcode_direct_absolute=no
8433 hardcode_libdir_flag_spec=
8434 hardcode_libdir_flag_spec_ld=
8435 hardcode_libdir_separator=
8436 hardcode_minus_L=no
8437 hardcode_shlibpath_var=unsupported
8438 inherit_rpath=no
8439 link_all_deplibs=unknown
8440 module_cmds=
8441 module_expsym_cmds=
8442 old_archive_from_new_cmds=
8443 old_archive_from_expsyms_cmds=
8444 thread_safe_flag_spec=
8445 whole_archive_flag_spec=
8446 # include_expsyms should be a list of space-separated symbols to be *always*
8447 # included in the symbol list
8448 include_expsyms=
8449 # exclude_expsyms can be an extended regexp of symbols to exclude
8450 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8451 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8452 # as well as any symbol that contains `d'.
8453 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8454 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8455 # platforms (ab)use it in PIC code, but their linkers get confused if
8456 # the symbol is explicitly referenced. Since portable code cannot
8457 # rely on this symbol name, it's probably fine to never include it in
8458 # preloaded symbol tables.
8459 # Exclude shared library initialization/finalization symbols.
8460 extract_expsyms_cmds=
8461
8462 case $host_os in
8463 cygwin* | mingw* | pw32* | cegcc*)
8464 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8465 # When not using gcc, we currently assume that we are using
8466 # Microsoft Visual C++.
8467 if test "$GCC" != yes; then
8468 with_gnu_ld=no
8469 fi
8470 ;;
8471 interix*)
8472 # we just hope/assume this is gcc and not c89 (= MSVC++)
8473 with_gnu_ld=yes
8474 ;;
8475 openbsd*)
8476 with_gnu_ld=no
8477 ;;
8478 esac
8479
8480 ld_shlibs=yes
8481 if test "$with_gnu_ld" = yes; then
8482 # If archive_cmds runs LD, not CC, wlarc should be empty
8483 wlarc='${wl}'
8484
8485 # Set some defaults for GNU ld with shared library support. These
8486 # are reset later if shared libraries are not supported. Putting them
8487 # here allows them to be overridden if necessary.
8488 runpath_var=LD_RUN_PATH
8489 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 export_dynamic_flag_spec='${wl}--export-dynamic'
8491 # ancient GNU ld didn't support --whole-archive et. al.
8492 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8493 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8494 else
8495 whole_archive_flag_spec=
8496 fi
8497 supports_anon_versioning=no
8498 case `$LD -v 2>&1` in
8499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8502 *\ 2.11.*) ;; # other 2.11 versions
8503 *) supports_anon_versioning=yes ;;
8504 esac
8505
8506 # See if GNU ld supports shared libraries.
8507 case $host_os in
8508 aix[3-9]*)
8509 # On AIX/PPC, the GNU linker is very broken
8510 if test "$host_cpu" != ia64; then
8511 ld_shlibs=no
8512 cat <<_LT_EOF 1>&2
8513
8514 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8515 *** to be unable to reliably create shared libraries on AIX.
8516 *** Therefore, libtool is disabling shared libraries support. If you
8517 *** really care for shared libraries, you may want to modify your PATH
8518 *** so that a non-GNU linker is found, and then restart.
8519
8520 _LT_EOF
8521 fi
8522 ;;
8523
8524 amigaos*)
8525 case $host_cpu in
8526 powerpc)
8527 # see comment about AmigaOS4 .so support
8528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529 archive_expsym_cmds=''
8530 ;;
8531 m68k)
8532 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)'
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_minus_L=yes
8535 ;;
8536 esac
8537 ;;
8538
8539 beos*)
8540 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8541 allow_undefined_flag=unsupported
8542 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8543 # support --undefined. This deserves some investigation. FIXME
8544 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545 else
8546 ld_shlibs=no
8547 fi
8548 ;;
8549
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8552 # as there is no search path for DLLs.
8553 hardcode_libdir_flag_spec='-L$libdir'
8554 allow_undefined_flag=unsupported
8555 always_export_symbols=no
8556 enable_shared_with_static_runtimes=yes
8557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8558
8559 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561 # If the export-symbols file already is a .def file (1st line
8562 # is EXPORTS), use it as is; otherwise, prepend...
8563 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8564 cp $export_symbols $output_objdir/$soname.def;
8565 else
8566 echo EXPORTS > $output_objdir/$soname.def;
8567 cat $export_symbols >> $output_objdir/$soname.def;
8568 fi~
8569 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8570 else
8571 ld_shlibs=no
8572 fi
8573 ;;
8574
8575 interix[3-9]*)
8576 hardcode_direct=no
8577 hardcode_shlibpath_var=no
8578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579 export_dynamic_flag_spec='${wl}-E'
8580 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8581 # Instead, shared libraries are loaded at an image base (0x10000000 by
8582 # default) and relocated if they conflict, which is a slow very memory
8583 # consuming and fragmenting process. To avoid this, we pick a random,
8584 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8585 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8587 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'
8588 ;;
8589
8590 gnu* | linux* | tpf* | k*bsd*-gnu)
8591 tmp_diet=no
8592 if test "$host_os" = linux-dietlibc; then
8593 case $cc_basename in
8594 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8595 esac
8596 fi
8597 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8598 && test "$tmp_diet" = no
8599 then
8600 tmp_addflag=
8601 tmp_sharedflag='-shared'
8602 case $cc_basename,$host_cpu in
8603 pgcc*) # Portland Group C compiler
8604 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8605 tmp_addflag=' $pic_flag'
8606 ;;
8607 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8608 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8609 tmp_addflag=' $pic_flag -Mnomain' ;;
8610 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8611 tmp_addflag=' -i_dynamic' ;;
8612 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8613 tmp_addflag=' -i_dynamic -nofor_main' ;;
8614 ifc* | ifort*) # Intel Fortran compiler
8615 tmp_addflag=' -nofor_main' ;;
8616 lf95*) # Lahey Fortran 8.1
8617 whole_archive_flag_spec=
8618 tmp_sharedflag='--shared' ;;
8619 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8620 tmp_sharedflag='-qmkshrobj'
8621 tmp_addflag= ;;
8622 esac
8623 case `$CC -V 2>&1 | sed 5q` in
8624 *Sun\ C*) # Sun C 5.9
8625 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8626 compiler_needs_object=yes
8627 tmp_sharedflag='-G' ;;
8628 *Sun\ F*) # Sun Fortran 8.3
8629 tmp_sharedflag='-G' ;;
8630 esac
8631 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632
8633 if test "x$supports_anon_versioning" = xyes; then
8634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8636 echo "local: *; };" >> $output_objdir/$libname.ver~
8637 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8638 fi
8639
8640 case $cc_basename in
8641 xlf*)
8642 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8643 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8644 hardcode_libdir_flag_spec=
8645 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8646 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8647 if test "x$supports_anon_versioning" = xyes; then
8648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8652 fi
8653 ;;
8654 esac
8655 else
8656 ld_shlibs=no
8657 fi
8658 ;;
8659
8660 netbsd*)
8661 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8662 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8663 wlarc=
8664 else
8665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8667 fi
8668 ;;
8669
8670 solaris*)
8671 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8672 ld_shlibs=no
8673 cat <<_LT_EOF 1>&2
8674
8675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8676 *** create shared libraries on Solaris systems. Therefore, libtool
8677 *** is disabling shared libraries support. We urge you to upgrade GNU
8678 *** binutils to release 2.9.1 or newer. Another option is to modify
8679 *** your PATH or compiler configuration so that the native linker is
8680 *** used, and then restart.
8681
8682 _LT_EOF
8683 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 else
8687 ld_shlibs=no
8688 fi
8689 ;;
8690
8691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8692 case `$LD -v 2>&1` in
8693 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8694 ld_shlibs=no
8695 cat <<_LT_EOF 1>&2
8696
8697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8698 *** reliably create shared libraries on SCO systems. Therefore, libtool
8699 *** is disabling shared libraries support. We urge you to upgrade GNU
8700 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8701 *** your PATH or compiler configuration so that the native linker is
8702 *** used, and then restart.
8703
8704 _LT_EOF
8705 ;;
8706 *)
8707 # For security reasons, it is highly recommended that you always
8708 # use absolute paths for naming shared libraries, and exclude the
8709 # DT_RUNPATH tag from executables and libraries. But doing so
8710 # requires that you compile everything twice, which is a pain.
8711 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 else
8716 ld_shlibs=no
8717 fi
8718 ;;
8719 esac
8720 ;;
8721
8722 sunos4*)
8723 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724 wlarc=
8725 hardcode_direct=yes
8726 hardcode_shlibpath_var=no
8727 ;;
8728
8729 *)
8730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733 else
8734 ld_shlibs=no
8735 fi
8736 ;;
8737 esac
8738
8739 if test "$ld_shlibs" = no; then
8740 runpath_var=
8741 hardcode_libdir_flag_spec=
8742 export_dynamic_flag_spec=
8743 whole_archive_flag_spec=
8744 fi
8745 else
8746 # PORTME fill in a description of your system's linker (not GNU ld)
8747 case $host_os in
8748 aix3*)
8749 allow_undefined_flag=unsupported
8750 always_export_symbols=yes
8751 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'
8752 # Note: this linker hardcodes the directories in LIBPATH if there
8753 # are no directories specified by -L.
8754 hardcode_minus_L=yes
8755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8756 # Neither direct hardcoding nor static linking is supported with a
8757 # broken collect2.
8758 hardcode_direct=unsupported
8759 fi
8760 ;;
8761
8762 aix[4-9]*)
8763 if test "$host_cpu" = ia64; then
8764 # On IA64, the linker does run time linking by default, so we don't
8765 # have to do anything special.
8766 aix_use_runtimelinking=no
8767 exp_sym_flag='-Bexport'
8768 no_entry_flag=""
8769 else
8770 # If we're using GNU nm, then we don't want the "-C" option.
8771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8772 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8773 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8774 else
8775 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'
8776 fi
8777 aix_use_runtimelinking=no
8778
8779 # Test if we are trying to use run time linking or normal
8780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8781 # need to do runtime linking.
8782 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8783 for ld_flag in $LDFLAGS; do
8784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8785 aix_use_runtimelinking=yes
8786 break
8787 fi
8788 done
8789 ;;
8790 esac
8791
8792 exp_sym_flag='-bexport'
8793 no_entry_flag='-bnoentry'
8794 fi
8795
8796 # When large executables or shared objects are built, AIX ld can
8797 # have problems creating the table of contents. If linking a library
8798 # or program results in "error TOC overflow" add -mminimal-toc to
8799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8801
8802 archive_cmds=''
8803 hardcode_direct=yes
8804 hardcode_direct_absolute=yes
8805 hardcode_libdir_separator=':'
8806 link_all_deplibs=yes
8807 file_list_spec='${wl}-f,'
8808
8809 if test "$GCC" = yes; then
8810 case $host_os in aix4.[012]|aix4.[012].*)
8811 # We only want to do this on AIX 4.2 and lower, the check
8812 # below for broken collect2 doesn't work under 4.3+
8813 collect2name=`${CC} -print-prog-name=collect2`
8814 if test -f "$collect2name" &&
8815 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8816 then
8817 # We have reworked collect2
8818 :
8819 else
8820 # We have old collect2
8821 hardcode_direct=unsupported
8822 # It fails to find uninstalled libraries when the uninstalled
8823 # path is not listed in the libpath. Setting hardcode_minus_L
8824 # to unsupported forces relinking
8825 hardcode_minus_L=yes
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_libdir_separator=
8828 fi
8829 ;;
8830 esac
8831 shared_flag='-shared'
8832 if test "$aix_use_runtimelinking" = yes; then
8833 shared_flag="$shared_flag "'${wl}-G'
8834 fi
8835 link_all_deplibs=no
8836 else
8837 # not using gcc
8838 if test "$host_cpu" = ia64; then
8839 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8840 # chokes on -Wl,-G. The following line is correct:
8841 shared_flag='-G'
8842 else
8843 if test "$aix_use_runtimelinking" = yes; then
8844 shared_flag='${wl}-G'
8845 else
8846 shared_flag='${wl}-bM:SRE'
8847 fi
8848 fi
8849 fi
8850
8851 export_dynamic_flag_spec='${wl}-bexpall'
8852 # It seems that -bexpall does not export symbols beginning with
8853 # underscore (_), so it is better to generate a list of symbols to export.
8854 always_export_symbols=yes
8855 if test "$aix_use_runtimelinking" = yes; then
8856 # Warning - without using the other runtime loading flags (-brtl),
8857 # -berok will link without error, but may produce a broken library.
8858 allow_undefined_flag='-berok'
8859 # Determine the default libpath from the value encoded in an
8860 # empty executable.
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8863
8864 int
8865 main ()
8866 {
8867
8868 ;
8869 return 0;
8870 }
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873
8874 lt_aix_libpath_sed='
8875 /Import File Strings/,/^$/ {
8876 /^0/ {
8877 s/^0 *\(.*\)$/\1/
8878 p
8879 }
8880 }'
8881 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882 # Check for a 64-bit object if we didn't find anything.
8883 if test -z "$aix_libpath"; then
8884 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8885 fi
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8890
8891 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8893 else
8894 if test "$host_cpu" = ia64; then
8895 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8896 allow_undefined_flag="-z nodefs"
8897 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"
8898 else
8899 # Determine the default libpath from the value encoded in an
8900 # empty executable.
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903
8904 int
8905 main ()
8906 {
8907
8908 ;
8909 return 0;
8910 }
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913
8914 lt_aix_libpath_sed='
8915 /Import File Strings/,/^$/ {
8916 /^0/ {
8917 s/^0 *\(.*\)$/\1/
8918 p
8919 }
8920 }'
8921 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922 # Check for a 64-bit object if we didn't find anything.
8923 if test -z "$aix_libpath"; then
8924 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925 fi
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8930
8931 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8932 # Warning - without using the other run time loading flags,
8933 # -berok will link without error, but may produce a broken library.
8934 no_undefined_flag=' ${wl}-bernotok'
8935 allow_undefined_flag=' ${wl}-berok'
8936 # Exported symbols can be pulled into shared objects from archives
8937 whole_archive_flag_spec='$convenience'
8938 archive_cmds_need_lc=yes
8939 # This is similar to how AIX traditionally builds its shared libraries.
8940 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'
8941 fi
8942 fi
8943 ;;
8944
8945 amigaos*)
8946 case $host_cpu in
8947 powerpc)
8948 # see comment about AmigaOS4 .so support
8949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950 archive_expsym_cmds=''
8951 ;;
8952 m68k)
8953 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)'
8954 hardcode_libdir_flag_spec='-L$libdir'
8955 hardcode_minus_L=yes
8956 ;;
8957 esac
8958 ;;
8959
8960 bsdi[45]*)
8961 export_dynamic_flag_spec=-rdynamic
8962 ;;
8963
8964 cygwin* | mingw* | pw32* | cegcc*)
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 # hardcode_libdir_flag_spec is actually meaningless, as there is
8968 # no search path for DLLs.
8969 hardcode_libdir_flag_spec=' '
8970 allow_undefined_flag=unsupported
8971 # Tell ltmain to make .lib files, not .a files.
8972 libext=lib
8973 # Tell ltmain to make .dll files, not .so files.
8974 shrext_cmds=".dll"
8975 # FIXME: Setting linknames here is a bad hack.
8976 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8977 # The linker will automatically build a .lib file if we build a DLL.
8978 old_archive_from_new_cmds='true'
8979 # FIXME: Should let the user specify the lib program.
8980 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8981 fix_srcfile_path='`cygpath -w "$srcfile"`'
8982 enable_shared_with_static_runtimes=yes
8983 ;;
8984
8985 darwin* | rhapsody*)
8986
8987
8988 archive_cmds_need_lc=no
8989 hardcode_direct=no
8990 hardcode_automatic=yes
8991 hardcode_shlibpath_var=unsupported
8992 whole_archive_flag_spec=''
8993 link_all_deplibs=yes
8994 allow_undefined_flag="$_lt_dar_allow_undefined"
8995 case $cc_basename in
8996 ifort*) _lt_dar_can_shared=yes ;;
8997 *) _lt_dar_can_shared=$GCC ;;
8998 esac
8999 if test "$_lt_dar_can_shared" = "yes"; then
9000 output_verbose_link_cmd=echo
9001 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9002 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9003 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}"
9004 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}"
9005
9006 else
9007 ld_shlibs=no
9008 fi
9009
9010 ;;
9011
9012 dgux*)
9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014 hardcode_libdir_flag_spec='-L$libdir'
9015 hardcode_shlibpath_var=no
9016 ;;
9017
9018 freebsd1*)
9019 ld_shlibs=no
9020 ;;
9021
9022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9023 # support. Future versions do this automatically, but an explicit c++rt0.o
9024 # does not break anything, and helps significantly (at the cost of a little
9025 # extra space).
9026 freebsd2.2*)
9027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9028 hardcode_libdir_flag_spec='-R$libdir'
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9031 ;;
9032
9033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9034 freebsd2*)
9035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036 hardcode_direct=yes
9037 hardcode_minus_L=yes
9038 hardcode_shlibpath_var=no
9039 ;;
9040
9041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9042 freebsd* | dragonfly*)
9043 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9044 hardcode_libdir_flag_spec='-R$libdir'
9045 hardcode_direct=yes
9046 hardcode_shlibpath_var=no
9047 ;;
9048
9049 hpux9*)
9050 if test "$GCC" = yes; then
9051 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9052 else
9053 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'
9054 fi
9055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9056 hardcode_libdir_separator=:
9057 hardcode_direct=yes
9058
9059 # hardcode_minus_L: Not really in the search PATH,
9060 # but as the default location of the library.
9061 hardcode_minus_L=yes
9062 export_dynamic_flag_spec='${wl}-E'
9063 ;;
9064
9065 hpux10*)
9066 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9067 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068 else
9069 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9070 fi
9071 if test "$with_gnu_ld" = no; then
9072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9073 hardcode_libdir_flag_spec_ld='+b $libdir'
9074 hardcode_libdir_separator=:
9075 hardcode_direct=yes
9076 hardcode_direct_absolute=yes
9077 export_dynamic_flag_spec='${wl}-E'
9078 # hardcode_minus_L: Not really in the search PATH,
9079 # but as the default location of the library.
9080 hardcode_minus_L=yes
9081 fi
9082 ;;
9083
9084 hpux11*)
9085 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9086 case $host_cpu in
9087 hppa*64*)
9088 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 ;;
9090 ia64*)
9091 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9092 ;;
9093 *)
9094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095 ;;
9096 esac
9097 else
9098 case $host_cpu in
9099 hppa*64*)
9100 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 ;;
9102 ia64*)
9103 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9104 ;;
9105 *)
9106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107 ;;
9108 esac
9109 fi
9110 if test "$with_gnu_ld" = no; then
9111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9112 hardcode_libdir_separator=:
9113
9114 case $host_cpu in
9115 hppa*64*|ia64*)
9116 hardcode_direct=no
9117 hardcode_shlibpath_var=no
9118 ;;
9119 *)
9120 hardcode_direct=yes
9121 hardcode_direct_absolute=yes
9122 export_dynamic_flag_spec='${wl}-E'
9123
9124 # hardcode_minus_L: Not really in the search PATH,
9125 # but as the default location of the library.
9126 hardcode_minus_L=yes
9127 ;;
9128 esac
9129 fi
9130 ;;
9131
9132 irix5* | irix6* | nonstopux*)
9133 if test "$GCC" = yes; then
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9135 # Try to use the -exported_symbol ld option, if it does not
9136 # work, assume that -exports_file does not work either and
9137 # implicitly export all symbols.
9138 save_LDFLAGS="$LDFLAGS"
9139 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 int foo(void) {}
9143 _ACEOF
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9146
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LDFLAGS="$save_LDFLAGS"
9151 else
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9154 fi
9155 archive_cmds_need_lc='no'
9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157 hardcode_libdir_separator=:
9158 inherit_rpath=yes
9159 link_all_deplibs=yes
9160 ;;
9161
9162 netbsd*)
9163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9165 else
9166 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9167 fi
9168 hardcode_libdir_flag_spec='-R$libdir'
9169 hardcode_direct=yes
9170 hardcode_shlibpath_var=no
9171 ;;
9172
9173 newsos6)
9174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175 hardcode_direct=yes
9176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 *nto* | *qnx*)
9182 ;;
9183
9184 openbsd*)
9185 if test -f /usr/libexec/ld.so; then
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
9188 hardcode_direct_absolute=yes
9189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193 export_dynamic_flag_spec='${wl}-E'
9194 else
9195 case $host_os in
9196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198 hardcode_libdir_flag_spec='-R$libdir'
9199 ;;
9200 *)
9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9203 ;;
9204 esac
9205 fi
9206 else
9207 ld_shlibs=no
9208 fi
9209 ;;
9210
9211 os2*)
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_minus_L=yes
9214 allow_undefined_flag=unsupported
9215 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'
9216 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9217 ;;
9218
9219 osf3*)
9220 if test "$GCC" = yes; then
9221 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9222 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9223 else
9224 allow_undefined_flag=' -expect_unresolved \*'
9225 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9226 fi
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
9230 ;;
9231
9232 osf4* | osf5*) # as osf3* with the addition of -msym flag
9233 if test "$GCC" = yes; then
9234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9235 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237 else
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9240 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~
9241 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9242
9243 # Both c and cxx compiler support -rpath directly
9244 hardcode_libdir_flag_spec='-rpath $libdir'
9245 fi
9246 archive_cmds_need_lc='no'
9247 hardcode_libdir_separator=:
9248 ;;
9249
9250 solaris*)
9251 no_undefined_flag=' -z defs'
9252 if test "$GCC" = yes; then
9253 wlarc='${wl}'
9254 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9257 else
9258 case `$CC -V 2>&1` in
9259 *"Compilers 5.0"*)
9260 wlarc=''
9261 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264 ;;
9265 *)
9266 wlarc='${wl}'
9267 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270 ;;
9271 esac
9272 fi
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 hardcode_shlibpath_var=no
9275 case $host_os in
9276 solaris2.[0-5] | solaris2.[0-5].*) ;;
9277 *)
9278 # The compiler driver will combine and reorder linker options,
9279 # but understands `-z linker_flag'. GCC discards it without `$wl',
9280 # but is careful enough not to reorder.
9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 if test "$GCC" = yes; then
9283 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9284 else
9285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9286 fi
9287 ;;
9288 esac
9289 link_all_deplibs=yes
9290 ;;
9291
9292 sunos4*)
9293 if test "x$host_vendor" = xsequent; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
9296 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 else
9298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9299 fi
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 sysv4)
9307 case $host_vendor in
9308 sni)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct=yes # is this really true???
9311 ;;
9312 siemens)
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
9315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds='$CC -r -o $output$reload_objs'
9317 hardcode_direct=no
9318 ;;
9319 motorola)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9322 ;;
9323 esac
9324 runpath_var='LD_RUN_PATH'
9325 hardcode_shlibpath_var=no
9326 ;;
9327
9328 sysv4.3*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var=no
9331 export_dynamic_flag_spec='-Bexport'
9332 ;;
9333
9334 sysv4*MP*)
9335 if test -d /usr/nec; then
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
9338 runpath_var=LD_RUN_PATH
9339 hardcode_runpath_var=yes
9340 ld_shlibs=yes
9341 fi
9342 ;;
9343
9344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9345 no_undefined_flag='${wl}-z,text'
9346 archive_cmds_need_lc=no
9347 hardcode_shlibpath_var=no
9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6*)
9360 # Note: We can NOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9365 # as -z defs.
9366 no_undefined_flag='${wl}-z,text'
9367 allow_undefined_flag='${wl}-z,nodefs'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 export_dynamic_flag_spec='${wl}-Bexport'
9374 runpath_var='LD_RUN_PATH'
9375
9376 if test "$GCC" = yes; then
9377 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 else
9380 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 fi
9383 ;;
9384
9385 uts4*)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
9389 ;;
9390
9391 *)
9392 ld_shlibs=no
9393 ;;
9394 esac
9395
9396 if test x$host_vendor = xsni; then
9397 case $host in
9398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9399 export_dynamic_flag_spec='${wl}-Blargedynsym'
9400 ;;
9401 esac
9402 fi
9403 fi
9404
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9406 $as_echo "$ld_shlibs" >&6; }
9407 test "$ld_shlibs" = no && can_build_shared=no
9408
9409 with_gnu_ld=$with_gnu_ld
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425 #
9426 # Do we need to explicitly link libc?
9427 #
9428 case "x$archive_cmds_need_lc" in
9429 x|xyes)
9430 # Assume -lc should be added
9431 archive_cmds_need_lc=yes
9432
9433 if test "$enable_shared" = yes && test "$GCC" = yes; then
9434 case $archive_cmds in
9435 *'~'*)
9436 # FIXME: we may have to deal with multi-command sequences.
9437 ;;
9438 '$CC '*)
9439 # Test whether the compiler implicitly links with -lc since on some
9440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441 # to ld, don't add -lc before -lgcc.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 $RM conftest*
9445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446
9447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9448 (eval $ac_compile) 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451 test $ac_status = 0; } 2>conftest.err; then
9452 soname=conftest
9453 lib=conftest
9454 libobjs=conftest.$ac_objext
9455 deplibs=
9456 wl=$lt_prog_compiler_wl
9457 pic_flag=$lt_prog_compiler_pic
9458 compiler_flags=-v
9459 linker_flags=-v
9460 verstring=
9461 output_objdir=.
9462 libname=conftest
9463 lt_save_allow_undefined_flag=$allow_undefined_flag
9464 allow_undefined_flag=
9465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9467 ac_status=$?
9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; }
9470 then
9471 archive_cmds_need_lc=no
9472 else
9473 archive_cmds_need_lc=yes
9474 fi
9475 allow_undefined_flag=$lt_save_allow_undefined_flag
9476 else
9477 cat conftest.err 1>&5
9478 fi
9479 $RM conftest*
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9481 $as_echo "$archive_cmds_need_lc" >&6; }
9482 ;;
9483 esac
9484 fi
9485 ;;
9486 esac
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9645 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9646
9647 if test "$GCC" = yes; then
9648 case $host_os in
9649 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9650 *) lt_awk_arg="/^libraries:/" ;;
9651 esac
9652 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9654 # if the path contains ";" then we assume it to be the separator
9655 # otherwise default to the standard path separator (i.e. ":") - it is
9656 # assumed that no part of a normal pathname contains ";" but that should
9657 # okay in the real world where ";" in dirpaths is itself problematic.
9658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 fi
9662 # Ok, now we have the path, separated by spaces, we can step through it
9663 # and add multilib dir if necessary.
9664 lt_tmp_lt_search_path_spec=
9665 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9666 for lt_sys_path in $lt_search_path_spec; do
9667 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9669 else
9670 test -d "$lt_sys_path" && \
9671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9672 fi
9673 done
9674 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9675 BEGIN {RS=" "; FS="/|\n";} {
9676 lt_foo="";
9677 lt_count=0;
9678 for (lt_i = NF; lt_i > 0; lt_i--) {
9679 if ($lt_i != "" && $lt_i != ".") {
9680 if ($lt_i == "..") {
9681 lt_count++;
9682 } else {
9683 if (lt_count == 0) {
9684 lt_foo="/" $lt_i lt_foo;
9685 } else {
9686 lt_count--;
9687 }
9688 }
9689 }
9690 }
9691 if (lt_foo != "") { lt_freq[lt_foo]++; }
9692 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9693 }'`
9694 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9695 else
9696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9697 fi
9698 library_names_spec=
9699 libname_spec='lib$name'
9700 soname_spec=
9701 shrext_cmds=".so"
9702 postinstall_cmds=
9703 postuninstall_cmds=
9704 finish_cmds=
9705 finish_eval=
9706 shlibpath_var=
9707 shlibpath_overrides_runpath=unknown
9708 version_type=none
9709 dynamic_linker="$host_os ld.so"
9710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 need_lib_prefix=unknown
9712 hardcode_into_libs=no
9713
9714 # when you set need_version to no, make sure it does not cause -set_version
9715 # flags to be left without arguments
9716 need_version=unknown
9717
9718 case $host_os in
9719 aix3*)
9720 version_type=linux
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9722 shlibpath_var=LIBPATH
9723
9724 # AIX 3 has no versioning support, so we append a major version to the name.
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 ;;
9727
9728 aix[4-9]*)
9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 hardcode_into_libs=yes
9733 if test "$host_cpu" = ia64; then
9734 # AIX 5 supports IA64
9735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 else
9738 # With GCC up to 2.95.x, collect2 would create an import file
9739 # for dependence libraries. The import file would start with
9740 # the line `#! .'. This would cause the generated library to
9741 # depend on `.', always an invalid library. This was fixed in
9742 # development snapshots of GCC prior to 3.0.
9743 case $host_os in
9744 aix4 | aix4.[01] | aix4.[01].*)
9745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9746 echo ' yes '
9747 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9748 :
9749 else
9750 can_build_shared=no
9751 fi
9752 ;;
9753 esac
9754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9755 # soname into executable. Probably we can add versioning support to
9756 # collect2, so additional links can be useful in future.
9757 if test "$aix_use_runtimelinking" = yes; then
9758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9759 # instead of lib<name>.a to let people know that these are not
9760 # typical AIX shared libraries.
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 else
9763 # We preserve .a as extension for shared libraries through AIX4.2
9764 # and later when we are not doing run time linking.
9765 library_names_spec='${libname}${release}.a $libname.a'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 fi
9768 shlibpath_var=LIBPATH
9769 fi
9770 ;;
9771
9772 amigaos*)
9773 case $host_cpu in
9774 powerpc)
9775 # Since July 2007 AmigaOS4 officially supports .so libraries.
9776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 ;;
9779 m68k)
9780 library_names_spec='$libname.ixlibrary $libname.a'
9781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9782 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9783 ;;
9784 esac
9785 ;;
9786
9787 beos*)
9788 library_names_spec='${libname}${shared_ext}'
9789 dynamic_linker="$host_os ld.so"
9790 shlibpath_var=LIBRARY_PATH
9791 ;;
9792
9793 bsdi[45]*)
9794 version_type=linux
9795 need_version=no
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9802 # the default ld.so.conf also contains /usr/contrib/lib and
9803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9804 # libtool to hard-code these into programs
9805 ;;
9806
9807 cygwin* | mingw* | pw32* | cegcc*)
9808 version_type=windows
9809 shrext_cmds=".dll"
9810 need_version=no
9811 need_lib_prefix=no
9812
9813 case $GCC,$host_os in
9814 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9815 library_names_spec='$libname.dll.a'
9816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9817 postinstall_cmds='base_file=`basename \${file}`~
9818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9819 dldir=$destdir/`dirname \$dlpath`~
9820 test -d \$dldir || mkdir -p \$dldir~
9821 $install_prog $dir/$dlname \$dldir/$dlname~
9822 chmod a+x \$dldir/$dlname~
9823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9825 fi'
9826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9827 dlpath=$dir/\$dldll~
9828 $RM \$dlpath'
9829 shlibpath_overrides_runpath=yes
9830
9831 case $host_os in
9832 cygwin*)
9833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9836 ;;
9837 mingw* | cegcc*)
9838 # MinGW DLLs use traditional 'lib' prefix
9839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9840 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9842 # It is most probably a Windows format PATH printed by
9843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9844 # path with ; separators, and with drive letters. We can handle the
9845 # drive letters (cygwin fileutils understands them), so leave them,
9846 # especially as we might pass files found there to a mingw objdump,
9847 # which wouldn't understand a cygwinified path. Ahh.
9848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9849 else
9850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9851 fi
9852 ;;
9853 pw32*)
9854 # pw32 DLLs use 'pw' prefix rather than 'lib'
9855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9856 ;;
9857 esac
9858 ;;
9859
9860 *)
9861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9862 ;;
9863 esac
9864 dynamic_linker='Win32 ld.exe'
9865 # FIXME: first we should search . and the directory the executable is in
9866 shlibpath_var=PATH
9867 ;;
9868
9869 darwin* | rhapsody*)
9870 dynamic_linker="$host_os dyld"
9871 version_type=darwin
9872 need_lib_prefix=no
9873 need_version=no
9874 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9875 soname_spec='${libname}${release}${major}$shared_ext'
9876 shlibpath_overrides_runpath=yes
9877 shlibpath_var=DYLD_LIBRARY_PATH
9878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9879
9880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9882 ;;
9883
9884 dgux*)
9885 version_type=linux
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 ;;
9892
9893 freebsd1*)
9894 dynamic_linker=no
9895 ;;
9896
9897 freebsd* | dragonfly*)
9898 # DragonFly does not have aout. When/if they implement a new
9899 # versioning mechanism, adjust this.
9900 if test -x /usr/bin/objformat; then
9901 objformat=`/usr/bin/objformat`
9902 else
9903 case $host_os in
9904 freebsd[123]*) objformat=aout ;;
9905 *) objformat=elf ;;
9906 esac
9907 fi
9908 version_type=freebsd-$objformat
9909 case $version_type in
9910 freebsd-elf*)
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9912 need_version=no
9913 need_lib_prefix=no
9914 ;;
9915 freebsd-*)
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9917 need_version=yes
9918 ;;
9919 esac
9920 shlibpath_var=LD_LIBRARY_PATH
9921 case $host_os in
9922 freebsd2*)
9923 shlibpath_overrides_runpath=yes
9924 ;;
9925 freebsd3.[01]* | freebsdelf3.[01]*)
9926 shlibpath_overrides_runpath=yes
9927 hardcode_into_libs=yes
9928 ;;
9929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9933 ;;
9934 *) # from 4.6 on, and DragonFly
9935 shlibpath_overrides_runpath=yes
9936 hardcode_into_libs=yes
9937 ;;
9938 esac
9939 ;;
9940
9941 gnu*)
9942 version_type=linux
9943 need_lib_prefix=no
9944 need_version=no
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 hardcode_into_libs=yes
9949 ;;
9950
9951 hpux9* | hpux10* | hpux11*)
9952 # Give a soname corresponding to the major version so that dld.sl refuses to
9953 # link against other versions.
9954 version_type=sunos
9955 need_lib_prefix=no
9956 need_version=no
9957 case $host_cpu in
9958 ia64*)
9959 shrext_cmds='.so'
9960 hardcode_into_libs=yes
9961 dynamic_linker="$host_os dld.so"
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 if test "X$HPUX_IA64_MODE" = X32; then
9967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9968 else
9969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9970 fi
9971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972 ;;
9973 hppa*64*)
9974 shrext_cmds='.sl'
9975 hardcode_into_libs=yes
9976 dynamic_linker="$host_os dld.sl"
9977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9983 ;;
9984 *)
9985 shrext_cmds='.sl'
9986 dynamic_linker="$host_os dld.sl"
9987 shlibpath_var=SHLIB_PATH
9988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 ;;
9992 esac
9993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9994 postinstall_cmds='chmod 555 $lib'
9995 ;;
9996
9997 interix[3-9]*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 hardcode_into_libs=yes
10007 ;;
10008
10009 irix5* | irix6* | nonstopux*)
10010 case $host_os in
10011 nonstopux*) version_type=nonstopux ;;
10012 *)
10013 if test "$lt_cv_prog_gnu_ld" = yes; then
10014 version_type=linux
10015 else
10016 version_type=irix
10017 fi ;;
10018 esac
10019 need_lib_prefix=no
10020 need_version=no
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 case $host_os in
10024 irix5* | nonstopux*)
10025 libsuff= shlibsuff=
10026 ;;
10027 *)
10028 case $LD in # libtool.m4 will add one of these switches to LD
10029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10030 libsuff= shlibsuff= libmagic=32-bit;;
10031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10032 libsuff=32 shlibsuff=N32 libmagic=N32;;
10033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10035 *) libsuff= shlibsuff= libmagic=never-match;;
10036 esac
10037 ;;
10038 esac
10039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10040 shlibpath_overrides_runpath=no
10041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10043 hardcode_into_libs=yes
10044 ;;
10045
10046 # No shared lib support for Linux oldld, aout, or coff.
10047 linux*oldld* | linux*aout* | linux*coff*)
10048 dynamic_linker=no
10049 ;;
10050
10051 # This must be Linux ELF.
10052 linux* | k*bsd*-gnu)
10053 version_type=linux
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
10061 # Some binutils ld are patched to set DT_RUNPATH
10062 save_LDFLAGS=$LDFLAGS
10063 save_libdir=$libdir
10064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 /* end confdefs.h. */
10068
10069 int
10070 main ()
10071 {
10072
10073 ;
10074 return 0;
10075 }
10076 _ACEOF
10077 if ac_fn_c_try_link "$LINENO"; then :
10078 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10079 shlibpath_overrides_runpath=yes
10080 fi
10081 fi
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 LDFLAGS=$save_LDFLAGS
10085 libdir=$save_libdir
10086
10087 # This implies no fast_install, which is unacceptable.
10088 # Some rework will be needed to allow for fast_install
10089 # before this can be enabled.
10090 hardcode_into_libs=yes
10091
10092 # find out which ABI we are using
10093 libsuff=
10094 case "$host_cpu" in
10095 x86_64*|s390x*|powerpc64*)
10096 echo '#line 10096 "configure"' > conftest.$ac_ext
10097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10098 (eval $ac_compile) 2>&5
10099 ac_status=$?
10100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101 test $ac_status = 0; }; then
10102 case `/usr/bin/file conftest.$ac_objext` in
10103 *64-bit*)
10104 libsuff=64
10105 ;;
10106 esac
10107 fi
10108 rm -rf conftest*
10109 ;;
10110 esac
10111
10112 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10113
10114 # Append ld.so.conf contents to the search path
10115 if test -f /etc/ld.so.conf; then
10116 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;/^$/d' | tr '\n' ' '`
10117 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10118 fi
10119
10120 # We used to test for /lib/ld.so.1 and disable shared libraries on
10121 # powerpc, because MkLinux only supported shared libraries with the
10122 # GNU dynamic linker. Since this was broken with cross compilers,
10123 # most powerpc-linux boxes support dynamic linking these days and
10124 # people can always --disable-shared, the test was removed, and we
10125 # assume the GNU/Linux dynamic linker is in use.
10126 dynamic_linker='GNU/Linux ld.so'
10127 ;;
10128
10129 netbsd*)
10130 version_type=sunos
10131 need_lib_prefix=no
10132 need_version=no
10133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10136 dynamic_linker='NetBSD (a.out) ld.so'
10137 else
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 dynamic_linker='NetBSD ld.elf_so'
10141 fi
10142 shlibpath_var=LD_LIBRARY_PATH
10143 shlibpath_overrides_runpath=yes
10144 hardcode_into_libs=yes
10145 ;;
10146
10147 newsos6)
10148 version_type=linux
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=yes
10152 ;;
10153
10154 *nto* | *qnx*)
10155 version_type=qnx
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=no
10162 hardcode_into_libs=yes
10163 dynamic_linker='ldqnx.so'
10164 ;;
10165
10166 openbsd*)
10167 version_type=sunos
10168 sys_lib_dlsearch_path_spec="/usr/lib"
10169 need_lib_prefix=no
10170 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10171 case $host_os in
10172 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10173 *) need_version=no ;;
10174 esac
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10176 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10177 shlibpath_var=LD_LIBRARY_PATH
10178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10179 case $host_os in
10180 openbsd2.[89] | openbsd2.[89].*)
10181 shlibpath_overrides_runpath=no
10182 ;;
10183 *)
10184 shlibpath_overrides_runpath=yes
10185 ;;
10186 esac
10187 else
10188 shlibpath_overrides_runpath=yes
10189 fi
10190 ;;
10191
10192 os2*)
10193 libname_spec='$name'
10194 shrext_cmds=".dll"
10195 need_lib_prefix=no
10196 library_names_spec='$libname${shared_ext} $libname.a'
10197 dynamic_linker='OS/2 ld.exe'
10198 shlibpath_var=LIBPATH
10199 ;;
10200
10201 osf3* | osf4* | osf5*)
10202 version_type=osf
10203 need_lib_prefix=no
10204 need_version=no
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10209 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10210 ;;
10211
10212 rdos*)
10213 dynamic_linker=no
10214 ;;
10215
10216 solaris*)
10217 version_type=linux
10218 need_lib_prefix=no
10219 need_version=no
10220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 shlibpath_var=LD_LIBRARY_PATH
10223 shlibpath_overrides_runpath=yes
10224 hardcode_into_libs=yes
10225 # ldd complains unless libraries are executable
10226 postinstall_cmds='chmod +x $lib'
10227 ;;
10228
10229 sunos4*)
10230 version_type=sunos
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 if test "$with_gnu_ld" = yes; then
10236 need_lib_prefix=no
10237 fi
10238 need_version=yes
10239 ;;
10240
10241 sysv4 | sysv4.3*)
10242 version_type=linux
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 case $host_vendor in
10247 sni)
10248 shlibpath_overrides_runpath=no
10249 need_lib_prefix=no
10250 runpath_var=LD_RUN_PATH
10251 ;;
10252 siemens)
10253 need_lib_prefix=no
10254 ;;
10255 motorola)
10256 need_lib_prefix=no
10257 need_version=no
10258 shlibpath_overrides_runpath=no
10259 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10260 ;;
10261 esac
10262 ;;
10263
10264 sysv4*MP*)
10265 if test -d /usr/nec ;then
10266 version_type=linux
10267 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10268 soname_spec='$libname${shared_ext}.$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 fi
10271 ;;
10272
10273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10274 version_type=freebsd-elf
10275 need_lib_prefix=no
10276 need_version=no
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10278 soname_spec='${libname}${release}${shared_ext}$major'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10282 if test "$with_gnu_ld" = yes; then
10283 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10284 else
10285 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10286 case $host_os in
10287 sco3.2v5*)
10288 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10289 ;;
10290 esac
10291 fi
10292 sys_lib_dlsearch_path_spec='/usr/lib'
10293 ;;
10294
10295 tpf*)
10296 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10297 version_type=linux
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=no
10303 hardcode_into_libs=yes
10304 ;;
10305
10306 uts4*)
10307 version_type=linux
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309 soname_spec='${libname}${release}${shared_ext}$major'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 ;;
10312
10313 *)
10314 dynamic_linker=no
10315 ;;
10316 esac
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10318 $as_echo "$dynamic_linker" >&6; }
10319 test "$dynamic_linker" = no && can_build_shared=no
10320
10321 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10322 if test "$GCC" = yes; then
10323 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10324 fi
10325
10326 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10327 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10328 fi
10329 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10330 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10331 fi
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10420 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10421 hardcode_action=
10422 if test -n "$hardcode_libdir_flag_spec" ||
10423 test -n "$runpath_var" ||
10424 test "X$hardcode_automatic" = "Xyes" ; then
10425
10426 # We can hardcode non-existent directories.
10427 if test "$hardcode_direct" != no &&
10428 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10429 # have to relink, otherwise we might link with an installed library
10430 # when we should be linking with a yet-to-be-installed one
10431 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10432 test "$hardcode_minus_L" != no; then
10433 # Linking always hardcodes the temporary library directory.
10434 hardcode_action=relink
10435 else
10436 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10437 hardcode_action=immediate
10438 fi
10439 else
10440 # We cannot hardcode anything, or else we can only hardcode existing
10441 # directories.
10442 hardcode_action=unsupported
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10445 $as_echo "$hardcode_action" >&6; }
10446
10447 if test "$hardcode_action" = relink ||
10448 test "$inherit_rpath" = yes; then
10449 # Fast installation is not supported
10450 enable_fast_install=no
10451 elif test "$shlibpath_overrides_runpath" = yes ||
10452 test "$enable_shared" = no; then
10453 # Fast installation is not necessary
10454 enable_fast_install=needless
10455 fi
10456
10457
10458
10459
10460
10461
10462 if test "x$enable_dlopen" != xyes; then
10463 enable_dlopen=unknown
10464 enable_dlopen_self=unknown
10465 enable_dlopen_self_static=unknown
10466 else
10467 lt_cv_dlopen=no
10468 lt_cv_dlopen_libs=
10469
10470 case $host_os in
10471 beos*)
10472 lt_cv_dlopen="load_add_on"
10473 lt_cv_dlopen_libs=
10474 lt_cv_dlopen_self=yes
10475 ;;
10476
10477 mingw* | pw32* | cegcc*)
10478 lt_cv_dlopen="LoadLibrary"
10479 lt_cv_dlopen_libs=
10480 ;;
10481
10482 cygwin*)
10483 lt_cv_dlopen="dlopen"
10484 lt_cv_dlopen_libs=
10485 ;;
10486
10487 darwin*)
10488 # if libdl is installed we need to link against it
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10491 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-ldl $LIBS"
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10498
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char dlopen ();
10506 int
10507 main ()
10508 {
10509 return dlopen ();
10510 ;
10511 return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_dl_dlopen=yes
10516 else
10517 ac_cv_lib_dl_dlopen=no
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10525 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10526 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527 else
10528
10529 lt_cv_dlopen="dyld"
10530 lt_cv_dlopen_libs=
10531 lt_cv_dlopen_self=yes
10532
10533 fi
10534
10535 ;;
10536
10537 *)
10538 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10539 if test "x$ac_cv_func_shl_load" = x""yes; then :
10540 lt_cv_dlopen="shl_load"
10541 else
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10544 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-ldld $LIBS"
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10555 #ifdef __cplusplus
10556 extern "C"
10557 #endif
10558 char shl_load ();
10559 int
10560 main ()
10561 {
10562 return shl_load ();
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_dld_shl_load=yes
10569 else
10570 ac_cv_lib_dld_shl_load=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10575 fi
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10578 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10579 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10580 else
10581 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10582 if test "x$ac_cv_func_dlopen" = x""yes; then :
10583 lt_cv_dlopen="dlopen"
10584 else
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10586 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-ldl $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char dlopen ();
10602 int
10603 main ()
10604 {
10605 return dlopen ();
10606 ;
10607 return 0;
10608 }
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_lib_dl_dlopen=yes
10612 else
10613 ac_cv_lib_dl_dlopen=no
10614 fi
10615 rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10618 fi
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10620 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10621 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10622 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623 else
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10625 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10626 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 ac_check_lib_save_LIBS=$LIBS
10630 LIBS="-lsvld $LIBS"
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633
10634 /* Override any GCC internal prototype to avoid an error.
10635 Use char because int might match the return type of a GCC
10636 builtin and then its argument prototype would still apply. */
10637 #ifdef __cplusplus
10638 extern "C"
10639 #endif
10640 char dlopen ();
10641 int
10642 main ()
10643 {
10644 return dlopen ();
10645 ;
10646 return 0;
10647 }
10648 _ACEOF
10649 if ac_fn_c_try_link "$LINENO"; then :
10650 ac_cv_lib_svld_dlopen=yes
10651 else
10652 ac_cv_lib_svld_dlopen=no
10653 fi
10654 rm -f core conftest.err conftest.$ac_objext \
10655 conftest$ac_exeext conftest.$ac_ext
10656 LIBS=$ac_check_lib_save_LIBS
10657 fi
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10659 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10660 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10662 else
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10664 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10665 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 ac_check_lib_save_LIBS=$LIBS
10669 LIBS="-ldld $LIBS"
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10672
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char dld_link ();
10680 int
10681 main ()
10682 {
10683 return dld_link ();
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dld_dld_link=yes
10690 else
10691 ac_cv_lib_dld_dld_link=no
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10699 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10701 fi
10702
10703
10704 fi
10705
10706
10707 fi
10708
10709
10710 fi
10711
10712
10713 fi
10714
10715
10716 fi
10717
10718 ;;
10719 esac
10720
10721 if test "x$lt_cv_dlopen" != xno; then
10722 enable_dlopen=yes
10723 else
10724 enable_dlopen=no
10725 fi
10726
10727 case $lt_cv_dlopen in
10728 dlopen)
10729 save_CPPFLAGS="$CPPFLAGS"
10730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10731
10732 save_LDFLAGS="$LDFLAGS"
10733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734
10735 save_LIBS="$LIBS"
10736 LIBS="$lt_cv_dlopen_libs $LIBS"
10737
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10740 if test "${lt_cv_dlopen_self+set}" = set; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 if test "$cross_compiling" = yes; then :
10744 lt_cv_dlopen_self=cross
10745 else
10746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747 lt_status=$lt_dlunknown
10748 cat > conftest.$ac_ext <<_LT_EOF
10749 #line 10749 "configure"
10750 #include "confdefs.h"
10751
10752 #if HAVE_DLFCN_H
10753 #include <dlfcn.h>
10754 #endif
10755
10756 #include <stdio.h>
10757
10758 #ifdef RTLD_GLOBAL
10759 # define LT_DLGLOBAL RTLD_GLOBAL
10760 #else
10761 # ifdef DL_GLOBAL
10762 # define LT_DLGLOBAL DL_GLOBAL
10763 # else
10764 # define LT_DLGLOBAL 0
10765 # endif
10766 #endif
10767
10768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10769 find out it does not work in some platform. */
10770 #ifndef LT_DLLAZY_OR_NOW
10771 # ifdef RTLD_LAZY
10772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10773 # else
10774 # ifdef DL_LAZY
10775 # define LT_DLLAZY_OR_NOW DL_LAZY
10776 # else
10777 # ifdef RTLD_NOW
10778 # define LT_DLLAZY_OR_NOW RTLD_NOW
10779 # else
10780 # ifdef DL_NOW
10781 # define LT_DLLAZY_OR_NOW DL_NOW
10782 # else
10783 # define LT_DLLAZY_OR_NOW 0
10784 # endif
10785 # endif
10786 # endif
10787 # endif
10788 #endif
10789
10790 void fnord() { int i=42;}
10791 int main ()
10792 {
10793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10794 int status = $lt_dlunknown;
10795
10796 if (self)
10797 {
10798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10799 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10800 /* dlclose (self); */
10801 }
10802 else
10803 puts (dlerror ());
10804
10805 return status;
10806 }
10807 _LT_EOF
10808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10809 (eval $ac_link) 2>&5
10810 ac_status=$?
10811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10813 (./conftest; exit; ) >&5 2>/dev/null
10814 lt_status=$?
10815 case x$lt_status in
10816 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10819 esac
10820 else :
10821 # compilation failed
10822 lt_cv_dlopen_self=no
10823 fi
10824 fi
10825 rm -fr conftest*
10826
10827
10828 fi
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10830 $as_echo "$lt_cv_dlopen_self" >&6; }
10831
10832 if test "x$lt_cv_dlopen_self" = xyes; then
10833 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10835 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10836 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839 if test "$cross_compiling" = yes; then :
10840 lt_cv_dlopen_self_static=cross
10841 else
10842 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843 lt_status=$lt_dlunknown
10844 cat > conftest.$ac_ext <<_LT_EOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10847
10848 #if HAVE_DLFCN_H
10849 #include <dlfcn.h>
10850 #endif
10851
10852 #include <stdio.h>
10853
10854 #ifdef RTLD_GLOBAL
10855 # define LT_DLGLOBAL RTLD_GLOBAL
10856 #else
10857 # ifdef DL_GLOBAL
10858 # define LT_DLGLOBAL DL_GLOBAL
10859 # else
10860 # define LT_DLGLOBAL 0
10861 # endif
10862 #endif
10863
10864 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865 find out it does not work in some platform. */
10866 #ifndef LT_DLLAZY_OR_NOW
10867 # ifdef RTLD_LAZY
10868 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10869 # else
10870 # ifdef DL_LAZY
10871 # define LT_DLLAZY_OR_NOW DL_LAZY
10872 # else
10873 # ifdef RTLD_NOW
10874 # define LT_DLLAZY_OR_NOW RTLD_NOW
10875 # else
10876 # ifdef DL_NOW
10877 # define LT_DLLAZY_OR_NOW DL_NOW
10878 # else
10879 # define LT_DLLAZY_OR_NOW 0
10880 # endif
10881 # endif
10882 # endif
10883 # endif
10884 #endif
10885
10886 void fnord() { int i=42;}
10887 int main ()
10888 {
10889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10890 int status = $lt_dlunknown;
10891
10892 if (self)
10893 {
10894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10896 /* dlclose (self); */
10897 }
10898 else
10899 puts (dlerror ());
10900
10901 return status;
10902 }
10903 _LT_EOF
10904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10905 (eval $ac_link) 2>&5
10906 ac_status=$?
10907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10909 (./conftest; exit; ) >&5 2>/dev/null
10910 lt_status=$?
10911 case x$lt_status in
10912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10914 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10915 esac
10916 else :
10917 # compilation failed
10918 lt_cv_dlopen_self_static=no
10919 fi
10920 fi
10921 rm -fr conftest*
10922
10923
10924 fi
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10926 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10927 fi
10928
10929 CPPFLAGS="$save_CPPFLAGS"
10930 LDFLAGS="$save_LDFLAGS"
10931 LIBS="$save_LIBS"
10932 ;;
10933 esac
10934
10935 case $lt_cv_dlopen_self in
10936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10937 *) enable_dlopen_self=unknown ;;
10938 esac
10939
10940 case $lt_cv_dlopen_self_static in
10941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10942 *) enable_dlopen_self_static=unknown ;;
10943 esac
10944 fi
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962 striplib=
10963 old_striplib=
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10965 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10966 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10967 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10968 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10970 $as_echo "yes" >&6; }
10971 else
10972 # FIXME - insert some real tests, host_os isn't really good enough
10973 case $host_os in
10974 darwin*)
10975 if test -n "$STRIP" ; then
10976 striplib="$STRIP -x"
10977 old_striplib="$STRIP -S"
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979 $as_echo "yes" >&6; }
10980 else
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 $as_echo "no" >&6; }
10983 fi
10984 ;;
10985 *)
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; }
10988 ;;
10989 esac
10990 fi
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003 # Report which library types will actually be built
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11005 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11007 $as_echo "$can_build_shared" >&6; }
11008
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11010 $as_echo_n "checking whether to build shared libraries... " >&6; }
11011 test "$can_build_shared" = "no" && enable_shared=no
11012
11013 # On AIX, shared libraries and static libraries use the same namespace, and
11014 # are all built from PIC.
11015 case $host_os in
11016 aix3*)
11017 test "$enable_shared" = yes && enable_static=no
11018 if test -n "$RANLIB"; then
11019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11020 postinstall_cmds='$RANLIB $lib'
11021 fi
11022 ;;
11023
11024 aix[4-9]*)
11025 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11026 test "$enable_shared" = yes && enable_static=no
11027 fi
11028 ;;
11029 esac
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11031 $as_echo "$enable_shared" >&6; }
11032
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11034 $as_echo_n "checking whether to build static libraries... " >&6; }
11035 # Make sure either enable_shared or enable_static is yes.
11036 test "$enable_shared" = yes || enable_static=yes
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11038 $as_echo "$enable_static" >&6; }
11039
11040
11041
11042
11043 fi
11044 ac_ext=c
11045 ac_cpp='$CPP $CPPFLAGS'
11046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11049
11050 CC="$lt_save_CC"
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064 ac_config_commands="$ac_config_commands libtool"
11065
11066
11067
11068
11069 # Only expand once:
11070
11071
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11073 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11074 if test "${libltdl_cv_shlibext+set}" = set; then :
11075 $as_echo_n "(cached) " >&6
11076 else
11077
11078 module=yes
11079 eval libltdl_cv_shlibext=$shrext_cmds
11080
11081 fi
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11083 $as_echo "$libltdl_cv_shlibext" >&6; }
11084 if test -n "$libltdl_cv_shlibext"; then
11085
11086 cat >>confdefs.h <<_ACEOF
11087 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11088 _ACEOF
11089
11090 fi
11091
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11093 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11094 if test "${lt_cv_module_path_var+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 lt_cv_module_path_var="$shlibpath_var"
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11100 $as_echo "$lt_cv_module_path_var" >&6; }
11101 if test -n "$lt_cv_module_path_var"; then
11102
11103 cat >>confdefs.h <<_ACEOF
11104 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11105 _ACEOF
11106
11107 fi
11108
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11110 $as_echo_n "checking for the default library search path... " >&6; }
11111 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11114 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11115 fi
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11117 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11118 if test -n "$lt_cv_sys_dlsearch_path"; then
11119 sys_dlsearch_path=
11120 for dir in $lt_cv_sys_dlsearch_path; do
11121 if test -z "$sys_dlsearch_path"; then
11122 sys_dlsearch_path="$dir"
11123 else
11124 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11125 fi
11126 done
11127
11128 cat >>confdefs.h <<_ACEOF
11129 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11130 _ACEOF
11131
11132 fi
11133
11134
11135 LT_DLLOADERS=
11136
11137
11138 ac_ext=c
11139 ac_cpp='$CPP $CPPFLAGS'
11140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11143
11144
11145 LIBADD_DLOPEN=
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11147 $as_echo_n "checking for library containing dlopen... " >&6; }
11148 if test "${ac_cv_search_dlopen+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 ac_func_search_save_LIBS=$LIBS
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11158 #ifdef __cplusplus
11159 extern "C"
11160 #endif
11161 char dlopen ();
11162 int
11163 main ()
11164 {
11165 return dlopen ();
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 for ac_lib in '' dl; do
11171 if test -z "$ac_lib"; then
11172 ac_res="none required"
11173 else
11174 ac_res=-l$ac_lib
11175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11176 fi
11177 if ac_fn_c_try_link "$LINENO"; then :
11178 ac_cv_search_dlopen=$ac_res
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext
11182 if test "${ac_cv_search_dlopen+set}" = set; then :
11183 break
11184 fi
11185 done
11186 if test "${ac_cv_search_dlopen+set}" = set; then :
11187
11188 else
11189 ac_cv_search_dlopen=no
11190 fi
11191 rm conftest.$ac_ext
11192 LIBS=$ac_func_search_save_LIBS
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11195 $as_echo "$ac_cv_search_dlopen" >&6; }
11196 ac_res=$ac_cv_search_dlopen
11197 if test "$ac_res" != no; then :
11198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11199
11200 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11201
11202 if test "$ac_cv_search_dlopen" != "none required" ; then
11203 LIBADD_DLOPEN="-ldl"
11204 fi
11205 libltdl_cv_lib_dl_dlopen="yes"
11206 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11207 else
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #if HAVE_DLFCN_H
11211 # include <dlfcn.h>
11212 #endif
11213
11214 int
11215 main ()
11216 {
11217 dlopen(0, 0);
11218 ;
11219 return 0;
11220 }
11221 _ACEOF
11222 if ac_fn_c_try_link "$LINENO"; then :
11223
11224 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11225
11226 libltdl_cv_func_dlopen="yes"
11227 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11230 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11231 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 ac_check_lib_save_LIBS=$LIBS
11235 LIBS="-lsvld $LIBS"
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char dlopen ();
11246 int
11247 main ()
11248 {
11249 return dlopen ();
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 ac_cv_lib_svld_dlopen=yes
11256 else
11257 ac_cv_lib_svld_dlopen=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11264 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11265 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11266
11267 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11268
11269 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11270 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11271 fi
11272
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 fi
11277
11278 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11279 then
11280 lt_save_LIBS="$LIBS"
11281 LIBS="$LIBS $LIBADD_DLOPEN"
11282 for ac_func in dlerror
11283 do :
11284 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11285 if test "x$ac_cv_func_dlerror" = x""yes; then :
11286 cat >>confdefs.h <<_ACEOF
11287 #define HAVE_DLERROR 1
11288 _ACEOF
11289
11290 fi
11291 done
11292
11293 LIBS="$lt_save_LIBS"
11294 fi
11295
11296
11297 LIBADD_SHL_LOAD=
11298 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11299 if test "x$ac_cv_func_shl_load" = x""yes; then :
11300
11301 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11302
11303 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11304 else
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
11309 else
11310 ac_check_lib_save_LIBS=$LIBS
11311 LIBS="-ldld $LIBS"
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314
11315 /* Override any GCC internal prototype to avoid an error.
11316 Use char because int might match the return type of a GCC
11317 builtin and then its argument prototype would still apply. */
11318 #ifdef __cplusplus
11319 extern "C"
11320 #endif
11321 char shl_load ();
11322 int
11323 main ()
11324 {
11325 return shl_load ();
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_link "$LINENO"; then :
11331 ac_cv_lib_dld_shl_load=yes
11332 else
11333 ac_cv_lib_dld_shl_load=no
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 LIBS=$ac_check_lib_save_LIBS
11338 fi
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11341 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11342
11343 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11344
11345 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11346 LIBADD_SHL_LOAD="-ldld"
11347 fi
11348
11349 fi
11350
11351
11352
11353 case $host_os in
11354 darwin[1567].*)
11355 # We only want this for pre-Mac OS X 10.4.
11356 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11357 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11358
11359 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11360
11361 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11362 fi
11363
11364 ;;
11365 beos*)
11366 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11367 ;;
11368 cygwin* | mingw* | os2* | pw32*)
11369 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11370 "
11371 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11372 ac_have_decl=1
11373 else
11374 ac_have_decl=0
11375 fi
11376
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11379 _ACEOF
11380
11381 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11382 ;;
11383 esac
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11386 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11387 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-ldld $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char dld_link ();
11402 int
11403 main ()
11404 {
11405 return dld_link ();
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dld_dld_link=yes
11412 else
11413 ac_cv_lib_dld_dld_link=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11420 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11421 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11422
11423 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11424
11425 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11426 fi
11427
11428
11429
11430
11431 LT_DLPREOPEN=
11432 if test -n "$LT_DLLOADERS"
11433 then
11434 for lt_loader in $LT_DLLOADERS; do
11435 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11436 done
11437
11438 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11439
11440 fi
11441
11442
11443 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11444
11445
11446 ac_ext=c
11447 ac_cpp='$CPP $CPPFLAGS'
11448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11451
11452
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11454 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11455 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 lt_cv_sys_symbol_underscore=no
11459 cat > conftest.$ac_ext <<_LT_EOF
11460 void nm_test_func(){}
11461 int main(){nm_test_func;return 0;}
11462 _LT_EOF
11463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11464 (eval $ac_compile) 2>&5
11465 ac_status=$?
11466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467 test $ac_status = 0; }; then
11468 # Now try to grab the symbols.
11469 ac_nlist=conftest.nm
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11471 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11472 ac_status=$?
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; } && test -s "$ac_nlist"; then
11475 # See whether the symbols have a leading underscore.
11476 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11477 lt_cv_sys_symbol_underscore=yes
11478 else
11479 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11480 :
11481 else
11482 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11483 fi
11484 fi
11485 else
11486 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11487 fi
11488 else
11489 echo "configure: failed program was:" >&5
11490 cat conftest.c >&5
11491 fi
11492 rm -rf conftest*
11493
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11496 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11497 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11498
11499
11500 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11501 if test x"$libltdl_cv_func_dlopen" = xyes ||
11502 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11504 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11505 if test "${libltdl_cv_need_uscore+set}" = set; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 libltdl_cv_need_uscore=unknown
11509 save_LIBS="$LIBS"
11510 LIBS="$LIBS $LIBADD_DLOPEN"
11511 if test "$cross_compiling" = yes; then :
11512 libltdl_cv_need_uscore=cross
11513 else
11514 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11515 lt_status=$lt_dlunknown
11516 cat > conftest.$ac_ext <<_LT_EOF
11517 #line 11517 "configure"
11518 #include "confdefs.h"
11519
11520 #if HAVE_DLFCN_H
11521 #include <dlfcn.h>
11522 #endif
11523
11524 #include <stdio.h>
11525
11526 #ifdef RTLD_GLOBAL
11527 # define LT_DLGLOBAL RTLD_GLOBAL
11528 #else
11529 # ifdef DL_GLOBAL
11530 # define LT_DLGLOBAL DL_GLOBAL
11531 # else
11532 # define LT_DLGLOBAL 0
11533 # endif
11534 #endif
11535
11536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11537 find out it does not work in some platform. */
11538 #ifndef LT_DLLAZY_OR_NOW
11539 # ifdef RTLD_LAZY
11540 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11541 # else
11542 # ifdef DL_LAZY
11543 # define LT_DLLAZY_OR_NOW DL_LAZY
11544 # else
11545 # ifdef RTLD_NOW
11546 # define LT_DLLAZY_OR_NOW RTLD_NOW
11547 # else
11548 # ifdef DL_NOW
11549 # define LT_DLLAZY_OR_NOW DL_NOW
11550 # else
11551 # define LT_DLLAZY_OR_NOW 0
11552 # endif
11553 # endif
11554 # endif
11555 # endif
11556 #endif
11557
11558 void fnord() { int i=42;}
11559 int main ()
11560 {
11561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562 int status = $lt_dlunknown;
11563
11564 if (self)
11565 {
11566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11567 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11568 /* dlclose (self); */
11569 }
11570 else
11571 puts (dlerror ());
11572
11573 return status;
11574 }
11575 _LT_EOF
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577 (eval $ac_link) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581 (./conftest; exit; ) >&5 2>/dev/null
11582 lt_status=$?
11583 case x$lt_status in
11584 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11585 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11586 x$lt_dlunknown|x*) ;;
11587 esac
11588 else :
11589 # compilation failed
11590
11591 fi
11592 fi
11593 rm -fr conftest*
11594
11595 LIBS="$save_LIBS"
11596
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11599 $as_echo "$libltdl_cv_need_uscore" >&6; }
11600 fi
11601 fi
11602
11603 if test x"$libltdl_cv_need_uscore" = xyes; then
11604
11605 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11606
11607 fi
11608
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11610 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11611 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11612 $as_echo_n "(cached) " >&6
11613 else
11614 # PORTME does your system automatically load deplibs for dlopen?
11615 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11616 # For now, we just catch OSes we know something about -- in the
11617 # future, we'll try test this programmatically.
11618 lt_cv_sys_dlopen_deplibs=unknown
11619 case $host_os in
11620 aix3*|aix4.1.*|aix4.2.*)
11621 # Unknown whether this is true for these versions of AIX, but
11622 # we want this `case' here to explicitly catch those versions.
11623 lt_cv_sys_dlopen_deplibs=unknown
11624 ;;
11625 aix[4-9]*)
11626 lt_cv_sys_dlopen_deplibs=yes
11627 ;;
11628 amigaos*)
11629 case $host_cpu in
11630 powerpc)
11631 lt_cv_sys_dlopen_deplibs=no
11632 ;;
11633 esac
11634 ;;
11635 darwin*)
11636 # Assuming the user has installed a libdl from somewhere, this is true
11637 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11638 lt_cv_sys_dlopen_deplibs=yes
11639 ;;
11640 freebsd* | dragonfly*)
11641 lt_cv_sys_dlopen_deplibs=yes
11642 ;;
11643 gnu* | linux* | k*bsd*-gnu)
11644 # GNU and its variants, using gnu ld.so (Glibc)
11645 lt_cv_sys_dlopen_deplibs=yes
11646 ;;
11647 hpux10*|hpux11*)
11648 lt_cv_sys_dlopen_deplibs=yes
11649 ;;
11650 interix*)
11651 lt_cv_sys_dlopen_deplibs=yes
11652 ;;
11653 irix[12345]*|irix6.[01]*)
11654 # Catch all versions of IRIX before 6.2, and indicate that we don't
11655 # know how it worked for any of those versions.
11656 lt_cv_sys_dlopen_deplibs=unknown
11657 ;;
11658 irix*)
11659 # The case above catches anything before 6.2, and it's known that
11660 # at 6.2 and later dlopen does load deplibs.
11661 lt_cv_sys_dlopen_deplibs=yes
11662 ;;
11663 netbsd*)
11664 lt_cv_sys_dlopen_deplibs=yes
11665 ;;
11666 openbsd*)
11667 lt_cv_sys_dlopen_deplibs=yes
11668 ;;
11669 osf[1234]*)
11670 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11671 # it did *not* use an RPATH in a shared library to find objects the
11672 # library depends on, so we explicitly say `no'.
11673 lt_cv_sys_dlopen_deplibs=no
11674 ;;
11675 osf5.0|osf5.0a|osf5.1)
11676 # dlopen *does* load deplibs and with the right loader patch applied
11677 # it even uses RPATH in a shared library to search for shared objects
11678 # that the library depends on, but there's no easy way to know if that
11679 # patch is installed. Since this is the case, all we can really
11680 # say is unknown -- it depends on the patch being installed. If
11681 # it is, this changes to `yes'. Without it, it would be `no'.
11682 lt_cv_sys_dlopen_deplibs=unknown
11683 ;;
11684 osf*)
11685 # the two cases above should catch all versions of osf <= 5.1. Read
11686 # the comments above for what we know about them.
11687 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11688 # is used to find them so we can finally say `yes'.
11689 lt_cv_sys_dlopen_deplibs=yes
11690 ;;
11691 qnx*)
11692 lt_cv_sys_dlopen_deplibs=yes
11693 ;;
11694 solaris*)
11695 lt_cv_sys_dlopen_deplibs=yes
11696 ;;
11697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11698 libltdl_cv_sys_dlopen_deplibs=yes
11699 ;;
11700 esac
11701
11702 fi
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11704 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11705 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11706
11707 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11708
11709 fi
11710
11711 :
11712
11713 for ac_header in argz.h
11714 do :
11715 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11716 "
11717 if test "x$ac_cv_header_argz_h" = x""yes; then :
11718 cat >>confdefs.h <<_ACEOF
11719 #define HAVE_ARGZ_H 1
11720 _ACEOF
11721
11722 fi
11723
11724 done
11725
11726
11727 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11728 # include <argz.h>
11729 #endif
11730 "
11731 if test "x$ac_cv_type_error_t" = x""yes; then :
11732
11733 cat >>confdefs.h <<_ACEOF
11734 #define HAVE_ERROR_T 1
11735 _ACEOF
11736
11737
11738 else
11739
11740 $as_echo "#define error_t int" >>confdefs.h
11741
11742
11743 $as_echo "#define __error_t_defined 1" >>confdefs.h
11744
11745 fi
11746
11747
11748 ARGZ_H=
11749 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11750 argz_next argz_stringify
11751 do :
11752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11754 eval as_val=\$$as_ac_var
11755 if test "x$as_val" = x""yes; then :
11756 cat >>confdefs.h <<_ACEOF
11757 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758 _ACEOF
11759
11760 else
11761 ARGZ_H=argz.h;
11762
11763 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11764
11765 fi
11766 done
11767
11768
11769 if test -z "$ARGZ_H"; then :
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11771 $as_echo_n "checking if argz actually works... " >&6; }
11772 if test "${lt_cv_sys_argz_works+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 case $host_os in #(
11776 *cygwin*)
11777 lt_cv_sys_argz_works=no
11778 if test "$cross_compiling" != no; then
11779 lt_cv_sys_argz_works="guessing no"
11780 else
11781 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11782 save_IFS=$IFS
11783 IFS=-.
11784 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11785 IFS=$save_IFS
11786 lt_os_major=${2-0}
11787 lt_os_minor=${3-0}
11788 lt_os_micro=${4-0}
11789 if test "$lt_os_major" -gt 1 \
11790 || { test "$lt_os_major" -eq 1 \
11791 && { test "$lt_os_minor" -gt 5 \
11792 || { test "$lt_os_minor" -eq 5 \
11793 && test "$lt_os_micro" -gt 24; }; }; }; then
11794 lt_cv_sys_argz_works=yes
11795 fi
11796 fi
11797 ;; #(
11798 *) lt_cv_sys_argz_works=yes ;;
11799 esac
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11802 $as_echo "$lt_cv_sys_argz_works" >&6; }
11803 if test $lt_cv_sys_argz_works = yes; then :
11804
11805 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11806
11807 else
11808 ARGZ_H=argz.h
11809
11810
11811 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11812
11813 fi
11814 fi
11815
11816
11817
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11819 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11820 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11824 libltdl_cv_preloaded_symbols=yes
11825 else
11826 libltdl_cv_preloaded_symbols=no
11827 fi
11828
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11831 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11832 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11833
11834 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11835
11836 fi
11837
11838
11839
11840 # Set options
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853 # Check whether --with-included_ltdl was given.
11854 if test "${with_included_ltdl+set}" = set; then :
11855 withval=$with_included_ltdl;
11856 fi
11857
11858
11859 if test "x$with_included_ltdl" != xyes; then
11860 # We are not being forced to use the included libltdl sources, so
11861 # decide whether there is a useful installed version we can use.
11862 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11863
11864 "
11865 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11866 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11867 #include <ltdl.h>
11868 "
11869 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11871 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11872 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11873 $as_echo_n "(cached) " >&6
11874 else
11875 ac_check_lib_save_LIBS=$LIBS
11876 LIBS="-lltdl $LIBS"
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 /* end confdefs.h. */
11879
11880 /* Override any GCC internal prototype to avoid an error.
11881 Use char because int might match the return type of a GCC
11882 builtin and then its argument prototype would still apply. */
11883 #ifdef __cplusplus
11884 extern "C"
11885 #endif
11886 char lt_dladvise_preload ();
11887 int
11888 main ()
11889 {
11890 return lt_dladvise_preload ();
11891 ;
11892 return 0;
11893 }
11894 _ACEOF
11895 if ac_fn_c_try_link "$LINENO"; then :
11896 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11897 else
11898 ac_cv_lib_ltdl_lt_dladvise_preload=no
11899 fi
11900 rm -f core conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11902 LIBS=$ac_check_lib_save_LIBS
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11905 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11906 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11907 with_included_ltdl=no
11908 else
11909 with_included_ltdl=yes
11910 fi
11911
11912 else
11913 with_included_ltdl=yes
11914 fi
11915
11916 else
11917 with_included_ltdl=yes
11918 fi
11919
11920
11921 fi
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931 # Check whether --with-ltdl_include was given.
11932 if test "${with_ltdl_include+set}" = set; then :
11933 withval=$with_ltdl_include;
11934 fi
11935
11936
11937 if test -n "$with_ltdl_include"; then
11938 if test -f "$with_ltdl_include/ltdl.h"; then :
11939 else
11940 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11941 fi
11942 else
11943 with_ltdl_include=no
11944 fi
11945
11946
11947 # Check whether --with-ltdl_lib was given.
11948 if test "${with_ltdl_lib+set}" = set; then :
11949 withval=$with_ltdl_lib;
11950 fi
11951
11952
11953 if test -n "$with_ltdl_lib"; then
11954 if test -f "$with_ltdl_lib/libltdl.la"; then :
11955 else
11956 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11957 fi
11958 else
11959 with_ltdl_lib=no
11960 fi
11961
11962 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11963 ,yes,no,no,)
11964 case $enable_ltdl_convenience in
11965 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11966 "") enable_ltdl_convenience=yes
11967 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11968 esac
11969 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11970 LTDLDEPS=$LIBLTDL
11971 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11972
11973
11974
11975
11976
11977 # For backwards non-gettext consistent compatibility...
11978 INCLTDL="$LTDLINCL"
11979
11980
11981 ;;
11982 ,no,no,no,)
11983 # If the included ltdl is not to be used, then use the
11984 # preinstalled libltdl we found.
11985
11986 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11987
11988 LIBLTDL=-lltdl
11989 LTDLDEPS=
11990 LTDLINCL=
11991 ;;
11992 ,no*,no,*)
11993 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11994 ;;
11995 *) with_included_ltdl=no
11996 LIBLTDL="-L$with_ltdl_lib -lltdl"
11997 LTDLDEPS=
11998 LTDLINCL="-I$with_ltdl_include"
11999 ;;
12000 esac
12001 INCLTDL="$LTDLINCL"
12002
12003 # Report our decision...
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12005 $as_echo_n "checking where to find libltdl headers... " >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12007 $as_echo "$LTDLINCL" >&6; }
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12009 $as_echo_n "checking where to find libltdl library... " >&6; }
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12011 $as_echo "$LIBLTDL" >&6; }
12012
12013
12014
12015 # Check whether --enable-ltdl-install was given.
12016 if test "${enable_ltdl_install+set}" = set; then :
12017 enableval=$enable_ltdl_install;
12018 fi
12019
12020
12021 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12022 *yes*) ;;
12023 *) enable_ltdl_convenience=yes ;;
12024 esac
12025
12026 if test x"${enable_ltdl_install-no}" != xno; then
12027 INSTALL_LTDL_TRUE=
12028 INSTALL_LTDL_FALSE='#'
12029 else
12030 INSTALL_LTDL_TRUE='#'
12031 INSTALL_LTDL_FALSE=
12032 fi
12033
12034 if test x"${enable_ltdl_convenience-no}" != xno; then
12035 CONVENIENCE_LTDL_TRUE=
12036 CONVENIENCE_LTDL_FALSE='#'
12037 else
12038 CONVENIENCE_LTDL_TRUE='#'
12039 CONVENIENCE_LTDL_FALSE=
12040 fi
12041
12042
12043
12044 subdirs="$subdirs libltdl"
12045
12046
12047
12048
12049
12050 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12051 # the user used. This is so that ltdl.h can pick up the parent projects
12052 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12053 # definitions required by ltdl.c.
12054 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12055
12056
12057
12058 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12059 do :
12060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12062 "
12063 eval as_val=\$$as_ac_Header
12064 if test "x$as_val" = x""yes; then :
12065 cat >>confdefs.h <<_ACEOF
12066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12067 _ACEOF
12068
12069 fi
12070
12071 done
12072
12073
12074 for ac_func in closedir opendir readdir
12075 do :
12076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12078 eval as_val=\$$as_ac_var
12079 if test "x$as_val" = x""yes; then :
12080 cat >>confdefs.h <<_ACEOF
12081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082 _ACEOF
12083
12084 else
12085
12086
12087 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12088
12089 fi
12090 done
12091
12092 for ac_func in strlcat strlcpy
12093 do :
12094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12096 eval as_val=\$$as_ac_var
12097 if test "x$as_val" = x""yes; then :
12098 cat >>confdefs.h <<_ACEOF
12099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12100 _ACEOF
12101
12102 else
12103
12104
12105 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12106
12107 fi
12108 done
12109
12110
12111
12112 cat >>confdefs.h <<_ACEOF
12113 #define LT_LIBEXT "$libext"
12114 _ACEOF
12115
12116
12117 name=ltdl
12118 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12119
12120
12121
12122
12123
12124
12125
12126
12127 # Only expand once:
12128
12129
12130 LIBTOOL="$LIBTOOL --silent"
12131
12132 # Checks for libraries.
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12135 $as_echo_n "checking for library containing socket... " >&6; }
12136 if test "${ac_cv_search_socket+set}" = set; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 ac_func_search_save_LIBS=$LIBS
12140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h. */
12142
12143 /* Override any GCC internal prototype to avoid an error.
12144 Use char because int might match the return type of a GCC
12145 builtin and then its argument prototype would still apply. */
12146 #ifdef __cplusplus
12147 extern "C"
12148 #endif
12149 char socket ();
12150 int
12151 main ()
12152 {
12153 return socket ();
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 for ac_lib in '' socket; do
12159 if test -z "$ac_lib"; then
12160 ac_res="none required"
12161 else
12162 ac_res=-l$ac_lib
12163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12164 fi
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_search_socket=$ac_res
12167 fi
12168 rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext
12170 if test "${ac_cv_search_socket+set}" = set; then :
12171 break
12172 fi
12173 done
12174 if test "${ac_cv_search_socket+set}" = set; then :
12175
12176 else
12177 ac_cv_search_socket=no
12178 fi
12179 rm conftest.$ac_ext
12180 LIBS=$ac_func_search_save_LIBS
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12183 $as_echo "$ac_cv_search_socket" >&6; }
12184 ac_res=$ac_cv_search_socket
12185 if test "$ac_res" != no; then :
12186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12187
12188 else
12189 as_fn_error "socket library not found" "$LINENO" 5
12190 fi
12191
12192 for ac_func in inet_aton inet_ntop inet_pton
12193 do :
12194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12196 eval as_val=\$$as_ac_var
12197 if test "x$as_val" = x""yes; then :
12198 cat >>confdefs.h <<_ACEOF
12199 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 _ACEOF
12201
12202 fi
12203 done
12204
12205 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12206 #include <sys/socket.h>
12207 #include <netdb.h>
12208
12209 "
12210 if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12211
12212 cat >>confdefs.h <<_ACEOF
12213 #define HAVE_STRUCT_SOCKADDR_IN 1
12214 _ACEOF
12215
12216
12217 fi
12218 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12219 #include <sys/socket.h>
12220 #include <netdb.h>
12221
12222 "
12223 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12224
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12227 _ACEOF
12228
12229
12230 fi
12231 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12232 #include <sys/socket.h>
12233 #include <netdb.h>
12234
12235 "
12236 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12237
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_ADDRINFO 1
12240 _ACEOF
12241
12242
12243 fi
12244
12245 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12246 <sys/socket.h>
12247 "
12248 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12249
12250 cat >>confdefs.h <<_ACEOF
12251 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12252 _ACEOF
12253
12254
12255 fi
12256
12257
12258
12259 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12260 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12261
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_STRUCT_SOCKADDR_IN6 1
12264 _ACEOF
12265
12266
12267 else
12268
12269 $as_echo "#define IPV6 1" >>confdefs.h
12270
12271 fi
12272
12273
12274
12275 # Checks for typedefs, structures, and compiler characteristics.
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12277 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12278 if test "${ac_cv_c_bigendian+set}" = set; then :
12279 $as_echo_n "(cached) " >&6
12280 else
12281 ac_cv_c_bigendian=unknown
12282 # See if we're dealing with a universal compiler.
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h. */
12285 #ifndef __APPLE_CC__
12286 not a universal capable compiler
12287 #endif
12288 typedef int dummy;
12289
12290 _ACEOF
12291 if ac_fn_c_try_compile "$LINENO"; then :
12292
12293 # Check for potential -arch flags. It is not universal unless
12294 # there are at least two -arch flags with different values.
12295 ac_arch=
12296 ac_prev=
12297 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12298 if test -n "$ac_prev"; then
12299 case $ac_word in
12300 i?86 | x86_64 | ppc | ppc64)
12301 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12302 ac_arch=$ac_word
12303 else
12304 ac_cv_c_bigendian=universal
12305 break
12306 fi
12307 ;;
12308 esac
12309 ac_prev=
12310 elif test "x$ac_word" = "x-arch"; then
12311 ac_prev=arch
12312 fi
12313 done
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 if test $ac_cv_c_bigendian = unknown; then
12317 # See if sys/param.h defines the BYTE_ORDER macro.
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320 #include <sys/types.h>
12321 #include <sys/param.h>
12322
12323 int
12324 main ()
12325 {
12326 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12327 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12328 && LITTLE_ENDIAN)
12329 bogus endian macros
12330 #endif
12331
12332 ;
12333 return 0;
12334 }
12335 _ACEOF
12336 if ac_fn_c_try_compile "$LINENO"; then :
12337 # It does; now see whether it defined to BIG_ENDIAN or not.
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340 #include <sys/types.h>
12341 #include <sys/param.h>
12342
12343 int
12344 main ()
12345 {
12346 #if BYTE_ORDER != BIG_ENDIAN
12347 not big endian
12348 #endif
12349
12350 ;
12351 return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355 ac_cv_c_bigendian=yes
12356 else
12357 ac_cv_c_bigendian=no
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 fi
12363 if test $ac_cv_c_bigendian = unknown; then
12364 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 #include <limits.h>
12368
12369 int
12370 main ()
12371 {
12372 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12373 bogus endian macros
12374 #endif
12375
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_compile "$LINENO"; then :
12381 # It does; now see whether it defined to _BIG_ENDIAN or not.
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384 #include <limits.h>
12385
12386 int
12387 main ()
12388 {
12389 #ifndef _BIG_ENDIAN
12390 not big endian
12391 #endif
12392
12393 ;
12394 return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398 ac_cv_c_bigendian=yes
12399 else
12400 ac_cv_c_bigendian=no
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 fi
12406 if test $ac_cv_c_bigendian = unknown; then
12407 # Compile a test program.
12408 if test "$cross_compiling" = yes; then :
12409 # Try to guess by grepping values from an object file.
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12412 short int ascii_mm[] =
12413 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12414 short int ascii_ii[] =
12415 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12416 int use_ascii (int i) {
12417 return ascii_mm[i] + ascii_ii[i];
12418 }
12419 short int ebcdic_ii[] =
12420 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12421 short int ebcdic_mm[] =
12422 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12423 int use_ebcdic (int i) {
12424 return ebcdic_mm[i] + ebcdic_ii[i];
12425 }
12426 extern int foo;
12427
12428 int
12429 main ()
12430 {
12431 return use_ascii (foo) == use_ebcdic (foo);
12432 ;
12433 return 0;
12434 }
12435 _ACEOF
12436 if ac_fn_c_try_compile "$LINENO"; then :
12437 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12438 ac_cv_c_bigendian=yes
12439 fi
12440 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12441 if test "$ac_cv_c_bigendian" = unknown; then
12442 ac_cv_c_bigendian=no
12443 else
12444 # finding both strings is unlikely to happen, but who knows?
12445 ac_cv_c_bigendian=unknown
12446 fi
12447 fi
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 else
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12453 $ac_includes_default
12454 int
12455 main ()
12456 {
12457
12458 /* Are we little or big endian? From Harbison&Steele. */
12459 union
12460 {
12461 long int l;
12462 char c[sizeof (long int)];
12463 } u;
12464 u.l = 1;
12465 return u.c[sizeof (long int) - 1] == 1;
12466
12467 ;
12468 return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_run "$LINENO"; then :
12472 ac_cv_c_bigendian=no
12473 else
12474 ac_cv_c_bigendian=yes
12475 fi
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477 conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 fi
12479
12480 fi
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12483 $as_echo "$ac_cv_c_bigendian" >&6; }
12484 case $ac_cv_c_bigendian in #(
12485 yes)
12486 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12487 ;; #(
12488 no)
12489 ;; #(
12490 universal)
12491
12492 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12493
12494 ;; #(
12495 *)
12496 as_fn_error "unknown endianness
12497 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12498 esac
12499
12500
12501 # Checks for library functions.
12502
12503
12504
12505 for ac_func in $ac_func_list
12506 do :
12507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12509 eval as_val=\$$as_ac_var
12510 if test "x$as_val" = x""yes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12513 _ACEOF
12514
12515 fi
12516 done
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530 # Checks for header files.
12531
12532
12533
12534 for ac_header in $ac_header_list
12535 do :
12536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12537 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12538 "
12539 eval as_val=\$$as_ac_Header
12540 if test "x$as_val" = x""yes; then :
12541 cat >>confdefs.h <<_ACEOF
12542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 _ACEOF
12544
12545 fi
12546
12547 done
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12580 $as_echo_n "checking for /dev/null... " >&6; }
12581 if test -c /dev/null; then :
12582
12583
12584 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12585
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 $as_echo "yes" >&6; }
12588 else
12589
12590
12591 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12594 $as_echo "no - using devnull.log" >&6; }
12595 fi
12596
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12599 $as_echo_n "checking for library containing crypt... " >&6; }
12600 if test "${ac_cv_search_crypt+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 ac_func_search_save_LIBS=$LIBS
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char crypt ();
12614 int
12615 main ()
12616 {
12617 return crypt ();
12618 ;
12619 return 0;
12620 }
12621 _ACEOF
12622 for ac_lib in '' crypt; do
12623 if test -z "$ac_lib"; then
12624 ac_res="none required"
12625 else
12626 ac_res=-l$ac_lib
12627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12628 fi
12629 if ac_fn_c_try_link "$LINENO"; then :
12630 ac_cv_search_crypt=$ac_res
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext
12634 if test "${ac_cv_search_crypt+set}" = set; then :
12635 break
12636 fi
12637 done
12638 if test "${ac_cv_search_crypt+set}" = set; then :
12639
12640 else
12641 ac_cv_search_crypt=no
12642 fi
12643 rm conftest.$ac_ext
12644 LIBS=$ac_func_search_save_LIBS
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12647 $as_echo "$ac_cv_search_crypt" >&6; }
12648 ac_res=$ac_cv_search_crypt
12649 if test "$ac_res" != no; then :
12650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12651
12652 fi
12653
12654
12655
12656
12657 # Check whether --with-zlib-path was given.
12658 if test "${with_zlib_path+set}" = set; then :
12659 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12660 fi
12661
12662
12663 # Check whether --enable-zlib was given.
12664 if test "${enable_zlib+set}" = set; then :
12665 enableval=$enable_zlib; zlib=$enableval
12666 else
12667 zlib=yes
12668 fi
12669
12670
12671 if test "$zlib" = "yes"; then :
12672
12673 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12676 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12677 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12678 $as_echo_n "(cached) " >&6
12679 else
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lz $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 #ifdef __cplusplus
12689 extern "C"
12690 #endif
12691 char zlibVersion ();
12692 int
12693 main ()
12694 {
12695 return zlibVersion ();
12696 ;
12697 return 0;
12698 }
12699 _ACEOF
12700 if ac_fn_c_try_link "$LINENO"; then :
12701 ac_cv_lib_z_zlibVersion=yes
12702 else
12703 ac_cv_lib_z_zlibVersion=no
12704 fi
12705 rm -f core conftest.err conftest.$ac_objext \
12706 conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12710 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12711 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12712
12713 LIBS="-lz $LIBS"
12714
12715 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12716
12717
12718 else
12719 zlib=no
12720 fi
12721
12722
12723 else
12724 zlib=no
12725 fi
12726
12727
12728
12729 fi
12730
12731
12732 # Check whether --with-libpcre-path was given.
12733 if test "${with_libpcre_path+set}" = set; then :
12734 withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12735 fi
12736
12737
12738 # Check whether --enable-libpcre was given.
12739 if test "${enable_libpcre+set}" = set; then :
12740 enableval=$enable_libpcre; libpcre=$enableval
12741 else
12742 libpcre=yes
12743 fi
12744
12745
12746 if test "$libpcre" = "yes"; then :
12747
12748 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12749 if test "x$ac_cv_header_pcre_h" = x""yes; then :
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12751 $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12752 if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lpcre $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char pcre_study ();
12767 int
12768 main ()
12769 {
12770 return pcre_study ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_pcre_pcre_study=yes
12777 else
12778 ac_cv_lib_pcre_pcre_study=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12785 $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12786 if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12787
12788 LIBS="-lpcre $LIBS"
12789
12790 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12791
12792
12793 else
12794 libpcre=no
12795 fi
12796
12797
12798 else
12799 libpcre=no
12800 fi
12801
12802
12803
12804 fi
12805 if test "$libpcre" = yes; then
12806 ENABLE_PCRE_TRUE=
12807 ENABLE_PCRE_FALSE='#'
12808 else
12809 ENABLE_PCRE_TRUE='#'
12810 ENABLE_PCRE_FALSE=
12811 fi
12812
12813
12814
12815 # Check whether --enable-openssl was given.
12816 if test "${enable_openssl+set}" = set; then :
12817 enableval=$enable_openssl; cf_enable_openssl=$enableval
12818 else
12819 cf_enable_openssl="auto"
12820 fi
12821
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12823 $as_echo_n "checking for OpenSSL... " >&6; }
12824 if test "$cf_enable_openssl" != "no"; then
12825 cf_openssl_basedir=""
12826 if test "$cf_enable_openssl" != "auto" &&
12827 test "$cf_enable_openssl" != "yes"; then
12828 cf_openssl_basedir="${cf_enable_openssl}"
12829 else
12830 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12831 /opt /opt/openssl /usr/local/openssl; do
12832 if test -f "${dirs}/include/openssl/opensslv.h"; then
12833 cf_openssl_basedir="${dirs}"
12834 break
12835 fi
12836 done
12837 unset dirs
12838 fi
12839
12840 if test ! -z "$cf_openssl_basedir"; then
12841 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12842 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12843 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12844 else
12845 cf_openssl_basedir=""
12846 fi
12847 else
12848 if test -f "/usr/include/openssl/opensslv.h"; then
12849 cf_openssl_basedir="/usr"
12850 fi
12851 fi
12852
12853 if test ! -z "$cf_openssl_basedir"; then
12854 LIBS="-lcrypto -lssl $LIBS"
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12856 $as_echo "$cf_openssl_basedir" >&6; }
12857 cf_enable_openssl="yes"
12858
12859 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12860
12861 else
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12863 $as_echo "not found. Please check your path." >&6; }
12864 cf_enable_openssl="no"
12865 fi
12866 unset cf_openssl_basedir
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12869 $as_echo "disabled" >&6; }
12870 fi
12871 if test "$cf_enable_openssl" = yes; then
12872 ENABLE_SSL_TRUE=
12873 ENABLE_SSL_FALSE='#'
12874 else
12875 ENABLE_SSL_TRUE='#'
12876 ENABLE_SSL_FALSE=
12877 fi
12878
12879
12880
12881 # Check whether --enable-assert was given.
12882 if test "${enable_assert+set}" = set; then :
12883 enableval=$enable_assert; assert=$enableval
12884 else
12885 assert=no
12886 fi
12887
12888
12889 if test "$assert" = "no"; then :
12890
12891 $as_echo "#define NDEBUG 1" >>confdefs.h
12892
12893 fi
12894
12895
12896 # Check whether --enable-small-net was given.
12897 if test "${enable_small_net+set}" = set; then :
12898 enableval=$enable_small_net; small_net=$enableval
12899 else
12900 small_net=no
12901 fi
12902
12903
12904 if test "$small_net" = yes; then
12905
12906 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
12907
12908
12909 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
12910
12911
12912 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
12913
12914
12915 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
12916
12917
12918 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
12919
12920
12921 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
12922
12923
12924 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
12925
12926
12927 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
12928
12929
12930 $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
12931
12932
12933 $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
12934
12935 else
12936
12937 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
12938
12939
12940 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
12941
12942
12943 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
12944
12945
12946 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
12947
12948
12949 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
12950
12951
12952 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
12953
12954
12955 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
12956
12957
12958 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
12959
12960
12961 $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
12962
12963
12964 $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
12965
12966 fi
12967
12968
12969 # Argument processing.
12970
12971 desired_iopoll_mechanism="none"
12972 # Check whether --enable-kqueue was given.
12973 if test "${enable_kqueue+set}" = set; then :
12974 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
12975 fi
12976
12977 # Check whether --enable-epoll was given.
12978 if test "${enable_epoll+set}" = set; then :
12979 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
12980 fi
12981
12982 # Check whether --enable-devpoll was given.
12983 if test "${enable_devpoll+set}" = set; then :
12984 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
12985 fi
12986
12987 # Check whether --enable-rtsigio was given.
12988 if test "${enable_rtsigio+set}" = set; then :
12989 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
12990 fi
12991
12992 # Check whether --enable-poll was given.
12993 if test "${enable_poll+set}" = set; then :
12994 enableval=$enable_poll; desired_iopoll_mechanism="poll"
12995 fi
12996
12997 # Check whether --enable-select was given.
12998 if test "${enable_select+set}" = set; then :
12999 enableval=$enable_select; desired_iopoll_mechanism="select"
13000 fi
13001
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13003 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13004 iopoll_mechanism_none=0
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13008 _ACEOF
13009
13010 iopoll_mechanism_kqueue=1
13011
13012 cat >>confdefs.h <<_ACEOF
13013 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13014 _ACEOF
13015
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13020 #define kevent innocuous_kevent
13021
13022 /* System header to define __stub macros and hopefully few prototypes,
13023 which can conflict with char kevent (); below.
13024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 <limits.h> exists even on freestanding compilers. */
13026
13027 #ifdef __STDC__
13028 # include <limits.h>
13029 #else
13030 # include <assert.h>
13031 #endif
13032
13033 #undef kevent
13034
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char kevent ();
13042 /* The GNU C library defines this for functions which it implements
13043 to always fail with ENOSYS. Some functions are actually named
13044 something starting with __ and the normal name is an alias. */
13045 #if defined __stub_kevent || defined __stub___kevent
13046 choke me
13047 #endif
13048
13049 int
13050 main ()
13051 {
13052 return kevent ();
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 is_kqueue_mechanism_available="yes"
13059 else
13060 is_kqueue_mechanism_available="no"
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext \
13063 conftest$ac_exeext conftest.$ac_ext
13064 iopoll_mechanism_epoll=2
13065
13066 cat >>confdefs.h <<_ACEOF
13067 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13068 _ACEOF
13069
13070 if test "$cross_compiling" = yes; then :
13071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13073 as_fn_error "cannot run test program while cross compiling
13074 See \`config.log' for more details." "$LINENO" 5; }
13075 else
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078
13079 #include <sys/epoll.h>
13080 #include <sys/syscall.h>
13081 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13082 #if !defined(__NR_epoll_create)
13083 #if defined(__ia64__)
13084 #define __NR_epoll_create 1243
13085 #elif defined(__x86_64__)
13086 #define __NR_epoll_create 214
13087 #elif defined(__sparc64__) || defined(__sparc__)
13088 #define __NR_epoll_create 193
13089 #elif defined(__s390__) || defined(__m68k__)
13090 #define __NR_epoll_create 249
13091 #elif defined(__ppc64__) || defined(__ppc__)
13092 #define __NR_epoll_create 236
13093 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13094 #define __NR_epoll_create 224
13095 #elif defined(__alpha__)
13096 #define __NR_epoll_create 407
13097 #elif defined(__sh64__)
13098 #define __NR_epoll_create 282
13099 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13100 #define __NR_epoll_create 254
13101 #else
13102 #error No system call numbers defined for epoll family.
13103 #endif
13104 #endif
13105 _syscall1(int, epoll_create, int, size)
13106 #endif
13107 main() { return epoll_create(256) == -1 ? 1 : 0; }
13108
13109 _ACEOF
13110 if ac_fn_c_try_run "$LINENO"; then :
13111 is_epoll_mechanism_available="yes"
13112 else
13113 is_epoll_mechanism_available="no"
13114 fi
13115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13116 conftest.$ac_objext conftest.beam conftest.$ac_ext
13117 fi
13118
13119 iopoll_mechanism_devpoll=3
13120
13121 cat >>confdefs.h <<_ACEOF
13122 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13123 _ACEOF
13124
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 #include <devpoll.h>
13128 int
13129 main ()
13130 {
13131
13132 ;
13133 return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_compile "$LINENO"; then :
13137 is_devpoll_mechanism_available="yes"
13138 else
13139 is_devpoll_mechanism_available="no"
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 if test "$is_devpoll_mechanism_available" = "yes" ; then
13143
13144 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13145
13146 fi
13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h. */
13149 #include <sys/devpoll.h>
13150 int
13151 main ()
13152 {
13153
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_compile "$LINENO"; then :
13159 is_devpoll_mechanism_available="yes"
13160 else
13161 is_devpoll_mechanism_available="no"
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164 if test "$is_devpoll_mechanism_available" = "yes" ; then
13165
13166 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13167
13168 fi
13169 iopoll_mechanism_rtsigio=4
13170
13171 cat >>confdefs.h <<_ACEOF
13172 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13173 _ACEOF
13174
13175 if test "$cross_compiling" = yes; then :
13176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13178 as_fn_error "cannot run test program while cross compiling
13179 See \`config.log' for more details." "$LINENO" 5; }
13180 else
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183
13184 #include <fcntl.h>
13185 #ifdef F_SETSIG
13186 main () { return 0; } /* F_SETSIG defined */
13187 #else
13188 main () { return 1; } /* F_SETSIG not defined */
13189 #endif
13190
13191 int
13192 main ()
13193 {
13194
13195 ;
13196 return 0;
13197 }
13198 _ACEOF
13199 if ac_fn_c_try_run "$LINENO"; then :
13200 is_rtsigio_mechanism_available="yes"
13201 else
13202 is_rtsigio_mechanism_available="no"
13203 fi
13204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13205 conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 fi
13207
13208 iopoll_mechanism_poll=5
13209
13210 cat >>confdefs.h <<_ACEOF
13211 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13212 _ACEOF
13213
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13218 #define poll innocuous_poll
13219
13220 /* System header to define __stub macros and hopefully few prototypes,
13221 which can conflict with char poll (); below.
13222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13223 <limits.h> exists even on freestanding compilers. */
13224
13225 #ifdef __STDC__
13226 # include <limits.h>
13227 #else
13228 # include <assert.h>
13229 #endif
13230
13231 #undef poll
13232
13233 /* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 char poll ();
13240 /* The GNU C library defines this for functions which it implements
13241 to always fail with ENOSYS. Some functions are actually named
13242 something starting with __ and the normal name is an alias. */
13243 #if defined __stub_poll || defined __stub___poll
13244 choke me
13245 #endif
13246
13247 int
13248 main ()
13249 {
13250 return poll ();
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_link "$LINENO"; then :
13256 is_poll_mechanism_available="yes"
13257 else
13258 is_poll_mechanism_available="no"
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext \
13261 conftest$ac_exeext conftest.$ac_ext
13262 iopoll_mechanism_select=6
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13266 _ACEOF
13267
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 /* Define select to an innocuous variant, in case <limits.h> declares select.
13271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13272 #define select innocuous_select
13273
13274 /* System header to define __stub macros and hopefully few prototypes,
13275 which can conflict with char select (); below.
13276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277 <limits.h> exists even on freestanding compilers. */
13278
13279 #ifdef __STDC__
13280 # include <limits.h>
13281 #else
13282 # include <assert.h>
13283 #endif
13284
13285 #undef select
13286
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char select ();
13294 /* The GNU C library defines this for functions which it implements
13295 to always fail with ENOSYS. Some functions are actually named
13296 something starting with __ and the normal name is an alias. */
13297 #if defined __stub_select || defined __stub___select
13298 choke me
13299 #endif
13300
13301 int
13302 main ()
13303 {
13304 return select ();
13305 ;
13306 return 0;
13307 }
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 is_select_mechanism_available="yes"
13311 else
13312 is_select_mechanism_available="no"
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13316 optimal_iopoll_mechanism="none"
13317 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13318 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13319 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13320 optimal_iopoll_mechanism="$mechanism"
13321 break
13322 fi
13323 done
13324 if test "$desired_iopoll_mechanism" = "none" ; then
13325 if test "$optimal_iopoll_mechanism" = "none" ; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13327 $as_echo "none" >&6; }
13328 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13329 else
13330 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13332 $as_echo "$selected_iopoll_mechanism" >&6; }
13333 fi
13334 else
13335 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13336 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13337 selected_iopoll_mechanism=$desired_iopoll_mechanism
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13339 $as_echo "$selected_iopoll_mechanism" >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13342 $as_echo "none" >&6; }
13343 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13344 fi
13345 fi
13346 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13347
13348 cat >>confdefs.h <<_ACEOF
13349 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13350 _ACEOF
13351
13352
13353
13354
13355 # Check whether --with-nicklen was given.
13356 if test "${with_nicklen+set}" = set; then :
13357 withval=$with_nicklen; nicklen="$withval"
13358 else
13359 nicklen="9"
13360 fi
13361
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define NICKLEN ($nicklen+1)
13365 _ACEOF
13366
13367
13368
13369
13370 # Check whether --with-topiclen was given.
13371 if test "${with_topiclen+set}" = set; then :
13372 withval=$with_topiclen; topiclen="$withval"
13373 else
13374 topiclen="160"
13375 fi
13376
13377
13378 cat >>confdefs.h <<_ACEOF
13379 #define TOPICLEN ($topiclen+1)
13380 _ACEOF
13381
13382
13383
13384
13385 # Check whether --with-syslog-facility was given.
13386 if test "${with_syslog_facility+set}" = set; then :
13387 withval=$with_syslog_facility; syslog_facility="$withval"
13388 else
13389 syslog_facility="LOG_LOCAL4"
13390 fi
13391
13392
13393 cat >>confdefs.h <<_ACEOF
13394 #define LOG_FACILITY $syslog_facility
13395 _ACEOF
13396
13397
13398
13399 # Check whether --enable-efnet was given.
13400 if test "${enable_efnet+set}" = set; then :
13401 enableval=$enable_efnet; efnet="$enableval"
13402 else
13403 efnet="no"
13404 fi
13405
13406 if test "$efnet" = "yes" ; then
13407 use_efnet="yes"
13408
13409 $as_echo "#define EFNET 1" >>confdefs.h
13410
13411
13412 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13413
13414 else
13415
13416 $as_echo "#define INVARIANTS 1" >>confdefs.h
13417
13418 use_efnet="no"
13419 fi
13420 if test "$use_efnet" = "yes"; then
13421 EFNET_TRUE=
13422 EFNET_FALSE='#'
13423 else
13424 EFNET_TRUE='#'
13425 EFNET_FALSE=
13426 fi
13427
13428
13429
13430 # Check whether --enable-halfops was given.
13431 if test "${enable_halfops+set}" = set; then :
13432 enableval=$enable_halfops; halfops="$enableval"
13433 else
13434 halfops="no"
13435 fi
13436
13437 if test "$halfops" = "yes" ; then
13438
13439 $as_echo "#define HALFOPS 1" >>confdefs.h
13440
13441 fi
13442
13443
13444 # Check whether --enable-debugging was given.
13445 if test "${enable_debugging+set}" = set; then :
13446 enableval=$enable_debugging; debugging="$enableval"
13447 else
13448 debugging="no"
13449 fi
13450
13451 if test "$debugging" = "yes" ; then
13452
13453 $as_echo "#define DEBUG 1" >>confdefs.h
13454
13455 CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13456 else
13457
13458 $as_echo "#define NDEBUG 1" >>confdefs.h
13459
13460 fi
13461
13462
13463 # Check whether --enable-warnings was given.
13464 if test "${enable_warnings+set}" = set; then :
13465 enableval=$enable_warnings; warnings="$enableval"
13466 else
13467 warnings="no"
13468 fi
13469
13470 if test "$warnings" = "yes" ; then
13471 CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused -Wundef"
13472 fi
13473
13474
13475 for ac_header in syslog.h sys/syslog.h
13476 do :
13477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13479 eval as_val=\$$as_ac_Header
13480 if test "x$as_val" = x""yes; then :
13481 cat >>confdefs.h <<_ACEOF
13482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13483 _ACEOF
13484
13485 fi
13486
13487 done
13488
13489 # Check whether --enable-syslog was given.
13490 if test "${enable_syslog+set}" = set; then :
13491 enableval=$enable_syslog; syslog="$enableval"
13492 else
13493 syslog="no"
13494 fi
13495
13496 if test "$enableval" != "no" ; then
13497 for option in $enableval ; do
13498 case "$option" in
13499 users)
13500 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13501 ;;
13502 oper)
13503 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13504 ;;
13505 yes) : ;;
13506 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13507 esac
13508 done
13509
13510 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13511
13512 fi
13513
13514
13515
13516 prefix_NONE=
13517 exec_prefix_NONE=
13518 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13519 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13520 eval ac_define_dir="\"$prefix\""
13521 eval ac_define_dir="\"$ac_define_dir\""
13522 PREFIX="$ac_define_dir"
13523
13524
13525 cat >>confdefs.h <<_ACEOF
13526 #define PREFIX "$ac_define_dir"
13527 _ACEOF
13528
13529 test "$prefix_NONE" && prefix=NONE
13530 test "$exec_prefix_NONE" && exec_prefix=NONE
13531
13532
13533 prefix_NONE=
13534 exec_prefix_NONE=
13535 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13536 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13537 eval ac_define_dir="\"$sysconfdir\""
13538 eval ac_define_dir="\"$ac_define_dir\""
13539 SYSCONFDIR="$ac_define_dir"
13540
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define SYSCONFDIR "$ac_define_dir"
13544 _ACEOF
13545
13546 test "$prefix_NONE" && prefix=NONE
13547 test "$exec_prefix_NONE" && exec_prefix=NONE
13548
13549
13550 prefix_NONE=
13551 exec_prefix_NONE=
13552 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13553 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13554 eval ac_define_dir="\"$libdir\""
13555 eval ac_define_dir="\"$ac_define_dir\""
13556 LIBDIR="$ac_define_dir"
13557
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define LIBDIR "$ac_define_dir"
13561 _ACEOF
13562
13563 test "$prefix_NONE" && prefix=NONE
13564 test "$exec_prefix_NONE" && exec_prefix=NONE
13565
13566
13567 prefix_NONE=
13568 exec_prefix_NONE=
13569 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13570 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13571 eval ac_define_dir="\"$datadir\""
13572 eval ac_define_dir="\"$ac_define_dir\""
13573 DATADIR="$ac_define_dir"
13574
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define DATADIR "$ac_define_dir"
13578 _ACEOF
13579
13580 test "$prefix_NONE" && prefix=NONE
13581 test "$exec_prefix_NONE" && exec_prefix=NONE
13582
13583
13584 prefix_NONE=
13585 exec_prefix_NONE=
13586 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13587 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13588 eval ac_define_dir="\"$localstatedir\""
13589 eval ac_define_dir="\"$ac_define_dir\""
13590 LOCALSTATEDIR="$ac_define_dir"
13591
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define LOCALSTATEDIR "$ac_define_dir"
13595 _ACEOF
13596
13597 test "$prefix_NONE" && prefix=NONE
13598 test "$exec_prefix_NONE" && exec_prefix=NONE
13599
13600
13601 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13602
13603
13604 cat >confcache <<\_ACEOF
13605 # This file is a shell script that caches the results of configure
13606 # tests run on this system so they can be shared between configure
13607 # scripts and configure runs, see configure's option --config-cache.
13608 # It is not useful on other systems. If it contains results you don't
13609 # want to keep, you may remove or edit it.
13610 #
13611 # config.status only pays attention to the cache file if you give it
13612 # the --recheck option to rerun configure.
13613 #
13614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13616 # following values.
13617
13618 _ACEOF
13619
13620 # The following way of writing the cache mishandles newlines in values,
13621 # but we know of no workaround that is simple, portable, and efficient.
13622 # So, we kill variables containing newlines.
13623 # Ultrix sh set writes to stderr and can't be redirected directly,
13624 # and sets the high bit in the cache file unless we assign to the vars.
13625 (
13626 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13627 eval ac_val=\$$ac_var
13628 case $ac_val in #(
13629 *${as_nl}*)
13630 case $ac_var in #(
13631 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13633 esac
13634 case $ac_var in #(
13635 _ | IFS | as_nl) ;; #(
13636 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13637 *) { eval $ac_var=; unset $ac_var;} ;;
13638 esac ;;
13639 esac
13640 done
13641
13642 (set) 2>&1 |
13643 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13644 *${as_nl}ac_space=\ *)
13645 # `set' does not quote correctly, so add quotes: double-quote
13646 # substitution turns \\\\ into \\, and sed turns \\ into \.
13647 sed -n \
13648 "s/'/'\\\\''/g;
13649 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13650 ;; #(
13651 *)
13652 # `set' quotes correctly as required by POSIX, so do not add quotes.
13653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13654 ;;
13655 esac |
13656 sort
13657 ) |
13658 sed '
13659 /^ac_cv_env_/b end
13660 t clear
13661 :clear
13662 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13663 t end
13664 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13665 :end' >>confcache
13666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13667 if test -w "$cache_file"; then
13668 test "x$cache_file" != "x/dev/null" &&
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13670 $as_echo "$as_me: updating cache $cache_file" >&6;}
13671 cat confcache >$cache_file
13672 else
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13675 fi
13676 fi
13677 rm -f confcache
13678
13679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13680 # Let make expand exec_prefix.
13681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13682
13683 DEFS=-DHAVE_CONFIG_H
13684
13685 ac_libobjs=
13686 ac_ltlibobjs=
13687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13688 # 1. Remove the extension, and $U if already installed.
13689 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13690 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13691 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13692 # will be set to the directory where LIBOBJS objects are built.
13693 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13694 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13695 done
13696 LIBOBJS=$ac_libobjs
13697
13698 LTLIBOBJS=$ac_ltlibobjs
13699
13700
13701 if test -n "$EXEEXT"; then
13702 am__EXEEXT_TRUE=
13703 am__EXEEXT_FALSE='#'
13704 else
13705 am__EXEEXT_TRUE='#'
13706 am__EXEEXT_FALSE=
13707 fi
13708
13709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13710 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13712 fi
13713 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13714 as_fn_error "conditional \"AMDEP\" was never defined.
13715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13716 fi
13717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13718 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13720 fi
13721 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13722 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13724 fi
13725 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13726 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13728 fi
13729 LT_CONFIG_H=config.h
13730
13731 _ltdl_libobjs=
13732 _ltdl_ltlibobjs=
13733 if test -n "$_LT_LIBOBJS"; then
13734 # Remove the extension.
13735 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13736 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13737 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13738 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13739 done
13740 fi
13741 ltdl_LIBOBJS=$_ltdl_libobjs
13742
13743 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13744
13745
13746
13747 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13748 as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13750 fi
13751 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13752 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13754 fi
13755 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13756 as_fn_error "conditional \"EFNET\" was never defined.
13757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13758 fi
13759
13760 : ${CONFIG_STATUS=./config.status}
13761 ac_write_fail=0
13762 ac_clean_files_save=$ac_clean_files
13763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13766 as_write_fail=0
13767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13768 #! $SHELL
13769 # Generated by $as_me.
13770 # Run this file to recreate the current configuration.
13771 # Compiler output produced by configure, useful for debugging
13772 # configure, is in config.log if it exists.
13773
13774 debug=false
13775 ac_cs_recheck=false
13776 ac_cs_silent=false
13777
13778 SHELL=\${CONFIG_SHELL-$SHELL}
13779 export SHELL
13780 _ASEOF
13781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13782 ## -------------------- ##
13783 ## M4sh Initialization. ##
13784 ## -------------------- ##
13785
13786 # Be more Bourne compatible
13787 DUALCASE=1; export DUALCASE # for MKS sh
13788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13789 emulate sh
13790 NULLCMD=:
13791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13792 # is contrary to our usage. Disable this feature.
13793 alias -g '${1+"$@"}'='"$@"'
13794 setopt NO_GLOB_SUBST
13795 else
13796 case `(set -o) 2>/dev/null` in #(
13797 *posix*) :
13798 set -o posix ;; #(
13799 *) :
13800 ;;
13801 esac
13802 fi
13803
13804
13805 as_nl='
13806 '
13807 export as_nl
13808 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13809 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13812 # Prefer a ksh shell builtin over an external printf program on Solaris,
13813 # but without wasting forks for bash or zsh.
13814 if test -z "$BASH_VERSION$ZSH_VERSION" \
13815 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13816 as_echo='print -r --'
13817 as_echo_n='print -rn --'
13818 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13819 as_echo='printf %s\n'
13820 as_echo_n='printf %s'
13821 else
13822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13823 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13824 as_echo_n='/usr/ucb/echo -n'
13825 else
13826 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13827 as_echo_n_body='eval
13828 arg=$1;
13829 case $arg in #(
13830 *"$as_nl"*)
13831 expr "X$arg" : "X\\(.*\\)$as_nl";
13832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13833 esac;
13834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13835 '
13836 export as_echo_n_body
13837 as_echo_n='sh -c $as_echo_n_body as_echo'
13838 fi
13839 export as_echo_body
13840 as_echo='sh -c $as_echo_body as_echo'
13841 fi
13842
13843 # The user is always right.
13844 if test "${PATH_SEPARATOR+set}" != set; then
13845 PATH_SEPARATOR=:
13846 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13847 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13848 PATH_SEPARATOR=';'
13849 }
13850 fi
13851
13852
13853 # IFS
13854 # We need space, tab and new line, in precisely that order. Quoting is
13855 # there to prevent editors from complaining about space-tab.
13856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13857 # splitting by setting IFS to empty value.)
13858 IFS=" "" $as_nl"
13859
13860 # Find who we are. Look in the path if we contain no directory separator.
13861 case $0 in #((
13862 *[\\/]* ) as_myself=$0 ;;
13863 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13864 for as_dir in $PATH
13865 do
13866 IFS=$as_save_IFS
13867 test -z "$as_dir" && as_dir=.
13868 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13869 done
13870 IFS=$as_save_IFS
13871
13872 ;;
13873 esac
13874 # We did not find ourselves, most probably we were run as `sh COMMAND'
13875 # in which case we are not to be found in the path.
13876 if test "x$as_myself" = x; then
13877 as_myself=$0
13878 fi
13879 if test ! -f "$as_myself"; then
13880 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13881 exit 1
13882 fi
13883
13884 # Unset variables that we do not need and which cause bugs (e.g. in
13885 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13886 # suppresses any "Segmentation fault" message there. '((' could
13887 # trigger a bug in pdksh 5.2.14.
13888 for as_var in BASH_ENV ENV MAIL MAILPATH
13889 do eval test x\${$as_var+set} = xset \
13890 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13891 done
13892 PS1='$ '
13893 PS2='> '
13894 PS4='+ '
13895
13896 # NLS nuisances.
13897 LC_ALL=C
13898 export LC_ALL
13899 LANGUAGE=C
13900 export LANGUAGE
13901
13902 # CDPATH.
13903 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13904
13905
13906 # as_fn_error ERROR [LINENO LOG_FD]
13907 # ---------------------------------
13908 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13909 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13910 # script with status $?, using 1 if that was 0.
13911 as_fn_error ()
13912 {
13913 as_status=$?; test $as_status -eq 0 && as_status=1
13914 if test "$3"; then
13915 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13916 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13917 fi
13918 $as_echo "$as_me: error: $1" >&2
13919 as_fn_exit $as_status
13920 } # as_fn_error
13921
13922
13923 # as_fn_set_status STATUS
13924 # -----------------------
13925 # Set $? to STATUS, without forking.
13926 as_fn_set_status ()
13927 {
13928 return $1
13929 } # as_fn_set_status
13930
13931 # as_fn_exit STATUS
13932 # -----------------
13933 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13934 as_fn_exit ()
13935 {
13936 set +e
13937 as_fn_set_status $1
13938 exit $1
13939 } # as_fn_exit
13940
13941 # as_fn_unset VAR
13942 # ---------------
13943 # Portably unset VAR.
13944 as_fn_unset ()
13945 {
13946 { eval $1=; unset $1;}
13947 }
13948 as_unset=as_fn_unset
13949 # as_fn_append VAR VALUE
13950 # ----------------------
13951 # Append the text in VALUE to the end of the definition contained in VAR. Take
13952 # advantage of any shell optimizations that allow amortized linear growth over
13953 # repeated appends, instead of the typical quadratic growth present in naive
13954 # implementations.
13955 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13956 eval 'as_fn_append ()
13957 {
13958 eval $1+=\$2
13959 }'
13960 else
13961 as_fn_append ()
13962 {
13963 eval $1=\$$1\$2
13964 }
13965 fi # as_fn_append
13966
13967 # as_fn_arith ARG...
13968 # ------------------
13969 # Perform arithmetic evaluation on the ARGs, and store the result in the
13970 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13971 # must be portable across $(()) and expr.
13972 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13973 eval 'as_fn_arith ()
13974 {
13975 as_val=$(( $* ))
13976 }'
13977 else
13978 as_fn_arith ()
13979 {
13980 as_val=`expr "$@" || test $? -eq 1`
13981 }
13982 fi # as_fn_arith
13983
13984
13985 if expr a : '\(a\)' >/dev/null 2>&1 &&
13986 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13987 as_expr=expr
13988 else
13989 as_expr=false
13990 fi
13991
13992 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13993 as_basename=basename
13994 else
13995 as_basename=false
13996 fi
13997
13998 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13999 as_dirname=dirname
14000 else
14001 as_dirname=false
14002 fi
14003
14004 as_me=`$as_basename -- "$0" ||
14005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14006 X"$0" : 'X\(//\)$' \| \
14007 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14008 $as_echo X/"$0" |
14009 sed '/^.*\/\([^/][^/]*\)\/*$/{
14010 s//\1/
14011 q
14012 }
14013 /^X\/\(\/\/\)$/{
14014 s//\1/
14015 q
14016 }
14017 /^X\/\(\/\).*/{
14018 s//\1/
14019 q
14020 }
14021 s/.*/./; q'`
14022
14023 # Avoid depending upon Character Ranges.
14024 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14025 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14026 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14027 as_cr_digits='0123456789'
14028 as_cr_alnum=$as_cr_Letters$as_cr_digits
14029
14030 ECHO_C= ECHO_N= ECHO_T=
14031 case `echo -n x` in #(((((
14032 -n*)
14033 case `echo 'xy\c'` in
14034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14035 xy) ECHO_C='\c';;
14036 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14037 ECHO_T=' ';;
14038 esac;;
14039 *)
14040 ECHO_N='-n';;
14041 esac
14042
14043 rm -f conf$$ conf$$.exe conf$$.file
14044 if test -d conf$$.dir; then
14045 rm -f conf$$.dir/conf$$.file
14046 else
14047 rm -f conf$$.dir
14048 mkdir conf$$.dir 2>/dev/null
14049 fi
14050 if (echo >conf$$.file) 2>/dev/null; then
14051 if ln -s conf$$.file conf$$ 2>/dev/null; then
14052 as_ln_s='ln -s'
14053 # ... but there are two gotchas:
14054 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14055 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14056 # In both cases, we have to default to `cp -p'.
14057 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14058 as_ln_s='cp -p'
14059 elif ln conf$$.file conf$$ 2>/dev/null; then
14060 as_ln_s=ln
14061 else
14062 as_ln_s='cp -p'
14063 fi
14064 else
14065 as_ln_s='cp -p'
14066 fi
14067 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14068 rmdir conf$$.dir 2>/dev/null
14069
14070
14071 # as_fn_mkdir_p
14072 # -------------
14073 # Create "$as_dir" as a directory, including parents if necessary.
14074 as_fn_mkdir_p ()
14075 {
14076
14077 case $as_dir in #(
14078 -*) as_dir=./$as_dir;;
14079 esac
14080 test -d "$as_dir" || eval $as_mkdir_p || {
14081 as_dirs=
14082 while :; do
14083 case $as_dir in #(
14084 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14085 *) as_qdir=$as_dir;;
14086 esac
14087 as_dirs="'$as_qdir' $as_dirs"
14088 as_dir=`$as_dirname -- "$as_dir" ||
14089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14090 X"$as_dir" : 'X\(//\)[^/]' \| \
14091 X"$as_dir" : 'X\(//\)$' \| \
14092 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14093 $as_echo X"$as_dir" |
14094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14095 s//\1/
14096 q
14097 }
14098 /^X\(\/\/\)[^/].*/{
14099 s//\1/
14100 q
14101 }
14102 /^X\(\/\/\)$/{
14103 s//\1/
14104 q
14105 }
14106 /^X\(\/\).*/{
14107 s//\1/
14108 q
14109 }
14110 s/.*/./; q'`
14111 test -d "$as_dir" && break
14112 done
14113 test -z "$as_dirs" || eval "mkdir $as_dirs"
14114 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14115
14116
14117 } # as_fn_mkdir_p
14118 if mkdir -p . 2>/dev/null; then
14119 as_mkdir_p='mkdir -p "$as_dir"'
14120 else
14121 test -d ./-p && rmdir ./-p
14122 as_mkdir_p=false
14123 fi
14124
14125 if test -x / >/dev/null 2>&1; then
14126 as_test_x='test -x'
14127 else
14128 if ls -dL / >/dev/null 2>&1; then
14129 as_ls_L_option=L
14130 else
14131 as_ls_L_option=
14132 fi
14133 as_test_x='
14134 eval sh -c '\''
14135 if test -d "$1"; then
14136 test -d "$1/.";
14137 else
14138 case $1 in #(
14139 -*)set "./$1";;
14140 esac;
14141 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14142 ???[sx]*):;;*)false;;esac;fi
14143 '\'' sh
14144 '
14145 fi
14146 as_executable_p=$as_test_x
14147
14148 # Sed expression to map a string onto a valid CPP name.
14149 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14150
14151 # Sed expression to map a string onto a valid variable name.
14152 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14153
14154
14155 exec 6>&1
14156 ## ----------------------------------- ##
14157 ## Main body of $CONFIG_STATUS script. ##
14158 ## ----------------------------------- ##
14159 _ASEOF
14160 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14161
14162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14163 # Save the log message, to keep $0 and so on meaningful, and to
14164 # report actual input values of CONFIG_FILES etc. instead of their
14165 # values after options handling.
14166 ac_log="
14167 This file was extended by ircd-hybrid $as_me 7.2.4, which was
14168 generated by GNU Autoconf 2.64. Invocation command line was
14169
14170 CONFIG_FILES = $CONFIG_FILES
14171 CONFIG_HEADERS = $CONFIG_HEADERS
14172 CONFIG_LINKS = $CONFIG_LINKS
14173 CONFIG_COMMANDS = $CONFIG_COMMANDS
14174 $ $0 $@
14175
14176 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14177 "
14178
14179 _ACEOF
14180
14181 case $ac_config_files in *"
14182 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14183 esac
14184
14185 case $ac_config_headers in *"
14186 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14187 esac
14188
14189
14190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14191 # Files that config.status was made for.
14192 config_files="$ac_config_files"
14193 config_headers="$ac_config_headers"
14194 config_commands="$ac_config_commands"
14195
14196 _ACEOF
14197
14198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14199 ac_cs_usage="\
14200 \`$as_me' instantiates files and other configuration actions
14201 from templates according to the current configuration. Unless the files
14202 and actions are specified as TAGs, all are instantiated by default.
14203
14204 Usage: $0 [OPTION]... [TAG]...
14205
14206 -h, --help print this help, then exit
14207 -V, --version print version number and configuration settings, then exit
14208 -q, --quiet, --silent
14209 do not print progress messages
14210 -d, --debug don't remove temporary files
14211 --recheck update $as_me by reconfiguring in the same conditions
14212 --file=FILE[:TEMPLATE]
14213 instantiate the configuration file FILE
14214 --header=FILE[:TEMPLATE]
14215 instantiate the configuration header FILE
14216
14217 Configuration files:
14218 $config_files
14219
14220 Configuration headers:
14221 $config_headers
14222
14223 Configuration commands:
14224 $config_commands
14225
14226 Report bugs to the package provider."
14227
14228 _ACEOF
14229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14230 ac_cs_version="\\
14231 ircd-hybrid config.status 7.2.4
14232 configured by $0, generated by GNU Autoconf 2.64,
14233 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14234
14235 Copyright (C) 2009 Free Software Foundation, Inc.
14236 This config.status script is free software; the Free Software Foundation
14237 gives unlimited permission to copy, distribute and modify it."
14238
14239 ac_pwd='$ac_pwd'
14240 srcdir='$srcdir'
14241 INSTALL='$INSTALL'
14242 MKDIR_P='$MKDIR_P'
14243 AWK='$AWK'
14244 test -n "\$AWK" || AWK=awk
14245 _ACEOF
14246
14247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14248 # The default lists apply if the user does not specify any file.
14249 ac_need_defaults=:
14250 while test $# != 0
14251 do
14252 case $1 in
14253 --*=*)
14254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14255 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14256 ac_shift=:
14257 ;;
14258 *)
14259 ac_option=$1
14260 ac_optarg=$2
14261 ac_shift=shift
14262 ;;
14263 esac
14264
14265 case $ac_option in
14266 # Handling of the options.
14267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14268 ac_cs_recheck=: ;;
14269 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14270 $as_echo "$ac_cs_version"; exit ;;
14271 --debug | --debu | --deb | --de | --d | -d )
14272 debug=: ;;
14273 --file | --fil | --fi | --f )
14274 $ac_shift
14275 case $ac_optarg in
14276 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14277 esac
14278 as_fn_append CONFIG_FILES " '$ac_optarg'"
14279 ac_need_defaults=false;;
14280 --header | --heade | --head | --hea )
14281 $ac_shift
14282 case $ac_optarg in
14283 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14284 esac
14285 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14286 ac_need_defaults=false;;
14287 --he | --h)
14288 # Conflict between --help and --header
14289 as_fn_error "ambiguous option: \`$1'
14290 Try \`$0 --help' for more information.";;
14291 --help | --hel | -h )
14292 $as_echo "$ac_cs_usage"; exit ;;
14293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14295 ac_cs_silent=: ;;
14296
14297 # This is an error.
14298 -*) as_fn_error "unrecognized option: \`$1'
14299 Try \`$0 --help' for more information." ;;
14300
14301 *) as_fn_append ac_config_targets " $1"
14302 ac_need_defaults=false ;;
14303
14304 esac
14305 shift
14306 done
14307
14308 ac_configure_extra_args=
14309
14310 if $ac_cs_silent; then
14311 exec 6>/dev/null
14312 ac_configure_extra_args="$ac_configure_extra_args --silent"
14313 fi
14314
14315 _ACEOF
14316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14317 if \$ac_cs_recheck; then
14318 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14319 shift
14320 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14321 CONFIG_SHELL='$SHELL'
14322 export CONFIG_SHELL
14323 exec "\$@"
14324 fi
14325
14326 _ACEOF
14327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14328 exec 5>>config.log
14329 {
14330 echo
14331 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14332 ## Running $as_me. ##
14333 _ASBOX
14334 $as_echo "$ac_log"
14335 } >&5
14336
14337 _ACEOF
14338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14339 #
14340 # INIT-COMMANDS
14341 #
14342 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14343
14344
14345 # The HP-UX ksh and POSIX shell print the target directory to stdout
14346 # if CDPATH is set.
14347 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14348
14349 sed_quote_subst='$sed_quote_subst'
14350 double_quote_subst='$double_quote_subst'
14351 delay_variable_subst='$delay_variable_subst'
14352 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14353 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14354 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14355 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14356 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14357 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14358 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14359 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14360 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14361 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14362 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14363 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14364 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14365 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14366 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14367 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14368 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14369 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14370 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14371 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14372 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14373 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14374 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14375 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14376 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14377 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14378 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14379 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14381 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14382 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14383 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14384 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14385 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14386 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14387 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14388 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14389 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14390 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14391 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14392 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14393 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14394 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14395 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14396 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14397 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14398 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14399 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14400 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14401 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14402 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14403 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14404 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14405 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14406 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14407 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14408 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14409 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14410 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14411 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14412 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14413 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14414 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14415 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14416 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14417 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14418 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14419 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14420 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14421 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14422 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14423 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14424 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14425 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14426 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14427 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14428 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14429 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14430 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14431 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14432 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14433 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14434 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14435 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14436 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14437 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14438 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14439 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14440 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14441 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14442 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14443 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14444 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14445 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14446 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14447 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14448 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14449 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14450 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14451 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14452 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14453 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14454 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14455 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14456 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14457 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14458 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14459 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14460 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14461 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14462 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14463 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14464 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14465 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14466 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14467 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14468 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14469 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14470
14471 LTCC='$LTCC'
14472 LTCFLAGS='$LTCFLAGS'
14473 compiler='$compiler_DEFAULT'
14474
14475 # Quote evaled strings.
14476 for var in SED \
14477 GREP \
14478 EGREP \
14479 FGREP \
14480 LD \
14481 NM \
14482 LN_S \
14483 lt_SP2NL \
14484 lt_NL2SP \
14485 reload_flag \
14486 OBJDUMP \
14487 deplibs_check_method \
14488 file_magic_cmd \
14489 AR \
14490 AR_FLAGS \
14491 STRIP \
14492 RANLIB \
14493 CC \
14494 CFLAGS \
14495 compiler \
14496 lt_cv_sys_global_symbol_pipe \
14497 lt_cv_sys_global_symbol_to_cdecl \
14498 lt_cv_sys_global_symbol_to_c_name_address \
14499 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14500 SHELL \
14501 ECHO \
14502 lt_prog_compiler_no_builtin_flag \
14503 lt_prog_compiler_wl \
14504 lt_prog_compiler_pic \
14505 lt_prog_compiler_static \
14506 lt_cv_prog_compiler_c_o \
14507 need_locks \
14508 DSYMUTIL \
14509 NMEDIT \
14510 LIPO \
14511 OTOOL \
14512 OTOOL64 \
14513 shrext_cmds \
14514 export_dynamic_flag_spec \
14515 whole_archive_flag_spec \
14516 compiler_needs_object \
14517 with_gnu_ld \
14518 allow_undefined_flag \
14519 no_undefined_flag \
14520 hardcode_libdir_flag_spec \
14521 hardcode_libdir_flag_spec_ld \
14522 hardcode_libdir_separator \
14523 fix_srcfile_path \
14524 exclude_expsyms \
14525 include_expsyms \
14526 file_list_spec \
14527 variables_saved_for_relink \
14528 libname_spec \
14529 library_names_spec \
14530 soname_spec \
14531 finish_eval \
14532 old_striplib \
14533 striplib; do
14534 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14535 *[\\\\\\\`\\"\\\$]*)
14536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14537 ;;
14538 *)
14539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14540 ;;
14541 esac
14542 done
14543
14544 # Double-quote double-evaled strings.
14545 for var in reload_cmds \
14546 old_postinstall_cmds \
14547 old_postuninstall_cmds \
14548 old_archive_cmds \
14549 extract_expsyms_cmds \
14550 old_archive_from_new_cmds \
14551 old_archive_from_expsyms_cmds \
14552 archive_cmds \
14553 archive_expsym_cmds \
14554 module_cmds \
14555 module_expsym_cmds \
14556 export_symbols_cmds \
14557 prelink_cmds \
14558 postinstall_cmds \
14559 postuninstall_cmds \
14560 finish_cmds \
14561 sys_lib_search_path_spec \
14562 sys_lib_dlsearch_path_spec; do
14563 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14564 *[\\\\\\\`\\"\\\$]*)
14565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14566 ;;
14567 *)
14568 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14569 ;;
14570 esac
14571 done
14572
14573 # Fix-up fallback echo if it was mangled by the above quoting rules.
14574 case \$lt_ECHO in
14575 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14576 ;;
14577 esac
14578
14579 ac_aux_dir='$ac_aux_dir'
14580 xsi_shell='$xsi_shell'
14581 lt_shell_append='$lt_shell_append'
14582
14583 # See if we are running on zsh, and set the options which allow our
14584 # commands through without removal of \ escapes INIT.
14585 if test -n "\${ZSH_VERSION+set}" ; then
14586 setopt NO_GLOB_SUBST
14587 fi
14588
14589
14590 PACKAGE='$PACKAGE'
14591 VERSION='$VERSION'
14592 TIMESTAMP='$TIMESTAMP'
14593 RM='$RM'
14594 ofile='$ofile'
14595
14596
14597
14598
14599 _ACEOF
14600
14601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14602
14603 # Handling of arguments.
14604 for ac_config_target in $ac_config_targets
14605 do
14606 case $ac_config_target in
14607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14608 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14609 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14611 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14612 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14613 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14614 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14615 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14616 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14617 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14618 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14619 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14620 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14621 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14622 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14623 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14624 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14625 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14626 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14627
14628 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14629 esac
14630 done
14631
14632
14633 # If the user did not use the arguments to specify the items to instantiate,
14634 # then the envvar interface is used. Set only those that are not.
14635 # We use the long form for the default assignment because of an extremely
14636 # bizarre bug on SunOS 4.1.3.
14637 if $ac_need_defaults; then
14638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14641 fi
14642
14643 # Have a temporary directory for convenience. Make it in the build tree
14644 # simply because there is no reason against having it here, and in addition,
14645 # creating and moving files from /tmp can sometimes cause problems.
14646 # Hook for its removal unless debugging.
14647 # Note that there is a small window in which the directory will not be cleaned:
14648 # after its creation but before its name has been assigned to `$tmp'.
14649 $debug ||
14650 {
14651 tmp=
14652 trap 'exit_status=$?
14653 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14654 ' 0
14655 trap 'as_fn_exit 1' 1 2 13 15
14656 }
14657 # Create a (secure) tmp directory for tmp files.
14658
14659 {
14660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14661 test -n "$tmp" && test -d "$tmp"
14662 } ||
14663 {
14664 tmp=./conf$$-$RANDOM
14665 (umask 077 && mkdir "$tmp")
14666 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14667
14668 # Set up the scripts for CONFIG_FILES section.
14669 # No need to generate them if there are no CONFIG_FILES.
14670 # This happens for instance with `./config.status config.h'.
14671 if test -n "$CONFIG_FILES"; then
14672
14673
14674 ac_cr=`echo X | tr X '\015'`
14675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14676 # But we know of no other shell where ac_cr would be empty at this
14677 # point, so we can use a bashism as a fallback.
14678 if test "x$ac_cr" = x; then
14679 eval ac_cr=\$\'\\r\'
14680 fi
14681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14683 ac_cs_awk_cr='\r'
14684 else
14685 ac_cs_awk_cr=$ac_cr
14686 fi
14687
14688 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14689 _ACEOF
14690
14691
14692 {
14693 echo "cat >conf$$subs.awk <<_ACEOF" &&
14694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14695 echo "_ACEOF"
14696 } >conf$$subs.sh ||
14697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14699 ac_delim='%!_!# '
14700 for ac_last_try in false false false false false :; do
14701 . ./conf$$subs.sh ||
14702 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14703
14704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14705 if test $ac_delim_n = $ac_delim_num; then
14706 break
14707 elif $ac_last_try; then
14708 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14709 else
14710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14711 fi
14712 done
14713 rm -f conf$$subs.sh
14714
14715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14716 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14717 _ACEOF
14718 sed -n '
14719 h
14720 s/^/S["/; s/!.*/"]=/
14721 p
14722 g
14723 s/^[^!]*!//
14724 :repl
14725 t repl
14726 s/'"$ac_delim"'$//
14727 t delim
14728 :nl
14729 h
14730 s/\(.\{148\}\).*/\1/
14731 t more1
14732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14733 p
14734 n
14735 b repl
14736 :more1
14737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14738 p
14739 g
14740 s/.\{148\}//
14741 t nl
14742 :delim
14743 h
14744 s/\(.\{148\}\).*/\1/
14745 t more2
14746 s/["\\]/\\&/g; s/^/"/; s/$/"/
14747 p
14748 b
14749 :more2
14750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14751 p
14752 g
14753 s/.\{148\}//
14754 t delim
14755 ' <conf$$subs.awk | sed '
14756 /^[^""]/{
14757 N
14758 s/\n//
14759 }
14760 ' >>$CONFIG_STATUS || ac_write_fail=1
14761 rm -f conf$$subs.awk
14762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14763 _ACAWK
14764 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14765 for (key in S) S_is_set[key] = 1
14766 FS = ""
14767
14768 }
14769 {
14770 line = $ 0
14771 nfields = split(line, field, "@")
14772 substed = 0
14773 len = length(field[1])
14774 for (i = 2; i < nfields; i++) {
14775 key = field[i]
14776 keylen = length(key)
14777 if (S_is_set[key]) {
14778 value = S[key]
14779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14780 len += length(value) + length(field[++i])
14781 substed = 1
14782 } else
14783 len += 1 + keylen
14784 }
14785
14786 print line
14787 }
14788
14789 _ACAWK
14790 _ACEOF
14791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14794 else
14795 cat
14796 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14797 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14798 _ACEOF
14799
14800 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14801 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14802 # trailing colons and then remove the whole line if VPATH becomes empty
14803 # (actually we leave an empty line to preserve line numbers).
14804 if test "x$srcdir" = x.; then
14805 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14806 s/:*\$(srcdir):*/:/
14807 s/:*\${srcdir}:*/:/
14808 s/:*@srcdir@:*/:/
14809 s/^\([^=]*=[ ]*\):*/\1/
14810 s/:*$//
14811 s/^[^=]*=[ ]*$//
14812 }'
14813 fi
14814
14815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14816 fi # test -n "$CONFIG_FILES"
14817
14818 # Set up the scripts for CONFIG_HEADERS section.
14819 # No need to generate them if there are no CONFIG_HEADERS.
14820 # This happens for instance with `./config.status Makefile'.
14821 if test -n "$CONFIG_HEADERS"; then
14822 cat >"$tmp/defines.awk" <<\_ACAWK ||
14823 BEGIN {
14824 _ACEOF
14825
14826 # Transform confdefs.h into an awk script `defines.awk', embedded as
14827 # here-document in config.status, that substitutes the proper values into
14828 # config.h.in to produce config.h.
14829
14830 # Create a delimiter string that does not exist in confdefs.h, to ease
14831 # handling of long lines.
14832 ac_delim='%!_!# '
14833 for ac_last_try in false false :; do
14834 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14835 if test -z "$ac_t"; then
14836 break
14837 elif $ac_last_try; then
14838 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14839 else
14840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14841 fi
14842 done
14843
14844 # For the awk script, D is an array of macro values keyed by name,
14845 # likewise P contains macro parameters if any. Preserve backslash
14846 # newline sequences.
14847
14848 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14849 sed -n '
14850 s/.\{148\}/&'"$ac_delim"'/g
14851 t rset
14852 :rset
14853 s/^[ ]*#[ ]*define[ ][ ]*/ /
14854 t def
14855 d
14856 :def
14857 s/\\$//
14858 t bsnl
14859 s/["\\]/\\&/g
14860 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14861 D["\1"]=" \3"/p
14862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14863 d
14864 :bsnl
14865 s/["\\]/\\&/g
14866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14867 D["\1"]=" \3\\\\\\n"\\/p
14868 t cont
14869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14870 t cont
14871 d
14872 :cont
14873 n
14874 s/.\{148\}/&'"$ac_delim"'/g
14875 t clear
14876 :clear
14877 s/\\$//
14878 t bsnlc
14879 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14880 d
14881 :bsnlc
14882 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14883 b cont
14884 ' <confdefs.h | sed '
14885 s/'"$ac_delim"'/"\\\
14886 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14887
14888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14889 for (key in D) D_is_set[key] = 1
14890 FS = ""
14891 }
14892 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14893 line = \$ 0
14894 split(line, arg, " ")
14895 if (arg[1] == "#") {
14896 defundef = arg[2]
14897 mac1 = arg[3]
14898 } else {
14899 defundef = substr(arg[1], 2)
14900 mac1 = arg[2]
14901 }
14902 split(mac1, mac2, "(") #)
14903 macro = mac2[1]
14904 prefix = substr(line, 1, index(line, defundef) - 1)
14905 if (D_is_set[macro]) {
14906 # Preserve the white space surrounding the "#".
14907 print prefix "define", macro P[macro] D[macro]
14908 next
14909 } else {
14910 # Replace #undef with comments. This is necessary, for example,
14911 # in the case of _POSIX_SOURCE, which is predefined and required
14912 # on some systems where configure will not decide to define it.
14913 if (defundef == "undef") {
14914 print "/*", prefix defundef, macro, "*/"
14915 next
14916 }
14917 }
14918 }
14919 { print }
14920 _ACAWK
14921 _ACEOF
14922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14923 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14924 fi # test -n "$CONFIG_HEADERS"
14925
14926
14927 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14928 shift
14929 for ac_tag
14930 do
14931 case $ac_tag in
14932 :[FHLC]) ac_mode=$ac_tag; continue;;
14933 esac
14934 case $ac_mode$ac_tag in
14935 :[FHL]*:*);;
14936 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14937 :[FH]-) ac_tag=-:-;;
14938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14939 esac
14940 ac_save_IFS=$IFS
14941 IFS=:
14942 set x $ac_tag
14943 IFS=$ac_save_IFS
14944 shift
14945 ac_file=$1
14946 shift
14947
14948 case $ac_mode in
14949 :L) ac_source=$1;;
14950 :[FH])
14951 ac_file_inputs=
14952 for ac_f
14953 do
14954 case $ac_f in
14955 -) ac_f="$tmp/stdin";;
14956 *) # Look for the file first in the build tree, then in the source tree
14957 # (if the path is not absolute). The absolute path cannot be DOS-style,
14958 # because $ac_f cannot contain `:'.
14959 test -f "$ac_f" ||
14960 case $ac_f in
14961 [\\/$]*) false;;
14962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14963 esac ||
14964 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14965 esac
14966 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14967 as_fn_append ac_file_inputs " '$ac_f'"
14968 done
14969
14970 # Let's still pretend it is `configure' which instantiates (i.e., don't
14971 # use $as_me), people would be surprised to read:
14972 # /* config.h. Generated by config.status. */
14973 configure_input='Generated from '`
14974 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14975 `' by configure.'
14976 if test x"$ac_file" != x-; then
14977 configure_input="$ac_file. $configure_input"
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14979 $as_echo "$as_me: creating $ac_file" >&6;}
14980 fi
14981 # Neutralize special characters interpreted by sed in replacement strings.
14982 case $configure_input in #(
14983 *\&* | *\|* | *\\* )
14984 ac_sed_conf_input=`$as_echo "$configure_input" |
14985 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14986 *) ac_sed_conf_input=$configure_input;;
14987 esac
14988
14989 case $ac_tag in
14990 *:-:* | *:-) cat >"$tmp/stdin" \
14991 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14992 esac
14993 ;;
14994 esac
14995
14996 ac_dir=`$as_dirname -- "$ac_file" ||
14997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14998 X"$ac_file" : 'X\(//\)[^/]' \| \
14999 X"$ac_file" : 'X\(//\)$' \| \
15000 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15001 $as_echo X"$ac_file" |
15002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15003 s//\1/
15004 q
15005 }
15006 /^X\(\/\/\)[^/].*/{
15007 s//\1/
15008 q
15009 }
15010 /^X\(\/\/\)$/{
15011 s//\1/
15012 q
15013 }
15014 /^X\(\/\).*/{
15015 s//\1/
15016 q
15017 }
15018 s/.*/./; q'`
15019 as_dir="$ac_dir"; as_fn_mkdir_p
15020 ac_builddir=.
15021
15022 case "$ac_dir" in
15023 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15024 *)
15025 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15026 # A ".." for each directory in $ac_dir_suffix.
15027 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15028 case $ac_top_builddir_sub in
15029 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15030 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15031 esac ;;
15032 esac
15033 ac_abs_top_builddir=$ac_pwd
15034 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15035 # for backward compatibility:
15036 ac_top_builddir=$ac_top_build_prefix
15037
15038 case $srcdir in
15039 .) # We are building in place.
15040 ac_srcdir=.
15041 ac_top_srcdir=$ac_top_builddir_sub
15042 ac_abs_top_srcdir=$ac_pwd ;;
15043 [\\/]* | ?:[\\/]* ) # Absolute name.
15044 ac_srcdir=$srcdir$ac_dir_suffix;
15045 ac_top_srcdir=$srcdir
15046 ac_abs_top_srcdir=$srcdir ;;
15047 *) # Relative name.
15048 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15049 ac_top_srcdir=$ac_top_build_prefix$srcdir
15050 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15051 esac
15052 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15053
15054
15055 case $ac_mode in
15056 :F)
15057 #
15058 # CONFIG_FILE
15059 #
15060
15061 case $INSTALL in
15062 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15063 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15064 esac
15065 ac_MKDIR_P=$MKDIR_P
15066 case $MKDIR_P in
15067 [\\/$]* | ?:[\\/]* ) ;;
15068 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15069 esac
15070 _ACEOF
15071
15072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15073 # If the template does not know about datarootdir, expand it.
15074 # FIXME: This hack should be removed a few years after 2.60.
15075 ac_datarootdir_hack=; ac_datarootdir_seen=
15076 ac_sed_dataroot='
15077 /datarootdir/ {
15078 p
15079 q
15080 }
15081 /@datadir@/p
15082 /@docdir@/p
15083 /@infodir@/p
15084 /@localedir@/p
15085 /@mandir@/p'
15086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15087 *datarootdir*) ac_datarootdir_seen=yes;;
15088 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15093 ac_datarootdir_hack='
15094 s&@datadir@&$datadir&g
15095 s&@docdir@&$docdir&g
15096 s&@infodir@&$infodir&g
15097 s&@localedir@&$localedir&g
15098 s&@mandir@&$mandir&g
15099 s&\\\${datarootdir}&$datarootdir&g' ;;
15100 esac
15101 _ACEOF
15102
15103 # Neutralize VPATH when `$srcdir' = `.'.
15104 # Shell code in configure.ac might set extrasub.
15105 # FIXME: do we really want to maintain this feature?
15106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 ac_sed_extra="$ac_vpsub
15108 $extrasub
15109 _ACEOF
15110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15111 :t
15112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15113 s|@configure_input@|$ac_sed_conf_input|;t t
15114 s&@top_builddir@&$ac_top_builddir_sub&;t t
15115 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15116 s&@srcdir@&$ac_srcdir&;t t
15117 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15118 s&@top_srcdir@&$ac_top_srcdir&;t t
15119 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15120 s&@builddir@&$ac_builddir&;t t
15121 s&@abs_builddir@&$ac_abs_builddir&;t t
15122 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15123 s&@INSTALL@&$ac_INSTALL&;t t
15124 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15125 $ac_datarootdir_hack
15126 "
15127 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15128 || as_fn_error "could not create $ac_file" "$LINENO" 5
15129
15130 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15131 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15132 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15134 which seems to be undefined. Please make sure it is defined." >&5
15135 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15136 which seems to be undefined. Please make sure it is defined." >&2;}
15137
15138 rm -f "$tmp/stdin"
15139 case $ac_file in
15140 -) cat "$tmp/out" && rm -f "$tmp/out";;
15141 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15142 esac \
15143 || as_fn_error "could not create $ac_file" "$LINENO" 5
15144 ;;
15145 :H)
15146 #
15147 # CONFIG_HEADER
15148 #
15149 if test x"$ac_file" != x-; then
15150 {
15151 $as_echo "/* $configure_input */" \
15152 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15153 } >"$tmp/config.h" \
15154 || as_fn_error "could not create $ac_file" "$LINENO" 5
15155 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15157 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15158 else
15159 rm -f "$ac_file"
15160 mv "$tmp/config.h" "$ac_file" \
15161 || as_fn_error "could not create $ac_file" "$LINENO" 5
15162 fi
15163 else
15164 $as_echo "/* $configure_input */" \
15165 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15166 || as_fn_error "could not create -" "$LINENO" 5
15167 fi
15168 # Compute "$ac_file"'s index in $config_headers.
15169 _am_arg="$ac_file"
15170 _am_stamp_count=1
15171 for _am_header in $config_headers :; do
15172 case $_am_header in
15173 $_am_arg | $_am_arg:* )
15174 break ;;
15175 * )
15176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15177 esac
15178 done
15179 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15180 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15181 X"$_am_arg" : 'X\(//\)[^/]' \| \
15182 X"$_am_arg" : 'X\(//\)$' \| \
15183 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15184 $as_echo X"$_am_arg" |
15185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)[^/].*/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\/\)$/{
15194 s//\1/
15195 q
15196 }
15197 /^X\(\/\).*/{
15198 s//\1/
15199 q
15200 }
15201 s/.*/./; q'`/stamp-h$_am_stamp_count
15202 ;;
15203
15204 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15205 $as_echo "$as_me: executing $ac_file commands" >&6;}
15206 ;;
15207 esac
15208
15209
15210 case $ac_file$ac_mode in
15211 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15212 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15213 # are listed without --file. Let's play safe and only enable the eval
15214 # if we detect the quoting.
15215 case $CONFIG_FILES in
15216 *\'*) eval set x "$CONFIG_FILES" ;;
15217 *) set x $CONFIG_FILES ;;
15218 esac
15219 shift
15220 for mf
15221 do
15222 # Strip MF so we end up with the name of the file.
15223 mf=`echo "$mf" | sed -e 's/:.*$//'`
15224 # Check whether this is an Automake generated Makefile or not.
15225 # We used to match only the files named `Makefile.in', but
15226 # some people rename them; so instead we look at the file content.
15227 # Grep'ing the first line is not enough: some people post-process
15228 # each Makefile.in and add a new line on top of each file to say so.
15229 # Grep'ing the whole file is not good either: AIX grep has a line
15230 # limit of 2048, but all sed's we know have understand at least 4000.
15231 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15232 dirpart=`$as_dirname -- "$mf" ||
15233 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15234 X"$mf" : 'X\(//\)[^/]' \| \
15235 X"$mf" : 'X\(//\)$' \| \
15236 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15237 $as_echo X"$mf" |
15238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15239 s//\1/
15240 q
15241 }
15242 /^X\(\/\/\)[^/].*/{
15243 s//\1/
15244 q
15245 }
15246 /^X\(\/\/\)$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\).*/{
15251 s//\1/
15252 q
15253 }
15254 s/.*/./; q'`
15255 else
15256 continue
15257 fi
15258 # Extract the definition of DEPDIR, am__include, and am__quote
15259 # from the Makefile without running `make'.
15260 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15261 test -z "$DEPDIR" && continue
15262 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15263 test -z "am__include" && continue
15264 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15265 # When using ansi2knr, U may be empty or an underscore; expand it
15266 U=`sed -n 's/^U = //p' < "$mf"`
15267 # Find all dependency output files, they are included files with
15268 # $(DEPDIR) in their names. We invoke sed twice because it is the
15269 # simplest approach to changing $(DEPDIR) to its actual value in the
15270 # expansion.
15271 for file in `sed -n "
15272 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15273 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15274 # Make sure the directory exists.
15275 test -f "$dirpart/$file" && continue
15276 fdir=`$as_dirname -- "$file" ||
15277 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15278 X"$file" : 'X\(//\)[^/]' \| \
15279 X"$file" : 'X\(//\)$' \| \
15280 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15281 $as_echo X"$file" |
15282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15283 s//\1/
15284 q
15285 }
15286 /^X\(\/\/\)[^/].*/{
15287 s//\1/
15288 q
15289 }
15290 /^X\(\/\/\)$/{
15291 s//\1/
15292 q
15293 }
15294 /^X\(\/\).*/{
15295 s//\1/
15296 q
15297 }
15298 s/.*/./; q'`
15299 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15300 # echo "creating $dirpart/$file"
15301 echo '# dummy' > "$dirpart/$file"
15302 done
15303 done
15304 }
15305 ;;
15306 "libtool":C)
15307
15308 # See if we are running on zsh, and set the options which allow our
15309 # commands through without removal of \ escapes.
15310 if test -n "${ZSH_VERSION+set}" ; then
15311 setopt NO_GLOB_SUBST
15312 fi
15313
15314 cfgfile="${ofile}T"
15315 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15316 $RM "$cfgfile"
15317
15318 cat <<_LT_EOF >> "$cfgfile"
15319 #! $SHELL
15320
15321 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15322 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15324 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15325 #
15326 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15327 # 2006, 2007, 2008 Free Software Foundation, Inc.
15328 # Written by Gordon Matzigkeit, 1996
15329 #
15330 # This file is part of GNU Libtool.
15331 #
15332 # GNU Libtool is free software; you can redistribute it and/or
15333 # modify it under the terms of the GNU General Public License as
15334 # published by the Free Software Foundation; either version 2 of
15335 # the License, or (at your option) any later version.
15336 #
15337 # As a special exception to the GNU General Public License,
15338 # if you distribute this file as part of a program or library that
15339 # is built using GNU Libtool, you may include this file under the
15340 # same distribution terms that you use for the rest of that program.
15341 #
15342 # GNU Libtool is distributed in the hope that it will be useful,
15343 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15344 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15345 # GNU General Public License for more details.
15346 #
15347 # You should have received a copy of the GNU General Public License
15348 # along with GNU Libtool; see the file COPYING. If not, a copy
15349 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15350 # obtained by writing to the Free Software Foundation, Inc.,
15351 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15352
15353
15354 # The names of the tagged configurations supported by this script.
15355 available_tags=""
15356
15357 # ### BEGIN LIBTOOL CONFIG
15358
15359 # Which release of libtool.m4 was used?
15360 macro_version=$macro_version
15361 macro_revision=$macro_revision
15362
15363 # Whether or not to build static libraries.
15364 build_old_libs=$enable_static
15365
15366 # Whether or not to build shared libraries.
15367 build_libtool_libs=$enable_shared
15368
15369 # What type of objects to build.
15370 pic_mode=$pic_mode
15371
15372 # Whether or not to optimize for fast installation.
15373 fast_install=$enable_fast_install
15374
15375 # The host system.
15376 host_alias=$host_alias
15377 host=$host
15378 host_os=$host_os
15379
15380 # The build system.
15381 build_alias=$build_alias
15382 build=$build
15383 build_os=$build_os
15384
15385 # A sed program that does not truncate output.
15386 SED=$lt_SED
15387
15388 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15389 Xsed="\$SED -e 1s/^X//"
15390
15391 # A grep program that handles long lines.
15392 GREP=$lt_GREP
15393
15394 # An ERE matcher.
15395 EGREP=$lt_EGREP
15396
15397 # A literal string matcher.
15398 FGREP=$lt_FGREP
15399
15400 # A BSD- or MS-compatible name lister.
15401 NM=$lt_NM
15402
15403 # Whether we need soft or hard links.
15404 LN_S=$lt_LN_S
15405
15406 # What is the maximum length of a command?
15407 max_cmd_len=$max_cmd_len
15408
15409 # Object file suffix (normally "o").
15410 objext=$ac_objext
15411
15412 # Executable file suffix (normally "").
15413 exeext=$exeext
15414
15415 # whether the shell understands "unset".
15416 lt_unset=$lt_unset
15417
15418 # turn spaces into newlines.
15419 SP2NL=$lt_lt_SP2NL
15420
15421 # turn newlines into spaces.
15422 NL2SP=$lt_lt_NL2SP
15423
15424 # How to create reloadable object files.
15425 reload_flag=$lt_reload_flag
15426 reload_cmds=$lt_reload_cmds
15427
15428 # An object symbol dumper.
15429 OBJDUMP=$lt_OBJDUMP
15430
15431 # Method to check whether dependent libraries are shared objects.
15432 deplibs_check_method=$lt_deplibs_check_method
15433
15434 # Command to use when deplibs_check_method == "file_magic".
15435 file_magic_cmd=$lt_file_magic_cmd
15436
15437 # The archiver.
15438 AR=$lt_AR
15439 AR_FLAGS=$lt_AR_FLAGS
15440
15441 # A symbol stripping program.
15442 STRIP=$lt_STRIP
15443
15444 # Commands used to install an old-style archive.
15445 RANLIB=$lt_RANLIB
15446 old_postinstall_cmds=$lt_old_postinstall_cmds
15447 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15448
15449 # A C compiler.
15450 LTCC=$lt_CC
15451
15452 # LTCC compiler flags.
15453 LTCFLAGS=$lt_CFLAGS
15454
15455 # Take the output of nm and produce a listing of raw symbols and C names.
15456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15457
15458 # Transform the output of nm in a proper C declaration.
15459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15460
15461 # Transform the output of nm in a C name address pair.
15462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15463
15464 # Transform the output of nm in a C name address pair when lib prefix is needed.
15465 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15466
15467 # The name of the directory that contains temporary libtool files.
15468 objdir=$objdir
15469
15470 # Shell to use when invoking shell scripts.
15471 SHELL=$lt_SHELL
15472
15473 # An echo program that does not interpret backslashes.
15474 ECHO=$lt_ECHO
15475
15476 # Used to examine libraries when file_magic_cmd begins with "file".
15477 MAGIC_CMD=$MAGIC_CMD
15478
15479 # Must we lock files when doing compilation?
15480 need_locks=$lt_need_locks
15481
15482 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15483 DSYMUTIL=$lt_DSYMUTIL
15484
15485 # Tool to change global to local symbols on Mac OS X.
15486 NMEDIT=$lt_NMEDIT
15487
15488 # Tool to manipulate fat objects and archives on Mac OS X.
15489 LIPO=$lt_LIPO
15490
15491 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15492 OTOOL=$lt_OTOOL
15493
15494 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15495 OTOOL64=$lt_OTOOL64
15496
15497 # Old archive suffix (normally "a").
15498 libext=$libext
15499
15500 # Shared library suffix (normally ".so").
15501 shrext_cmds=$lt_shrext_cmds
15502
15503 # The commands to extract the exported symbol list from a shared archive.
15504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15505
15506 # Variables whose values should be saved in libtool wrapper scripts and
15507 # restored at link time.
15508 variables_saved_for_relink=$lt_variables_saved_for_relink
15509
15510 # Do we need the "lib" prefix for modules?
15511 need_lib_prefix=$need_lib_prefix
15512
15513 # Do we need a version for libraries?
15514 need_version=$need_version
15515
15516 # Library versioning type.
15517 version_type=$version_type
15518
15519 # Shared library runtime path variable.
15520 runpath_var=$runpath_var
15521
15522 # Shared library path variable.
15523 shlibpath_var=$shlibpath_var
15524
15525 # Is shlibpath searched before the hard-coded library search path?
15526 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15527
15528 # Format of library name prefix.
15529 libname_spec=$lt_libname_spec
15530
15531 # List of archive names. First name is the real one, the rest are links.
15532 # The last name is the one that the linker finds with -lNAME
15533 library_names_spec=$lt_library_names_spec
15534
15535 # The coded name of the library, if different from the real name.
15536 soname_spec=$lt_soname_spec
15537
15538 # Command to use after installation of a shared archive.
15539 postinstall_cmds=$lt_postinstall_cmds
15540
15541 # Command to use after uninstallation of a shared archive.
15542 postuninstall_cmds=$lt_postuninstall_cmds
15543
15544 # Commands used to finish a libtool library installation in a directory.
15545 finish_cmds=$lt_finish_cmds
15546
15547 # As "finish_cmds", except a single script fragment to be evaled but
15548 # not shown.
15549 finish_eval=$lt_finish_eval
15550
15551 # Whether we should hardcode library paths into libraries.
15552 hardcode_into_libs=$hardcode_into_libs
15553
15554 # Compile-time system search path for libraries.
15555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15556
15557 # Run-time system search path for libraries.
15558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15559
15560 # Whether dlopen is supported.
15561 dlopen_support=$enable_dlopen
15562
15563 # Whether dlopen of programs is supported.
15564 dlopen_self=$enable_dlopen_self
15565
15566 # Whether dlopen of statically linked programs is supported.
15567 dlopen_self_static=$enable_dlopen_self_static
15568
15569 # Commands to strip libraries.
15570 old_striplib=$lt_old_striplib
15571 striplib=$lt_striplib
15572
15573
15574 # The linker used to build libraries.
15575 LD=$lt_LD
15576
15577 # Commands used to build an old-style archive.
15578 old_archive_cmds=$lt_old_archive_cmds
15579
15580 # A language specific compiler.
15581 CC=$lt_compiler
15582
15583 # Is the compiler the GNU compiler?
15584 with_gcc=$GCC
15585
15586 # Compiler flag to turn off builtin functions.
15587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15588
15589 # How to pass a linker flag through the compiler.
15590 wl=$lt_lt_prog_compiler_wl
15591
15592 # Additional compiler flags for building library objects.
15593 pic_flag=$lt_lt_prog_compiler_pic
15594
15595 # Compiler flag to prevent dynamic linking.
15596 link_static_flag=$lt_lt_prog_compiler_static
15597
15598 # Does compiler simultaneously support -c and -o options?
15599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15600
15601 # Whether or not to add -lc for building shared libraries.
15602 build_libtool_need_lc=$archive_cmds_need_lc
15603
15604 # Whether or not to disallow shared libs when runtime libs are static.
15605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15606
15607 # Compiler flag to allow reflexive dlopens.
15608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15609
15610 # Compiler flag to generate shared objects directly from archives.
15611 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15612
15613 # Whether the compiler copes with passing no objects directly.
15614 compiler_needs_object=$lt_compiler_needs_object
15615
15616 # Create an old-style archive from a shared archive.
15617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15618
15619 # Create a temporary old-style archive to link instead of a shared archive.
15620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15621
15622 # Commands used to build a shared archive.
15623 archive_cmds=$lt_archive_cmds
15624 archive_expsym_cmds=$lt_archive_expsym_cmds
15625
15626 # Commands used to build a loadable module if different from building
15627 # a shared archive.
15628 module_cmds=$lt_module_cmds
15629 module_expsym_cmds=$lt_module_expsym_cmds
15630
15631 # Whether we are building with GNU ld or not.
15632 with_gnu_ld=$lt_with_gnu_ld
15633
15634 # Flag that allows shared libraries with undefined symbols to be built.
15635 allow_undefined_flag=$lt_allow_undefined_flag
15636
15637 # Flag that enforces no undefined symbols.
15638 no_undefined_flag=$lt_no_undefined_flag
15639
15640 # Flag to hardcode \$libdir into a binary during linking.
15641 # This must work even if \$libdir does not exist
15642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15643
15644 # If ld is used when linking, flag to hardcode \$libdir into a binary
15645 # during linking. This must work even if \$libdir does not exist.
15646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15647
15648 # Whether we need a single "-rpath" flag with a separated argument.
15649 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15650
15651 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15652 # DIR into the resulting binary.
15653 hardcode_direct=$hardcode_direct
15654
15655 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15656 # DIR into the resulting binary and the resulting library dependency is
15657 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15658 # library is relocated.
15659 hardcode_direct_absolute=$hardcode_direct_absolute
15660
15661 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15662 # into the resulting binary.
15663 hardcode_minus_L=$hardcode_minus_L
15664
15665 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15666 # into the resulting binary.
15667 hardcode_shlibpath_var=$hardcode_shlibpath_var
15668
15669 # Set to "yes" if building a shared library automatically hardcodes DIR
15670 # into the library and all subsequent libraries and executables linked
15671 # against it.
15672 hardcode_automatic=$hardcode_automatic
15673
15674 # Set to yes if linker adds runtime paths of dependent libraries
15675 # to runtime path list.
15676 inherit_rpath=$inherit_rpath
15677
15678 # Whether libtool must link a program against all its dependency libraries.
15679 link_all_deplibs=$link_all_deplibs
15680
15681 # Fix the shell variable \$srcfile for the compiler.
15682 fix_srcfile_path=$lt_fix_srcfile_path
15683
15684 # Set to "yes" if exported symbols are required.
15685 always_export_symbols=$always_export_symbols
15686
15687 # The commands to list exported symbols.
15688 export_symbols_cmds=$lt_export_symbols_cmds
15689
15690 # Symbols that should not be listed in the preloaded symbols.
15691 exclude_expsyms=$lt_exclude_expsyms
15692
15693 # Symbols that must always be exported.
15694 include_expsyms=$lt_include_expsyms
15695
15696 # Commands necessary for linking programs (against libraries) with templates.
15697 prelink_cmds=$lt_prelink_cmds
15698
15699 # Specify filename containing input files.
15700 file_list_spec=$lt_file_list_spec
15701
15702 # How to hardcode a shared library path into an executable.
15703 hardcode_action=$hardcode_action
15704
15705 # ### END LIBTOOL CONFIG
15706
15707 _LT_EOF
15708
15709 case $host_os in
15710 aix3*)
15711 cat <<\_LT_EOF >> "$cfgfile"
15712 # AIX sometimes has problems with the GCC collect2 program. For some
15713 # reason, if we set the COLLECT_NAMES environment variable, the problems
15714 # vanish in a puff of smoke.
15715 if test "X${COLLECT_NAMES+set}" != Xset; then
15716 COLLECT_NAMES=
15717 export COLLECT_NAMES
15718 fi
15719 _LT_EOF
15720 ;;
15721 esac
15722
15723
15724 ltmain="$ac_aux_dir/ltmain.sh"
15725
15726
15727 # We use sed instead of cat because bash on DJGPP gets confused if
15728 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15729 # text mode, it properly converts lines to CR/LF. This bash problem
15730 # is reportedly fixed, but why not run on old versions too?
15731 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15732 || (rm -f "$cfgfile"; exit 1)
15733
15734 case $xsi_shell in
15735 yes)
15736 cat << \_LT_EOF >> "$cfgfile"
15737
15738 # func_dirname file append nondir_replacement
15739 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15740 # otherwise set result to NONDIR_REPLACEMENT.
15741 func_dirname ()
15742 {
15743 case ${1} in
15744 */*) func_dirname_result="${1%/*}${2}" ;;
15745 * ) func_dirname_result="${3}" ;;
15746 esac
15747 }
15748
15749 # func_basename file
15750 func_basename ()
15751 {
15752 func_basename_result="${1##*/}"
15753 }
15754
15755 # func_dirname_and_basename file append nondir_replacement
15756 # perform func_basename and func_dirname in a single function
15757 # call:
15758 # dirname: Compute the dirname of FILE. If nonempty,
15759 # add APPEND to the result, otherwise set result
15760 # to NONDIR_REPLACEMENT.
15761 # value returned in "$func_dirname_result"
15762 # basename: Compute filename of FILE.
15763 # value retuned in "$func_basename_result"
15764 # Implementation must be kept synchronized with func_dirname
15765 # and func_basename. For efficiency, we do not delegate to
15766 # those functions but instead duplicate the functionality here.
15767 func_dirname_and_basename ()
15768 {
15769 case ${1} in
15770 */*) func_dirname_result="${1%/*}${2}" ;;
15771 * ) func_dirname_result="${3}" ;;
15772 esac
15773 func_basename_result="${1##*/}"
15774 }
15775
15776 # func_stripname prefix suffix name
15777 # strip PREFIX and SUFFIX off of NAME.
15778 # PREFIX and SUFFIX must not contain globbing or regex special
15779 # characters, hashes, percent signs, but SUFFIX may contain a leading
15780 # dot (in which case that matches only a dot).
15781 func_stripname ()
15782 {
15783 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15784 # positional parameters, so assign one to ordinary parameter first.
15785 func_stripname_result=${3}
15786 func_stripname_result=${func_stripname_result#"${1}"}
15787 func_stripname_result=${func_stripname_result%"${2}"}
15788 }
15789
15790 # func_opt_split
15791 func_opt_split ()
15792 {
15793 func_opt_split_opt=${1%%=*}
15794 func_opt_split_arg=${1#*=}
15795 }
15796
15797 # func_lo2o object
15798 func_lo2o ()
15799 {
15800 case ${1} in
15801 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15802 *) func_lo2o_result=${1} ;;
15803 esac
15804 }
15805
15806 # func_xform libobj-or-source
15807 func_xform ()
15808 {
15809 func_xform_result=${1%.*}.lo
15810 }
15811
15812 # func_arith arithmetic-term...
15813 func_arith ()
15814 {
15815 func_arith_result=$(( $* ))
15816 }
15817
15818 # func_len string
15819 # STRING may not start with a hyphen.
15820 func_len ()
15821 {
15822 func_len_result=${#1}
15823 }
15824
15825 _LT_EOF
15826 ;;
15827 *) # Bourne compatible functions.
15828 cat << \_LT_EOF >> "$cfgfile"
15829
15830 # func_dirname file append nondir_replacement
15831 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15832 # otherwise set result to NONDIR_REPLACEMENT.
15833 func_dirname ()
15834 {
15835 # Extract subdirectory from the argument.
15836 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15837 if test "X$func_dirname_result" = "X${1}"; then
15838 func_dirname_result="${3}"
15839 else
15840 func_dirname_result="$func_dirname_result${2}"
15841 fi
15842 }
15843
15844 # func_basename file
15845 func_basename ()
15846 {
15847 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15848 }
15849
15850
15851 # func_stripname prefix suffix name
15852 # strip PREFIX and SUFFIX off of NAME.
15853 # PREFIX and SUFFIX must not contain globbing or regex special
15854 # characters, hashes, percent signs, but SUFFIX may contain a leading
15855 # dot (in which case that matches only a dot).
15856 # func_strip_suffix prefix name
15857 func_stripname ()
15858 {
15859 case ${2} in
15860 .*) func_stripname_result=`$ECHO "X${3}" \
15861 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15862 *) func_stripname_result=`$ECHO "X${3}" \
15863 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15864 esac
15865 }
15866
15867 # sed scripts:
15868 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15869 my_sed_long_arg='1s/^-[^=]*=//'
15870
15871 # func_opt_split
15872 func_opt_split ()
15873 {
15874 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15875 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15876 }
15877
15878 # func_lo2o object
15879 func_lo2o ()
15880 {
15881 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15882 }
15883
15884 # func_xform libobj-or-source
15885 func_xform ()
15886 {
15887 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15888 }
15889
15890 # func_arith arithmetic-term...
15891 func_arith ()
15892 {
15893 func_arith_result=`expr "$@"`
15894 }
15895
15896 # func_len string
15897 # STRING may not start with a hyphen.
15898 func_len ()
15899 {
15900 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15901 }
15902
15903 _LT_EOF
15904 esac
15905
15906 case $lt_shell_append in
15907 yes)
15908 cat << \_LT_EOF >> "$cfgfile"
15909
15910 # func_append var value
15911 # Append VALUE to the end of shell variable VAR.
15912 func_append ()
15913 {
15914 eval "$1+=\$2"
15915 }
15916 _LT_EOF
15917 ;;
15918 *)
15919 cat << \_LT_EOF >> "$cfgfile"
15920
15921 # func_append var value
15922 # Append VALUE to the end of shell variable VAR.
15923 func_append ()
15924 {
15925 eval "$1=\$$1\$2"
15926 }
15927
15928 _LT_EOF
15929 ;;
15930 esac
15931
15932
15933 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15934 || (rm -f "$cfgfile"; exit 1)
15935
15936 mv -f "$cfgfile" "$ofile" ||
15937 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15938 chmod +x "$ofile"
15939
15940 ;;
15941
15942 esac
15943 done # for ac_tag
15944
15945
15946 as_fn_exit 0
15947 _ACEOF
15948 ac_clean_files=$ac_clean_files_save
15949
15950 test $ac_write_fail = 0 ||
15951 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15952
15953
15954 # configure is writing to config.log, and then calls config.status.
15955 # config.status does its own redirection, appending to config.log.
15956 # Unfortunately, on DOS this fails, as config.log is still kept open
15957 # by configure, so config.status won't be able to write to it; its
15958 # output is simply discarded. So we exec the FD to /dev/null,
15959 # effectively closing config.log, so it can be properly (re)opened and
15960 # appended to by config.status. When coming back to configure, we
15961 # need to make the FD available again.
15962 if test "$no_create" != yes; then
15963 ac_cs_success=:
15964 ac_config_status_args=
15965 test "$silent" = yes &&
15966 ac_config_status_args="$ac_config_status_args --quiet"
15967 exec 5>/dev/null
15968 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15969 exec 5>>config.log
15970 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15971 # would make configure fail if this is the last instruction.
15972 $ac_cs_success || as_fn_exit $?
15973 fi
15974
15975 #
15976 # CONFIG_SUBDIRS section.
15977 #
15978 if test "$no_recursion" != yes; then
15979
15980 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15981 # so they do not pile up.
15982 ac_sub_configure_args=
15983 ac_prev=
15984 eval "set x $ac_configure_args"
15985 shift
15986 for ac_arg
15987 do
15988 if test -n "$ac_prev"; then
15989 ac_prev=
15990 continue
15991 fi
15992 case $ac_arg in
15993 -cache-file | --cache-file | --cache-fil | --cache-fi \
15994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15995 ac_prev=cache_file ;;
15996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15998 | --c=*)
15999 ;;
16000 --config-cache | -C)
16001 ;;
16002 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16003 ac_prev=srcdir ;;
16004 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16005 ;;
16006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16007 ac_prev=prefix ;;
16008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16009 ;;
16010 --disable-option-checking)
16011 ;;
16012 *)
16013 case $ac_arg in
16014 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16015 esac
16016 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16017 esac
16018 done
16019
16020 # Always prepend --prefix to ensure using the same prefix
16021 # in subdir configurations.
16022 ac_arg="--prefix=$prefix"
16023 case $ac_arg in
16024 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16025 esac
16026 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16027
16028 # Pass --silent
16029 if test "$silent" = yes; then
16030 ac_sub_configure_args="--silent $ac_sub_configure_args"
16031 fi
16032
16033 # Always prepend --disable-option-checking to silence warnings, since
16034 # different subdirs can have different --enable and --with options.
16035 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16036
16037 ac_popdir=`pwd`
16038 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16039
16040 # Do not complain, so a configure script can configure whichever
16041 # parts of a large source tree are present.
16042 test -d "$srcdir/$ac_dir" || continue
16043
16044 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16045 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16046 $as_echo "$ac_msg" >&6
16047 as_dir="$ac_dir"; as_fn_mkdir_p
16048 ac_builddir=.
16049
16050 case "$ac_dir" in
16051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16052 *)
16053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16054 # A ".." for each directory in $ac_dir_suffix.
16055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16056 case $ac_top_builddir_sub in
16057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16059 esac ;;
16060 esac
16061 ac_abs_top_builddir=$ac_pwd
16062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16063 # for backward compatibility:
16064 ac_top_builddir=$ac_top_build_prefix
16065
16066 case $srcdir in
16067 .) # We are building in place.
16068 ac_srcdir=.
16069 ac_top_srcdir=$ac_top_builddir_sub
16070 ac_abs_top_srcdir=$ac_pwd ;;
16071 [\\/]* | ?:[\\/]* ) # Absolute name.
16072 ac_srcdir=$srcdir$ac_dir_suffix;
16073 ac_top_srcdir=$srcdir
16074 ac_abs_top_srcdir=$srcdir ;;
16075 *) # Relative name.
16076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16077 ac_top_srcdir=$ac_top_build_prefix$srcdir
16078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16079 esac
16080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16081
16082
16083 cd "$ac_dir"
16084
16085 # Check for guested configure; otherwise get Cygnus style configure.
16086 if test -f "$ac_srcdir/configure.gnu"; then
16087 ac_sub_configure=$ac_srcdir/configure.gnu
16088 elif test -f "$ac_srcdir/configure"; then
16089 ac_sub_configure=$ac_srcdir/configure
16090 elif test -f "$ac_srcdir/configure.in"; then
16091 # This should be Cygnus configure.
16092 ac_sub_configure=$ac_aux_dir/configure
16093 else
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16095 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16096 ac_sub_configure=
16097 fi
16098
16099 # The recursion is here.
16100 if test -n "$ac_sub_configure"; then
16101 # Make the cache file name correct relative to the subdirectory.
16102 case $cache_file in
16103 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16104 *) # Relative name.
16105 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16106 esac
16107
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16109 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16110 # The eval makes quoting arguments work.
16111 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16112 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16113 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16114 fi
16115
16116 cd "$ac_popdir"
16117 done
16118 fi
16119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16122 fi
16123

Properties

Name Value
svn:executable *