ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/configure
Revision: 977
Committed: Sat Aug 8 07:33:08 2009 UTC (14 years, 8 months ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 468958 byte(s)
Log Message:
- removed last traces of crypt.c
- add disable-static to libtools options

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 955 2009-07-27 00:27:20Z 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 LTDLOPEN
764 LT_CONFIG_H
765 subdirs
766 CONVENIENCE_LTDL_FALSE
767 CONVENIENCE_LTDL_TRUE
768 INSTALL_LTDL_FALSE
769 INSTALL_LTDL_TRUE
770 ARGZ_H
771 sys_symbol_underscore
772 LIBADD_DL
773 LT_DLPREOPEN
774 LIBADD_DLD_LINK
775 LIBADD_SHL_LOAD
776 LIBADD_DLOPEN
777 LT_DLLOADERS
778 INCLTDL
779 LTDLINCL
780 LTDLDEPS
781 LIBLTDL
782 CPP
783 OTOOL64
784 OTOOL
785 LIPO
786 NMEDIT
787 DSYMUTIL
788 lt_ECHO
789 RANLIB
790 AR
791 OBJDUMP
792 LN_S
793 NM
794 ac_ct_DUMPBIN
795 DUMPBIN
796 LD
797 FGREP
798 EGREP
799 GREP
800 SED
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 LIBTOOL
810 LEXLIB
811 LEX_OUTPUT_ROOT
812 LEX
813 YFLAGS
814 YACC
815 am__fastdepCC_FALSE
816 am__fastdepCC_TRUE
817 CCDEPMODE
818 AMDEPBACKSLASH
819 AMDEP_FALSE
820 AMDEP_TRUE
821 am__quote
822 am__include
823 DEPDIR
824 OBJEXT
825 EXEEXT
826 ac_ct_CC
827 CPPFLAGS
828 LDFLAGS
829 CFLAGS
830 CC
831 MAINT
832 MAINTAINER_MODE_FALSE
833 MAINTAINER_MODE_TRUE
834 am__untar
835 am__tar
836 AMTAR
837 am__leading_dot
838 SET_MAKE
839 AWK
840 mkdir_p
841 MKDIR_P
842 INSTALL_STRIP_PROGRAM
843 STRIP
844 install_sh
845 MAKEINFO
846 AUTOHEADER
847 AUTOMAKE
848 AUTOCONF
849 ACLOCAL
850 VERSION
851 PACKAGE
852 CYGPATH_W
853 am__isrc
854 INSTALL_DATA
855 INSTALL_SCRIPT
856 INSTALL_PROGRAM
857 target_alias
858 host_alias
859 build_alias
860 LIBS
861 ECHO_T
862 ECHO_N
863 ECHO_C
864 DEFS
865 mandir
866 localedir
867 libdir
868 psdir
869 pdfdir
870 dvidir
871 htmldir
872 infodir
873 docdir
874 oldincludedir
875 includedir
876 localstatedir
877 sharedstatedir
878 sysconfdir
879 datadir
880 datarootdir
881 libexecdir
882 sbindir
883 bindir
884 program_transform_name
885 prefix
886 exec_prefix
887 PACKAGE_URL
888 PACKAGE_BUGREPORT
889 PACKAGE_STRING
890 PACKAGE_VERSION
891 PACKAGE_TARNAME
892 PACKAGE_NAME
893 PATH_SEPARATOR
894 SHELL'
895 ac_subst_files=''
896 ac_user_opts='
897 enable_option_checking
898 enable_maintainer_mode
899 enable_dependency_tracking
900 enable_static
901 enable_shared
902 with_pic
903 enable_fast_install
904 with_gnu_ld
905 enable_libtool_lock
906 with_included_ltdl
907 with_ltdl_include
908 with_ltdl_lib
909 enable_ltdl_install
910 with_zlib_path
911 enable_zlib
912 enable_openssl
913 enable_assert
914 enable_small_net
915 enable_kqueue
916 enable_epoll
917 enable_devpoll
918 enable_rtsigio
919 enable_poll
920 enable_select
921 with_nicklen
922 with_topiclen
923 with_syslog_facility
924 enable_efnet
925 enable_halfops
926 enable_debugging
927 enable_warnings
928 enable_syslog
929 '
930 ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 YACC
939 YFLAGS
940 CPP'
941 ac_subdirs_all='libltdl'
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1548 fi
1549
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1553 esac
1554 cat <<\_ACEOF
1555
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-maintainer-mode enable make rules and dependencies not useful
1561 (and sometimes confusing) to the casual installer
1562 --disable-dependency-tracking speeds up one-time build
1563 --enable-dependency-tracking do not reject slow dependency extractors
1564 --enable-static[=PKGS] build static libraries [default=no]
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --enable-ltdl-install install libltdl
1570 --disable-zlib Disable ziplinks support
1571 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1572 --disable-openssl Disable OpenSSL support.
1573 --enable-assert Enable assert() statements
1574 --enable-small-net Enable small network support.
1575 --enable-kqueue Force kqueue usage.
1576 --enable-epoll Force epoll usage.
1577 --enable-devpoll Force devpoll usage.
1578 --enable-rtsigio Force rtsigio usage.
1579 --enable-poll Force poll usage.
1580 --enable-select Force select usage.
1581 --enable-efnet For IRCDs running on EFnet.
1582 --enable-halfops Enable halfops support.
1583 --enable-debugging Enable debugging.
1584 --enable-warnings Enable compiler warnings.
1585 --enable-syslog="EVENTS"
1586 Enable syslog for events: users oper (space
1587 separated in quotes; default: disabled).
1588
1589 Optional Packages:
1590 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592 --with-pic try to use only PIC/non-PIC objects [default=use
1593 both]
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-included-ltdl use the GNU ltdl sources included here
1596 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1597 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1598 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1599 --with-nicklen=<value> Set nickname length (default 9).
1600 --with-topiclen=<value> Set topic length (default 160).
1601 --with-syslog-facility=LOG
1602 Define the syslog facility to use (default:
1603 LOG_LOCAL4)
1604
1605 Some influential environment variables:
1606 CC C compiler command
1607 CFLAGS C compiler flags
1608 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609 nonstandard directory <lib dir>
1610 LIBS libraries to pass to the linker, e.g. -l<library>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1613 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1614 the first program found out of: `bison -y', `byacc', `yacc'.
1615 YFLAGS The list of arguments that will be passed by default to $YACC.
1616 This script will default YFLAGS to the empty string to avoid a
1617 default value of `-d' given by some make applications.
1618 CPP C preprocessor
1619
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1622
1623 Report bugs to the package provider.
1624 _ACEOF
1625 ac_status=$?
1626 fi
1627
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" ||
1632 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633 continue
1634 ac_builddir=.
1635
1636 case "$ac_dir" in
1637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 *)
1639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 # A ".." for each directory in $ac_dir_suffix.
1641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 case $ac_top_builddir_sub in
1643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 esac ;;
1646 esac
1647 ac_abs_top_builddir=$ac_pwd
1648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649 # for backward compatibility:
1650 ac_top_builddir=$ac_top_build_prefix
1651
1652 case $srcdir in
1653 .) # We are building in place.
1654 ac_srcdir=.
1655 ac_top_srcdir=$ac_top_builddir_sub
1656 ac_abs_top_srcdir=$ac_pwd ;;
1657 [\\/]* | ?:[\\/]* ) # Absolute name.
1658 ac_srcdir=$srcdir$ac_dir_suffix;
1659 ac_top_srcdir=$srcdir
1660 ac_abs_top_srcdir=$srcdir ;;
1661 *) # Relative name.
1662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663 ac_top_srcdir=$ac_top_build_prefix$srcdir
1664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 esac
1666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667
1668 cd "$ac_dir" || { ac_status=$?; continue; }
1669 # Check for guested configure.
1670 if test -f "$ac_srcdir/configure.gnu"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673 elif test -f "$ac_srcdir/configure"; then
1674 echo &&
1675 $SHELL "$ac_srcdir/configure" --help=recursive
1676 else
1677 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 fi || ac_status=$?
1679 cd "$ac_pwd" || { ac_status=$?; break; }
1680 done
1681 fi
1682
1683 test -n "$ac_init_help" && exit $ac_status
1684 if $ac_init_version; then
1685 cat <<\_ACEOF
1686 ircd-hybrid configure 7.2.4
1687 generated by GNU Autoconf 2.64
1688
1689 Copyright (C) 2009 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693 exit
1694 fi
1695
1696 ## ------------------------ ##
1697 ## Autoconf initialization. ##
1698 ## ------------------------ ##
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 return $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_c_try_link LINENO
1739 # -----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_link ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 $as_test_x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768 else
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773 fi
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 return $ac_retval
1781
1782 } # ac_fn_c_try_link
1783
1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists and can be compiled using the include files in
1787 # INCLUDES, setting the cache variable VAR accordingly.
1788 ac_fn_c_check_header_compile ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 #include <$2>
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803 else
1804 eval "$3=no"
1805 fi
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812
1813 } # ac_fn_c_check_header_compile
1814
1815 # ac_fn_c_try_cpp LINENO
1816 # ----------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_c_try_cpp ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } >/dev/null && {
1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 }; then :
1840 ac_retval=0
1841 else
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846 fi
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848 return $ac_retval
1849
1850 } # ac_fn_c_try_cpp
1851
1852 # ac_fn_c_try_run LINENO
1853 # ----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855 # that executables *can* be run.
1856 ac_fn_c_try_run ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>&5
1867 ac_status=$?
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870 { { case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_try") 2>&5
1877 ac_status=$?
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; }; }; then :
1880 ac_retval=0
1881 else
1882 $as_echo "$as_me: program exited with status $ac_status" >&5
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886 ac_retval=$ac_status
1887 fi
1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 return $ac_retval
1891
1892 } # ac_fn_c_try_run
1893
1894 # ac_fn_c_check_func LINENO FUNC VAR
1895 # ----------------------------------
1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897 ac_fn_c_check_func ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1910
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1915
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1921
1922 #undef $2
1923
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1937
1938 int
1939 main ()
1940 {
1941 return $2 ();
1942 ;
1943 return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958
1959 } # ac_fn_c_check_func
1960
1961 # ac_fn_c_check_decl LINENO SYMBOL VAR
1962 # ------------------------------------
1963 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1964 ac_fn_c_check_decl ()
1965 {
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1968 $as_echo_n "checking whether $2 is declared... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $4
1975 int
1976 main ()
1977 {
1978 #ifndef $2
1979 (void) $2;
1980 #endif
1981
1982 ;
1983 return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987 eval "$3=yes"
1988 else
1989 eval "$3=no"
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997
1998 } # ac_fn_c_check_decl
1999
2000 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001 # -------------------------------------------
2002 # Tests whether TYPE exists after having included INCLUDES, setting cache
2003 # variable VAR accordingly.
2004 ac_fn_c_check_type ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008 $as_echo_n "checking for $2... " >&6; }
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 eval "$3=no"
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 $4
2016 int
2017 main ()
2018 {
2019 if (sizeof ($2))
2020 return 0;
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 int
2030 main ()
2031 {
2032 if (sizeof (($2)))
2033 return 0;
2034 ;
2035 return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039
2040 else
2041 eval "$3=yes"
2042 fi
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052 } # ac_fn_c_check_type
2053
2054 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2055 # ----------------------------------------------------
2056 # Tries to find if the field MEMBER exists in type AGGR, after including
2057 # INCLUDES, setting cache variable VAR accordingly.
2058 ac_fn_c_check_member ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2062 $as_echo_n "checking for $2.$3... " >&6; }
2063 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $5
2069 int
2070 main ()
2071 {
2072 static $2 ac_aggr;
2073 if (ac_aggr.$3)
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 eval "$4=yes"
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $5
2085 int
2086 main ()
2087 {
2088 static $2 ac_aggr;
2089 if (sizeof ac_aggr.$3)
2090 return 0;
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$4=yes"
2097 else
2098 eval "$4=no"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$4
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108
2109 } # ac_fn_c_check_member
2110
2111 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112 # --------------------------------------------
2113 # Tries to find the compile-time value of EXPR in a program that includes
2114 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2115 # computed
2116 ac_fn_c_compute_int ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if test "$cross_compiling" = yes; then
2120 # Depending upon the size, compute the lo and hi bounds.
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) >= 0)];
2128 test_array [0] = 0
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 ac_lo=0 ac_mid=0
2136 while :; do
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid; break
2152 else
2153 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154 if test $ac_lo -le $ac_mid; then
2155 ac_lo= ac_hi=
2156 break
2157 fi
2158 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $4
2166 int
2167 main ()
2168 {
2169 static int test_array [1 - 2 * !(($2) < 0)];
2170 test_array [0] = 0
2171
2172 ;
2173 return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 ac_hi=-1 ac_mid=-1
2178 while :; do
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 int
2183 main ()
2184 {
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186 test_array [0] = 0
2187
2188 ;
2189 return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_lo=$ac_mid; break
2194 else
2195 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196 if test $ac_mid -le $ac_hi; then
2197 ac_lo= ac_hi=
2198 break
2199 fi
2200 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 fi
2202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203 done
2204 else
2205 ac_lo= ac_hi=
2206 fi
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 fi
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 # Binary search between lo and hi bounds.
2211 while test "x$ac_lo" != "x$ac_hi"; do
2212 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $4
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 test_array [0] = 0
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228 else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 case $ac_lo in #((
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 '') ac_retval=1 ;;
2236 esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2243 #include <stdio.h>
2244 #include <stdlib.h>
2245 int
2246 main ()
2247 {
2248
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2253 {
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2258 }
2259 else
2260 {
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2265 }
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2269
2270 ;
2271 return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 else
2277 ac_retval=1
2278 fi
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 rm -f conftest.val
2282
2283 fi
2284 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 return $ac_retval
2286
2287 } # ac_fn_c_compute_int
2288
2289 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2290 # -------------------------------------------------------
2291 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2292 # the include files in INCLUDES and setting the cache variable VAR
2293 # accordingly.
2294 ac_fn_c_check_header_mongrel ()
2295 {
2296 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301 $as_echo_n "(cached) " >&6
2302 fi
2303 eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 else
2307 # Is the header compilable?
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2309 $as_echo_n "checking $2 usability... " >&6; }
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $4
2313 #include <$2>
2314 _ACEOF
2315 if ac_fn_c_try_compile "$LINENO"; then :
2316 ac_header_compiler=yes
2317 else
2318 ac_header_compiler=no
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2322 $as_echo "$ac_header_compiler" >&6; }
2323
2324 # Is the header present?
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2326 $as_echo_n "checking $2 presence... " >&6; }
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328 /* end confdefs.h. */
2329 #include <$2>
2330 _ACEOF
2331 if ac_fn_c_try_cpp "$LINENO"; then :
2332 ac_header_preproc=yes
2333 else
2334 ac_header_preproc=no
2335 fi
2336 rm -f conftest.err conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2338 $as_echo "$ac_header_preproc" >&6; }
2339
2340 # So? What about this header?
2341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2342 yes:no: )
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2344 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2346 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347 ;;
2348 no:yes:* )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2350 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2352 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2354 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2356 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2358 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2359 ;;
2360 esac
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=\$ac_header_compiler"
2367 fi
2368 eval ac_res=\$$3
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370 $as_echo "$ac_res" >&6; }
2371 fi
2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373
2374 } # ac_fn_c_check_header_mongrel
2375 cat >config.log <<_ACEOF
2376 This file contains any messages produced by compilers while
2377 running configure, to aid debugging if configure makes a mistake.
2378
2379 It was created by ircd-hybrid $as_me 7.2.4, which was
2380 generated by GNU Autoconf 2.64. Invocation command line was
2381
2382 $ $0 $@
2383
2384 _ACEOF
2385 exec 5>>config.log
2386 {
2387 cat <<_ASUNAME
2388 ## --------- ##
2389 ## Platform. ##
2390 ## --------- ##
2391
2392 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2397
2398 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2400
2401 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2408
2409 _ASUNAME
2410
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 $as_echo "PATH: $as_dir"
2417 done
2418 IFS=$as_save_IFS
2419
2420 } >&5
2421
2422 cat >&5 <<_ACEOF
2423
2424
2425 ## ----------- ##
2426 ## Core tests. ##
2427 ## ----------- ##
2428
2429 _ACEOF
2430
2431
2432 # Keep a trace of the command line.
2433 # Strip out --no-create and --no-recursion so they do not pile up.
2434 # Strip out --silent because we don't want to record it for future runs.
2435 # Also quote any args containing shell meta-characters.
2436 # Make two passes to allow for proper duplicate-argument suppression.
2437 ac_configure_args=
2438 ac_configure_args0=
2439 ac_configure_args1=
2440 ac_must_keep_next=false
2441 for ac_pass in 1 2
2442 do
2443 for ac_arg
2444 do
2445 case $ac_arg in
2446 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448 | -silent | --silent | --silen | --sile | --sil)
2449 continue ;;
2450 *\'*)
2451 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 esac
2453 case $ac_pass in
2454 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2455 2)
2456 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 if test $ac_must_keep_next = true; then
2458 ac_must_keep_next=false # Got value, back to normal.
2459 else
2460 case $ac_arg in
2461 *=* | --config-cache | -C | -disable-* | --disable-* \
2462 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464 | -with-* | --with-* | -without-* | --without-* | --x)
2465 case "$ac_configure_args0 " in
2466 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467 esac
2468 ;;
2469 -* ) ac_must_keep_next=true ;;
2470 esac
2471 fi
2472 as_fn_append ac_configure_args " '$ac_arg'"
2473 ;;
2474 esac
2475 done
2476 done
2477 { ac_configure_args0=; unset ac_configure_args0;}
2478 { ac_configure_args1=; unset ac_configure_args1;}
2479
2480 # When interrupted or exit'd, cleanup temporary files, and complete
2481 # config.log. We remove comments because anyway the quotes in there
2482 # would cause problems or look ugly.
2483 # WARNING: Use '\'' to represent an apostrophe within the trap.
2484 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485 trap 'exit_status=$?
2486 # Save into config.log some information that might help in debugging.
2487 {
2488 echo
2489
2490 cat <<\_ASBOX
2491 ## ---------------- ##
2492 ## Cache variables. ##
2493 ## ---------------- ##
2494 _ASBOX
2495 echo
2496 # The following way of writing the cache mishandles newlines in values,
2497 (
2498 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2499 eval ac_val=\$$ac_var
2500 case $ac_val in #(
2501 *${as_nl}*)
2502 case $ac_var in #(
2503 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2504 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505 esac
2506 case $ac_var in #(
2507 _ | IFS | as_nl) ;; #(
2508 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2509 *) { eval $ac_var=; unset $ac_var;} ;;
2510 esac ;;
2511 esac
2512 done
2513 (set) 2>&1 |
2514 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2515 *${as_nl}ac_space=\ *)
2516 sed -n \
2517 "s/'\''/'\''\\\\'\'''\''/g;
2518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519 ;; #(
2520 *)
2521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522 ;;
2523 esac |
2524 sort
2525 )
2526 echo
2527
2528 cat <<\_ASBOX
2529 ## ----------------- ##
2530 ## Output variables. ##
2531 ## ----------------- ##
2532 _ASBOX
2533 echo
2534 for ac_var in $ac_subst_vars
2535 do
2536 eval ac_val=\$$ac_var
2537 case $ac_val in
2538 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 esac
2540 $as_echo "$ac_var='\''$ac_val'\''"
2541 done | sort
2542 echo
2543
2544 if test -n "$ac_subst_files"; then
2545 cat <<\_ASBOX
2546 ## ------------------- ##
2547 ## File substitutions. ##
2548 ## ------------------- ##
2549 _ASBOX
2550 echo
2551 for ac_var in $ac_subst_files
2552 do
2553 eval ac_val=\$$ac_var
2554 case $ac_val in
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 esac
2557 $as_echo "$ac_var='\''$ac_val'\''"
2558 done | sort
2559 echo
2560 fi
2561
2562 if test -s confdefs.h; then
2563 cat <<\_ASBOX
2564 ## ----------- ##
2565 ## confdefs.h. ##
2566 ## ----------- ##
2567 _ASBOX
2568 echo
2569 cat confdefs.h
2570 echo
2571 fi
2572 test "$ac_signal" != 0 &&
2573 $as_echo "$as_me: caught signal $ac_signal"
2574 $as_echo "$as_me: exit $exit_status"
2575 } >&5
2576 rm -f core *.core core.conftest.* &&
2577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2578 exit $exit_status
2579 ' 0
2580 for ac_signal in 1 2 13 15; do
2581 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2582 done
2583 ac_signal=0
2584
2585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2586 rm -f -r conftest* confdefs.h
2587
2588 $as_echo "/* confdefs.h */" > confdefs.h
2589
2590 # Predefined preprocessor variables.
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_NAME "$PACKAGE_NAME"
2594 _ACEOF
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2598 _ACEOF
2599
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2602 _ACEOF
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_STRING "$PACKAGE_STRING"
2606 _ACEOF
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_URL "$PACKAGE_URL"
2614 _ACEOF
2615
2616
2617 # Let the site file select an alternate cache file if it wants to.
2618 # Prefer an explicitly selected file to automatically selected ones.
2619 ac_site_file1=NONE
2620 ac_site_file2=NONE
2621 if test -n "$CONFIG_SITE"; then
2622 ac_site_file1=$CONFIG_SITE
2623 elif test "x$prefix" != xNONE; then
2624 ac_site_file1=$prefix/share/config.site
2625 ac_site_file2=$prefix/etc/config.site
2626 else
2627 ac_site_file1=$ac_default_prefix/share/config.site
2628 ac_site_file2=$ac_default_prefix/etc/config.site
2629 fi
2630 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2631 do
2632 test "x$ac_site_file" = xNONE && continue
2633 if test -r "$ac_site_file"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2635 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2636 sed 's/^/| /' "$ac_site_file" >&5
2637 . "$ac_site_file"
2638 fi
2639 done
2640
2641 if test -r "$cache_file"; then
2642 # Some versions of bash will fail to source /dev/null (special
2643 # files actually), so we avoid doing that.
2644 if test -f "$cache_file"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2646 $as_echo "$as_me: loading cache $cache_file" >&6;}
2647 case $cache_file in
2648 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2649 *) . "./$cache_file";;
2650 esac
2651 fi
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2654 $as_echo "$as_me: creating cache $cache_file" >&6;}
2655 >$cache_file
2656 fi
2657
2658 as_fn_append ac_func_list " snprintf"
2659 as_fn_append ac_func_list " vsnprintf"
2660 as_fn_append ac_func_list " lrand48"
2661 as_fn_append ac_func_list " srand48"
2662 as_fn_append ac_func_list " mmap"
2663 as_fn_append ac_func_list " strtok_r"
2664 as_fn_append ac_func_list " usleep"
2665 as_fn_append ac_func_list " strlcat"
2666 as_fn_append ac_func_list " strlcpy"
2667 as_fn_append ac_func_list " basename"
2668 as_fn_append ac_header_list " crypt.h"
2669 as_fn_append ac_header_list " inttypes.h"
2670 as_fn_append ac_header_list " stdint.h"
2671 as_fn_append ac_header_list " sys/resource.h"
2672 as_fn_append ac_header_list " sys/param.h"
2673 as_fn_append ac_header_list " errno.h"
2674 as_fn_append ac_header_list " sys/syslog.h"
2675 as_fn_append ac_header_list " stddef.h"
2676 as_fn_append ac_header_list " libgen.h"
2677 as_fn_append ac_header_list " types.h"
2678 as_fn_append ac_header_list " socket.h"
2679 as_fn_append ac_header_list " sys/wait.h"
2680 as_fn_append ac_header_list " wait.h"
2681 as_fn_append ac_header_list " link.h"
2682 # Check that the precious variables saved in the cache have kept the same
2683 # value.
2684 ac_cache_corrupted=false
2685 for ac_var in $ac_precious_vars; do
2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687 eval ac_new_set=\$ac_env_${ac_var}_set
2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689 eval ac_new_val=\$ac_env_${ac_var}_value
2690 case $ac_old_set,$ac_new_set in
2691 set,)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2695 ,set)
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2699 ,);;
2700 *)
2701 if test "x$ac_old_val" != "x$ac_new_val"; then
2702 # differences in whitespace do not lead to failure.
2703 ac_old_val_w=`echo x $ac_old_val`
2704 ac_new_val_w=`echo x $ac_new_val`
2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708 ac_cache_corrupted=:
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712 eval $ac_var=\$ac_old_val
2713 fi
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2715 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2717 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2718 fi;;
2719 esac
2720 # Pass precious variables to config.status.
2721 if test "$ac_new_set" = set; then
2722 case $ac_new_val in
2723 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 *) ac_arg=$ac_var=$ac_new_val ;;
2725 esac
2726 case " $ac_configure_args " in
2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2729 esac
2730 fi
2731 done
2732 if $ac_cache_corrupted; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2737 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2738 fi
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2742
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750 am__api_version='1.11'
2751
2752 ac_aux_dir=
2753 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2754 for ac_t in install-sh install.sh shtool; do
2755 if test -f "$ac_dir/$ac_t"; then
2756 ac_aux_dir=$ac_dir
2757 ac_install_sh="$ac_aux_dir/$ac_t -c"
2758 break 2
2759 fi
2760 done
2761 done
2762 if test -z "$ac_aux_dir"; then
2763 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2764 fi
2765
2766 # These three variables are undocumented and unsupported,
2767 # and are intended to be withdrawn in a future Autoconf release.
2768 # They can cause serious problems if a builder's source tree is in a directory
2769 # whose full name contains unusual characters.
2770 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2771 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2772 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2773
2774
2775 # Find a good install program. We prefer a C program (faster),
2776 # so one script is as good as another. But avoid the broken or
2777 # incompatible versions:
2778 # SysV /etc/install, /usr/sbin/install
2779 # SunOS /usr/etc/install
2780 # IRIX /sbin/install
2781 # AIX /bin/install
2782 # AmigaOS /C/install, which installs bootblocks on floppy discs
2783 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2784 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2785 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2786 # OS/2's system install, which has a completely different semantic
2787 # ./install, which can be erroneously created by make from ./install.sh.
2788 # Reject install programs that cannot install multiple files.
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2790 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2791 if test -z "$INSTALL"; then
2792 if test "${ac_cv_path_install+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 # Account for people who put trailing slashes in PATH elements.
2801 case $as_dir/ in #((
2802 ./ | .// | /[cC]/* | \
2803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2804 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2805 /usr/ucb/* ) ;;
2806 *)
2807 # OSF1 and SCO ODT 3.0 have their own names for install.
2808 # Don't use installbsd from OSF since it installs stuff as root
2809 # by default.
2810 for ac_prog in ginstall scoinst install; do
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2813 if test $ac_prog = install &&
2814 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2815 # AIX install. It has an incompatible calling convention.
2816 :
2817 elif test $ac_prog = install &&
2818 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2819 # program-specific install script used by HP pwplus--don't use.
2820 :
2821 else
2822 rm -rf conftest.one conftest.two conftest.dir
2823 echo one > conftest.one
2824 echo two > conftest.two
2825 mkdir conftest.dir
2826 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2827 test -s conftest.one && test -s conftest.two &&
2828 test -s conftest.dir/conftest.one &&
2829 test -s conftest.dir/conftest.two
2830 then
2831 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2832 break 3
2833 fi
2834 fi
2835 fi
2836 done
2837 done
2838 ;;
2839 esac
2840
2841 done
2842 IFS=$as_save_IFS
2843
2844 rm -rf conftest.one conftest.two conftest.dir
2845
2846 fi
2847 if test "${ac_cv_path_install+set}" = set; then
2848 INSTALL=$ac_cv_path_install
2849 else
2850 # As a last resort, use the slow shell script. Don't cache a
2851 # value for INSTALL within a source directory, because that will
2852 # break other packages using the cache if that directory is
2853 # removed, or if the value is a relative name.
2854 INSTALL=$ac_install_sh
2855 fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2858 $as_echo "$INSTALL" >&6; }
2859
2860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2861 # It thinks the first close brace ends the variable substitution.
2862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2863
2864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2865
2866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2869 $as_echo_n "checking whether build environment is sane... " >&6; }
2870 # Just in case
2871 sleep 1
2872 echo timestamp > conftest.file
2873 # Reject unsafe characters in $srcdir or the absolute working directory
2874 # name. Accept space and tab only in the latter.
2875 am_lf='
2876 '
2877 case `pwd` in
2878 *[\\\"\#\$\&\'\`$am_lf]*)
2879 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2880 esac
2881 case $srcdir in
2882 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2883 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2884 esac
2885
2886 # Do `set' in a subshell so we don't clobber the current shell's
2887 # arguments. Must try -L first in case configure is actually a
2888 # symlink; some systems play weird games with the mod time of symlinks
2889 # (eg FreeBSD returns the mod time of the symlink's containing
2890 # directory).
2891 if (
2892 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2893 if test "$*" = "X"; then
2894 # -L didn't work.
2895 set X `ls -t "$srcdir/configure" conftest.file`
2896 fi
2897 rm -f conftest.file
2898 if test "$*" != "X $srcdir/configure conftest.file" \
2899 && test "$*" != "X conftest.file $srcdir/configure"; then
2900
2901 # If neither matched, then we have a broken ls. This can happen
2902 # if, for instance, CONFIG_SHELL is bash and it inherits a
2903 # broken ls alias from the environment. This has actually
2904 # happened. Such a system could not be considered "sane".
2905 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2906 alias in your environment" "$LINENO" 5
2907 fi
2908
2909 test "$2" = conftest.file
2910 )
2911 then
2912 # Ok.
2913 :
2914 else
2915 as_fn_error "newly created file is older than distributed files!
2916 Check your system clock" "$LINENO" 5
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2919 $as_echo "yes" >&6; }
2920 test "$program_prefix" != NONE &&
2921 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2922 # Use a double $ so make ignores it.
2923 test "$program_suffix" != NONE &&
2924 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2925 # Double any \ or $.
2926 # By default was `s,x,x', remove it if useless.
2927 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2928 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2929
2930 # expand $ac_aux_dir to an absolute path
2931 am_aux_dir=`cd $ac_aux_dir && pwd`
2932
2933 if test x"${MISSING+set}" != xset; then
2934 case $am_aux_dir in
2935 *\ * | *\ *)
2936 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2937 *)
2938 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2939 esac
2940 fi
2941 # Use eval to expand $SHELL
2942 if eval "$MISSING --run true"; then
2943 am_missing_run="$MISSING --run "
2944 else
2945 am_missing_run=
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2947 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2948 fi
2949
2950 if test x"${install_sh}" != xset; then
2951 case $am_aux_dir in
2952 *\ * | *\ *)
2953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2954 *)
2955 install_sh="\${SHELL} $am_aux_dir/install-sh"
2956 esac
2957 fi
2958
2959 # Installed binaries are usually stripped using `strip' when the user
2960 # run `make install-strip'. However `strip' might not be the right
2961 # tool to use in cross-compilation environments, therefore Automake
2962 # will honor the `STRIP' environment variable to overrule this program.
2963 if test "$cross_compiling" != no; then
2964 if test -n "$ac_tool_prefix"; then
2965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2966 set dummy ${ac_tool_prefix}strip; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_STRIP+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$STRIP"; then
2973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986 done
2987 done
2988 IFS=$as_save_IFS
2989
2990 fi
2991 fi
2992 STRIP=$ac_cv_prog_STRIP
2993 if test -n "$STRIP"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2995 $as_echo "$STRIP" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
2999 fi
3000
3001
3002 fi
3003 if test -z "$ac_cv_prog_STRIP"; then
3004 ac_ct_STRIP=$STRIP
3005 # Extract the first word of "strip", so it can be a program name with args.
3006 set dummy strip; ac_word=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 if test -n "$ac_ct_STRIP"; then
3013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3014 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH
3017 do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_ac_ct_STRIP="strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026 done
3027 done
3028 IFS=$as_save_IFS
3029
3030 fi
3031 fi
3032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3033 if test -n "$ac_ct_STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3035 $as_echo "$ac_ct_STRIP" >&6; }
3036 else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3039 fi
3040
3041 if test "x$ac_ct_STRIP" = x; then
3042 STRIP=":"
3043 else
3044 case $cross_compiling:$ac_tool_warned in
3045 yes:)
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3048 ac_tool_warned=yes ;;
3049 esac
3050 STRIP=$ac_ct_STRIP
3051 fi
3052 else
3053 STRIP="$ac_cv_prog_STRIP"
3054 fi
3055
3056 fi
3057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3061 if test -z "$MKDIR_P"; then
3062 if test "${ac_cv_path_mkdir+set}" = set; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3067 do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_prog in mkdir gmkdir; do
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3074 'mkdir (GNU coreutils) '* | \
3075 'mkdir (coreutils) '* | \
3076 'mkdir (fileutils) '4.1*)
3077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 break 3;;
3079 esac
3080 done
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086
3087 if test "${ac_cv_path_mkdir+set}" = set; then
3088 MKDIR_P="$ac_cv_path_mkdir -p"
3089 else
3090 # As a last resort, use the slow shell script. Don't cache a
3091 # value for MKDIR_P within a source directory, because that will
3092 # break other packages using the cache if that directory is
3093 # removed, or if the value is a relative name.
3094 test -d ./--version && rmdir ./--version
3095 MKDIR_P="$ac_install_sh -d"
3096 fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3099 $as_echo "$MKDIR_P" >&6; }
3100
3101 mkdir_p="$MKDIR_P"
3102 case $mkdir_p in
3103 [\\/$]* | ?:[\\/]*) ;;
3104 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3105 esac
3106
3107 for ac_prog in gawk mawk nawk awk
3108 do
3109 # Extract the first word of "$ac_prog", so it can be a program name with args.
3110 set dummy $ac_prog; ac_word=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if test "${ac_cv_prog_AWK+set}" = set; then :
3114 $as_echo_n "(cached) " >&6
3115 else
3116 if test -n "$AWK"; then
3117 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3118 else
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 for as_dir in $PATH
3121 do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_AWK="$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 fi
3135 fi
3136 AWK=$ac_cv_prog_AWK
3137 if test -n "$AWK"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3139 $as_echo "$AWK" >&6; }
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 fi
3144
3145
3146 test -n "$AWK" && break
3147 done
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3151 set x ${MAKE-make}
3152 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3153 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 cat >conftest.make <<\_ACEOF
3157 SHELL = /bin/sh
3158 all:
3159 @echo '@@@%%%=$(MAKE)=@@@%%%'
3160 _ACEOF
3161 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3163 *@@@%%%=?*=@@@%%%*)
3164 eval ac_cv_prog_make_${ac_make}_set=yes;;
3165 *)
3166 eval ac_cv_prog_make_${ac_make}_set=no;;
3167 esac
3168 rm -f conftest.make
3169 fi
3170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3173 SET_MAKE=
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 SET_MAKE="MAKE=${MAKE-make}"
3178 fi
3179
3180 rm -rf .tst 2>/dev/null
3181 mkdir .tst 2>/dev/null
3182 if test -d .tst; then
3183 am__leading_dot=.
3184 else
3185 am__leading_dot=_
3186 fi
3187 rmdir .tst 2>/dev/null
3188
3189 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3190 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3191 # is not polluted with repeated "-I."
3192 am__isrc=' -I$(srcdir)'
3193 # test to see if srcdir already configured
3194 if test -f $srcdir/config.status; then
3195 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3196 fi
3197 fi
3198
3199 # test whether we have cygpath
3200 if test -z "$CYGPATH_W"; then
3201 if (cygpath --version) >/dev/null 2>/dev/null; then
3202 CYGPATH_W='cygpath -w'
3203 else
3204 CYGPATH_W=echo
3205 fi
3206 fi
3207
3208
3209 # Define the identity of the package.
3210 PACKAGE='ircd-hybrid'
3211 VERSION='7.2.4'
3212
3213
3214 cat >>confdefs.h <<_ACEOF
3215 #define PACKAGE "$PACKAGE"
3216 _ACEOF
3217
3218
3219 cat >>confdefs.h <<_ACEOF
3220 #define VERSION "$VERSION"
3221 _ACEOF
3222
3223 # Some tools Automake needs.
3224
3225 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3226
3227
3228 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3229
3230
3231 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3232
3233
3234 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3235
3236
3237 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3238
3239 # We need awk for the "check" target. The system "awk" is bad on
3240 # some platforms.
3241 # Always define AMTAR for backward compatibility.
3242
3243 AMTAR=${AMTAR-"${am_missing_run}tar"}
3244
3245 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3246
3247
3248
3249
3250
3251
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3253 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3254 # Check whether --enable-maintainer-mode was given.
3255 if test "${enable_maintainer_mode+set}" = set; then :
3256 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3257 else
3258 USE_MAINTAINER_MODE=no
3259 fi
3260
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3262 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3263 if test $USE_MAINTAINER_MODE = yes; then
3264 MAINTAINER_MODE_TRUE=
3265 MAINTAINER_MODE_FALSE='#'
3266 else
3267 MAINTAINER_MODE_TRUE='#'
3268 MAINTAINER_MODE_FALSE=
3269 fi
3270
3271 MAINT=$MAINTAINER_MODE_TRUE
3272
3273
3274 ac_config_headers="$ac_config_headers config.h"
3275
3276
3277
3278
3279 # Checks for programs.
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3292 else
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 CC=$ac_cv_prog_CC
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 fi
3321
3322
3323 fi
3324 if test -z "$ac_cv_prog_CC"; then
3325 ac_ct_CC=$CC
3326 # Extract the first word of "gcc", so it can be a program name with args.
3327 set dummy gcc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 if test -n "$ac_ct_CC"; then
3334 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_ac_ct_CC="gcc"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 break 2
3346 fi
3347 done
3348 done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3354 if test -n "$ac_ct_CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3356 $as_echo "$ac_ct_CC" >&6; }
3357 else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3372 fi
3373 else
3374 CC="$ac_cv_prog_CC"
3375 fi
3376
3377 if test -z "$CC"; then
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}cc; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_CC+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC="$CC" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_CC="${ac_tool_prefix}cc"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3399 fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 CC=$ac_cv_prog_CC
3407 if test -n "$CC"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3409 $as_echo "$CC" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416 fi
3417 fi
3418 if test -z "$CC"; then
3419 # Extract the first word of "cc", so it can be a program name with args.
3420 set dummy cc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 ac_prog_rejected=no
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3438 ac_prog_rejected=yes
3439 continue
3440 fi
3441 ac_cv_prog_CC="cc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 if test $ac_prog_rejected = yes; then
3450 # We found a bogon in the path, so make sure we never use it.
3451 set dummy $ac_cv_prog_CC
3452 shift
3453 if test $# != 0; then
3454 # We chose a different compiler from the bogus one.
3455 # However, it has the same basename, so the bogon will be chosen
3456 # first if we set CC to just the basename; use the full file name.
3457 shift
3458 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3459 fi
3460 fi
3461 fi
3462 fi
3463 CC=$ac_cv_prog_CC
3464 if test -n "$CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466 $as_echo "$CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 fi
3471
3472
3473 fi
3474 if test -z "$CC"; then
3475 if test -n "$ac_tool_prefix"; then
3476 for ac_prog in cl.exe
3477 do
3478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481 $as_echo_n "checking for $ac_word... " >&6; }
3482 if test "${ac_cv_prog_CC+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 if test -n "$CC"; then
3486 ac_cv_prog_CC="$CC" # Let the user override the test.
3487 else
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 CC=$ac_cv_prog_CC
3506 if test -n "$CC"; then
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3508 $as_echo "$CC" >&6; }
3509 else
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 $as_echo "no" >&6; }
3512 fi
3513
3514
3515 test -n "$CC" && break
3516 done
3517 fi
3518 if test -z "$CC"; then
3519 ac_ct_CC=$CC
3520 for ac_prog in cl.exe
3521 do
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$ac_ct_CC"; then
3530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_ac_ct_CC="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 fi
3548 fi
3549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3550 if test -n "$ac_ct_CC"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3552 $as_echo "$ac_ct_CC" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559 test -n "$ac_ct_CC" && break
3560 done
3561
3562 if test "x$ac_ct_CC" = x; then
3563 CC=""
3564 else
3565 case $cross_compiling:$ac_tool_warned in
3566 yes:)
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3570 esac
3571 CC=$ac_ct_CC
3572 fi
3573 fi
3574
3575 fi
3576
3577
3578 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error "no acceptable C compiler found in \$PATH
3581 See \`config.log' for more details." "$LINENO" 5; }
3582
3583 # Provide some information about the compiler.
3584 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3585 set X $ac_compile
3586 ac_compiler=$2
3587 for ac_option in --version -v -V -qversion; do
3588 { { ac_try="$ac_compiler $ac_option >&5"
3589 case "(($ac_try" in
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3592 esac
3593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3594 $as_echo "$ac_try_echo"; } >&5
3595 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3596 ac_status=$?
3597 if test -s conftest.err; then
3598 sed '10a\
3599 ... rest of stderr output deleted ...
3600 10q' conftest.err >conftest.er1
3601 cat conftest.er1 >&5
3602 rm -f conftest.er1 conftest.err
3603 fi
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 done
3607
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610 #include <stdio.h>
3611 int
3612 main ()
3613 {
3614 FILE *f = fopen ("conftest.out", "w");
3615 return ferror (f) || fclose (f) != 0;
3616
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 ac_clean_files_save=$ac_clean_files
3622 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3623 # Try to create an executable without -o first, disregard a.out.
3624 # It will help us diagnose broken compilers, and finding out an intuition
3625 # of exeext.
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3627 $as_echo_n "checking for C compiler default output file name... " >&6; }
3628 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3629
3630 # The possible output files:
3631 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3632
3633 ac_rmfiles=
3634 for ac_file in $ac_files
3635 do
3636 case $ac_file in
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3638 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3639 esac
3640 done
3641 rm -f $ac_rmfiles
3642
3643 if { { ac_try="$ac_link_default"
3644 case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647 esac
3648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649 $as_echo "$ac_try_echo"; } >&5
3650 (eval "$ac_link_default") 2>&5
3651 ac_status=$?
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }; then :
3654 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3655 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3656 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3657 # so that the user can short-circuit this test for compilers unknown to
3658 # Autoconf.
3659 for ac_file in $ac_files ''
3660 do
3661 test -f "$ac_file" || continue
3662 case $ac_file in
3663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3664 ;;
3665 [ab].out )
3666 # We found the default executable, but exeext='' is most
3667 # certainly right.
3668 break;;
3669 *.* )
3670 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3671 then :; else
3672 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3673 fi
3674 # We set ac_cv_exeext here because the later test for it is not
3675 # safe: cross compilers may not add the suffix if given an `-o'
3676 # argument, so we may need to know it at that point already.
3677 # Even if this section looks crufty: it has the advantage of
3678 # actually working.
3679 break;;
3680 * )
3681 break;;
3682 esac
3683 done
3684 test "$ac_cv_exeext" = no && ac_cv_exeext=
3685
3686 else
3687 ac_file=''
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3690 $as_echo "$ac_file" >&6; }
3691 if test -z "$ac_file"; then :
3692 $as_echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 { as_fn_set_status 77
3698 as_fn_error "C compiler cannot create executables
3699 See \`config.log' for more details." "$LINENO" 5; }; }
3700 fi
3701 ac_exeext=$ac_cv_exeext
3702
3703 # Check that the compiler produces executables we can run. If not, either
3704 # the compiler is broken, or we cross compile.
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3706 $as_echo_n "checking whether the C compiler works... " >&6; }
3707 # If not cross compiling, check that we can run a simple program.
3708 if test "$cross_compiling" != yes; then
3709 if { ac_try='./$ac_file'
3710 { { case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_try") 2>&5
3717 ac_status=$?
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; }; then
3720 cross_compiling=no
3721 else
3722 if test "$cross_compiling" = maybe; then
3723 cross_compiling=yes
3724 else
3725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error "cannot run C compiled programs.
3728 If you meant to cross compile, use \`--host'.
3729 See \`config.log' for more details." "$LINENO" 5; }
3730 fi
3731 fi
3732 fi
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734 $as_echo "yes" >&6; }
3735
3736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3737 ac_clean_files=$ac_clean_files_save
3738 # Check that the compiler produces executables we can run. If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3743 $as_echo "$cross_compiling" >&6; }
3744
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3746 $as_echo_n "checking for suffix of executables... " >&6; }
3747 if { { ac_try="$ac_link"
3748 case "(($ac_try" in
3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3753 $as_echo "$ac_try_echo"; } >&5
3754 (eval "$ac_link") 2>&5
3755 ac_status=$?
3756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757 test $ac_status = 0; }; then :
3758 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3759 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3760 # work properly (i.e., refer to `conftest.exe'), while it won't with
3761 # `rm'.
3762 for ac_file in conftest.exe conftest conftest.*; do
3763 test -f "$ac_file" || continue
3764 case $ac_file in
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3766 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3767 break;;
3768 * ) break;;
3769 esac
3770 done
3771 else
3772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3774 as_fn_error "cannot compute suffix of executables: cannot compile and link
3775 See \`config.log' for more details." "$LINENO" 5; }
3776 fi
3777 rm -f conftest$ac_cv_exeext
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3779 $as_echo "$ac_cv_exeext" >&6; }
3780
3781 rm -f conftest.$ac_ext
3782 EXEEXT=$ac_cv_exeext
3783 ac_exeext=$EXEEXT
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 $as_echo_n "checking for suffix of object files... " >&6; }
3786 if test "${ac_cv_objext+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.o conftest.obj
3801 if { { ac_try="$ac_compile"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compile") 2>&5
3809 ac_status=$?
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; then :
3812 for ac_file in conftest.o conftest.obj conftest.*; do
3813 test -f "$ac_file" || continue;
3814 case $ac_file in
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3817 break;;
3818 esac
3819 done
3820 else
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details." "$LINENO" 5; }
3828 fi
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 $as_echo "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3834 ac_objext=$OBJEXT
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842
3843 int
3844 main ()
3845 {
3846 #ifndef __GNUC__
3847 choke me
3848 #endif
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"; then :
3855 ac_compiler_gnu=yes
3856 else
3857 ac_compiler_gnu=no
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861
3862 fi
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865 if test $ac_compiler_gnu = yes; then
3866 GCC=yes
3867 else
3868 GCC=
3869 fi
3870 ac_test_CFLAGS=${CFLAGS+set}
3871 ac_save_CFLAGS=$CFLAGS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3874 if test "${ac_cv_prog_cc_g+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 ac_save_c_werror_flag=$ac_c_werror_flag
3878 ac_c_werror_flag=yes
3879 ac_cv_prog_cc_g=no
3880 CFLAGS="-g"
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3883
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893 ac_cv_prog_cc_g=yes
3894 else
3895 CFLAGS=""
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 if ac_fn_c_try_compile "$LINENO"; then :
3908
3909 else
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3911 CFLAGS="-g"
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3914
3915 int
3916 main ()
3917 {
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_g=yes
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934 $as_echo "$ac_cv_prog_cc_g" >&6; }
3935 if test "$ac_test_CFLAGS" = set; then
3936 CFLAGS=$ac_save_CFLAGS
3937 elif test $ac_cv_prog_cc_g = yes; then
3938 if test "$GCC" = yes; then
3939 CFLAGS="-g -O2"
3940 else
3941 CFLAGS="-g"
3942 fi
3943 else
3944 if test "$GCC" = yes; then
3945 CFLAGS="-O2"
3946 else
3947 CFLAGS=
3948 fi
3949 fi
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 ac_cv_prog_cc_c89=no
3956 ac_save_CC=$CC
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3959 #include <stdarg.h>
3960 #include <stdio.h>
3961 #include <sys/types.h>
3962 #include <sys/stat.h>
3963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3964 struct buf { int x; };
3965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3966 static char *e (p, i)
3967 char **p;
3968 int i;
3969 {
3970 return p[i];
3971 }
3972 static char *f (char * (*g) (char **, int), char **p, ...)
3973 {
3974 char *s;
3975 va_list v;
3976 va_start (v,p);
3977 s = g (p, va_arg (v,int));
3978 va_end (v);
3979 return s;
3980 }
3981
3982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3983 function prototypes and stuff, but not '\xHH' hex character constants.
3984 These don't provoke an error unfortunately, instead are silently treated
3985 as 'x'. The following induces an error, until -std is added to get
3986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3987 array size at least. It's necessary to write '\x00'==0 to get something
3988 that's true only with -std. */
3989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990
3991 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3992 inside strings and character constants. */
3993 #define FOO(x) 'x'
3994 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995
3996 int test (int i, double x);
3997 struct s1 {int (*f) (int a);};
3998 struct s2 {int (*f) (double a);};
3999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000 int argc;
4001 char **argv;
4002 int
4003 main ()
4004 {
4005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4006 ;
4007 return 0;
4008 }
4009 _ACEOF
4010 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4011 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 do
4013 CC="$ac_save_CC $ac_arg"
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_c89=$ac_arg
4016 fi
4017 rm -f core conftest.err conftest.$ac_objext
4018 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 done
4020 rm -f conftest.$ac_ext
4021 CC=$ac_save_CC
4022
4023 fi
4024 # AC_CACHE_VAL
4025 case "x$ac_cv_prog_cc_c89" in
4026 x)
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4028 $as_echo "none needed" >&6; } ;;
4029 xno)
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4031 $as_echo "unsupported" >&6; } ;;
4032 *)
4033 CC="$CC $ac_cv_prog_cc_c89"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4035 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 esac
4037 if test "x$ac_cv_prog_cc_c89" != xno; then :
4038
4039 fi
4040
4041 ac_ext=c
4042 ac_cpp='$CPP $CPPFLAGS'
4043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 DEPDIR="${am__leading_dot}deps"
4047
4048 ac_config_commands="$ac_config_commands depfiles"
4049
4050
4051 am_make=${MAKE-make}
4052 cat > confinc << 'END'
4053 am__doit:
4054 @echo this is the am__doit target
4055 .PHONY: am__doit
4056 END
4057 # If we don't find an include directive, just comment out the code.
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4059 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4060 am__include="#"
4061 am__quote=
4062 _am_result=none
4063 # First try GNU make style include.
4064 echo "include confinc" > confmf
4065 # Ignore all kinds of additional output from `make'.
4066 case `$am_make -s -f confmf 2> /dev/null` in #(
4067 *the\ am__doit\ target*)
4068 am__include=include
4069 am__quote=
4070 _am_result=GNU
4071 ;;
4072 esac
4073 # Now try BSD make style include.
4074 if test "$am__include" = "#"; then
4075 echo '.include "confinc"' > confmf
4076 case `$am_make -s -f confmf 2> /dev/null` in #(
4077 *the\ am__doit\ target*)
4078 am__include=.include
4079 am__quote="\""
4080 _am_result=BSD
4081 ;;
4082 esac
4083 fi
4084
4085
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4087 $as_echo "$_am_result" >&6; }
4088 rm -f confinc confmf
4089
4090 # Check whether --enable-dependency-tracking was given.
4091 if test "${enable_dependency_tracking+set}" = set; then :
4092 enableval=$enable_dependency_tracking;
4093 fi
4094
4095 if test "x$enable_dependency_tracking" != xno; then
4096 am_depcomp="$ac_aux_dir/depcomp"
4097 AMDEPBACKSLASH='\'
4098 fi
4099 if test "x$enable_dependency_tracking" != xno; then
4100 AMDEP_TRUE=
4101 AMDEP_FALSE='#'
4102 else
4103 AMDEP_TRUE='#'
4104 AMDEP_FALSE=
4105 fi
4106
4107
4108
4109 depcc="$CC" am_compiler_list=
4110
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4112 $as_echo_n "checking dependency style of $depcc... " >&6; }
4113 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117 # We make a subdir and do the tests there. Otherwise we can end up
4118 # making bogus files that we don't know about and never remove. For
4119 # instance it was reported that on HP-UX the gcc test will end up
4120 # making a dummy file named `D' -- because `-MD' means `put the output
4121 # in D'.
4122 mkdir conftest.dir
4123 # Copy depcomp to subdir because otherwise we won't find it if we're
4124 # using a relative directory.
4125 cp "$am_depcomp" conftest.dir
4126 cd conftest.dir
4127 # We will build objects and dependencies in a subdirectory because
4128 # it helps to detect inapplicable dependency modes. For instance
4129 # both Tru64's cc and ICC support -MD to output dependencies as a
4130 # side effect of compilation, but ICC will put the dependencies in
4131 # the current directory while Tru64 will put them in the object
4132 # directory.
4133 mkdir sub
4134
4135 am_cv_CC_dependencies_compiler_type=none
4136 if test "$am_compiler_list" = ""; then
4137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4138 fi
4139 am__universal=false
4140 case " $depcc " in #(
4141 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4142 esac
4143
4144 for depmode in $am_compiler_list; do
4145 # Setup a source with many dependencies, because some compilers
4146 # like to wrap large dependency lists on column 80 (with \), and
4147 # we should not choose a depcomp mode which is confused by this.
4148 #
4149 # We need to recreate these files for each test, as the compiler may
4150 # overwrite some of them when testing with obscure command lines.
4151 # This happens at least with the AIX C compiler.
4152 : > sub/conftest.c
4153 for i in 1 2 3 4 5 6; do
4154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4156 # Solaris 8's {/usr,}/bin/sh.
4157 touch sub/conftst$i.h
4158 done
4159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4160
4161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4162 # mode. It turns out that the SunPro C++ compiler does not properly
4163 # handle `-M -o', and we need to detect this. Also, some Intel
4164 # versions had trouble with output in subdirs
4165 am__obj=sub/conftest.${OBJEXT-o}
4166 am__minus_obj="-o $am__obj"
4167 case $depmode in
4168 gcc)
4169 # This depmode causes a compiler race in universal mode.
4170 test "$am__universal" = false || continue
4171 ;;
4172 nosideeffect)
4173 # after this tag, mechanisms are not by side-effect, so they'll
4174 # only be used when explicitly requested
4175 if test "x$enable_dependency_tracking" = xyes; then
4176 continue
4177 else
4178 break
4179 fi
4180 ;;
4181 msvisualcpp | msvcmsys)
4182 # This compiler won't grok `-c -o', but also, the minuso test has
4183 # not run yet. These depmodes are late enough in the game, and
4184 # so weak that their functioning should not be impacted.
4185 am__obj=conftest.${OBJEXT-o}
4186 am__minus_obj=
4187 ;;
4188 none) break ;;
4189 esac
4190 if depmode=$depmode \
4191 source=sub/conftest.c object=$am__obj \
4192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4194 >/dev/null 2>conftest.err &&
4195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4199 # icc doesn't choke on unknown options, it will just issue warnings
4200 # or remarks (even with -Werror). So we grep stderr for any message
4201 # that says an option was ignored or not supported.
4202 # When given -MP, icc 7.0 and 7.1 complain thusly:
4203 # icc: Command line warning: ignoring option '-M'; no argument required
4204 # The diagnosis changed in icc 8.0:
4205 # icc: Command line remark: option '-MP' not supported
4206 if (grep 'ignoring option' conftest.err ||
4207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4208 am_cv_CC_dependencies_compiler_type=$depmode
4209 break
4210 fi
4211 fi
4212 done
4213
4214 cd ..
4215 rm -rf conftest.dir
4216 else
4217 am_cv_CC_dependencies_compiler_type=none
4218 fi
4219
4220 fi
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4222 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4223 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4224
4225 if
4226 test "x$enable_dependency_tracking" != xno \
4227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228 am__fastdepCC_TRUE=
4229 am__fastdepCC_FALSE='#'
4230 else
4231 am__fastdepCC_TRUE='#'
4232 am__fastdepCC_FALSE=
4233 fi
4234
4235
4236 for ac_prog in 'bison -y' byacc
4237 do
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_YACC+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$YACC"; then
4246 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4250 do
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_YACC="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4258 fi
4259 done
4260 done
4261 IFS=$as_save_IFS
4262
4263 fi
4264 fi
4265 YACC=$ac_cv_prog_YACC
4266 if test -n "$YACC"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4268 $as_echo "$YACC" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4272 fi
4273
4274
4275 test -n "$YACC" && break
4276 done
4277 test -n "$YACC" || YACC="yacc"
4278
4279
4280 for ac_prog in flex lex
4281 do
4282 # Extract the first word of "$ac_prog", so it can be a program name with args.
4283 set dummy $ac_prog; ac_word=$2
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 $as_echo_n "checking for $ac_word... " >&6; }
4286 if test "${ac_cv_prog_LEX+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 if test -n "$LEX"; then
4290 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4291 else
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4299 ac_cv_prog_LEX="$ac_prog"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303 done
4304 done
4305 IFS=$as_save_IFS
4306
4307 fi
4308 fi
4309 LEX=$ac_cv_prog_LEX
4310 if test -n "$LEX"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4312 $as_echo "$LEX" >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4316 fi
4317
4318
4319 test -n "$LEX" && break
4320 done
4321 test -n "$LEX" || LEX=":"
4322
4323 if test "x$LEX" != "x:"; then
4324 cat >conftest.l <<_ACEOF
4325 %%
4326 a { ECHO; }
4327 b { REJECT; }
4328 c { yymore (); }
4329 d { yyless (1); }
4330 e { yyless (input () != 0); }
4331 f { unput (yytext[0]); }
4332 . { BEGIN INITIAL; }
4333 %%
4334 #ifdef YYTEXT_POINTER
4335 extern char *yytext;
4336 #endif
4337 int
4338 main (void)
4339 {
4340 return ! yylex () + ! yywrap ();
4341 }
4342 _ACEOF
4343 { { ac_try="$LEX conftest.l"
4344 case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347 esac
4348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349 $as_echo "$ac_try_echo"; } >&5
4350 (eval "$LEX conftest.l") 2>&5
4351 ac_status=$?
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4355 $as_echo_n "checking lex output file root... " >&6; }
4356 if test "${ac_cv_prog_lex_root+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359
4360 if test -f lex.yy.c; then
4361 ac_cv_prog_lex_root=lex.yy
4362 elif test -f lexyy.c; then
4363 ac_cv_prog_lex_root=lexyy
4364 else
4365 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4366 fi
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4369 $as_echo "$ac_cv_prog_lex_root" >&6; }
4370 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4371
4372 if test -z "${LEXLIB+set}"; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4374 $as_echo_n "checking lex library... " >&6; }
4375 if test "${ac_cv_lib_lex+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4377 else
4378
4379 ac_save_LIBS=$LIBS
4380 ac_cv_lib_lex='none needed'
4381 for ac_lib in '' -lfl -ll; do
4382 LIBS="$ac_lib $ac_save_LIBS"
4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4385 `cat $LEX_OUTPUT_ROOT.c`
4386 _ACEOF
4387 if ac_fn_c_try_link "$LINENO"; then :
4388 ac_cv_lib_lex=$ac_lib
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext \
4391 conftest$ac_exeext conftest.$ac_ext
4392 test "$ac_cv_lib_lex" != 'none needed' && break
4393 done
4394 LIBS=$ac_save_LIBS
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4398 $as_echo "$ac_cv_lib_lex" >&6; }
4399 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4404 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4405 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 # POSIX says lex can declare yytext either as a pointer or an array; the
4409 # default is implementation-dependent. Figure out which it is, since
4410 # not all implementations provide the %pointer and %array declarations.
4411 ac_cv_prog_lex_yytext_pointer=no
4412 ac_save_LIBS=$LIBS
4413 LIBS="$LEXLIB $ac_save_LIBS"
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #define YYTEXT_POINTER 1
4417 `cat $LEX_OUTPUT_ROOT.c`
4418 _ACEOF
4419 if ac_fn_c_try_link "$LINENO"; then :
4420 ac_cv_prog_lex_yytext_pointer=yes
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext \
4423 conftest$ac_exeext conftest.$ac_ext
4424 LIBS=$ac_save_LIBS
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4428 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4429 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4430
4431 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4432
4433 fi
4434 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4435
4436 fi
4437 if test "$LEX" = :; then
4438 LEX=${am_missing_run}flex
4439 fi
4440
4441
4442
4443 #ltdl stuff
4444 case `pwd` in
4445 *\ * | *\ *)
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4447 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4448 esac
4449
4450
4451
4452 macro_version='2.2.6'
4453 macro_revision='1.3012'
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467 ltmain="$ac_aux_dir/ltmain.sh"
4468
4469 # Make sure we can run config.sub.
4470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4471 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4472
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4474 $as_echo_n "checking build system type... " >&6; }
4475 if test "${ac_cv_build+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 ac_build_alias=$build_alias
4479 test "x$ac_build_alias" = x &&
4480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4481 test "x$ac_build_alias" = x &&
4482 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4484 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4485
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4488 $as_echo "$ac_cv_build" >&6; }
4489 case $ac_cv_build in
4490 *-*-*) ;;
4491 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4492 esac
4493 build=$ac_cv_build
4494 ac_save_IFS=$IFS; IFS='-'
4495 set x $ac_cv_build
4496 shift
4497 build_cpu=$1
4498 build_vendor=$2
4499 shift; shift
4500 # Remember, the first character of IFS is used to create $*,
4501 # except with old shells:
4502 build_os=$*
4503 IFS=$ac_save_IFS
4504 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4505
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4508 $as_echo_n "checking host system type... " >&6; }
4509 if test "${ac_cv_host+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 if test "x$host_alias" = x; then
4513 ac_cv_host=$ac_cv_build
4514 else
4515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4516 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4517 fi
4518
4519 fi
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4521 $as_echo "$ac_cv_host" >&6; }
4522 case $ac_cv_host in
4523 *-*-*) ;;
4524 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4525 esac
4526 host=$ac_cv_host
4527 ac_save_IFS=$IFS; IFS='-'
4528 set x $ac_cv_host
4529 shift
4530 host_cpu=$1
4531 host_vendor=$2
4532 shift; shift
4533 # Remember, the first character of IFS is used to create $*,
4534 # except with old shells:
4535 host_os=$*
4536 IFS=$ac_save_IFS
4537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4542 if test "${ac_cv_path_SED+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544 else
4545 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4546 for ac_i in 1 2 3 4 5 6 7; do
4547 ac_script="$ac_script$as_nl$ac_script"
4548 done
4549 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4550 { ac_script=; unset ac_script;}
4551 if test -z "$SED"; then
4552 ac_path_SED_found=false
4553 # Loop through the user's path and test for each of PROGNAME-LIST
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4556 do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_prog in sed gsed; do
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4562 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4563 # Check for GNU ac_path_SED and select it if it is found.
4564 # Check for GNU $ac_path_SED
4565 case `"$ac_path_SED" --version 2>&1` in
4566 *GNU*)
4567 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4568 *)
4569 ac_count=0
4570 $as_echo_n 0123456789 >"conftest.in"
4571 while :
4572 do
4573 cat "conftest.in" "conftest.in" >"conftest.tmp"
4574 mv "conftest.tmp" "conftest.in"
4575 cp "conftest.in" "conftest.nl"
4576 $as_echo '' >> "conftest.nl"
4577 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4579 as_fn_arith $ac_count + 1 && ac_count=$as_val
4580 if test $ac_count -gt ${ac_path_SED_max-0}; then
4581 # Best one so far, save it but keep looking for a better one
4582 ac_cv_path_SED="$ac_path_SED"
4583 ac_path_SED_max=$ac_count
4584 fi
4585 # 10*(2^10) chars as input seems more than enough
4586 test $ac_count -gt 10 && break
4587 done
4588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4589 esac
4590
4591 $ac_path_SED_found && break 3
4592 done
4593 done
4594 done
4595 IFS=$as_save_IFS
4596 if test -z "$ac_cv_path_SED"; then
4597 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4598 fi
4599 else
4600 ac_cv_path_SED=$SED
4601 fi
4602
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4605 $as_echo "$ac_cv_path_SED" >&6; }
4606 SED="$ac_cv_path_SED"
4607 rm -f conftest.sed
4608
4609 test -z "$SED" && SED=sed
4610 Xsed="$SED -e 1s/^X//"
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4624 if test "${ac_cv_path_GREP+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -z "$GREP"; then
4628 ac_path_GREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in grep ggrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4639 # Check for GNU ac_path_GREP and select it if it is found.
4640 # Check for GNU $ac_path_GREP
4641 case `"$ac_path_GREP" --version 2>&1` in
4642 *GNU*)
4643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4644 *)
4645 ac_count=0
4646 $as_echo_n 0123456789 >"conftest.in"
4647 while :
4648 do
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'GREP' >> "conftest.nl"
4653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 as_fn_arith $ac_count + 1 && ac_count=$as_val
4656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_GREP="$ac_path_GREP"
4659 ac_path_GREP_max=$ac_count
4660 fi
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4666
4667 $ac_path_GREP_found && break 3
4668 done
4669 done
4670 done
4671 IFS=$as_save_IFS
4672 if test -z "$ac_cv_path_GREP"; then
4673 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 fi
4675 else
4676 ac_cv_path_GREP=$GREP
4677 fi
4678
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4681 $as_echo "$ac_cv_path_GREP" >&6; }
4682 GREP="$ac_cv_path_GREP"
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4686 $as_echo_n "checking for egrep... " >&6; }
4687 if test "${ac_cv_path_EGREP+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4691 then ac_cv_path_EGREP="$GREP -E"
4692 else
4693 if test -z "$EGREP"; then
4694 ac_path_EGREP_found=false
4695 # Loop through the user's path and test for each of PROGNAME-LIST
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4698 do
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_prog in egrep; do
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4704 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4705 # Check for GNU ac_path_EGREP and select it if it is found.
4706 # Check for GNU $ac_path_EGREP
4707 case `"$ac_path_EGREP" --version 2>&1` in
4708 *GNU*)
4709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4710 *)
4711 ac_count=0
4712 $as_echo_n 0123456789 >"conftest.in"
4713 while :
4714 do
4715 cat "conftest.in" "conftest.in" >"conftest.tmp"
4716 mv "conftest.tmp" "conftest.in"
4717 cp "conftest.in" "conftest.nl"
4718 $as_echo 'EGREP' >> "conftest.nl"
4719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4721 as_fn_arith $ac_count + 1 && ac_count=$as_val
4722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4723 # Best one so far, save it but keep looking for a better one
4724 ac_cv_path_EGREP="$ac_path_EGREP"
4725 ac_path_EGREP_max=$ac_count
4726 fi
4727 # 10*(2^10) chars as input seems more than enough
4728 test $ac_count -gt 10 && break
4729 done
4730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4731 esac
4732
4733 $ac_path_EGREP_found && break 3
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4738 if test -z "$ac_cv_path_EGREP"; then
4739 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4740 fi
4741 else
4742 ac_cv_path_EGREP=$EGREP
4743 fi
4744
4745 fi
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4748 $as_echo "$ac_cv_path_EGREP" >&6; }
4749 EGREP="$ac_cv_path_EGREP"
4750
4751
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4753 $as_echo_n "checking for fgrep... " >&6; }
4754 if test "${ac_cv_path_FGREP+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4758 then ac_cv_path_FGREP="$GREP -F"
4759 else
4760 if test -z "$FGREP"; then
4761 ac_path_FGREP_found=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_prog in fgrep; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4771 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4772 # Check for GNU ac_path_FGREP and select it if it is found.
4773 # Check for GNU $ac_path_FGREP
4774 case `"$ac_path_FGREP" --version 2>&1` in
4775 *GNU*)
4776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4777 *)
4778 ac_count=0
4779 $as_echo_n 0123456789 >"conftest.in"
4780 while :
4781 do
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'FGREP' >> "conftest.nl"
4786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788 as_fn_arith $ac_count + 1 && ac_count=$as_val
4789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_FGREP="$ac_path_FGREP"
4792 ac_path_FGREP_max=$ac_count
4793 fi
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4796 done
4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798 esac
4799
4800 $ac_path_FGREP_found && break 3
4801 done
4802 done
4803 done
4804 IFS=$as_save_IFS
4805 if test -z "$ac_cv_path_FGREP"; then
4806 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807 fi
4808 else
4809 ac_cv_path_FGREP=$FGREP
4810 fi
4811
4812 fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4815 $as_echo "$ac_cv_path_FGREP" >&6; }
4816 FGREP="$ac_cv_path_FGREP"
4817
4818
4819 test -z "$GREP" && GREP=grep
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 # Check whether --with-gnu-ld was given.
4840 if test "${with_gnu_ld+set}" = set; then :
4841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4842 else
4843 with_gnu_ld=no
4844 fi
4845
4846 ac_prog=ld
4847 if test "$GCC" = yes; then
4848 # Check if gcc -print-prog-name=ld gives a path.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4850 $as_echo_n "checking for ld used by $CC... " >&6; }
4851 case $host in
4852 *-*-mingw*)
4853 # gcc leaves a trailing carriage return which upsets mingw
4854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4855 *)
4856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4857 esac
4858 case $ac_prog in
4859 # Accept absolute paths.
4860 [\\/]* | ?:[\\/]*)
4861 re_direlt='/[^/][^/]*/\.\./'
4862 # Canonicalize the pathname of ld
4863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4866 done
4867 test -z "$LD" && LD="$ac_prog"
4868 ;;
4869 "")
4870 # If it fails, then pretend we aren't using GCC.
4871 ac_prog=ld
4872 ;;
4873 *)
4874 # If it is relative, then search for the first ld in PATH.
4875 with_gnu_ld=unknown
4876 ;;
4877 esac
4878 elif test "$with_gnu_ld" = yes; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4880 $as_echo_n "checking for GNU ld... " >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4883 $as_echo_n "checking for non-GNU ld... " >&6; }
4884 fi
4885 if test "${lt_cv_path_LD+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -z "$LD"; then
4889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4890 for ac_dir in $PATH; do
4891 IFS="$lt_save_ifs"
4892 test -z "$ac_dir" && ac_dir=.
4893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4894 lt_cv_path_LD="$ac_dir/$ac_prog"
4895 # Check to see if the program is GNU ld. I'd rather use --version,
4896 # but apparently some variants of GNU ld only accept -v.
4897 # Break only if it was the GNU/non-GNU ld that we prefer.
4898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4899 *GNU* | *'with BFD'*)
4900 test "$with_gnu_ld" != no && break
4901 ;;
4902 *)
4903 test "$with_gnu_ld" != yes && break
4904 ;;
4905 esac
4906 fi
4907 done
4908 IFS="$lt_save_ifs"
4909 else
4910 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4911 fi
4912 fi
4913
4914 LD="$lt_cv_path_LD"
4915 if test -n "$LD"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4917 $as_echo "$LD" >&6; }
4918 else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4925 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4929 case `$LD -v 2>&1 </dev/null` in
4930 *GNU* | *'with BFD'*)
4931 lt_cv_prog_gnu_ld=yes
4932 ;;
4933 *)
4934 lt_cv_prog_gnu_ld=no
4935 ;;
4936 esac
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4940 with_gnu_ld=$lt_cv_prog_gnu_ld
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4952 if test "${lt_cv_path_NM+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -n "$NM"; then
4956 # Let the user override the test.
4957 lt_cv_path_NM="$NM"
4958 else
4959 lt_nm_to_check="${ac_tool_prefix}nm"
4960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4961 lt_nm_to_check="$lt_nm_to_check nm"
4962 fi
4963 for lt_tmp_nm in $lt_nm_to_check; do
4964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4965 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4966 IFS="$lt_save_ifs"
4967 test -z "$ac_dir" && ac_dir=.
4968 tmp_nm="$ac_dir/$lt_tmp_nm"
4969 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4970 # Check to see if the nm accepts a BSD-compat flag.
4971 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4972 # nm: unknown option "B" ignored
4973 # Tru64's nm complains that /dev/null is an invalid object file
4974 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4975 */dev/null* | *'Invalid file or object type'*)
4976 lt_cv_path_NM="$tmp_nm -B"
4977 break
4978 ;;
4979 *)
4980 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4981 */dev/null*)
4982 lt_cv_path_NM="$tmp_nm -p"
4983 break
4984 ;;
4985 *)
4986 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4987 continue # so that we can try to find one that supports BSD flags
4988 ;;
4989 esac
4990 ;;
4991 esac
4992 fi
4993 done
4994 IFS="$lt_save_ifs"
4995 done
4996 : ${lt_cv_path_NM=no}
4997 fi
4998 fi
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5000 $as_echo "$lt_cv_path_NM" >&6; }
5001 if test "$lt_cv_path_NM" != "no"; then
5002 NM="$lt_cv_path_NM"
5003 else
5004 # Didn't find any BSD compatible name lister, look for dumpbin.
5005 if test -n "$ac_tool_prefix"; then
5006 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5007 do
5008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5011 $as_echo_n "checking for $ac_word... " >&6; }
5012 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 if test -n "$DUMPBIN"; then
5016 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021 IFS=$as_save_IFS
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 break 2
5028 fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 DUMPBIN=$ac_cv_prog_DUMPBIN
5036 if test -n "$DUMPBIN"; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5038 $as_echo "$DUMPBIN" >&6; }
5039 else
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043
5044
5045 test -n "$DUMPBIN" && break
5046 done
5047 fi
5048 if test -z "$DUMPBIN"; then
5049 ac_ct_DUMPBIN=$DUMPBIN
5050 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5051 do
5052 # Extract the first word of "$ac_prog", so it can be a program name with args.
5053 set dummy $ac_prog; ac_word=$2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5055 $as_echo_n "checking for $ac_word... " >&6; }
5056 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -n "$ac_ct_DUMPBIN"; then
5060 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5061 else
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH
5064 do
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 break 2
5072 fi
5073 done
5074 done
5075 IFS=$as_save_IFS
5076
5077 fi
5078 fi
5079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5080 if test -n "$ac_ct_DUMPBIN"; then
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5082 $as_echo "$ac_ct_DUMPBIN" >&6; }
5083 else
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089 test -n "$ac_ct_DUMPBIN" && break
5090 done
5091
5092 if test "x$ac_ct_DUMPBIN" = x; then
5093 DUMPBIN=":"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096 yes:)
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099 ac_tool_warned=yes ;;
5100 esac
5101 DUMPBIN=$ac_ct_DUMPBIN
5102 fi
5103 fi
5104
5105
5106 if test "$DUMPBIN" != ":"; then
5107 NM="$DUMPBIN"
5108 fi
5109 fi
5110 test -z "$NM" && NM=nm
5111
5112
5113
5114
5115
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5118 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5119 if test "${lt_cv_nm_interface+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 lt_cv_nm_interface="BSD nm"
5123 echo "int some_variable = 0;" > conftest.$ac_ext
5124 (eval echo "\"\$as_me:5124: $ac_compile\"" >&5)
5125 (eval "$ac_compile" 2>conftest.err)
5126 cat conftest.err >&5
5127 (eval echo "\"\$as_me:5127: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5128 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5129 cat conftest.err >&5
5130 (eval echo "\"\$as_me:5130: output\"" >&5)
5131 cat conftest.out >&5
5132 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5133 lt_cv_nm_interface="MS dumpbin"
5134 fi
5135 rm -f conftest*
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5138 $as_echo "$lt_cv_nm_interface" >&6; }
5139
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5141 $as_echo_n "checking whether ln -s works... " >&6; }
5142 LN_S=$as_ln_s
5143 if test "$LN_S" = "ln -s"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5145 $as_echo "yes" >&6; }
5146 else
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5148 $as_echo "no, using $LN_S" >&6; }
5149 fi
5150
5151 # find the maximum length of command line arguments
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5153 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5154 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 i=0
5158 teststring="ABCD"
5159
5160 case $build_os in
5161 msdosdjgpp*)
5162 # On DJGPP, this test can blow up pretty badly due to problems in libc
5163 # (any single argument exceeding 2000 bytes causes a buffer overrun
5164 # during glob expansion). Even if it were fixed, the result of this
5165 # check would be larger than it should be.
5166 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5167 ;;
5168
5169 gnu*)
5170 # Under GNU Hurd, this test is not required because there is
5171 # no limit to the length of command line arguments.
5172 # Libtool will interpret -1 as no limit whatsoever
5173 lt_cv_sys_max_cmd_len=-1;
5174 ;;
5175
5176 cygwin* | mingw* | cegcc*)
5177 # On Win9x/ME, this test blows up -- it succeeds, but takes
5178 # about 5 minutes as the teststring grows exponentially.
5179 # Worse, since 9x/ME are not pre-emptively multitasking,
5180 # you end up with a "frozen" computer, even though with patience
5181 # the test eventually succeeds (with a max line length of 256k).
5182 # Instead, let's just punt: use the minimum linelength reported by
5183 # all of the supported platforms: 8192 (on NT/2K/XP).
5184 lt_cv_sys_max_cmd_len=8192;
5185 ;;
5186
5187 amigaos*)
5188 # On AmigaOS with pdksh, this test takes hours, literally.
5189 # So we just punt and use a minimum line length of 8192.
5190 lt_cv_sys_max_cmd_len=8192;
5191 ;;
5192
5193 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5194 # This has been around since 386BSD, at least. Likely further.
5195 if test -x /sbin/sysctl; then
5196 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5197 elif test -x /usr/sbin/sysctl; then
5198 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5199 else
5200 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5201 fi
5202 # And add a safety zone
5203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5204 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5205 ;;
5206
5207 interix*)
5208 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5209 lt_cv_sys_max_cmd_len=196608
5210 ;;
5211
5212 osf*)
5213 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5214 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5215 # nice to cause kernel panics so lets avoid the loop below.
5216 # First set a reasonable default.
5217 lt_cv_sys_max_cmd_len=16384
5218 #
5219 if test -x /sbin/sysconfig; then
5220 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5221 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5222 esac
5223 fi
5224 ;;
5225 sco3.2v5*)
5226 lt_cv_sys_max_cmd_len=102400
5227 ;;
5228 sysv5* | sco5v6* | sysv4.2uw2*)
5229 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5230 if test -n "$kargmax"; then
5231 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5232 else
5233 lt_cv_sys_max_cmd_len=32768
5234 fi
5235 ;;
5236 *)
5237 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5238 if test -n "$lt_cv_sys_max_cmd_len"; then
5239 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5240 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5241 else
5242 # Make teststring a little bigger before we do anything with it.
5243 # a 1K string should be a reasonable start.
5244 for i in 1 2 3 4 5 6 7 8 ; do
5245 teststring=$teststring$teststring
5246 done
5247 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5248 # If test is not a shell built-in, we'll probably end up computing a
5249 # maximum length that is only half of the actual maximum length, but
5250 # we can't tell.
5251 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5252 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5253 test $i != 17 # 1/2 MB should be enough
5254 do
5255 i=`expr $i + 1`
5256 teststring=$teststring$teststring
5257 done
5258 # Only check the string length outside the loop.
5259 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5260 teststring=
5261 # Add a significant safety factor because C++ compilers can tack on
5262 # massive amounts of additional arguments before passing them to the
5263 # linker. It appears as though 1/2 is a usable value.
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5265 fi
5266 ;;
5267 esac
5268
5269 fi
5270
5271 if test -n $lt_cv_sys_max_cmd_len ; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5273 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5276 $as_echo "none" >&6; }
5277 fi
5278 max_cmd_len=$lt_cv_sys_max_cmd_len
5279
5280
5281
5282
5283
5284
5285 : ${CP="cp -f"}
5286 : ${MV="mv -f"}
5287 : ${RM="rm -f"}
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5290 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5291 # Try some XSI features
5292 xsi_shell=no
5293 ( _lt_dummy="a/b/c"
5294 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5295 = c,a/b,, \
5296 && eval 'test $(( 1 + 1 )) -eq 2 \
5297 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5298 && xsi_shell=yes
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5300 $as_echo "$xsi_shell" >&6; }
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5304 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5305 lt_shell_append=no
5306 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5307 >/dev/null 2>&1 \
5308 && lt_shell_append=yes
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5310 $as_echo "$lt_shell_append" >&6; }
5311
5312
5313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5314 lt_unset=unset
5315 else
5316 lt_unset=false
5317 fi
5318
5319
5320
5321
5322
5323 # test EBCDIC or ASCII
5324 case `echo X|tr X '\101'` in
5325 A) # ASCII based system
5326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5327 lt_SP2NL='tr \040 \012'
5328 lt_NL2SP='tr \015\012 \040\040'
5329 ;;
5330 *) # EBCDIC based system
5331 lt_SP2NL='tr \100 \n'
5332 lt_NL2SP='tr \r\n \100\100'
5333 ;;
5334 esac
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5345 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5346 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 lt_cv_ld_reload_flag='-r'
5350 fi
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5352 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5353 reload_flag=$lt_cv_ld_reload_flag
5354 case $reload_flag in
5355 "" | " "*) ;;
5356 *) reload_flag=" $reload_flag" ;;
5357 esac
5358 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5359 case $host_os in
5360 darwin*)
5361 if test "$GCC" = yes; then
5362 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5363 else
5364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5365 fi
5366 ;;
5367 esac
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377 if test -n "$ac_tool_prefix"; then
5378 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$OBJDUMP"; then
5386 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5398 fi
5399 done
5400 done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 OBJDUMP=$ac_cv_prog_OBJDUMP
5406 if test -n "$OBJDUMP"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5408 $as_echo "$OBJDUMP" >&6; }
5409 else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415 fi
5416 if test -z "$ac_cv_prog_OBJDUMP"; then
5417 ac_ct_OBJDUMP=$OBJDUMP
5418 # Extract the first word of "objdump", so it can be a program name with args.
5419 set dummy objdump; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5446 if test -n "$ac_ct_OBJDUMP"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5448 $as_echo "$ac_ct_OBJDUMP" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454 if test "x$ac_ct_OBJDUMP" = x; then
5455 OBJDUMP="false"
5456 else
5457 case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463 OBJDUMP=$ac_ct_OBJDUMP
5464 fi
5465 else
5466 OBJDUMP="$ac_cv_prog_OBJDUMP"
5467 fi
5468
5469 test -z "$OBJDUMP" && OBJDUMP=objdump
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5480 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5481 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 lt_cv_file_magic_cmd='$MAGIC_CMD'
5485 lt_cv_file_magic_test_file=
5486 lt_cv_deplibs_check_method='unknown'
5487 # Need to set the preceding variable on all platforms that support
5488 # interlibrary dependencies.
5489 # 'none' -- dependencies not supported.
5490 # `unknown' -- same as none, but documents that we really don't know.
5491 # 'pass_all' -- all dependencies passed with no checks.
5492 # 'test_compile' -- check by making test program.
5493 # 'file_magic [[regex]]' -- check by looking for files in library path
5494 # which responds to the $file_magic_cmd with a given extended regex.
5495 # If you have `file' or equivalent on your system and you're not sure
5496 # whether `pass_all' will *always* work, you probably want this one.
5497
5498 case $host_os in
5499 aix[4-9]*)
5500 lt_cv_deplibs_check_method=pass_all
5501 ;;
5502
5503 beos*)
5504 lt_cv_deplibs_check_method=pass_all
5505 ;;
5506
5507 bsdi[45]*)
5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5509 lt_cv_file_magic_cmd='/usr/bin/file -L'
5510 lt_cv_file_magic_test_file=/shlib/libc.so
5511 ;;
5512
5513 cygwin*)
5514 # func_win32_libid is a shell function defined in ltmain.sh
5515 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5516 lt_cv_file_magic_cmd='func_win32_libid'
5517 ;;
5518
5519 mingw* | pw32*)
5520 # Base MSYS/MinGW do not provide the 'file' command needed by
5521 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5522 # unless we find 'file', for example because we are cross-compiling.
5523 if ( file / ) >/dev/null 2>&1; then
5524 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5525 lt_cv_file_magic_cmd='func_win32_libid'
5526 else
5527 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5528 lt_cv_file_magic_cmd='$OBJDUMP -f'
5529 fi
5530 ;;
5531
5532 cegcc)
5533 # use the weaker test based on 'objdump'. See mingw*.
5534 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5535 lt_cv_file_magic_cmd='$OBJDUMP -f'
5536 ;;
5537
5538 darwin* | rhapsody*)
5539 lt_cv_deplibs_check_method=pass_all
5540 ;;
5541
5542 freebsd* | dragonfly*)
5543 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5544 case $host_cpu in
5545 i*86 )
5546 # Not sure whether the presence of OpenBSD here was a mistake.
5547 # Let's accept both of them until this is cleared up.
5548 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5549 lt_cv_file_magic_cmd=/usr/bin/file
5550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5551 ;;
5552 esac
5553 else
5554 lt_cv_deplibs_check_method=pass_all
5555 fi
5556 ;;
5557
5558 gnu*)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561
5562 hpux10.20* | hpux11*)
5563 lt_cv_file_magic_cmd=/usr/bin/file
5564 case $host_cpu in
5565 ia64*)
5566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5567 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5568 ;;
5569 hppa*64*)
5570 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]'
5571 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5572 ;;
5573 *)
5574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5575 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5576 ;;
5577 esac
5578 ;;
5579
5580 interix[3-9]*)
5581 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5583 ;;
5584
5585 irix5* | irix6* | nonstopux*)
5586 case $LD in
5587 *-32|*"-32 ") libmagic=32-bit;;
5588 *-n32|*"-n32 ") libmagic=N32;;
5589 *-64|*"-64 ") libmagic=64-bit;;
5590 *) libmagic=never-match;;
5591 esac
5592 lt_cv_deplibs_check_method=pass_all
5593 ;;
5594
5595 # This must be Linux ELF.
5596 linux* | k*bsd*-gnu)
5597 lt_cv_deplibs_check_method=pass_all
5598 ;;
5599
5600 netbsd*)
5601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 else
5604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5605 fi
5606 ;;
5607
5608 newos6*)
5609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5610 lt_cv_file_magic_cmd=/usr/bin/file
5611 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5612 ;;
5613
5614 *nto* | *qnx*)
5615 lt_cv_deplibs_check_method=pass_all
5616 ;;
5617
5618 openbsd*)
5619 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5621 else
5622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5623 fi
5624 ;;
5625
5626 osf3* | osf4* | osf5*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 rdos*)
5631 lt_cv_deplibs_check_method=pass_all
5632 ;;
5633
5634 solaris*)
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5637
5638 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5639 lt_cv_deplibs_check_method=pass_all
5640 ;;
5641
5642 sysv4 | sysv4.3*)
5643 case $host_vendor in
5644 motorola)
5645 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]'
5646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5647 ;;
5648 ncr)
5649 lt_cv_deplibs_check_method=pass_all
5650 ;;
5651 sequent)
5652 lt_cv_file_magic_cmd='/bin/file'
5653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5654 ;;
5655 sni)
5656 lt_cv_file_magic_cmd='/bin/file'
5657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5658 lt_cv_file_magic_test_file=/lib/libc.so
5659 ;;
5660 siemens)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663 pc)
5664 lt_cv_deplibs_check_method=pass_all
5665 ;;
5666 esac
5667 ;;
5668
5669 tpf*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5672 esac
5673
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5676 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5677 file_magic_cmd=$lt_cv_file_magic_cmd
5678 deplibs_check_method=$lt_cv_deplibs_check_method
5679 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}ar; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if test "${ac_cv_prog_AR+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$AR"; then
5701 ac_cv_prog_AR="$AR" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_AR="${ac_tool_prefix}ar"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 AR=$ac_cv_prog_AR
5721 if test -n "$AR"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5723 $as_echo "$AR" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 fi
5731 if test -z "$ac_cv_prog_AR"; then
5732 ac_ct_AR=$AR
5733 # Extract the first word of "ar", so it can be a program name with args.
5734 set dummy ar; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_AR"; then
5741 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_AR="ar"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5761 if test -n "$ac_ct_AR"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5763 $as_echo "$ac_ct_AR" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769 if test "x$ac_ct_AR" = x; then
5770 AR="false"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778 AR=$ac_ct_AR
5779 fi
5780 else
5781 AR="$ac_cv_prog_AR"
5782 fi
5783
5784 test -z "$AR" && AR=ar
5785 test -z "$AR_FLAGS" && AR_FLAGS=cru
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}strip; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_STRIP+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$STRIP"; then
5806 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 STRIP=$ac_cv_prog_STRIP
5826 if test -n "$STRIP"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5828 $as_echo "$STRIP" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 fi
5836 if test -z "$ac_cv_prog_STRIP"; then
5837 ac_ct_STRIP=$STRIP
5838 # Extract the first word of "strip", so it can be a program name with args.
5839 set dummy strip; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_STRIP"; then
5846 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_STRIP="strip"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5866 if test -n "$ac_ct_STRIP"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5868 $as_echo "$ac_ct_STRIP" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874 if test "x$ac_ct_STRIP" = x; then
5875 STRIP=":"
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 STRIP=$ac_ct_STRIP
5884 fi
5885 else
5886 STRIP="$ac_cv_prog_STRIP"
5887 fi
5888
5889 test -z "$STRIP" && STRIP=:
5890
5891
5892
5893
5894
5895
5896 if test -n "$ac_tool_prefix"; then
5897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 if test -n "$RANLIB"; then
5905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5906 else
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918 done
5919 done
5920 IFS=$as_save_IFS
5921
5922 fi
5923 fi
5924 RANLIB=$ac_cv_prog_RANLIB
5925 if test -n "$RANLIB"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5927 $as_echo "$RANLIB" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932
5933
5934 fi
5935 if test -z "$ac_cv_prog_RANLIB"; then
5936 ac_ct_RANLIB=$RANLIB
5937 # Extract the first word of "ranlib", so it can be a program name with args.
5938 set dummy ranlib; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$ac_ct_RANLIB"; then
5945 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_ac_ct_RANLIB="ranlib"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5965 if test -n "$ac_ct_RANLIB"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5967 $as_echo "$ac_ct_RANLIB" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973 if test "x$ac_ct_RANLIB" = x; then
5974 RANLIB=":"
5975 else
5976 case $cross_compiling:$ac_tool_warned in
5977 yes:)
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982 RANLIB=$ac_ct_RANLIB
5983 fi
5984 else
5985 RANLIB="$ac_cv_prog_RANLIB"
5986 fi
5987
5988 test -z "$RANLIB" && RANLIB=:
5989
5990
5991
5992
5993
5994
5995 # Determine commands to create old-style static archives.
5996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5997 old_postinstall_cmds='chmod 644 $oldlib'
5998 old_postuninstall_cmds=
5999
6000 if test -n "$RANLIB"; then
6001 case $host_os in
6002 openbsd*)
6003 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6004 ;;
6005 *)
6006 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6007 ;;
6008 esac
6009 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6010 fi
6011
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 # If no C compiler was specified, use CC.
6046 LTCC=${LTCC-"$CC"}
6047
6048 # If no C compiler flags were specified, use CFLAGS.
6049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6050
6051 # Allow CC to be a program name with arguments.
6052 compiler=$CC
6053
6054
6055 # Check for command to grab the raw symbol name followed by C symbol from nm.
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6057 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6058 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061
6062 # These are sane defaults that work on at least a few old systems.
6063 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6064
6065 # Character class describing NM global symbol codes.
6066 symcode='[BCDEGRST]'
6067
6068 # Regexp to match symbols that can be accessed directly from C.
6069 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6070
6071 # Define system-specific variables.
6072 case $host_os in
6073 aix*)
6074 symcode='[BCDT]'
6075 ;;
6076 cygwin* | mingw* | pw32* | cegcc*)
6077 symcode='[ABCDGISTW]'
6078 ;;
6079 hpux*)
6080 if test "$host_cpu" = ia64; then
6081 symcode='[ABCDEGRST]'
6082 fi
6083 ;;
6084 irix* | nonstopux*)
6085 symcode='[BCDEGRST]'
6086 ;;
6087 osf*)
6088 symcode='[BCDEGQRST]'
6089 ;;
6090 solaris*)
6091 symcode='[BDRT]'
6092 ;;
6093 sco3.2v5*)
6094 symcode='[DT]'
6095 ;;
6096 sysv4.2uw2*)
6097 symcode='[DT]'
6098 ;;
6099 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6100 symcode='[ABDT]'
6101 ;;
6102 sysv4)
6103 symcode='[DFNSTU]'
6104 ;;
6105 esac
6106
6107 # If we're using GNU nm, then use its standard symbol codes.
6108 case `$NM -V 2>&1` in
6109 *GNU* | *'with BFD'*)
6110 symcode='[ABCDGIRSTW]' ;;
6111 esac
6112
6113 # Transform an extracted symbol line into a proper C declaration.
6114 # Some systems (esp. on ia64) link data and code symbols differently,
6115 # so use this general approach.
6116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6117
6118 # Transform an extracted symbol line into symbol name and symbol address
6119 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6120 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'"
6121
6122 # Handle CRLF in mingw tool chain
6123 opt_cr=
6124 case $build_os in
6125 mingw*)
6126 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6127 ;;
6128 esac
6129
6130 # Try without a prefix underscore, then with it.
6131 for ac_symprfx in "" "_"; do
6132
6133 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6134 symxfrm="\\1 $ac_symprfx\\2 \\2"
6135
6136 # Write the raw and C identifiers.
6137 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6138 # Fake it for dumpbin and say T for any non-static function
6139 # and D for any global variable.
6140 # Also find C++ and __fastcall symbols from MSVC++,
6141 # which start with @ or ?.
6142 lt_cv_sys_global_symbol_pipe="$AWK '"\
6143 " {last_section=section; section=\$ 3};"\
6144 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6145 " \$ 0!~/External *\|/{next};"\
6146 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6147 " {if(hide[section]) next};"\
6148 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6149 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6150 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6151 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6152 " ' prfx=^$ac_symprfx"
6153 else
6154 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6155 fi
6156
6157 # Check to see that the pipe works correctly.
6158 pipe_works=no
6159
6160 rm -f conftest*
6161 cat > conftest.$ac_ext <<_LT_EOF
6162 #ifdef __cplusplus
6163 extern "C" {
6164 #endif
6165 char nm_test_var;
6166 void nm_test_func(void);
6167 void nm_test_func(void){}
6168 #ifdef __cplusplus
6169 }
6170 #endif
6171 int main(){nm_test_var='a';nm_test_func();return(0);}
6172 _LT_EOF
6173
6174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6175 (eval $ac_compile) 2>&5
6176 ac_status=$?
6177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178 test $ac_status = 0; }; then
6179 # Now try to grab the symbols.
6180 nlist=conftest.nm
6181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6182 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6183 ac_status=$?
6184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6185 test $ac_status = 0; } && test -s "$nlist"; then
6186 # Try sorting and uniquifying the output.
6187 if sort "$nlist" | uniq > "$nlist"T; then
6188 mv -f "$nlist"T "$nlist"
6189 else
6190 rm -f "$nlist"T
6191 fi
6192
6193 # Make sure that we snagged all the symbols we need.
6194 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6195 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6196 cat <<_LT_EOF > conftest.$ac_ext
6197 #ifdef __cplusplus
6198 extern "C" {
6199 #endif
6200
6201 _LT_EOF
6202 # Now generate the symbol file.
6203 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6204
6205 cat <<_LT_EOF >> conftest.$ac_ext
6206
6207 /* The mapping between symbol names and symbols. */
6208 const struct {
6209 const char *name;
6210 void *address;
6211 }
6212 lt__PROGRAM__LTX_preloaded_symbols[] =
6213 {
6214 { "@PROGRAM@", (void *) 0 },
6215 _LT_EOF
6216 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6217 cat <<\_LT_EOF >> conftest.$ac_ext
6218 {0, (void *) 0}
6219 };
6220
6221 /* This works around a problem in FreeBSD linker */
6222 #ifdef FREEBSD_WORKAROUND
6223 static const void *lt_preloaded_setup() {
6224 return lt__PROGRAM__LTX_preloaded_symbols;
6225 }
6226 #endif
6227
6228 #ifdef __cplusplus
6229 }
6230 #endif
6231 _LT_EOF
6232 # Now try linking the two files.
6233 mv conftest.$ac_objext conftstm.$ac_objext
6234 lt_save_LIBS="$LIBS"
6235 lt_save_CFLAGS="$CFLAGS"
6236 LIBS="conftstm.$ac_objext"
6237 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6239 (eval $ac_link) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6243 pipe_works=yes
6244 fi
6245 LIBS="$lt_save_LIBS"
6246 CFLAGS="$lt_save_CFLAGS"
6247 else
6248 echo "cannot find nm_test_func in $nlist" >&5
6249 fi
6250 else
6251 echo "cannot find nm_test_var in $nlist" >&5
6252 fi
6253 else
6254 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6255 fi
6256 else
6257 echo "$progname: failed program was:" >&5
6258 cat conftest.$ac_ext >&5
6259 fi
6260 rm -rf conftest* conftst*
6261
6262 # Do not use the global_symbol_pipe unless it works.
6263 if test "$pipe_works" = yes; then
6264 break
6265 else
6266 lt_cv_sys_global_symbol_pipe=
6267 fi
6268 done
6269
6270 fi
6271
6272 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6273 lt_cv_sys_global_symbol_to_cdecl=
6274 fi
6275 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6277 $as_echo "failed" >&6; }
6278 else
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6280 $as_echo "ok" >&6; }
6281 fi
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 # Check whether --enable-libtool-lock was given.
6305 if test "${enable_libtool_lock+set}" = set; then :
6306 enableval=$enable_libtool_lock;
6307 fi
6308
6309 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6310
6311 # Some flags need to be propagated to the compiler or linker for good
6312 # libtool support.
6313 case $host in
6314 ia64-*-hpux*)
6315 # Find out which ABI we are using.
6316 echo 'int i;' > conftest.$ac_ext
6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6318 (eval $ac_compile) 2>&5
6319 ac_status=$?
6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6321 test $ac_status = 0; }; then
6322 case `/usr/bin/file conftest.$ac_objext` in
6323 *ELF-32*)
6324 HPUX_IA64_MODE="32"
6325 ;;
6326 *ELF-64*)
6327 HPUX_IA64_MODE="64"
6328 ;;
6329 esac
6330 fi
6331 rm -rf conftest*
6332 ;;
6333 *-*-irix6*)
6334 # Find out which ABI we are using.
6335 echo '#line 6335 "configure"' > conftest.$ac_ext
6336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6337 (eval $ac_compile) 2>&5
6338 ac_status=$?
6339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340 test $ac_status = 0; }; then
6341 if test "$lt_cv_prog_gnu_ld" = yes; then
6342 case `/usr/bin/file conftest.$ac_objext` in
6343 *32-bit*)
6344 LD="${LD-ld} -melf32bsmip"
6345 ;;
6346 *N32*)
6347 LD="${LD-ld} -melf32bmipn32"
6348 ;;
6349 *64-bit*)
6350 LD="${LD-ld} -melf64bmip"
6351 ;;
6352 esac
6353 else
6354 case `/usr/bin/file conftest.$ac_objext` in
6355 *32-bit*)
6356 LD="${LD-ld} -32"
6357 ;;
6358 *N32*)
6359 LD="${LD-ld} -n32"
6360 ;;
6361 *64-bit*)
6362 LD="${LD-ld} -64"
6363 ;;
6364 esac
6365 fi
6366 fi
6367 rm -rf conftest*
6368 ;;
6369
6370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6372 # Find out which ABI we are using.
6373 echo 'int i;' > conftest.$ac_ext
6374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6375 (eval $ac_compile) 2>&5
6376 ac_status=$?
6377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6378 test $ac_status = 0; }; then
6379 case `/usr/bin/file conftest.o` in
6380 *32-bit*)
6381 case $host in
6382 x86_64-*kfreebsd*-gnu)
6383 LD="${LD-ld} -m elf_i386_fbsd"
6384 ;;
6385 x86_64-*linux*)
6386 LD="${LD-ld} -m elf_i386"
6387 ;;
6388 ppc64-*linux*|powerpc64-*linux*)
6389 LD="${LD-ld} -m elf32ppclinux"
6390 ;;
6391 s390x-*linux*)
6392 LD="${LD-ld} -m elf_s390"
6393 ;;
6394 sparc64-*linux*)
6395 LD="${LD-ld} -m elf32_sparc"
6396 ;;
6397 esac
6398 ;;
6399 *64-bit*)
6400 case $host in
6401 x86_64-*kfreebsd*-gnu)
6402 LD="${LD-ld} -m elf_x86_64_fbsd"
6403 ;;
6404 x86_64-*linux*)
6405 LD="${LD-ld} -m elf_x86_64"
6406 ;;
6407 ppc*-*linux*|powerpc*-*linux*)
6408 LD="${LD-ld} -m elf64ppc"
6409 ;;
6410 s390*-*linux*|s390*-*tpf*)
6411 LD="${LD-ld} -m elf64_s390"
6412 ;;
6413 sparc*-*linux*)
6414 LD="${LD-ld} -m elf64_sparc"
6415 ;;
6416 esac
6417 ;;
6418 esac
6419 fi
6420 rm -rf conftest*
6421 ;;
6422
6423 *-*-sco3.2v5*)
6424 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6425 SAVE_CFLAGS="$CFLAGS"
6426 CFLAGS="$CFLAGS -belf"
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6428 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6429 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 ac_ext=c
6433 ac_cpp='$CPP $CPPFLAGS'
6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6440
6441 int
6442 main ()
6443 {
6444
6445 ;
6446 return 0;
6447 }
6448 _ACEOF
6449 if ac_fn_c_try_link "$LINENO"; then :
6450 lt_cv_cc_needs_belf=yes
6451 else
6452 lt_cv_cc_needs_belf=no
6453 fi
6454 rm -f core conftest.err conftest.$ac_objext \
6455 conftest$ac_exeext conftest.$ac_ext
6456 ac_ext=c
6457 ac_cpp='$CPP $CPPFLAGS'
6458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6461
6462 fi
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6464 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6465 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6466 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6467 CFLAGS="$SAVE_CFLAGS"
6468 fi
6469 ;;
6470 sparc*-*solaris*)
6471 # Find out which ABI we are using.
6472 echo 'int i;' > conftest.$ac_ext
6473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6474 (eval $ac_compile) 2>&5
6475 ac_status=$?
6476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6477 test $ac_status = 0; }; then
6478 case `/usr/bin/file conftest.o` in
6479 *64-bit*)
6480 case $lt_cv_prog_gnu_ld in
6481 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6482 *)
6483 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6484 LD="${LD-ld} -64"
6485 fi
6486 ;;
6487 esac
6488 ;;
6489 esac
6490 fi
6491 rm -rf conftest*
6492 ;;
6493 esac
6494
6495 need_locks="$enable_libtool_lock"
6496
6497
6498 case $host_os in
6499 rhapsody* | darwin*)
6500 if test -n "$ac_tool_prefix"; then
6501 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 if test -n "$DSYMUTIL"; then
6509 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6529 if test -n "$DSYMUTIL"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6531 $as_echo "$DSYMUTIL" >&6; }
6532 else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_DSYMUTIL"; then
6540 ac_ct_DSYMUTIL=$DSYMUTIL
6541 # Extract the first word of "dsymutil", so it can be a program name with args.
6542 set dummy dsymutil; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6546 $as_echo_n "(cached) " >&6
6547 else
6548 if test -n "$ac_ct_DSYMUTIL"; then
6549 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562 done
6563 done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6569 if test -n "$ac_ct_DSYMUTIL"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6571 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6572 else
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577 if test "x$ac_ct_DSYMUTIL" = x; then
6578 DSYMUTIL=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586 DSYMUTIL=$ac_ct_DSYMUTIL
6587 fi
6588 else
6589 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6590 fi
6591
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$NMEDIT"; then
6601 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6613 fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 NMEDIT=$ac_cv_prog_NMEDIT
6621 if test -n "$NMEDIT"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6623 $as_echo "$NMEDIT" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 fi
6628
6629
6630 fi
6631 if test -z "$ac_cv_prog_NMEDIT"; then
6632 ac_ct_NMEDIT=$NMEDIT
6633 # Extract the first word of "nmedit", so it can be a program name with args.
6634 set dummy nmedit; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$ac_ct_NMEDIT"; then
6641 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6661 if test -n "$ac_ct_NMEDIT"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6663 $as_echo "$ac_ct_NMEDIT" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669 if test "x$ac_ct_NMEDIT" = x; then
6670 NMEDIT=":"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 NMEDIT=$ac_ct_NMEDIT
6679 fi
6680 else
6681 NMEDIT="$ac_cv_prog_NMEDIT"
6682 fi
6683
6684 if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6686 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 $as_echo_n "checking for $ac_word... " >&6; }
6689 if test "${ac_cv_prog_LIPO+set}" = set; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 if test -n "$LIPO"; then
6693 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6694 else
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696 for as_dir in $PATH
6697 do
6698 IFS=$as_save_IFS
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 break 2
6705 fi
6706 done
6707 done
6708 IFS=$as_save_IFS
6709
6710 fi
6711 fi
6712 LIPO=$ac_cv_prog_LIPO
6713 if test -n "$LIPO"; then
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6715 $as_echo "$LIPO" >&6; }
6716 else
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6719 fi
6720
6721
6722 fi
6723 if test -z "$ac_cv_prog_LIPO"; then
6724 ac_ct_LIPO=$LIPO
6725 # Extract the first word of "lipo", so it can be a program name with args.
6726 set dummy lipo; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 if test -n "$ac_ct_LIPO"; then
6733 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6734 else
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_ac_ct_LIPO="lipo"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6749
6750 fi
6751 fi
6752 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6753 if test -n "$ac_ct_LIPO"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6755 $as_echo "$ac_ct_LIPO" >&6; }
6756 else
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6759 fi
6760
6761 if test "x$ac_ct_LIPO" = x; then
6762 LIPO=":"
6763 else
6764 case $cross_compiling:$ac_tool_warned in
6765 yes:)
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6768 ac_tool_warned=yes ;;
6769 esac
6770 LIPO=$ac_ct_LIPO
6771 fi
6772 else
6773 LIPO="$ac_cv_prog_LIPO"
6774 fi
6775
6776 if test -n "$ac_tool_prefix"; then
6777 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6778 set dummy ${ac_tool_prefix}otool; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$OTOOL"; then
6785 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798 done
6799 done
6800 IFS=$as_save_IFS
6801
6802 fi
6803 fi
6804 OTOOL=$ac_cv_prog_OTOOL
6805 if test -n "$OTOOL"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6807 $as_echo "$OTOOL" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6811 fi
6812
6813
6814 fi
6815 if test -z "$ac_cv_prog_OTOOL"; then
6816 ac_ct_OTOOL=$OTOOL
6817 # Extract the first word of "otool", so it can be a program name with args.
6818 set dummy otool; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$ac_ct_OTOOL"; then
6825 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_ac_ct_OTOOL="otool"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6845 if test -n "$ac_ct_OTOOL"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6847 $as_echo "$ac_ct_OTOOL" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853 if test "x$ac_ct_OTOOL" = x; then
6854 OTOOL=":"
6855 else
6856 case $cross_compiling:$ac_tool_warned in
6857 yes:)
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860 ac_tool_warned=yes ;;
6861 esac
6862 OTOOL=$ac_ct_OTOOL
6863 fi
6864 else
6865 OTOOL="$ac_cv_prog_OTOOL"
6866 fi
6867
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$OTOOL64"; then
6877 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 OTOOL64=$ac_cv_prog_OTOOL64
6897 if test -n "$OTOOL64"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6899 $as_echo "$OTOOL64" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_OTOOL64"; then
6908 ac_ct_OTOOL64=$OTOOL64
6909 # Extract the first word of "otool64", so it can be a program name with args.
6910 set dummy otool64; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_OTOOL64"; then
6917 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_ac_ct_OTOOL64="otool64"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6937 if test -n "$ac_ct_OTOOL64"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6939 $as_echo "$ac_ct_OTOOL64" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945 if test "x$ac_ct_OTOOL64" = x; then
6946 OTOOL64=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 OTOOL64=$ac_ct_OTOOL64
6955 fi
6956 else
6957 OTOOL64="$ac_cv_prog_OTOOL64"
6958 fi
6959
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6987 $as_echo_n "checking for -single_module linker flag... " >&6; }
6988 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 lt_cv_apple_cc_single_mod=no
6992 if test -z "${LT_MULTI_MODULE}"; then
6993 # By default we will add the -single_module flag. You can override
6994 # by either setting the environment variable LT_MULTI_MODULE
6995 # non-empty at configure time, or by adding -multi_module to the
6996 # link flags.
6997 rm -rf libconftest.dylib*
6998 echo "int foo(void){return 1;}" > conftest.c
6999 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7000 -dynamiclib -Wl,-single_module conftest.c" >&5
7001 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7002 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7003 _lt_result=$?
7004 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7005 lt_cv_apple_cc_single_mod=yes
7006 else
7007 cat conftest.err >&5
7008 fi
7009 rm -rf libconftest.dylib*
7010 rm -f conftest.*
7011 fi
7012 fi
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7014 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7016 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7017 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 lt_cv_ld_exported_symbols_list=no
7021 save_LDFLAGS=$LDFLAGS
7022 echo "_main" > conftest.sym
7023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026
7027 int
7028 main ()
7029 {
7030
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 if ac_fn_c_try_link "$LINENO"; then :
7036 lt_cv_ld_exported_symbols_list=yes
7037 else
7038 lt_cv_ld_exported_symbols_list=no
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext \
7041 conftest$ac_exeext conftest.$ac_ext
7042 LDFLAGS="$save_LDFLAGS"
7043
7044 fi
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7046 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7047 case $host_os in
7048 rhapsody* | darwin1.[012])
7049 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7050 darwin1.*)
7051 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7052 darwin*) # darwin 5.x on
7053 # if running on 10.5 or later, the deployment target defaults
7054 # to the OS version, if on x86, and 10.4, the deployment
7055 # target defaults to 10.4. Don't you love it?
7056 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7057 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7058 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7059 10.[012]*)
7060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7061 10.*)
7062 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7063 esac
7064 ;;
7065 esac
7066 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7067 _lt_dar_single_mod='$single_module'
7068 fi
7069 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7070 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7071 else
7072 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7073 fi
7074 if test "$DSYMUTIL" != ":"; then
7075 _lt_dsymutil='~$DSYMUTIL $lib || :'
7076 else
7077 _lt_dsymutil=
7078 fi
7079 ;;
7080 esac
7081
7082 ac_ext=c
7083 ac_cpp='$CPP $CPPFLAGS'
7084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7089 # On Suns, sometimes $CPP names a directory.
7090 if test -n "$CPP" && test -d "$CPP"; then
7091 CPP=
7092 fi
7093 if test -z "$CPP"; then
7094 if test "${ac_cv_prog_CPP+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 # Double quotes because CPP needs to be expanded
7098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7099 do
7100 ac_preproc_ok=false
7101 for ac_c_preproc_warn_flag in '' yes
7102 do
7103 # Use a header file that comes with gcc, so configuring glibc
7104 # with a fresh cross-compiler works.
7105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7106 # <limits.h> exists even on freestanding compilers.
7107 # On the NeXT, cc -E runs the code through the compiler's parser,
7108 # not just through cpp. "Syntax error" is here to catch this case.
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 #ifdef __STDC__
7112 # include <limits.h>
7113 #else
7114 # include <assert.h>
7115 #endif
7116 Syntax error
7117 _ACEOF
7118 if ac_fn_c_try_cpp "$LINENO"; then :
7119
7120 else
7121 # Broken: fails on valid input.
7122 continue
7123 fi
7124 rm -f conftest.err conftest.$ac_ext
7125
7126 # OK, works on sane cases. Now check whether nonexistent headers
7127 # can be detected and how.
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 #include <ac_nonexistent.h>
7131 _ACEOF
7132 if ac_fn_c_try_cpp "$LINENO"; then :
7133 # Broken: success on invalid input.
7134 continue
7135 else
7136 # Passes both tests.
7137 ac_preproc_ok=:
7138 break
7139 fi
7140 rm -f conftest.err conftest.$ac_ext
7141
7142 done
7143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7144 rm -f conftest.err conftest.$ac_ext
7145 if $ac_preproc_ok; then :
7146 break
7147 fi
7148
7149 done
7150 ac_cv_prog_CPP=$CPP
7151
7152 fi
7153 CPP=$ac_cv_prog_CPP
7154 else
7155 ac_cv_prog_CPP=$CPP
7156 fi
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7158 $as_echo "$CPP" >&6; }
7159 ac_preproc_ok=false
7160 for ac_c_preproc_warn_flag in '' yes
7161 do
7162 # Use a header file that comes with gcc, so configuring glibc
7163 # with a fresh cross-compiler works.
7164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7165 # <limits.h> exists even on freestanding compilers.
7166 # On the NeXT, cc -E runs the code through the compiler's parser,
7167 # not just through cpp. "Syntax error" is here to catch this case.
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175 Syntax error
7176 _ACEOF
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7178
7179 else
7180 # Broken: fails on valid input.
7181 continue
7182 fi
7183 rm -f conftest.err conftest.$ac_ext
7184
7185 # OK, works on sane cases. Now check whether nonexistent headers
7186 # can be detected and how.
7187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h. */
7189 #include <ac_nonexistent.h>
7190 _ACEOF
7191 if ac_fn_c_try_cpp "$LINENO"; then :
7192 # Broken: success on invalid input.
7193 continue
7194 else
7195 # Passes both tests.
7196 ac_preproc_ok=:
7197 break
7198 fi
7199 rm -f conftest.err conftest.$ac_ext
7200
7201 done
7202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7203 rm -f conftest.err conftest.$ac_ext
7204 if $ac_preproc_ok; then :
7205
7206 else
7207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7209 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7210 See \`config.log' for more details." "$LINENO" 5; }
7211 fi
7212
7213 ac_ext=c
7214 ac_cpp='$CPP $CPPFLAGS'
7215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7218
7219
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7221 $as_echo_n "checking for ANSI C header files... " >&6; }
7222 if test "${ac_cv_header_stdc+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7224 else
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7227 #include <stdlib.h>
7228 #include <stdarg.h>
7229 #include <string.h>
7230 #include <float.h>
7231
7232 int
7233 main ()
7234 {
7235
7236 ;
7237 return 0;
7238 }
7239 _ACEOF
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 ac_cv_header_stdc=yes
7242 else
7243 ac_cv_header_stdc=no
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246
7247 if test $ac_cv_header_stdc = yes; then
7248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <string.h>
7252
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255 $EGREP "memchr" >/dev/null 2>&1; then :
7256
7257 else
7258 ac_cv_header_stdc=no
7259 fi
7260 rm -f conftest*
7261
7262 fi
7263
7264 if test $ac_cv_header_stdc = yes; then
7265 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 #include <stdlib.h>
7269
7270 _ACEOF
7271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7272 $EGREP "free" >/dev/null 2>&1; then :
7273
7274 else
7275 ac_cv_header_stdc=no
7276 fi
7277 rm -f conftest*
7278
7279 fi
7280
7281 if test $ac_cv_header_stdc = yes; then
7282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7283 if test "$cross_compiling" = yes; then :
7284 :
7285 else
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 #include <ctype.h>
7289 #include <stdlib.h>
7290 #if ((' ' & 0x0FF) == 0x020)
7291 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7292 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7293 #else
7294 # define ISLOWER(c) \
7295 (('a' <= (c) && (c) <= 'i') \
7296 || ('j' <= (c) && (c) <= 'r') \
7297 || ('s' <= (c) && (c) <= 'z'))
7298 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7299 #endif
7300
7301 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7302 int
7303 main ()
7304 {
7305 int i;
7306 for (i = 0; i < 256; i++)
7307 if (XOR (islower (i), ISLOWER (i))
7308 || toupper (i) != TOUPPER (i))
7309 return 2;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_run "$LINENO"; then :
7314
7315 else
7316 ac_cv_header_stdc=no
7317 fi
7318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7319 conftest.$ac_objext conftest.beam conftest.$ac_ext
7320 fi
7321
7322 fi
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7325 $as_echo "$ac_cv_header_stdc" >&6; }
7326 if test $ac_cv_header_stdc = yes; then
7327
7328 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7329
7330 fi
7331
7332 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334 inttypes.h stdint.h unistd.h
7335 do :
7336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7338 "
7339 eval as_val=\$$as_ac_Header
7340 if test "x$as_val" = x""yes; then :
7341 cat >>confdefs.h <<_ACEOF
7342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349
7350 for ac_header in dlfcn.h
7351 do :
7352 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7353 "
7354 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7355 cat >>confdefs.h <<_ACEOF
7356 #define HAVE_DLFCN_H 1
7357 _ACEOF
7358
7359 fi
7360
7361 done
7362
7363
7364
7365 # Set options
7366 enable_dlopen=yes
7367 # Check whether --enable-static was given.
7368 if test "${enable_static+set}" = set; then :
7369 enableval=$enable_static; p=${PACKAGE-default}
7370 case $enableval in
7371 yes) enable_static=yes ;;
7372 no) enable_static=no ;;
7373 *)
7374 enable_static=no
7375 # Look at the argument we got. We use all the common list separators.
7376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377 for pkg in $enableval; do
7378 IFS="$lt_save_ifs"
7379 if test "X$pkg" = "X$p"; then
7380 enable_static=yes
7381 fi
7382 done
7383 IFS="$lt_save_ifs"
7384 ;;
7385 esac
7386 else
7387 enable_static=no
7388 fi
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400 enable_win32_dll=no
7401
7402
7403 # Check whether --enable-shared was given.
7404 if test "${enable_shared+set}" = set; then :
7405 enableval=$enable_shared; p=${PACKAGE-default}
7406 case $enableval in
7407 yes) enable_shared=yes ;;
7408 no) enable_shared=no ;;
7409 *)
7410 enable_shared=no
7411 # Look at the argument we got. We use all the common list separators.
7412 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7413 for pkg in $enableval; do
7414 IFS="$lt_save_ifs"
7415 if test "X$pkg" = "X$p"; then
7416 enable_shared=yes
7417 fi
7418 done
7419 IFS="$lt_save_ifs"
7420 ;;
7421 esac
7422 else
7423 enable_shared=yes
7424 fi
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436 # Check whether --with-pic was given.
7437 if test "${with_pic+set}" = set; then :
7438 withval=$with_pic; pic_mode="$withval"
7439 else
7440 pic_mode=default
7441 fi
7442
7443
7444 test -z "$pic_mode" && pic_mode=default
7445
7446
7447
7448
7449
7450
7451
7452 # Check whether --enable-fast-install was given.
7453 if test "${enable_fast_install+set}" = set; then :
7454 enableval=$enable_fast_install; p=${PACKAGE-default}
7455 case $enableval in
7456 yes) enable_fast_install=yes ;;
7457 no) enable_fast_install=no ;;
7458 *)
7459 enable_fast_install=no
7460 # Look at the argument we got. We use all the common list separators.
7461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7462 for pkg in $enableval; do
7463 IFS="$lt_save_ifs"
7464 if test "X$pkg" = "X$p"; then
7465 enable_fast_install=yes
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 ;;
7470 esac
7471 else
7472 enable_fast_install=yes
7473 fi
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485 # This can be used to rebuild libtool when needed
7486 LIBTOOL_DEPS="$ltmain"
7487
7488 # Always use our own libtool.
7489 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7490
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 test -z "$LN_S" && LN_S="ln -s"
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530 if test -n "${ZSH_VERSION+set}" ; then
7531 setopt NO_GLOB_SUBST
7532 fi
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7535 $as_echo_n "checking for objdir... " >&6; }
7536 if test "${lt_cv_objdir+set}" = set; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 rm -f .libs 2>/dev/null
7540 mkdir .libs 2>/dev/null
7541 if test -d .libs; then
7542 lt_cv_objdir=.libs
7543 else
7544 # MS-DOS does not allow filenames that begin with a dot.
7545 lt_cv_objdir=_libs
7546 fi
7547 rmdir .libs 2>/dev/null
7548 fi
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7550 $as_echo "$lt_cv_objdir" >&6; }
7551 objdir=$lt_cv_objdir
7552
7553
7554
7555
7556
7557 cat >>confdefs.h <<_ACEOF
7558 #define LT_OBJDIR "$lt_cv_objdir/"
7559 _ACEOF
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577 case $host_os in
7578 aix3*)
7579 # AIX sometimes has problems with the GCC collect2 program. For some
7580 # reason, if we set the COLLECT_NAMES environment variable, the problems
7581 # vanish in a puff of smoke.
7582 if test "X${COLLECT_NAMES+set}" != Xset; then
7583 COLLECT_NAMES=
7584 export COLLECT_NAMES
7585 fi
7586 ;;
7587 esac
7588
7589 # Sed substitution that helps us do robust quoting. It backslashifies
7590 # metacharacters that are still active within double-quoted strings.
7591 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7592
7593 # Same as above, but do not quote variable references.
7594 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7595
7596 # Sed substitution to delay expansion of an escaped shell variable in a
7597 # double_quote_subst'ed string.
7598 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7599
7600 # Sed substitution to delay expansion of an escaped single quote.
7601 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7602
7603 # Sed substitution to avoid accidental globbing in evaled expressions
7604 no_glob_subst='s/\*/\\\*/g'
7605
7606 # Global variables:
7607 ofile=libtool
7608 can_build_shared=yes
7609
7610 # All known linkers require a `.a' archive for static linking (except MSVC,
7611 # which needs '.lib').
7612 libext=a
7613
7614 with_gnu_ld="$lt_cv_prog_gnu_ld"
7615
7616 old_CC="$CC"
7617 old_CFLAGS="$CFLAGS"
7618
7619 # Set sane defaults for various variables
7620 test -z "$CC" && CC=cc
7621 test -z "$LTCC" && LTCC=$CC
7622 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7623 test -z "$LD" && LD=ld
7624 test -z "$ac_objext" && ac_objext=o
7625
7626 for cc_temp in $compiler""; do
7627 case $cc_temp in
7628 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7629 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7630 \-*) ;;
7631 *) break;;
7632 esac
7633 done
7634 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7635
7636
7637 # Only perform the check for file, if the check method requires it
7638 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7639 case $deplibs_check_method in
7640 file_magic*)
7641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7643 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 case $MAGIC_CMD in
7648 [\\/*] | ?:[\\/]*)
7649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7650 ;;
7651 *)
7652 lt_save_MAGIC_CMD="$MAGIC_CMD"
7653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7655 for ac_dir in $ac_dummy; do
7656 IFS="$lt_save_ifs"
7657 test -z "$ac_dir" && ac_dir=.
7658 if test -f $ac_dir/${ac_tool_prefix}file; then
7659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7660 if test -n "$file_magic_test_file"; then
7661 case $deplibs_check_method in
7662 "file_magic "*)
7663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7666 $EGREP "$file_magic_regex" > /dev/null; then
7667 :
7668 else
7669 cat <<_LT_EOF 1>&2
7670
7671 *** Warning: the command libtool uses to detect shared libraries,
7672 *** $file_magic_cmd, produces output that libtool cannot recognize.
7673 *** The result is that libtool may fail to recognize shared libraries
7674 *** as such. This will affect the creation of libtool libraries that
7675 *** depend on shared libraries, but programs linked with such libtool
7676 *** libraries will work regardless of this problem. Nevertheless, you
7677 *** may want to report the problem to your system manager and/or to
7678 *** bug-libtool@gnu.org
7679
7680 _LT_EOF
7681 fi ;;
7682 esac
7683 fi
7684 break
7685 fi
7686 done
7687 IFS="$lt_save_ifs"
7688 MAGIC_CMD="$lt_save_MAGIC_CMD"
7689 ;;
7690 esac
7691 fi
7692
7693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7694 if test -n "$MAGIC_CMD"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7696 $as_echo "$MAGIC_CMD" >&6; }
7697 else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699 $as_echo "no" >&6; }
7700 fi
7701
7702
7703
7704
7705
7706 if test -z "$lt_cv_path_MAGIC_CMD"; then
7707 if test -n "$ac_tool_prefix"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7709 $as_echo_n "checking for file... " >&6; }
7710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 case $MAGIC_CMD in
7714 [\\/*] | ?:[\\/]*)
7715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7716 ;;
7717 *)
7718 lt_save_MAGIC_CMD="$MAGIC_CMD"
7719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7721 for ac_dir in $ac_dummy; do
7722 IFS="$lt_save_ifs"
7723 test -z "$ac_dir" && ac_dir=.
7724 if test -f $ac_dir/file; then
7725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7726 if test -n "$file_magic_test_file"; then
7727 case $deplibs_check_method in
7728 "file_magic "*)
7729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7732 $EGREP "$file_magic_regex" > /dev/null; then
7733 :
7734 else
7735 cat <<_LT_EOF 1>&2
7736
7737 *** Warning: the command libtool uses to detect shared libraries,
7738 *** $file_magic_cmd, produces output that libtool cannot recognize.
7739 *** The result is that libtool may fail to recognize shared libraries
7740 *** as such. This will affect the creation of libtool libraries that
7741 *** depend on shared libraries, but programs linked with such libtool
7742 *** libraries will work regardless of this problem. Nevertheless, you
7743 *** may want to report the problem to your system manager and/or to
7744 *** bug-libtool@gnu.org
7745
7746 _LT_EOF
7747 fi ;;
7748 esac
7749 fi
7750 break
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 MAGIC_CMD="$lt_save_MAGIC_CMD"
7755 ;;
7756 esac
7757 fi
7758
7759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760 if test -n "$MAGIC_CMD"; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7762 $as_echo "$MAGIC_CMD" >&6; }
7763 else
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768
7769 else
7770 MAGIC_CMD=:
7771 fi
7772 fi
7773
7774 fi
7775 ;;
7776 esac
7777
7778 # Use C for the default configuration in the libtool script
7779
7780 lt_save_CC="$CC"
7781 ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786
7787
7788 # Source file extension for C test sources.
7789 ac_ext=c
7790
7791 # Object file extension for compiled C test sources.
7792 objext=o
7793 objext=$objext
7794
7795 # Code to be used in simple compile tests
7796 lt_simple_compile_test_code="int some_variable = 0;"
7797
7798 # Code to be used in simple link tests
7799 lt_simple_link_test_code='int main(){return(0);}'
7800
7801
7802
7803
7804
7805
7806
7807 # If no C compiler was specified, use CC.
7808 LTCC=${LTCC-"$CC"}
7809
7810 # If no C compiler flags were specified, use CFLAGS.
7811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7812
7813 # Allow CC to be a program name with arguments.
7814 compiler=$CC
7815
7816 # Save the default compiler, since it gets overwritten when the other
7817 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7818 compiler_DEFAULT=$CC
7819
7820 # save warnings/boilerplate of simple test code
7821 ac_outfile=conftest.$ac_objext
7822 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7824 _lt_compiler_boilerplate=`cat conftest.err`
7825 $RM conftest*
7826
7827 ac_outfile=conftest.$ac_objext
7828 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7830 _lt_linker_boilerplate=`cat conftest.err`
7831 $RM -r conftest*
7832
7833
7834 if test -n "$compiler"; then
7835
7836 lt_prog_compiler_no_builtin_flag=
7837
7838 if test "$GCC" = yes; then
7839 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7842 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7843 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 lt_cv_prog_compiler_rtti_exceptions=no
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7849 lt_compiler_flag="-fno-rtti -fno-exceptions"
7850 # Insert the option either (1) after the last *FLAGS variable, or
7851 # (2) before a word containing "conftest.", or (3) at the end.
7852 # Note that $ac_compile itself does not contain backslashes and begins
7853 # with a dollar sign (not a hyphen), so the echo should work correctly.
7854 # The option is referenced via a variable to avoid confusing sed.
7855 lt_compile=`echo "$ac_compile" | $SED \
7856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7858 -e 's:$: $lt_compiler_flag:'`
7859 (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
7860 (eval "$lt_compile" 2>conftest.err)
7861 ac_status=$?
7862 cat conftest.err >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 if (exit $ac_status) && test -s "$ac_outfile"; then
7865 # The compiler can only warn and ignore the option if not recognized
7866 # So say no if there are warnings other than the usual output.
7867 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7870 lt_cv_prog_compiler_rtti_exceptions=yes
7871 fi
7872 fi
7873 $RM conftest*
7874
7875 fi
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7877 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7878
7879 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7880 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7881 else
7882 :
7883 fi
7884
7885 fi
7886
7887
7888
7889
7890
7891
7892 lt_prog_compiler_wl=
7893 lt_prog_compiler_pic=
7894 lt_prog_compiler_static=
7895
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7897 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7898
7899 if test "$GCC" = yes; then
7900 lt_prog_compiler_wl='-Wl,'
7901 lt_prog_compiler_static='-static'
7902
7903 case $host_os in
7904 aix*)
7905 # All AIX code is PIC.
7906 if test "$host_cpu" = ia64; then
7907 # AIX 5 now supports IA64 processor
7908 lt_prog_compiler_static='-Bstatic'
7909 fi
7910 ;;
7911
7912 amigaos*)
7913 case $host_cpu in
7914 powerpc)
7915 # see comment about AmigaOS4 .so support
7916 lt_prog_compiler_pic='-fPIC'
7917 ;;
7918 m68k)
7919 # FIXME: we need at least 68020 code to build shared libraries, but
7920 # adding the `-m68020' flag to GCC prevents building anything better,
7921 # like `-m68040'.
7922 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7923 ;;
7924 esac
7925 ;;
7926
7927 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7928 # PIC is the default for these OSes.
7929 ;;
7930
7931 mingw* | cygwin* | pw32* | os2* | cegcc*)
7932 # This hack is so that the source file can tell whether it is being
7933 # built for inclusion in a dll (and should export symbols for example).
7934 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7935 # (--disable-auto-import) libraries
7936 lt_prog_compiler_pic='-DDLL_EXPORT'
7937 ;;
7938
7939 darwin* | rhapsody*)
7940 # PIC is the default on this platform
7941 # Common symbols not allowed in MH_DYLIB files
7942 lt_prog_compiler_pic='-fno-common'
7943 ;;
7944
7945 hpux*)
7946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7948 # sets the default TLS model and affects inlining.
7949 case $host_cpu in
7950 hppa*64*)
7951 # +Z the default
7952 ;;
7953 *)
7954 lt_prog_compiler_pic='-fPIC'
7955 ;;
7956 esac
7957 ;;
7958
7959 interix[3-9]*)
7960 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7961 # Instead, we relocate shared libraries at runtime.
7962 ;;
7963
7964 msdosdjgpp*)
7965 # Just because we use GCC doesn't mean we suddenly get shared libraries
7966 # on systems that don't support them.
7967 lt_prog_compiler_can_build_shared=no
7968 enable_shared=no
7969 ;;
7970
7971 *nto* | *qnx*)
7972 # QNX uses GNU C++, but need to define -shared option too, otherwise
7973 # it will coredump.
7974 lt_prog_compiler_pic='-fPIC -shared'
7975 ;;
7976
7977 sysv4*MP*)
7978 if test -d /usr/nec; then
7979 lt_prog_compiler_pic=-Kconform_pic
7980 fi
7981 ;;
7982
7983 *)
7984 lt_prog_compiler_pic='-fPIC'
7985 ;;
7986 esac
7987 else
7988 # PORTME Check for flag to pass linker flags through the system compiler.
7989 case $host_os in
7990 aix*)
7991 lt_prog_compiler_wl='-Wl,'
7992 if test "$host_cpu" = ia64; then
7993 # AIX 5 now supports IA64 processor
7994 lt_prog_compiler_static='-Bstatic'
7995 else
7996 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7997 fi
7998 ;;
7999
8000 mingw* | cygwin* | pw32* | os2* | cegcc*)
8001 # This hack is so that the source file can tell whether it is being
8002 # built for inclusion in a dll (and should export symbols for example).
8003 lt_prog_compiler_pic='-DDLL_EXPORT'
8004 ;;
8005
8006 hpux9* | hpux10* | hpux11*)
8007 lt_prog_compiler_wl='-Wl,'
8008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8009 # not for PA HP-UX.
8010 case $host_cpu in
8011 hppa*64*|ia64*)
8012 # +Z the default
8013 ;;
8014 *)
8015 lt_prog_compiler_pic='+Z'
8016 ;;
8017 esac
8018 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8019 lt_prog_compiler_static='${wl}-a ${wl}archive'
8020 ;;
8021
8022 irix5* | irix6* | nonstopux*)
8023 lt_prog_compiler_wl='-Wl,'
8024 # PIC (with -KPIC) is the default.
8025 lt_prog_compiler_static='-non_shared'
8026 ;;
8027
8028 linux* | k*bsd*-gnu)
8029 case $cc_basename in
8030 # old Intel for x86_64 which still supported -KPIC.
8031 ecc*)
8032 lt_prog_compiler_wl='-Wl,'
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-static'
8035 ;;
8036 # icc used to be incompatible with GCC.
8037 # ICC 10 doesn't accept -KPIC any more.
8038 icc* | ifort*)
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-fPIC'
8041 lt_prog_compiler_static='-static'
8042 ;;
8043 # Lahey Fortran 8.1.
8044 lf95*)
8045 lt_prog_compiler_wl='-Wl,'
8046 lt_prog_compiler_pic='--shared'
8047 lt_prog_compiler_static='--static'
8048 ;;
8049 pgcc* | pgf77* | pgf90* | pgf95*)
8050 # Portland Group compilers (*not* the Pentium gcc compiler,
8051 # which looks to be a dead project)
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-fpic'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056 ccc*)
8057 lt_prog_compiler_wl='-Wl,'
8058 # All Alpha code is PIC.
8059 lt_prog_compiler_static='-non_shared'
8060 ;;
8061 xl*)
8062 # IBM XL C 8.0/Fortran 10.1 on PPC
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-qpic'
8065 lt_prog_compiler_static='-qstaticlink'
8066 ;;
8067 *)
8068 case `$CC -V 2>&1 | sed 5q` in
8069 *Sun\ C*)
8070 # Sun C 5.9
8071 lt_prog_compiler_pic='-KPIC'
8072 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_wl='-Wl,'
8074 ;;
8075 *Sun\ F*)
8076 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8077 lt_prog_compiler_pic='-KPIC'
8078 lt_prog_compiler_static='-Bstatic'
8079 lt_prog_compiler_wl=''
8080 ;;
8081 esac
8082 ;;
8083 esac
8084 ;;
8085
8086 newsos6)
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-Bstatic'
8089 ;;
8090
8091 *nto* | *qnx*)
8092 # QNX uses GNU C++, but need to define -shared option too, otherwise
8093 # it will coredump.
8094 lt_prog_compiler_pic='-fPIC -shared'
8095 ;;
8096
8097 osf3* | osf4* | osf5*)
8098 lt_prog_compiler_wl='-Wl,'
8099 # All OSF/1 code is PIC.
8100 lt_prog_compiler_static='-non_shared'
8101 ;;
8102
8103 rdos*)
8104 lt_prog_compiler_static='-non_shared'
8105 ;;
8106
8107 solaris*)
8108 lt_prog_compiler_pic='-KPIC'
8109 lt_prog_compiler_static='-Bstatic'
8110 case $cc_basename in
8111 f77* | f90* | f95*)
8112 lt_prog_compiler_wl='-Qoption ld ';;
8113 *)
8114 lt_prog_compiler_wl='-Wl,';;
8115 esac
8116 ;;
8117
8118 sunos4*)
8119 lt_prog_compiler_wl='-Qoption ld '
8120 lt_prog_compiler_pic='-PIC'
8121 lt_prog_compiler_static='-Bstatic'
8122 ;;
8123
8124 sysv4 | sysv4.2uw2* | sysv4.3*)
8125 lt_prog_compiler_wl='-Wl,'
8126 lt_prog_compiler_pic='-KPIC'
8127 lt_prog_compiler_static='-Bstatic'
8128 ;;
8129
8130 sysv4*MP*)
8131 if test -d /usr/nec ;then
8132 lt_prog_compiler_pic='-Kconform_pic'
8133 lt_prog_compiler_static='-Bstatic'
8134 fi
8135 ;;
8136
8137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8138 lt_prog_compiler_wl='-Wl,'
8139 lt_prog_compiler_pic='-KPIC'
8140 lt_prog_compiler_static='-Bstatic'
8141 ;;
8142
8143 unicos*)
8144 lt_prog_compiler_wl='-Wl,'
8145 lt_prog_compiler_can_build_shared=no
8146 ;;
8147
8148 uts4*)
8149 lt_prog_compiler_pic='-pic'
8150 lt_prog_compiler_static='-Bstatic'
8151 ;;
8152
8153 *)
8154 lt_prog_compiler_can_build_shared=no
8155 ;;
8156 esac
8157 fi
8158
8159 case $host_os in
8160 # For platforms which do not support PIC, -DPIC is meaningless:
8161 *djgpp*)
8162 lt_prog_compiler_pic=
8163 ;;
8164 *)
8165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8166 ;;
8167 esac
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8169 $as_echo "$lt_prog_compiler_pic" >&6; }
8170
8171
8172
8173
8174
8175
8176 #
8177 # Check to make sure the PIC flag actually works.
8178 #
8179 if test -n "$lt_prog_compiler_pic"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8181 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8182 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 lt_cv_prog_compiler_pic_works=no
8186 ac_outfile=conftest.$ac_objext
8187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8188 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8189 # Insert the option either (1) after the last *FLAGS variable, or
8190 # (2) before a word containing "conftest.", or (3) at the end.
8191 # Note that $ac_compile itself does not contain backslashes and begins
8192 # with a dollar sign (not a hyphen), so the echo should work correctly.
8193 # The option is referenced via a variable to avoid confusing sed.
8194 lt_compile=`echo "$ac_compile" | $SED \
8195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197 -e 's:$: $lt_compiler_flag:'`
8198 (eval echo "\"\$as_me:8198: $lt_compile\"" >&5)
8199 (eval "$lt_compile" 2>conftest.err)
8200 ac_status=$?
8201 cat conftest.err >&5
8202 echo "$as_me:8202: \$? = $ac_status" >&5
8203 if (exit $ac_status) && test -s "$ac_outfile"; then
8204 # The compiler can only warn and ignore the option if not recognized
8205 # So say no if there are warnings other than the usual output.
8206 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8209 lt_cv_prog_compiler_pic_works=yes
8210 fi
8211 fi
8212 $RM conftest*
8213
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8216 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8217
8218 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8219 case $lt_prog_compiler_pic in
8220 "" | " "*) ;;
8221 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8222 esac
8223 else
8224 lt_prog_compiler_pic=
8225 lt_prog_compiler_can_build_shared=no
8226 fi
8227
8228 fi
8229
8230
8231
8232
8233
8234
8235 #
8236 # Check to make sure the static flag actually works.
8237 #
8238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8240 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8241 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8243 else
8244 lt_cv_prog_compiler_static_works=no
8245 save_LDFLAGS="$LDFLAGS"
8246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8247 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8249 # The linker can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 if test -s conftest.err; then
8252 # Append any errors to the config.log.
8253 cat conftest.err 1>&5
8254 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256 if diff conftest.exp conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_static_works=yes
8258 fi
8259 else
8260 lt_cv_prog_compiler_static_works=yes
8261 fi
8262 fi
8263 $RM -r conftest*
8264 LDFLAGS="$save_LDFLAGS"
8265
8266 fi
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8268 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8269
8270 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8271 :
8272 else
8273 lt_prog_compiler_static=
8274 fi
8275
8276
8277
8278
8279
8280
8281
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8284 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 lt_cv_prog_compiler_c_o=no
8288 $RM -r conftest 2>/dev/null
8289 mkdir conftest
8290 cd conftest
8291 mkdir out
8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8293
8294 lt_compiler_flag="-o out/conftest2.$ac_objext"
8295 # Insert the option either (1) after the last *FLAGS variable, or
8296 # (2) before a word containing "conftest.", or (3) at the end.
8297 # Note that $ac_compile itself does not contain backslashes and begins
8298 # with a dollar sign (not a hyphen), so the echo should work correctly.
8299 lt_compile=`echo "$ac_compile" | $SED \
8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8302 -e 's:$: $lt_compiler_flag:'`
8303 (eval echo "\"\$as_me:8303: $lt_compile\"" >&5)
8304 (eval "$lt_compile" 2>out/conftest.err)
8305 ac_status=$?
8306 cat out/conftest.err >&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8309 then
8310 # The compiler can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_c_o=yes
8316 fi
8317 fi
8318 chmod u+w . 2>&5
8319 $RM conftest*
8320 # SGI C++ compiler will create directory out/ii_files/ for
8321 # template instantiation
8322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8323 $RM out/* && rmdir out
8324 cd ..
8325 $RM -r conftest
8326 $RM conftest*
8327
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8331
8332
8333
8334
8335
8336
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 lt_cv_prog_compiler_c_o=no
8343 $RM -r conftest 2>/dev/null
8344 mkdir conftest
8345 cd conftest
8346 mkdir out
8347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349 lt_compiler_flag="-o out/conftest2.$ac_objext"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 lt_compile=`echo "$ac_compile" | $SED \
8355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357 -e 's:$: $lt_compiler_flag:'`
8358 (eval echo "\"\$as_me:8358: $lt_compile\"" >&5)
8359 (eval "$lt_compile" 2>out/conftest.err)
8360 ac_status=$?
8361 cat out/conftest.err >&5
8362 echo "$as_me:8362: \$? = $ac_status" >&5
8363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364 then
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings
8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_c_o=yes
8371 fi
8372 fi
8373 chmod u+w . 2>&5
8374 $RM conftest*
8375 # SGI C++ compiler will create directory out/ii_files/ for
8376 # template instantiation
8377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378 $RM out/* && rmdir out
8379 cd ..
8380 $RM -r conftest
8381 $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390 hard_links="nottested"
8391 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8392 # do not overwrite the value of need_locks provided by the user
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8394 $as_echo_n "checking if we can lock with hard links... " >&6; }
8395 hard_links=yes
8396 $RM conftest*
8397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 touch conftest.a
8399 ln conftest.a conftest.b 2>&5 || hard_links=no
8400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8402 $as_echo "$hard_links" >&6; }
8403 if test "$hard_links" = no; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8406 need_locks=warn
8407 fi
8408 else
8409 need_locks=no
8410 fi
8411
8412
8413
8414
8415
8416
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8419
8420 runpath_var=
8421 allow_undefined_flag=
8422 always_export_symbols=no
8423 archive_cmds=
8424 archive_expsym_cmds=
8425 compiler_needs_object=no
8426 enable_shared_with_static_runtimes=no
8427 export_dynamic_flag_spec=
8428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8429 hardcode_automatic=no
8430 hardcode_direct=no
8431 hardcode_direct_absolute=no
8432 hardcode_libdir_flag_spec=
8433 hardcode_libdir_flag_spec_ld=
8434 hardcode_libdir_separator=
8435 hardcode_minus_L=no
8436 hardcode_shlibpath_var=unsupported
8437 inherit_rpath=no
8438 link_all_deplibs=unknown
8439 module_cmds=
8440 module_expsym_cmds=
8441 old_archive_from_new_cmds=
8442 old_archive_from_expsyms_cmds=
8443 thread_safe_flag_spec=
8444 whole_archive_flag_spec=
8445 # include_expsyms should be a list of space-separated symbols to be *always*
8446 # included in the symbol list
8447 include_expsyms=
8448 # exclude_expsyms can be an extended regexp of symbols to exclude
8449 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8450 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8451 # as well as any symbol that contains `d'.
8452 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8453 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8454 # platforms (ab)use it in PIC code, but their linkers get confused if
8455 # the symbol is explicitly referenced. Since portable code cannot
8456 # rely on this symbol name, it's probably fine to never include it in
8457 # preloaded symbol tables.
8458 # Exclude shared library initialization/finalization symbols.
8459 extract_expsyms_cmds=
8460
8461 case $host_os in
8462 cygwin* | mingw* | pw32* | cegcc*)
8463 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8464 # When not using gcc, we currently assume that we are using
8465 # Microsoft Visual C++.
8466 if test "$GCC" != yes; then
8467 with_gnu_ld=no
8468 fi
8469 ;;
8470 interix*)
8471 # we just hope/assume this is gcc and not c89 (= MSVC++)
8472 with_gnu_ld=yes
8473 ;;
8474 openbsd*)
8475 with_gnu_ld=no
8476 ;;
8477 esac
8478
8479 ld_shlibs=yes
8480 if test "$with_gnu_ld" = yes; then
8481 # If archive_cmds runs LD, not CC, wlarc should be empty
8482 wlarc='${wl}'
8483
8484 # Set some defaults for GNU ld with shared library support. These
8485 # are reset later if shared libraries are not supported. Putting them
8486 # here allows them to be overridden if necessary.
8487 runpath_var=LD_RUN_PATH
8488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8489 export_dynamic_flag_spec='${wl}--export-dynamic'
8490 # ancient GNU ld didn't support --whole-archive et. al.
8491 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8492 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8493 else
8494 whole_archive_flag_spec=
8495 fi
8496 supports_anon_versioning=no
8497 case `$LD -v 2>&1` in
8498 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8499 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8500 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8501 *\ 2.11.*) ;; # other 2.11 versions
8502 *) supports_anon_versioning=yes ;;
8503 esac
8504
8505 # See if GNU ld supports shared libraries.
8506 case $host_os in
8507 aix[3-9]*)
8508 # On AIX/PPC, the GNU linker is very broken
8509 if test "$host_cpu" != ia64; then
8510 ld_shlibs=no
8511 cat <<_LT_EOF 1>&2
8512
8513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8514 *** to be unable to reliably create shared libraries on AIX.
8515 *** Therefore, libtool is disabling shared libraries support. If you
8516 *** really care for shared libraries, you may want to modify your PATH
8517 *** so that a non-GNU linker is found, and then restart.
8518
8519 _LT_EOF
8520 fi
8521 ;;
8522
8523 amigaos*)
8524 case $host_cpu in
8525 powerpc)
8526 # see comment about AmigaOS4 .so support
8527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 archive_expsym_cmds=''
8529 ;;
8530 m68k)
8531 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)'
8532 hardcode_libdir_flag_spec='-L$libdir'
8533 hardcode_minus_L=yes
8534 ;;
8535 esac
8536 ;;
8537
8538 beos*)
8539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8540 allow_undefined_flag=unsupported
8541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8542 # support --undefined. This deserves some investigation. FIXME
8543 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8544 else
8545 ld_shlibs=no
8546 fi
8547 ;;
8548
8549 cygwin* | mingw* | pw32* | cegcc*)
8550 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8551 # as there is no search path for DLLs.
8552 hardcode_libdir_flag_spec='-L$libdir'
8553 allow_undefined_flag=unsupported
8554 always_export_symbols=no
8555 enable_shared_with_static_runtimes=yes
8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8557
8558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8560 # If the export-symbols file already is a .def file (1st line
8561 # is EXPORTS), use it as is; otherwise, prepend...
8562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8563 cp $export_symbols $output_objdir/$soname.def;
8564 else
8565 echo EXPORTS > $output_objdir/$soname.def;
8566 cat $export_symbols >> $output_objdir/$soname.def;
8567 fi~
8568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8569 else
8570 ld_shlibs=no
8571 fi
8572 ;;
8573
8574 interix[3-9]*)
8575 hardcode_direct=no
8576 hardcode_shlibpath_var=no
8577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8578 export_dynamic_flag_spec='${wl}-E'
8579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8580 # Instead, shared libraries are loaded at an image base (0x10000000 by
8581 # default) and relocated if they conflict, which is a slow very memory
8582 # consuming and fragmenting process. To avoid this, we pick a random,
8583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8585 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8586 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'
8587 ;;
8588
8589 gnu* | linux* | tpf* | k*bsd*-gnu)
8590 tmp_diet=no
8591 if test "$host_os" = linux-dietlibc; then
8592 case $cc_basename in
8593 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8594 esac
8595 fi
8596 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8597 && test "$tmp_diet" = no
8598 then
8599 tmp_addflag=
8600 tmp_sharedflag='-shared'
8601 case $cc_basename,$host_cpu in
8602 pgcc*) # Portland Group C compiler
8603 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'
8604 tmp_addflag=' $pic_flag'
8605 ;;
8606 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8607 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'
8608 tmp_addflag=' $pic_flag -Mnomain' ;;
8609 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8610 tmp_addflag=' -i_dynamic' ;;
8611 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8612 tmp_addflag=' -i_dynamic -nofor_main' ;;
8613 ifc* | ifort*) # Intel Fortran compiler
8614 tmp_addflag=' -nofor_main' ;;
8615 lf95*) # Lahey Fortran 8.1
8616 whole_archive_flag_spec=
8617 tmp_sharedflag='--shared' ;;
8618 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8619 tmp_sharedflag='-qmkshrobj'
8620 tmp_addflag= ;;
8621 esac
8622 case `$CC -V 2>&1 | sed 5q` in
8623 *Sun\ C*) # Sun C 5.9
8624 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'
8625 compiler_needs_object=yes
8626 tmp_sharedflag='-G' ;;
8627 *Sun\ F*) # Sun Fortran 8.3
8628 tmp_sharedflag='-G' ;;
8629 esac
8630 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631
8632 if test "x$supports_anon_versioning" = xyes; then
8633 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8634 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8635 echo "local: *; };" >> $output_objdir/$libname.ver~
8636 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8637 fi
8638
8639 case $cc_basename in
8640 xlf*)
8641 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8642 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8643 hardcode_libdir_flag_spec=
8644 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8645 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8646 if test "x$supports_anon_versioning" = xyes; then
8647 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8648 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8649 echo "local: *; };" >> $output_objdir/$libname.ver~
8650 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8651 fi
8652 ;;
8653 esac
8654 else
8655 ld_shlibs=no
8656 fi
8657 ;;
8658
8659 netbsd*)
8660 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8661 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8662 wlarc=
8663 else
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8666 fi
8667 ;;
8668
8669 solaris*)
8670 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8671 ld_shlibs=no
8672 cat <<_LT_EOF 1>&2
8673
8674 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8675 *** create shared libraries on Solaris systems. Therefore, libtool
8676 *** is disabling shared libraries support. We urge you to upgrade GNU
8677 *** binutils to release 2.9.1 or newer. Another option is to modify
8678 *** your PATH or compiler configuration so that the native linker is
8679 *** used, and then restart.
8680
8681 _LT_EOF
8682 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8683 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685 else
8686 ld_shlibs=no
8687 fi
8688 ;;
8689
8690 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8691 case `$LD -v 2>&1` in
8692 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8693 ld_shlibs=no
8694 cat <<_LT_EOF 1>&2
8695
8696 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8697 *** reliably create shared libraries on SCO systems. Therefore, libtool
8698 *** is disabling shared libraries support. We urge you to upgrade GNU
8699 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8700 *** your PATH or compiler configuration so that the native linker is
8701 *** used, and then restart.
8702
8703 _LT_EOF
8704 ;;
8705 *)
8706 # For security reasons, it is highly recommended that you always
8707 # use absolute paths for naming shared libraries, and exclude the
8708 # DT_RUNPATH tag from executables and libraries. But doing so
8709 # requires that you compile everything twice, which is a pain.
8710 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8714 else
8715 ld_shlibs=no
8716 fi
8717 ;;
8718 esac
8719 ;;
8720
8721 sunos4*)
8722 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723 wlarc=
8724 hardcode_direct=yes
8725 hardcode_shlibpath_var=no
8726 ;;
8727
8728 *)
8729 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 else
8733 ld_shlibs=no
8734 fi
8735 ;;
8736 esac
8737
8738 if test "$ld_shlibs" = no; then
8739 runpath_var=
8740 hardcode_libdir_flag_spec=
8741 export_dynamic_flag_spec=
8742 whole_archive_flag_spec=
8743 fi
8744 else
8745 # PORTME fill in a description of your system's linker (not GNU ld)
8746 case $host_os in
8747 aix3*)
8748 allow_undefined_flag=unsupported
8749 always_export_symbols=yes
8750 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'
8751 # Note: this linker hardcodes the directories in LIBPATH if there
8752 # are no directories specified by -L.
8753 hardcode_minus_L=yes
8754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8755 # Neither direct hardcoding nor static linking is supported with a
8756 # broken collect2.
8757 hardcode_direct=unsupported
8758 fi
8759 ;;
8760
8761 aix[4-9]*)
8762 if test "$host_cpu" = ia64; then
8763 # On IA64, the linker does run time linking by default, so we don't
8764 # have to do anything special.
8765 aix_use_runtimelinking=no
8766 exp_sym_flag='-Bexport'
8767 no_entry_flag=""
8768 else
8769 # If we're using GNU nm, then we don't want the "-C" option.
8770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8772 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'
8773 else
8774 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'
8775 fi
8776 aix_use_runtimelinking=no
8777
8778 # Test if we are trying to use run time linking or normal
8779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8780 # need to do runtime linking.
8781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8782 for ld_flag in $LDFLAGS; do
8783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8784 aix_use_runtimelinking=yes
8785 break
8786 fi
8787 done
8788 ;;
8789 esac
8790
8791 exp_sym_flag='-bexport'
8792 no_entry_flag='-bnoentry'
8793 fi
8794
8795 # When large executables or shared objects are built, AIX ld can
8796 # have problems creating the table of contents. If linking a library
8797 # or program results in "error TOC overflow" add -mminimal-toc to
8798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8800
8801 archive_cmds=''
8802 hardcode_direct=yes
8803 hardcode_direct_absolute=yes
8804 hardcode_libdir_separator=':'
8805 link_all_deplibs=yes
8806 file_list_spec='${wl}-f,'
8807
8808 if test "$GCC" = yes; then
8809 case $host_os in aix4.[012]|aix4.[012].*)
8810 # We only want to do this on AIX 4.2 and lower, the check
8811 # below for broken collect2 doesn't work under 4.3+
8812 collect2name=`${CC} -print-prog-name=collect2`
8813 if test -f "$collect2name" &&
8814 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8815 then
8816 # We have reworked collect2
8817 :
8818 else
8819 # We have old collect2
8820 hardcode_direct=unsupported
8821 # It fails to find uninstalled libraries when the uninstalled
8822 # path is not listed in the libpath. Setting hardcode_minus_L
8823 # to unsupported forces relinking
8824 hardcode_minus_L=yes
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_libdir_separator=
8827 fi
8828 ;;
8829 esac
8830 shared_flag='-shared'
8831 if test "$aix_use_runtimelinking" = yes; then
8832 shared_flag="$shared_flag "'${wl}-G'
8833 fi
8834 link_all_deplibs=no
8835 else
8836 # not using gcc
8837 if test "$host_cpu" = ia64; then
8838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8839 # chokes on -Wl,-G. The following line is correct:
8840 shared_flag='-G'
8841 else
8842 if test "$aix_use_runtimelinking" = yes; then
8843 shared_flag='${wl}-G'
8844 else
8845 shared_flag='${wl}-bM:SRE'
8846 fi
8847 fi
8848 fi
8849
8850 export_dynamic_flag_spec='${wl}-bexpall'
8851 # It seems that -bexpall does not export symbols beginning with
8852 # underscore (_), so it is better to generate a list of symbols to export.
8853 always_export_symbols=yes
8854 if test "$aix_use_runtimelinking" = yes; then
8855 # Warning - without using the other runtime loading flags (-brtl),
8856 # -berok will link without error, but may produce a broken library.
8857 allow_undefined_flag='-berok'
8858 # Determine the default libpath from the value encoded in an
8859 # empty executable.
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862
8863 int
8864 main ()
8865 {
8866
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 if ac_fn_c_try_link "$LINENO"; then :
8872
8873 lt_aix_libpath_sed='
8874 /Import File Strings/,/^$/ {
8875 /^0/ {
8876 s/^0 *\(.*\)$/\1/
8877 p
8878 }
8879 }'
8880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881 # Check for a 64-bit object if we didn't find anything.
8882 if test -z "$aix_libpath"; then
8883 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8884 fi
8885 fi
8886 rm -f core conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8889
8890 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8891 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"
8892 else
8893 if test "$host_cpu" = ia64; then
8894 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8895 allow_undefined_flag="-z nodefs"
8896 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"
8897 else
8898 # Determine the default libpath from the value encoded in an
8899 # empty executable.
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902
8903 int
8904 main ()
8905 {
8906
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912
8913 lt_aix_libpath_sed='
8914 /Import File Strings/,/^$/ {
8915 /^0/ {
8916 s/^0 *\(.*\)$/\1/
8917 p
8918 }
8919 }'
8920 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8921 # Check for a 64-bit object if we didn't find anything.
8922 if test -z "$aix_libpath"; then
8923 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8924 fi
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext conftest.$ac_ext
8928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8929
8930 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8931 # Warning - without using the other run time loading flags,
8932 # -berok will link without error, but may produce a broken library.
8933 no_undefined_flag=' ${wl}-bernotok'
8934 allow_undefined_flag=' ${wl}-berok'
8935 # Exported symbols can be pulled into shared objects from archives
8936 whole_archive_flag_spec='$convenience'
8937 archive_cmds_need_lc=yes
8938 # This is similar to how AIX traditionally builds its shared libraries.
8939 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'
8940 fi
8941 fi
8942 ;;
8943
8944 amigaos*)
8945 case $host_cpu in
8946 powerpc)
8947 # see comment about AmigaOS4 .so support
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 archive_expsym_cmds=''
8950 ;;
8951 m68k)
8952 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)'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_minus_L=yes
8955 ;;
8956 esac
8957 ;;
8958
8959 bsdi[45]*)
8960 export_dynamic_flag_spec=-rdynamic
8961 ;;
8962
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 # hardcode_libdir_flag_spec is actually meaningless, as there is
8967 # no search path for DLLs.
8968 hardcode_libdir_flag_spec=' '
8969 allow_undefined_flag=unsupported
8970 # Tell ltmain to make .lib files, not .a files.
8971 libext=lib
8972 # Tell ltmain to make .dll files, not .so files.
8973 shrext_cmds=".dll"
8974 # FIXME: Setting linknames here is a bad hack.
8975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8976 # The linker will automatically build a .lib file if we build a DLL.
8977 old_archive_from_new_cmds='true'
8978 # FIXME: Should let the user specify the lib program.
8979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8980 fix_srcfile_path='`cygpath -w "$srcfile"`'
8981 enable_shared_with_static_runtimes=yes
8982 ;;
8983
8984 darwin* | rhapsody*)
8985
8986
8987 archive_cmds_need_lc=no
8988 hardcode_direct=no
8989 hardcode_automatic=yes
8990 hardcode_shlibpath_var=unsupported
8991 whole_archive_flag_spec=''
8992 link_all_deplibs=yes
8993 allow_undefined_flag="$_lt_dar_allow_undefined"
8994 case $cc_basename in
8995 ifort*) _lt_dar_can_shared=yes ;;
8996 *) _lt_dar_can_shared=$GCC ;;
8997 esac
8998 if test "$_lt_dar_can_shared" = "yes"; then
8999 output_verbose_link_cmd=echo
9000 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9001 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9002 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}"
9003 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}"
9004
9005 else
9006 ld_shlibs=no
9007 fi
9008
9009 ;;
9010
9011 dgux*)
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_libdir_flag_spec='-L$libdir'
9014 hardcode_shlibpath_var=no
9015 ;;
9016
9017 freebsd1*)
9018 ld_shlibs=no
9019 ;;
9020
9021 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9022 # support. Future versions do this automatically, but an explicit c++rt0.o
9023 # does not break anything, and helps significantly (at the cost of a little
9024 # extra space).
9025 freebsd2.2*)
9026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9027 hardcode_libdir_flag_spec='-R$libdir'
9028 hardcode_direct=yes
9029 hardcode_shlibpath_var=no
9030 ;;
9031
9032 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9033 freebsd2*)
9034 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9035 hardcode_direct=yes
9036 hardcode_minus_L=yes
9037 hardcode_shlibpath_var=no
9038 ;;
9039
9040 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9041 freebsd* | dragonfly*)
9042 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9043 hardcode_libdir_flag_spec='-R$libdir'
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9046 ;;
9047
9048 hpux9*)
9049 if test "$GCC" = yes; then
9050 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'
9051 else
9052 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'
9053 fi
9054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9055 hardcode_libdir_separator=:
9056 hardcode_direct=yes
9057
9058 # hardcode_minus_L: Not really in the search PATH,
9059 # but as the default location of the library.
9060 hardcode_minus_L=yes
9061 export_dynamic_flag_spec='${wl}-E'
9062 ;;
9063
9064 hpux10*)
9065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9066 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9067 else
9068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9069 fi
9070 if test "$with_gnu_ld" = no; then
9071 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9072 hardcode_libdir_flag_spec_ld='+b $libdir'
9073 hardcode_libdir_separator=:
9074 hardcode_direct=yes
9075 hardcode_direct_absolute=yes
9076 export_dynamic_flag_spec='${wl}-E'
9077 # hardcode_minus_L: Not really in the search PATH,
9078 # but as the default location of the library.
9079 hardcode_minus_L=yes
9080 fi
9081 ;;
9082
9083 hpux11*)
9084 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9085 case $host_cpu in
9086 hppa*64*)
9087 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9088 ;;
9089 ia64*)
9090 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9091 ;;
9092 *)
9093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9094 ;;
9095 esac
9096 else
9097 case $host_cpu in
9098 hppa*64*)
9099 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9100 ;;
9101 ia64*)
9102 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9103 ;;
9104 *)
9105 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9106 ;;
9107 esac
9108 fi
9109 if test "$with_gnu_ld" = no; then
9110 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9111 hardcode_libdir_separator=:
9112
9113 case $host_cpu in
9114 hppa*64*|ia64*)
9115 hardcode_direct=no
9116 hardcode_shlibpath_var=no
9117 ;;
9118 *)
9119 hardcode_direct=yes
9120 hardcode_direct_absolute=yes
9121 export_dynamic_flag_spec='${wl}-E'
9122
9123 # hardcode_minus_L: Not really in the search PATH,
9124 # but as the default location of the library.
9125 hardcode_minus_L=yes
9126 ;;
9127 esac
9128 fi
9129 ;;
9130
9131 irix5* | irix6* | nonstopux*)
9132 if test "$GCC" = yes; then
9133 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'
9134 # Try to use the -exported_symbol ld option, if it does not
9135 # work, assume that -exports_file does not work either and
9136 # implicitly export all symbols.
9137 save_LDFLAGS="$LDFLAGS"
9138 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int foo(void) {}
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"; then :
9144 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'
9145
9146 fi
9147 rm -f core conftest.err conftest.$ac_objext \
9148 conftest$ac_exeext conftest.$ac_ext
9149 LDFLAGS="$save_LDFLAGS"
9150 else
9151 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'
9152 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'
9153 fi
9154 archive_cmds_need_lc='no'
9155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156 hardcode_libdir_separator=:
9157 inherit_rpath=yes
9158 link_all_deplibs=yes
9159 ;;
9160
9161 netbsd*)
9162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9164 else
9165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9166 fi
9167 hardcode_libdir_flag_spec='-R$libdir'
9168 hardcode_direct=yes
9169 hardcode_shlibpath_var=no
9170 ;;
9171
9172 newsos6)
9173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174 hardcode_direct=yes
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 hardcode_libdir_separator=:
9177 hardcode_shlibpath_var=no
9178 ;;
9179
9180 *nto* | *qnx*)
9181 ;;
9182
9183 openbsd*)
9184 if test -f /usr/libexec/ld.so; then
9185 hardcode_direct=yes
9186 hardcode_shlibpath_var=no
9187 hardcode_direct_absolute=yes
9188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9191 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9192 export_dynamic_flag_spec='${wl}-E'
9193 else
9194 case $host_os in
9195 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197 hardcode_libdir_flag_spec='-R$libdir'
9198 ;;
9199 *)
9200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202 ;;
9203 esac
9204 fi
9205 else
9206 ld_shlibs=no
9207 fi
9208 ;;
9209
9210 os2*)
9211 hardcode_libdir_flag_spec='-L$libdir'
9212 hardcode_minus_L=yes
9213 allow_undefined_flag=unsupported
9214 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'
9215 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9216 ;;
9217
9218 osf3*)
9219 if test "$GCC" = yes; then
9220 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9221 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'
9222 else
9223 allow_undefined_flag=' -expect_unresolved \*'
9224 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'
9225 fi
9226 archive_cmds_need_lc='no'
9227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228 hardcode_libdir_separator=:
9229 ;;
9230
9231 osf4* | osf5*) # as osf3* with the addition of -msym flag
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 else
9237 allow_undefined_flag=' -expect_unresolved \*'
9238 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'
9239 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~
9240 $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'
9241
9242 # Both c and cxx compiler support -rpath directly
9243 hardcode_libdir_flag_spec='-rpath $libdir'
9244 fi
9245 archive_cmds_need_lc='no'
9246 hardcode_libdir_separator=:
9247 ;;
9248
9249 solaris*)
9250 no_undefined_flag=' -z defs'
9251 if test "$GCC" = yes; then
9252 wlarc='${wl}'
9253 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9255 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9256 else
9257 case `$CC -V 2>&1` in
9258 *"Compilers 5.0"*)
9259 wlarc=''
9260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9263 ;;
9264 *)
9265 wlarc='${wl}'
9266 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269 ;;
9270 esac
9271 fi
9272 hardcode_libdir_flag_spec='-R$libdir'
9273 hardcode_shlibpath_var=no
9274 case $host_os in
9275 solaris2.[0-5] | solaris2.[0-5].*) ;;
9276 *)
9277 # The compiler driver will combine and reorder linker options,
9278 # but understands `-z linker_flag'. GCC discards it without `$wl',
9279 # but is careful enough not to reorder.
9280 # Supported since Solaris 2.6 (maybe 2.5.1?)
9281 if test "$GCC" = yes; then
9282 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9283 else
9284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9285 fi
9286 ;;
9287 esac
9288 link_all_deplibs=yes
9289 ;;
9290
9291 sunos4*)
9292 if test "x$host_vendor" = xsequent; then
9293 # Use $CC to link under sequent, because it throws in some extra .o
9294 # files that make .init and .fini sections work.
9295 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9296 else
9297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9298 fi
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_direct=yes
9301 hardcode_minus_L=yes
9302 hardcode_shlibpath_var=no
9303 ;;
9304
9305 sysv4)
9306 case $host_vendor in
9307 sni)
9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309 hardcode_direct=yes # is this really true???
9310 ;;
9311 siemens)
9312 ## LD is ld it makes a PLAMLIB
9313 ## CC just makes a GrossModule.
9314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9315 reload_cmds='$CC -r -o $output$reload_objs'
9316 hardcode_direct=no
9317 ;;
9318 motorola)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321 ;;
9322 esac
9323 runpath_var='LD_RUN_PATH'
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 sysv4.3*)
9328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 hardcode_shlibpath_var=no
9330 export_dynamic_flag_spec='-Bexport'
9331 ;;
9332
9333 sysv4*MP*)
9334 if test -d /usr/nec; then
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_shlibpath_var=no
9337 runpath_var=LD_RUN_PATH
9338 hardcode_runpath_var=yes
9339 ld_shlibs=yes
9340 fi
9341 ;;
9342
9343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9344 no_undefined_flag='${wl}-z,text'
9345 archive_cmds_need_lc=no
9346 hardcode_shlibpath_var=no
9347 runpath_var='LD_RUN_PATH'
9348
9349 if test "$GCC" = yes; then
9350 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 else
9353 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 fi
9356 ;;
9357
9358 sysv5* | sco3.2v5* | sco5v6*)
9359 # Note: We can NOT use -z defs as we might desire, because we do not
9360 # link with -lc, and that would cause any symbols used from libc to
9361 # always be unresolved, which means just about no library would
9362 # ever link correctly. If we're not using GNU ld we use -z text
9363 # though, which does catch some bad symbols but isn't as heavy-handed
9364 # as -z defs.
9365 no_undefined_flag='${wl}-z,text'
9366 allow_undefined_flag='${wl}-z,nodefs'
9367 archive_cmds_need_lc=no
9368 hardcode_shlibpath_var=no
9369 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9370 hardcode_libdir_separator=':'
9371 link_all_deplibs=yes
9372 export_dynamic_flag_spec='${wl}-Bexport'
9373 runpath_var='LD_RUN_PATH'
9374
9375 if test "$GCC" = yes; then
9376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 fi
9382 ;;
9383
9384 uts4*)
9385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 hardcode_libdir_flag_spec='-L$libdir'
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 *)
9391 ld_shlibs=no
9392 ;;
9393 esac
9394
9395 if test x$host_vendor = xsni; then
9396 case $host in
9397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9398 export_dynamic_flag_spec='${wl}-Blargedynsym'
9399 ;;
9400 esac
9401 fi
9402 fi
9403
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9405 $as_echo "$ld_shlibs" >&6; }
9406 test "$ld_shlibs" = no && can_build_shared=no
9407
9408 with_gnu_ld=$with_gnu_ld
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424 #
9425 # Do we need to explicitly link libc?
9426 #
9427 case "x$archive_cmds_need_lc" in
9428 x|xyes)
9429 # Assume -lc should be added
9430 archive_cmds_need_lc=yes
9431
9432 if test "$enable_shared" = yes && test "$GCC" = yes; then
9433 case $archive_cmds in
9434 *'~'*)
9435 # FIXME: we may have to deal with multi-command sequences.
9436 ;;
9437 '$CC '*)
9438 # Test whether the compiler implicitly links with -lc since on some
9439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9440 # to ld, don't add -lc before -lgcc.
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9443 $RM conftest*
9444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9445
9446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9447 (eval $ac_compile) 2>&5
9448 ac_status=$?
9449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9450 test $ac_status = 0; } 2>conftest.err; then
9451 soname=conftest
9452 lib=conftest
9453 libobjs=conftest.$ac_objext
9454 deplibs=
9455 wl=$lt_prog_compiler_wl
9456 pic_flag=$lt_prog_compiler_pic
9457 compiler_flags=-v
9458 linker_flags=-v
9459 verstring=
9460 output_objdir=.
9461 libname=conftest
9462 lt_save_allow_undefined_flag=$allow_undefined_flag
9463 allow_undefined_flag=
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9465 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9466 ac_status=$?
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; }
9469 then
9470 archive_cmds_need_lc=no
9471 else
9472 archive_cmds_need_lc=yes
9473 fi
9474 allow_undefined_flag=$lt_save_allow_undefined_flag
9475 else
9476 cat conftest.err 1>&5
9477 fi
9478 $RM conftest*
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9480 $as_echo "$archive_cmds_need_lc" >&6; }
9481 ;;
9482 esac
9483 fi
9484 ;;
9485 esac
9486
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9645
9646 if test "$GCC" = yes; then
9647 case $host_os in
9648 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9649 *) lt_awk_arg="/^libraries:/" ;;
9650 esac
9651 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9652 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9653 # if the path contains ";" then we assume it to be the separator
9654 # otherwise default to the standard path separator (i.e. ":") - it is
9655 # assumed that no part of a normal pathname contains ";" but that should
9656 # okay in the real world where ";" in dirpaths is itself problematic.
9657 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9658 else
9659 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9660 fi
9661 # Ok, now we have the path, separated by spaces, we can step through it
9662 # and add multilib dir if necessary.
9663 lt_tmp_lt_search_path_spec=
9664 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9665 for lt_sys_path in $lt_search_path_spec; do
9666 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9667 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9668 else
9669 test -d "$lt_sys_path" && \
9670 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9671 fi
9672 done
9673 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9674 BEGIN {RS=" "; FS="/|\n";} {
9675 lt_foo="";
9676 lt_count=0;
9677 for (lt_i = NF; lt_i > 0; lt_i--) {
9678 if ($lt_i != "" && $lt_i != ".") {
9679 if ($lt_i == "..") {
9680 lt_count++;
9681 } else {
9682 if (lt_count == 0) {
9683 lt_foo="/" $lt_i lt_foo;
9684 } else {
9685 lt_count--;
9686 }
9687 }
9688 }
9689 }
9690 if (lt_foo != "") { lt_freq[lt_foo]++; }
9691 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9692 }'`
9693 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9694 else
9695 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9696 fi
9697 library_names_spec=
9698 libname_spec='lib$name'
9699 soname_spec=
9700 shrext_cmds=".so"
9701 postinstall_cmds=
9702 postuninstall_cmds=
9703 finish_cmds=
9704 finish_eval=
9705 shlibpath_var=
9706 shlibpath_overrides_runpath=unknown
9707 version_type=none
9708 dynamic_linker="$host_os ld.so"
9709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710 need_lib_prefix=unknown
9711 hardcode_into_libs=no
9712
9713 # when you set need_version to no, make sure it does not cause -set_version
9714 # flags to be left without arguments
9715 need_version=unknown
9716
9717 case $host_os in
9718 aix3*)
9719 version_type=linux
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9721 shlibpath_var=LIBPATH
9722
9723 # AIX 3 has no versioning support, so we append a major version to the name.
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 ;;
9726
9727 aix[4-9]*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 hardcode_into_libs=yes
9732 if test "$host_cpu" = ia64; then
9733 # AIX 5 supports IA64
9734 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9735 shlibpath_var=LD_LIBRARY_PATH
9736 else
9737 # With GCC up to 2.95.x, collect2 would create an import file
9738 # for dependence libraries. The import file would start with
9739 # the line `#! .'. This would cause the generated library to
9740 # depend on `.', always an invalid library. This was fixed in
9741 # development snapshots of GCC prior to 3.0.
9742 case $host_os in
9743 aix4 | aix4.[01] | aix4.[01].*)
9744 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9745 echo ' yes '
9746 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9747 :
9748 else
9749 can_build_shared=no
9750 fi
9751 ;;
9752 esac
9753 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9754 # soname into executable. Probably we can add versioning support to
9755 # collect2, so additional links can be useful in future.
9756 if test "$aix_use_runtimelinking" = yes; then
9757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9758 # instead of lib<name>.a to let people know that these are not
9759 # typical AIX shared libraries.
9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761 else
9762 # We preserve .a as extension for shared libraries through AIX4.2
9763 # and later when we are not doing run time linking.
9764 library_names_spec='${libname}${release}.a $libname.a'
9765 soname_spec='${libname}${release}${shared_ext}$major'
9766 fi
9767 shlibpath_var=LIBPATH
9768 fi
9769 ;;
9770
9771 amigaos*)
9772 case $host_cpu in
9773 powerpc)
9774 # Since July 2007 AmigaOS4 officially supports .so libraries.
9775 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9777 ;;
9778 m68k)
9779 library_names_spec='$libname.ixlibrary $libname.a'
9780 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9781 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'
9782 ;;
9783 esac
9784 ;;
9785
9786 beos*)
9787 library_names_spec='${libname}${shared_ext}'
9788 dynamic_linker="$host_os ld.so"
9789 shlibpath_var=LIBRARY_PATH
9790 ;;
9791
9792 bsdi[45]*)
9793 version_type=linux
9794 need_version=no
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9798 shlibpath_var=LD_LIBRARY_PATH
9799 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9800 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9801 # the default ld.so.conf also contains /usr/contrib/lib and
9802 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9803 # libtool to hard-code these into programs
9804 ;;
9805
9806 cygwin* | mingw* | pw32* | cegcc*)
9807 version_type=windows
9808 shrext_cmds=".dll"
9809 need_version=no
9810 need_lib_prefix=no
9811
9812 case $GCC,$host_os in
9813 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9814 library_names_spec='$libname.dll.a'
9815 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9816 postinstall_cmds='base_file=`basename \${file}`~
9817 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9818 dldir=$destdir/`dirname \$dlpath`~
9819 test -d \$dldir || mkdir -p \$dldir~
9820 $install_prog $dir/$dlname \$dldir/$dlname~
9821 chmod a+x \$dldir/$dlname~
9822 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9823 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9824 fi'
9825 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9826 dlpath=$dir/\$dldll~
9827 $RM \$dlpath'
9828 shlibpath_overrides_runpath=yes
9829
9830 case $host_os in
9831 cygwin*)
9832 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9833 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9834 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9835 ;;
9836 mingw* | cegcc*)
9837 # MinGW DLLs use traditional 'lib' prefix
9838 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9840 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9841 # It is most probably a Windows format PATH printed by
9842 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9843 # path with ; separators, and with drive letters. We can handle the
9844 # drive letters (cygwin fileutils understands them), so leave them,
9845 # especially as we might pass files found there to a mingw objdump,
9846 # which wouldn't understand a cygwinified path. Ahh.
9847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9848 else
9849 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9850 fi
9851 ;;
9852 pw32*)
9853 # pw32 DLLs use 'pw' prefix rather than 'lib'
9854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9855 ;;
9856 esac
9857 ;;
9858
9859 *)
9860 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9861 ;;
9862 esac
9863 dynamic_linker='Win32 ld.exe'
9864 # FIXME: first we should search . and the directory the executable is in
9865 shlibpath_var=PATH
9866 ;;
9867
9868 darwin* | rhapsody*)
9869 dynamic_linker="$host_os dyld"
9870 version_type=darwin
9871 need_lib_prefix=no
9872 need_version=no
9873 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9874 soname_spec='${libname}${release}${major}$shared_ext'
9875 shlibpath_overrides_runpath=yes
9876 shlibpath_var=DYLD_LIBRARY_PATH
9877 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9878
9879 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9880 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9881 ;;
9882
9883 dgux*)
9884 version_type=linux
9885 need_lib_prefix=no
9886 need_version=no
9887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 shlibpath_var=LD_LIBRARY_PATH
9890 ;;
9891
9892 freebsd1*)
9893 dynamic_linker=no
9894 ;;
9895
9896 freebsd* | dragonfly*)
9897 # DragonFly does not have aout. When/if they implement a new
9898 # versioning mechanism, adjust this.
9899 if test -x /usr/bin/objformat; then
9900 objformat=`/usr/bin/objformat`
9901 else
9902 case $host_os in
9903 freebsd[123]*) objformat=aout ;;
9904 *) objformat=elf ;;
9905 esac
9906 fi
9907 version_type=freebsd-$objformat
9908 case $version_type in
9909 freebsd-elf*)
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9911 need_version=no
9912 need_lib_prefix=no
9913 ;;
9914 freebsd-*)
9915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9916 need_version=yes
9917 ;;
9918 esac
9919 shlibpath_var=LD_LIBRARY_PATH
9920 case $host_os in
9921 freebsd2*)
9922 shlibpath_overrides_runpath=yes
9923 ;;
9924 freebsd3.[01]* | freebsdelf3.[01]*)
9925 shlibpath_overrides_runpath=yes
9926 hardcode_into_libs=yes
9927 ;;
9928 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9929 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9930 shlibpath_overrides_runpath=no
9931 hardcode_into_libs=yes
9932 ;;
9933 *) # from 4.6 on, and DragonFly
9934 shlibpath_overrides_runpath=yes
9935 hardcode_into_libs=yes
9936 ;;
9937 esac
9938 ;;
9939
9940 gnu*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 hardcode_into_libs=yes
9948 ;;
9949
9950 hpux9* | hpux10* | hpux11*)
9951 # Give a soname corresponding to the major version so that dld.sl refuses to
9952 # link against other versions.
9953 version_type=sunos
9954 need_lib_prefix=no
9955 need_version=no
9956 case $host_cpu in
9957 ia64*)
9958 shrext_cmds='.so'
9959 hardcode_into_libs=yes
9960 dynamic_linker="$host_os dld.so"
9961 shlibpath_var=LD_LIBRARY_PATH
9962 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 if test "X$HPUX_IA64_MODE" = X32; then
9966 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9967 else
9968 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9969 fi
9970 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9971 ;;
9972 hppa*64*)
9973 shrext_cmds='.sl'
9974 hardcode_into_libs=yes
9975 dynamic_linker="$host_os dld.sl"
9976 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9981 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9982 ;;
9983 *)
9984 shrext_cmds='.sl'
9985 dynamic_linker="$host_os dld.sl"
9986 shlibpath_var=SHLIB_PATH
9987 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 ;;
9991 esac
9992 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9993 postinstall_cmds='chmod 555 $lib'
9994 ;;
9995
9996 interix[3-9]*)
9997 version_type=linux
9998 need_lib_prefix=no
9999 need_version=no
10000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 shlibpath_overrides_runpath=no
10005 hardcode_into_libs=yes
10006 ;;
10007
10008 irix5* | irix6* | nonstopux*)
10009 case $host_os in
10010 nonstopux*) version_type=nonstopux ;;
10011 *)
10012 if test "$lt_cv_prog_gnu_ld" = yes; then
10013 version_type=linux
10014 else
10015 version_type=irix
10016 fi ;;
10017 esac
10018 need_lib_prefix=no
10019 need_version=no
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10022 case $host_os in
10023 irix5* | nonstopux*)
10024 libsuff= shlibsuff=
10025 ;;
10026 *)
10027 case $LD in # libtool.m4 will add one of these switches to LD
10028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10029 libsuff= shlibsuff= libmagic=32-bit;;
10030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10031 libsuff=32 shlibsuff=N32 libmagic=N32;;
10032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10034 *) libsuff= shlibsuff= libmagic=never-match;;
10035 esac
10036 ;;
10037 esac
10038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10039 shlibpath_overrides_runpath=no
10040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10042 hardcode_into_libs=yes
10043 ;;
10044
10045 # No shared lib support for Linux oldld, aout, or coff.
10046 linux*oldld* | linux*aout* | linux*coff*)
10047 dynamic_linker=no
10048 ;;
10049
10050 # This must be Linux ELF.
10051 linux* | k*bsd*-gnu)
10052 version_type=linux
10053 need_lib_prefix=no
10054 need_version=no
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10058 shlibpath_var=LD_LIBRARY_PATH
10059 shlibpath_overrides_runpath=no
10060 # Some binutils ld are patched to set DT_RUNPATH
10061 save_LDFLAGS=$LDFLAGS
10062 save_libdir=$libdir
10063 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10064 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10066 /* end confdefs.h. */
10067
10068 int
10069 main ()
10070 {
10071
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10078 shlibpath_overrides_runpath=yes
10079 fi
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LDFLAGS=$save_LDFLAGS
10084 libdir=$save_libdir
10085
10086 # This implies no fast_install, which is unacceptable.
10087 # Some rework will be needed to allow for fast_install
10088 # before this can be enabled.
10089 hardcode_into_libs=yes
10090
10091 # find out which ABI we are using
10092 libsuff=
10093 case "$host_cpu" in
10094 x86_64*|s390x*|powerpc64*)
10095 echo '#line 10095 "configure"' > conftest.$ac_ext
10096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10097 (eval $ac_compile) 2>&5
10098 ac_status=$?
10099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10100 test $ac_status = 0; }; then
10101 case `/usr/bin/file conftest.$ac_objext` in
10102 *64-bit*)
10103 libsuff=64
10104 ;;
10105 esac
10106 fi
10107 rm -rf conftest*
10108 ;;
10109 esac
10110
10111 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10112
10113 # Append ld.so.conf contents to the search path
10114 if test -f /etc/ld.so.conf; then
10115 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' ' '`
10116 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10117 fi
10118
10119 # We used to test for /lib/ld.so.1 and disable shared libraries on
10120 # powerpc, because MkLinux only supported shared libraries with the
10121 # GNU dynamic linker. Since this was broken with cross compilers,
10122 # most powerpc-linux boxes support dynamic linking these days and
10123 # people can always --disable-shared, the test was removed, and we
10124 # assume the GNU/Linux dynamic linker is in use.
10125 dynamic_linker='GNU/Linux ld.so'
10126 ;;
10127
10128 netbsd*)
10129 version_type=sunos
10130 need_lib_prefix=no
10131 need_version=no
10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10135 dynamic_linker='NetBSD (a.out) ld.so'
10136 else
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 dynamic_linker='NetBSD ld.elf_so'
10140 fi
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 ;;
10145
10146 newsos6)
10147 version_type=linux
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 shlibpath_overrides_runpath=yes
10151 ;;
10152
10153 *nto* | *qnx*)
10154 version_type=qnx
10155 need_lib_prefix=no
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 shlibpath_var=LD_LIBRARY_PATH
10160 shlibpath_overrides_runpath=no
10161 hardcode_into_libs=yes
10162 dynamic_linker='ldqnx.so'
10163 ;;
10164
10165 openbsd*)
10166 version_type=sunos
10167 sys_lib_dlsearch_path_spec="/usr/lib"
10168 need_lib_prefix=no
10169 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10170 case $host_os in
10171 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10172 *) need_version=no ;;
10173 esac
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10176 shlibpath_var=LD_LIBRARY_PATH
10177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10178 case $host_os in
10179 openbsd2.[89] | openbsd2.[89].*)
10180 shlibpath_overrides_runpath=no
10181 ;;
10182 *)
10183 shlibpath_overrides_runpath=yes
10184 ;;
10185 esac
10186 else
10187 shlibpath_overrides_runpath=yes
10188 fi
10189 ;;
10190
10191 os2*)
10192 libname_spec='$name'
10193 shrext_cmds=".dll"
10194 need_lib_prefix=no
10195 library_names_spec='$libname${shared_ext} $libname.a'
10196 dynamic_linker='OS/2 ld.exe'
10197 shlibpath_var=LIBPATH
10198 ;;
10199
10200 osf3* | osf4* | osf5*)
10201 version_type=osf
10202 need_lib_prefix=no
10203 need_version=no
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10209 ;;
10210
10211 rdos*)
10212 dynamic_linker=no
10213 ;;
10214
10215 solaris*)
10216 version_type=linux
10217 need_lib_prefix=no
10218 need_version=no
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 soname_spec='${libname}${release}${shared_ext}$major'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=yes
10223 hardcode_into_libs=yes
10224 # ldd complains unless libraries are executable
10225 postinstall_cmds='chmod +x $lib'
10226 ;;
10227
10228 sunos4*)
10229 version_type=sunos
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes
10234 if test "$with_gnu_ld" = yes; then
10235 need_lib_prefix=no
10236 fi
10237 need_version=yes
10238 ;;
10239
10240 sysv4 | sysv4.3*)
10241 version_type=linux
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 case $host_vendor in
10246 sni)
10247 shlibpath_overrides_runpath=no
10248 need_lib_prefix=no
10249 runpath_var=LD_RUN_PATH
10250 ;;
10251 siemens)
10252 need_lib_prefix=no
10253 ;;
10254 motorola)
10255 need_lib_prefix=no
10256 need_version=no
10257 shlibpath_overrides_runpath=no
10258 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10259 ;;
10260 esac
10261 ;;
10262
10263 sysv4*MP*)
10264 if test -d /usr/nec ;then
10265 version_type=linux
10266 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10267 soname_spec='$libname${shared_ext}.$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 fi
10270 ;;
10271
10272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10273 version_type=freebsd-elf
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 if test "$with_gnu_ld" = yes; then
10282 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10283 else
10284 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10285 case $host_os in
10286 sco3.2v5*)
10287 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10288 ;;
10289 esac
10290 fi
10291 sys_lib_dlsearch_path_spec='/usr/lib'
10292 ;;
10293
10294 tpf*)
10295 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10296 version_type=linux
10297 need_lib_prefix=no
10298 need_version=no
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 ;;
10304
10305 uts4*)
10306 version_type=linux
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 ;;
10311
10312 *)
10313 dynamic_linker=no
10314 ;;
10315 esac
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10317 $as_echo "$dynamic_linker" >&6; }
10318 test "$dynamic_linker" = no && can_build_shared=no
10319
10320 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10321 if test "$GCC" = yes; then
10322 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10323 fi
10324
10325 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10326 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10327 fi
10328 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10329 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10330 fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10419 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10420 hardcode_action=
10421 if test -n "$hardcode_libdir_flag_spec" ||
10422 test -n "$runpath_var" ||
10423 test "X$hardcode_automatic" = "Xyes" ; then
10424
10425 # We can hardcode non-existent directories.
10426 if test "$hardcode_direct" != no &&
10427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10428 # have to relink, otherwise we might link with an installed library
10429 # when we should be linking with a yet-to-be-installed one
10430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10431 test "$hardcode_minus_L" != no; then
10432 # Linking always hardcodes the temporary library directory.
10433 hardcode_action=relink
10434 else
10435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10436 hardcode_action=immediate
10437 fi
10438 else
10439 # We cannot hardcode anything, or else we can only hardcode existing
10440 # directories.
10441 hardcode_action=unsupported
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10444 $as_echo "$hardcode_action" >&6; }
10445
10446 if test "$hardcode_action" = relink ||
10447 test "$inherit_rpath" = yes; then
10448 # Fast installation is not supported
10449 enable_fast_install=no
10450 elif test "$shlibpath_overrides_runpath" = yes ||
10451 test "$enable_shared" = no; then
10452 # Fast installation is not necessary
10453 enable_fast_install=needless
10454 fi
10455
10456
10457
10458
10459
10460
10461 if test "x$enable_dlopen" != xyes; then
10462 enable_dlopen=unknown
10463 enable_dlopen_self=unknown
10464 enable_dlopen_self_static=unknown
10465 else
10466 lt_cv_dlopen=no
10467 lt_cv_dlopen_libs=
10468
10469 case $host_os in
10470 beos*)
10471 lt_cv_dlopen="load_add_on"
10472 lt_cv_dlopen_libs=
10473 lt_cv_dlopen_self=yes
10474 ;;
10475
10476 mingw* | pw32* | cegcc*)
10477 lt_cv_dlopen="LoadLibrary"
10478 lt_cv_dlopen_libs=
10479 ;;
10480
10481 cygwin*)
10482 lt_cv_dlopen="dlopen"
10483 lt_cv_dlopen_libs=
10484 ;;
10485
10486 darwin*)
10487 # if libdl is installed we need to link against it
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-ldl $LIBS"
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10501 #ifdef __cplusplus
10502 extern "C"
10503 #endif
10504 char dlopen ();
10505 int
10506 main ()
10507 {
10508 return dlopen ();
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_c_try_link "$LINENO"; then :
10514 ac_cv_lib_dl_dlopen=yes
10515 else
10516 ac_cv_lib_dl_dlopen=no
10517 fi
10518 rm -f core conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 LIBS=$ac_check_lib_save_LIBS
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10523 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10524 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10526 else
10527
10528 lt_cv_dlopen="dyld"
10529 lt_cv_dlopen_libs=
10530 lt_cv_dlopen_self=yes
10531
10532 fi
10533
10534 ;;
10535
10536 *)
10537 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10538 if test "x$ac_cv_func_shl_load" = x""yes; then :
10539 lt_cv_dlopen="shl_load"
10540 else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10542 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10543 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-ldld $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10550
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char shl_load ();
10558 int
10559 main ()
10560 {
10561 return shl_load ();
10562 ;
10563 return 0;
10564 }
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_dld_shl_load=yes
10568 else
10569 ac_cv_lib_dld_shl_load=no
10570 fi
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10574 fi
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10576 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10577 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10578 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10579 else
10580 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10581 if test "x$ac_cv_func_dlopen" = x""yes; then :
10582 lt_cv_dlopen="dlopen"
10583 else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10585 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 ac_check_lib_save_LIBS=$LIBS
10590 LIBS="-ldl $LIBS"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593
10594 /* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597 #ifdef __cplusplus
10598 extern "C"
10599 #endif
10600 char dlopen ();
10601 int
10602 main ()
10603 {
10604 return dlopen ();
10605 ;
10606 return 0;
10607 }
10608 _ACEOF
10609 if ac_fn_c_try_link "$LINENO"; then :
10610 ac_cv_lib_dl_dlopen=yes
10611 else
10612 ac_cv_lib_dl_dlopen=no
10613 fi
10614 rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
10616 LIBS=$ac_check_lib_save_LIBS
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10619 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10620 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10622 else
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10624 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10625 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 ac_check_lib_save_LIBS=$LIBS
10629 LIBS="-lsvld $LIBS"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632
10633 /* Override any GCC internal prototype to avoid an error.
10634 Use char because int might match the return type of a GCC
10635 builtin and then its argument prototype would still apply. */
10636 #ifdef __cplusplus
10637 extern "C"
10638 #endif
10639 char dlopen ();
10640 int
10641 main ()
10642 {
10643 return dlopen ();
10644 ;
10645 return 0;
10646 }
10647 _ACEOF
10648 if ac_fn_c_try_link "$LINENO"; then :
10649 ac_cv_lib_svld_dlopen=yes
10650 else
10651 ac_cv_lib_svld_dlopen=no
10652 fi
10653 rm -f core conftest.err conftest.$ac_objext \
10654 conftest$ac_exeext conftest.$ac_ext
10655 LIBS=$ac_check_lib_save_LIBS
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10658 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10659 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10661 else
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10663 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10664 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-ldld $LIBS"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char dld_link ();
10679 int
10680 main ()
10681 {
10682 return dld_link ();
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_dld_dld_link=yes
10689 else
10690 ac_cv_lib_dld_dld_link=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10697 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10698 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10699 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10700 fi
10701
10702
10703 fi
10704
10705
10706 fi
10707
10708
10709 fi
10710
10711
10712 fi
10713
10714
10715 fi
10716
10717 ;;
10718 esac
10719
10720 if test "x$lt_cv_dlopen" != xno; then
10721 enable_dlopen=yes
10722 else
10723 enable_dlopen=no
10724 fi
10725
10726 case $lt_cv_dlopen in
10727 dlopen)
10728 save_CPPFLAGS="$CPPFLAGS"
10729 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10730
10731 save_LDFLAGS="$LDFLAGS"
10732 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10733
10734 save_LIBS="$LIBS"
10735 LIBS="$lt_cv_dlopen_libs $LIBS"
10736
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10738 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10739 if test "${lt_cv_dlopen_self+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
10741 else
10742 if test "$cross_compiling" = yes; then :
10743 lt_cv_dlopen_self=cross
10744 else
10745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10746 lt_status=$lt_dlunknown
10747 cat > conftest.$ac_ext <<_LT_EOF
10748 #line 10748 "configure"
10749 #include "confdefs.h"
10750
10751 #if HAVE_DLFCN_H
10752 #include <dlfcn.h>
10753 #endif
10754
10755 #include <stdio.h>
10756
10757 #ifdef RTLD_GLOBAL
10758 # define LT_DLGLOBAL RTLD_GLOBAL
10759 #else
10760 # ifdef DL_GLOBAL
10761 # define LT_DLGLOBAL DL_GLOBAL
10762 # else
10763 # define LT_DLGLOBAL 0
10764 # endif
10765 #endif
10766
10767 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10768 find out it does not work in some platform. */
10769 #ifndef LT_DLLAZY_OR_NOW
10770 # ifdef RTLD_LAZY
10771 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10772 # else
10773 # ifdef DL_LAZY
10774 # define LT_DLLAZY_OR_NOW DL_LAZY
10775 # else
10776 # ifdef RTLD_NOW
10777 # define LT_DLLAZY_OR_NOW RTLD_NOW
10778 # else
10779 # ifdef DL_NOW
10780 # define LT_DLLAZY_OR_NOW DL_NOW
10781 # else
10782 # define LT_DLLAZY_OR_NOW 0
10783 # endif
10784 # endif
10785 # endif
10786 # endif
10787 #endif
10788
10789 void fnord() { int i=42;}
10790 int main ()
10791 {
10792 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10793 int status = $lt_dlunknown;
10794
10795 if (self)
10796 {
10797 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10798 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10799 /* dlclose (self); */
10800 }
10801 else
10802 puts (dlerror ());
10803
10804 return status;
10805 }
10806 _LT_EOF
10807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10808 (eval $ac_link) 2>&5
10809 ac_status=$?
10810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10811 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10812 (./conftest; exit; ) >&5 2>/dev/null
10813 lt_status=$?
10814 case x$lt_status in
10815 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10816 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10817 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10818 esac
10819 else :
10820 # compilation failed
10821 lt_cv_dlopen_self=no
10822 fi
10823 fi
10824 rm -fr conftest*
10825
10826
10827 fi
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10829 $as_echo "$lt_cv_dlopen_self" >&6; }
10830
10831 if test "x$lt_cv_dlopen_self" = xyes; then
10832 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10834 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10835 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10837 else
10838 if test "$cross_compiling" = yes; then :
10839 lt_cv_dlopen_self_static=cross
10840 else
10841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10842 lt_status=$lt_dlunknown
10843 cat > conftest.$ac_ext <<_LT_EOF
10844 #line 10844 "configure"
10845 #include "confdefs.h"
10846
10847 #if HAVE_DLFCN_H
10848 #include <dlfcn.h>
10849 #endif
10850
10851 #include <stdio.h>
10852
10853 #ifdef RTLD_GLOBAL
10854 # define LT_DLGLOBAL RTLD_GLOBAL
10855 #else
10856 # ifdef DL_GLOBAL
10857 # define LT_DLGLOBAL DL_GLOBAL
10858 # else
10859 # define LT_DLGLOBAL 0
10860 # endif
10861 #endif
10862
10863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10864 find out it does not work in some platform. */
10865 #ifndef LT_DLLAZY_OR_NOW
10866 # ifdef RTLD_LAZY
10867 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10868 # else
10869 # ifdef DL_LAZY
10870 # define LT_DLLAZY_OR_NOW DL_LAZY
10871 # else
10872 # ifdef RTLD_NOW
10873 # define LT_DLLAZY_OR_NOW RTLD_NOW
10874 # else
10875 # ifdef DL_NOW
10876 # define LT_DLLAZY_OR_NOW DL_NOW
10877 # else
10878 # define LT_DLLAZY_OR_NOW 0
10879 # endif
10880 # endif
10881 # endif
10882 # endif
10883 #endif
10884
10885 void fnord() { int i=42;}
10886 int main ()
10887 {
10888 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10889 int status = $lt_dlunknown;
10890
10891 if (self)
10892 {
10893 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10894 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10895 /* dlclose (self); */
10896 }
10897 else
10898 puts (dlerror ());
10899
10900 return status;
10901 }
10902 _LT_EOF
10903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10904 (eval $ac_link) 2>&5
10905 ac_status=$?
10906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10907 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10908 (./conftest; exit; ) >&5 2>/dev/null
10909 lt_status=$?
10910 case x$lt_status in
10911 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10912 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10913 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10914 esac
10915 else :
10916 # compilation failed
10917 lt_cv_dlopen_self_static=no
10918 fi
10919 fi
10920 rm -fr conftest*
10921
10922
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10925 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10926 fi
10927
10928 CPPFLAGS="$save_CPPFLAGS"
10929 LDFLAGS="$save_LDFLAGS"
10930 LIBS="$save_LIBS"
10931 ;;
10932 esac
10933
10934 case $lt_cv_dlopen_self in
10935 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10936 *) enable_dlopen_self=unknown ;;
10937 esac
10938
10939 case $lt_cv_dlopen_self_static in
10940 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10941 *) enable_dlopen_self_static=unknown ;;
10942 esac
10943 fi
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961 striplib=
10962 old_striplib=
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10964 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10965 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10966 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10967 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10969 $as_echo "yes" >&6; }
10970 else
10971 # FIXME - insert some real tests, host_os isn't really good enough
10972 case $host_os in
10973 darwin*)
10974 if test -n "$STRIP" ; then
10975 striplib="$STRIP -x"
10976 old_striplib="$STRIP -S"
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; }
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10981 $as_echo "no" >&6; }
10982 fi
10983 ;;
10984 *)
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10986 $as_echo "no" >&6; }
10987 ;;
10988 esac
10989 fi
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002 # Report which library types will actually be built
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11004 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11006 $as_echo "$can_build_shared" >&6; }
11007
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11009 $as_echo_n "checking whether to build shared libraries... " >&6; }
11010 test "$can_build_shared" = "no" && enable_shared=no
11011
11012 # On AIX, shared libraries and static libraries use the same namespace, and
11013 # are all built from PIC.
11014 case $host_os in
11015 aix3*)
11016 test "$enable_shared" = yes && enable_static=no
11017 if test -n "$RANLIB"; then
11018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11019 postinstall_cmds='$RANLIB $lib'
11020 fi
11021 ;;
11022
11023 aix[4-9]*)
11024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11025 test "$enable_shared" = yes && enable_static=no
11026 fi
11027 ;;
11028 esac
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11030 $as_echo "$enable_shared" >&6; }
11031
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11033 $as_echo_n "checking whether to build static libraries... " >&6; }
11034 # Make sure either enable_shared or enable_static is yes.
11035 test "$enable_shared" = yes || enable_static=yes
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11037 $as_echo "$enable_static" >&6; }
11038
11039
11040
11041
11042 fi
11043 ac_ext=c
11044 ac_cpp='$CPP $CPPFLAGS'
11045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11048
11049 CC="$lt_save_CC"
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063 ac_config_commands="$ac_config_commands libtool"
11064
11065
11066
11067
11068 # Only expand once:
11069
11070
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11072 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11073 if test "${libltdl_cv_shlibext+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
11075 else
11076
11077 module=yes
11078 eval libltdl_cv_shlibext=$shrext_cmds
11079
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11082 $as_echo "$libltdl_cv_shlibext" >&6; }
11083 if test -n "$libltdl_cv_shlibext"; then
11084
11085 cat >>confdefs.h <<_ACEOF
11086 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11087 _ACEOF
11088
11089 fi
11090
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11092 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11093 if test "${lt_cv_module_path_var+set}" = set; then :
11094 $as_echo_n "(cached) " >&6
11095 else
11096 lt_cv_module_path_var="$shlibpath_var"
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11099 $as_echo "$lt_cv_module_path_var" >&6; }
11100 if test -n "$lt_cv_module_path_var"; then
11101
11102 cat >>confdefs.h <<_ACEOF
11103 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11104 _ACEOF
11105
11106 fi
11107
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11109 $as_echo_n "checking for the default library search path... " >&6; }
11110 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11114 fi
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11116 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11117 if test -n "$lt_cv_sys_dlsearch_path"; then
11118 sys_dlsearch_path=
11119 for dir in $lt_cv_sys_dlsearch_path; do
11120 if test -z "$sys_dlsearch_path"; then
11121 sys_dlsearch_path="$dir"
11122 else
11123 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11124 fi
11125 done
11126
11127 cat >>confdefs.h <<_ACEOF
11128 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11129 _ACEOF
11130
11131 fi
11132
11133
11134 LT_DLLOADERS=
11135
11136
11137 ac_ext=c
11138 ac_cpp='$CPP $CPPFLAGS'
11139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11142
11143
11144 LIBADD_DLOPEN=
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11146 $as_echo_n "checking for library containing dlopen... " >&6; }
11147 if test "${ac_cv_search_dlopen+set}" = set; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 ac_func_search_save_LIBS=$LIBS
11151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11152 /* end confdefs.h. */
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char dlopen ();
11161 int
11162 main ()
11163 {
11164 return dlopen ();
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 for ac_lib in '' dl; do
11170 if test -z "$ac_lib"; then
11171 ac_res="none required"
11172 else
11173 ac_res=-l$ac_lib
11174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11175 fi
11176 if ac_fn_c_try_link "$LINENO"; then :
11177 ac_cv_search_dlopen=$ac_res
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext
11181 if test "${ac_cv_search_dlopen+set}" = set; then :
11182 break
11183 fi
11184 done
11185 if test "${ac_cv_search_dlopen+set}" = set; then :
11186
11187 else
11188 ac_cv_search_dlopen=no
11189 fi
11190 rm conftest.$ac_ext
11191 LIBS=$ac_func_search_save_LIBS
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11194 $as_echo "$ac_cv_search_dlopen" >&6; }
11195 ac_res=$ac_cv_search_dlopen
11196 if test "$ac_res" != no; then :
11197 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11198
11199 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11200
11201 if test "$ac_cv_search_dlopen" != "none required" ; then
11202 LIBADD_DLOPEN="-ldl"
11203 fi
11204 libltdl_cv_lib_dl_dlopen="yes"
11205 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11206 else
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11209 #if HAVE_DLFCN_H
11210 # include <dlfcn.h>
11211 #endif
11212
11213 int
11214 main ()
11215 {
11216 dlopen(0, 0);
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_link "$LINENO"; then :
11222
11223 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11224
11225 libltdl_cv_func_dlopen="yes"
11226 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11229 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11230 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-lsvld $LIBS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char dlopen ();
11245 int
11246 main ()
11247 {
11248 return dlopen ();
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254 ac_cv_lib_svld_dlopen=yes
11255 else
11256 ac_cv_lib_svld_dlopen=no
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11263 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11264 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11265
11266 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11267
11268 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11269 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11270 fi
11271
11272 fi
11273 rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275 fi
11276
11277 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11278 then
11279 lt_save_LIBS="$LIBS"
11280 LIBS="$LIBS $LIBADD_DLOPEN"
11281 for ac_func in dlerror
11282 do :
11283 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11284 if test "x$ac_cv_func_dlerror" = x""yes; then :
11285 cat >>confdefs.h <<_ACEOF
11286 #define HAVE_DLERROR 1
11287 _ACEOF
11288
11289 fi
11290 done
11291
11292 LIBS="$lt_save_LIBS"
11293 fi
11294
11295
11296 LIBADD_SHL_LOAD=
11297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11298 if test "x$ac_cv_func_shl_load" = x""yes; then :
11299
11300 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11301
11302 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11305 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11306 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 ac_check_lib_save_LIBS=$LIBS
11310 LIBS="-ldld $LIBS"
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 char shl_load ();
11321 int
11322 main ()
11323 {
11324 return shl_load ();
11325 ;
11326 return 0;
11327 }
11328 _ACEOF
11329 if ac_fn_c_try_link "$LINENO"; then :
11330 ac_cv_lib_dld_shl_load=yes
11331 else
11332 ac_cv_lib_dld_shl_load=no
11333 fi
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_lib_save_LIBS
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11339 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11340 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11341
11342 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11343
11344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11345 LIBADD_SHL_LOAD="-ldld"
11346 fi
11347
11348 fi
11349
11350
11351
11352 case $host_os in
11353 darwin[1567].*)
11354 # We only want this for pre-Mac OS X 10.4.
11355 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11356 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11357
11358 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11359
11360 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11361 fi
11362
11363 ;;
11364 beos*)
11365 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11366 ;;
11367 cygwin* | mingw* | os2* | pw32*)
11368 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11369 "
11370 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11371 ac_have_decl=1
11372 else
11373 ac_have_decl=0
11374 fi
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11378 _ACEOF
11379
11380 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11381 ;;
11382 esac
11383
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11385 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11386 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 ac_check_lib_save_LIBS=$LIBS
11390 LIBS="-ldld $LIBS"
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11393
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char dld_link ();
11401 int
11402 main ()
11403 {
11404 return dld_link ();
11405 ;
11406 return 0;
11407 }
11408 _ACEOF
11409 if ac_fn_c_try_link "$LINENO"; then :
11410 ac_cv_lib_dld_dld_link=yes
11411 else
11412 ac_cv_lib_dld_dld_link=no
11413 fi
11414 rm -f core conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11417 fi
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11419 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11420 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11421
11422 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11423
11424 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11425 fi
11426
11427
11428
11429
11430 LT_DLPREOPEN=
11431 if test -n "$LT_DLLOADERS"
11432 then
11433 for lt_loader in $LT_DLLOADERS; do
11434 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11435 done
11436
11437 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11438
11439 fi
11440
11441
11442 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11443
11444
11445 ac_ext=c
11446 ac_cpp='$CPP $CPPFLAGS'
11447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11450
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11453 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11454 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
11456 else
11457 lt_cv_sys_symbol_underscore=no
11458 cat > conftest.$ac_ext <<_LT_EOF
11459 void nm_test_func(){}
11460 int main(){nm_test_func;return 0;}
11461 _LT_EOF
11462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11463 (eval $ac_compile) 2>&5
11464 ac_status=$?
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; }; then
11467 # Now try to grab the symbols.
11468 ac_nlist=conftest.nm
11469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11470 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11471 ac_status=$?
11472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11473 test $ac_status = 0; } && test -s "$ac_nlist"; then
11474 # See whether the symbols have a leading underscore.
11475 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11476 lt_cv_sys_symbol_underscore=yes
11477 else
11478 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11479 :
11480 else
11481 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11482 fi
11483 fi
11484 else
11485 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11486 fi
11487 else
11488 echo "configure: failed program was:" >&5
11489 cat conftest.c >&5
11490 fi
11491 rm -rf conftest*
11492
11493 fi
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11495 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11496 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11497
11498
11499 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11500 if test x"$libltdl_cv_func_dlopen" = xyes ||
11501 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11503 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11504 if test "${libltdl_cv_need_uscore+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 libltdl_cv_need_uscore=unknown
11508 save_LIBS="$LIBS"
11509 LIBS="$LIBS $LIBADD_DLOPEN"
11510 if test "$cross_compiling" = yes; then :
11511 libltdl_cv_need_uscore=cross
11512 else
11513 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11514 lt_status=$lt_dlunknown
11515 cat > conftest.$ac_ext <<_LT_EOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11518
11519 #if HAVE_DLFCN_H
11520 #include <dlfcn.h>
11521 #endif
11522
11523 #include <stdio.h>
11524
11525 #ifdef RTLD_GLOBAL
11526 # define LT_DLGLOBAL RTLD_GLOBAL
11527 #else
11528 # ifdef DL_GLOBAL
11529 # define LT_DLGLOBAL DL_GLOBAL
11530 # else
11531 # define LT_DLGLOBAL 0
11532 # endif
11533 #endif
11534
11535 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11536 find out it does not work in some platform. */
11537 #ifndef LT_DLLAZY_OR_NOW
11538 # ifdef RTLD_LAZY
11539 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11540 # else
11541 # ifdef DL_LAZY
11542 # define LT_DLLAZY_OR_NOW DL_LAZY
11543 # else
11544 # ifdef RTLD_NOW
11545 # define LT_DLLAZY_OR_NOW RTLD_NOW
11546 # else
11547 # ifdef DL_NOW
11548 # define LT_DLLAZY_OR_NOW DL_NOW
11549 # else
11550 # define LT_DLLAZY_OR_NOW 0
11551 # endif
11552 # endif
11553 # endif
11554 # endif
11555 #endif
11556
11557 void fnord() { int i=42;}
11558 int main ()
11559 {
11560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11561 int status = $lt_dlunknown;
11562
11563 if (self)
11564 {
11565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 /* dlclose (self); */
11568 }
11569 else
11570 puts (dlerror ());
11571
11572 return status;
11573 }
11574 _LT_EOF
11575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576 (eval $ac_link) 2>&5
11577 ac_status=$?
11578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580 (./conftest; exit; ) >&5 2>/dev/null
11581 lt_status=$?
11582 case x$lt_status in
11583 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11584 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11585 x$lt_dlunknown|x*) ;;
11586 esac
11587 else :
11588 # compilation failed
11589
11590 fi
11591 fi
11592 rm -fr conftest*
11593
11594 LIBS="$save_LIBS"
11595
11596 fi
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11598 $as_echo "$libltdl_cv_need_uscore" >&6; }
11599 fi
11600 fi
11601
11602 if test x"$libltdl_cv_need_uscore" = xyes; then
11603
11604 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11605
11606 fi
11607
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11609 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11610 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11611 $as_echo_n "(cached) " >&6
11612 else
11613 # PORTME does your system automatically load deplibs for dlopen?
11614 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11615 # For now, we just catch OSes we know something about -- in the
11616 # future, we'll try test this programmatically.
11617 lt_cv_sys_dlopen_deplibs=unknown
11618 case $host_os in
11619 aix3*|aix4.1.*|aix4.2.*)
11620 # Unknown whether this is true for these versions of AIX, but
11621 # we want this `case' here to explicitly catch those versions.
11622 lt_cv_sys_dlopen_deplibs=unknown
11623 ;;
11624 aix[4-9]*)
11625 lt_cv_sys_dlopen_deplibs=yes
11626 ;;
11627 amigaos*)
11628 case $host_cpu in
11629 powerpc)
11630 lt_cv_sys_dlopen_deplibs=no
11631 ;;
11632 esac
11633 ;;
11634 darwin*)
11635 # Assuming the user has installed a libdl from somewhere, this is true
11636 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11637 lt_cv_sys_dlopen_deplibs=yes
11638 ;;
11639 freebsd* | dragonfly*)
11640 lt_cv_sys_dlopen_deplibs=yes
11641 ;;
11642 gnu* | linux* | k*bsd*-gnu)
11643 # GNU and its variants, using gnu ld.so (Glibc)
11644 lt_cv_sys_dlopen_deplibs=yes
11645 ;;
11646 hpux10*|hpux11*)
11647 lt_cv_sys_dlopen_deplibs=yes
11648 ;;
11649 interix*)
11650 lt_cv_sys_dlopen_deplibs=yes
11651 ;;
11652 irix[12345]*|irix6.[01]*)
11653 # Catch all versions of IRIX before 6.2, and indicate that we don't
11654 # know how it worked for any of those versions.
11655 lt_cv_sys_dlopen_deplibs=unknown
11656 ;;
11657 irix*)
11658 # The case above catches anything before 6.2, and it's known that
11659 # at 6.2 and later dlopen does load deplibs.
11660 lt_cv_sys_dlopen_deplibs=yes
11661 ;;
11662 netbsd*)
11663 lt_cv_sys_dlopen_deplibs=yes
11664 ;;
11665 openbsd*)
11666 lt_cv_sys_dlopen_deplibs=yes
11667 ;;
11668 osf[1234]*)
11669 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11670 # it did *not* use an RPATH in a shared library to find objects the
11671 # library depends on, so we explicitly say `no'.
11672 lt_cv_sys_dlopen_deplibs=no
11673 ;;
11674 osf5.0|osf5.0a|osf5.1)
11675 # dlopen *does* load deplibs and with the right loader patch applied
11676 # it even uses RPATH in a shared library to search for shared objects
11677 # that the library depends on, but there's no easy way to know if that
11678 # patch is installed. Since this is the case, all we can really
11679 # say is unknown -- it depends on the patch being installed. If
11680 # it is, this changes to `yes'. Without it, it would be `no'.
11681 lt_cv_sys_dlopen_deplibs=unknown
11682 ;;
11683 osf*)
11684 # the two cases above should catch all versions of osf <= 5.1. Read
11685 # the comments above for what we know about them.
11686 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11687 # is used to find them so we can finally say `yes'.
11688 lt_cv_sys_dlopen_deplibs=yes
11689 ;;
11690 qnx*)
11691 lt_cv_sys_dlopen_deplibs=yes
11692 ;;
11693 solaris*)
11694 lt_cv_sys_dlopen_deplibs=yes
11695 ;;
11696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11697 libltdl_cv_sys_dlopen_deplibs=yes
11698 ;;
11699 esac
11700
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11703 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11704 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11705
11706 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11707
11708 fi
11709
11710 :
11711
11712 for ac_header in argz.h
11713 do :
11714 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11715 "
11716 if test "x$ac_cv_header_argz_h" = x""yes; then :
11717 cat >>confdefs.h <<_ACEOF
11718 #define HAVE_ARGZ_H 1
11719 _ACEOF
11720
11721 fi
11722
11723 done
11724
11725
11726 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11727 # include <argz.h>
11728 #endif
11729 "
11730 if test "x$ac_cv_type_error_t" = x""yes; then :
11731
11732 cat >>confdefs.h <<_ACEOF
11733 #define HAVE_ERROR_T 1
11734 _ACEOF
11735
11736
11737 else
11738
11739 $as_echo "#define error_t int" >>confdefs.h
11740
11741
11742 $as_echo "#define __error_t_defined 1" >>confdefs.h
11743
11744 fi
11745
11746
11747 ARGZ_H=
11748 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11749 argz_next argz_stringify
11750 do :
11751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11752 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11753 eval as_val=\$$as_ac_var
11754 if test "x$as_val" = x""yes; then :
11755 cat >>confdefs.h <<_ACEOF
11756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11757 _ACEOF
11758
11759 else
11760 ARGZ_H=argz.h;
11761
11762 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11763
11764 fi
11765 done
11766
11767
11768 if test -z "$ARGZ_H"; then :
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11770 $as_echo_n "checking if argz actually works... " >&6; }
11771 if test "${lt_cv_sys_argz_works+set}" = set; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 case $host_os in #(
11775 *cygwin*)
11776 lt_cv_sys_argz_works=no
11777 if test "$cross_compiling" != no; then
11778 lt_cv_sys_argz_works="guessing no"
11779 else
11780 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11781 save_IFS=$IFS
11782 IFS=-.
11783 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11784 IFS=$save_IFS
11785 lt_os_major=${2-0}
11786 lt_os_minor=${3-0}
11787 lt_os_micro=${4-0}
11788 if test "$lt_os_major" -gt 1 \
11789 || { test "$lt_os_major" -eq 1 \
11790 && { test "$lt_os_minor" -gt 5 \
11791 || { test "$lt_os_minor" -eq 5 \
11792 && test "$lt_os_micro" -gt 24; }; }; }; then
11793 lt_cv_sys_argz_works=yes
11794 fi
11795 fi
11796 ;; #(
11797 *) lt_cv_sys_argz_works=yes ;;
11798 esac
11799 fi
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11801 $as_echo "$lt_cv_sys_argz_works" >&6; }
11802 if test $lt_cv_sys_argz_works = yes; then :
11803
11804 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11805
11806 else
11807 ARGZ_H=argz.h
11808
11809
11810 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11811
11812 fi
11813 fi
11814
11815
11816
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11818 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11819 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11823 libltdl_cv_preloaded_symbols=yes
11824 else
11825 libltdl_cv_preloaded_symbols=no
11826 fi
11827
11828 fi
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11830 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11831 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11832
11833 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11834
11835 fi
11836
11837
11838
11839 # Set options
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852 # Check whether --with-included_ltdl was given.
11853 if test "${with_included_ltdl+set}" = set; then :
11854 withval=$with_included_ltdl;
11855 fi
11856
11857
11858 if test "x$with_included_ltdl" != xyes; then
11859 # We are not being forced to use the included libltdl sources, so
11860 # decide whether there is a useful installed version we can use.
11861 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11862
11863 "
11864 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11865 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11866 #include <ltdl.h>
11867 "
11868 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11870 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11871 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lltdl $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char lt_dladvise_preload ();
11886 int
11887 main ()
11888 {
11889 return lt_dladvise_preload ();
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"; then :
11895 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11896 else
11897 ac_cv_lib_ltdl_lt_dladvise_preload=no
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11904 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11905 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11906 with_included_ltdl=no
11907 else
11908 with_included_ltdl=yes
11909 fi
11910
11911 else
11912 with_included_ltdl=yes
11913 fi
11914
11915 else
11916 with_included_ltdl=yes
11917 fi
11918
11919
11920 fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930 # Check whether --with-ltdl_include was given.
11931 if test "${with_ltdl_include+set}" = set; then :
11932 withval=$with_ltdl_include;
11933 fi
11934
11935
11936 if test -n "$with_ltdl_include"; then
11937 if test -f "$with_ltdl_include/ltdl.h"; then :
11938 else
11939 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11940 fi
11941 else
11942 with_ltdl_include=no
11943 fi
11944
11945
11946 # Check whether --with-ltdl_lib was given.
11947 if test "${with_ltdl_lib+set}" = set; then :
11948 withval=$with_ltdl_lib;
11949 fi
11950
11951
11952 if test -n "$with_ltdl_lib"; then
11953 if test -f "$with_ltdl_lib/libltdl.la"; then :
11954 else
11955 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11956 fi
11957 else
11958 with_ltdl_lib=no
11959 fi
11960
11961 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11962 ,yes,no,no,)
11963 case $enable_ltdl_convenience in
11964 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11965 "") enable_ltdl_convenience=yes
11966 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11967 esac
11968 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11969 LTDLDEPS=$LIBLTDL
11970 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11971
11972
11973
11974
11975
11976 # For backwards non-gettext consistent compatibility...
11977 INCLTDL="$LTDLINCL"
11978
11979
11980 ;;
11981 ,no,no,no,)
11982 # If the included ltdl is not to be used, then use the
11983 # preinstalled libltdl we found.
11984
11985 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11986
11987 LIBLTDL=-lltdl
11988 LTDLDEPS=
11989 LTDLINCL=
11990 ;;
11991 ,no*,no,*)
11992 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11993 ;;
11994 *) with_included_ltdl=no
11995 LIBLTDL="-L$with_ltdl_lib -lltdl"
11996 LTDLDEPS=
11997 LTDLINCL="-I$with_ltdl_include"
11998 ;;
11999 esac
12000 INCLTDL="$LTDLINCL"
12001
12002 # Report our decision...
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12004 $as_echo_n "checking where to find libltdl headers... " >&6; }
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12006 $as_echo "$LTDLINCL" >&6; }
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12008 $as_echo_n "checking where to find libltdl library... " >&6; }
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12010 $as_echo "$LIBLTDL" >&6; }
12011
12012
12013
12014 # Check whether --enable-ltdl-install was given.
12015 if test "${enable_ltdl_install+set}" = set; then :
12016 enableval=$enable_ltdl_install;
12017 fi
12018
12019
12020 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12021 *yes*) ;;
12022 *) enable_ltdl_convenience=yes ;;
12023 esac
12024
12025 if test x"${enable_ltdl_install-no}" != xno; then
12026 INSTALL_LTDL_TRUE=
12027 INSTALL_LTDL_FALSE='#'
12028 else
12029 INSTALL_LTDL_TRUE='#'
12030 INSTALL_LTDL_FALSE=
12031 fi
12032
12033 if test x"${enable_ltdl_convenience-no}" != xno; then
12034 CONVENIENCE_LTDL_TRUE=
12035 CONVENIENCE_LTDL_FALSE='#'
12036 else
12037 CONVENIENCE_LTDL_TRUE='#'
12038 CONVENIENCE_LTDL_FALSE=
12039 fi
12040
12041
12042
12043 subdirs="$subdirs libltdl"
12044
12045
12046
12047
12048
12049 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12050 # the user used. This is so that ltdl.h can pick up the parent projects
12051 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12052 # definitions required by ltdl.c.
12053 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12054
12055
12056
12057 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12058 do :
12059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12060 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12061 "
12062 eval as_val=\$$as_ac_Header
12063 if test "x$as_val" = x""yes; then :
12064 cat >>confdefs.h <<_ACEOF
12065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12066 _ACEOF
12067
12068 fi
12069
12070 done
12071
12072
12073 for ac_func in closedir opendir readdir
12074 do :
12075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12077 eval as_val=\$$as_ac_var
12078 if test "x$as_val" = x""yes; then :
12079 cat >>confdefs.h <<_ACEOF
12080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 _ACEOF
12082
12083 else
12084
12085
12086 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12087
12088 fi
12089 done
12090
12091 for ac_func in strlcat strlcpy
12092 do :
12093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12094 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12095 eval as_val=\$$as_ac_var
12096 if test "x$as_val" = x""yes; then :
12097 cat >>confdefs.h <<_ACEOF
12098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12099 _ACEOF
12100
12101 else
12102
12103
12104 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12105
12106 fi
12107 done
12108
12109
12110
12111 cat >>confdefs.h <<_ACEOF
12112 #define LT_LIBEXT "$libext"
12113 _ACEOF
12114
12115
12116 name=ltdl
12117 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12118
12119
12120
12121
12122
12123
12124
12125
12126 # Only expand once:
12127
12128
12129 LIBTOOL="$LIBTOOL --silent"
12130
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
12276 # Checks for typedefs, structures, and compiler characteristics.
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12278 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12279 if test "${ac_cv_c_const+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284
12285 int
12286 main ()
12287 {
12288 /* FIXME: Include the comments suggested by Paul. */
12289 #ifndef __cplusplus
12290 /* Ultrix mips cc rejects this. */
12291 typedef int charset[2];
12292 const charset cs;
12293 /* SunOS 4.1.1 cc rejects this. */
12294 char const *const *pcpcc;
12295 char **ppc;
12296 /* NEC SVR4.0.2 mips cc rejects this. */
12297 struct point {int x, y;};
12298 static struct point const zero = {0,0};
12299 /* AIX XL C 1.02.0.0 rejects this.
12300 It does not let you subtract one const X* pointer from another in
12301 an arm of an if-expression whose if-part is not a constant
12302 expression */
12303 const char *g = "string";
12304 pcpcc = &g + (g ? g-g : 0);
12305 /* HPUX 7.0 cc rejects these. */
12306 ++pcpcc;
12307 ppc = (char**) pcpcc;
12308 pcpcc = (char const *const *) ppc;
12309 { /* SCO 3.2v4 cc rejects this. */
12310 char *t;
12311 char const *s = 0 ? (char *) 0 : (char const *) 0;
12312
12313 *t++ = 0;
12314 if (s) return 0;
12315 }
12316 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12317 int x[] = {25, 17};
12318 const int *foo = &x[0];
12319 ++foo;
12320 }
12321 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12322 typedef const int *iptr;
12323 iptr p = 0;
12324 ++p;
12325 }
12326 { /* AIX XL C 1.02.0.0 rejects this saying
12327 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12328 struct s { int j; const int *ap[3]; };
12329 struct s *b; b->j = 5;
12330 }
12331 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12332 const int foo = 10;
12333 if (!foo) return 0;
12334 }
12335 return !cs[0] && !zero.x;
12336 #endif
12337
12338 ;
12339 return 0;
12340 }
12341 _ACEOF
12342 if ac_fn_c_try_compile "$LINENO"; then :
12343 ac_cv_c_const=yes
12344 else
12345 ac_cv_c_const=no
12346 fi
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12350 $as_echo "$ac_cv_c_const" >&6; }
12351 if test $ac_cv_c_const = no; then
12352
12353 $as_echo "#define const /**/" >>confdefs.h
12354
12355 fi
12356
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12358 $as_echo_n "checking for inline... " >&6; }
12359 if test "${ac_cv_c_inline+set}" = set; then :
12360 $as_echo_n "(cached) " >&6
12361 else
12362 ac_cv_c_inline=no
12363 for ac_kw in inline __inline__ __inline; do
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #ifndef __cplusplus
12367 typedef int foo_t;
12368 static $ac_kw foo_t static_foo () {return 0; }
12369 $ac_kw foo_t foo () {return 0; }
12370 #endif
12371
12372 _ACEOF
12373 if ac_fn_c_try_compile "$LINENO"; then :
12374 ac_cv_c_inline=$ac_kw
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377 test "$ac_cv_c_inline" != no && break
12378 done
12379
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12382 $as_echo "$ac_cv_c_inline" >&6; }
12383
12384 case $ac_cv_c_inline in
12385 inline | yes) ;;
12386 *)
12387 case $ac_cv_c_inline in
12388 no) ac_val=;;
12389 *) ac_val=$ac_cv_c_inline;;
12390 esac
12391 cat >>confdefs.h <<_ACEOF
12392 #ifndef __cplusplus
12393 #define inline $ac_val
12394 #endif
12395 _ACEOF
12396 ;;
12397 esac
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12400 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12401 if test "${ac_cv_c_bigendian+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 ac_cv_c_bigendian=unknown
12405 # See if we're dealing with a universal compiler.
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 #ifndef __APPLE_CC__
12409 not a universal capable compiler
12410 #endif
12411 typedef int dummy;
12412
12413 _ACEOF
12414 if ac_fn_c_try_compile "$LINENO"; then :
12415
12416 # Check for potential -arch flags. It is not universal unless
12417 # there are at least two -arch flags with different values.
12418 ac_arch=
12419 ac_prev=
12420 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12421 if test -n "$ac_prev"; then
12422 case $ac_word in
12423 i?86 | x86_64 | ppc | ppc64)
12424 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12425 ac_arch=$ac_word
12426 else
12427 ac_cv_c_bigendian=universal
12428 break
12429 fi
12430 ;;
12431 esac
12432 ac_prev=
12433 elif test "x$ac_word" = "x-arch"; then
12434 ac_prev=arch
12435 fi
12436 done
12437 fi
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 if test $ac_cv_c_bigendian = unknown; then
12440 # See if sys/param.h defines the BYTE_ORDER macro.
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 #include <sys/types.h>
12444 #include <sys/param.h>
12445
12446 int
12447 main ()
12448 {
12449 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12450 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12451 && LITTLE_ENDIAN)
12452 bogus endian macros
12453 #endif
12454
12455 ;
12456 return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460 # It does; now see whether it defined to BIG_ENDIAN or not.
12461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12462 /* end confdefs.h. */
12463 #include <sys/types.h>
12464 #include <sys/param.h>
12465
12466 int
12467 main ()
12468 {
12469 #if BYTE_ORDER != BIG_ENDIAN
12470 not big endian
12471 #endif
12472
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_compile "$LINENO"; then :
12478 ac_cv_c_bigendian=yes
12479 else
12480 ac_cv_c_bigendian=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 fi
12484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 fi
12486 if test $ac_cv_c_bigendian = unknown; then
12487 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h. */
12490 #include <limits.h>
12491
12492 int
12493 main ()
12494 {
12495 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12496 bogus endian macros
12497 #endif
12498
12499 ;
12500 return 0;
12501 }
12502 _ACEOF
12503 if ac_fn_c_try_compile "$LINENO"; then :
12504 # It does; now see whether it defined to _BIG_ENDIAN or not.
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 #include <limits.h>
12508
12509 int
12510 main ()
12511 {
12512 #ifndef _BIG_ENDIAN
12513 not big endian
12514 #endif
12515
12516 ;
12517 return 0;
12518 }
12519 _ACEOF
12520 if ac_fn_c_try_compile "$LINENO"; then :
12521 ac_cv_c_bigendian=yes
12522 else
12523 ac_cv_c_bigendian=no
12524 fi
12525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 fi
12527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 fi
12529 if test $ac_cv_c_bigendian = unknown; then
12530 # Compile a test program.
12531 if test "$cross_compiling" = yes; then :
12532 # Try to guess by grepping values from an object file.
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535 short int ascii_mm[] =
12536 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12537 short int ascii_ii[] =
12538 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12539 int use_ascii (int i) {
12540 return ascii_mm[i] + ascii_ii[i];
12541 }
12542 short int ebcdic_ii[] =
12543 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12544 short int ebcdic_mm[] =
12545 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12546 int use_ebcdic (int i) {
12547 return ebcdic_mm[i] + ebcdic_ii[i];
12548 }
12549 extern int foo;
12550
12551 int
12552 main ()
12553 {
12554 return use_ascii (foo) == use_ebcdic (foo);
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 if ac_fn_c_try_compile "$LINENO"; then :
12560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12561 ac_cv_c_bigendian=yes
12562 fi
12563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12564 if test "$ac_cv_c_bigendian" = unknown; then
12565 ac_cv_c_bigendian=no
12566 else
12567 # finding both strings is unlikely to happen, but who knows?
12568 ac_cv_c_bigendian=unknown
12569 fi
12570 fi
12571 fi
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 else
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576 $ac_includes_default
12577 int
12578 main ()
12579 {
12580
12581 /* Are we little or big endian? From Harbison&Steele. */
12582 union
12583 {
12584 long int l;
12585 char c[sizeof (long int)];
12586 } u;
12587 u.l = 1;
12588 return u.c[sizeof (long int) - 1] == 1;
12589
12590 ;
12591 return 0;
12592 }
12593 _ACEOF
12594 if ac_fn_c_try_run "$LINENO"; then :
12595 ac_cv_c_bigendian=no
12596 else
12597 ac_cv_c_bigendian=yes
12598 fi
12599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12600 conftest.$ac_objext conftest.beam conftest.$ac_ext
12601 fi
12602
12603 fi
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12606 $as_echo "$ac_cv_c_bigendian" >&6; }
12607 case $ac_cv_c_bigendian in #(
12608 yes)
12609 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12610 ;; #(
12611 no)
12612 ;; #(
12613 universal)
12614
12615 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12616
12617 ;; #(
12618 *)
12619 as_fn_error "unknown endianness
12620 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12621 esac
12622
12623
12624 # The cast to long int works around a bug in the HP C Compiler
12625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12627 # This bug is HP SR number 8606223364.
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12629 $as_echo_n "checking size of int64_t... " >&6; }
12630 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
12634
12635 else
12636 if test "$ac_cv_type_int64_t" = yes; then
12637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12639 { as_fn_set_status 77
12640 as_fn_error "cannot compute sizeof (int64_t)
12641 See \`config.log' for more details." "$LINENO" 5; }; }
12642 else
12643 ac_cv_sizeof_int64_t=0
12644 fi
12645 fi
12646
12647 fi
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12649 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12650
12651
12652
12653 cat >>confdefs.h <<_ACEOF
12654 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12655 _ACEOF
12656
12657
12658 # The cast to long int works around a bug in the HP C Compiler
12659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12661 # This bug is HP SR number 8606223364.
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12663 $as_echo_n "checking size of long long... " >&6; }
12664 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12668
12669 else
12670 if test "$ac_cv_type_long_long" = yes; then
12671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12673 { as_fn_set_status 77
12674 as_fn_error "cannot compute sizeof (long long)
12675 See \`config.log' for more details." "$LINENO" 5; }; }
12676 else
12677 ac_cv_sizeof_long_long=0
12678 fi
12679 fi
12680
12681 fi
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12683 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12684
12685
12686
12687 cat >>confdefs.h <<_ACEOF
12688 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12689 _ACEOF
12690
12691
12692
12693 if test "$ac_cv_sizeof_int64_t" = 8; then
12694 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12695 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12696
12697 fi
12698
12699 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12700 if test "x$ac_cv_type_int64_t" = x""yes; then :
12701
12702 fi
12703
12704 elif test "$ac_cv_sizeof_long_long" = 8; then
12705 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12706 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12707
12708 else
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define uint64_t unsigned long long
12712 _ACEOF
12713
12714 fi
12715
12716 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12717 if test "x$ac_cv_type_int64_t" = x""yes; then :
12718
12719 else
12720
12721 cat >>confdefs.h <<_ACEOF
12722 #define int64_t long long
12723 _ACEOF
12724
12725 fi
12726
12727 else
12728 as_fn_error "Your system doesn't appear to have 64 bit integers. Aborting." "$LINENO" 5
12729 fi
12730
12731
12732 # Checks for library functions.
12733
12734
12735
12736 for ac_func in $ac_func_list
12737 do :
12738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12740 eval as_val=\$$as_ac_var
12741 if test "x$as_val" = x""yes; then :
12742 cat >>confdefs.h <<_ACEOF
12743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12744 _ACEOF
12745
12746 fi
12747 done
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771 # Checks for header files.
12772
12773
12774
12775 for ac_header in $ac_header_list
12776 do :
12777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12779 "
12780 eval as_val=\$$as_ac_Header
12781 if test "x$as_val" = x""yes; then :
12782 cat >>confdefs.h <<_ACEOF
12783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12784 _ACEOF
12785
12786 fi
12787
12788 done
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12821 $as_echo_n "checking for /dev/null... " >&6; }
12822 if test -c /dev/null ; then
12823
12824 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12825
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12827 $as_echo "yes" >&6; }
12828 else
12829
12830 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12831
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12833 $as_echo "no - using devnull.log" >&6; }
12834 fi
12835
12836
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12838 $as_echo_n "checking for library containing crypt... " >&6; }
12839 if test "${ac_cv_search_crypt+set}" = set; then :
12840 $as_echo_n "(cached) " >&6
12841 else
12842 ac_func_search_save_LIBS=$LIBS
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char crypt ();
12853 int
12854 main ()
12855 {
12856 return crypt ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 for ac_lib in '' crypt; do
12862 if test -z "$ac_lib"; then
12863 ac_res="none required"
12864 else
12865 ac_res=-l$ac_lib
12866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12867 fi
12868 if ac_fn_c_try_link "$LINENO"; then :
12869 ac_cv_search_crypt=$ac_res
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext \
12872 conftest$ac_exeext
12873 if test "${ac_cv_search_crypt+set}" = set; then :
12874 break
12875 fi
12876 done
12877 if test "${ac_cv_search_crypt+set}" = set; then :
12878
12879 else
12880 ac_cv_search_crypt=no
12881 fi
12882 rm conftest.$ac_ext
12883 LIBS=$ac_func_search_save_LIBS
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12886 $as_echo "$ac_cv_search_crypt" >&6; }
12887 ac_res=$ac_cv_search_crypt
12888 if test "$ac_res" != no; then :
12889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12890
12891 fi
12892
12893
12894
12895
12896 # Check whether --with-zlib-path was given.
12897 if test "${with_zlib_path+set}" = set; then :
12898 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12899 fi
12900
12901
12902 # Check whether --enable-zlib was given.
12903 if test "${enable_zlib+set}" = set; then :
12904 enableval=$enable_zlib; zlib=$enableval
12905 else
12906 zlib=yes
12907 fi
12908
12909
12910 if test "$zlib" = yes; then
12911 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12912 if test "x$ac_cv_header_zlib_h" = x""yes; then :
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12914 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12915 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
12917 else
12918 ac_check_lib_save_LIBS=$LIBS
12919 LIBS="-lz $LIBS"
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12922
12923 /* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
12926 #ifdef __cplusplus
12927 extern "C"
12928 #endif
12929 char zlibVersion ();
12930 int
12931 main ()
12932 {
12933 return zlibVersion ();
12934 ;
12935 return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939 ac_cv_lib_z_zlibVersion=yes
12940 else
12941 ac_cv_lib_z_zlibVersion=no
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12948 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12949 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12950
12951 LIBS="-lz $LIBS"
12952
12953 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12954
12955
12956 else
12957 zlib=no
12958 fi
12959
12960
12961 else
12962 zlib=no
12963 fi
12964
12965
12966 fi
12967
12968
12969 # Check whether --enable-openssl was given.
12970 if test "${enable_openssl+set}" = set; then :
12971 enableval=$enable_openssl; cf_enable_openssl=$enableval
12972 else
12973 cf_enable_openssl="auto"
12974 fi
12975
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12977 $as_echo_n "checking for OpenSSL... " >&6; }
12978 if test "$cf_enable_openssl" != "no"; then
12979 cf_openssl_basedir=""
12980 if test "$cf_enable_openssl" != "auto" &&
12981 test "$cf_enable_openssl" != "yes"; then
12982 cf_openssl_basedir="${cf_enable_openssl}"
12983 else
12984 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12985 /opt /opt/openssl /usr/local/openssl; do
12986 if test -f "${dirs}/include/openssl/opensslv.h"; then
12987 cf_openssl_basedir="${dirs}"
12988 break
12989 fi
12990 done
12991 unset dirs
12992 fi
12993
12994 if test ! -z "$cf_openssl_basedir"; then
12995 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12996 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12997 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12998 else
12999 cf_openssl_basedir=""
13000 fi
13001 else
13002 if test -f "/usr/include/openssl/opensslv.h"; then
13003 cf_openssl_basedir="/usr"
13004 fi
13005 fi
13006
13007 if test ! -z "$cf_openssl_basedir"; then
13008 LIBS="-lcrypto -lssl $LIBS"
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13010 $as_echo "$cf_openssl_basedir" >&6; }
13011 cf_enable_openssl="yes"
13012
13013 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13014
13015 else
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13017 $as_echo "not found. Please check your path." >&6; }
13018 cf_enable_openssl="no"
13019 fi
13020 unset cf_openssl_basedir
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13023 $as_echo "disabled" >&6; }
13024 fi
13025 if test "$cf_enable_openssl" = yes; then
13026 ENABLE_SSL_TRUE=
13027 ENABLE_SSL_FALSE='#'
13028 else
13029 ENABLE_SSL_TRUE='#'
13030 ENABLE_SSL_FALSE=
13031 fi
13032
13033
13034
13035 # Check whether --enable-assert was given.
13036 if test "${enable_assert+set}" = set; then :
13037 enableval=$enable_assert; assert=$enableval
13038 else
13039 assert=no
13040 fi
13041
13042 if test "$assert" = no; then
13043
13044 $as_echo "#define NDEBUG 1" >>confdefs.h
13045
13046 fi
13047
13048
13049 # Check whether --enable-small-net was given.
13050 if test "${enable_small_net+set}" = set; then :
13051 enableval=$enable_small_net; small_net=$enableval
13052 else
13053 small_net=no
13054 fi
13055
13056
13057 if test "$small_net" = yes; then
13058
13059 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13060
13061
13062 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13063
13064
13065 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13066
13067
13068 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13069
13070
13071 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13072
13073
13074 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13075
13076
13077 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13078
13079
13080 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13081
13082 else
13083
13084 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13085
13086
13087 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13088
13089
13090 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13091
13092
13093 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13094
13095
13096 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13097
13098
13099 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13100
13101
13102 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13103
13104
13105 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13106
13107 fi
13108
13109
13110 # Argument processing.
13111
13112 desired_iopoll_mechanism="none"
13113 # Check whether --enable-kqueue was given.
13114 if test "${enable_kqueue+set}" = set; then :
13115 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13116 fi
13117
13118 # Check whether --enable-epoll was given.
13119 if test "${enable_epoll+set}" = set; then :
13120 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13121 fi
13122
13123 # Check whether --enable-devpoll was given.
13124 if test "${enable_devpoll+set}" = set; then :
13125 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13126 fi
13127
13128 # Check whether --enable-rtsigio was given.
13129 if test "${enable_rtsigio+set}" = set; then :
13130 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13131 fi
13132
13133 # Check whether --enable-poll was given.
13134 if test "${enable_poll+set}" = set; then :
13135 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13136 fi
13137
13138 # Check whether --enable-select was given.
13139 if test "${enable_select+set}" = set; then :
13140 enableval=$enable_select; desired_iopoll_mechanism="select"
13141 fi
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13144 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13145 iopoll_mechanism_none=0
13146
13147 cat >>confdefs.h <<_ACEOF
13148 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13149 _ACEOF
13150
13151 iopoll_mechanism_kqueue=1
13152
13153 cat >>confdefs.h <<_ACEOF
13154 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13155 _ACEOF
13156
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13161 #define kevent innocuous_kevent
13162
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char kevent (); below.
13165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166 <limits.h> exists even on freestanding compilers. */
13167
13168 #ifdef __STDC__
13169 # include <limits.h>
13170 #else
13171 # include <assert.h>
13172 #endif
13173
13174 #undef kevent
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char kevent ();
13183 /* The GNU C library defines this for functions which it implements
13184 to always fail with ENOSYS. Some functions are actually named
13185 something starting with __ and the normal name is an alias. */
13186 #if defined __stub_kevent || defined __stub___kevent
13187 choke me
13188 #endif
13189
13190 int
13191 main ()
13192 {
13193 return kevent ();
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199 is_kqueue_mechanism_available="yes"
13200 else
13201 is_kqueue_mechanism_available="no"
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 iopoll_mechanism_epoll=2
13206
13207 cat >>confdefs.h <<_ACEOF
13208 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13209 _ACEOF
13210
13211 if test "$cross_compiling" = yes; then :
13212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214 as_fn_error "cannot run test program while cross compiling
13215 See \`config.log' for more details." "$LINENO" 5; }
13216 else
13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h. */
13219
13220 #include <sys/epoll.h>
13221 #include <sys/syscall.h>
13222 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13223 #if !defined(__NR_epoll_create)
13224 #if defined(__ia64__)
13225 #define __NR_epoll_create 1243
13226 #elif defined(__x86_64__)
13227 #define __NR_epoll_create 214
13228 #elif defined(__sparc64__) || defined(__sparc__)
13229 #define __NR_epoll_create 193
13230 #elif defined(__s390__) || defined(__m68k__)
13231 #define __NR_epoll_create 249
13232 #elif defined(__ppc64__) || defined(__ppc__)
13233 #define __NR_epoll_create 236
13234 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13235 #define __NR_epoll_create 224
13236 #elif defined(__alpha__)
13237 #define __NR_epoll_create 407
13238 #elif defined(__sh64__)
13239 #define __NR_epoll_create 282
13240 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13241 #define __NR_epoll_create 254
13242 #else
13243 #error No system call numbers defined for epoll family.
13244 #endif
13245 #endif
13246 _syscall1(int, epoll_create, int, size)
13247 #endif
13248 main() { return epoll_create(256) == -1 ? 1 : 0; }
13249
13250 _ACEOF
13251 if ac_fn_c_try_run "$LINENO"; then :
13252 is_epoll_mechanism_available="yes"
13253 else
13254 is_epoll_mechanism_available="no"
13255 fi
13256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13257 conftest.$ac_objext conftest.beam conftest.$ac_ext
13258 fi
13259
13260 iopoll_mechanism_devpoll=3
13261
13262 cat >>confdefs.h <<_ACEOF
13263 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13264 _ACEOF
13265
13266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 /* end confdefs.h. */
13268 #include <devpoll.h>
13269 int
13270 main ()
13271 {
13272
13273 ;
13274 return 0;
13275 }
13276 _ACEOF
13277 if ac_fn_c_try_compile "$LINENO"; then :
13278 is_devpoll_mechanism_available="yes"
13279 else
13280 is_devpoll_mechanism_available="no"
13281 fi
13282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 if test "$is_devpoll_mechanism_available" = "yes" ; then
13284
13285 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13286
13287 fi
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290 #include <sys/devpoll.h>
13291 int
13292 main ()
13293 {
13294
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 if ac_fn_c_try_compile "$LINENO"; then :
13300 is_devpoll_mechanism_available="yes"
13301 else
13302 is_devpoll_mechanism_available="no"
13303 fi
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 if test "$is_devpoll_mechanism_available" = "yes" ; then
13306
13307 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13308
13309 fi
13310 iopoll_mechanism_rtsigio=4
13311
13312 cat >>confdefs.h <<_ACEOF
13313 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13314 _ACEOF
13315
13316 if test "$cross_compiling" = yes; then :
13317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13319 as_fn_error "cannot run test program while cross compiling
13320 See \`config.log' for more details." "$LINENO" 5; }
13321 else
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324
13325 #include <fcntl.h>
13326 #ifdef F_SETSIG
13327 main () { return 0; } /* F_SETSIG defined */
13328 #else
13329 main () { return 1; } /* F_SETSIG not defined */
13330 #endif
13331
13332 int
13333 main ()
13334 {
13335
13336 ;
13337 return 0;
13338 }
13339 _ACEOF
13340 if ac_fn_c_try_run "$LINENO"; then :
13341 is_rtsigio_mechanism_available="yes"
13342 else
13343 is_rtsigio_mechanism_available="no"
13344 fi
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13346 conftest.$ac_objext conftest.beam conftest.$ac_ext
13347 fi
13348
13349 iopoll_mechanism_poll=5
13350
13351 cat >>confdefs.h <<_ACEOF
13352 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13353 _ACEOF
13354
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13359 #define poll innocuous_poll
13360
13361 /* System header to define __stub macros and hopefully few prototypes,
13362 which can conflict with char poll (); below.
13363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13364 <limits.h> exists even on freestanding compilers. */
13365
13366 #ifdef __STDC__
13367 # include <limits.h>
13368 #else
13369 # include <assert.h>
13370 #endif
13371
13372 #undef poll
13373
13374 /* Override any GCC internal prototype to avoid an error.
13375 Use char because int might match the return type of a GCC
13376 builtin and then its argument prototype would still apply. */
13377 #ifdef __cplusplus
13378 extern "C"
13379 #endif
13380 char poll ();
13381 /* The GNU C library defines this for functions which it implements
13382 to always fail with ENOSYS. Some functions are actually named
13383 something starting with __ and the normal name is an alias. */
13384 #if defined __stub_poll || defined __stub___poll
13385 choke me
13386 #endif
13387
13388 int
13389 main ()
13390 {
13391 return poll ();
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"; then :
13397 is_poll_mechanism_available="yes"
13398 else
13399 is_poll_mechanism_available="no"
13400 fi
13401 rm -f core conftest.err conftest.$ac_objext \
13402 conftest$ac_exeext conftest.$ac_ext
13403 iopoll_mechanism_select=6
13404
13405 cat >>confdefs.h <<_ACEOF
13406 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13407 _ACEOF
13408
13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h. */
13411 /* Define select to an innocuous variant, in case <limits.h> declares select.
13412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13413 #define select innocuous_select
13414
13415 /* System header to define __stub macros and hopefully few prototypes,
13416 which can conflict with char select (); below.
13417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13418 <limits.h> exists even on freestanding compilers. */
13419
13420 #ifdef __STDC__
13421 # include <limits.h>
13422 #else
13423 # include <assert.h>
13424 #endif
13425
13426 #undef select
13427
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 char select ();
13435 /* The GNU C library defines this for functions which it implements
13436 to always fail with ENOSYS. Some functions are actually named
13437 something starting with __ and the normal name is an alias. */
13438 #if defined __stub_select || defined __stub___select
13439 choke me
13440 #endif
13441
13442 int
13443 main ()
13444 {
13445 return select ();
13446 ;
13447 return 0;
13448 }
13449 _ACEOF
13450 if ac_fn_c_try_link "$LINENO"; then :
13451 is_select_mechanism_available="yes"
13452 else
13453 is_select_mechanism_available="no"
13454 fi
13455 rm -f core conftest.err conftest.$ac_objext \
13456 conftest$ac_exeext conftest.$ac_ext
13457 optimal_iopoll_mechanism="none"
13458 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13459 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13460 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13461 optimal_iopoll_mechanism="$mechanism"
13462 break
13463 fi
13464 done
13465 if test "$desired_iopoll_mechanism" = "none" ; then
13466 if test "$optimal_iopoll_mechanism" = "none" ; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13468 $as_echo "none" >&6; }
13469 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13470 else
13471 selected_iopoll_mechanism=$optimal_iopoll_mechanism
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13473 $as_echo "$selected_iopoll_mechanism" >&6; }
13474 fi
13475 else
13476 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13477 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13478 selected_iopoll_mechanism=$desired_iopoll_mechanism
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13480 $as_echo "$selected_iopoll_mechanism" >&6; }
13481 else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13483 $as_echo "none" >&6; }
13484 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13485 fi
13486 fi
13487 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13488
13489 cat >>confdefs.h <<_ACEOF
13490 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13491 _ACEOF
13492
13493
13494
13495
13496 # Check whether --with-nicklen was given.
13497 if test "${with_nicklen+set}" = set; then :
13498 withval=$with_nicklen; nicklen="$withval"
13499 else
13500 nicklen="9"
13501 fi
13502
13503
13504 cat >>confdefs.h <<_ACEOF
13505 #define NICKLEN ($nicklen+1)
13506 _ACEOF
13507
13508
13509
13510
13511 # Check whether --with-topiclen was given.
13512 if test "${with_topiclen+set}" = set; then :
13513 withval=$with_topiclen; topiclen="$withval"
13514 else
13515 topiclen="160"
13516 fi
13517
13518
13519 cat >>confdefs.h <<_ACEOF
13520 #define TOPICLEN ($topiclen+1)
13521 _ACEOF
13522
13523
13524
13525
13526 # Check whether --with-syslog-facility was given.
13527 if test "${with_syslog_facility+set}" = set; then :
13528 withval=$with_syslog_facility; syslog_facility="$withval"
13529 else
13530 syslog_facility="LOG_LOCAL4"
13531 fi
13532
13533
13534 cat >>confdefs.h <<_ACEOF
13535 #define LOG_FACILITY $syslog_facility
13536 _ACEOF
13537
13538
13539
13540 # Check whether --enable-efnet was given.
13541 if test "${enable_efnet+set}" = set; then :
13542 enableval=$enable_efnet; efnet="$enableval"
13543 else
13544 efnet="no"
13545 fi
13546
13547 if test "$efnet" = "yes" ; then
13548 use_efnet="yes"
13549
13550 $as_echo "#define EFNET 1" >>confdefs.h
13551
13552
13553 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13554
13555 else
13556
13557 $as_echo "#define INVARIANTS 1" >>confdefs.h
13558
13559 use_efnet="no"
13560 fi
13561 if test "$use_efnet" = "yes"; then
13562 EFNET_TRUE=
13563 EFNET_FALSE='#'
13564 else
13565 EFNET_TRUE='#'
13566 EFNET_FALSE=
13567 fi
13568
13569
13570
13571 # Check whether --enable-halfops was given.
13572 if test "${enable_halfops+set}" = set; then :
13573 enableval=$enable_halfops; halfops="$enableval"
13574 else
13575 halfops="no"
13576 fi
13577
13578 if test "$halfops" = "yes" ; then
13579
13580 $as_echo "#define HALFOPS 1" >>confdefs.h
13581
13582 fi
13583
13584
13585 # Check whether --enable-debugging was given.
13586 if test "${enable_debugging+set}" = set; then :
13587 enableval=$enable_debugging; debugging="$enableval"
13588 else
13589 debugging="no"
13590 fi
13591
13592 if test "$debugging" = "yes" ; then
13593
13594 $as_echo "#define DEBUG 1" >>confdefs.h
13595
13596 CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13597 else
13598
13599 $as_echo "#define NDEBUG 1" >>confdefs.h
13600
13601 fi
13602
13603
13604 # Check whether --enable-warnings was given.
13605 if test "${enable_warnings+set}" = set; then :
13606 enableval=$enable_warnings; warnings="$enableval"
13607 else
13608 warnings="no"
13609 fi
13610
13611 if test "$warnings" = "yes" ; then
13612 CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused"
13613 fi
13614
13615
13616 for ac_header in syslog.h sys/syslog.h
13617 do :
13618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13620 eval as_val=\$$as_ac_Header
13621 if test "x$as_val" = x""yes; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13624 _ACEOF
13625
13626 fi
13627
13628 done
13629
13630 # Check whether --enable-syslog was given.
13631 if test "${enable_syslog+set}" = set; then :
13632 enableval=$enable_syslog; syslog="$enableval"
13633 else
13634 syslog="no"
13635 fi
13636
13637 if test "$enableval" != "no" ; then
13638 for option in $enableval ; do
13639 case "$option" in
13640 users)
13641 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13642 ;;
13643 oper)
13644 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13645 ;;
13646 yes) : ;;
13647 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13648 esac
13649 done
13650
13651 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13652
13653 fi
13654
13655
13656
13657 prefix_NONE=
13658 exec_prefix_NONE=
13659 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13660 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13661 eval ac_define_dir="\"$prefix\""
13662 eval ac_define_dir="\"$ac_define_dir\""
13663 PREFIX="$ac_define_dir"
13664
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define PREFIX "$ac_define_dir"
13668 _ACEOF
13669
13670 test "$prefix_NONE" && prefix=NONE
13671 test "$exec_prefix_NONE" && exec_prefix=NONE
13672
13673
13674 prefix_NONE=
13675 exec_prefix_NONE=
13676 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13677 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13678 eval ac_define_dir="\"$sysconfdir\""
13679 eval ac_define_dir="\"$ac_define_dir\""
13680 SYSCONFDIR="$ac_define_dir"
13681
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define SYSCONFDIR "$ac_define_dir"
13685 _ACEOF
13686
13687 test "$prefix_NONE" && prefix=NONE
13688 test "$exec_prefix_NONE" && exec_prefix=NONE
13689
13690
13691 prefix_NONE=
13692 exec_prefix_NONE=
13693 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13694 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13695 eval ac_define_dir="\"$libdir\""
13696 eval ac_define_dir="\"$ac_define_dir\""
13697 LIBDIR="$ac_define_dir"
13698
13699
13700 cat >>confdefs.h <<_ACEOF
13701 #define LIBDIR "$ac_define_dir"
13702 _ACEOF
13703
13704 test "$prefix_NONE" && prefix=NONE
13705 test "$exec_prefix_NONE" && exec_prefix=NONE
13706
13707
13708 prefix_NONE=
13709 exec_prefix_NONE=
13710 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13711 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13712 eval ac_define_dir="\"$datadir\""
13713 eval ac_define_dir="\"$ac_define_dir\""
13714 DATADIR="$ac_define_dir"
13715
13716
13717 cat >>confdefs.h <<_ACEOF
13718 #define DATADIR "$ac_define_dir"
13719 _ACEOF
13720
13721 test "$prefix_NONE" && prefix=NONE
13722 test "$exec_prefix_NONE" && exec_prefix=NONE
13723
13724
13725 prefix_NONE=
13726 exec_prefix_NONE=
13727 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13728 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13729 eval ac_define_dir="\"$localstatedir\""
13730 eval ac_define_dir="\"$ac_define_dir\""
13731 LOCALSTATEDIR="$ac_define_dir"
13732
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define LOCALSTATEDIR "$ac_define_dir"
13736 _ACEOF
13737
13738 test "$prefix_NONE" && prefix=NONE
13739 test "$exec_prefix_NONE" && exec_prefix=NONE
13740
13741
13742 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 lib/Makefile lib/pcre/Makefile tools/Makefile"
13743
13744
13745 cat >confcache <<\_ACEOF
13746 # This file is a shell script that caches the results of configure
13747 # tests run on this system so they can be shared between configure
13748 # scripts and configure runs, see configure's option --config-cache.
13749 # It is not useful on other systems. If it contains results you don't
13750 # want to keep, you may remove or edit it.
13751 #
13752 # config.status only pays attention to the cache file if you give it
13753 # the --recheck option to rerun configure.
13754 #
13755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13757 # following values.
13758
13759 _ACEOF
13760
13761 # The following way of writing the cache mishandles newlines in values,
13762 # but we know of no workaround that is simple, portable, and efficient.
13763 # So, we kill variables containing newlines.
13764 # Ultrix sh set writes to stderr and can't be redirected directly,
13765 # and sets the high bit in the cache file unless we assign to the vars.
13766 (
13767 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13768 eval ac_val=\$$ac_var
13769 case $ac_val in #(
13770 *${as_nl}*)
13771 case $ac_var in #(
13772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13774 esac
13775 case $ac_var in #(
13776 _ | IFS | as_nl) ;; #(
13777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13778 *) { eval $ac_var=; unset $ac_var;} ;;
13779 esac ;;
13780 esac
13781 done
13782
13783 (set) 2>&1 |
13784 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13785 *${as_nl}ac_space=\ *)
13786 # `set' does not quote correctly, so add quotes: double-quote
13787 # substitution turns \\\\ into \\, and sed turns \\ into \.
13788 sed -n \
13789 "s/'/'\\\\''/g;
13790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13791 ;; #(
13792 *)
13793 # `set' quotes correctly as required by POSIX, so do not add quotes.
13794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13795 ;;
13796 esac |
13797 sort
13798 ) |
13799 sed '
13800 /^ac_cv_env_/b end
13801 t clear
13802 :clear
13803 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13804 t end
13805 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13806 :end' >>confcache
13807 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13808 if test -w "$cache_file"; then
13809 test "x$cache_file" != "x/dev/null" &&
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13811 $as_echo "$as_me: updating cache $cache_file" >&6;}
13812 cat confcache >$cache_file
13813 else
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13815 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13816 fi
13817 fi
13818 rm -f confcache
13819
13820 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13821 # Let make expand exec_prefix.
13822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13823
13824 DEFS=-DHAVE_CONFIG_H
13825
13826 ac_libobjs=
13827 ac_ltlibobjs=
13828 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13829 # 1. Remove the extension, and $U if already installed.
13830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13833 # will be set to the directory where LIBOBJS objects are built.
13834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13836 done
13837 LIBOBJS=$ac_libobjs
13838
13839 LTLIBOBJS=$ac_ltlibobjs
13840
13841
13842 if test -n "$EXEEXT"; then
13843 am__EXEEXT_TRUE=
13844 am__EXEEXT_FALSE='#'
13845 else
13846 am__EXEEXT_TRUE='#'
13847 am__EXEEXT_FALSE=
13848 fi
13849
13850 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13851 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13853 fi
13854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13855 as_fn_error "conditional \"AMDEP\" was never defined.
13856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13857 fi
13858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13859 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13861 fi
13862 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13863 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13865 fi
13866 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13867 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13869 fi
13870 LT_CONFIG_H=config.h
13871
13872 _ltdl_libobjs=
13873 _ltdl_ltlibobjs=
13874 if test -n "$_LT_LIBOBJS"; then
13875 # Remove the extension.
13876 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13877 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13878 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13879 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13880 done
13881 fi
13882 ltdl_LIBOBJS=$_ltdl_libobjs
13883
13884 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13885
13886
13887
13888 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13889 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13891 fi
13892 if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13893 as_fn_error "conditional \"EFNET\" was never defined.
13894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13895 fi
13896
13897 : ${CONFIG_STATUS=./config.status}
13898 ac_write_fail=0
13899 ac_clean_files_save=$ac_clean_files
13900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13903 as_write_fail=0
13904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13905 #! $SHELL
13906 # Generated by $as_me.
13907 # Run this file to recreate the current configuration.
13908 # Compiler output produced by configure, useful for debugging
13909 # configure, is in config.log if it exists.
13910
13911 debug=false
13912 ac_cs_recheck=false
13913 ac_cs_silent=false
13914
13915 SHELL=\${CONFIG_SHELL-$SHELL}
13916 export SHELL
13917 _ASEOF
13918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13919 ## -------------------- ##
13920 ## M4sh Initialization. ##
13921 ## -------------------- ##
13922
13923 # Be more Bourne compatible
13924 DUALCASE=1; export DUALCASE # for MKS sh
13925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13926 emulate sh
13927 NULLCMD=:
13928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13929 # is contrary to our usage. Disable this feature.
13930 alias -g '${1+"$@"}'='"$@"'
13931 setopt NO_GLOB_SUBST
13932 else
13933 case `(set -o) 2>/dev/null` in #(
13934 *posix*) :
13935 set -o posix ;; #(
13936 *) :
13937 ;;
13938 esac
13939 fi
13940
13941
13942 as_nl='
13943 '
13944 export as_nl
13945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13949 # Prefer a ksh shell builtin over an external printf program on Solaris,
13950 # but without wasting forks for bash or zsh.
13951 if test -z "$BASH_VERSION$ZSH_VERSION" \
13952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13953 as_echo='print -r --'
13954 as_echo_n='print -rn --'
13955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13956 as_echo='printf %s\n'
13957 as_echo_n='printf %s'
13958 else
13959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13961 as_echo_n='/usr/ucb/echo -n'
13962 else
13963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13964 as_echo_n_body='eval
13965 arg=$1;
13966 case $arg in #(
13967 *"$as_nl"*)
13968 expr "X$arg" : "X\\(.*\\)$as_nl";
13969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13970 esac;
13971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13972 '
13973 export as_echo_n_body
13974 as_echo_n='sh -c $as_echo_n_body as_echo'
13975 fi
13976 export as_echo_body
13977 as_echo='sh -c $as_echo_body as_echo'
13978 fi
13979
13980 # The user is always right.
13981 if test "${PATH_SEPARATOR+set}" != set; then
13982 PATH_SEPARATOR=:
13983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13985 PATH_SEPARATOR=';'
13986 }
13987 fi
13988
13989
13990 # IFS
13991 # We need space, tab and new line, in precisely that order. Quoting is
13992 # there to prevent editors from complaining about space-tab.
13993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13994 # splitting by setting IFS to empty value.)
13995 IFS=" "" $as_nl"
13996
13997 # Find who we are. Look in the path if we contain no directory separator.
13998 case $0 in #((
13999 *[\\/]* ) as_myself=$0 ;;
14000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14002 do
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14006 done
14007 IFS=$as_save_IFS
14008
14009 ;;
14010 esac
14011 # We did not find ourselves, most probably we were run as `sh COMMAND'
14012 # in which case we are not to be found in the path.
14013 if test "x$as_myself" = x; then
14014 as_myself=$0
14015 fi
14016 if test ! -f "$as_myself"; then
14017 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14018 exit 1
14019 fi
14020
14021 # Unset variables that we do not need and which cause bugs (e.g. in
14022 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14023 # suppresses any "Segmentation fault" message there. '((' could
14024 # trigger a bug in pdksh 5.2.14.
14025 for as_var in BASH_ENV ENV MAIL MAILPATH
14026 do eval test x\${$as_var+set} = xset \
14027 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14028 done
14029 PS1='$ '
14030 PS2='> '
14031 PS4='+ '
14032
14033 # NLS nuisances.
14034 LC_ALL=C
14035 export LC_ALL
14036 LANGUAGE=C
14037 export LANGUAGE
14038
14039 # CDPATH.
14040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14041
14042
14043 # as_fn_error ERROR [LINENO LOG_FD]
14044 # ---------------------------------
14045 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14046 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14047 # script with status $?, using 1 if that was 0.
14048 as_fn_error ()
14049 {
14050 as_status=$?; test $as_status -eq 0 && as_status=1
14051 if test "$3"; then
14052 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14053 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14054 fi
14055 $as_echo "$as_me: error: $1" >&2
14056 as_fn_exit $as_status
14057 } # as_fn_error
14058
14059
14060 # as_fn_set_status STATUS
14061 # -----------------------
14062 # Set $? to STATUS, without forking.
14063 as_fn_set_status ()
14064 {
14065 return $1
14066 } # as_fn_set_status
14067
14068 # as_fn_exit STATUS
14069 # -----------------
14070 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14071 as_fn_exit ()
14072 {
14073 set +e
14074 as_fn_set_status $1
14075 exit $1
14076 } # as_fn_exit
14077
14078 # as_fn_unset VAR
14079 # ---------------
14080 # Portably unset VAR.
14081 as_fn_unset ()
14082 {
14083 { eval $1=; unset $1;}
14084 }
14085 as_unset=as_fn_unset
14086 # as_fn_append VAR VALUE
14087 # ----------------------
14088 # Append the text in VALUE to the end of the definition contained in VAR. Take
14089 # advantage of any shell optimizations that allow amortized linear growth over
14090 # repeated appends, instead of the typical quadratic growth present in naive
14091 # implementations.
14092 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14093 eval 'as_fn_append ()
14094 {
14095 eval $1+=\$2
14096 }'
14097 else
14098 as_fn_append ()
14099 {
14100 eval $1=\$$1\$2
14101 }
14102 fi # as_fn_append
14103
14104 # as_fn_arith ARG...
14105 # ------------------
14106 # Perform arithmetic evaluation on the ARGs, and store the result in the
14107 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14108 # must be portable across $(()) and expr.
14109 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14110 eval 'as_fn_arith ()
14111 {
14112 as_val=$(( $* ))
14113 }'
14114 else
14115 as_fn_arith ()
14116 {
14117 as_val=`expr "$@" || test $? -eq 1`
14118 }
14119 fi # as_fn_arith
14120
14121
14122 if expr a : '\(a\)' >/dev/null 2>&1 &&
14123 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14124 as_expr=expr
14125 else
14126 as_expr=false
14127 fi
14128
14129 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14130 as_basename=basename
14131 else
14132 as_basename=false
14133 fi
14134
14135 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14136 as_dirname=dirname
14137 else
14138 as_dirname=false
14139 fi
14140
14141 as_me=`$as_basename -- "$0" ||
14142 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14143 X"$0" : 'X\(//\)$' \| \
14144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14145 $as_echo X/"$0" |
14146 sed '/^.*\/\([^/][^/]*\)\/*$/{
14147 s//\1/
14148 q
14149 }
14150 /^X\/\(\/\/\)$/{
14151 s//\1/
14152 q
14153 }
14154 /^X\/\(\/\).*/{
14155 s//\1/
14156 q
14157 }
14158 s/.*/./; q'`
14159
14160 # Avoid depending upon Character Ranges.
14161 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14162 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14163 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14164 as_cr_digits='0123456789'
14165 as_cr_alnum=$as_cr_Letters$as_cr_digits
14166
14167 ECHO_C= ECHO_N= ECHO_T=
14168 case `echo -n x` in #(((((
14169 -n*)
14170 case `echo 'xy\c'` in
14171 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14172 xy) ECHO_C='\c';;
14173 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14174 ECHO_T=' ';;
14175 esac;;
14176 *)
14177 ECHO_N='-n';;
14178 esac
14179
14180 rm -f conf$$ conf$$.exe conf$$.file
14181 if test -d conf$$.dir; then
14182 rm -f conf$$.dir/conf$$.file
14183 else
14184 rm -f conf$$.dir
14185 mkdir conf$$.dir 2>/dev/null
14186 fi
14187 if (echo >conf$$.file) 2>/dev/null; then
14188 if ln -s conf$$.file conf$$ 2>/dev/null; then
14189 as_ln_s='ln -s'
14190 # ... but there are two gotchas:
14191 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14192 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14193 # In both cases, we have to default to `cp -p'.
14194 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14195 as_ln_s='cp -p'
14196 elif ln conf$$.file conf$$ 2>/dev/null; then
14197 as_ln_s=ln
14198 else
14199 as_ln_s='cp -p'
14200 fi
14201 else
14202 as_ln_s='cp -p'
14203 fi
14204 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14205 rmdir conf$$.dir 2>/dev/null
14206
14207
14208 # as_fn_mkdir_p
14209 # -------------
14210 # Create "$as_dir" as a directory, including parents if necessary.
14211 as_fn_mkdir_p ()
14212 {
14213
14214 case $as_dir in #(
14215 -*) as_dir=./$as_dir;;
14216 esac
14217 test -d "$as_dir" || eval $as_mkdir_p || {
14218 as_dirs=
14219 while :; do
14220 case $as_dir in #(
14221 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14222 *) as_qdir=$as_dir;;
14223 esac
14224 as_dirs="'$as_qdir' $as_dirs"
14225 as_dir=`$as_dirname -- "$as_dir" ||
14226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14227 X"$as_dir" : 'X\(//\)[^/]' \| \
14228 X"$as_dir" : 'X\(//\)$' \| \
14229 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14230 $as_echo X"$as_dir" |
14231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14232 s//\1/
14233 q
14234 }
14235 /^X\(\/\/\)[^/].*/{
14236 s//\1/
14237 q
14238 }
14239 /^X\(\/\/\)$/{
14240 s//\1/
14241 q
14242 }
14243 /^X\(\/\).*/{
14244 s//\1/
14245 q
14246 }
14247 s/.*/./; q'`
14248 test -d "$as_dir" && break
14249 done
14250 test -z "$as_dirs" || eval "mkdir $as_dirs"
14251 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14252
14253
14254 } # as_fn_mkdir_p
14255 if mkdir -p . 2>/dev/null; then
14256 as_mkdir_p='mkdir -p "$as_dir"'
14257 else
14258 test -d ./-p && rmdir ./-p
14259 as_mkdir_p=false
14260 fi
14261
14262 if test -x / >/dev/null 2>&1; then
14263 as_test_x='test -x'
14264 else
14265 if ls -dL / >/dev/null 2>&1; then
14266 as_ls_L_option=L
14267 else
14268 as_ls_L_option=
14269 fi
14270 as_test_x='
14271 eval sh -c '\''
14272 if test -d "$1"; then
14273 test -d "$1/.";
14274 else
14275 case $1 in #(
14276 -*)set "./$1";;
14277 esac;
14278 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14279 ???[sx]*):;;*)false;;esac;fi
14280 '\'' sh
14281 '
14282 fi
14283 as_executable_p=$as_test_x
14284
14285 # Sed expression to map a string onto a valid CPP name.
14286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14287
14288 # Sed expression to map a string onto a valid variable name.
14289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14290
14291
14292 exec 6>&1
14293 ## ----------------------------------- ##
14294 ## Main body of $CONFIG_STATUS script. ##
14295 ## ----------------------------------- ##
14296 _ASEOF
14297 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14298
14299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14300 # Save the log message, to keep $0 and so on meaningful, and to
14301 # report actual input values of CONFIG_FILES etc. instead of their
14302 # values after options handling.
14303 ac_log="
14304 This file was extended by ircd-hybrid $as_me 7.2.4, which was
14305 generated by GNU Autoconf 2.64. Invocation command line was
14306
14307 CONFIG_FILES = $CONFIG_FILES
14308 CONFIG_HEADERS = $CONFIG_HEADERS
14309 CONFIG_LINKS = $CONFIG_LINKS
14310 CONFIG_COMMANDS = $CONFIG_COMMANDS
14311 $ $0 $@
14312
14313 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14314 "
14315
14316 _ACEOF
14317
14318 case $ac_config_files in *"
14319 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14320 esac
14321
14322 case $ac_config_headers in *"
14323 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14324 esac
14325
14326
14327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14328 # Files that config.status was made for.
14329 config_files="$ac_config_files"
14330 config_headers="$ac_config_headers"
14331 config_commands="$ac_config_commands"
14332
14333 _ACEOF
14334
14335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14336 ac_cs_usage="\
14337 \`$as_me' instantiates files and other configuration actions
14338 from templates according to the current configuration. Unless the files
14339 and actions are specified as TAGs, all are instantiated by default.
14340
14341 Usage: $0 [OPTION]... [TAG]...
14342
14343 -h, --help print this help, then exit
14344 -V, --version print version number and configuration settings, then exit
14345 -q, --quiet, --silent
14346 do not print progress messages
14347 -d, --debug don't remove temporary files
14348 --recheck update $as_me by reconfiguring in the same conditions
14349 --file=FILE[:TEMPLATE]
14350 instantiate the configuration file FILE
14351 --header=FILE[:TEMPLATE]
14352 instantiate the configuration header FILE
14353
14354 Configuration files:
14355 $config_files
14356
14357 Configuration headers:
14358 $config_headers
14359
14360 Configuration commands:
14361 $config_commands
14362
14363 Report bugs to the package provider."
14364
14365 _ACEOF
14366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14367 ac_cs_version="\\
14368 ircd-hybrid config.status 7.2.4
14369 configured by $0, generated by GNU Autoconf 2.64,
14370 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14371
14372 Copyright (C) 2009 Free Software Foundation, Inc.
14373 This config.status script is free software; the Free Software Foundation
14374 gives unlimited permission to copy, distribute and modify it."
14375
14376 ac_pwd='$ac_pwd'
14377 srcdir='$srcdir'
14378 INSTALL='$INSTALL'
14379 MKDIR_P='$MKDIR_P'
14380 AWK='$AWK'
14381 test -n "\$AWK" || AWK=awk
14382 _ACEOF
14383
14384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385 # The default lists apply if the user does not specify any file.
14386 ac_need_defaults=:
14387 while test $# != 0
14388 do
14389 case $1 in
14390 --*=*)
14391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14393 ac_shift=:
14394 ;;
14395 *)
14396 ac_option=$1
14397 ac_optarg=$2
14398 ac_shift=shift
14399 ;;
14400 esac
14401
14402 case $ac_option in
14403 # Handling of the options.
14404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14405 ac_cs_recheck=: ;;
14406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14407 $as_echo "$ac_cs_version"; exit ;;
14408 --debug | --debu | --deb | --de | --d | -d )
14409 debug=: ;;
14410 --file | --fil | --fi | --f )
14411 $ac_shift
14412 case $ac_optarg in
14413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14414 esac
14415 as_fn_append CONFIG_FILES " '$ac_optarg'"
14416 ac_need_defaults=false;;
14417 --header | --heade | --head | --hea )
14418 $ac_shift
14419 case $ac_optarg in
14420 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14421 esac
14422 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14423 ac_need_defaults=false;;
14424 --he | --h)
14425 # Conflict between --help and --header
14426 as_fn_error "ambiguous option: \`$1'
14427 Try \`$0 --help' for more information.";;
14428 --help | --hel | -h )
14429 $as_echo "$ac_cs_usage"; exit ;;
14430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14432 ac_cs_silent=: ;;
14433
14434 # This is an error.
14435 -*) as_fn_error "unrecognized option: \`$1'
14436 Try \`$0 --help' for more information." ;;
14437
14438 *) as_fn_append ac_config_targets " $1"
14439 ac_need_defaults=false ;;
14440
14441 esac
14442 shift
14443 done
14444
14445 ac_configure_extra_args=
14446
14447 if $ac_cs_silent; then
14448 exec 6>/dev/null
14449 ac_configure_extra_args="$ac_configure_extra_args --silent"
14450 fi
14451
14452 _ACEOF
14453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14454 if \$ac_cs_recheck; then
14455 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14456 shift
14457 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14458 CONFIG_SHELL='$SHELL'
14459 export CONFIG_SHELL
14460 exec "\$@"
14461 fi
14462
14463 _ACEOF
14464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14465 exec 5>>config.log
14466 {
14467 echo
14468 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14469 ## Running $as_me. ##
14470 _ASBOX
14471 $as_echo "$ac_log"
14472 } >&5
14473
14474 _ACEOF
14475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14476 #
14477 # INIT-COMMANDS
14478 #
14479 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14480
14481
14482 # The HP-UX ksh and POSIX shell print the target directory to stdout
14483 # if CDPATH is set.
14484 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14485
14486 sed_quote_subst='$sed_quote_subst'
14487 double_quote_subst='$double_quote_subst'
14488 delay_variable_subst='$delay_variable_subst'
14489 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14490 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14491 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14492 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14493 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14494 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14495 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14496 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14497 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14498 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14499 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14500 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14501 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14502 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14503 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14504 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14505 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14506 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14507 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14508 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14509 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14510 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14511 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14512 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14513 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14514 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14515 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14516 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14517 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14518 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14519 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14520 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14521 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14522 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14523 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14524 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14525 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14526 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14527 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14528 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14529 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14530 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14531 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14532 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14533 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"`'
14534 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"`'
14535 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14536 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14537 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14538 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14539 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14540 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14541 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14542 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14543 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14544 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14545 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14546 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14547 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14548 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14549 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14550 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14551 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14552 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14553 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14554 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14555 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14556 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14557 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14558 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14559 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14560 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14561 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14562 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14563 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14564 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14565 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14566 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14567 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14568 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14569 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14570 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14571 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14572 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14573 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14574 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14575 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14576 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14577 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14578 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14579 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14580 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14581 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14582 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14583 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14584 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14585 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14586 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14587 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14588 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14589 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14590 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14591 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14592 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14593 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14594 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14595 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14596 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14597 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14598 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14599 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14600 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14601 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14602 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14603 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14604 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14605 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14606 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14607
14608 LTCC='$LTCC'
14609 LTCFLAGS='$LTCFLAGS'
14610 compiler='$compiler_DEFAULT'
14611
14612 # Quote evaled strings.
14613 for var in SED \
14614 GREP \
14615 EGREP \
14616 FGREP \
14617 LD \
14618 NM \
14619 LN_S \
14620 lt_SP2NL \
14621 lt_NL2SP \
14622 reload_flag \
14623 OBJDUMP \
14624 deplibs_check_method \
14625 file_magic_cmd \
14626 AR \
14627 AR_FLAGS \
14628 STRIP \
14629 RANLIB \
14630 CC \
14631 CFLAGS \
14632 compiler \
14633 lt_cv_sys_global_symbol_pipe \
14634 lt_cv_sys_global_symbol_to_cdecl \
14635 lt_cv_sys_global_symbol_to_c_name_address \
14636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14637 SHELL \
14638 ECHO \
14639 lt_prog_compiler_no_builtin_flag \
14640 lt_prog_compiler_wl \
14641 lt_prog_compiler_pic \
14642 lt_prog_compiler_static \
14643 lt_cv_prog_compiler_c_o \
14644 need_locks \
14645 DSYMUTIL \
14646 NMEDIT \
14647 LIPO \
14648 OTOOL \
14649 OTOOL64 \
14650 shrext_cmds \
14651 export_dynamic_flag_spec \
14652 whole_archive_flag_spec \
14653 compiler_needs_object \
14654 with_gnu_ld \
14655 allow_undefined_flag \
14656 no_undefined_flag \
14657 hardcode_libdir_flag_spec \
14658 hardcode_libdir_flag_spec_ld \
14659 hardcode_libdir_separator \
14660 fix_srcfile_path \
14661 exclude_expsyms \
14662 include_expsyms \
14663 file_list_spec \
14664 variables_saved_for_relink \
14665 libname_spec \
14666 library_names_spec \
14667 soname_spec \
14668 finish_eval \
14669 old_striplib \
14670 striplib; do
14671 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14672 *[\\\\\\\`\\"\\\$]*)
14673 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14674 ;;
14675 *)
14676 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14677 ;;
14678 esac
14679 done
14680
14681 # Double-quote double-evaled strings.
14682 for var in reload_cmds \
14683 old_postinstall_cmds \
14684 old_postuninstall_cmds \
14685 old_archive_cmds \
14686 extract_expsyms_cmds \
14687 old_archive_from_new_cmds \
14688 old_archive_from_expsyms_cmds \
14689 archive_cmds \
14690 archive_expsym_cmds \
14691 module_cmds \
14692 module_expsym_cmds \
14693 export_symbols_cmds \
14694 prelink_cmds \
14695 postinstall_cmds \
14696 postuninstall_cmds \
14697 finish_cmds \
14698 sys_lib_search_path_spec \
14699 sys_lib_dlsearch_path_spec; do
14700 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14701 *[\\\\\\\`\\"\\\$]*)
14702 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14703 ;;
14704 *)
14705 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14706 ;;
14707 esac
14708 done
14709
14710 # Fix-up fallback echo if it was mangled by the above quoting rules.
14711 case \$lt_ECHO in
14712 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14713 ;;
14714 esac
14715
14716 ac_aux_dir='$ac_aux_dir'
14717 xsi_shell='$xsi_shell'
14718 lt_shell_append='$lt_shell_append'
14719
14720 # See if we are running on zsh, and set the options which allow our
14721 # commands through without removal of \ escapes INIT.
14722 if test -n "\${ZSH_VERSION+set}" ; then
14723 setopt NO_GLOB_SUBST
14724 fi
14725
14726
14727 PACKAGE='$PACKAGE'
14728 VERSION='$VERSION'
14729 TIMESTAMP='$TIMESTAMP'
14730 RM='$RM'
14731 ofile='$ofile'
14732
14733
14734
14735
14736 _ACEOF
14737
14738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14739
14740 # Handling of arguments.
14741 for ac_config_target in $ac_config_targets
14742 do
14743 case $ac_config_target in
14744 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14748 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14749 "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14750 "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14751 "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14752 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14753 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14754 "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14755 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14756 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14757 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14758 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14759 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14760 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14761 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14762 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14763 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14764 "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
14765 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14766
14767 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14768 esac
14769 done
14770
14771
14772 # If the user did not use the arguments to specify the items to instantiate,
14773 # then the envvar interface is used. Set only those that are not.
14774 # We use the long form for the default assignment because of an extremely
14775 # bizarre bug on SunOS 4.1.3.
14776 if $ac_need_defaults; then
14777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14778 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14779 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14780 fi
14781
14782 # Have a temporary directory for convenience. Make it in the build tree
14783 # simply because there is no reason against having it here, and in addition,
14784 # creating and moving files from /tmp can sometimes cause problems.
14785 # Hook for its removal unless debugging.
14786 # Note that there is a small window in which the directory will not be cleaned:
14787 # after its creation but before its name has been assigned to `$tmp'.
14788 $debug ||
14789 {
14790 tmp=
14791 trap 'exit_status=$?
14792 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14793 ' 0
14794 trap 'as_fn_exit 1' 1 2 13 15
14795 }
14796 # Create a (secure) tmp directory for tmp files.
14797
14798 {
14799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14800 test -n "$tmp" && test -d "$tmp"
14801 } ||
14802 {
14803 tmp=./conf$$-$RANDOM
14804 (umask 077 && mkdir "$tmp")
14805 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14806
14807 # Set up the scripts for CONFIG_FILES section.
14808 # No need to generate them if there are no CONFIG_FILES.
14809 # This happens for instance with `./config.status config.h'.
14810 if test -n "$CONFIG_FILES"; then
14811
14812
14813 ac_cr=`echo X | tr X '\015'`
14814 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14815 # But we know of no other shell where ac_cr would be empty at this
14816 # point, so we can use a bashism as a fallback.
14817 if test "x$ac_cr" = x; then
14818 eval ac_cr=\$\'\\r\'
14819 fi
14820 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14821 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14822 ac_cs_awk_cr='\r'
14823 else
14824 ac_cs_awk_cr=$ac_cr
14825 fi
14826
14827 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14828 _ACEOF
14829
14830
14831 {
14832 echo "cat >conf$$subs.awk <<_ACEOF" &&
14833 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14834 echo "_ACEOF"
14835 } >conf$$subs.sh ||
14836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14837 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14838 ac_delim='%!_!# '
14839 for ac_last_try in false false false false false :; do
14840 . ./conf$$subs.sh ||
14841 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14842
14843 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14844 if test $ac_delim_n = $ac_delim_num; then
14845 break
14846 elif $ac_last_try; then
14847 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14848 else
14849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14850 fi
14851 done
14852 rm -f conf$$subs.sh
14853
14854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14855 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14856 _ACEOF
14857 sed -n '
14858 h
14859 s/^/S["/; s/!.*/"]=/
14860 p
14861 g
14862 s/^[^!]*!//
14863 :repl
14864 t repl
14865 s/'"$ac_delim"'$//
14866 t delim
14867 :nl
14868 h
14869 s/\(.\{148\}\).*/\1/
14870 t more1
14871 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14872 p
14873 n
14874 b repl
14875 :more1
14876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14877 p
14878 g
14879 s/.\{148\}//
14880 t nl
14881 :delim
14882 h
14883 s/\(.\{148\}\).*/\1/
14884 t more2
14885 s/["\\]/\\&/g; s/^/"/; s/$/"/
14886 p
14887 b
14888 :more2
14889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14890 p
14891 g
14892 s/.\{148\}//
14893 t delim
14894 ' <conf$$subs.awk | sed '
14895 /^[^""]/{
14896 N
14897 s/\n//
14898 }
14899 ' >>$CONFIG_STATUS || ac_write_fail=1
14900 rm -f conf$$subs.awk
14901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14902 _ACAWK
14903 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14904 for (key in S) S_is_set[key] = 1
14905 FS = ""
14906
14907 }
14908 {
14909 line = $ 0
14910 nfields = split(line, field, "@")
14911 substed = 0
14912 len = length(field[1])
14913 for (i = 2; i < nfields; i++) {
14914 key = field[i]
14915 keylen = length(key)
14916 if (S_is_set[key]) {
14917 value = S[key]
14918 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14919 len += length(value) + length(field[++i])
14920 substed = 1
14921 } else
14922 len += 1 + keylen
14923 }
14924
14925 print line
14926 }
14927
14928 _ACAWK
14929 _ACEOF
14930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14931 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14932 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14933 else
14934 cat
14935 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14936 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14937 _ACEOF
14938
14939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14941 # trailing colons and then remove the whole line if VPATH becomes empty
14942 # (actually we leave an empty line to preserve line numbers).
14943 if test "x$srcdir" = x.; then
14944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14945 s/:*\$(srcdir):*/:/
14946 s/:*\${srcdir}:*/:/
14947 s/:*@srcdir@:*/:/
14948 s/^\([^=]*=[ ]*\):*/\1/
14949 s/:*$//
14950 s/^[^=]*=[ ]*$//
14951 }'
14952 fi
14953
14954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 fi # test -n "$CONFIG_FILES"
14956
14957 # Set up the scripts for CONFIG_HEADERS section.
14958 # No need to generate them if there are no CONFIG_HEADERS.
14959 # This happens for instance with `./config.status Makefile'.
14960 if test -n "$CONFIG_HEADERS"; then
14961 cat >"$tmp/defines.awk" <<\_ACAWK ||
14962 BEGIN {
14963 _ACEOF
14964
14965 # Transform confdefs.h into an awk script `defines.awk', embedded as
14966 # here-document in config.status, that substitutes the proper values into
14967 # config.h.in to produce config.h.
14968
14969 # Create a delimiter string that does not exist in confdefs.h, to ease
14970 # handling of long lines.
14971 ac_delim='%!_!# '
14972 for ac_last_try in false false :; do
14973 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14974 if test -z "$ac_t"; then
14975 break
14976 elif $ac_last_try; then
14977 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14978 else
14979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14980 fi
14981 done
14982
14983 # For the awk script, D is an array of macro values keyed by name,
14984 # likewise P contains macro parameters if any. Preserve backslash
14985 # newline sequences.
14986
14987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14988 sed -n '
14989 s/.\{148\}/&'"$ac_delim"'/g
14990 t rset
14991 :rset
14992 s/^[ ]*#[ ]*define[ ][ ]*/ /
14993 t def
14994 d
14995 :def
14996 s/\\$//
14997 t bsnl
14998 s/["\\]/\\&/g
14999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15000 D["\1"]=" \3"/p
15001 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15002 d
15003 :bsnl
15004 s/["\\]/\\&/g
15005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15006 D["\1"]=" \3\\\\\\n"\\/p
15007 t cont
15008 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15009 t cont
15010 d
15011 :cont
15012 n
15013 s/.\{148\}/&'"$ac_delim"'/g
15014 t clear
15015 :clear
15016 s/\\$//
15017 t bsnlc
15018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15019 d
15020 :bsnlc
15021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15022 b cont
15023 ' <confdefs.h | sed '
15024 s/'"$ac_delim"'/"\\\
15025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15026
15027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15028 for (key in D) D_is_set[key] = 1
15029 FS = ""
15030 }
15031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15032 line = \$ 0
15033 split(line, arg, " ")
15034 if (arg[1] == "#") {
15035 defundef = arg[2]
15036 mac1 = arg[3]
15037 } else {
15038 defundef = substr(arg[1], 2)
15039 mac1 = arg[2]
15040 }
15041 split(mac1, mac2, "(") #)
15042 macro = mac2[1]
15043 prefix = substr(line, 1, index(line, defundef) - 1)
15044 if (D_is_set[macro]) {
15045 # Preserve the white space surrounding the "#".
15046 print prefix "define", macro P[macro] D[macro]
15047 next
15048 } else {
15049 # Replace #undef with comments. This is necessary, for example,
15050 # in the case of _POSIX_SOURCE, which is predefined and required
15051 # on some systems where configure will not decide to define it.
15052 if (defundef == "undef") {
15053 print "/*", prefix defundef, macro, "*/"
15054 next
15055 }
15056 }
15057 }
15058 { print }
15059 _ACAWK
15060 _ACEOF
15061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15063 fi # test -n "$CONFIG_HEADERS"
15064
15065
15066 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15067 shift
15068 for ac_tag
15069 do
15070 case $ac_tag in
15071 :[FHLC]) ac_mode=$ac_tag; continue;;
15072 esac
15073 case $ac_mode$ac_tag in
15074 :[FHL]*:*);;
15075 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15076 :[FH]-) ac_tag=-:-;;
15077 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15078 esac
15079 ac_save_IFS=$IFS
15080 IFS=:
15081 set x $ac_tag
15082 IFS=$ac_save_IFS
15083 shift
15084 ac_file=$1
15085 shift
15086
15087 case $ac_mode in
15088 :L) ac_source=$1;;
15089 :[FH])
15090 ac_file_inputs=
15091 for ac_f
15092 do
15093 case $ac_f in
15094 -) ac_f="$tmp/stdin";;
15095 *) # Look for the file first in the build tree, then in the source tree
15096 # (if the path is not absolute). The absolute path cannot be DOS-style,
15097 # because $ac_f cannot contain `:'.
15098 test -f "$ac_f" ||
15099 case $ac_f in
15100 [\\/$]*) false;;
15101 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15102 esac ||
15103 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15104 esac
15105 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15106 as_fn_append ac_file_inputs " '$ac_f'"
15107 done
15108
15109 # Let's still pretend it is `configure' which instantiates (i.e., don't
15110 # use $as_me), people would be surprised to read:
15111 # /* config.h. Generated by config.status. */
15112 configure_input='Generated from '`
15113 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15114 `' by configure.'
15115 if test x"$ac_file" != x-; then
15116 configure_input="$ac_file. $configure_input"
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15118 $as_echo "$as_me: creating $ac_file" >&6;}
15119 fi
15120 # Neutralize special characters interpreted by sed in replacement strings.
15121 case $configure_input in #(
15122 *\&* | *\|* | *\\* )
15123 ac_sed_conf_input=`$as_echo "$configure_input" |
15124 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15125 *) ac_sed_conf_input=$configure_input;;
15126 esac
15127
15128 case $ac_tag in
15129 *:-:* | *:-) cat >"$tmp/stdin" \
15130 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15131 esac
15132 ;;
15133 esac
15134
15135 ac_dir=`$as_dirname -- "$ac_file" ||
15136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15137 X"$ac_file" : 'X\(//\)[^/]' \| \
15138 X"$ac_file" : 'X\(//\)$' \| \
15139 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15140 $as_echo X"$ac_file" |
15141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15142 s//\1/
15143 q
15144 }
15145 /^X\(\/\/\)[^/].*/{
15146 s//\1/
15147 q
15148 }
15149 /^X\(\/\/\)$/{
15150 s//\1/
15151 q
15152 }
15153 /^X\(\/\).*/{
15154 s//\1/
15155 q
15156 }
15157 s/.*/./; q'`
15158 as_dir="$ac_dir"; as_fn_mkdir_p
15159 ac_builddir=.
15160
15161 case "$ac_dir" in
15162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15163 *)
15164 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15165 # A ".." for each directory in $ac_dir_suffix.
15166 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15167 case $ac_top_builddir_sub in
15168 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15169 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15170 esac ;;
15171 esac
15172 ac_abs_top_builddir=$ac_pwd
15173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15174 # for backward compatibility:
15175 ac_top_builddir=$ac_top_build_prefix
15176
15177 case $srcdir in
15178 .) # We are building in place.
15179 ac_srcdir=.
15180 ac_top_srcdir=$ac_top_builddir_sub
15181 ac_abs_top_srcdir=$ac_pwd ;;
15182 [\\/]* | ?:[\\/]* ) # Absolute name.
15183 ac_srcdir=$srcdir$ac_dir_suffix;
15184 ac_top_srcdir=$srcdir
15185 ac_abs_top_srcdir=$srcdir ;;
15186 *) # Relative name.
15187 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15188 ac_top_srcdir=$ac_top_build_prefix$srcdir
15189 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15190 esac
15191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15192
15193
15194 case $ac_mode in
15195 :F)
15196 #
15197 # CONFIG_FILE
15198 #
15199
15200 case $INSTALL in
15201 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15202 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15203 esac
15204 ac_MKDIR_P=$MKDIR_P
15205 case $MKDIR_P in
15206 [\\/$]* | ?:[\\/]* ) ;;
15207 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15208 esac
15209 _ACEOF
15210
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 # If the template does not know about datarootdir, expand it.
15213 # FIXME: This hack should be removed a few years after 2.60.
15214 ac_datarootdir_hack=; ac_datarootdir_seen=
15215 ac_sed_dataroot='
15216 /datarootdir/ {
15217 p
15218 q
15219 }
15220 /@datadir@/p
15221 /@docdir@/p
15222 /@infodir@/p
15223 /@localedir@/p
15224 /@mandir@/p'
15225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15226 *datarootdir*) ac_datarootdir_seen=yes;;
15227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15230 _ACEOF
15231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15232 ac_datarootdir_hack='
15233 s&@datadir@&$datadir&g
15234 s&@docdir@&$docdir&g
15235 s&@infodir@&$infodir&g
15236 s&@localedir@&$localedir&g
15237 s&@mandir@&$mandir&g
15238 s&\\\${datarootdir}&$datarootdir&g' ;;
15239 esac
15240 _ACEOF
15241
15242 # Neutralize VPATH when `$srcdir' = `.'.
15243 # Shell code in configure.ac might set extrasub.
15244 # FIXME: do we really want to maintain this feature?
15245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246 ac_sed_extra="$ac_vpsub
15247 $extrasub
15248 _ACEOF
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 :t
15251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15252 s|@configure_input@|$ac_sed_conf_input|;t t
15253 s&@top_builddir@&$ac_top_builddir_sub&;t t
15254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15255 s&@srcdir@&$ac_srcdir&;t t
15256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15257 s&@top_srcdir@&$ac_top_srcdir&;t t
15258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15259 s&@builddir@&$ac_builddir&;t t
15260 s&@abs_builddir@&$ac_abs_builddir&;t t
15261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15262 s&@INSTALL@&$ac_INSTALL&;t t
15263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15264 $ac_datarootdir_hack
15265 "
15266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15267 || as_fn_error "could not create $ac_file" "$LINENO" 5
15268
15269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15270 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15271 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15273 which seems to be undefined. Please make sure it is defined." >&5
15274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15275 which seems to be undefined. Please make sure it is defined." >&2;}
15276
15277 rm -f "$tmp/stdin"
15278 case $ac_file in
15279 -) cat "$tmp/out" && rm -f "$tmp/out";;
15280 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15281 esac \
15282 || as_fn_error "could not create $ac_file" "$LINENO" 5
15283 ;;
15284 :H)
15285 #
15286 # CONFIG_HEADER
15287 #
15288 if test x"$ac_file" != x-; then
15289 {
15290 $as_echo "/* $configure_input */" \
15291 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15292 } >"$tmp/config.h" \
15293 || as_fn_error "could not create $ac_file" "$LINENO" 5
15294 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15296 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15297 else
15298 rm -f "$ac_file"
15299 mv "$tmp/config.h" "$ac_file" \
15300 || as_fn_error "could not create $ac_file" "$LINENO" 5
15301 fi
15302 else
15303 $as_echo "/* $configure_input */" \
15304 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15305 || as_fn_error "could not create -" "$LINENO" 5
15306 fi
15307 # Compute "$ac_file"'s index in $config_headers.
15308 _am_arg="$ac_file"
15309 _am_stamp_count=1
15310 for _am_header in $config_headers :; do
15311 case $_am_header in
15312 $_am_arg | $_am_arg:* )
15313 break ;;
15314 * )
15315 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15316 esac
15317 done
15318 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15319 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15320 X"$_am_arg" : 'X\(//\)[^/]' \| \
15321 X"$_am_arg" : 'X\(//\)$' \| \
15322 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15323 $as_echo X"$_am_arg" |
15324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15325 s//\1/
15326 q
15327 }
15328 /^X\(\/\/\)[^/].*/{
15329 s//\1/
15330 q
15331 }
15332 /^X\(\/\/\)$/{
15333 s//\1/
15334 q
15335 }
15336 /^X\(\/\).*/{
15337 s//\1/
15338 q
15339 }
15340 s/.*/./; q'`/stamp-h$_am_stamp_count
15341 ;;
15342
15343 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15344 $as_echo "$as_me: executing $ac_file commands" >&6;}
15345 ;;
15346 esac
15347
15348
15349 case $ac_file$ac_mode in
15350 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15351 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15352 # are listed without --file. Let's play safe and only enable the eval
15353 # if we detect the quoting.
15354 case $CONFIG_FILES in
15355 *\'*) eval set x "$CONFIG_FILES" ;;
15356 *) set x $CONFIG_FILES ;;
15357 esac
15358 shift
15359 for mf
15360 do
15361 # Strip MF so we end up with the name of the file.
15362 mf=`echo "$mf" | sed -e 's/:.*$//'`
15363 # Check whether this is an Automake generated Makefile or not.
15364 # We used to match only the files named `Makefile.in', but
15365 # some people rename them; so instead we look at the file content.
15366 # Grep'ing the first line is not enough: some people post-process
15367 # each Makefile.in and add a new line on top of each file to say so.
15368 # Grep'ing the whole file is not good either: AIX grep has a line
15369 # limit of 2048, but all sed's we know have understand at least 4000.
15370 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15371 dirpart=`$as_dirname -- "$mf" ||
15372 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15373 X"$mf" : 'X\(//\)[^/]' \| \
15374 X"$mf" : 'X\(//\)$' \| \
15375 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15376 $as_echo X"$mf" |
15377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15378 s//\1/
15379 q
15380 }
15381 /^X\(\/\/\)[^/].*/{
15382 s//\1/
15383 q
15384 }
15385 /^X\(\/\/\)$/{
15386 s//\1/
15387 q
15388 }
15389 /^X\(\/\).*/{
15390 s//\1/
15391 q
15392 }
15393 s/.*/./; q'`
15394 else
15395 continue
15396 fi
15397 # Extract the definition of DEPDIR, am__include, and am__quote
15398 # from the Makefile without running `make'.
15399 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15400 test -z "$DEPDIR" && continue
15401 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15402 test -z "am__include" && continue
15403 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15404 # When using ansi2knr, U may be empty or an underscore; expand it
15405 U=`sed -n 's/^U = //p' < "$mf"`
15406 # Find all dependency output files, they are included files with
15407 # $(DEPDIR) in their names. We invoke sed twice because it is the
15408 # simplest approach to changing $(DEPDIR) to its actual value in the
15409 # expansion.
15410 for file in `sed -n "
15411 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15412 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15413 # Make sure the directory exists.
15414 test -f "$dirpart/$file" && continue
15415 fdir=`$as_dirname -- "$file" ||
15416 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15417 X"$file" : 'X\(//\)[^/]' \| \
15418 X"$file" : 'X\(//\)$' \| \
15419 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15420 $as_echo X"$file" |
15421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15422 s//\1/
15423 q
15424 }
15425 /^X\(\/\/\)[^/].*/{
15426 s//\1/
15427 q
15428 }
15429 /^X\(\/\/\)$/{
15430 s//\1/
15431 q
15432 }
15433 /^X\(\/\).*/{
15434 s//\1/
15435 q
15436 }
15437 s/.*/./; q'`
15438 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15439 # echo "creating $dirpart/$file"
15440 echo '# dummy' > "$dirpart/$file"
15441 done
15442 done
15443 }
15444 ;;
15445 "libtool":C)
15446
15447 # See if we are running on zsh, and set the options which allow our
15448 # commands through without removal of \ escapes.
15449 if test -n "${ZSH_VERSION+set}" ; then
15450 setopt NO_GLOB_SUBST
15451 fi
15452
15453 cfgfile="${ofile}T"
15454 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15455 $RM "$cfgfile"
15456
15457 cat <<_LT_EOF >> "$cfgfile"
15458 #! $SHELL
15459
15460 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15461 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15462 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15463 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15464 #
15465 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15466 # 2006, 2007, 2008 Free Software Foundation, Inc.
15467 # Written by Gordon Matzigkeit, 1996
15468 #
15469 # This file is part of GNU Libtool.
15470 #
15471 # GNU Libtool is free software; you can redistribute it and/or
15472 # modify it under the terms of the GNU General Public License as
15473 # published by the Free Software Foundation; either version 2 of
15474 # the License, or (at your option) any later version.
15475 #
15476 # As a special exception to the GNU General Public License,
15477 # if you distribute this file as part of a program or library that
15478 # is built using GNU Libtool, you may include this file under the
15479 # same distribution terms that you use for the rest of that program.
15480 #
15481 # GNU Libtool is distributed in the hope that it will be useful,
15482 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15484 # GNU General Public License for more details.
15485 #
15486 # You should have received a copy of the GNU General Public License
15487 # along with GNU Libtool; see the file COPYING. If not, a copy
15488 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15489 # obtained by writing to the Free Software Foundation, Inc.,
15490 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15491
15492
15493 # The names of the tagged configurations supported by this script.
15494 available_tags=""
15495
15496 # ### BEGIN LIBTOOL CONFIG
15497
15498 # Which release of libtool.m4 was used?
15499 macro_version=$macro_version
15500 macro_revision=$macro_revision
15501
15502 # Whether or not to build static libraries.
15503 build_old_libs=$enable_static
15504
15505 # Whether or not to build shared libraries.
15506 build_libtool_libs=$enable_shared
15507
15508 # What type of objects to build.
15509 pic_mode=$pic_mode
15510
15511 # Whether or not to optimize for fast installation.
15512 fast_install=$enable_fast_install
15513
15514 # The host system.
15515 host_alias=$host_alias
15516 host=$host
15517 host_os=$host_os
15518
15519 # The build system.
15520 build_alias=$build_alias
15521 build=$build
15522 build_os=$build_os
15523
15524 # A sed program that does not truncate output.
15525 SED=$lt_SED
15526
15527 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15528 Xsed="\$SED -e 1s/^X//"
15529
15530 # A grep program that handles long lines.
15531 GREP=$lt_GREP
15532
15533 # An ERE matcher.
15534 EGREP=$lt_EGREP
15535
15536 # A literal string matcher.
15537 FGREP=$lt_FGREP
15538
15539 # A BSD- or MS-compatible name lister.
15540 NM=$lt_NM
15541
15542 # Whether we need soft or hard links.
15543 LN_S=$lt_LN_S
15544
15545 # What is the maximum length of a command?
15546 max_cmd_len=$max_cmd_len
15547
15548 # Object file suffix (normally "o").
15549 objext=$ac_objext
15550
15551 # Executable file suffix (normally "").
15552 exeext=$exeext
15553
15554 # whether the shell understands "unset".
15555 lt_unset=$lt_unset
15556
15557 # turn spaces into newlines.
15558 SP2NL=$lt_lt_SP2NL
15559
15560 # turn newlines into spaces.
15561 NL2SP=$lt_lt_NL2SP
15562
15563 # How to create reloadable object files.
15564 reload_flag=$lt_reload_flag
15565 reload_cmds=$lt_reload_cmds
15566
15567 # An object symbol dumper.
15568 OBJDUMP=$lt_OBJDUMP
15569
15570 # Method to check whether dependent libraries are shared objects.
15571 deplibs_check_method=$lt_deplibs_check_method
15572
15573 # Command to use when deplibs_check_method == "file_magic".
15574 file_magic_cmd=$lt_file_magic_cmd
15575
15576 # The archiver.
15577 AR=$lt_AR
15578 AR_FLAGS=$lt_AR_FLAGS
15579
15580 # A symbol stripping program.
15581 STRIP=$lt_STRIP
15582
15583 # Commands used to install an old-style archive.
15584 RANLIB=$lt_RANLIB
15585 old_postinstall_cmds=$lt_old_postinstall_cmds
15586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15587
15588 # A C compiler.
15589 LTCC=$lt_CC
15590
15591 # LTCC compiler flags.
15592 LTCFLAGS=$lt_CFLAGS
15593
15594 # Take the output of nm and produce a listing of raw symbols and C names.
15595 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15596
15597 # Transform the output of nm in a proper C declaration.
15598 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15599
15600 # Transform the output of nm in a C name address pair.
15601 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15602
15603 # Transform the output of nm in a C name address pair when lib prefix is needed.
15604 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15605
15606 # The name of the directory that contains temporary libtool files.
15607 objdir=$objdir
15608
15609 # Shell to use when invoking shell scripts.
15610 SHELL=$lt_SHELL
15611
15612 # An echo program that does not interpret backslashes.
15613 ECHO=$lt_ECHO
15614
15615 # Used to examine libraries when file_magic_cmd begins with "file".
15616 MAGIC_CMD=$MAGIC_CMD
15617
15618 # Must we lock files when doing compilation?
15619 need_locks=$lt_need_locks
15620
15621 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15622 DSYMUTIL=$lt_DSYMUTIL
15623
15624 # Tool to change global to local symbols on Mac OS X.
15625 NMEDIT=$lt_NMEDIT
15626
15627 # Tool to manipulate fat objects and archives on Mac OS X.
15628 LIPO=$lt_LIPO
15629
15630 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15631 OTOOL=$lt_OTOOL
15632
15633 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15634 OTOOL64=$lt_OTOOL64
15635
15636 # Old archive suffix (normally "a").
15637 libext=$libext
15638
15639 # Shared library suffix (normally ".so").
15640 shrext_cmds=$lt_shrext_cmds
15641
15642 # The commands to extract the exported symbol list from a shared archive.
15643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15644
15645 # Variables whose values should be saved in libtool wrapper scripts and
15646 # restored at link time.
15647 variables_saved_for_relink=$lt_variables_saved_for_relink
15648
15649 # Do we need the "lib" prefix for modules?
15650 need_lib_prefix=$need_lib_prefix
15651
15652 # Do we need a version for libraries?
15653 need_version=$need_version
15654
15655 # Library versioning type.
15656 version_type=$version_type
15657
15658 # Shared library runtime path variable.
15659 runpath_var=$runpath_var
15660
15661 # Shared library path variable.
15662 shlibpath_var=$shlibpath_var
15663
15664 # Is shlibpath searched before the hard-coded library search path?
15665 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15666
15667 # Format of library name prefix.
15668 libname_spec=$lt_libname_spec
15669
15670 # List of archive names. First name is the real one, the rest are links.
15671 # The last name is the one that the linker finds with -lNAME
15672 library_names_spec=$lt_library_names_spec
15673
15674 # The coded name of the library, if different from the real name.
15675 soname_spec=$lt_soname_spec
15676
15677 # Command to use after installation of a shared archive.
15678 postinstall_cmds=$lt_postinstall_cmds
15679
15680 # Command to use after uninstallation of a shared archive.
15681 postuninstall_cmds=$lt_postuninstall_cmds
15682
15683 # Commands used to finish a libtool library installation in a directory.
15684 finish_cmds=$lt_finish_cmds
15685
15686 # As "finish_cmds", except a single script fragment to be evaled but
15687 # not shown.
15688 finish_eval=$lt_finish_eval
15689
15690 # Whether we should hardcode library paths into libraries.
15691 hardcode_into_libs=$hardcode_into_libs
15692
15693 # Compile-time system search path for libraries.
15694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15695
15696 # Run-time system search path for libraries.
15697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15698
15699 # Whether dlopen is supported.
15700 dlopen_support=$enable_dlopen
15701
15702 # Whether dlopen of programs is supported.
15703 dlopen_self=$enable_dlopen_self
15704
15705 # Whether dlopen of statically linked programs is supported.
15706 dlopen_self_static=$enable_dlopen_self_static
15707
15708 # Commands to strip libraries.
15709 old_striplib=$lt_old_striplib
15710 striplib=$lt_striplib
15711
15712
15713 # The linker used to build libraries.
15714 LD=$lt_LD
15715
15716 # Commands used to build an old-style archive.
15717 old_archive_cmds=$lt_old_archive_cmds
15718
15719 # A language specific compiler.
15720 CC=$lt_compiler
15721
15722 # Is the compiler the GNU compiler?
15723 with_gcc=$GCC
15724
15725 # Compiler flag to turn off builtin functions.
15726 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15727
15728 # How to pass a linker flag through the compiler.
15729 wl=$lt_lt_prog_compiler_wl
15730
15731 # Additional compiler flags for building library objects.
15732 pic_flag=$lt_lt_prog_compiler_pic
15733
15734 # Compiler flag to prevent dynamic linking.
15735 link_static_flag=$lt_lt_prog_compiler_static
15736
15737 # Does compiler simultaneously support -c and -o options?
15738 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15739
15740 # Whether or not to add -lc for building shared libraries.
15741 build_libtool_need_lc=$archive_cmds_need_lc
15742
15743 # Whether or not to disallow shared libs when runtime libs are static.
15744 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15745
15746 # Compiler flag to allow reflexive dlopens.
15747 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15748
15749 # Compiler flag to generate shared objects directly from archives.
15750 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15751
15752 # Whether the compiler copes with passing no objects directly.
15753 compiler_needs_object=$lt_compiler_needs_object
15754
15755 # Create an old-style archive from a shared archive.
15756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15757
15758 # Create a temporary old-style archive to link instead of a shared archive.
15759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15760
15761 # Commands used to build a shared archive.
15762 archive_cmds=$lt_archive_cmds
15763 archive_expsym_cmds=$lt_archive_expsym_cmds
15764
15765 # Commands used to build a loadable module if different from building
15766 # a shared archive.
15767 module_cmds=$lt_module_cmds
15768 module_expsym_cmds=$lt_module_expsym_cmds
15769
15770 # Whether we are building with GNU ld or not.
15771 with_gnu_ld=$lt_with_gnu_ld
15772
15773 # Flag that allows shared libraries with undefined symbols to be built.
15774 allow_undefined_flag=$lt_allow_undefined_flag
15775
15776 # Flag that enforces no undefined symbols.
15777 no_undefined_flag=$lt_no_undefined_flag
15778
15779 # Flag to hardcode \$libdir into a binary during linking.
15780 # This must work even if \$libdir does not exist
15781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15782
15783 # If ld is used when linking, flag to hardcode \$libdir into a binary
15784 # during linking. This must work even if \$libdir does not exist.
15785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15786
15787 # Whether we need a single "-rpath" flag with a separated argument.
15788 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15789
15790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15791 # DIR into the resulting binary.
15792 hardcode_direct=$hardcode_direct
15793
15794 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15795 # DIR into the resulting binary and the resulting library dependency is
15796 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15797 # library is relocated.
15798 hardcode_direct_absolute=$hardcode_direct_absolute
15799
15800 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15801 # into the resulting binary.
15802 hardcode_minus_L=$hardcode_minus_L
15803
15804 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15805 # into the resulting binary.
15806 hardcode_shlibpath_var=$hardcode_shlibpath_var
15807
15808 # Set to "yes" if building a shared library automatically hardcodes DIR
15809 # into the library and all subsequent libraries and executables linked
15810 # against it.
15811 hardcode_automatic=$hardcode_automatic
15812
15813 # Set to yes if linker adds runtime paths of dependent libraries
15814 # to runtime path list.
15815 inherit_rpath=$inherit_rpath
15816
15817 # Whether libtool must link a program against all its dependency libraries.
15818 link_all_deplibs=$link_all_deplibs
15819
15820 # Fix the shell variable \$srcfile for the compiler.
15821 fix_srcfile_path=$lt_fix_srcfile_path
15822
15823 # Set to "yes" if exported symbols are required.
15824 always_export_symbols=$always_export_symbols
15825
15826 # The commands to list exported symbols.
15827 export_symbols_cmds=$lt_export_symbols_cmds
15828
15829 # Symbols that should not be listed in the preloaded symbols.
15830 exclude_expsyms=$lt_exclude_expsyms
15831
15832 # Symbols that must always be exported.
15833 include_expsyms=$lt_include_expsyms
15834
15835 # Commands necessary for linking programs (against libraries) with templates.
15836 prelink_cmds=$lt_prelink_cmds
15837
15838 # Specify filename containing input files.
15839 file_list_spec=$lt_file_list_spec
15840
15841 # How to hardcode a shared library path into an executable.
15842 hardcode_action=$hardcode_action
15843
15844 # ### END LIBTOOL CONFIG
15845
15846 _LT_EOF
15847
15848 case $host_os in
15849 aix3*)
15850 cat <<\_LT_EOF >> "$cfgfile"
15851 # AIX sometimes has problems with the GCC collect2 program. For some
15852 # reason, if we set the COLLECT_NAMES environment variable, the problems
15853 # vanish in a puff of smoke.
15854 if test "X${COLLECT_NAMES+set}" != Xset; then
15855 COLLECT_NAMES=
15856 export COLLECT_NAMES
15857 fi
15858 _LT_EOF
15859 ;;
15860 esac
15861
15862
15863 ltmain="$ac_aux_dir/ltmain.sh"
15864
15865
15866 # We use sed instead of cat because bash on DJGPP gets confused if
15867 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15868 # text mode, it properly converts lines to CR/LF. This bash problem
15869 # is reportedly fixed, but why not run on old versions too?
15870 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15871 || (rm -f "$cfgfile"; exit 1)
15872
15873 case $xsi_shell in
15874 yes)
15875 cat << \_LT_EOF >> "$cfgfile"
15876
15877 # func_dirname file append nondir_replacement
15878 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15879 # otherwise set result to NONDIR_REPLACEMENT.
15880 func_dirname ()
15881 {
15882 case ${1} in
15883 */*) func_dirname_result="${1%/*}${2}" ;;
15884 * ) func_dirname_result="${3}" ;;
15885 esac
15886 }
15887
15888 # func_basename file
15889 func_basename ()
15890 {
15891 func_basename_result="${1##*/}"
15892 }
15893
15894 # func_dirname_and_basename file append nondir_replacement
15895 # perform func_basename and func_dirname in a single function
15896 # call:
15897 # dirname: Compute the dirname of FILE. If nonempty,
15898 # add APPEND to the result, otherwise set result
15899 # to NONDIR_REPLACEMENT.
15900 # value returned in "$func_dirname_result"
15901 # basename: Compute filename of FILE.
15902 # value retuned in "$func_basename_result"
15903 # Implementation must be kept synchronized with func_dirname
15904 # and func_basename. For efficiency, we do not delegate to
15905 # those functions but instead duplicate the functionality here.
15906 func_dirname_and_basename ()
15907 {
15908 case ${1} in
15909 */*) func_dirname_result="${1%/*}${2}" ;;
15910 * ) func_dirname_result="${3}" ;;
15911 esac
15912 func_basename_result="${1##*/}"
15913 }
15914
15915 # func_stripname prefix suffix name
15916 # strip PREFIX and SUFFIX off of NAME.
15917 # PREFIX and SUFFIX must not contain globbing or regex special
15918 # characters, hashes, percent signs, but SUFFIX may contain a leading
15919 # dot (in which case that matches only a dot).
15920 func_stripname ()
15921 {
15922 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15923 # positional parameters, so assign one to ordinary parameter first.
15924 func_stripname_result=${3}
15925 func_stripname_result=${func_stripname_result#"${1}"}
15926 func_stripname_result=${func_stripname_result%"${2}"}
15927 }
15928
15929 # func_opt_split
15930 func_opt_split ()
15931 {
15932 func_opt_split_opt=${1%%=*}
15933 func_opt_split_arg=${1#*=}
15934 }
15935
15936 # func_lo2o object
15937 func_lo2o ()
15938 {
15939 case ${1} in
15940 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15941 *) func_lo2o_result=${1} ;;
15942 esac
15943 }
15944
15945 # func_xform libobj-or-source
15946 func_xform ()
15947 {
15948 func_xform_result=${1%.*}.lo
15949 }
15950
15951 # func_arith arithmetic-term...
15952 func_arith ()
15953 {
15954 func_arith_result=$(( $* ))
15955 }
15956
15957 # func_len string
15958 # STRING may not start with a hyphen.
15959 func_len ()
15960 {
15961 func_len_result=${#1}
15962 }
15963
15964 _LT_EOF
15965 ;;
15966 *) # Bourne compatible functions.
15967 cat << \_LT_EOF >> "$cfgfile"
15968
15969 # func_dirname file append nondir_replacement
15970 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15971 # otherwise set result to NONDIR_REPLACEMENT.
15972 func_dirname ()
15973 {
15974 # Extract subdirectory from the argument.
15975 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15976 if test "X$func_dirname_result" = "X${1}"; then
15977 func_dirname_result="${3}"
15978 else
15979 func_dirname_result="$func_dirname_result${2}"
15980 fi
15981 }
15982
15983 # func_basename file
15984 func_basename ()
15985 {
15986 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15987 }
15988
15989
15990 # func_stripname prefix suffix name
15991 # strip PREFIX and SUFFIX off of NAME.
15992 # PREFIX and SUFFIX must not contain globbing or regex special
15993 # characters, hashes, percent signs, but SUFFIX may contain a leading
15994 # dot (in which case that matches only a dot).
15995 # func_strip_suffix prefix name
15996 func_stripname ()
15997 {
15998 case ${2} in
15999 .*) func_stripname_result=`$ECHO "X${3}" \
16000 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16001 *) func_stripname_result=`$ECHO "X${3}" \
16002 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16003 esac
16004 }
16005
16006 # sed scripts:
16007 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16008 my_sed_long_arg='1s/^-[^=]*=//'
16009
16010 # func_opt_split
16011 func_opt_split ()
16012 {
16013 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16014 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16015 }
16016
16017 # func_lo2o object
16018 func_lo2o ()
16019 {
16020 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16021 }
16022
16023 # func_xform libobj-or-source
16024 func_xform ()
16025 {
16026 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16027 }
16028
16029 # func_arith arithmetic-term...
16030 func_arith ()
16031 {
16032 func_arith_result=`expr "$@"`
16033 }
16034
16035 # func_len string
16036 # STRING may not start with a hyphen.
16037 func_len ()
16038 {
16039 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16040 }
16041
16042 _LT_EOF
16043 esac
16044
16045 case $lt_shell_append in
16046 yes)
16047 cat << \_LT_EOF >> "$cfgfile"
16048
16049 # func_append var value
16050 # Append VALUE to the end of shell variable VAR.
16051 func_append ()
16052 {
16053 eval "$1+=\$2"
16054 }
16055 _LT_EOF
16056 ;;
16057 *)
16058 cat << \_LT_EOF >> "$cfgfile"
16059
16060 # func_append var value
16061 # Append VALUE to the end of shell variable VAR.
16062 func_append ()
16063 {
16064 eval "$1=\$$1\$2"
16065 }
16066
16067 _LT_EOF
16068 ;;
16069 esac
16070
16071
16072 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16073 || (rm -f "$cfgfile"; exit 1)
16074
16075 mv -f "$cfgfile" "$ofile" ||
16076 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16077 chmod +x "$ofile"
16078
16079 ;;
16080
16081 esac
16082 done # for ac_tag
16083
16084
16085 as_fn_exit 0
16086 _ACEOF
16087 ac_clean_files=$ac_clean_files_save
16088
16089 test $ac_write_fail = 0 ||
16090 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16091
16092
16093 # configure is writing to config.log, and then calls config.status.
16094 # config.status does its own redirection, appending to config.log.
16095 # Unfortunately, on DOS this fails, as config.log is still kept open
16096 # by configure, so config.status won't be able to write to it; its
16097 # output is simply discarded. So we exec the FD to /dev/null,
16098 # effectively closing config.log, so it can be properly (re)opened and
16099 # appended to by config.status. When coming back to configure, we
16100 # need to make the FD available again.
16101 if test "$no_create" != yes; then
16102 ac_cs_success=:
16103 ac_config_status_args=
16104 test "$silent" = yes &&
16105 ac_config_status_args="$ac_config_status_args --quiet"
16106 exec 5>/dev/null
16107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16108 exec 5>>config.log
16109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16110 # would make configure fail if this is the last instruction.
16111 $ac_cs_success || as_fn_exit $?
16112 fi
16113
16114 #
16115 # CONFIG_SUBDIRS section.
16116 #
16117 if test "$no_recursion" != yes; then
16118
16119 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16120 # so they do not pile up.
16121 ac_sub_configure_args=
16122 ac_prev=
16123 eval "set x $ac_configure_args"
16124 shift
16125 for ac_arg
16126 do
16127 if test -n "$ac_prev"; then
16128 ac_prev=
16129 continue
16130 fi
16131 case $ac_arg in
16132 -cache-file | --cache-file | --cache-fil | --cache-fi \
16133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16134 ac_prev=cache_file ;;
16135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16137 | --c=*)
16138 ;;
16139 --config-cache | -C)
16140 ;;
16141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16142 ac_prev=srcdir ;;
16143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16144 ;;
16145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16146 ac_prev=prefix ;;
16147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16148 ;;
16149 --disable-option-checking)
16150 ;;
16151 *)
16152 case $ac_arg in
16153 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16154 esac
16155 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16156 esac
16157 done
16158
16159 # Always prepend --prefix to ensure using the same prefix
16160 # in subdir configurations.
16161 ac_arg="--prefix=$prefix"
16162 case $ac_arg in
16163 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16164 esac
16165 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16166
16167 # Pass --silent
16168 if test "$silent" = yes; then
16169 ac_sub_configure_args="--silent $ac_sub_configure_args"
16170 fi
16171
16172 # Always prepend --disable-option-checking to silence warnings, since
16173 # different subdirs can have different --enable and --with options.
16174 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16175
16176 ac_popdir=`pwd`
16177 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16178
16179 # Do not complain, so a configure script can configure whichever
16180 # parts of a large source tree are present.
16181 test -d "$srcdir/$ac_dir" || continue
16182
16183 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16184 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16185 $as_echo "$ac_msg" >&6
16186 as_dir="$ac_dir"; as_fn_mkdir_p
16187 ac_builddir=.
16188
16189 case "$ac_dir" in
16190 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16191 *)
16192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16193 # A ".." for each directory in $ac_dir_suffix.
16194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16195 case $ac_top_builddir_sub in
16196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16198 esac ;;
16199 esac
16200 ac_abs_top_builddir=$ac_pwd
16201 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16202 # for backward compatibility:
16203 ac_top_builddir=$ac_top_build_prefix
16204
16205 case $srcdir in
16206 .) # We are building in place.
16207 ac_srcdir=.
16208 ac_top_srcdir=$ac_top_builddir_sub
16209 ac_abs_top_srcdir=$ac_pwd ;;
16210 [\\/]* | ?:[\\/]* ) # Absolute name.
16211 ac_srcdir=$srcdir$ac_dir_suffix;
16212 ac_top_srcdir=$srcdir
16213 ac_abs_top_srcdir=$srcdir ;;
16214 *) # Relative name.
16215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16216 ac_top_srcdir=$ac_top_build_prefix$srcdir
16217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16218 esac
16219 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16220
16221
16222 cd "$ac_dir"
16223
16224 # Check for guested configure; otherwise get Cygnus style configure.
16225 if test -f "$ac_srcdir/configure.gnu"; then
16226 ac_sub_configure=$ac_srcdir/configure.gnu
16227 elif test -f "$ac_srcdir/configure"; then
16228 ac_sub_configure=$ac_srcdir/configure
16229 elif test -f "$ac_srcdir/configure.in"; then
16230 # This should be Cygnus configure.
16231 ac_sub_configure=$ac_aux_dir/configure
16232 else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16234 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16235 ac_sub_configure=
16236 fi
16237
16238 # The recursion is here.
16239 if test -n "$ac_sub_configure"; then
16240 # Make the cache file name correct relative to the subdirectory.
16241 case $cache_file in
16242 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16243 *) # Relative name.
16244 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16245 esac
16246
16247 { $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
16248 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16249 # The eval makes quoting arguments work.
16250 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16251 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16252 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16253 fi
16254
16255 cd "$ac_popdir"
16256 done
16257 fi
16258 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16260 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16261 fi
16262

Properties

Name Value
svn:executable *