ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1084
Committed: Sat Mar 13 23:24:10 2010 UTC (16 years, 4 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 468044 byte(s)
Log Message:
- libtoolize

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1072 # From configure.ac Id: configure.ac 1068 2010-02-16 23:01:26Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 1039 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.3-rc1.
5 michael 912 #
6 michael 1039 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 1033 #
8 michael 1039 #
9 michael 912 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 michael 1033 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11     # Inc.
12 michael 967 #
13 michael 1033 #
14 michael 912 # This configure script is free software; the Free Software Foundation
15     # gives unlimited permission to copy, distribute and modify it.
16 michael 967 ## -------------------- ##
17     ## M4sh Initialization. ##
18     ## -------------------- ##
19 michael 912
20     # Be more Bourne compatible
21     DUALCASE=1; export DUALCASE # for MKS sh
22 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 michael 912 emulate sh
24     NULLCMD=:
25 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 michael 912 # is contrary to our usage. Disable this feature.
27     alias -g '${1+"$@"}'='"$@"'
28     setopt NO_GLOB_SUBST
29     else
30 michael 967 case `(set -o) 2>/dev/null` in #(
31     *posix*) :
32     set -o posix ;; #(
33     *) :
34     ;;
35 michael 912 esac
36     fi
37    
38    
39 db 941 as_nl='
40     '
41     export as_nl
42     # Printing a long string crashes Solaris 7 /usr/bin/printf.
43     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
47     # but without wasting forks for bash or zsh.
48     if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50     as_echo='print -r --'
51     as_echo_n='print -rn --'
52     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 db 941 as_echo='printf %s\n'
54     as_echo_n='printf %s'
55     else
56     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59 michael 912 else
60 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62     arg=$1;
63 michael 967 case $arg in #(
64 db 941 *"$as_nl"*)
65     expr "X$arg" : "X\\(.*\\)$as_nl";
66     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67     esac;
68     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72 michael 912 fi
73 db 941 export as_echo_body
74     as_echo='sh -c $as_echo_body as_echo'
75 michael 912 fi
76    
77 db 941 # The user is always right.
78     if test "${PATH_SEPARATOR+set}" != set; then
79     PATH_SEPARATOR=:
80     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82     PATH_SEPARATOR=';'
83     }
84     fi
85    
86 michael 912
87     # IFS
88     # We need space, tab and new line, in precisely that order. Quoting is
89     # there to prevent editors from complaining about space-tab.
90     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91     # splitting by setting IFS to empty value.)
92     IFS=" "" $as_nl"
93    
94     # Find who we are. Look in the path if we contain no directory separator.
95 michael 967 case $0 in #((
96 michael 912 *[\\/]* ) as_myself=$0 ;;
97     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98     for as_dir in $PATH
99     do
100     IFS=$as_save_IFS
101     test -z "$as_dir" && as_dir=.
102 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103     done
104 michael 912 IFS=$as_save_IFS
105    
106     ;;
107     esac
108     # We did not find ourselves, most probably we were run as `sh COMMAND'
109     # in which case we are not to be found in the path.
110     if test "x$as_myself" = x; then
111     as_myself=$0
112     fi
113     if test ! -f "$as_myself"; then
114 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 michael 967 exit 1
116 michael 912 fi
117    
118 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
119     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120     # suppresses any "Segmentation fault" message there. '((' could
121     # trigger a bug in pdksh 5.2.14.
122     for as_var in BASH_ENV ENV MAIL MAILPATH
123     do eval test x\${$as_var+set} = xset \
124     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 michael 912 done
126     PS1='$ '
127     PS2='> '
128     PS4='+ '
129    
130     # NLS nuisances.
131 db 941 LC_ALL=C
132     export LC_ALL
133     LANGUAGE=C
134     export LANGUAGE
135 michael 912
136     # CDPATH.
137 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 michael 912
139     if test "x$CONFIG_SHELL" = x; then
140 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141     emulate sh
142     NULLCMD=:
143     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144     # is contrary to our usage. Disable this feature.
145     alias -g '\${1+\"\$@\"}'='\"\$@\"'
146     setopt NO_GLOB_SUBST
147 michael 912 else
148 michael 967 case \`(set -o) 2>/dev/null\` in #(
149     *posix*) :
150     set -o posix ;; #(
151     *) :
152     ;;
153     esac
154 michael 912 fi
155 michael 967 "
156     as_required="as_fn_return () { (exit \$1); }
157     as_fn_success () { as_fn_return 0; }
158     as_fn_failure () { as_fn_return 1; }
159     as_fn_ret_success () { return 0; }
160     as_fn_ret_failure () { return 1; }
161 michael 912
162     exitcode=0
163 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 michael 912
169     else
170 michael 967 exitcode=1; echo positional parameters were not saved.
171 michael 912 fi
172 michael 967 test x\$exitcode = x0 || exit 1"
173     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177     test \$(( 1 + 1 )) = 2 || exit 1"
178     if (eval "$as_required") 2>/dev/null; then :
179     as_have_required=yes
180 michael 912 else
181 michael 967 as_have_required=no
182 michael 912 fi
183 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 michael 912
185     else
186 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187     as_found=false
188 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189     do
190     IFS=$as_save_IFS
191     test -z "$as_dir" && as_dir=.
192 michael 967 as_found=:
193     case $as_dir in #(
194 michael 912 /*)
195     for as_base in sh bash ksh sh5; do
196 michael 967 # Try only shells that exist, to save several forks.
197     as_shell=$as_dir/$as_base
198     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200     CONFIG_SHELL=$as_shell as_have_required=yes
201     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202     break 2
203     fi
204     fi
205 michael 912 done;;
206     esac
207 michael 967 as_found=false
208 michael 912 done
209 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211     CONFIG_SHELL=$SHELL as_have_required=yes
212     fi; }
213 michael 912 IFS=$as_save_IFS
214    
215    
216 michael 967 if test "x$CONFIG_SHELL" != x; then :
217     # We cannot yet assume a decent shell, so we have to provide a
218     # neutralization value for shells without unset; and this also
219     # works around shells that cannot unset nonexistent variables.
220     BASH_ENV=/dev/null
221     ENV=/dev/null
222     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223     export CONFIG_SHELL
224     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 michael 912 fi
226    
227 michael 967 if test x$as_have_required = xno; then :
228     $as_echo "$0: This script requires a shell more modern than all"
229     $as_echo "$0: the shells that I found on your system."
230     if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233     else
234 michael 1039 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235     $0: bugs@ircd-hybrid.org about your system, including any
236     $0: error possibly output before this message. Then install
237     $0: a modern shell, or manually run the script under such a
238     $0: shell if you do have one."
239 michael 967 fi
240     exit 1
241 michael 912 fi
242     fi
243     fi
244 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
245     export SHELL
246     # Unset more variables known to interfere with behavior of common tools.
247     CLICOLOR_FORCE= GREP_OPTIONS=
248     unset CLICOLOR_FORCE GREP_OPTIONS
249 michael 912
250 michael 967 ## --------------------- ##
251     ## M4sh Shell Functions. ##
252     ## --------------------- ##
253     # as_fn_unset VAR
254     # ---------------
255     # Portably unset VAR.
256     as_fn_unset ()
257     {
258     { eval $1=; unset $1;}
259     }
260     as_unset=as_fn_unset
261 michael 912
262 michael 967 # as_fn_set_status STATUS
263     # -----------------------
264     # Set $? to STATUS, without forking.
265     as_fn_set_status ()
266     {
267     return $1
268     } # as_fn_set_status
269 michael 912
270 michael 967 # as_fn_exit STATUS
271     # -----------------
272     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273     as_fn_exit ()
274     {
275     set +e
276     as_fn_set_status $1
277     exit $1
278     } # as_fn_exit
279 michael 912
280 michael 967 # as_fn_mkdir_p
281     # -------------
282     # Create "$as_dir" as a directory, including parents if necessary.
283     as_fn_mkdir_p ()
284     {
285 michael 912
286 michael 967 case $as_dir in #(
287     -*) as_dir=./$as_dir;;
288     esac
289     test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292     case $as_dir in #(
293     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294     *) as_qdir=$as_dir;;
295     esac
296     as_dirs="'$as_qdir' $as_dirs"
297     as_dir=`$as_dirname -- "$as_dir" ||
298     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299     X"$as_dir" : 'X\(//\)[^/]' \| \
300     X"$as_dir" : 'X\(//\)$' \| \
301     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302     $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304     s//\1/
305     q
306     }
307     /^X\(\/\/\)[^/].*/{
308     s//\1/
309     q
310     }
311     /^X\(\/\/\)$/{
312     s//\1/
313     q
314     }
315     /^X\(\/\).*/{
316     s//\1/
317     q
318     }
319     s/.*/./; q'`
320     test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 michael 912
325    
326 michael 967 } # as_fn_mkdir_p
327     # as_fn_append VAR VALUE
328     # ----------------------
329     # Append the text in VALUE to the end of the definition contained in VAR. Take
330     # advantage of any shell optimizations that allow amortized linear growth over
331     # repeated appends, instead of the typical quadratic growth present in naive
332     # implementations.
333     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334     eval 'as_fn_append ()
335     {
336     eval $1+=\$2
337     }'
338     else
339     as_fn_append ()
340     {
341     eval $1=\$$1\$2
342     }
343     fi # as_fn_append
344 michael 912
345 michael 967 # as_fn_arith ARG...
346     # ------------------
347     # Perform arithmetic evaluation on the ARGs, and store the result in the
348     # global $as_val. Take advantage of shells that can avoid forks. The arguments
349     # must be portable across $(()) and expr.
350     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351     eval 'as_fn_arith ()
352     {
353     as_val=$(( $* ))
354     }'
355     else
356     as_fn_arith ()
357     {
358     as_val=`expr "$@" || test $? -eq 1`
359     }
360     fi # as_fn_arith
361 michael 912
362    
363 michael 967 # as_fn_error ERROR [LINENO LOG_FD]
364     # ---------------------------------
365     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367     # script with status $?, using 1 if that was 0.
368     as_fn_error ()
369     {
370     as_status=$?; test $as_status -eq 0 && as_status=1
371     if test "$3"; then
372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374     fi
375     $as_echo "$as_me: error: $1" >&2
376     as_fn_exit $as_status
377     } # as_fn_error
378 michael 912
379 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
380     test "X`expr 00001 : '.*\(...\)'`" = X001; then
381     as_expr=expr
382 michael 912 else
383 michael 967 as_expr=false
384 michael 912 fi
385    
386 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387     as_basename=basename
388 michael 912 else
389 michael 967 as_basename=false
390 michael 912 fi
391    
392 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393     as_dirname=dirname
394 michael 912 else
395 michael 967 as_dirname=false
396 michael 912 fi
397    
398 michael 967 as_me=`$as_basename -- "$0" ||
399     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400     X"$0" : 'X\(//\)$' \| \
401     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402     $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404     s//\1/
405     q
406     }
407     /^X\/\(\/\/\)$/{
408     s//\1/
409     q
410     }
411     /^X\/\(\/\).*/{
412     s//\1/
413     q
414     }
415     s/.*/./; q'`
416 michael 912
417 michael 967 # Avoid depending upon Character Ranges.
418     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421     as_cr_digits='0123456789'
422     as_cr_alnum=$as_cr_Letters$as_cr_digits
423 michael 912
424    
425 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426     as_lineno_2=$LINENO as_lineno_2a=$LINENO
427     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 michael 912 sed -n '
431     p
432     /[$]LINENO/=
433     ' <$as_myself |
434     sed '
435     s/[$]LINENO.*/&-/
436     t lineno
437     b
438     :lineno
439     N
440     :loop
441     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442     t loop
443     s/-\n.*//
444     ' >$as_me.lineno &&
445     chmod +x "$as_me.lineno" ||
446 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 michael 912
448     # Don't try to exec as it changes $[0], causing all sort of problems
449     # (the dirname of $[0] is not the place where we might find the
450     # original and so on. Autoconf is especially sensitive to this).
451     . "./$as_me.lineno"
452     # Exit status is that of the last command.
453     exit
454     }
455    
456     ECHO_C= ECHO_N= ECHO_T=
457 michael 967 case `echo -n x` in #(((((
458 michael 912 -n*)
459 michael 967 case `echo 'xy\c'` in
460 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 michael 967 xy) ECHO_C='\c';;
462     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463     ECHO_T=' ';;
464 michael 912 esac;;
465     *)
466     ECHO_N='-n';;
467     esac
468    
469     rm -f conf$$ conf$$.exe conf$$.file
470     if test -d conf$$.dir; then
471     rm -f conf$$.dir/conf$$.file
472     else
473     rm -f conf$$.dir
474 db 941 mkdir conf$$.dir 2>/dev/null
475 michael 912 fi
476 db 941 if (echo >conf$$.file) 2>/dev/null; then
477     if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484     as_ln_s='cp -p'
485     elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487     else
488 michael 912 as_ln_s='cp -p'
489 db 941 fi
490 michael 912 else
491     as_ln_s='cp -p'
492     fi
493     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494     rmdir conf$$.dir 2>/dev/null
495    
496     if mkdir -p . 2>/dev/null; then
497 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
498 michael 912 else
499     test -d ./-p && rmdir ./-p
500     as_mkdir_p=false
501     fi
502    
503     if test -x / >/dev/null 2>&1; then
504     as_test_x='test -x'
505     else
506     if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508     else
509     as_ls_L_option=
510     fi
511     as_test_x='
512     eval sh -c '\''
513     if test -d "$1"; then
514 db 941 test -d "$1/.";
515 michael 912 else
516 michael 967 case $1 in #(
517 db 941 -*)set "./$1";;
518 michael 912 esac;
519 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 michael 912 ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522     '
523     fi
524     as_executable_p=$as_test_x
525    
526     # Sed expression to map a string onto a valid CPP name.
527     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528    
529     # Sed expression to map a string onto a valid variable name.
530     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531    
532    
533 michael 1084 lt_ltdl_dir='libltdl'
534 michael 912
535 michael 1084
536 michael 912 # Check that we are running under the correct shell.
537     SHELL=${CONFIG_SHELL-/bin/sh}
538    
539 michael 945 case X$lt_ECHO in
540 michael 912 X*--fallback-echo)
541     # Remove one level of quotation (which was required for Make).
542 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
543 michael 912 ;;
544     esac
545    
546 michael 945 ECHO=${lt_ECHO-echo}
547 michael 912 if test "X$1" = X--no-reexec; then
548     # Discard the --no-reexec flag, and continue.
549     shift
550     elif test "X$1" = X--fallback-echo; then
551     # Avoid inline document here, it may be left over
552     :
553 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
554     # Yippee, $ECHO works!
555 michael 912 :
556     else
557     # Restart under the correct shell.
558     exec $SHELL "$0" --no-reexec ${1+"$@"}
559     fi
560    
561     if test "X$1" = X--fallback-echo; then
562     # used as fallback echo
563     shift
564 michael 945 cat <<_LT_EOF
565 michael 912 $*
566 michael 945 _LT_EOF
567 michael 912 exit 0
568     fi
569    
570     # The HP-UX ksh and POSIX shell print the target directory to stdout
571     # if CDPATH is set.
572     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573    
574 michael 945 if test -z "$lt_ECHO"; then
575     if test "X${echo_test_string+set}" != Xset; then
576     # find a string as large as possible, as long as the shell can cope with it
577     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
578     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
579     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
580     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581     then
582     break
583     fi
584     done
585     fi
586 michael 912
587 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
588     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
589     test "X$echo_testing_string" = "X$echo_test_string"; then
590     :
591     else
592     # The Solaris, AIX, and Digital Unix default echo programs unquote
593     # backslashes. This makes it impossible to quote backslashes using
594     # echo "$something" | sed 's/\\/\\\\/g'
595     #
596     # So, first we look for a working echo in the user's PATH.
597 michael 912
598 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599     for dir in $PATH /usr/ucb; do
600     IFS="$lt_save_ifs"
601     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604     test "X$echo_testing_string" = "X$echo_test_string"; then
605     ECHO="$dir/echo"
606     break
607     fi
608     done
609 michael 912 IFS="$lt_save_ifs"
610    
611 michael 945 if test "X$ECHO" = Xecho; then
612     # We didn't find a better echo, so look for alternatives.
613     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
614     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
615     test "X$echo_testing_string" = "X$echo_test_string"; then
616     # This shell has a builtin print -r that does the trick.
617     ECHO='print -r'
618     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
619     test "X$CONFIG_SHELL" != X/bin/ksh; then
620     # If we have ksh, try running configure again with it.
621     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622     export ORIGINAL_CONFIG_SHELL
623     CONFIG_SHELL=/bin/ksh
624     export CONFIG_SHELL
625     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626     else
627     # Try using printf.
628     ECHO='printf %s\n'
629     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
632 michael 945 # Cool, printf works
633     :
634     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635     test "X$echo_testing_string" = 'X\t' &&
636     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637     test "X$echo_testing_string" = "X$echo_test_string"; then
638     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
639     export CONFIG_SHELL
640     SHELL="$CONFIG_SHELL"
641     export SHELL
642     ECHO="$CONFIG_SHELL $0 --fallback-echo"
643     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644     test "X$echo_testing_string" = 'X\t' &&
645     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646     test "X$echo_testing_string" = "X$echo_test_string"; then
647     ECHO="$CONFIG_SHELL $0 --fallback-echo"
648     else
649     # maybe with a smaller string...
650     prev=:
651 michael 912
652 michael 945 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654     then
655     break
656     fi
657     prev="$cmd"
658     done
659    
660     if test "$prev" != 'sed 50q "$0"'; then
661     echo_test_string=`eval $prev`
662     export echo_test_string
663     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
664     else
665     # Oops. We lost completely, so just stick with echo.
666     ECHO=echo
667 michael 912 fi
668 michael 945 fi
669 michael 912 fi
670     fi
671     fi
672     fi
673    
674     # Copy echo and quote the copy suitably for passing to libtool from
675     # the Makefile, instead of quoting the original, which is used later.
676 michael 945 lt_ECHO=$ECHO
677     if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678     lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 michael 912 fi
680    
681    
682    
683    
684 michael 945 lt_dlopen_dir="$lt_ltdl_dir"
685 michael 912
686 michael 1033 test -n "$DJDIR" || exec 7<&0 </dev/null
687     exec 6>&1
688 michael 912
689     # Name of the host.
690     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691     # so uname gets run too.
692     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693    
694     #
695     # Initializations.
696     #
697     ac_default_prefix=/usr/local
698     ac_clean_files=
699     ac_config_libobj_dir=.
700     LIBOBJS=
701     cross_compiling=no
702     subdirs=
703     MFLAGS=
704     MAKEFLAGS=
705    
706     # Identity of this package.
707     PACKAGE_NAME='ircd-hybrid'
708     PACKAGE_TARNAME='ircd-hybrid'
709 michael 1039 PACKAGE_VERSION='7.3-rc1'
710     PACKAGE_STRING='ircd-hybrid 7.3-rc1'
711     PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
712 michael 967 PACKAGE_URL=''
713 michael 912
714     ac_unique_file="src/ircd.c"
715     # Factoring default headers for most tests.
716     ac_includes_default="\
717     #include <stdio.h>
718     #ifdef HAVE_SYS_TYPES_H
719     # include <sys/types.h>
720     #endif
721     #ifdef HAVE_SYS_STAT_H
722     # include <sys/stat.h>
723     #endif
724     #ifdef STDC_HEADERS
725     # include <stdlib.h>
726     # include <stddef.h>
727     #else
728     # ifdef HAVE_STDLIB_H
729     # include <stdlib.h>
730     # endif
731     #endif
732     #ifdef HAVE_STRING_H
733     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734     # include <memory.h>
735     # endif
736     # include <string.h>
737     #endif
738     #ifdef HAVE_STRINGS_H
739     # include <strings.h>
740     #endif
741     #ifdef HAVE_INTTYPES_H
742     # include <inttypes.h>
743     #endif
744     #ifdef HAVE_STDINT_H
745     # include <stdint.h>
746     #endif
747     #ifdef HAVE_UNISTD_H
748     # include <unistd.h>
749     #endif"
750    
751 michael 945 enable_option_checking=no
752 michael 912 ac_func_list=
753     ac_header_list=
754 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
755     ltdl_LIBOBJS
756     am__EXEEXT_FALSE
757     am__EXEEXT_TRUE
758     LTLIBOBJS
759 michael 942 LIBOBJS
760     LOCALSTATEDIR
761     DATADIR
762     LIBDIR
763     SYSCONFDIR
764     PREFIX
765     EFNET_FALSE
766     EFNET_TRUE
767     ENABLE_SSL_FALSE
768     ENABLE_SSL_TRUE
769 michael 1009 ENABLE_PCRE_FALSE
770     ENABLE_PCRE_TRUE
771 michael 945 LTDLOPEN
772     LT_CONFIG_H
773     subdirs
774     CONVENIENCE_LTDL_FALSE
775     CONVENIENCE_LTDL_TRUE
776     INSTALL_LTDL_FALSE
777     INSTALL_LTDL_TRUE
778     ARGZ_H
779     sys_symbol_underscore
780     LIBADD_DL
781     LT_DLPREOPEN
782     LIBADD_DLD_LINK
783     LIBADD_SHL_LOAD
784     LIBADD_DLOPEN
785     LT_DLLOADERS
786     INCLTDL
787     LTDLINCL
788     LTDLDEPS
789     LIBLTDL
790 michael 942 CPP
791 michael 945 OTOOL64
792     OTOOL
793     LIPO
794 michael 942 NMEDIT
795     DSYMUTIL
796 michael 945 lt_ECHO
797 michael 942 RANLIB
798     AR
799 michael 945 OBJDUMP
800 michael 942 LN_S
801 michael 945 NM
802     ac_ct_DUMPBIN
803     DUMPBIN
804     LD
805     FGREP
806 michael 942 EGREP
807     GREP
808     SED
809     host_os
810     host_vendor
811     host_cpu
812     host
813     build_os
814     build_vendor
815     build_cpu
816     build
817 michael 945 LIBTOOL
818 michael 942 LEXLIB
819     LEX_OUTPUT_ROOT
820     LEX
821     YFLAGS
822     YACC
823     am__fastdepCC_FALSE
824     am__fastdepCC_TRUE
825     CCDEPMODE
826     AMDEPBACKSLASH
827     AMDEP_FALSE
828     AMDEP_TRUE
829     am__quote
830     am__include
831     DEPDIR
832     OBJEXT
833     EXEEXT
834     ac_ct_CC
835     CPPFLAGS
836     LDFLAGS
837     CFLAGS
838     CC
839     MAINT
840     MAINTAINER_MODE_FALSE
841     MAINTAINER_MODE_TRUE
842     am__untar
843     am__tar
844     AMTAR
845     am__leading_dot
846     SET_MAKE
847     AWK
848     mkdir_p
849     MKDIR_P
850     INSTALL_STRIP_PROGRAM
851     STRIP
852     install_sh
853     MAKEINFO
854     AUTOHEADER
855     AUTOMAKE
856     AUTOCONF
857     ACLOCAL
858     VERSION
859     PACKAGE
860     CYGPATH_W
861     am__isrc
862     INSTALL_DATA
863     INSTALL_SCRIPT
864     INSTALL_PROGRAM
865     target_alias
866     host_alias
867     build_alias
868     LIBS
869     ECHO_T
870     ECHO_N
871     ECHO_C
872     DEFS
873     mandir
874     localedir
875     libdir
876     psdir
877     pdfdir
878     dvidir
879     htmldir
880     infodir
881     docdir
882     oldincludedir
883     includedir
884     localstatedir
885     sharedstatedir
886     sysconfdir
887     datadir
888     datarootdir
889     libexecdir
890     sbindir
891     bindir
892     program_transform_name
893     prefix
894     exec_prefix
895 michael 967 PACKAGE_URL
896 michael 942 PACKAGE_BUGREPORT
897     PACKAGE_STRING
898     PACKAGE_VERSION
899     PACKAGE_TARNAME
900     PACKAGE_NAME
901 michael 912 PATH_SEPARATOR
902 michael 942 SHELL'
903 michael 912 ac_subst_files=''
904 db 941 ac_user_opts='
905     enable_option_checking
906     enable_maintainer_mode
907 michael 945 enable_dependency_tracking
908 michael 977 enable_static
909 michael 945 enable_shared
910     with_pic
911 db 941 enable_fast_install
912     with_gnu_ld
913     enable_libtool_lock
914 michael 945 with_included_ltdl
915     with_ltdl_include
916     with_ltdl_lib
917     enable_ltdl_install
918 db 941 with_zlib_path
919     enable_zlib
920 michael 1009 with_libpcre_path
921     enable_libpcre
922 db 941 enable_openssl
923     enable_assert
924     enable_small_net
925     enable_kqueue
926     enable_epoll
927     enable_devpoll
928     enable_rtsigio
929     enable_poll
930     enable_select
931     with_nicklen
932     with_topiclen
933     with_syslog_facility
934     enable_efnet
935     enable_halfops
936     enable_debugging
937     enable_warnings
938     enable_syslog
939     '
940 michael 912 ac_precious_vars='build_alias
941     host_alias
942     target_alias
943     CC
944     CFLAGS
945     LDFLAGS
946     LIBS
947     CPPFLAGS
948     YACC
949     YFLAGS
950 michael 945 CPP'
951 michael 912 ac_subdirs_all='libltdl'
952    
953     # Initialize some variables set by options.
954     ac_init_help=
955     ac_init_version=false
956 db 941 ac_unrecognized_opts=
957     ac_unrecognized_sep=
958 michael 912 # The variables have the same names as the options, with
959     # dashes changed to underlines.
960     cache_file=/dev/null
961     exec_prefix=NONE
962     no_create=
963     no_recursion=
964     prefix=NONE
965     program_prefix=NONE
966     program_suffix=NONE
967     program_transform_name=s,x,x,
968     silent=
969     site=
970     srcdir=
971     verbose=
972     x_includes=NONE
973     x_libraries=NONE
974    
975     # Installation directory options.
976     # These are left unexpanded so users can "make install exec_prefix=/foo"
977     # and all the variables that are supposed to be based on exec_prefix
978     # by default will actually change.
979     # Use braces instead of parens because sh, perl, etc. also accept them.
980     # (The list follows the same order as the GNU Coding Standards.)
981     bindir='${exec_prefix}/bin'
982     sbindir='${exec_prefix}/sbin'
983     libexecdir='${exec_prefix}/libexec'
984     datarootdir='${prefix}/share'
985     datadir='${datarootdir}'
986     sysconfdir='${prefix}/etc'
987     sharedstatedir='${prefix}/com'
988     localstatedir='${prefix}/var'
989     includedir='${prefix}/include'
990     oldincludedir='/usr/include'
991     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992     infodir='${datarootdir}/info'
993     htmldir='${docdir}'
994     dvidir='${docdir}'
995     pdfdir='${docdir}'
996     psdir='${docdir}'
997     libdir='${exec_prefix}/lib'
998     localedir='${datarootdir}/locale'
999     mandir='${datarootdir}/man'
1000    
1001     ac_prev=
1002     ac_dashdash=
1003     for ac_option
1004     do
1005     # If the previous option needs an argument, assign it.
1006     if test -n "$ac_prev"; then
1007     eval $ac_prev=\$ac_option
1008     ac_prev=
1009     continue
1010     fi
1011    
1012     case $ac_option in
1013     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014     *) ac_optarg=yes ;;
1015     esac
1016    
1017     # Accept the important Cygnus configure options, so we can diagnose typos.
1018    
1019     case $ac_dashdash$ac_option in
1020     --)
1021     ac_dashdash=yes ;;
1022    
1023     -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027    
1028     -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032    
1033     -cache-file | --cache-file | --cache-fil | --cache-fi \
1034     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039    
1040     --config-cache | -C)
1041     cache_file=config.cache ;;
1042    
1043     -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045     -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047    
1048     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049     | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054    
1055     -disable-* | --disable-*)
1056 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 michael 912 # Reject names that are not valid shell variable names.
1058 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1060 db 941 ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063     *"
1064     "enable_$ac_useropt"
1065     "*) ;;
1066     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067     ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070 michael 912
1071     -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075    
1076     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080    
1081     -enable-* | --enable-*)
1082 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 michael 912 # Reject names that are not valid shell variable names.
1084 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1086 db 941 ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089     *"
1090     "enable_$ac_useropt"
1091     "*) ;;
1092     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093     ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096 michael 912
1097     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099     | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103     | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105    
1106     -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109    
1110     -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116    
1117     -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119     -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121    
1122     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125     | --ht=*)
1126     htmldir=$ac_optarg ;;
1127    
1128     -includedir | --includedir | --includedi | --included | --include \
1129     | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132     | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134    
1135     -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139    
1140     -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144    
1145     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146     | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149     | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151    
1152     -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156    
1157     -localstatedir | --localstatedir | --localstatedi | --localstated \
1158     | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163    
1164     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168    
1169     -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172    
1173     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174     | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176    
1177     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180    
1181     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183     | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189    
1190     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194    
1195     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196     | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201    
1202     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203     | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208    
1209     -program-transform-name | --program-transform-name \
1210     | --program-transform-nam | --program-transform-na \
1211     | --program-transform-n | --program-transform- \
1212     | --program-transform | --program-transfor \
1213     | --program-transfo | --program-transf \
1214     | --program-trans | --program-tran \
1215     | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217     -program-transform-name=* | --program-transform-name=* \
1218     | --program-transform-nam=* | --program-transform-na=* \
1219     | --program-transform-n=* | --program-transform-=* \
1220     | --program-transform=* | --program-transfor=* \
1221     | --program-transfo=* | --program-transf=* \
1222     | --program-trans=* | --program-tran=* \
1223     | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225    
1226     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230    
1231     -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235    
1236     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237     | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239    
1240     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243     | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245    
1246     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248     | --sharedst | --shareds | --shared | --share | --shar \
1249     | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254     | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256    
1257     -site | --site | --sit)
1258     ac_prev=site ;;
1259     -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261    
1262     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266    
1267     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268     | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273    
1274     -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278    
1279     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281    
1282     -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284    
1285     -with-* | --with-*)
1286 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 michael 912 # Reject names that are not valid shell variable names.
1288 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 michael 967 as_fn_error "invalid package name: $ac_useropt"
1290 db 941 ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293     *"
1294     "with_$ac_useropt"
1295     "*) ;;
1296     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297     ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300 michael 912
1301     -without-* | --without-*)
1302 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 michael 912 # Reject names that are not valid shell variable names.
1304 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 michael 967 as_fn_error "invalid package name: $ac_useropt"
1306 db 941 ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309     *"
1310     "with_$ac_useropt"
1311     "*) ;;
1312     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313     ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316 michael 912
1317     --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320    
1321     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322     | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327    
1328     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334    
1335 michael 967 -*) as_fn_error "unrecognized option: \`$ac_option'
1336     Try \`$0 --help' for more information."
1337 michael 912 ;;
1338    
1339     *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342 michael 967 case $ac_envvar in #(
1343     '' | [0-9]* | *[!_$as_cr_alnum]* )
1344     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346 michael 912 eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348    
1349     *)
1350     # FIXME: should be removed in autoconf 3.0.
1351 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 michael 912 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355     ;;
1356    
1357     esac
1358     done
1359    
1360     if test -n "$ac_prev"; then
1361     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 michael 967 as_fn_error "missing argument to $ac_option"
1363 michael 912 fi
1364    
1365 db 941 if test -n "$ac_unrecognized_opts"; then
1366     case $enable_option_checking in
1367     no) ;;
1368 michael 967 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 db 941 esac
1371     fi
1372    
1373     # Check all directory arguments for consistency.
1374 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375     datadir sysconfdir sharedstatedir localstatedir includedir \
1376     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377     libdir localedir mandir
1378     do
1379     eval ac_val=\$$ac_var
1380 db 941 # Remove trailing slashes.
1381 michael 912 case $ac_val in
1382 db 941 */ )
1383     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384     eval $ac_var=\$ac_val;;
1385     esac
1386     # Be sure to have absolute directory names.
1387     case $ac_val in
1388 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390     esac
1391 michael 967 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 michael 912 done
1393    
1394     # There might be people who depend on the old broken behavior: `$host'
1395     # used to hold the argument of --host etc.
1396     # FIXME: To remove some day.
1397     build=$build_alias
1398     host=$host_alias
1399     target=$target_alias
1400    
1401     # FIXME: To remove some day.
1402     if test "x$host_alias" != x; then
1403     if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405 db 941 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 michael 912 If a cross compiler is detected then cross compile mode will be used." >&2
1407     elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409     fi
1410     fi
1411    
1412     ac_tool_prefix=
1413     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414    
1415     test "$silent" = yes && exec 6>/dev/null
1416    
1417    
1418     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419     ac_ls_di=`ls -di .` &&
1420     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 michael 967 as_fn_error "working directory cannot be determined"
1422 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 michael 967 as_fn_error "pwd does not report name of working directory"
1424 michael 912
1425    
1426     # Find the source files, if location was not specified.
1427     if test -z "$srcdir"; then
1428     ac_srcdir_defaulted=yes
1429     # Try the directory containing this script, then the parent directory.
1430 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1431     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432     X"$as_myself" : 'X\(//\)[^/]' \| \
1433     X"$as_myself" : 'X\(//\)$' \| \
1434     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435     $as_echo X"$as_myself" |
1436 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437     s//\1/
1438     q
1439     }
1440     /^X\(\/\/\)[^/].*/{
1441     s//\1/
1442     q
1443     }
1444     /^X\(\/\/\)$/{
1445     s//\1/
1446     q
1447     }
1448     /^X\(\/\).*/{
1449     s//\1/
1450     q
1451     }
1452     s/.*/./; q'`
1453     srcdir=$ac_confdir
1454     if test ! -r "$srcdir/$ac_unique_file"; then
1455     srcdir=..
1456     fi
1457     else
1458     ac_srcdir_defaulted=no
1459     fi
1460     if test ! -r "$srcdir/$ac_unique_file"; then
1461     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 michael 967 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 michael 912 fi
1464     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465     ac_abs_confdir=`(
1466 michael 967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 michael 912 pwd)`
1468     # When building in place, set srcdir=.
1469     if test "$ac_abs_confdir" = "$ac_pwd"; then
1470     srcdir=.
1471     fi
1472     # Remove unnecessary trailing slashes from srcdir.
1473     # Double slashes in file names in object file debugging info
1474     # mess up M-x gdb in Emacs.
1475     case $srcdir in
1476     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477     esac
1478     for ac_var in $ac_precious_vars; do
1479     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480     eval ac_env_${ac_var}_value=\$${ac_var}
1481     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483     done
1484    
1485     #
1486     # Report the --help message.
1487     #
1488     if test "$ac_init_help" = "long"; then
1489     # Omit some internal or obsolete options to make the list less imposing.
1490     # This message is too long to be a string in the A/UX 3.1 sh.
1491     cat <<_ACEOF
1492 michael 1039 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1493 michael 912
1494     Usage: $0 [OPTION]... [VAR=VALUE]...
1495    
1496     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497     VAR=VALUE. See below for descriptions of some of the useful variables.
1498    
1499     Defaults for the options are specified in brackets.
1500    
1501     Configuration:
1502     -h, --help display this help and exit
1503     --help=short display options specific to this package
1504     --help=recursive display the short help of all the included packages
1505     -V, --version display version information and exit
1506     -q, --quiet, --silent do not print \`checking...' messages
1507     --cache-file=FILE cache test results in FILE [disabled]
1508     -C, --config-cache alias for \`--cache-file=config.cache'
1509     -n, --no-create do not create output files
1510     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511    
1512     Installation directories:
1513     --prefix=PREFIX install architecture-independent files in PREFIX
1514 db 941 [$ac_default_prefix]
1515 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 db 941 [PREFIX]
1517 michael 912
1518     By default, \`make install' will install all the files in
1519     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521     for instance \`--prefix=\$HOME'.
1522    
1523     For better control, use the options below.
1524    
1525     Fine tuning of the installation directories:
1526 db 941 --bindir=DIR user executables [EPREFIX/bin]
1527     --sbindir=DIR system admin executables [EPREFIX/sbin]
1528     --libexecdir=DIR program executables [EPREFIX/libexec]
1529     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532     --libdir=DIR object code libraries [EPREFIX/lib]
1533     --includedir=DIR C header files [PREFIX/include]
1534     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537     --infodir=DIR info documentation [DATAROOTDIR/info]
1538     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539     --mandir=DIR man documentation [DATAROOTDIR/man]
1540     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1541     --htmldir=DIR html documentation [DOCDIR]
1542     --dvidir=DIR dvi documentation [DOCDIR]
1543     --pdfdir=DIR pdf documentation [DOCDIR]
1544     --psdir=DIR ps documentation [DOCDIR]
1545 michael 912 _ACEOF
1546    
1547     cat <<\_ACEOF
1548    
1549     Program names:
1550     --program-prefix=PREFIX prepend PREFIX to installed program names
1551     --program-suffix=SUFFIX append SUFFIX to installed program names
1552     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553    
1554     System types:
1555     --build=BUILD configure for building on BUILD [guessed]
1556     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557     _ACEOF
1558     fi
1559    
1560     if test -n "$ac_init_help"; then
1561     case $ac_init_help in
1562 michael 1039 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1563 michael 912 esac
1564     cat <<\_ACEOF
1565    
1566     Optional Features:
1567 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1568 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570     --enable-maintainer-mode enable make rules and dependencies not useful
1571     (and sometimes confusing) to the casual installer
1572     --disable-dependency-tracking speeds up one-time build
1573     --enable-dependency-tracking do not reject slow dependency extractors
1574 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1575 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 michael 912 --enable-fast-install[=PKGS]
1577     optimize for fast installation [default=yes]
1578     --disable-libtool-lock avoid locking (might break parallel builds)
1579 michael 945 --enable-ltdl-install install libltdl
1580 michael 923 --disable-zlib Disable ziplinks support
1581 michael 1009 --disable-libpcre Disable PCRE support
1582 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1583     --disable-openssl Disable OpenSSL support.
1584 michael 924 --enable-assert Enable assert() statements
1585 michael 925 --enable-small-net Enable small network support.
1586 michael 912 --enable-kqueue Force kqueue usage.
1587     --enable-epoll Force epoll usage.
1588     --enable-devpoll Force devpoll usage.
1589     --enable-rtsigio Force rtsigio usage.
1590     --enable-poll Force poll usage.
1591     --enable-select Force select usage.
1592     --enable-efnet For IRCDs running on EFnet.
1593     --enable-halfops Enable halfops support.
1594     --enable-debugging Enable debugging.
1595     --enable-warnings Enable compiler warnings.
1596     --enable-syslog="EVENTS"
1597     Enable syslog for events: users oper (space
1598     separated in quotes; default: disabled).
1599    
1600     Optional Packages:
1601     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603     --with-pic try to use only PIC/non-PIC objects [default=use
1604     both]
1605 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606     --with-included-ltdl use the GNU ltdl sources included here
1607     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1608     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1609 michael 923 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1610 michael 1009 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1611 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1612     --with-topiclen=<value> Set topic length (default 160).
1613     --with-syslog-facility=LOG
1614     Define the syslog facility to use (default:
1615     LOG_LOCAL4)
1616    
1617     Some influential environment variables:
1618     CC C compiler command
1619     CFLAGS C compiler flags
1620     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621     nonstandard directory <lib dir>
1622     LIBS libraries to pass to the linker, e.g. -l<library>
1623 michael 1033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1624 michael 912 you have headers in a nonstandard directory <include dir>
1625     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1626     the first program found out of: `bison -y', `byacc', `yacc'.
1627     YFLAGS The list of arguments that will be passed by default to $YACC.
1628     This script will default YFLAGS to the empty string to avoid a
1629     default value of `-d' given by some make applications.
1630     CPP C preprocessor
1631    
1632     Use these variables to override the choices made by `configure' or to help
1633     it to find libraries and programs with nonstandard names/locations.
1634    
1635 michael 1039 Report bugs to <bugs@ircd-hybrid.org>.
1636 michael 912 _ACEOF
1637     ac_status=$?
1638     fi
1639    
1640     if test "$ac_init_help" = "recursive"; then
1641     # If there are subdirs, report their specific --help.
1642     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 db 941 test -d "$ac_dir" ||
1644     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645     continue
1646 michael 912 ac_builddir=.
1647    
1648     case "$ac_dir" in
1649     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650     *)
1651 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 michael 912 # A ".." for each directory in $ac_dir_suffix.
1653 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 michael 912 case $ac_top_builddir_sub in
1655     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657     esac ;;
1658     esac
1659     ac_abs_top_builddir=$ac_pwd
1660     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661     # for backward compatibility:
1662     ac_top_builddir=$ac_top_build_prefix
1663    
1664     case $srcdir in
1665     .) # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669     [\\/]* | ?:[\\/]* ) # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673     *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677     esac
1678     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679    
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683     echo &&
1684     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686     echo &&
1687     $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 michael 912 fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692     done
1693     fi
1694    
1695     test -n "$ac_init_help" && exit $ac_status
1696     if $ac_init_version; then
1697     cat <<\_ACEOF
1698 michael 1039 ircd-hybrid configure 7.3-rc1
1699 michael 1033 generated by GNU Autoconf 2.65
1700 michael 912
1701 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
1702 michael 912 This configure script is free software; the Free Software Foundation
1703     gives unlimited permission to copy, distribute and modify it.
1704     _ACEOF
1705     exit
1706     fi
1707 michael 967
1708     ## ------------------------ ##
1709     ## Autoconf initialization. ##
1710     ## ------------------------ ##
1711    
1712     # ac_fn_c_try_compile LINENO
1713     # --------------------------
1714     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715     ac_fn_c_try_compile ()
1716     {
1717     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718     rm -f conftest.$ac_objext
1719     if { { ac_try="$ac_compile"
1720     case "(($ac_try" in
1721     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722     *) ac_try_echo=$ac_try;;
1723     esac
1724     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725     $as_echo "$ac_try_echo"; } >&5
1726     (eval "$ac_compile") 2>conftest.err
1727     ac_status=$?
1728     if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732     fi
1733     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734     test $ac_status = 0; } && {
1735     test -z "$ac_c_werror_flag" ||
1736     test ! -s conftest.err
1737     } && test -s conftest.$ac_objext; then :
1738     ac_retval=0
1739     else
1740     $as_echo "$as_me: failed program was:" >&5
1741     sed 's/^/| /' conftest.$ac_ext >&5
1742    
1743     ac_retval=1
1744     fi
1745     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 michael 1033 as_fn_set_status $ac_retval
1747 michael 967
1748     } # ac_fn_c_try_compile
1749    
1750     # ac_fn_c_try_link LINENO
1751     # -----------------------
1752     # Try to link conftest.$ac_ext, and return whether this succeeded.
1753     ac_fn_c_try_link ()
1754     {
1755     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756     rm -f conftest.$ac_objext conftest$ac_exeext
1757     if { { ac_try="$ac_link"
1758     case "(($ac_try" in
1759     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760     *) ac_try_echo=$ac_try;;
1761     esac
1762     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763     $as_echo "$ac_try_echo"; } >&5
1764     (eval "$ac_link") 2>conftest.err
1765     ac_status=$?
1766     if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770     fi
1771     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772     test $ac_status = 0; } && {
1773     test -z "$ac_c_werror_flag" ||
1774     test ! -s conftest.err
1775     } && test -s conftest$ac_exeext && {
1776     test "$cross_compiling" = yes ||
1777     $as_test_x conftest$ac_exeext
1778     }; then :
1779     ac_retval=0
1780     else
1781     $as_echo "$as_me: failed program was:" >&5
1782     sed 's/^/| /' conftest.$ac_ext >&5
1783    
1784     ac_retval=1
1785     fi
1786     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788     # interfere with the next link command; also delete a directory that is
1789     # left behind by Apple's compiler. We do this before executing the actions.
1790     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 michael 1033 as_fn_set_status $ac_retval
1793 michael 967
1794     } # ac_fn_c_try_link
1795    
1796     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797     # -------------------------------------------------------
1798     # Tests whether HEADER exists and can be compiled using the include files in
1799     # INCLUDES, setting the cache variable VAR accordingly.
1800     ac_fn_c_check_header_compile ()
1801     {
1802     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804     $as_echo_n "checking for $2... " >&6; }
1805     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806     $as_echo_n "(cached) " >&6
1807     else
1808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809     /* end confdefs.h. */
1810     $4
1811     #include <$2>
1812     _ACEOF
1813     if ac_fn_c_try_compile "$LINENO"; then :
1814     eval "$3=yes"
1815     else
1816     eval "$3=no"
1817     fi
1818     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819     fi
1820     eval ac_res=\$$3
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822     $as_echo "$ac_res" >&6; }
1823     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824    
1825     } # ac_fn_c_check_header_compile
1826    
1827     # ac_fn_c_try_cpp LINENO
1828     # ----------------------
1829     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830     ac_fn_c_try_cpp ()
1831     {
1832     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833     if { { ac_try="$ac_cpp conftest.$ac_ext"
1834     case "(($ac_try" in
1835     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836     *) ac_try_echo=$ac_try;;
1837     esac
1838     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839     $as_echo "$ac_try_echo"; } >&5
1840     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841     ac_status=$?
1842     if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846     fi
1847     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848     test $ac_status = 0; } >/dev/null && {
1849     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850     test ! -s conftest.err
1851     }; then :
1852     ac_retval=0
1853     else
1854     $as_echo "$as_me: failed program was:" >&5
1855     sed 's/^/| /' conftest.$ac_ext >&5
1856    
1857     ac_retval=1
1858     fi
1859     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 michael 1033 as_fn_set_status $ac_retval
1861 michael 967
1862     } # ac_fn_c_try_cpp
1863    
1864     # ac_fn_c_try_run LINENO
1865     # ----------------------
1866     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867     # that executables *can* be run.
1868     ac_fn_c_try_run ()
1869     {
1870     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871     if { { ac_try="$ac_link"
1872     case "(($ac_try" in
1873     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874     *) ac_try_echo=$ac_try;;
1875     esac
1876     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877     $as_echo "$ac_try_echo"; } >&5
1878     (eval "$ac_link") 2>&5
1879     ac_status=$?
1880     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882     { { case "(($ac_try" in
1883     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884     *) ac_try_echo=$ac_try;;
1885     esac
1886     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887     $as_echo "$ac_try_echo"; } >&5
1888     (eval "$ac_try") 2>&5
1889     ac_status=$?
1890     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891     test $ac_status = 0; }; }; then :
1892     ac_retval=0
1893     else
1894     $as_echo "$as_me: program exited with status $ac_status" >&5
1895     $as_echo "$as_me: failed program was:" >&5
1896     sed 's/^/| /' conftest.$ac_ext >&5
1897    
1898     ac_retval=$ac_status
1899     fi
1900     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 michael 1033 as_fn_set_status $ac_retval
1903 michael 967
1904     } # ac_fn_c_try_run
1905    
1906     # ac_fn_c_check_func LINENO FUNC VAR
1907     # ----------------------------------
1908     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909     ac_fn_c_check_func ()
1910     {
1911     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913     $as_echo_n "checking for $2... " >&6; }
1914     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915     $as_echo_n "(cached) " >&6
1916     else
1917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918     /* end confdefs.h. */
1919     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921     #define $2 innocuous_$2
1922    
1923     /* System header to define __stub macros and hopefully few prototypes,
1924     which can conflict with char $2 (); below.
1925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926     <limits.h> exists even on freestanding compilers. */
1927    
1928     #ifdef __STDC__
1929     # include <limits.h>
1930     #else
1931     # include <assert.h>
1932     #endif
1933    
1934     #undef $2
1935    
1936     /* Override any GCC internal prototype to avoid an error.
1937     Use char because int might match the return type of a GCC
1938     builtin and then its argument prototype would still apply. */
1939     #ifdef __cplusplus
1940     extern "C"
1941     #endif
1942     char $2 ();
1943     /* The GNU C library defines this for functions which it implements
1944     to always fail with ENOSYS. Some functions are actually named
1945     something starting with __ and the normal name is an alias. */
1946     #if defined __stub_$2 || defined __stub___$2
1947     choke me
1948     #endif
1949    
1950     int
1951     main ()
1952     {
1953     return $2 ();
1954     ;
1955     return 0;
1956     }
1957     _ACEOF
1958     if ac_fn_c_try_link "$LINENO"; then :
1959     eval "$3=yes"
1960     else
1961     eval "$3=no"
1962     fi
1963     rm -f core conftest.err conftest.$ac_objext \
1964     conftest$ac_exeext conftest.$ac_ext
1965     fi
1966     eval ac_res=\$$3
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968     $as_echo "$ac_res" >&6; }
1969     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970    
1971     } # ac_fn_c_check_func
1972    
1973     # ac_fn_c_check_decl LINENO SYMBOL VAR
1974     # ------------------------------------
1975     # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1976     ac_fn_c_check_decl ()
1977     {
1978     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1980     $as_echo_n "checking whether $2 is declared... " >&6; }
1981     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982     $as_echo_n "(cached) " >&6
1983     else
1984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985     /* end confdefs.h. */
1986     $4
1987     int
1988     main ()
1989     {
1990     #ifndef $2
1991     (void) $2;
1992     #endif
1993    
1994     ;
1995     return 0;
1996     }
1997     _ACEOF
1998     if ac_fn_c_try_compile "$LINENO"; then :
1999     eval "$3=yes"
2000     else
2001     eval "$3=no"
2002     fi
2003     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004     fi
2005     eval ac_res=\$$3
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007     $as_echo "$ac_res" >&6; }
2008     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009    
2010     } # ac_fn_c_check_decl
2011    
2012     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013     # -------------------------------------------
2014     # Tests whether TYPE exists after having included INCLUDES, setting cache
2015     # variable VAR accordingly.
2016     ac_fn_c_check_type ()
2017     {
2018     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020     $as_echo_n "checking for $2... " >&6; }
2021     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022     $as_echo_n "(cached) " >&6
2023     else
2024     eval "$3=no"
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026     /* end confdefs.h. */
2027     $4
2028     int
2029     main ()
2030     {
2031     if (sizeof ($2))
2032     return 0;
2033     ;
2034     return 0;
2035     }
2036     _ACEOF
2037     if ac_fn_c_try_compile "$LINENO"; then :
2038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039     /* end confdefs.h. */
2040     $4
2041     int
2042     main ()
2043     {
2044     if (sizeof (($2)))
2045     return 0;
2046     ;
2047     return 0;
2048     }
2049     _ACEOF
2050     if ac_fn_c_try_compile "$LINENO"; then :
2051    
2052     else
2053     eval "$3=yes"
2054     fi
2055     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056     fi
2057     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058     fi
2059     eval ac_res=\$$3
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061     $as_echo "$ac_res" >&6; }
2062     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063    
2064     } # ac_fn_c_check_type
2065    
2066     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067     # ----------------------------------------------------
2068     # Tries to find if the field MEMBER exists in type AGGR, after including
2069     # INCLUDES, setting cache variable VAR accordingly.
2070     ac_fn_c_check_member ()
2071     {
2072     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074     $as_echo_n "checking for $2.$3... " >&6; }
2075     if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2076     $as_echo_n "(cached) " >&6
2077     else
2078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079     /* end confdefs.h. */
2080     $5
2081     int
2082     main ()
2083     {
2084     static $2 ac_aggr;
2085     if (ac_aggr.$3)
2086     return 0;
2087     ;
2088     return 0;
2089     }
2090     _ACEOF
2091     if ac_fn_c_try_compile "$LINENO"; then :
2092     eval "$4=yes"
2093     else
2094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095     /* end confdefs.h. */
2096     $5
2097     int
2098     main ()
2099     {
2100     static $2 ac_aggr;
2101     if (sizeof ac_aggr.$3)
2102     return 0;
2103     ;
2104     return 0;
2105     }
2106     _ACEOF
2107     if ac_fn_c_try_compile "$LINENO"; then :
2108     eval "$4=yes"
2109     else
2110     eval "$4=no"
2111     fi
2112     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113     fi
2114     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115     fi
2116     eval ac_res=\$$4
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118     $as_echo "$ac_res" >&6; }
2119     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120    
2121     } # ac_fn_c_check_member
2122    
2123     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2124     # -------------------------------------------------------
2125     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126     # the include files in INCLUDES and setting the cache variable VAR
2127     # accordingly.
2128     ac_fn_c_check_header_mongrel ()
2129     {
2130     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133     $as_echo_n "checking for $2... " >&6; }
2134     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135     $as_echo_n "(cached) " >&6
2136     fi
2137     eval ac_res=\$$3
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139     $as_echo "$ac_res" >&6; }
2140     else
2141     # Is the header compilable?
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143     $as_echo_n "checking $2 usability... " >&6; }
2144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145     /* end confdefs.h. */
2146     $4
2147     #include <$2>
2148     _ACEOF
2149     if ac_fn_c_try_compile "$LINENO"; then :
2150     ac_header_compiler=yes
2151     else
2152     ac_header_compiler=no
2153     fi
2154     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156     $as_echo "$ac_header_compiler" >&6; }
2157    
2158     # Is the header present?
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160     $as_echo_n "checking $2 presence... " >&6; }
2161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162     /* end confdefs.h. */
2163     #include <$2>
2164     _ACEOF
2165     if ac_fn_c_try_cpp "$LINENO"; then :
2166     ac_header_preproc=yes
2167     else
2168     ac_header_preproc=no
2169     fi
2170     rm -f conftest.err conftest.$ac_ext
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172     $as_echo "$ac_header_preproc" >&6; }
2173    
2174     # So? What about this header?
2175     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2176     yes:no: )
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181     ;;
2182     no:yes:* )
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2186     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2190     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 michael 1039 ( cat <<\_ASBOX
2194     ## ----------------------------------- ##
2195     ## Report this to bugs@ircd-hybrid.org ##
2196     ## ----------------------------------- ##
2197     _ASBOX
2198     ) | sed "s/^/$as_me: WARNING: /" >&2
2199 michael 967 ;;
2200     esac
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202     $as_echo_n "checking for $2... " >&6; }
2203     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204     $as_echo_n "(cached) " >&6
2205     else
2206     eval "$3=\$ac_header_compiler"
2207     fi
2208     eval ac_res=\$$3
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210     $as_echo "$ac_res" >&6; }
2211     fi
2212     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213    
2214     } # ac_fn_c_check_header_mongrel
2215 michael 912 cat >config.log <<_ACEOF
2216     This file contains any messages produced by compilers while
2217     running configure, to aid debugging if configure makes a mistake.
2218    
2219 michael 1039 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2220 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
2221 michael 912
2222     $ $0 $@
2223    
2224     _ACEOF
2225     exec 5>>config.log
2226     {
2227     cat <<_ASUNAME
2228     ## --------- ##
2229     ## Platform. ##
2230     ## --------- ##
2231    
2232     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2237    
2238     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2240    
2241     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2248    
2249     _ASUNAME
2250    
2251     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252     for as_dir in $PATH
2253     do
2254     IFS=$as_save_IFS
2255     test -z "$as_dir" && as_dir=.
2256 michael 967 $as_echo "PATH: $as_dir"
2257     done
2258 michael 912 IFS=$as_save_IFS
2259    
2260     } >&5
2261    
2262     cat >&5 <<_ACEOF
2263    
2264    
2265     ## ----------- ##
2266     ## Core tests. ##
2267     ## ----------- ##
2268    
2269     _ACEOF
2270    
2271    
2272     # Keep a trace of the command line.
2273     # Strip out --no-create and --no-recursion so they do not pile up.
2274     # Strip out --silent because we don't want to record it for future runs.
2275     # Also quote any args containing shell meta-characters.
2276     # Make two passes to allow for proper duplicate-argument suppression.
2277     ac_configure_args=
2278     ac_configure_args0=
2279     ac_configure_args1=
2280     ac_must_keep_next=false
2281     for ac_pass in 1 2
2282     do
2283     for ac_arg
2284     do
2285     case $ac_arg in
2286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288     | -silent | --silent | --silen | --sile | --sil)
2289     continue ;;
2290     *\'*)
2291 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 michael 912 esac
2293     case $ac_pass in
2294 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2295 michael 912 2)
2296 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 michael 912 if test $ac_must_keep_next = true; then
2298     ac_must_keep_next=false # Got value, back to normal.
2299     else
2300     case $ac_arg in
2301     *=* | --config-cache | -C | -disable-* | --disable-* \
2302     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304     | -with-* | --with-* | -without-* | --without-* | --x)
2305     case "$ac_configure_args0 " in
2306     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307     esac
2308     ;;
2309     -* ) ac_must_keep_next=true ;;
2310     esac
2311     fi
2312 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2313 michael 912 ;;
2314     esac
2315     done
2316     done
2317 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2318     { ac_configure_args1=; unset ac_configure_args1;}
2319 michael 912
2320     # When interrupted or exit'd, cleanup temporary files, and complete
2321     # config.log. We remove comments because anyway the quotes in there
2322     # would cause problems or look ugly.
2323     # WARNING: Use '\'' to represent an apostrophe within the trap.
2324     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325     trap 'exit_status=$?
2326     # Save into config.log some information that might help in debugging.
2327     {
2328     echo
2329    
2330     cat <<\_ASBOX
2331     ## ---------------- ##
2332     ## Cache variables. ##
2333     ## ---------------- ##
2334     _ASBOX
2335     echo
2336     # The following way of writing the cache mishandles newlines in values,
2337     (
2338     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339     eval ac_val=\$$ac_var
2340     case $ac_val in #(
2341     *${as_nl}*)
2342     case $ac_var in #(
2343 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 michael 912 esac
2346     case $ac_var in #(
2347     _ | IFS | as_nl) ;; #(
2348 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2350 michael 912 esac ;;
2351     esac
2352     done
2353     (set) 2>&1 |
2354     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355     *${as_nl}ac_space=\ *)
2356     sed -n \
2357     "s/'\''/'\''\\\\'\'''\''/g;
2358     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359     ;; #(
2360     *)
2361     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362     ;;
2363     esac |
2364     sort
2365     )
2366     echo
2367    
2368     cat <<\_ASBOX
2369     ## ----------------- ##
2370     ## Output variables. ##
2371     ## ----------------- ##
2372     _ASBOX
2373     echo
2374     for ac_var in $ac_subst_vars
2375     do
2376     eval ac_val=\$$ac_var
2377     case $ac_val in
2378 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 michael 912 esac
2380 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2381 michael 912 done | sort
2382     echo
2383    
2384     if test -n "$ac_subst_files"; then
2385     cat <<\_ASBOX
2386     ## ------------------- ##
2387     ## File substitutions. ##
2388     ## ------------------- ##
2389     _ASBOX
2390     echo
2391     for ac_var in $ac_subst_files
2392     do
2393     eval ac_val=\$$ac_var
2394     case $ac_val in
2395 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 michael 912 esac
2397 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2398 michael 912 done | sort
2399     echo
2400     fi
2401    
2402     if test -s confdefs.h; then
2403     cat <<\_ASBOX
2404     ## ----------- ##
2405     ## confdefs.h. ##
2406     ## ----------- ##
2407     _ASBOX
2408     echo
2409     cat confdefs.h
2410     echo
2411     fi
2412     test "$ac_signal" != 0 &&
2413 db 941 $as_echo "$as_me: caught signal $ac_signal"
2414     $as_echo "$as_me: exit $exit_status"
2415 michael 912 } >&5
2416     rm -f core *.core core.conftest.* &&
2417     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418     exit $exit_status
2419     ' 0
2420     for ac_signal in 1 2 13 15; do
2421 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 michael 912 done
2423     ac_signal=0
2424    
2425     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2426     rm -f -r conftest* confdefs.h
2427    
2428 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2429    
2430 michael 912 # Predefined preprocessor variables.
2431    
2432     cat >>confdefs.h <<_ACEOF
2433     #define PACKAGE_NAME "$PACKAGE_NAME"
2434     _ACEOF
2435    
2436     cat >>confdefs.h <<_ACEOF
2437     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438     _ACEOF
2439    
2440     cat >>confdefs.h <<_ACEOF
2441     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442     _ACEOF
2443    
2444     cat >>confdefs.h <<_ACEOF
2445     #define PACKAGE_STRING "$PACKAGE_STRING"
2446     _ACEOF
2447    
2448     cat >>confdefs.h <<_ACEOF
2449     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450     _ACEOF
2451    
2452 michael 967 cat >>confdefs.h <<_ACEOF
2453     #define PACKAGE_URL "$PACKAGE_URL"
2454     _ACEOF
2455 michael 912
2456 michael 967
2457 michael 912 # Let the site file select an alternate cache file if it wants to.
2458 db 941 # Prefer an explicitly selected file to automatically selected ones.
2459     ac_site_file1=NONE
2460     ac_site_file2=NONE
2461 michael 912 if test -n "$CONFIG_SITE"; then
2462 db 941 ac_site_file1=$CONFIG_SITE
2463 michael 912 elif test "x$prefix" != xNONE; then
2464 db 941 ac_site_file1=$prefix/share/config.site
2465     ac_site_file2=$prefix/etc/config.site
2466 michael 912 else
2467 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2468     ac_site_file2=$ac_default_prefix/etc/config.site
2469 michael 912 fi
2470 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 michael 912 do
2472 db 941 test "x$ac_site_file" = xNONE && continue
2473 michael 1033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2477     . "$ac_site_file"
2478     fi
2479     done
2480    
2481     if test -r "$cache_file"; then
2482 michael 1033 # Some versions of bash will fail to source /dev/null (special files
2483     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2484     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 michael 912 case $cache_file in
2488     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489     *) . "./$cache_file";;
2490     esac
2491     fi
2492     else
2493 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2495 michael 912 >$cache_file
2496     fi
2497    
2498 michael 967 as_fn_append ac_func_list " mmap"
2499     as_fn_append ac_func_list " strtok_r"
2500     as_fn_append ac_func_list " usleep"
2501     as_fn_append ac_func_list " strlcat"
2502     as_fn_append ac_func_list " strlcpy"
2503     as_fn_append ac_header_list " crypt.h"
2504     as_fn_append ac_header_list " inttypes.h"
2505     as_fn_append ac_header_list " stdint.h"
2506     as_fn_append ac_header_list " sys/resource.h"
2507     as_fn_append ac_header_list " sys/param.h"
2508     as_fn_append ac_header_list " errno.h"
2509     as_fn_append ac_header_list " sys/syslog.h"
2510     as_fn_append ac_header_list " types.h"
2511     as_fn_append ac_header_list " socket.h"
2512     as_fn_append ac_header_list " sys/wait.h"
2513     as_fn_append ac_header_list " wait.h"
2514     as_fn_append ac_header_list " link.h"
2515 michael 912 # Check that the precious variables saved in the cache have kept the same
2516     # value.
2517     ac_cache_corrupted=false
2518     for ac_var in $ac_precious_vars; do
2519     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2520     eval ac_new_set=\$ac_env_${ac_var}_set
2521     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2522     eval ac_new_val=\$ac_env_${ac_var}_value
2523     case $ac_old_set,$ac_new_set in
2524     set,)
2525 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2526 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2527 michael 912 ac_cache_corrupted=: ;;
2528     ,set)
2529 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2530 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2531 michael 912 ac_cache_corrupted=: ;;
2532     ,);;
2533     *)
2534     if test "x$ac_old_val" != "x$ac_new_val"; then
2535 db 941 # differences in whitespace do not lead to failure.
2536     ac_old_val_w=`echo x $ac_old_val`
2537     ac_new_val_w=`echo x $ac_new_val`
2538     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2539 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2540 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2541     ac_cache_corrupted=:
2542     else
2543 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2544 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2545     eval $ac_var=\$ac_old_val
2546     fi
2547 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2548 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2549 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2550 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2551 michael 912 fi;;
2552     esac
2553     # Pass precious variables to config.status.
2554     if test "$ac_new_set" = set; then
2555     case $ac_new_val in
2556 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2557 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2558     esac
2559     case " $ac_configure_args " in
2560     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2561 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2562 michael 912 esac
2563     fi
2564     done
2565     if $ac_cache_corrupted; then
2566 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2569 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2570 michael 967 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2571 michael 912 fi
2572 michael 967 ## -------------------- ##
2573     ## Main body of script. ##
2574     ## -------------------- ##
2575 michael 912
2576     ac_ext=c
2577     ac_cpp='$CPP $CPPFLAGS'
2578     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581    
2582    
2583 michael 945 am__api_version='1.11'
2584 michael 912
2585     ac_aux_dir=
2586     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587 michael 967 for ac_t in install-sh install.sh shtool; do
2588     if test -f "$ac_dir/$ac_t"; then
2589     ac_aux_dir=$ac_dir
2590     ac_install_sh="$ac_aux_dir/$ac_t -c"
2591     break 2
2592     fi
2593     done
2594 michael 912 done
2595     if test -z "$ac_aux_dir"; then
2596 michael 967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2597 michael 912 fi
2598    
2599     # These three variables are undocumented and unsupported,
2600     # and are intended to be withdrawn in a future Autoconf release.
2601     # They can cause serious problems if a builder's source tree is in a directory
2602     # whose full name contains unusual characters.
2603     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606    
2607    
2608     # Find a good install program. We prefer a C program (faster),
2609     # so one script is as good as another. But avoid the broken or
2610     # incompatible versions:
2611     # SysV /etc/install, /usr/sbin/install
2612     # SunOS /usr/etc/install
2613     # IRIX /sbin/install
2614     # AIX /bin/install
2615     # AmigaOS /C/install, which installs bootblocks on floppy discs
2616     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619     # OS/2's system install, which has a completely different semantic
2620     # ./install, which can be erroneously created by make from ./install.sh.
2621 db 941 # Reject install programs that cannot install multiple files.
2622 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 michael 912 if test -z "$INSTALL"; then
2625 michael 967 if test "${ac_cv_path_install+set}" = set; then :
2626 db 941 $as_echo_n "(cached) " >&6
2627 michael 912 else
2628     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629     for as_dir in $PATH
2630     do
2631     IFS=$as_save_IFS
2632     test -z "$as_dir" && as_dir=.
2633 michael 967 # Account for people who put trailing slashes in PATH elements.
2634     case $as_dir/ in #((
2635     ./ | .// | /[cC]/* | \
2636 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638 michael 912 /usr/ucb/* ) ;;
2639     *)
2640     # OSF1 and SCO ODT 3.0 have their own names for install.
2641     # Don't use installbsd from OSF since it installs stuff as root
2642     # by default.
2643     for ac_prog in ginstall scoinst install; do
2644     for ac_exec_ext in '' $ac_executable_extensions; do
2645     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2646     if test $ac_prog = install &&
2647     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648     # AIX install. It has an incompatible calling convention.
2649     :
2650     elif test $ac_prog = install &&
2651     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652     # program-specific install script used by HP pwplus--don't use.
2653     :
2654     else
2655 db 941 rm -rf conftest.one conftest.two conftest.dir
2656     echo one > conftest.one
2657     echo two > conftest.two
2658     mkdir conftest.dir
2659     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660     test -s conftest.one && test -s conftest.two &&
2661     test -s conftest.dir/conftest.one &&
2662     test -s conftest.dir/conftest.two
2663     then
2664     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2665     break 3
2666     fi
2667 michael 912 fi
2668     fi
2669     done
2670     done
2671     ;;
2672     esac
2673 db 941
2674 michael 967 done
2675 michael 912 IFS=$as_save_IFS
2676    
2677 db 941 rm -rf conftest.one conftest.two conftest.dir
2678 michael 912
2679     fi
2680     if test "${ac_cv_path_install+set}" = set; then
2681     INSTALL=$ac_cv_path_install
2682     else
2683     # As a last resort, use the slow shell script. Don't cache a
2684     # value for INSTALL within a source directory, because that will
2685     # break other packages using the cache if that directory is
2686     # removed, or if the value is a relative name.
2687     INSTALL=$ac_install_sh
2688     fi
2689     fi
2690 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 db 941 $as_echo "$INSTALL" >&6; }
2692 michael 912
2693     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694     # It thinks the first close brace ends the variable substitution.
2695     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696    
2697     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698    
2699     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700    
2701 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2703 michael 912 # Just in case
2704     sleep 1
2705     echo timestamp > conftest.file
2706 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2707     # name. Accept space and tab only in the latter.
2708     am_lf='
2709     '
2710     case `pwd` in
2711     *[\\\"\#\$\&\'\`$am_lf]*)
2712 michael 967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2713 michael 945 esac
2714     case $srcdir in
2715     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 michael 967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2717 michael 945 esac
2718    
2719 michael 912 # Do `set' in a subshell so we don't clobber the current shell's
2720     # arguments. Must try -L first in case configure is actually a
2721     # symlink; some systems play weird games with the mod time of symlinks
2722     # (eg FreeBSD returns the mod time of the symlink's containing
2723     # directory).
2724     if (
2725 michael 945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726 michael 912 if test "$*" = "X"; then
2727     # -L didn't work.
2728 michael 945 set X `ls -t "$srcdir/configure" conftest.file`
2729 michael 912 fi
2730     rm -f conftest.file
2731     if test "$*" != "X $srcdir/configure conftest.file" \
2732     && test "$*" != "X conftest.file $srcdir/configure"; then
2733    
2734     # If neither matched, then we have a broken ls. This can happen
2735     # if, for instance, CONFIG_SHELL is bash and it inherits a
2736     # broken ls alias from the environment. This has actually
2737     # happened. Such a system could not be considered "sane".
2738 michael 967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2739     alias in your environment" "$LINENO" 5
2740 michael 912 fi
2741    
2742     test "$2" = conftest.file
2743     )
2744     then
2745     # Ok.
2746     :
2747     else
2748 michael 967 as_fn_error "newly created file is older than distributed files!
2749     Check your system clock" "$LINENO" 5
2750 michael 912 fi
2751 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 db 941 $as_echo "yes" >&6; }
2753 michael 912 test "$program_prefix" != NONE &&
2754     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755     # Use a double $ so make ignores it.
2756     test "$program_suffix" != NONE &&
2757     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 db 941 # Double any \ or $.
2759 michael 912 # By default was `s,x,x', remove it if useless.
2760 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762 michael 912
2763     # expand $ac_aux_dir to an absolute path
2764     am_aux_dir=`cd $ac_aux_dir && pwd`
2765    
2766 michael 945 if test x"${MISSING+set}" != xset; then
2767     case $am_aux_dir in
2768     *\ * | *\ *)
2769     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2770     *)
2771     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2772     esac
2773     fi
2774 michael 912 # Use eval to expand $SHELL
2775     if eval "$MISSING --run true"; then
2776     am_missing_run="$MISSING --run "
2777     else
2778     am_missing_run=
2779 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 db 941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2781 michael 912 fi
2782    
2783 michael 945 if test x"${install_sh}" != xset; then
2784     case $am_aux_dir in
2785     *\ * | *\ *)
2786     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2787     *)
2788     install_sh="\${SHELL} $am_aux_dir/install-sh"
2789     esac
2790     fi
2791    
2792     # Installed binaries are usually stripped using `strip' when the user
2793     # run `make install-strip'. However `strip' might not be the right
2794     # tool to use in cross-compilation environments, therefore Automake
2795     # will honor the `STRIP' environment variable to overrule this program.
2796     if test "$cross_compiling" != no; then
2797     if test -n "$ac_tool_prefix"; then
2798     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799     set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2802 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2803 michael 945 $as_echo_n "(cached) " >&6
2804     else
2805     if test -n "$STRIP"; then
2806     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2807     else
2808     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809     for as_dir in $PATH
2810     do
2811     IFS=$as_save_IFS
2812     test -z "$as_dir" && as_dir=.
2813 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2814 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 michael 945 break 2
2818     fi
2819     done
2820 michael 967 done
2821 michael 945 IFS=$as_save_IFS
2822    
2823     fi
2824     fi
2825     STRIP=$ac_cv_prog_STRIP
2826     if test -n "$STRIP"; then
2827 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 michael 945 $as_echo "$STRIP" >&6; }
2829     else
2830 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 michael 945 $as_echo "no" >&6; }
2832     fi
2833    
2834    
2835     fi
2836     if test -z "$ac_cv_prog_STRIP"; then
2837     ac_ct_STRIP=$STRIP
2838     # Extract the first word of "strip", so it can be a program name with args.
2839     set dummy strip; ac_word=$2
2840 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2842 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2843 michael 945 $as_echo_n "(cached) " >&6
2844     else
2845     if test -n "$ac_ct_STRIP"; then
2846     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2847     else
2848     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849     for as_dir in $PATH
2850     do
2851     IFS=$as_save_IFS
2852     test -z "$as_dir" && as_dir=.
2853 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2854 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_ac_ct_STRIP="strip"
2856 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 michael 945 break 2
2858     fi
2859     done
2860 michael 967 done
2861 michael 945 IFS=$as_save_IFS
2862    
2863     fi
2864     fi
2865     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866     if test -n "$ac_ct_STRIP"; then
2867 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2869     else
2870 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 michael 945 $as_echo "no" >&6; }
2872     fi
2873    
2874     if test "x$ac_ct_STRIP" = x; then
2875     STRIP=":"
2876     else
2877     case $cross_compiling:$ac_tool_warned in
2878     yes:)
2879 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881     ac_tool_warned=yes ;;
2882     esac
2883     STRIP=$ac_ct_STRIP
2884     fi
2885     else
2886     STRIP="$ac_cv_prog_STRIP"
2887     fi
2888    
2889     fi
2890     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2891    
2892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 michael 912 if test -z "$MKDIR_P"; then
2895 michael 967 if test "${ac_cv_path_mkdir+set}" = set; then :
2896 db 941 $as_echo_n "(cached) " >&6
2897 michael 912 else
2898     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2900     do
2901     IFS=$as_save_IFS
2902     test -z "$as_dir" && as_dir=.
2903 michael 967 for ac_prog in mkdir gmkdir; do
2904 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2905     { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2906     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907     'mkdir (GNU coreutils) '* | \
2908     'mkdir (coreutils) '* | \
2909     'mkdir (fileutils) '4.1*)
2910     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911     break 3;;
2912     esac
2913     done
2914     done
2915 michael 967 done
2916 michael 912 IFS=$as_save_IFS
2917    
2918     fi
2919    
2920 michael 1033 test -d ./--version && rmdir ./--version
2921 michael 912 if test "${ac_cv_path_mkdir+set}" = set; then
2922     MKDIR_P="$ac_cv_path_mkdir -p"
2923     else
2924     # As a last resort, use the slow shell script. Don't cache a
2925     # value for MKDIR_P within a source directory, because that will
2926     # break other packages using the cache if that directory is
2927     # removed, or if the value is a relative name.
2928     MKDIR_P="$ac_install_sh -d"
2929     fi
2930     fi
2931 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 db 941 $as_echo "$MKDIR_P" >&6; }
2933 michael 912
2934     mkdir_p="$MKDIR_P"
2935     case $mkdir_p in
2936     [\\/$]* | ?:[\\/]*) ;;
2937     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2938     esac
2939    
2940     for ac_prog in gawk mawk nawk awk
2941     do
2942     # Extract the first word of "$ac_prog", so it can be a program name with args.
2943     set dummy $ac_prog; ac_word=$2
2944 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2946 michael 967 if test "${ac_cv_prog_AWK+set}" = set; then :
2947 db 941 $as_echo_n "(cached) " >&6
2948 michael 912 else
2949     if test -n "$AWK"; then
2950     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951     else
2952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953     for as_dir in $PATH
2954     do
2955     IFS=$as_save_IFS
2956     test -z "$as_dir" && as_dir=.
2957 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2958 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959     ac_cv_prog_AWK="$ac_prog"
2960 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 michael 912 break 2
2962     fi
2963     done
2964 michael 967 done
2965 michael 912 IFS=$as_save_IFS
2966    
2967     fi
2968     fi
2969     AWK=$ac_cv_prog_AWK
2970     if test -n "$AWK"; then
2971 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 db 941 $as_echo "$AWK" >&6; }
2973 michael 912 else
2974 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 db 941 $as_echo "no" >&6; }
2976 michael 912 fi
2977    
2978    
2979     test -n "$AWK" && break
2980     done
2981    
2982 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984     set x ${MAKE-make}
2985     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 michael 967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2987 db 941 $as_echo_n "(cached) " >&6
2988 michael 912 else
2989     cat >conftest.make <<\_ACEOF
2990     SHELL = /bin/sh
2991     all:
2992     @echo '@@@%%%=$(MAKE)=@@@%%%'
2993     _ACEOF
2994     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2995     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996     *@@@%%%=?*=@@@%%%*)
2997     eval ac_cv_prog_make_${ac_make}_set=yes;;
2998     *)
2999     eval ac_cv_prog_make_${ac_make}_set=no;;
3000     esac
3001     rm -f conftest.make
3002     fi
3003     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 db 941 $as_echo "yes" >&6; }
3006 michael 912 SET_MAKE=
3007     else
3008 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 db 941 $as_echo "no" >&6; }
3010 michael 912 SET_MAKE="MAKE=${MAKE-make}"
3011     fi
3012    
3013     rm -rf .tst 2>/dev/null
3014     mkdir .tst 2>/dev/null
3015     if test -d .tst; then
3016     am__leading_dot=.
3017     else
3018     am__leading_dot=_
3019     fi
3020     rmdir .tst 2>/dev/null
3021    
3022     if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024     # is not polluted with repeated "-I."
3025     am__isrc=' -I$(srcdir)'
3026     # test to see if srcdir already configured
3027     if test -f $srcdir/config.status; then
3028 michael 967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3029 michael 912 fi
3030     fi
3031    
3032     # test whether we have cygpath
3033     if test -z "$CYGPATH_W"; then
3034     if (cygpath --version) >/dev/null 2>/dev/null; then
3035     CYGPATH_W='cygpath -w'
3036     else
3037     CYGPATH_W=echo
3038     fi
3039     fi
3040    
3041    
3042     # Define the identity of the package.
3043     PACKAGE='ircd-hybrid'
3044 michael 1039 VERSION='7.3-rc1'
3045 michael 912
3046    
3047     cat >>confdefs.h <<_ACEOF
3048     #define PACKAGE "$PACKAGE"
3049     _ACEOF
3050    
3051    
3052     cat >>confdefs.h <<_ACEOF
3053     #define VERSION "$VERSION"
3054     _ACEOF
3055    
3056     # Some tools Automake needs.
3057    
3058     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059    
3060    
3061     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062    
3063    
3064     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065    
3066    
3067     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068    
3069    
3070     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071    
3072     # We need awk for the "check" target. The system "awk" is bad on
3073     # some platforms.
3074     # Always define AMTAR for backward compatibility.
3075    
3076     AMTAR=${AMTAR-"${am_missing_run}tar"}
3077    
3078     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3079    
3080    
3081    
3082    
3083    
3084 michael 945
3085 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3086 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3087 michael 912 # Check whether --enable-maintainer-mode was given.
3088 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
3089 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3090     else
3091     USE_MAINTAINER_MODE=no
3092     fi
3093    
3094 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3095 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3096 michael 912 if test $USE_MAINTAINER_MODE = yes; then
3097     MAINTAINER_MODE_TRUE=
3098     MAINTAINER_MODE_FALSE='#'
3099     else
3100     MAINTAINER_MODE_TRUE='#'
3101     MAINTAINER_MODE_FALSE=
3102     fi
3103    
3104     MAINT=$MAINTAINER_MODE_TRUE
3105    
3106    
3107     ac_config_headers="$ac_config_headers config.h"
3108    
3109    
3110    
3111 michael 1010 # Checks for programs.
3112     DEPDIR="${am__leading_dot}deps"
3113 michael 923
3114 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3115    
3116    
3117     am_make=${MAKE-make}
3118     cat > confinc << 'END'
3119     am__doit:
3120     @echo this is the am__doit target
3121     .PHONY: am__doit
3122     END
3123     # If we don't find an include directive, just comment out the code.
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126     am__include="#"
3127     am__quote=
3128     _am_result=none
3129     # First try GNU make style include.
3130     echo "include confinc" > confmf
3131     # Ignore all kinds of additional output from `make'.
3132     case `$am_make -s -f confmf 2> /dev/null` in #(
3133     *the\ am__doit\ target*)
3134     am__include=include
3135     am__quote=
3136     _am_result=GNU
3137     ;;
3138     esac
3139     # Now try BSD make style include.
3140     if test "$am__include" = "#"; then
3141     echo '.include "confinc"' > confmf
3142     case `$am_make -s -f confmf 2> /dev/null` in #(
3143     *the\ am__doit\ target*)
3144     am__include=.include
3145     am__quote="\""
3146     _am_result=BSD
3147     ;;
3148     esac
3149     fi
3150    
3151    
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153     $as_echo "$_am_result" >&6; }
3154     rm -f confinc confmf
3155    
3156     # Check whether --enable-dependency-tracking was given.
3157     if test "${enable_dependency_tracking+set}" = set; then :
3158     enableval=$enable_dependency_tracking;
3159     fi
3160    
3161     if test "x$enable_dependency_tracking" != xno; then
3162     am_depcomp="$ac_aux_dir/depcomp"
3163     AMDEPBACKSLASH='\'
3164     fi
3165     if test "x$enable_dependency_tracking" != xno; then
3166     AMDEP_TRUE=
3167     AMDEP_FALSE='#'
3168     else
3169     AMDEP_TRUE='#'
3170     AMDEP_FALSE=
3171     fi
3172    
3173    
3174 michael 912 ac_ext=c
3175     ac_cpp='$CPP $CPPFLAGS'
3176     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179     if test -n "$ac_tool_prefix"; then
3180     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3184 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3185 db 941 $as_echo_n "(cached) " >&6
3186 michael 912 else
3187     if test -n "$CC"; then
3188     ac_cv_prog_CC="$CC" # Let the user override the test.
3189     else
3190     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191     for as_dir in $PATH
3192     do
3193     IFS=$as_save_IFS
3194     test -z "$as_dir" && as_dir=.
3195 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3196 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 michael 912 break 2
3200     fi
3201     done
3202 michael 967 done
3203 michael 912 IFS=$as_save_IFS
3204    
3205     fi
3206     fi
3207     CC=$ac_cv_prog_CC
3208     if test -n "$CC"; then
3209 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 db 941 $as_echo "$CC" >&6; }
3211 michael 912 else
3212 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 db 941 $as_echo "no" >&6; }
3214 michael 912 fi
3215    
3216    
3217     fi
3218     if test -z "$ac_cv_prog_CC"; then
3219     ac_ct_CC=$CC
3220     # Extract the first word of "gcc", so it can be a program name with args.
3221     set dummy gcc; ac_word=$2
3222 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3224 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 db 941 $as_echo_n "(cached) " >&6
3226 michael 912 else
3227     if test -n "$ac_ct_CC"; then
3228     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229     else
3230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231     for as_dir in $PATH
3232     do
3233     IFS=$as_save_IFS
3234     test -z "$as_dir" && as_dir=.
3235 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3236 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237     ac_cv_prog_ac_ct_CC="gcc"
3238 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 michael 912 break 2
3240     fi
3241     done
3242 michael 967 done
3243 michael 912 IFS=$as_save_IFS
3244    
3245     fi
3246     fi
3247     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248     if test -n "$ac_ct_CC"; then
3249 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 db 941 $as_echo "$ac_ct_CC" >&6; }
3251 michael 912 else
3252 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 db 941 $as_echo "no" >&6; }
3254 michael 912 fi
3255    
3256     if test "x$ac_ct_CC" = x; then
3257     CC=""
3258     else
3259     case $cross_compiling:$ac_tool_warned in
3260     yes:)
3261 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 michael 912 ac_tool_warned=yes ;;
3264     esac
3265     CC=$ac_ct_CC
3266     fi
3267     else
3268     CC="$ac_cv_prog_CC"
3269     fi
3270    
3271     if test -z "$CC"; then
3272     if test -n "$ac_tool_prefix"; then
3273     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274     set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3277 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3278 db 941 $as_echo_n "(cached) " >&6
3279 michael 912 else
3280     if test -n "$CC"; then
3281     ac_cv_prog_CC="$CC" # Let the user override the test.
3282     else
3283     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284     for as_dir in $PATH
3285     do
3286     IFS=$as_save_IFS
3287     test -z "$as_dir" && as_dir=.
3288 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3289 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290     ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 michael 912 break 2
3293     fi
3294     done
3295 michael 967 done
3296 michael 912 IFS=$as_save_IFS
3297    
3298     fi
3299     fi
3300     CC=$ac_cv_prog_CC
3301     if test -n "$CC"; then
3302 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 db 941 $as_echo "$CC" >&6; }
3304 michael 912 else
3305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 db 941 $as_echo "no" >&6; }
3307 michael 912 fi
3308    
3309    
3310     fi
3311     fi
3312     if test -z "$CC"; then
3313     # Extract the first word of "cc", so it can be a program name with args.
3314     set dummy cc; ac_word=$2
3315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3317 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3318 db 941 $as_echo_n "(cached) " >&6
3319 michael 912 else
3320     if test -n "$CC"; then
3321     ac_cv_prog_CC="$CC" # Let the user override the test.
3322     else
3323     ac_prog_rejected=no
3324     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325     for as_dir in $PATH
3326     do
3327     IFS=$as_save_IFS
3328     test -z "$as_dir" && as_dir=.
3329 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3330 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332     ac_prog_rejected=yes
3333     continue
3334     fi
3335     ac_cv_prog_CC="cc"
3336 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 michael 912 break 2
3338     fi
3339     done
3340 michael 967 done
3341 michael 912 IFS=$as_save_IFS
3342    
3343     if test $ac_prog_rejected = yes; then
3344     # We found a bogon in the path, so make sure we never use it.
3345     set dummy $ac_cv_prog_CC
3346     shift
3347     if test $# != 0; then
3348     # We chose a different compiler from the bogus one.
3349     # However, it has the same basename, so the bogon will be chosen
3350     # first if we set CC to just the basename; use the full file name.
3351     shift
3352     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353     fi
3354     fi
3355     fi
3356     fi
3357     CC=$ac_cv_prog_CC
3358     if test -n "$CC"; then
3359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 db 941 $as_echo "$CC" >&6; }
3361 michael 912 else
3362 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 db 941 $as_echo "no" >&6; }
3364 michael 912 fi
3365    
3366    
3367     fi
3368     if test -z "$CC"; then
3369     if test -n "$ac_tool_prefix"; then
3370     for ac_prog in cl.exe
3371     do
3372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3376 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3377 db 941 $as_echo_n "(cached) " >&6
3378 michael 912 else
3379     if test -n "$CC"; then
3380     ac_cv_prog_CC="$CC" # Let the user override the test.
3381     else
3382     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383     for as_dir in $PATH
3384     do
3385     IFS=$as_save_IFS
3386     test -z "$as_dir" && as_dir=.
3387 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3388 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 michael 912 break 2
3392     fi
3393     done
3394 michael 967 done
3395 michael 912 IFS=$as_save_IFS
3396    
3397     fi
3398     fi
3399     CC=$ac_cv_prog_CC
3400     if test -n "$CC"; then
3401 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 db 941 $as_echo "$CC" >&6; }
3403 michael 912 else
3404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 db 941 $as_echo "no" >&6; }
3406 michael 912 fi
3407    
3408    
3409     test -n "$CC" && break
3410     done
3411     fi
3412     if test -z "$CC"; then
3413     ac_ct_CC=$CC
3414     for ac_prog in cl.exe
3415     do
3416     # Extract the first word of "$ac_prog", so it can be a program name with args.
3417     set dummy $ac_prog; ac_word=$2
3418 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3420 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 db 941 $as_echo_n "(cached) " >&6
3422 michael 912 else
3423     if test -n "$ac_ct_CC"; then
3424     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425     else
3426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427     for as_dir in $PATH
3428     do
3429     IFS=$as_save_IFS
3430     test -z "$as_dir" && as_dir=.
3431 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3432 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433     ac_cv_prog_ac_ct_CC="$ac_prog"
3434 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 michael 912 break 2
3436     fi
3437     done
3438 michael 967 done
3439 michael 912 IFS=$as_save_IFS
3440    
3441     fi
3442     fi
3443     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444     if test -n "$ac_ct_CC"; then
3445 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 db 941 $as_echo "$ac_ct_CC" >&6; }
3447 michael 912 else
3448 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 db 941 $as_echo "no" >&6; }
3450 michael 912 fi
3451    
3452    
3453     test -n "$ac_ct_CC" && break
3454     done
3455    
3456     if test "x$ac_ct_CC" = x; then
3457     CC=""
3458     else
3459     case $cross_compiling:$ac_tool_warned in
3460     yes:)
3461 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 michael 912 ac_tool_warned=yes ;;
3464     esac
3465     CC=$ac_ct_CC
3466     fi
3467     fi
3468    
3469     fi
3470    
3471    
3472 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 michael 967 as_fn_error "no acceptable C compiler found in \$PATH
3475     See \`config.log' for more details." "$LINENO" 5; }
3476 michael 912
3477     # Provide some information about the compiler.
3478 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 db 941 set X $ac_compile
3480     ac_compiler=$2
3481 michael 967 for ac_option in --version -v -V -qversion; do
3482     { { ac_try="$ac_compiler $ac_option >&5"
3483 michael 912 case "(($ac_try" in
3484     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485     *) ac_try_echo=$ac_try;;
3486     esac
3487 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488     $as_echo "$ac_try_echo"; } >&5
3489     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 michael 912 ac_status=$?
3491 michael 967 if test -s conftest.err; then
3492     sed '10a\
3493     ... rest of stderr output deleted ...
3494     10q' conftest.err >conftest.er1
3495     cat conftest.er1 >&5
3496     fi
3497 michael 1033 rm -f conftest.er1 conftest.err
3498 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499     test $ac_status = 0; }
3500     done
3501 michael 912
3502 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 michael 912 /* end confdefs.h. */
3504 michael 1033
3505 michael 912 int
3506     main ()
3507     {
3508    
3509     ;
3510     return 0;
3511     }
3512     _ACEOF
3513     ac_clean_files_save=$ac_clean_files
3514 michael 1033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3515 michael 912 # Try to create an executable without -o first, disregard a.out.
3516     # It will help us diagnose broken compilers, and finding out an intuition
3517     # of exeext.
3518 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3519     $as_echo_n "checking whether the C compiler works... " >&6; }
3520 db 941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521    
3522     # The possible output files:
3523     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524    
3525 michael 912 ac_rmfiles=
3526     for ac_file in $ac_files
3527     do
3528     case $ac_file in
3529 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531     esac
3532     done
3533     rm -f $ac_rmfiles
3534    
3535 michael 967 if { { ac_try="$ac_link_default"
3536 michael 912 case "(($ac_try" in
3537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538     *) ac_try_echo=$ac_try;;
3539     esac
3540 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541     $as_echo "$ac_try_echo"; } >&5
3542 michael 912 (eval "$ac_link_default") 2>&5
3543     ac_status=$?
3544 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545     test $ac_status = 0; }; then :
3546 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549     # so that the user can short-circuit this test for compilers unknown to
3550     # Autoconf.
3551     for ac_file in $ac_files ''
3552     do
3553     test -f "$ac_file" || continue
3554     case $ac_file in
3555 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 michael 912 ;;
3557     [ab].out )
3558     # We found the default executable, but exeext='' is most
3559     # certainly right.
3560     break;;
3561     *.* )
3562 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 michael 912 then :; else
3564     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565     fi
3566     # We set ac_cv_exeext here because the later test for it is not
3567     # safe: cross compilers may not add the suffix if given an `-o'
3568     # argument, so we may need to know it at that point already.
3569     # Even if this section looks crufty: it has the advantage of
3570     # actually working.
3571     break;;
3572     * )
3573     break;;
3574     esac
3575     done
3576     test "$ac_cv_exeext" = no && ac_cv_exeext=
3577    
3578     else
3579     ac_file=''
3580     fi
3581 michael 967 if test -z "$ac_file"; then :
3582 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583     $as_echo "no" >&6; }
3584     $as_echo "$as_me: failed program was:" >&5
3585 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3586    
3587 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 michael 967 { as_fn_set_status 77
3590     as_fn_error "C compiler cannot create executables
3591     See \`config.log' for more details." "$LINENO" 5; }; }
3592 michael 1033 else
3593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594     $as_echo "yes" >&6; }
3595 michael 912 fi
3596 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597     $as_echo_n "checking for C compiler default output file name... " >&6; }
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599     $as_echo "$ac_file" >&6; }
3600 michael 912 ac_exeext=$ac_cv_exeext
3601    
3602 michael 1033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 michael 912 ac_clean_files=$ac_clean_files_save
3604 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3606 michael 967 if { { ac_try="$ac_link"
3607 michael 912 case "(($ac_try" in
3608     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609     *) ac_try_echo=$ac_try;;
3610     esac
3611 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612     $as_echo "$ac_try_echo"; } >&5
3613 michael 912 (eval "$ac_link") 2>&5
3614     ac_status=$?
3615 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616     test $ac_status = 0; }; then :
3617 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619     # work properly (i.e., refer to `conftest.exe'), while it won't with
3620     # `rm'.
3621     for ac_file in conftest.exe conftest conftest.*; do
3622     test -f "$ac_file" || continue
3623     case $ac_file in
3624 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626     break;;
3627     * ) break;;
3628     esac
3629     done
3630     else
3631 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 michael 967 as_fn_error "cannot compute suffix of executables: cannot compile and link
3634     See \`config.log' for more details." "$LINENO" 5; }
3635 michael 912 fi
3636 michael 1033 rm -f conftest conftest$ac_cv_exeext
3637 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 db 941 $as_echo "$ac_cv_exeext" >&6; }
3639 michael 912
3640     rm -f conftest.$ac_ext
3641     EXEEXT=$ac_cv_exeext
3642     ac_exeext=$EXEEXT
3643 michael 1033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644     /* end confdefs.h. */
3645     #include <stdio.h>
3646     int
3647     main ()
3648     {
3649     FILE *f = fopen ("conftest.out", "w");
3650     return ferror (f) || fclose (f) != 0;
3651    
3652     ;
3653     return 0;
3654     }
3655     _ACEOF
3656     ac_clean_files="$ac_clean_files conftest.out"
3657     # Check that the compiler produces executables we can run. If not, either
3658     # the compiler is broken, or we cross compile.
3659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660     $as_echo_n "checking whether we are cross compiling... " >&6; }
3661     if test "$cross_compiling" != yes; then
3662     { { ac_try="$ac_link"
3663     case "(($ac_try" in
3664     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665     *) ac_try_echo=$ac_try;;
3666     esac
3667     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668     $as_echo "$ac_try_echo"; } >&5
3669     (eval "$ac_link") 2>&5
3670     ac_status=$?
3671     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672     test $ac_status = 0; }
3673     if { ac_try='./conftest$ac_cv_exeext'
3674     { { case "(($ac_try" in
3675     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676     *) ac_try_echo=$ac_try;;
3677     esac
3678     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679     $as_echo "$ac_try_echo"; } >&5
3680     (eval "$ac_try") 2>&5
3681     ac_status=$?
3682     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683     test $ac_status = 0; }; }; then
3684     cross_compiling=no
3685     else
3686     if test "$cross_compiling" = maybe; then
3687     cross_compiling=yes
3688     else
3689     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691     as_fn_error "cannot run C compiled programs.
3692     If you meant to cross compile, use \`--host'.
3693     See \`config.log' for more details." "$LINENO" 5; }
3694     fi
3695     fi
3696     fi
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698     $as_echo "$cross_compiling" >&6; }
3699    
3700     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701     ac_clean_files=$ac_clean_files_save
3702 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3704 michael 967 if test "${ac_cv_objext+set}" = set; then :
3705 db 941 $as_echo_n "(cached) " >&6
3706 michael 912 else
3707 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 michael 912 /* end confdefs.h. */
3709    
3710     int
3711     main ()
3712     {
3713    
3714     ;
3715     return 0;
3716     }
3717     _ACEOF
3718     rm -f conftest.o conftest.obj
3719 michael 967 if { { ac_try="$ac_compile"
3720 michael 912 case "(($ac_try" in
3721     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722     *) ac_try_echo=$ac_try;;
3723     esac
3724 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725     $as_echo "$ac_try_echo"; } >&5
3726 michael 912 (eval "$ac_compile") 2>&5
3727     ac_status=$?
3728 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729     test $ac_status = 0; }; then :
3730 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3731     test -f "$ac_file" || continue;
3732     case $ac_file in
3733 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735     break;;
3736     esac
3737     done
3738     else
3739 db 941 $as_echo "$as_me: failed program was:" >&5
3740 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3741    
3742 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 michael 967 as_fn_error "cannot compute suffix of object files: cannot compile
3745     See \`config.log' for more details." "$LINENO" 5; }
3746 michael 912 fi
3747     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748     fi
3749 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 db 941 $as_echo "$ac_cv_objext" >&6; }
3751 michael 912 OBJEXT=$ac_cv_objext
3752     ac_objext=$OBJEXT
3753 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 michael 967 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3756 db 941 $as_echo_n "(cached) " >&6
3757 michael 912 else
3758 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 michael 912 /* end confdefs.h. */
3760    
3761     int
3762     main ()
3763     {
3764     #ifndef __GNUC__
3765     choke me
3766     #endif
3767    
3768     ;
3769     return 0;
3770     }
3771     _ACEOF
3772 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3773 michael 912 ac_compiler_gnu=yes
3774     else
3775 michael 967 ac_compiler_gnu=no
3776 michael 912 fi
3777     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779    
3780     fi
3781 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783     if test $ac_compiler_gnu = yes; then
3784     GCC=yes
3785     else
3786     GCC=
3787     fi
3788 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3789     ac_save_CFLAGS=$CFLAGS
3790 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 michael 967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3793 db 941 $as_echo_n "(cached) " >&6
3794 michael 912 else
3795     ac_save_c_werror_flag=$ac_c_werror_flag
3796     ac_c_werror_flag=yes
3797     ac_cv_prog_cc_g=no
3798     CFLAGS="-g"
3799 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 michael 912 /* end confdefs.h. */
3801    
3802     int
3803     main ()
3804     {
3805    
3806     ;
3807     return 0;
3808     }
3809     _ACEOF
3810 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3811 michael 912 ac_cv_prog_cc_g=yes
3812     else
3813 michael 967 CFLAGS=""
3814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 michael 912 /* end confdefs.h. */
3816    
3817     int
3818     main ()
3819     {
3820    
3821     ;
3822     return 0;
3823     }
3824     _ACEOF
3825 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3826    
3827 michael 912 else
3828 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3829 michael 912 CFLAGS="-g"
3830 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 michael 912 /* end confdefs.h. */
3832    
3833     int
3834     main ()
3835     {
3836    
3837     ;
3838     return 0;
3839     }
3840     _ACEOF
3841 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3842 michael 912 ac_cv_prog_cc_g=yes
3843     fi
3844     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845     fi
3846     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847     fi
3848     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849     ac_c_werror_flag=$ac_save_c_werror_flag
3850     fi
3851 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 michael 912 if test "$ac_test_CFLAGS" = set; then
3854     CFLAGS=$ac_save_CFLAGS
3855     elif test $ac_cv_prog_cc_g = yes; then
3856     if test "$GCC" = yes; then
3857     CFLAGS="-g -O2"
3858     else
3859     CFLAGS="-g"
3860     fi
3861     else
3862     if test "$GCC" = yes; then
3863     CFLAGS="-O2"
3864     else
3865     CFLAGS=
3866     fi
3867     fi
3868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 michael 967 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3871 db 941 $as_echo_n "(cached) " >&6
3872 michael 912 else
3873     ac_cv_prog_cc_c89=no
3874     ac_save_CC=$CC
3875 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 michael 912 /* end confdefs.h. */
3877     #include <stdarg.h>
3878     #include <stdio.h>
3879     #include <sys/types.h>
3880     #include <sys/stat.h>
3881     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3882     struct buf { int x; };
3883     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3884     static char *e (p, i)
3885     char **p;
3886     int i;
3887     {
3888     return p[i];
3889     }
3890     static char *f (char * (*g) (char **, int), char **p, ...)
3891     {
3892     char *s;
3893     va_list v;
3894     va_start (v,p);
3895     s = g (p, va_arg (v,int));
3896     va_end (v);
3897     return s;
3898     }
3899    
3900     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3901     function prototypes and stuff, but not '\xHH' hex character constants.
3902     These don't provoke an error unfortunately, instead are silently treated
3903     as 'x'. The following induces an error, until -std is added to get
3904     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3905     array size at least. It's necessary to write '\x00'==0 to get something
3906     that's true only with -std. */
3907     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908    
3909     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3910     inside strings and character constants. */
3911     #define FOO(x) 'x'
3912     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913    
3914     int test (int i, double x);
3915     struct s1 {int (*f) (int a);};
3916     struct s2 {int (*f) (double a);};
3917     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918     int argc;
3919     char **argv;
3920     int
3921     main ()
3922     {
3923     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3924     ;
3925     return 0;
3926     }
3927     _ACEOF
3928     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3929     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930     do
3931     CC="$ac_save_CC $ac_arg"
3932 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3933 michael 912 ac_cv_prog_cc_c89=$ac_arg
3934     fi
3935     rm -f core conftest.err conftest.$ac_objext
3936     test "x$ac_cv_prog_cc_c89" != "xno" && break
3937     done
3938     rm -f conftest.$ac_ext
3939     CC=$ac_save_CC
3940    
3941     fi
3942     # AC_CACHE_VAL
3943     case "x$ac_cv_prog_cc_c89" in
3944     x)
3945 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3946 db 941 $as_echo "none needed" >&6; } ;;
3947 michael 912 xno)
3948 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3949 db 941 $as_echo "unsupported" >&6; } ;;
3950 michael 912 *)
3951     CC="$CC $ac_cv_prog_cc_c89"
3952 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3953 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 michael 912 esac
3955 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3956 michael 912
3957 michael 967 fi
3958 michael 912
3959     ac_ext=c
3960     ac_cpp='$CPP $CPPFLAGS'
3961     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964    
3965     depcc="$CC" am_compiler_list=
3966    
3967 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 michael 967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3970 db 941 $as_echo_n "(cached) " >&6
3971 michael 912 else
3972     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973     # We make a subdir and do the tests there. Otherwise we can end up
3974     # making bogus files that we don't know about and never remove. For
3975     # instance it was reported that on HP-UX the gcc test will end up
3976     # making a dummy file named `D' -- because `-MD' means `put the output
3977     # in D'.
3978     mkdir conftest.dir
3979     # Copy depcomp to subdir because otherwise we won't find it if we're
3980     # using a relative directory.
3981     cp "$am_depcomp" conftest.dir
3982     cd conftest.dir
3983     # We will build objects and dependencies in a subdirectory because
3984     # it helps to detect inapplicable dependency modes. For instance
3985     # both Tru64's cc and ICC support -MD to output dependencies as a
3986     # side effect of compilation, but ICC will put the dependencies in
3987     # the current directory while Tru64 will put them in the object
3988     # directory.
3989     mkdir sub
3990    
3991     am_cv_CC_dependencies_compiler_type=none
3992     if test "$am_compiler_list" = ""; then
3993     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3994     fi
3995 michael 945 am__universal=false
3996     case " $depcc " in #(
3997     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3998     esac
3999    
4000 michael 912 for depmode in $am_compiler_list; do
4001     # Setup a source with many dependencies, because some compilers
4002     # like to wrap large dependency lists on column 80 (with \), and
4003     # we should not choose a depcomp mode which is confused by this.
4004     #
4005     # We need to recreate these files for each test, as the compiler may
4006     # overwrite some of them when testing with obscure command lines.
4007     # This happens at least with the AIX C compiler.
4008     : > sub/conftest.c
4009     for i in 1 2 3 4 5 6; do
4010     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4011     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4012     # Solaris 8's {/usr,}/bin/sh.
4013     touch sub/conftst$i.h
4014     done
4015     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4016    
4017 michael 945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4018     # mode. It turns out that the SunPro C++ compiler does not properly
4019     # handle `-M -o', and we need to detect this. Also, some Intel
4020     # versions had trouble with output in subdirs
4021     am__obj=sub/conftest.${OBJEXT-o}
4022     am__minus_obj="-o $am__obj"
4023 michael 912 case $depmode in
4024 michael 945 gcc)
4025     # This depmode causes a compiler race in universal mode.
4026     test "$am__universal" = false || continue
4027     ;;
4028 michael 912 nosideeffect)
4029     # after this tag, mechanisms are not by side-effect, so they'll
4030     # only be used when explicitly requested
4031     if test "x$enable_dependency_tracking" = xyes; then
4032     continue
4033     else
4034     break
4035     fi
4036     ;;
4037 michael 945 msvisualcpp | msvcmsys)
4038     # This compiler won't grok `-c -o', but also, the minuso test has
4039     # not run yet. These depmodes are late enough in the game, and
4040     # so weak that their functioning should not be impacted.
4041     am__obj=conftest.${OBJEXT-o}
4042     am__minus_obj=
4043     ;;
4044 michael 912 none) break ;;
4045     esac
4046     if depmode=$depmode \
4047 michael 945 source=sub/conftest.c object=$am__obj \
4048 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4049 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4050 michael 912 >/dev/null 2>conftest.err &&
4051     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4052     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4054 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055     # icc doesn't choke on unknown options, it will just issue warnings
4056     # or remarks (even with -Werror). So we grep stderr for any message
4057     # that says an option was ignored or not supported.
4058     # When given -MP, icc 7.0 and 7.1 complain thusly:
4059     # icc: Command line warning: ignoring option '-M'; no argument required
4060     # The diagnosis changed in icc 8.0:
4061     # icc: Command line remark: option '-MP' not supported
4062     if (grep 'ignoring option' conftest.err ||
4063     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4064     am_cv_CC_dependencies_compiler_type=$depmode
4065     break
4066     fi
4067     fi
4068     done
4069    
4070     cd ..
4071     rm -rf conftest.dir
4072     else
4073     am_cv_CC_dependencies_compiler_type=none
4074     fi
4075    
4076     fi
4077 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4078 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4079 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4080    
4081     if
4082     test "x$enable_dependency_tracking" != xno \
4083     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4084     am__fastdepCC_TRUE=
4085     am__fastdepCC_FALSE='#'
4086     else
4087     am__fastdepCC_TRUE='#'
4088     am__fastdepCC_FALSE=
4089     fi
4090    
4091    
4092 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4093     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4094     if test "${ac_cv_prog_cc_c99+set}" = set; then :
4095     $as_echo_n "(cached) " >&6
4096     else
4097     ac_cv_prog_cc_c99=no
4098     ac_save_CC=$CC
4099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100     /* end confdefs.h. */
4101     #include <stdarg.h>
4102     #include <stdbool.h>
4103     #include <stdlib.h>
4104     #include <wchar.h>
4105     #include <stdio.h>
4106    
4107     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4108     #define debug(...) fprintf (stderr, __VA_ARGS__)
4109     #define showlist(...) puts (#__VA_ARGS__)
4110     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4111     static void
4112     test_varargs_macros (void)
4113     {
4114     int x = 1234;
4115     int y = 5678;
4116     debug ("Flag");
4117     debug ("X = %d\n", x);
4118     showlist (The first, second, and third items.);
4119     report (x>y, "x is %d but y is %d", x, y);
4120     }
4121    
4122     // Check long long types.
4123     #define BIG64 18446744073709551615ull
4124     #define BIG32 4294967295ul
4125     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4126     #if !BIG_OK
4127     your preprocessor is broken;
4128     #endif
4129     #if BIG_OK
4130     #else
4131     your preprocessor is broken;
4132     #endif
4133     static long long int bignum = -9223372036854775807LL;
4134     static unsigned long long int ubignum = BIG64;
4135    
4136     struct incomplete_array
4137     {
4138     int datasize;
4139     double data[];
4140     };
4141    
4142     struct named_init {
4143     int number;
4144     const wchar_t *name;
4145     double average;
4146     };
4147    
4148     typedef const char *ccp;
4149    
4150     static inline int
4151     test_restrict (ccp restrict text)
4152     {
4153     // See if C++-style comments work.
4154     // Iterate through items via the restricted pointer.
4155     // Also check for declarations in for loops.
4156     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4157     continue;
4158     return 0;
4159     }
4160    
4161     // Check varargs and va_copy.
4162     static void
4163     test_varargs (const char *format, ...)
4164     {
4165     va_list args;
4166     va_start (args, format);
4167     va_list args_copy;
4168     va_copy (args_copy, args);
4169    
4170     const char *str;
4171     int number;
4172     float fnumber;
4173    
4174     while (*format)
4175     {
4176     switch (*format++)
4177     {
4178     case 's': // string
4179     str = va_arg (args_copy, const char *);
4180     break;
4181     case 'd': // int
4182     number = va_arg (args_copy, int);
4183     break;
4184     case 'f': // float
4185     fnumber = va_arg (args_copy, double);
4186     break;
4187     default:
4188     break;
4189     }
4190     }
4191     va_end (args_copy);
4192     va_end (args);
4193     }
4194    
4195     int
4196     main ()
4197     {
4198    
4199     // Check bool.
4200     _Bool success = false;
4201    
4202     // Check restrict.
4203     if (test_restrict ("String literal") == 0)
4204     success = true;
4205     char *restrict newvar = "Another string";
4206    
4207     // Check varargs.
4208     test_varargs ("s, d' f .", "string", 65, 34.234);
4209     test_varargs_macros ();
4210    
4211     // Check flexible array members.
4212     struct incomplete_array *ia =
4213     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4214     ia->datasize = 10;
4215     for (int i = 0; i < ia->datasize; ++i)
4216     ia->data[i] = i * 1.234;
4217    
4218     // Check named initializers.
4219     struct named_init ni = {
4220     .number = 34,
4221     .name = L"Test wide string",
4222     .average = 543.34343,
4223     };
4224    
4225     ni.number = 58;
4226    
4227     int dynamic_array[ni.number];
4228     dynamic_array[ni.number - 1] = 543;
4229    
4230     // work around unused variable warnings
4231     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4232     || dynamic_array[ni.number - 1] != 543);
4233    
4234     ;
4235     return 0;
4236     }
4237     _ACEOF
4238     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4239     do
4240     CC="$ac_save_CC $ac_arg"
4241     if ac_fn_c_try_compile "$LINENO"; then :
4242     ac_cv_prog_cc_c99=$ac_arg
4243     fi
4244     rm -f core conftest.err conftest.$ac_objext
4245     test "x$ac_cv_prog_cc_c99" != "xno" && break
4246     done
4247     rm -f conftest.$ac_ext
4248     CC=$ac_save_CC
4249    
4250     fi
4251     # AC_CACHE_VAL
4252     case "x$ac_cv_prog_cc_c99" in
4253     x)
4254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255     $as_echo "none needed" >&6; } ;;
4256     xno)
4257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258     $as_echo "unsupported" >&6; } ;;
4259     *)
4260     CC="$CC $ac_cv_prog_cc_c99"
4261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4263     esac
4264     if test "x$ac_cv_prog_cc_c99" != xno; then :
4265    
4266     fi
4267    
4268    
4269     if test "$ac_cv_prog_cc_c99" = "no"; then :
4270     as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4271     fi
4272 michael 912 for ac_prog in 'bison -y' byacc
4273     do
4274     # Extract the first word of "$ac_prog", so it can be a program name with args.
4275     set dummy $ac_prog; ac_word=$2
4276 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4278 michael 967 if test "${ac_cv_prog_YACC+set}" = set; then :
4279 db 941 $as_echo_n "(cached) " >&6
4280 michael 912 else
4281     if test -n "$YACC"; then
4282     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4283     else
4284     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285     for as_dir in $PATH
4286     do
4287     IFS=$as_save_IFS
4288     test -z "$as_dir" && as_dir=.
4289 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4290 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291     ac_cv_prog_YACC="$ac_prog"
4292 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 michael 912 break 2
4294     fi
4295     done
4296 michael 967 done
4297 michael 912 IFS=$as_save_IFS
4298    
4299     fi
4300     fi
4301     YACC=$ac_cv_prog_YACC
4302     if test -n "$YACC"; then
4303 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4304 db 941 $as_echo "$YACC" >&6; }
4305 michael 912 else
4306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 db 941 $as_echo "no" >&6; }
4308 michael 912 fi
4309    
4310    
4311     test -n "$YACC" && break
4312     done
4313     test -n "$YACC" || YACC="yacc"
4314    
4315    
4316     for ac_prog in flex lex
4317     do
4318     # Extract the first word of "$ac_prog", so it can be a program name with args.
4319     set dummy $ac_prog; ac_word=$2
4320 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4322 michael 967 if test "${ac_cv_prog_LEX+set}" = set; then :
4323 db 941 $as_echo_n "(cached) " >&6
4324 michael 912 else
4325     if test -n "$LEX"; then
4326     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4327     else
4328     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329     for as_dir in $PATH
4330     do
4331     IFS=$as_save_IFS
4332     test -z "$as_dir" && as_dir=.
4333 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4334 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335     ac_cv_prog_LEX="$ac_prog"
4336 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 michael 912 break 2
4338     fi
4339     done
4340 michael 967 done
4341 michael 912 IFS=$as_save_IFS
4342    
4343     fi
4344     fi
4345     LEX=$ac_cv_prog_LEX
4346     if test -n "$LEX"; then
4347 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4348 db 941 $as_echo "$LEX" >&6; }
4349 michael 912 else
4350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 db 941 $as_echo "no" >&6; }
4352 michael 912 fi
4353    
4354    
4355     test -n "$LEX" && break
4356     done
4357     test -n "$LEX" || LEX=":"
4358    
4359     if test "x$LEX" != "x:"; then
4360     cat >conftest.l <<_ACEOF
4361     %%
4362     a { ECHO; }
4363     b { REJECT; }
4364     c { yymore (); }
4365     d { yyless (1); }
4366     e { yyless (input () != 0); }
4367     f { unput (yytext[0]); }
4368     . { BEGIN INITIAL; }
4369     %%
4370     #ifdef YYTEXT_POINTER
4371     extern char *yytext;
4372     #endif
4373     int
4374     main (void)
4375     {
4376     return ! yylex () + ! yywrap ();
4377     }
4378     _ACEOF
4379 michael 967 { { ac_try="$LEX conftest.l"
4380 michael 912 case "(($ac_try" in
4381     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382     *) ac_try_echo=$ac_try;;
4383     esac
4384 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385     $as_echo "$ac_try_echo"; } >&5
4386 michael 912 (eval "$LEX conftest.l") 2>&5
4387     ac_status=$?
4388 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389     test $ac_status = 0; }
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4391 db 941 $as_echo_n "checking lex output file root... " >&6; }
4392 michael 967 if test "${ac_cv_prog_lex_root+set}" = set; then :
4393 db 941 $as_echo_n "(cached) " >&6
4394 michael 912 else
4395    
4396     if test -f lex.yy.c; then
4397     ac_cv_prog_lex_root=lex.yy
4398     elif test -f lexyy.c; then
4399     ac_cv_prog_lex_root=lexyy
4400     else
4401 michael 967 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4402 michael 912 fi
4403     fi
4404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4405 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4406 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4407    
4408     if test -z "${LEXLIB+set}"; then
4409 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4410 db 941 $as_echo_n "checking lex library... " >&6; }
4411 michael 967 if test "${ac_cv_lib_lex+set}" = set; then :
4412 db 941 $as_echo_n "(cached) " >&6
4413 michael 912 else
4414    
4415     ac_save_LIBS=$LIBS
4416     ac_cv_lib_lex='none needed'
4417     for ac_lib in '' -lfl -ll; do
4418     LIBS="$ac_lib $ac_save_LIBS"
4419 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420     /* end confdefs.h. */
4421 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4422     _ACEOF
4423 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4424 michael 912 ac_cv_lib_lex=$ac_lib
4425     fi
4426 michael 967 rm -f core conftest.err conftest.$ac_objext \
4427     conftest$ac_exeext conftest.$ac_ext
4428 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4429     done
4430     LIBS=$ac_save_LIBS
4431    
4432     fi
4433 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4434 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4435 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4436     fi
4437    
4438    
4439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4440 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4441 michael 967 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4442 db 941 $as_echo_n "(cached) " >&6
4443 michael 912 else
4444     # POSIX says lex can declare yytext either as a pointer or an array; the
4445     # default is implementation-dependent. Figure out which it is, since
4446     # not all implementations provide the %pointer and %array declarations.
4447     ac_cv_prog_lex_yytext_pointer=no
4448     ac_save_LIBS=$LIBS
4449     LIBS="$LEXLIB $ac_save_LIBS"
4450 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451     /* end confdefs.h. */
4452 michael 912 #define YYTEXT_POINTER 1
4453     `cat $LEX_OUTPUT_ROOT.c`
4454     _ACEOF
4455 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4456 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4457     fi
4458 michael 967 rm -f core conftest.err conftest.$ac_objext \
4459     conftest$ac_exeext conftest.$ac_ext
4460 michael 912 LIBS=$ac_save_LIBS
4461    
4462     fi
4463 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4464 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4465 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4466    
4467 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4468 michael 912
4469     fi
4470     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4471    
4472     fi
4473     if test "$LEX" = :; then
4474     LEX=${am_missing_run}flex
4475     fi
4476 db 941
4477 michael 912
4478 michael 1015 # Initializing libtool.
4479 michael 1084
4480    
4481    
4482    
4483    
4484    
4485    
4486    
4487 michael 945 case `pwd` in
4488     *\ * | *\ *)
4489 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4490 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4491     esac
4492    
4493    
4494    
4495 michael 1084 macro_version='2.2.6b'
4496     macro_revision='1.3017'
4497 michael 945
4498    
4499    
4500    
4501    
4502    
4503    
4504    
4505    
4506    
4507    
4508    
4509    
4510     ltmain="$ac_aux_dir/ltmain.sh"
4511    
4512 michael 912 # Make sure we can run config.sub.
4513     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4514 michael 967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4515 michael 912
4516 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4517 db 941 $as_echo_n "checking build system type... " >&6; }
4518 michael 967 if test "${ac_cv_build+set}" = set; then :
4519 db 941 $as_echo_n "(cached) " >&6
4520 michael 912 else
4521     ac_build_alias=$build_alias
4522     test "x$ac_build_alias" = x &&
4523     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4524     test "x$ac_build_alias" = x &&
4525 michael 967 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4526 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4527 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4528 michael 912
4529     fi
4530 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4531 db 941 $as_echo "$ac_cv_build" >&6; }
4532 michael 912 case $ac_cv_build in
4533     *-*-*) ;;
4534 michael 967 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4535 michael 912 esac
4536     build=$ac_cv_build
4537     ac_save_IFS=$IFS; IFS='-'
4538     set x $ac_cv_build
4539     shift
4540     build_cpu=$1
4541     build_vendor=$2
4542     shift; shift
4543     # Remember, the first character of IFS is used to create $*,
4544     # except with old shells:
4545     build_os=$*
4546     IFS=$ac_save_IFS
4547     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4548    
4549    
4550 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4551 db 941 $as_echo_n "checking host system type... " >&6; }
4552 michael 967 if test "${ac_cv_host+set}" = set; then :
4553 db 941 $as_echo_n "(cached) " >&6
4554 michael 912 else
4555     if test "x$host_alias" = x; then
4556     ac_cv_host=$ac_cv_build
4557     else
4558     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4559 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4560 michael 912 fi
4561    
4562     fi
4563 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4564 db 941 $as_echo "$ac_cv_host" >&6; }
4565 michael 912 case $ac_cv_host in
4566     *-*-*) ;;
4567 michael 967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4568 michael 912 esac
4569     host=$ac_cv_host
4570     ac_save_IFS=$IFS; IFS='-'
4571     set x $ac_cv_host
4572     shift
4573     host_cpu=$1
4574     host_vendor=$2
4575     shift; shift
4576     # Remember, the first character of IFS is used to create $*,
4577     # except with old shells:
4578     host_os=$*
4579     IFS=$ac_save_IFS
4580     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4581    
4582    
4583 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4584 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4585 michael 967 if test "${ac_cv_path_SED+set}" = set; then :
4586 db 941 $as_echo_n "(cached) " >&6
4587 michael 912 else
4588 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4589     for ac_i in 1 2 3 4 5 6 7; do
4590     ac_script="$ac_script$as_nl$ac_script"
4591     done
4592     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4593 michael 967 { ac_script=; unset ac_script;}
4594 michael 945 if test -z "$SED"; then
4595     ac_path_SED_found=false
4596     # Loop through the user's path and test for each of PROGNAME-LIST
4597     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 michael 912 for as_dir in $PATH
4599     do
4600     IFS=$as_save_IFS
4601     test -z "$as_dir" && as_dir=.
4602 michael 967 for ac_prog in sed gsed; do
4603 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4604 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4605     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4606     # Check for GNU ac_path_SED and select it if it is found.
4607     # Check for GNU $ac_path_SED
4608     case `"$ac_path_SED" --version 2>&1` in
4609     *GNU*)
4610     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4611     *)
4612     ac_count=0
4613     $as_echo_n 0123456789 >"conftest.in"
4614     while :
4615     do
4616     cat "conftest.in" "conftest.in" >"conftest.tmp"
4617     mv "conftest.tmp" "conftest.in"
4618     cp "conftest.in" "conftest.nl"
4619     $as_echo '' >> "conftest.nl"
4620     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4623 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4624     # Best one so far, save it but keep looking for a better one
4625     ac_cv_path_SED="$ac_path_SED"
4626     ac_path_SED_max=$ac_count
4627     fi
4628     # 10*(2^10) chars as input seems more than enough
4629     test $ac_count -gt 10 && break
4630     done
4631     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632     esac
4633    
4634     $ac_path_SED_found && break 3
4635 michael 912 done
4636     done
4637 michael 967 done
4638 michael 912 IFS=$as_save_IFS
4639 michael 945 if test -z "$ac_cv_path_SED"; then
4640 michael 967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4641 michael 912 fi
4642 michael 945 else
4643     ac_cv_path_SED=$SED
4644     fi
4645 michael 912
4646     fi
4647 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4648 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4649     SED="$ac_cv_path_SED"
4650     rm -f conftest.sed
4651 michael 912
4652 michael 945 test -z "$SED" && SED=sed
4653     Xsed="$SED -e 1s/^X//"
4654 michael 912
4655    
4656 michael 945
4657    
4658    
4659    
4660    
4661    
4662    
4663    
4664    
4665 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4666 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4667 michael 967 if test "${ac_cv_path_GREP+set}" = set; then :
4668 db 941 $as_echo_n "(cached) " >&6
4669 michael 912 else
4670 db 941 if test -z "$GREP"; then
4671 michael 912 ac_path_GREP_found=false
4672 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4673     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675     do
4676     IFS=$as_save_IFS
4677     test -z "$as_dir" && as_dir=.
4678 michael 967 for ac_prog in grep ggrep; do
4679 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4680     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4681     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4682     # Check for GNU ac_path_GREP and select it if it is found.
4683 michael 912 # Check for GNU $ac_path_GREP
4684     case `"$ac_path_GREP" --version 2>&1` in
4685     *GNU*)
4686     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4687     *)
4688     ac_count=0
4689 db 941 $as_echo_n 0123456789 >"conftest.in"
4690 michael 912 while :
4691     do
4692     cat "conftest.in" "conftest.in" >"conftest.tmp"
4693     mv "conftest.tmp" "conftest.in"
4694     cp "conftest.in" "conftest.nl"
4695 db 941 $as_echo 'GREP' >> "conftest.nl"
4696 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4698 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4699 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4700     # Best one so far, save it but keep looking for a better one
4701     ac_cv_path_GREP="$ac_path_GREP"
4702     ac_path_GREP_max=$ac_count
4703     fi
4704     # 10*(2^10) chars as input seems more than enough
4705     test $ac_count -gt 10 && break
4706     done
4707     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4708     esac
4709    
4710 db 941 $ac_path_GREP_found && break 3
4711     done
4712 michael 912 done
4713 michael 967 done
4714 michael 912 IFS=$as_save_IFS
4715 db 941 if test -z "$ac_cv_path_GREP"; then
4716 michael 967 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4717 db 941 fi
4718 michael 912 else
4719     ac_cv_path_GREP=$GREP
4720     fi
4721    
4722     fi
4723 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4724 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4725 michael 912 GREP="$ac_cv_path_GREP"
4726    
4727    
4728 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4729 db 941 $as_echo_n "checking for egrep... " >&6; }
4730 michael 967 if test "${ac_cv_path_EGREP+set}" = set; then :
4731 db 941 $as_echo_n "(cached) " >&6
4732 michael 912 else
4733     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4734     then ac_cv_path_EGREP="$GREP -E"
4735     else
4736 db 941 if test -z "$EGREP"; then
4737 michael 912 ac_path_EGREP_found=false
4738 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4739     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4741     do
4742     IFS=$as_save_IFS
4743     test -z "$as_dir" && as_dir=.
4744 michael 967 for ac_prog in egrep; do
4745 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4746     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4747     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4748     # Check for GNU ac_path_EGREP and select it if it is found.
4749 michael 912 # Check for GNU $ac_path_EGREP
4750     case `"$ac_path_EGREP" --version 2>&1` in
4751     *GNU*)
4752     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4753     *)
4754     ac_count=0
4755 db 941 $as_echo_n 0123456789 >"conftest.in"
4756 michael 912 while :
4757     do
4758     cat "conftest.in" "conftest.in" >"conftest.tmp"
4759     mv "conftest.tmp" "conftest.in"
4760     cp "conftest.in" "conftest.nl"
4761 db 941 $as_echo 'EGREP' >> "conftest.nl"
4762 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4763     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4764 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4765 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4766     # Best one so far, save it but keep looking for a better one
4767     ac_cv_path_EGREP="$ac_path_EGREP"
4768     ac_path_EGREP_max=$ac_count
4769     fi
4770     # 10*(2^10) chars as input seems more than enough
4771     test $ac_count -gt 10 && break
4772     done
4773     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4774     esac
4775    
4776 db 941 $ac_path_EGREP_found && break 3
4777     done
4778 michael 912 done
4779 michael 967 done
4780 michael 912 IFS=$as_save_IFS
4781 db 941 if test -z "$ac_cv_path_EGREP"; then
4782 michael 967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4783 db 941 fi
4784 michael 912 else
4785     ac_cv_path_EGREP=$EGREP
4786     fi
4787    
4788     fi
4789     fi
4790 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4791 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4792 michael 912 EGREP="$ac_cv_path_EGREP"
4793    
4794    
4795 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4796 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4797 michael 967 if test "${ac_cv_path_FGREP+set}" = set; then :
4798 michael 945 $as_echo_n "(cached) " >&6
4799     else
4800     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4801     then ac_cv_path_FGREP="$GREP -F"
4802     else
4803     if test -z "$FGREP"; then
4804     ac_path_FGREP_found=false
4805     # Loop through the user's path and test for each of PROGNAME-LIST
4806     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4808     do
4809     IFS=$as_save_IFS
4810     test -z "$as_dir" && as_dir=.
4811 michael 967 for ac_prog in fgrep; do
4812 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4813     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4814     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4815     # Check for GNU ac_path_FGREP and select it if it is found.
4816     # Check for GNU $ac_path_FGREP
4817     case `"$ac_path_FGREP" --version 2>&1` in
4818     *GNU*)
4819     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4820     *)
4821     ac_count=0
4822     $as_echo_n 0123456789 >"conftest.in"
4823     while :
4824     do
4825     cat "conftest.in" "conftest.in" >"conftest.tmp"
4826     mv "conftest.tmp" "conftest.in"
4827     cp "conftest.in" "conftest.nl"
4828     $as_echo 'FGREP' >> "conftest.nl"
4829     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4831 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4832 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4833     # Best one so far, save it but keep looking for a better one
4834     ac_cv_path_FGREP="$ac_path_FGREP"
4835     ac_path_FGREP_max=$ac_count
4836     fi
4837     # 10*(2^10) chars as input seems more than enough
4838     test $ac_count -gt 10 && break
4839     done
4840     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4841     esac
4842 michael 912
4843 michael 945 $ac_path_FGREP_found && break 3
4844     done
4845     done
4846 michael 967 done
4847 michael 945 IFS=$as_save_IFS
4848     if test -z "$ac_cv_path_FGREP"; then
4849 michael 967 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4850 michael 945 fi
4851     else
4852     ac_cv_path_FGREP=$FGREP
4853     fi
4854    
4855     fi
4856     fi
4857 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4858 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4859     FGREP="$ac_cv_path_FGREP"
4860    
4861    
4862     test -z "$GREP" && GREP=grep
4863    
4864    
4865    
4866    
4867    
4868    
4869    
4870    
4871    
4872    
4873    
4874    
4875    
4876    
4877    
4878    
4879    
4880    
4881    
4882 michael 912 # Check whether --with-gnu-ld was given.
4883 michael 967 if test "${with_gnu_ld+set}" = set; then :
4884 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4885     else
4886     with_gnu_ld=no
4887     fi
4888    
4889     ac_prog=ld
4890     if test "$GCC" = yes; then
4891     # Check if gcc -print-prog-name=ld gives a path.
4892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4893 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4894 michael 912 case $host in
4895     *-*-mingw*)
4896     # gcc leaves a trailing carriage return which upsets mingw
4897     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4898     *)
4899     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4900     esac
4901     case $ac_prog in
4902     # Accept absolute paths.
4903     [\\/]* | ?:[\\/]*)
4904     re_direlt='/[^/][^/]*/\.\./'
4905     # Canonicalize the pathname of ld
4906 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4907     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4908     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4909 michael 912 done
4910     test -z "$LD" && LD="$ac_prog"
4911     ;;
4912     "")
4913     # If it fails, then pretend we aren't using GCC.
4914     ac_prog=ld
4915     ;;
4916     *)
4917     # If it is relative, then search for the first ld in PATH.
4918     with_gnu_ld=unknown
4919     ;;
4920     esac
4921     elif test "$with_gnu_ld" = yes; then
4922 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4923 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4924 michael 912 else
4925 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4926 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4927 michael 912 fi
4928 michael 967 if test "${lt_cv_path_LD+set}" = set; then :
4929 db 941 $as_echo_n "(cached) " >&6
4930 michael 912 else
4931     if test -z "$LD"; then
4932     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4933     for ac_dir in $PATH; do
4934     IFS="$lt_save_ifs"
4935     test -z "$ac_dir" && ac_dir=.
4936     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4937     lt_cv_path_LD="$ac_dir/$ac_prog"
4938     # Check to see if the program is GNU ld. I'd rather use --version,
4939     # but apparently some variants of GNU ld only accept -v.
4940     # Break only if it was the GNU/non-GNU ld that we prefer.
4941     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4942     *GNU* | *'with BFD'*)
4943     test "$with_gnu_ld" != no && break
4944     ;;
4945     *)
4946     test "$with_gnu_ld" != yes && break
4947     ;;
4948     esac
4949     fi
4950     done
4951     IFS="$lt_save_ifs"
4952     else
4953     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4954     fi
4955     fi
4956    
4957     LD="$lt_cv_path_LD"
4958     if test -n "$LD"; then
4959 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4960 db 941 $as_echo "$LD" >&6; }
4961 michael 912 else
4962 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 db 941 $as_echo "no" >&6; }
4964 michael 912 fi
4965 michael 967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4967 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4968 michael 967 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4969 db 941 $as_echo_n "(cached) " >&6
4970 michael 912 else
4971     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4972     case `$LD -v 2>&1 </dev/null` in
4973     *GNU* | *'with BFD'*)
4974     lt_cv_prog_gnu_ld=yes
4975     ;;
4976     *)
4977     lt_cv_prog_gnu_ld=no
4978     ;;
4979     esac
4980     fi
4981 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4982 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4983 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4984    
4985    
4986    
4987 michael 945
4988    
4989    
4990    
4991    
4992    
4993 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4994 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4995 michael 967 if test "${lt_cv_path_NM+set}" = set; then :
4996 db 941 $as_echo_n "(cached) " >&6
4997 michael 912 else
4998     if test -n "$NM"; then
4999     # Let the user override the test.
5000     lt_cv_path_NM="$NM"
5001     else
5002     lt_nm_to_check="${ac_tool_prefix}nm"
5003     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5004     lt_nm_to_check="$lt_nm_to_check nm"
5005     fi
5006     for lt_tmp_nm in $lt_nm_to_check; do
5007     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5008     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5009     IFS="$lt_save_ifs"
5010     test -z "$ac_dir" && ac_dir=.
5011     tmp_nm="$ac_dir/$lt_tmp_nm"
5012     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5013     # Check to see if the nm accepts a BSD-compat flag.
5014     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5015     # nm: unknown option "B" ignored
5016     # Tru64's nm complains that /dev/null is an invalid object file
5017     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5018     */dev/null* | *'Invalid file or object type'*)
5019     lt_cv_path_NM="$tmp_nm -B"
5020     break
5021     ;;
5022     *)
5023     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5024     */dev/null*)
5025     lt_cv_path_NM="$tmp_nm -p"
5026     break
5027     ;;
5028     *)
5029     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5030     continue # so that we can try to find one that supports BSD flags
5031     ;;
5032     esac
5033     ;;
5034     esac
5035     fi
5036     done
5037     IFS="$lt_save_ifs"
5038     done
5039 michael 945 : ${lt_cv_path_NM=no}
5040 michael 912 fi
5041     fi
5042 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5043 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5044 michael 945 if test "$lt_cv_path_NM" != "no"; then
5045     NM="$lt_cv_path_NM"
5046     else
5047     # Didn't find any BSD compatible name lister, look for dumpbin.
5048     if test -n "$ac_tool_prefix"; then
5049     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5050     do
5051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5052     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5053 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5055 michael 967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5056 michael 945 $as_echo_n "(cached) " >&6
5057     else
5058     if test -n "$DUMPBIN"; then
5059     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5060     else
5061     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062     for as_dir in $PATH
5063     do
5064     IFS=$as_save_IFS
5065     test -z "$as_dir" && as_dir=.
5066 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5067 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5069 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 michael 945 break 2
5071     fi
5072     done
5073 michael 967 done
5074 michael 945 IFS=$as_save_IFS
5075 michael 912
5076 michael 945 fi
5077     fi
5078     DUMPBIN=$ac_cv_prog_DUMPBIN
5079     if test -n "$DUMPBIN"; then
5080 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5081 michael 945 $as_echo "$DUMPBIN" >&6; }
5082     else
5083 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 michael 945 $as_echo "no" >&6; }
5085     fi
5086    
5087    
5088     test -n "$DUMPBIN" && break
5089     done
5090     fi
5091     if test -z "$DUMPBIN"; then
5092     ac_ct_DUMPBIN=$DUMPBIN
5093     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5094     do
5095     # Extract the first word of "$ac_prog", so it can be a program name with args.
5096     set dummy $ac_prog; ac_word=$2
5097 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5099 michael 967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5100 michael 945 $as_echo_n "(cached) " >&6
5101     else
5102     if test -n "$ac_ct_DUMPBIN"; then
5103     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5104     else
5105     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106     for as_dir in $PATH
5107     do
5108     IFS=$as_save_IFS
5109     test -z "$as_dir" && as_dir=.
5110 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5111 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5113 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 michael 945 break 2
5115     fi
5116     done
5117 michael 967 done
5118 michael 945 IFS=$as_save_IFS
5119    
5120     fi
5121     fi
5122     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5123     if test -n "$ac_ct_DUMPBIN"; then
5124 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5125 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5126     else
5127 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 michael 945 $as_echo "no" >&6; }
5129     fi
5130    
5131    
5132     test -n "$ac_ct_DUMPBIN" && break
5133     done
5134    
5135     if test "x$ac_ct_DUMPBIN" = x; then
5136     DUMPBIN=":"
5137     else
5138     case $cross_compiling:$ac_tool_warned in
5139     yes:)
5140 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5141 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5142     ac_tool_warned=yes ;;
5143     esac
5144     DUMPBIN=$ac_ct_DUMPBIN
5145     fi
5146     fi
5147    
5148    
5149     if test "$DUMPBIN" != ":"; then
5150     NM="$DUMPBIN"
5151     fi
5152     fi
5153     test -z "$NM" && NM=nm
5154    
5155    
5156    
5157    
5158    
5159    
5160 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5161 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5162 michael 967 if test "${lt_cv_nm_interface+set}" = set; then :
5163 michael 945 $as_echo_n "(cached) " >&6
5164     else
5165     lt_cv_nm_interface="BSD nm"
5166     echo "int some_variable = 0;" > conftest.$ac_ext
5167 michael 1084 (eval echo "\"\$as_me:5167: $ac_compile\"" >&5)
5168 michael 945 (eval "$ac_compile" 2>conftest.err)
5169     cat conftest.err >&5
5170 michael 1084 (eval echo "\"\$as_me:5170: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5171 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5172     cat conftest.err >&5
5173 michael 1084 (eval echo "\"\$as_me:5173: output\"" >&5)
5174 michael 945 cat conftest.out >&5
5175     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5176     lt_cv_nm_interface="MS dumpbin"
5177     fi
5178     rm -f conftest*
5179     fi
5180 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5181 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5182    
5183 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5184 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5185 michael 912 LN_S=$as_ln_s
5186     if test "$LN_S" = "ln -s"; then
5187 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5188 db 941 $as_echo "yes" >&6; }
5189 michael 912 else
5190 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5191 db 941 $as_echo "no, using $LN_S" >&6; }
5192 michael 912 fi
5193    
5194 michael 945 # find the maximum length of command line arguments
5195 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5196 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5197 michael 967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5198 michael 945 $as_echo_n "(cached) " >&6
5199     else
5200     i=0
5201     teststring="ABCD"
5202    
5203     case $build_os in
5204     msdosdjgpp*)
5205     # On DJGPP, this test can blow up pretty badly due to problems in libc
5206     # (any single argument exceeding 2000 bytes causes a buffer overrun
5207     # during glob expansion). Even if it were fixed, the result of this
5208     # check would be larger than it should be.
5209     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5210     ;;
5211    
5212     gnu*)
5213     # Under GNU Hurd, this test is not required because there is
5214     # no limit to the length of command line arguments.
5215     # Libtool will interpret -1 as no limit whatsoever
5216     lt_cv_sys_max_cmd_len=-1;
5217     ;;
5218    
5219     cygwin* | mingw* | cegcc*)
5220     # On Win9x/ME, this test blows up -- it succeeds, but takes
5221     # about 5 minutes as the teststring grows exponentially.
5222     # Worse, since 9x/ME are not pre-emptively multitasking,
5223     # you end up with a "frozen" computer, even though with patience
5224     # the test eventually succeeds (with a max line length of 256k).
5225     # Instead, let's just punt: use the minimum linelength reported by
5226     # all of the supported platforms: 8192 (on NT/2K/XP).
5227     lt_cv_sys_max_cmd_len=8192;
5228     ;;
5229    
5230     amigaos*)
5231     # On AmigaOS with pdksh, this test takes hours, literally.
5232     # So we just punt and use a minimum line length of 8192.
5233     lt_cv_sys_max_cmd_len=8192;
5234     ;;
5235    
5236     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5237     # This has been around since 386BSD, at least. Likely further.
5238     if test -x /sbin/sysctl; then
5239     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5240     elif test -x /usr/sbin/sysctl; then
5241     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5242     else
5243     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5244     fi
5245     # And add a safety zone
5246     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5248     ;;
5249    
5250     interix*)
5251     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5252     lt_cv_sys_max_cmd_len=196608
5253     ;;
5254    
5255     osf*)
5256     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5257     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5258     # nice to cause kernel panics so lets avoid the loop below.
5259     # First set a reasonable default.
5260     lt_cv_sys_max_cmd_len=16384
5261     #
5262     if test -x /sbin/sysconfig; then
5263     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5264     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5265     esac
5266     fi
5267     ;;
5268     sco3.2v5*)
5269     lt_cv_sys_max_cmd_len=102400
5270     ;;
5271     sysv5* | sco5v6* | sysv4.2uw2*)
5272     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5273     if test -n "$kargmax"; then
5274     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5275     else
5276     lt_cv_sys_max_cmd_len=32768
5277     fi
5278     ;;
5279     *)
5280     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5281     if test -n "$lt_cv_sys_max_cmd_len"; then
5282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5283     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5284     else
5285     # Make teststring a little bigger before we do anything with it.
5286     # a 1K string should be a reasonable start.
5287     for i in 1 2 3 4 5 6 7 8 ; do
5288     teststring=$teststring$teststring
5289     done
5290     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5291     # If test is not a shell built-in, we'll probably end up computing a
5292     # maximum length that is only half of the actual maximum length, but
5293     # we can't tell.
5294     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5295     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5296     test $i != 17 # 1/2 MB should be enough
5297     do
5298     i=`expr $i + 1`
5299     teststring=$teststring$teststring
5300     done
5301     # Only check the string length outside the loop.
5302     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5303     teststring=
5304     # Add a significant safety factor because C++ compilers can tack on
5305     # massive amounts of additional arguments before passing them to the
5306     # linker. It appears as though 1/2 is a usable value.
5307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5308     fi
5309     ;;
5310     esac
5311    
5312     fi
5313    
5314     if test -n $lt_cv_sys_max_cmd_len ; then
5315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5316 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5317     else
5318 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5319 michael 945 $as_echo "none" >&6; }
5320     fi
5321     max_cmd_len=$lt_cv_sys_max_cmd_len
5322    
5323    
5324    
5325    
5326    
5327    
5328     : ${CP="cp -f"}
5329     : ${MV="mv -f"}
5330     : ${RM="rm -f"}
5331    
5332 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5333 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5334     # Try some XSI features
5335     xsi_shell=no
5336     ( _lt_dummy="a/b/c"
5337     test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5338     = c,a/b,, \
5339     && eval 'test $(( 1 + 1 )) -eq 2 \
5340     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5341     && xsi_shell=yes
5342 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5343 michael 945 $as_echo "$xsi_shell" >&6; }
5344    
5345    
5346 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5347 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5348     lt_shell_append=no
5349     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5350     >/dev/null 2>&1 \
5351     && lt_shell_append=yes
5352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5353 michael 945 $as_echo "$lt_shell_append" >&6; }
5354    
5355    
5356     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5357     lt_unset=unset
5358     else
5359     lt_unset=false
5360     fi
5361    
5362    
5363    
5364    
5365    
5366     # test EBCDIC or ASCII
5367     case `echo X|tr X '\101'` in
5368     A) # ASCII based system
5369     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5370     lt_SP2NL='tr \040 \012'
5371     lt_NL2SP='tr \015\012 \040\040'
5372     ;;
5373     *) # EBCDIC based system
5374     lt_SP2NL='tr \100 \n'
5375     lt_NL2SP='tr \r\n \100\100'
5376     ;;
5377     esac
5378    
5379    
5380    
5381    
5382    
5383    
5384    
5385    
5386    
5387 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5388 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5389 michael 967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5390 michael 945 $as_echo_n "(cached) " >&6
5391     else
5392     lt_cv_ld_reload_flag='-r'
5393     fi
5394 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5395 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5396     reload_flag=$lt_cv_ld_reload_flag
5397     case $reload_flag in
5398     "" | " "*) ;;
5399     *) reload_flag=" $reload_flag" ;;
5400     esac
5401     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5402     case $host_os in
5403     darwin*)
5404     if test "$GCC" = yes; then
5405     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5406     else
5407     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5408     fi
5409     ;;
5410     esac
5411    
5412    
5413    
5414    
5415    
5416    
5417    
5418    
5419    
5420     if test -n "$ac_tool_prefix"; then
5421     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5422     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5423 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5425 michael 967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5426 michael 945 $as_echo_n "(cached) " >&6
5427     else
5428     if test -n "$OBJDUMP"; then
5429     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5430     else
5431     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432     for as_dir in $PATH
5433     do
5434     IFS=$as_save_IFS
5435     test -z "$as_dir" && as_dir=.
5436 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5437 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5438     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5439 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 michael 945 break 2
5441     fi
5442     done
5443 michael 967 done
5444 michael 945 IFS=$as_save_IFS
5445    
5446     fi
5447     fi
5448     OBJDUMP=$ac_cv_prog_OBJDUMP
5449     if test -n "$OBJDUMP"; then
5450 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5451 michael 945 $as_echo "$OBJDUMP" >&6; }
5452     else
5453 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 michael 945 $as_echo "no" >&6; }
5455     fi
5456    
5457    
5458     fi
5459     if test -z "$ac_cv_prog_OBJDUMP"; then
5460     ac_ct_OBJDUMP=$OBJDUMP
5461     # Extract the first word of "objdump", so it can be a program name with args.
5462     set dummy objdump; ac_word=$2
5463 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5465 michael 967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5466 michael 945 $as_echo_n "(cached) " >&6
5467     else
5468     if test -n "$ac_ct_OBJDUMP"; then
5469     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5470     else
5471     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472     for as_dir in $PATH
5473     do
5474     IFS=$as_save_IFS
5475     test -z "$as_dir" && as_dir=.
5476 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5477 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5479 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 michael 945 break 2
5481     fi
5482     done
5483 michael 967 done
5484 michael 945 IFS=$as_save_IFS
5485    
5486     fi
5487     fi
5488     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5489     if test -n "$ac_ct_OBJDUMP"; then
5490 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5491 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5492     else
5493 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 michael 945 $as_echo "no" >&6; }
5495     fi
5496    
5497     if test "x$ac_ct_OBJDUMP" = x; then
5498     OBJDUMP="false"
5499     else
5500     case $cross_compiling:$ac_tool_warned in
5501     yes:)
5502 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504     ac_tool_warned=yes ;;
5505     esac
5506     OBJDUMP=$ac_ct_OBJDUMP
5507     fi
5508     else
5509     OBJDUMP="$ac_cv_prog_OBJDUMP"
5510     fi
5511    
5512     test -z "$OBJDUMP" && OBJDUMP=objdump
5513    
5514    
5515    
5516    
5517    
5518    
5519    
5520    
5521    
5522 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5523 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5524 michael 967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5525 db 941 $as_echo_n "(cached) " >&6
5526 michael 912 else
5527     lt_cv_file_magic_cmd='$MAGIC_CMD'
5528     lt_cv_file_magic_test_file=
5529     lt_cv_deplibs_check_method='unknown'
5530     # Need to set the preceding variable on all platforms that support
5531     # interlibrary dependencies.
5532     # 'none' -- dependencies not supported.
5533     # `unknown' -- same as none, but documents that we really don't know.
5534     # 'pass_all' -- all dependencies passed with no checks.
5535     # 'test_compile' -- check by making test program.
5536     # 'file_magic [[regex]]' -- check by looking for files in library path
5537     # which responds to the $file_magic_cmd with a given extended regex.
5538     # If you have `file' or equivalent on your system and you're not sure
5539     # whether `pass_all' will *always* work, you probably want this one.
5540    
5541     case $host_os in
5542 db 941 aix[4-9]*)
5543 michael 912 lt_cv_deplibs_check_method=pass_all
5544     ;;
5545    
5546     beos*)
5547     lt_cv_deplibs_check_method=pass_all
5548     ;;
5549    
5550     bsdi[45]*)
5551     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5552     lt_cv_file_magic_cmd='/usr/bin/file -L'
5553     lt_cv_file_magic_test_file=/shlib/libc.so
5554     ;;
5555    
5556     cygwin*)
5557     # func_win32_libid is a shell function defined in ltmain.sh
5558     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5559     lt_cv_file_magic_cmd='func_win32_libid'
5560     ;;
5561    
5562     mingw* | pw32*)
5563     # Base MSYS/MinGW do not provide the 'file' command needed by
5564     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5565     # unless we find 'file', for example because we are cross-compiling.
5566     if ( file / ) >/dev/null 2>&1; then
5567     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5568     lt_cv_file_magic_cmd='func_win32_libid'
5569     else
5570     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5571     lt_cv_file_magic_cmd='$OBJDUMP -f'
5572     fi
5573     ;;
5574    
5575 michael 945 cegcc)
5576     # use the weaker test based on 'objdump'. See mingw*.
5577     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578     lt_cv_file_magic_cmd='$OBJDUMP -f'
5579     ;;
5580    
5581 michael 912 darwin* | rhapsody*)
5582     lt_cv_deplibs_check_method=pass_all
5583     ;;
5584    
5585     freebsd* | dragonfly*)
5586 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587 michael 912 case $host_cpu in
5588     i*86 )
5589     # Not sure whether the presence of OpenBSD here was a mistake.
5590     # Let's accept both of them until this is cleared up.
5591     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592     lt_cv_file_magic_cmd=/usr/bin/file
5593     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5594     ;;
5595     esac
5596     else
5597     lt_cv_deplibs_check_method=pass_all
5598     fi
5599     ;;
5600    
5601     gnu*)
5602     lt_cv_deplibs_check_method=pass_all
5603     ;;
5604    
5605     hpux10.20* | hpux11*)
5606     lt_cv_file_magic_cmd=/usr/bin/file
5607     case $host_cpu in
5608     ia64*)
5609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5610     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5611     ;;
5612     hppa*64*)
5613     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]'
5614     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5615     ;;
5616     *)
5617     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5618     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5619     ;;
5620     esac
5621     ;;
5622    
5623     interix[3-9]*)
5624     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5625     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5626     ;;
5627    
5628     irix5* | irix6* | nonstopux*)
5629     case $LD in
5630     *-32|*"-32 ") libmagic=32-bit;;
5631     *-n32|*"-n32 ") libmagic=N32;;
5632     *-64|*"-64 ") libmagic=64-bit;;
5633     *) libmagic=never-match;;
5634     esac
5635     lt_cv_deplibs_check_method=pass_all
5636     ;;
5637    
5638     # This must be Linux ELF.
5639     linux* | k*bsd*-gnu)
5640     lt_cv_deplibs_check_method=pass_all
5641     ;;
5642    
5643     netbsd*)
5644 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5645 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646     else
5647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5648     fi
5649     ;;
5650    
5651     newos6*)
5652     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5653     lt_cv_file_magic_cmd=/usr/bin/file
5654     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5655     ;;
5656    
5657 michael 945 *nto* | *qnx*)
5658     lt_cv_deplibs_check_method=pass_all
5659 michael 912 ;;
5660    
5661     openbsd*)
5662 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5663 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5664     else
5665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5666     fi
5667     ;;
5668    
5669     osf3* | osf4* | osf5*)
5670     lt_cv_deplibs_check_method=pass_all
5671     ;;
5672    
5673     rdos*)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676    
5677     solaris*)
5678     lt_cv_deplibs_check_method=pass_all
5679     ;;
5680    
5681 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5682     lt_cv_deplibs_check_method=pass_all
5683     ;;
5684    
5685 michael 912 sysv4 | sysv4.3*)
5686     case $host_vendor in
5687     motorola)
5688     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]'
5689     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5690     ;;
5691     ncr)
5692     lt_cv_deplibs_check_method=pass_all
5693     ;;
5694     sequent)
5695     lt_cv_file_magic_cmd='/bin/file'
5696     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5697     ;;
5698     sni)
5699     lt_cv_file_magic_cmd='/bin/file'
5700     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5701     lt_cv_file_magic_test_file=/lib/libc.so
5702     ;;
5703     siemens)
5704     lt_cv_deplibs_check_method=pass_all
5705     ;;
5706     pc)
5707     lt_cv_deplibs_check_method=pass_all
5708     ;;
5709     esac
5710     ;;
5711    
5712 michael 945 tpf*)
5713 michael 912 lt_cv_deplibs_check_method=pass_all
5714     ;;
5715     esac
5716    
5717     fi
5718 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5719 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5720 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5721     deplibs_check_method=$lt_cv_deplibs_check_method
5722     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5723    
5724    
5725    
5726    
5727 michael 945
5728    
5729    
5730    
5731    
5732    
5733    
5734    
5735     if test -n "$ac_tool_prefix"; then
5736     # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5737     set dummy ${ac_tool_prefix}ar; ac_word=$2
5738 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5739 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5740 michael 967 if test "${ac_cv_prog_AR+set}" = set; then :
5741 michael 945 $as_echo_n "(cached) " >&6
5742     else
5743     if test -n "$AR"; then
5744     ac_cv_prog_AR="$AR" # Let the user override the test.
5745     else
5746     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747     for as_dir in $PATH
5748     do
5749     IFS=$as_save_IFS
5750     test -z "$as_dir" && as_dir=.
5751 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5752 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5753     ac_cv_prog_AR="${ac_tool_prefix}ar"
5754 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 michael 945 break 2
5756     fi
5757     done
5758 michael 967 done
5759 michael 945 IFS=$as_save_IFS
5760    
5761     fi
5762     fi
5763     AR=$ac_cv_prog_AR
5764     if test -n "$AR"; then
5765 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5766 michael 945 $as_echo "$AR" >&6; }
5767     else
5768 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 michael 945 $as_echo "no" >&6; }
5770     fi
5771    
5772    
5773     fi
5774     if test -z "$ac_cv_prog_AR"; then
5775     ac_ct_AR=$AR
5776     # Extract the first word of "ar", so it can be a program name with args.
5777     set dummy ar; ac_word=$2
5778 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5780 michael 967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5781 michael 945 $as_echo_n "(cached) " >&6
5782     else
5783     if test -n "$ac_ct_AR"; then
5784     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5785     else
5786     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787     for as_dir in $PATH
5788     do
5789     IFS=$as_save_IFS
5790     test -z "$as_dir" && as_dir=.
5791 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5792 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5793     ac_cv_prog_ac_ct_AR="ar"
5794 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 michael 945 break 2
5796     fi
5797     done
5798 michael 967 done
5799 michael 945 IFS=$as_save_IFS
5800    
5801     fi
5802     fi
5803     ac_ct_AR=$ac_cv_prog_ac_ct_AR
5804     if test -n "$ac_ct_AR"; then
5805 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5806 michael 945 $as_echo "$ac_ct_AR" >&6; }
5807     else
5808 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 michael 945 $as_echo "no" >&6; }
5810     fi
5811    
5812     if test "x$ac_ct_AR" = x; then
5813     AR="false"
5814     else
5815     case $cross_compiling:$ac_tool_warned in
5816     yes:)
5817 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5818 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5819     ac_tool_warned=yes ;;
5820     esac
5821     AR=$ac_ct_AR
5822     fi
5823     else
5824     AR="$ac_cv_prog_AR"
5825     fi
5826    
5827     test -z "$AR" && AR=ar
5828     test -z "$AR_FLAGS" && AR_FLAGS=cru
5829    
5830    
5831    
5832    
5833    
5834    
5835    
5836    
5837    
5838    
5839    
5840     if test -n "$ac_tool_prefix"; then
5841     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5842     set dummy ${ac_tool_prefix}strip; ac_word=$2
5843 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5845 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
5846 michael 945 $as_echo_n "(cached) " >&6
5847     else
5848     if test -n "$STRIP"; then
5849     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5850     else
5851     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852     for as_dir in $PATH
5853     do
5854     IFS=$as_save_IFS
5855     test -z "$as_dir" && as_dir=.
5856 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5857 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5859 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 michael 945 break 2
5861     fi
5862     done
5863 michael 967 done
5864 michael 945 IFS=$as_save_IFS
5865    
5866     fi
5867     fi
5868     STRIP=$ac_cv_prog_STRIP
5869     if test -n "$STRIP"; then
5870 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5871 michael 945 $as_echo "$STRIP" >&6; }
5872     else
5873 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 michael 945 $as_echo "no" >&6; }
5875     fi
5876    
5877    
5878     fi
5879     if test -z "$ac_cv_prog_STRIP"; then
5880     ac_ct_STRIP=$STRIP
5881     # Extract the first word of "strip", so it can be a program name with args.
5882     set dummy strip; ac_word=$2
5883 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5885 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5886 michael 945 $as_echo_n "(cached) " >&6
5887     else
5888     if test -n "$ac_ct_STRIP"; then
5889     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5890     else
5891     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892     for as_dir in $PATH
5893     do
5894     IFS=$as_save_IFS
5895     test -z "$as_dir" && as_dir=.
5896 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5897 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_prog_ac_ct_STRIP="strip"
5899 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 michael 945 break 2
5901     fi
5902     done
5903 michael 967 done
5904 michael 945 IFS=$as_save_IFS
5905    
5906     fi
5907     fi
5908     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5909     if test -n "$ac_ct_STRIP"; then
5910 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5911 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
5912     else
5913 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 michael 945 $as_echo "no" >&6; }
5915     fi
5916    
5917     if test "x$ac_ct_STRIP" = x; then
5918     STRIP=":"
5919     else
5920     case $cross_compiling:$ac_tool_warned in
5921     yes:)
5922 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924     ac_tool_warned=yes ;;
5925     esac
5926     STRIP=$ac_ct_STRIP
5927     fi
5928     else
5929     STRIP="$ac_cv_prog_STRIP"
5930     fi
5931    
5932     test -z "$STRIP" && STRIP=:
5933    
5934    
5935    
5936    
5937    
5938    
5939     if test -n "$ac_tool_prefix"; then
5940     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5941     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5942 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5944 michael 967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5945 michael 945 $as_echo_n "(cached) " >&6
5946     else
5947     if test -n "$RANLIB"; then
5948     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5949     else
5950     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951     for as_dir in $PATH
5952     do
5953     IFS=$as_save_IFS
5954     test -z "$as_dir" && as_dir=.
5955 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5956 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5958 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 michael 945 break 2
5960     fi
5961     done
5962 michael 967 done
5963 michael 945 IFS=$as_save_IFS
5964    
5965     fi
5966     fi
5967     RANLIB=$ac_cv_prog_RANLIB
5968     if test -n "$RANLIB"; then
5969 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5970 michael 945 $as_echo "$RANLIB" >&6; }
5971     else
5972 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 michael 945 $as_echo "no" >&6; }
5974     fi
5975    
5976    
5977     fi
5978     if test -z "$ac_cv_prog_RANLIB"; then
5979     ac_ct_RANLIB=$RANLIB
5980     # Extract the first word of "ranlib", so it can be a program name with args.
5981     set dummy ranlib; ac_word=$2
5982 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5984 michael 967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5985 michael 945 $as_echo_n "(cached) " >&6
5986     else
5987     if test -n "$ac_ct_RANLIB"; then
5988     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5989     else
5990     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991     for as_dir in $PATH
5992     do
5993     IFS=$as_save_IFS
5994     test -z "$as_dir" && as_dir=.
5995 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5996 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_prog_ac_ct_RANLIB="ranlib"
5998 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 michael 945 break 2
6000     fi
6001     done
6002 michael 967 done
6003 michael 945 IFS=$as_save_IFS
6004    
6005     fi
6006     fi
6007     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6008     if test -n "$ac_ct_RANLIB"; then
6009 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6010 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
6011     else
6012 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 michael 945 $as_echo "no" >&6; }
6014     fi
6015    
6016     if test "x$ac_ct_RANLIB" = x; then
6017     RANLIB=":"
6018     else
6019     case $cross_compiling:$ac_tool_warned in
6020     yes:)
6021 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6022 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023     ac_tool_warned=yes ;;
6024     esac
6025     RANLIB=$ac_ct_RANLIB
6026     fi
6027     else
6028     RANLIB="$ac_cv_prog_RANLIB"
6029     fi
6030    
6031     test -z "$RANLIB" && RANLIB=:
6032    
6033    
6034    
6035    
6036    
6037    
6038     # Determine commands to create old-style static archives.
6039     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6040     old_postinstall_cmds='chmod 644 $oldlib'
6041     old_postuninstall_cmds=
6042    
6043     if test -n "$RANLIB"; then
6044     case $host_os in
6045     openbsd*)
6046     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6047     ;;
6048     *)
6049     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6050     ;;
6051     esac
6052     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6053     fi
6054    
6055    
6056    
6057    
6058    
6059    
6060    
6061    
6062    
6063    
6064    
6065    
6066    
6067    
6068    
6069    
6070    
6071    
6072    
6073    
6074    
6075    
6076    
6077    
6078    
6079    
6080    
6081    
6082    
6083    
6084    
6085    
6086    
6087    
6088 michael 912 # If no C compiler was specified, use CC.
6089     LTCC=${LTCC-"$CC"}
6090    
6091     # If no C compiler flags were specified, use CFLAGS.
6092     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6093    
6094     # Allow CC to be a program name with arguments.
6095     compiler=$CC
6096    
6097 michael 945
6098     # Check for command to grab the raw symbol name followed by C symbol from nm.
6099 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6100 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6101 michael 967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6102 michael 945 $as_echo_n "(cached) " >&6
6103     else
6104    
6105     # These are sane defaults that work on at least a few old systems.
6106     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6107    
6108     # Character class describing NM global symbol codes.
6109     symcode='[BCDEGRST]'
6110    
6111     # Regexp to match symbols that can be accessed directly from C.
6112     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6113    
6114     # Define system-specific variables.
6115     case $host_os in
6116     aix*)
6117     symcode='[BCDT]'
6118     ;;
6119     cygwin* | mingw* | pw32* | cegcc*)
6120     symcode='[ABCDGISTW]'
6121     ;;
6122     hpux*)
6123     if test "$host_cpu" = ia64; then
6124     symcode='[ABCDEGRST]'
6125     fi
6126     ;;
6127     irix* | nonstopux*)
6128     symcode='[BCDEGRST]'
6129     ;;
6130     osf*)
6131     symcode='[BCDEGQRST]'
6132     ;;
6133     solaris*)
6134     symcode='[BDRT]'
6135     ;;
6136     sco3.2v5*)
6137     symcode='[DT]'
6138     ;;
6139     sysv4.2uw2*)
6140     symcode='[DT]'
6141     ;;
6142     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6143     symcode='[ABDT]'
6144     ;;
6145     sysv4)
6146     symcode='[DFNSTU]'
6147     ;;
6148     esac
6149    
6150     # If we're using GNU nm, then use its standard symbol codes.
6151     case `$NM -V 2>&1` in
6152     *GNU* | *'with BFD'*)
6153     symcode='[ABCDGIRSTW]' ;;
6154     esac
6155    
6156     # Transform an extracted symbol line into a proper C declaration.
6157     # Some systems (esp. on ia64) link data and code symbols differently,
6158     # so use this general approach.
6159     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6160    
6161     # Transform an extracted symbol line into symbol name and symbol address
6162     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6163     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'"
6164    
6165     # Handle CRLF in mingw tool chain
6166     opt_cr=
6167     case $build_os in
6168     mingw*)
6169     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6170     ;;
6171     esac
6172    
6173     # Try without a prefix underscore, then with it.
6174     for ac_symprfx in "" "_"; do
6175    
6176     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6177     symxfrm="\\1 $ac_symprfx\\2 \\2"
6178    
6179     # Write the raw and C identifiers.
6180     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6181     # Fake it for dumpbin and say T for any non-static function
6182     # and D for any global variable.
6183     # Also find C++ and __fastcall symbols from MSVC++,
6184     # which start with @ or ?.
6185     lt_cv_sys_global_symbol_pipe="$AWK '"\
6186     " {last_section=section; section=\$ 3};"\
6187     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6188     " \$ 0!~/External *\|/{next};"\
6189     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6190     " {if(hide[section]) next};"\
6191     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6192     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6193     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6194     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6195     " ' prfx=^$ac_symprfx"
6196     else
6197     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6198     fi
6199    
6200     # Check to see that the pipe works correctly.
6201     pipe_works=no
6202    
6203     rm -f conftest*
6204     cat > conftest.$ac_ext <<_LT_EOF
6205     #ifdef __cplusplus
6206     extern "C" {
6207     #endif
6208     char nm_test_var;
6209     void nm_test_func(void);
6210     void nm_test_func(void){}
6211     #ifdef __cplusplus
6212     }
6213     #endif
6214     int main(){nm_test_var='a';nm_test_func();return(0);}
6215     _LT_EOF
6216    
6217 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218 michael 945 (eval $ac_compile) 2>&5
6219     ac_status=$?
6220 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221     test $ac_status = 0; }; then
6222 michael 945 # Now try to grab the symbols.
6223     nlist=conftest.nm
6224 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6225 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6226     ac_status=$?
6227 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228     test $ac_status = 0; } && test -s "$nlist"; then
6229 michael 945 # Try sorting and uniquifying the output.
6230     if sort "$nlist" | uniq > "$nlist"T; then
6231     mv -f "$nlist"T "$nlist"
6232     else
6233     rm -f "$nlist"T
6234     fi
6235    
6236     # Make sure that we snagged all the symbols we need.
6237     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6238     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6239     cat <<_LT_EOF > conftest.$ac_ext
6240     #ifdef __cplusplus
6241     extern "C" {
6242     #endif
6243    
6244     _LT_EOF
6245     # Now generate the symbol file.
6246     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6247    
6248     cat <<_LT_EOF >> conftest.$ac_ext
6249    
6250     /* The mapping between symbol names and symbols. */
6251     const struct {
6252     const char *name;
6253     void *address;
6254     }
6255     lt__PROGRAM__LTX_preloaded_symbols[] =
6256     {
6257     { "@PROGRAM@", (void *) 0 },
6258     _LT_EOF
6259     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6260     cat <<\_LT_EOF >> conftest.$ac_ext
6261     {0, (void *) 0}
6262     };
6263    
6264     /* This works around a problem in FreeBSD linker */
6265     #ifdef FREEBSD_WORKAROUND
6266     static const void *lt_preloaded_setup() {
6267     return lt__PROGRAM__LTX_preloaded_symbols;
6268     }
6269     #endif
6270    
6271     #ifdef __cplusplus
6272     }
6273     #endif
6274     _LT_EOF
6275     # Now try linking the two files.
6276     mv conftest.$ac_objext conftstm.$ac_objext
6277     lt_save_LIBS="$LIBS"
6278     lt_save_CFLAGS="$CFLAGS"
6279     LIBS="conftstm.$ac_objext"
6280     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6281 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6282 michael 945 (eval $ac_link) 2>&5
6283     ac_status=$?
6284 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6286 michael 945 pipe_works=yes
6287     fi
6288     LIBS="$lt_save_LIBS"
6289     CFLAGS="$lt_save_CFLAGS"
6290     else
6291     echo "cannot find nm_test_func in $nlist" >&5
6292     fi
6293     else
6294     echo "cannot find nm_test_var in $nlist" >&5
6295     fi
6296     else
6297     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6298     fi
6299     else
6300     echo "$progname: failed program was:" >&5
6301     cat conftest.$ac_ext >&5
6302     fi
6303     rm -rf conftest* conftst*
6304    
6305     # Do not use the global_symbol_pipe unless it works.
6306     if test "$pipe_works" = yes; then
6307     break
6308     else
6309     lt_cv_sys_global_symbol_pipe=
6310     fi
6311     done
6312    
6313     fi
6314    
6315     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6316     lt_cv_sys_global_symbol_to_cdecl=
6317     fi
6318     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6319 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6320 michael 945 $as_echo "failed" >&6; }
6321     else
6322 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6323 michael 945 $as_echo "ok" >&6; }
6324     fi
6325    
6326    
6327    
6328    
6329    
6330    
6331    
6332    
6333    
6334    
6335    
6336    
6337    
6338    
6339    
6340    
6341    
6342    
6343    
6344    
6345    
6346    
6347 michael 912 # Check whether --enable-libtool-lock was given.
6348 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6349 michael 912 enableval=$enable_libtool_lock;
6350     fi
6351    
6352     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6353    
6354     # Some flags need to be propagated to the compiler or linker for good
6355     # libtool support.
6356     case $host in
6357     ia64-*-hpux*)
6358     # Find out which ABI we are using.
6359     echo 'int i;' > conftest.$ac_ext
6360 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361 michael 912 (eval $ac_compile) 2>&5
6362     ac_status=$?
6363 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364     test $ac_status = 0; }; then
6365 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6366 michael 945 *ELF-32*)
6367     HPUX_IA64_MODE="32"
6368     ;;
6369     *ELF-64*)
6370     HPUX_IA64_MODE="64"
6371     ;;
6372 michael 912 esac
6373     fi
6374     rm -rf conftest*
6375     ;;
6376     *-*-irix6*)
6377     # Find out which ABI we are using.
6378 michael 1084 echo '#line 6378 "configure"' > conftest.$ac_ext
6379 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380 michael 912 (eval $ac_compile) 2>&5
6381     ac_status=$?
6382 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383     test $ac_status = 0; }; then
6384 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6385     case `/usr/bin/file conftest.$ac_objext` in
6386     *32-bit*)
6387     LD="${LD-ld} -melf32bsmip"
6388     ;;
6389     *N32*)
6390     LD="${LD-ld} -melf32bmipn32"
6391     ;;
6392     *64-bit*)
6393     LD="${LD-ld} -melf64bmip"
6394     ;;
6395     esac
6396     else
6397     case `/usr/bin/file conftest.$ac_objext` in
6398     *32-bit*)
6399     LD="${LD-ld} -32"
6400     ;;
6401     *N32*)
6402     LD="${LD-ld} -n32"
6403     ;;
6404     *64-bit*)
6405     LD="${LD-ld} -64"
6406     ;;
6407     esac
6408     fi
6409 michael 912 fi
6410     rm -rf conftest*
6411     ;;
6412    
6413     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6414 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6415 michael 912 # Find out which ABI we are using.
6416     echo 'int i;' > conftest.$ac_ext
6417 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6418 michael 912 (eval $ac_compile) 2>&5
6419     ac_status=$?
6420 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421     test $ac_status = 0; }; then
6422 michael 912 case `/usr/bin/file conftest.o` in
6423 michael 945 *32-bit*)
6424     case $host in
6425     x86_64-*kfreebsd*-gnu)
6426     LD="${LD-ld} -m elf_i386_fbsd"
6427     ;;
6428     x86_64-*linux*)
6429     LD="${LD-ld} -m elf_i386"
6430     ;;
6431     ppc64-*linux*|powerpc64-*linux*)
6432     LD="${LD-ld} -m elf32ppclinux"
6433     ;;
6434     s390x-*linux*)
6435     LD="${LD-ld} -m elf_s390"
6436     ;;
6437     sparc64-*linux*)
6438     LD="${LD-ld} -m elf32_sparc"
6439     ;;
6440     esac
6441     ;;
6442     *64-bit*)
6443     case $host in
6444     x86_64-*kfreebsd*-gnu)
6445     LD="${LD-ld} -m elf_x86_64_fbsd"
6446     ;;
6447     x86_64-*linux*)
6448     LD="${LD-ld} -m elf_x86_64"
6449     ;;
6450     ppc*-*linux*|powerpc*-*linux*)
6451     LD="${LD-ld} -m elf64ppc"
6452     ;;
6453     s390*-*linux*|s390*-*tpf*)
6454     LD="${LD-ld} -m elf64_s390"
6455     ;;
6456     sparc*-*linux*)
6457     LD="${LD-ld} -m elf64_sparc"
6458     ;;
6459     esac
6460     ;;
6461 michael 912 esac
6462     fi
6463     rm -rf conftest*
6464     ;;
6465    
6466     *-*-sco3.2v5*)
6467     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6468     SAVE_CFLAGS="$CFLAGS"
6469     CFLAGS="$CFLAGS -belf"
6470 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6471 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6472 michael 967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6473 db 941 $as_echo_n "(cached) " >&6
6474 michael 912 else
6475     ac_ext=c
6476     ac_cpp='$CPP $CPPFLAGS'
6477     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6480    
6481 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 michael 912 /* end confdefs.h. */
6483    
6484     int
6485     main ()
6486     {
6487    
6488     ;
6489     return 0;
6490     }
6491     _ACEOF
6492 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6493 michael 912 lt_cv_cc_needs_belf=yes
6494     else
6495 michael 967 lt_cv_cc_needs_belf=no
6496 michael 912 fi
6497 michael 967 rm -f core conftest.err conftest.$ac_objext \
6498     conftest$ac_exeext conftest.$ac_ext
6499 michael 912 ac_ext=c
6500     ac_cpp='$CPP $CPPFLAGS'
6501     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6502     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6503     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6504    
6505     fi
6506 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6507 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6508 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6509     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6510     CFLAGS="$SAVE_CFLAGS"
6511     fi
6512     ;;
6513     sparc*-*solaris*)
6514     # Find out which ABI we are using.
6515     echo 'int i;' > conftest.$ac_ext
6516 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 michael 912 (eval $ac_compile) 2>&5
6518     ac_status=$?
6519 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520     test $ac_status = 0; }; then
6521 michael 912 case `/usr/bin/file conftest.o` in
6522     *64-bit*)
6523     case $lt_cv_prog_gnu_ld in
6524     yes*) LD="${LD-ld} -m elf64_sparc" ;;
6525 db 941 *)
6526 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6527 db 941 LD="${LD-ld} -64"
6528     fi
6529     ;;
6530 michael 912 esac
6531     ;;
6532     esac
6533     fi
6534     rm -rf conftest*
6535     ;;
6536 michael 945 esac
6537 michael 912
6538 michael 945 need_locks="$enable_libtool_lock"
6539 michael 912
6540 michael 945
6541     case $host_os in
6542     rhapsody* | darwin*)
6543     if test -n "$ac_tool_prefix"; then
6544     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6545     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6546 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6548 michael 967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6549 michael 945 $as_echo_n "(cached) " >&6
6550     else
6551     if test -n "$DSYMUTIL"; then
6552     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6553     else
6554     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555     for as_dir in $PATH
6556     do
6557     IFS=$as_save_IFS
6558     test -z "$as_dir" && as_dir=.
6559 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6560 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6562 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 michael 945 break 2
6564     fi
6565     done
6566 michael 967 done
6567 michael 945 IFS=$as_save_IFS
6568    
6569     fi
6570     fi
6571     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6572     if test -n "$DSYMUTIL"; then
6573 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6574 michael 945 $as_echo "$DSYMUTIL" >&6; }
6575     else
6576 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 michael 945 $as_echo "no" >&6; }
6578     fi
6579    
6580    
6581     fi
6582     if test -z "$ac_cv_prog_DSYMUTIL"; then
6583     ac_ct_DSYMUTIL=$DSYMUTIL
6584     # Extract the first word of "dsymutil", so it can be a program name with args.
6585     set dummy dsymutil; ac_word=$2
6586 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6588 michael 967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6589 michael 945 $as_echo_n "(cached) " >&6
6590     else
6591     if test -n "$ac_ct_DSYMUTIL"; then
6592     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6593     else
6594     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595     for as_dir in $PATH
6596     do
6597     IFS=$as_save_IFS
6598     test -z "$as_dir" && as_dir=.
6599 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6600 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6602 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6603 michael 945 break 2
6604     fi
6605     done
6606 michael 967 done
6607 michael 945 IFS=$as_save_IFS
6608    
6609     fi
6610     fi
6611     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6612     if test -n "$ac_ct_DSYMUTIL"; then
6613 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6614 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6615     else
6616 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 michael 945 $as_echo "no" >&6; }
6618     fi
6619    
6620     if test "x$ac_ct_DSYMUTIL" = x; then
6621     DSYMUTIL=":"
6622     else
6623     case $cross_compiling:$ac_tool_warned in
6624     yes:)
6625 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6626 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6627     ac_tool_warned=yes ;;
6628 michael 912 esac
6629 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
6630     fi
6631     else
6632     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6633     fi
6634 michael 912
6635 michael 945 if test -n "$ac_tool_prefix"; then
6636     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6637     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6638 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6640 michael 967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6641 michael 945 $as_echo_n "(cached) " >&6
6642     else
6643     if test -n "$NMEDIT"; then
6644     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6645     else
6646     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647     for as_dir in $PATH
6648     do
6649     IFS=$as_save_IFS
6650     test -z "$as_dir" && as_dir=.
6651 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6652 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6654 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 michael 945 break 2
6656     fi
6657     done
6658 michael 967 done
6659 michael 945 IFS=$as_save_IFS
6660 michael 912
6661 michael 945 fi
6662     fi
6663     NMEDIT=$ac_cv_prog_NMEDIT
6664     if test -n "$NMEDIT"; then
6665 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6666 michael 945 $as_echo "$NMEDIT" >&6; }
6667     else
6668 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 michael 945 $as_echo "no" >&6; }
6670     fi
6671 michael 912
6672 michael 945
6673     fi
6674     if test -z "$ac_cv_prog_NMEDIT"; then
6675     ac_ct_NMEDIT=$NMEDIT
6676     # Extract the first word of "nmedit", so it can be a program name with args.
6677     set dummy nmedit; ac_word=$2
6678 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6680 michael 967 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6681 michael 945 $as_echo_n "(cached) " >&6
6682     else
6683     if test -n "$ac_ct_NMEDIT"; then
6684     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6685     else
6686     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687     for as_dir in $PATH
6688     do
6689     IFS=$as_save_IFS
6690     test -z "$as_dir" && as_dir=.
6691 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6692 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6694 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 michael 945 break 2
6696     fi
6697     done
6698 michael 967 done
6699 michael 945 IFS=$as_save_IFS
6700    
6701     fi
6702     fi
6703     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6704     if test -n "$ac_ct_NMEDIT"; then
6705 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6706 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
6707     else
6708 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 michael 945 $as_echo "no" >&6; }
6710     fi
6711    
6712     if test "x$ac_ct_NMEDIT" = x; then
6713     NMEDIT=":"
6714     else
6715     case $cross_compiling:$ac_tool_warned in
6716     yes:)
6717 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6718 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6719     ac_tool_warned=yes ;;
6720     esac
6721     NMEDIT=$ac_ct_NMEDIT
6722     fi
6723     else
6724     NMEDIT="$ac_cv_prog_NMEDIT"
6725     fi
6726    
6727     if test -n "$ac_tool_prefix"; then
6728     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6729     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6731 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6732 michael 967 if test "${ac_cv_prog_LIPO+set}" = set; then :
6733 michael 945 $as_echo_n "(cached) " >&6
6734     else
6735     if test -n "$LIPO"; then
6736     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6737     else
6738     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739     for as_dir in $PATH
6740     do
6741     IFS=$as_save_IFS
6742     test -z "$as_dir" && as_dir=.
6743 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6744 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6745     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6746 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 michael 945 break 2
6748     fi
6749     done
6750 michael 967 done
6751 michael 945 IFS=$as_save_IFS
6752    
6753     fi
6754     fi
6755     LIPO=$ac_cv_prog_LIPO
6756     if test -n "$LIPO"; then
6757 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6758 michael 945 $as_echo "$LIPO" >&6; }
6759     else
6760 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 michael 945 $as_echo "no" >&6; }
6762     fi
6763    
6764    
6765     fi
6766     if test -z "$ac_cv_prog_LIPO"; then
6767     ac_ct_LIPO=$LIPO
6768     # Extract the first word of "lipo", so it can be a program name with args.
6769     set dummy lipo; ac_word=$2
6770 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6772 michael 967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6773 michael 945 $as_echo_n "(cached) " >&6
6774     else
6775     if test -n "$ac_ct_LIPO"; then
6776     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6777     else
6778     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779     for as_dir in $PATH
6780     do
6781     IFS=$as_save_IFS
6782     test -z "$as_dir" && as_dir=.
6783 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6784 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785     ac_cv_prog_ac_ct_LIPO="lipo"
6786 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 michael 945 break 2
6788     fi
6789     done
6790 michael 967 done
6791 michael 945 IFS=$as_save_IFS
6792    
6793     fi
6794     fi
6795     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6796     if test -n "$ac_ct_LIPO"; then
6797 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6798 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
6799     else
6800 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 michael 945 $as_echo "no" >&6; }
6802     fi
6803    
6804     if test "x$ac_ct_LIPO" = x; then
6805     LIPO=":"
6806     else
6807     case $cross_compiling:$ac_tool_warned in
6808     yes:)
6809 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811     ac_tool_warned=yes ;;
6812     esac
6813     LIPO=$ac_ct_LIPO
6814     fi
6815     else
6816     LIPO="$ac_cv_prog_LIPO"
6817     fi
6818    
6819     if test -n "$ac_tool_prefix"; then
6820     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6821     set dummy ${ac_tool_prefix}otool; ac_word=$2
6822 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6824 michael 967 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6825 michael 945 $as_echo_n "(cached) " >&6
6826     else
6827     if test -n "$OTOOL"; then
6828     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6829     else
6830     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831     for as_dir in $PATH
6832     do
6833     IFS=$as_save_IFS
6834     test -z "$as_dir" && as_dir=.
6835 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6836 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6838 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 michael 945 break 2
6840     fi
6841     done
6842 michael 967 done
6843 michael 945 IFS=$as_save_IFS
6844    
6845     fi
6846     fi
6847     OTOOL=$ac_cv_prog_OTOOL
6848     if test -n "$OTOOL"; then
6849 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6850 michael 945 $as_echo "$OTOOL" >&6; }
6851     else
6852 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 michael 945 $as_echo "no" >&6; }
6854     fi
6855    
6856    
6857     fi
6858     if test -z "$ac_cv_prog_OTOOL"; then
6859     ac_ct_OTOOL=$OTOOL
6860     # Extract the first word of "otool", so it can be a program name with args.
6861     set dummy otool; ac_word=$2
6862 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6864 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6865 michael 945 $as_echo_n "(cached) " >&6
6866     else
6867     if test -n "$ac_ct_OTOOL"; then
6868     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6869     else
6870     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871     for as_dir in $PATH
6872     do
6873     IFS=$as_save_IFS
6874     test -z "$as_dir" && as_dir=.
6875 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6876 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_prog_ac_ct_OTOOL="otool"
6878 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879 michael 945 break 2
6880     fi
6881     done
6882 michael 967 done
6883 michael 945 IFS=$as_save_IFS
6884    
6885     fi
6886     fi
6887     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6888     if test -n "$ac_ct_OTOOL"; then
6889 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6890 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
6891     else
6892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 michael 945 $as_echo "no" >&6; }
6894     fi
6895    
6896     if test "x$ac_ct_OTOOL" = x; then
6897     OTOOL=":"
6898     else
6899     case $cross_compiling:$ac_tool_warned in
6900     yes:)
6901 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903     ac_tool_warned=yes ;;
6904     esac
6905     OTOOL=$ac_ct_OTOOL
6906     fi
6907     else
6908     OTOOL="$ac_cv_prog_OTOOL"
6909     fi
6910    
6911     if test -n "$ac_tool_prefix"; then
6912     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6913     set dummy ${ac_tool_prefix}otool64; ac_word=$2
6914 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6916 michael 967 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6917 michael 945 $as_echo_n "(cached) " >&6
6918     else
6919     if test -n "$OTOOL64"; then
6920     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6921     else
6922     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923     for as_dir in $PATH
6924     do
6925     IFS=$as_save_IFS
6926     test -z "$as_dir" && as_dir=.
6927 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6928 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6930 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 michael 945 break 2
6932     fi
6933     done
6934 michael 967 done
6935 michael 945 IFS=$as_save_IFS
6936    
6937     fi
6938     fi
6939     OTOOL64=$ac_cv_prog_OTOOL64
6940     if test -n "$OTOOL64"; then
6941 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6942 michael 945 $as_echo "$OTOOL64" >&6; }
6943     else
6944 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 michael 945 $as_echo "no" >&6; }
6946     fi
6947    
6948    
6949     fi
6950     if test -z "$ac_cv_prog_OTOOL64"; then
6951     ac_ct_OTOOL64=$OTOOL64
6952     # Extract the first word of "otool64", so it can be a program name with args.
6953     set dummy otool64; ac_word=$2
6954 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6956 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6957 michael 945 $as_echo_n "(cached) " >&6
6958     else
6959     if test -n "$ac_ct_OTOOL64"; then
6960     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6961     else
6962     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963     for as_dir in $PATH
6964     do
6965     IFS=$as_save_IFS
6966     test -z "$as_dir" && as_dir=.
6967 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_prog_ac_ct_OTOOL64="otool64"
6970 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971 michael 945 break 2
6972     fi
6973     done
6974 michael 967 done
6975 michael 945 IFS=$as_save_IFS
6976    
6977     fi
6978     fi
6979     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6980     if test -n "$ac_ct_OTOOL64"; then
6981 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6982 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
6983     else
6984 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 michael 945 $as_echo "no" >&6; }
6986     fi
6987    
6988     if test "x$ac_ct_OTOOL64" = x; then
6989     OTOOL64=":"
6990     else
6991     case $cross_compiling:$ac_tool_warned in
6992     yes:)
6993 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995     ac_tool_warned=yes ;;
6996     esac
6997     OTOOL64=$ac_ct_OTOOL64
6998     fi
6999     else
7000     OTOOL64="$ac_cv_prog_OTOOL64"
7001     fi
7002    
7003    
7004    
7005    
7006    
7007    
7008    
7009    
7010    
7011    
7012    
7013    
7014    
7015    
7016    
7017    
7018    
7019    
7020    
7021    
7022    
7023    
7024    
7025    
7026    
7027    
7028    
7029 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7030 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
7031 michael 967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7032 michael 945 $as_echo_n "(cached) " >&6
7033     else
7034     lt_cv_apple_cc_single_mod=no
7035     if test -z "${LT_MULTI_MODULE}"; then
7036     # By default we will add the -single_module flag. You can override
7037     # by either setting the environment variable LT_MULTI_MODULE
7038     # non-empty at configure time, or by adding -multi_module to the
7039     # link flags.
7040     rm -rf libconftest.dylib*
7041     echo "int foo(void){return 1;}" > conftest.c
7042     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7043     -dynamiclib -Wl,-single_module conftest.c" >&5
7044     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7045     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7046     _lt_result=$?
7047     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7048     lt_cv_apple_cc_single_mod=yes
7049     else
7050     cat conftest.err >&5
7051     fi
7052     rm -rf libconftest.dylib*
7053     rm -f conftest.*
7054     fi
7055     fi
7056 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7057 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7058 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7059 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7060 michael 967 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7061 michael 945 $as_echo_n "(cached) " >&6
7062     else
7063     lt_cv_ld_exported_symbols_list=no
7064     save_LDFLAGS=$LDFLAGS
7065     echo "_main" > conftest.sym
7066     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7067 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 michael 945 /* end confdefs.h. */
7069    
7070     int
7071     main ()
7072     {
7073    
7074     ;
7075     return 0;
7076     }
7077     _ACEOF
7078 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7079 michael 945 lt_cv_ld_exported_symbols_list=yes
7080     else
7081 michael 967 lt_cv_ld_exported_symbols_list=no
7082 michael 945 fi
7083 michael 967 rm -f core conftest.err conftest.$ac_objext \
7084     conftest$ac_exeext conftest.$ac_ext
7085 michael 945 LDFLAGS="$save_LDFLAGS"
7086    
7087     fi
7088 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7089 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7090     case $host_os in
7091     rhapsody* | darwin1.[012])
7092     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7093     darwin1.*)
7094     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095     darwin*) # darwin 5.x on
7096     # if running on 10.5 or later, the deployment target defaults
7097     # to the OS version, if on x86, and 10.4, the deployment
7098     # target defaults to 10.4. Don't you love it?
7099     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7100     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7101     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7102     10.[012]*)
7103     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7104     10.*)
7105     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7106     esac
7107     ;;
7108     esac
7109     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7110     _lt_dar_single_mod='$single_module'
7111     fi
7112     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7113     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7114     else
7115     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7116     fi
7117     if test "$DSYMUTIL" != ":"; then
7118     _lt_dsymutil='~$DSYMUTIL $lib || :'
7119     else
7120     _lt_dsymutil=
7121     fi
7122     ;;
7123     esac
7124    
7125 michael 912 ac_ext=c
7126     ac_cpp='$CPP $CPPFLAGS'
7127     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7128     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7129     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7130 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7131 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7132 michael 912 # On Suns, sometimes $CPP names a directory.
7133     if test -n "$CPP" && test -d "$CPP"; then
7134     CPP=
7135     fi
7136     if test -z "$CPP"; then
7137 michael 967 if test "${ac_cv_prog_CPP+set}" = set; then :
7138 db 941 $as_echo_n "(cached) " >&6
7139 michael 912 else
7140     # Double quotes because CPP needs to be expanded
7141     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7142     do
7143     ac_preproc_ok=false
7144     for ac_c_preproc_warn_flag in '' yes
7145     do
7146     # Use a header file that comes with gcc, so configuring glibc
7147     # with a fresh cross-compiler works.
7148     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7149     # <limits.h> exists even on freestanding compilers.
7150     # On the NeXT, cc -E runs the code through the compiler's parser,
7151     # not just through cpp. "Syntax error" is here to catch this case.
7152 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 michael 912 /* end confdefs.h. */
7154     #ifdef __STDC__
7155     # include <limits.h>
7156     #else
7157     # include <assert.h>
7158     #endif
7159     Syntax error
7160     _ACEOF
7161 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7162    
7163 michael 912 else
7164     # Broken: fails on valid input.
7165     continue
7166     fi
7167     rm -f conftest.err conftest.$ac_ext
7168    
7169     # OK, works on sane cases. Now check whether nonexistent headers
7170     # can be detected and how.
7171 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 michael 912 /* end confdefs.h. */
7173     #include <ac_nonexistent.h>
7174     _ACEOF
7175 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7176 michael 912 # Broken: success on invalid input.
7177     continue
7178     else
7179     # Passes both tests.
7180     ac_preproc_ok=:
7181     break
7182     fi
7183     rm -f conftest.err conftest.$ac_ext
7184    
7185     done
7186     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7187     rm -f conftest.err conftest.$ac_ext
7188 michael 967 if $ac_preproc_ok; then :
7189 michael 912 break
7190     fi
7191    
7192     done
7193     ac_cv_prog_CPP=$CPP
7194    
7195     fi
7196     CPP=$ac_cv_prog_CPP
7197     else
7198     ac_cv_prog_CPP=$CPP
7199     fi
7200 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7201 db 941 $as_echo "$CPP" >&6; }
7202 michael 912 ac_preproc_ok=false
7203     for ac_c_preproc_warn_flag in '' yes
7204     do
7205     # Use a header file that comes with gcc, so configuring glibc
7206     # with a fresh cross-compiler works.
7207     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208     # <limits.h> exists even on freestanding compilers.
7209     # On the NeXT, cc -E runs the code through the compiler's parser,
7210     # not just through cpp. "Syntax error" is here to catch this case.
7211 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212 michael 912 /* end confdefs.h. */
7213     #ifdef __STDC__
7214     # include <limits.h>
7215     #else
7216     # include <assert.h>
7217     #endif
7218     Syntax error
7219     _ACEOF
7220 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7221    
7222 michael 912 else
7223     # Broken: fails on valid input.
7224     continue
7225     fi
7226     rm -f conftest.err conftest.$ac_ext
7227    
7228     # OK, works on sane cases. Now check whether nonexistent headers
7229     # can be detected and how.
7230 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 michael 912 /* end confdefs.h. */
7232     #include <ac_nonexistent.h>
7233     _ACEOF
7234 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7235 michael 912 # Broken: success on invalid input.
7236     continue
7237     else
7238     # Passes both tests.
7239     ac_preproc_ok=:
7240     break
7241     fi
7242     rm -f conftest.err conftest.$ac_ext
7243    
7244     done
7245     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7246     rm -f conftest.err conftest.$ac_ext
7247 michael 967 if $ac_preproc_ok; then :
7248    
7249 michael 912 else
7250 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7251 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7252 michael 967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7253     See \`config.log' for more details." "$LINENO" 5; }
7254 michael 912 fi
7255    
7256     ac_ext=c
7257     ac_cpp='$CPP $CPPFLAGS'
7258     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7259     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7260     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7261    
7262    
7263 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7264 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7265 michael 967 if test "${ac_cv_header_stdc+set}" = set; then :
7266 db 941 $as_echo_n "(cached) " >&6
7267 michael 912 else
7268 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 michael 912 /* end confdefs.h. */
7270     #include <stdlib.h>
7271     #include <stdarg.h>
7272     #include <string.h>
7273     #include <float.h>
7274    
7275     int
7276     main ()
7277     {
7278    
7279     ;
7280     return 0;
7281     }
7282     _ACEOF
7283 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7284 michael 912 ac_cv_header_stdc=yes
7285     else
7286 michael 967 ac_cv_header_stdc=no
7287 michael 912 fi
7288     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289    
7290     if test $ac_cv_header_stdc = yes; then
7291     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7292 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 michael 912 /* end confdefs.h. */
7294     #include <string.h>
7295    
7296     _ACEOF
7297     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7298 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7299    
7300 michael 912 else
7301     ac_cv_header_stdc=no
7302     fi
7303     rm -f conftest*
7304    
7305     fi
7306    
7307     if test $ac_cv_header_stdc = yes; then
7308     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7309 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 michael 912 /* end confdefs.h. */
7311     #include <stdlib.h>
7312    
7313     _ACEOF
7314     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7316    
7317 michael 912 else
7318     ac_cv_header_stdc=no
7319     fi
7320     rm -f conftest*
7321    
7322     fi
7323    
7324     if test $ac_cv_header_stdc = yes; then
7325     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7326 michael 967 if test "$cross_compiling" = yes; then :
7327 michael 912 :
7328     else
7329 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 michael 912 /* end confdefs.h. */
7331     #include <ctype.h>
7332     #include <stdlib.h>
7333     #if ((' ' & 0x0FF) == 0x020)
7334     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7335     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7336     #else
7337     # define ISLOWER(c) \
7338     (('a' <= (c) && (c) <= 'i') \
7339     || ('j' <= (c) && (c) <= 'r') \
7340     || ('s' <= (c) && (c) <= 'z'))
7341     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7342     #endif
7343    
7344     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7345     int
7346     main ()
7347     {
7348     int i;
7349     for (i = 0; i < 256; i++)
7350     if (XOR (islower (i), ISLOWER (i))
7351     || toupper (i) != TOUPPER (i))
7352     return 2;
7353     return 0;
7354     }
7355     _ACEOF
7356 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7357    
7358 michael 912 else
7359 michael 967 ac_cv_header_stdc=no
7360 michael 912 fi
7361 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7362     conftest.$ac_objext conftest.beam conftest.$ac_ext
7363 michael 912 fi
7364    
7365     fi
7366     fi
7367 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7368 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7369 michael 912 if test $ac_cv_header_stdc = yes; then
7370    
7371 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7372 michael 912
7373     fi
7374    
7375     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7376     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7377     inttypes.h stdint.h unistd.h
7378 michael 967 do :
7379     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7380     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7381     "
7382     eval as_val=\$$as_ac_Header
7383     if test "x$as_val" = x""yes; then :
7384 michael 912 cat >>confdefs.h <<_ACEOF
7385 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7386 michael 912 _ACEOF
7387    
7388     fi
7389    
7390     done
7391    
7392    
7393     for ac_header in dlfcn.h
7394 michael 967 do :
7395     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7396     "
7397     if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7398 michael 912 cat >>confdefs.h <<_ACEOF
7399 michael 967 #define HAVE_DLFCN_H 1
7400 michael 912 _ACEOF
7401    
7402     fi
7403    
7404     done
7405    
7406    
7407    
7408 michael 945 # Set options
7409     enable_dlopen=yes
7410 michael 977 # Check whether --enable-static was given.
7411     if test "${enable_static+set}" = set; then :
7412     enableval=$enable_static; p=${PACKAGE-default}
7413 michael 945 case $enableval in
7414 michael 977 yes) enable_static=yes ;;
7415     no) enable_static=no ;;
7416 michael 945 *)
7417 michael 977 enable_static=no
7418 michael 945 # Look at the argument we got. We use all the common list separators.
7419     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7420     for pkg in $enableval; do
7421     IFS="$lt_save_ifs"
7422     if test "X$pkg" = "X$p"; then
7423 michael 977 enable_static=yes
7424 michael 945 fi
7425     done
7426     IFS="$lt_save_ifs"
7427     ;;
7428     esac
7429 michael 912 else
7430 michael 977 enable_static=no
7431 michael 912 fi
7432    
7433    
7434    
7435    
7436    
7437    
7438    
7439    
7440    
7441 michael 977
7442    
7443     enable_win32_dll=no
7444    
7445    
7446     # Check whether --enable-shared was given.
7447     if test "${enable_shared+set}" = set; then :
7448     enableval=$enable_shared; p=${PACKAGE-default}
7449 michael 945 case $enableval in
7450 michael 977 yes) enable_shared=yes ;;
7451     no) enable_shared=no ;;
7452 michael 945 *)
7453 michael 977 enable_shared=no
7454 michael 945 # Look at the argument we got. We use all the common list separators.
7455     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7456     for pkg in $enableval; do
7457     IFS="$lt_save_ifs"
7458     if test "X$pkg" = "X$p"; then
7459 michael 977 enable_shared=yes
7460 michael 945 fi
7461     done
7462     IFS="$lt_save_ifs"
7463 michael 912 ;;
7464     esac
7465     else
7466 michael 977 enable_shared=yes
7467 michael 912 fi
7468    
7469    
7470    
7471    
7472    
7473    
7474    
7475    
7476    
7477    
7478 michael 977
7479 michael 945 # Check whether --with-pic was given.
7480 michael 967 if test "${with_pic+set}" = set; then :
7481 michael 945 withval=$with_pic; pic_mode="$withval"
7482 michael 912 else
7483 michael 945 pic_mode=default
7484 michael 912 fi
7485    
7486    
7487 michael 945 test -z "$pic_mode" && pic_mode=default
7488 michael 912
7489    
7490    
7491    
7492    
7493    
7494    
7495 michael 945 # Check whether --enable-fast-install was given.
7496 michael 967 if test "${enable_fast_install+set}" = set; then :
7497 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
7498     case $enableval in
7499     yes) enable_fast_install=yes ;;
7500     no) enable_fast_install=no ;;
7501     *)
7502     enable_fast_install=no
7503     # Look at the argument we got. We use all the common list separators.
7504     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7505     for pkg in $enableval; do
7506     IFS="$lt_save_ifs"
7507     if test "X$pkg" = "X$p"; then
7508     enable_fast_install=yes
7509     fi
7510     done
7511     IFS="$lt_save_ifs"
7512     ;;
7513     esac
7514 michael 912 else
7515 michael 945 enable_fast_install=yes
7516 michael 912 fi
7517    
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527    
7528 michael 945 # This can be used to rebuild libtool when needed
7529     LIBTOOL_DEPS="$ltmain"
7530 michael 912
7531 michael 945 # Always use our own libtool.
7532     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7533 michael 912
7534    
7535    
7536    
7537    
7538    
7539    
7540    
7541    
7542    
7543    
7544    
7545    
7546    
7547    
7548    
7549    
7550    
7551    
7552    
7553    
7554    
7555    
7556    
7557    
7558 michael 945 test -z "$LN_S" && LN_S="ln -s"
7559 michael 912
7560    
7561    
7562    
7563    
7564    
7565    
7566    
7567    
7568    
7569    
7570    
7571    
7572    
7573 michael 945 if test -n "${ZSH_VERSION+set}" ; then
7574     setopt NO_GLOB_SUBST
7575 michael 912 fi
7576    
7577 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7578 db 941 $as_echo_n "checking for objdir... " >&6; }
7579 michael 967 if test "${lt_cv_objdir+set}" = set; then :
7580 db 941 $as_echo_n "(cached) " >&6
7581 michael 912 else
7582     rm -f .libs 2>/dev/null
7583     mkdir .libs 2>/dev/null
7584     if test -d .libs; then
7585     lt_cv_objdir=.libs
7586     else
7587     # MS-DOS does not allow filenames that begin with a dot.
7588     lt_cv_objdir=_libs
7589     fi
7590     rmdir .libs 2>/dev/null
7591     fi
7592 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7593 db 941 $as_echo "$lt_cv_objdir" >&6; }
7594 michael 912 objdir=$lt_cv_objdir
7595    
7596    
7597    
7598    
7599    
7600 michael 945 cat >>confdefs.h <<_ACEOF
7601     #define LT_OBJDIR "$lt_cv_objdir/"
7602     _ACEOF
7603    
7604    
7605    
7606    
7607    
7608    
7609    
7610    
7611    
7612    
7613    
7614    
7615    
7616    
7617    
7618    
7619    
7620 michael 912 case $host_os in
7621     aix3*)
7622     # AIX sometimes has problems with the GCC collect2 program. For some
7623     # reason, if we set the COLLECT_NAMES environment variable, the problems
7624     # vanish in a puff of smoke.
7625     if test "X${COLLECT_NAMES+set}" != Xset; then
7626     COLLECT_NAMES=
7627     export COLLECT_NAMES
7628     fi
7629     ;;
7630     esac
7631    
7632     # Sed substitution that helps us do robust quoting. It backslashifies
7633     # metacharacters that are still active within double-quoted strings.
7634 michael 945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7635 michael 912
7636     # Same as above, but do not quote variable references.
7637 michael 945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7638 michael 912
7639     # Sed substitution to delay expansion of an escaped shell variable in a
7640     # double_quote_subst'ed string.
7641     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7642    
7643 michael 945 # Sed substitution to delay expansion of an escaped single quote.
7644     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7645    
7646 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
7647     no_glob_subst='s/\*/\\\*/g'
7648    
7649     # Global variables:
7650 michael 945 ofile=libtool
7651 michael 912 can_build_shared=yes
7652    
7653     # All known linkers require a `.a' archive for static linking (except MSVC,
7654     # which needs '.lib').
7655     libext=a
7656 michael 945
7657 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7658    
7659     old_CC="$CC"
7660     old_CFLAGS="$CFLAGS"
7661    
7662     # Set sane defaults for various variables
7663     test -z "$CC" && CC=cc
7664     test -z "$LTCC" && LTCC=$CC
7665     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7666     test -z "$LD" && LD=ld
7667     test -z "$ac_objext" && ac_objext=o
7668    
7669     for cc_temp in $compiler""; do
7670     case $cc_temp in
7671     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7672     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7673     \-*) ;;
7674     *) break;;
7675     esac
7676     done
7677 michael 945 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7678 michael 912
7679    
7680     # Only perform the check for file, if the check method requires it
7681 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7682 michael 912 case $deplibs_check_method in
7683     file_magic*)
7684     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7685 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7686 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7687 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7688 db 941 $as_echo_n "(cached) " >&6
7689 michael 912 else
7690     case $MAGIC_CMD in
7691     [\\/*] | ?:[\\/]*)
7692     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7693     ;;
7694     *)
7695     lt_save_MAGIC_CMD="$MAGIC_CMD"
7696     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698     for ac_dir in $ac_dummy; do
7699     IFS="$lt_save_ifs"
7700     test -z "$ac_dir" && ac_dir=.
7701     if test -f $ac_dir/${ac_tool_prefix}file; then
7702     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7703     if test -n "$file_magic_test_file"; then
7704     case $deplibs_check_method in
7705     "file_magic "*)
7706     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709     $EGREP "$file_magic_regex" > /dev/null; then
7710     :
7711     else
7712 michael 945 cat <<_LT_EOF 1>&2
7713 michael 912
7714     *** Warning: the command libtool uses to detect shared libraries,
7715     *** $file_magic_cmd, produces output that libtool cannot recognize.
7716     *** The result is that libtool may fail to recognize shared libraries
7717     *** as such. This will affect the creation of libtool libraries that
7718     *** depend on shared libraries, but programs linked with such libtool
7719     *** libraries will work regardless of this problem. Nevertheless, you
7720     *** may want to report the problem to your system manager and/or to
7721     *** bug-libtool@gnu.org
7722    
7723 michael 945 _LT_EOF
7724 michael 912 fi ;;
7725     esac
7726     fi
7727     break
7728     fi
7729     done
7730     IFS="$lt_save_ifs"
7731     MAGIC_CMD="$lt_save_MAGIC_CMD"
7732     ;;
7733     esac
7734     fi
7735    
7736     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737     if test -n "$MAGIC_CMD"; then
7738 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 db 941 $as_echo "$MAGIC_CMD" >&6; }
7740 michael 912 else
7741 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 db 941 $as_echo "no" >&6; }
7743 michael 912 fi
7744    
7745 michael 945
7746    
7747    
7748    
7749 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
7750     if test -n "$ac_tool_prefix"; then
7751 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7752 db 941 $as_echo_n "checking for file... " >&6; }
7753 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7754 db 941 $as_echo_n "(cached) " >&6
7755 michael 912 else
7756     case $MAGIC_CMD in
7757     [\\/*] | ?:[\\/]*)
7758     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7759     ;;
7760     *)
7761     lt_save_MAGIC_CMD="$MAGIC_CMD"
7762     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7763     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7764     for ac_dir in $ac_dummy; do
7765     IFS="$lt_save_ifs"
7766     test -z "$ac_dir" && ac_dir=.
7767     if test -f $ac_dir/file; then
7768     lt_cv_path_MAGIC_CMD="$ac_dir/file"
7769     if test -n "$file_magic_test_file"; then
7770     case $deplibs_check_method in
7771     "file_magic "*)
7772     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7773     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7774     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7775     $EGREP "$file_magic_regex" > /dev/null; then
7776     :
7777     else
7778 michael 945 cat <<_LT_EOF 1>&2
7779 michael 912
7780     *** Warning: the command libtool uses to detect shared libraries,
7781     *** $file_magic_cmd, produces output that libtool cannot recognize.
7782     *** The result is that libtool may fail to recognize shared libraries
7783     *** as such. This will affect the creation of libtool libraries that
7784     *** depend on shared libraries, but programs linked with such libtool
7785     *** libraries will work regardless of this problem. Nevertheless, you
7786     *** may want to report the problem to your system manager and/or to
7787     *** bug-libtool@gnu.org
7788    
7789 michael 945 _LT_EOF
7790 michael 912 fi ;;
7791     esac
7792     fi
7793     break
7794     fi
7795     done
7796     IFS="$lt_save_ifs"
7797     MAGIC_CMD="$lt_save_MAGIC_CMD"
7798     ;;
7799     esac
7800     fi
7801    
7802     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7803     if test -n "$MAGIC_CMD"; then
7804 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7805 db 941 $as_echo "$MAGIC_CMD" >&6; }
7806 michael 912 else
7807 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 db 941 $as_echo "no" >&6; }
7809 michael 912 fi
7810    
7811 michael 945
7812 michael 912 else
7813     MAGIC_CMD=:
7814     fi
7815     fi
7816    
7817     fi
7818     ;;
7819     esac
7820    
7821 michael 945 # Use C for the default configuration in the libtool script
7822 db 941
7823 michael 912 lt_save_CC="$CC"
7824     ac_ext=c
7825     ac_cpp='$CPP $CPPFLAGS'
7826     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829    
7830    
7831     # Source file extension for C test sources.
7832     ac_ext=c
7833    
7834     # Object file extension for compiled C test sources.
7835     objext=o
7836     objext=$objext
7837    
7838     # Code to be used in simple compile tests
7839     lt_simple_compile_test_code="int some_variable = 0;"
7840    
7841     # Code to be used in simple link tests
7842     lt_simple_link_test_code='int main(){return(0);}'
7843    
7844    
7845 michael 945
7846    
7847    
7848    
7849    
7850 michael 912 # If no C compiler was specified, use CC.
7851     LTCC=${LTCC-"$CC"}
7852    
7853     # If no C compiler flags were specified, use CFLAGS.
7854     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7855    
7856     # Allow CC to be a program name with arguments.
7857     compiler=$CC
7858    
7859 michael 945 # Save the default compiler, since it gets overwritten when the other
7860     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7861     compiler_DEFAULT=$CC
7862 michael 912
7863     # save warnings/boilerplate of simple test code
7864     ac_outfile=conftest.$ac_objext
7865     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7866     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867     _lt_compiler_boilerplate=`cat conftest.err`
7868 michael 945 $RM conftest*
7869 michael 912
7870     ac_outfile=conftest.$ac_objext
7871     echo "$lt_simple_link_test_code" >conftest.$ac_ext
7872     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873     _lt_linker_boilerplate=`cat conftest.err`
7874 michael 945 $RM -r conftest*
7875 michael 912
7876    
7877 michael 945 if test -n "$compiler"; then
7878 michael 912
7879     lt_prog_compiler_no_builtin_flag=
7880    
7881     if test "$GCC" = yes; then
7882     lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7883    
7884 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7885 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7886 michael 967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7887 db 941 $as_echo_n "(cached) " >&6
7888 michael 912 else
7889     lt_cv_prog_compiler_rtti_exceptions=no
7890 michael 945 ac_outfile=conftest.$ac_objext
7891 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7892     lt_compiler_flag="-fno-rtti -fno-exceptions"
7893     # Insert the option either (1) after the last *FLAGS variable, or
7894     # (2) before a word containing "conftest.", or (3) at the end.
7895     # Note that $ac_compile itself does not contain backslashes and begins
7896     # with a dollar sign (not a hyphen), so the echo should work correctly.
7897     # The option is referenced via a variable to avoid confusing sed.
7898     lt_compile=`echo "$ac_compile" | $SED \
7899     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7900     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7901     -e 's:$: $lt_compiler_flag:'`
7902 michael 1084 (eval echo "\"\$as_me:7902: $lt_compile\"" >&5)
7903 michael 912 (eval "$lt_compile" 2>conftest.err)
7904     ac_status=$?
7905     cat conftest.err >&5
7906 michael 1084 echo "$as_me:7906: \$? = $ac_status" >&5
7907 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
7908     # The compiler can only warn and ignore the option if not recognized
7909     # So say no if there are warnings other than the usual output.
7910 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7911 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7912     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7913     lt_cv_prog_compiler_rtti_exceptions=yes
7914     fi
7915     fi
7916 michael 945 $RM conftest*
7917 michael 912
7918     fi
7919 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7920 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7921 michael 912
7922     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7923     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7924     else
7925     :
7926     fi
7927    
7928     fi
7929    
7930 michael 945
7931    
7932    
7933    
7934    
7935     lt_prog_compiler_wl=
7936 michael 912 lt_prog_compiler_pic=
7937     lt_prog_compiler_static=
7938    
7939 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7940 db 941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7941 michael 912
7942     if test "$GCC" = yes; then
7943     lt_prog_compiler_wl='-Wl,'
7944     lt_prog_compiler_static='-static'
7945    
7946     case $host_os in
7947     aix*)
7948     # All AIX code is PIC.
7949     if test "$host_cpu" = ia64; then
7950     # AIX 5 now supports IA64 processor
7951     lt_prog_compiler_static='-Bstatic'
7952     fi
7953     ;;
7954    
7955     amigaos*)
7956 michael 945 case $host_cpu in
7957     powerpc)
7958     # see comment about AmigaOS4 .so support
7959     lt_prog_compiler_pic='-fPIC'
7960     ;;
7961     m68k)
7962     # FIXME: we need at least 68020 code to build shared libraries, but
7963     # adding the `-m68020' flag to GCC prevents building anything better,
7964     # like `-m68040'.
7965     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7966     ;;
7967     esac
7968 michael 912 ;;
7969    
7970     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7971     # PIC is the default for these OSes.
7972     ;;
7973    
7974 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7975 michael 912 # This hack is so that the source file can tell whether it is being
7976     # built for inclusion in a dll (and should export symbols for example).
7977     # Although the cygwin gcc ignores -fPIC, still need this for old-style
7978     # (--disable-auto-import) libraries
7979     lt_prog_compiler_pic='-DDLL_EXPORT'
7980     ;;
7981    
7982     darwin* | rhapsody*)
7983     # PIC is the default on this platform
7984     # Common symbols not allowed in MH_DYLIB files
7985     lt_prog_compiler_pic='-fno-common'
7986     ;;
7987    
7988 michael 945 hpux*)
7989     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7990     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7991     # sets the default TLS model and affects inlining.
7992     case $host_cpu in
7993     hppa*64*)
7994     # +Z the default
7995     ;;
7996     *)
7997     lt_prog_compiler_pic='-fPIC'
7998     ;;
7999     esac
8000     ;;
8001    
8002 michael 912 interix[3-9]*)
8003     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8004     # Instead, we relocate shared libraries at runtime.
8005     ;;
8006    
8007     msdosdjgpp*)
8008     # Just because we use GCC doesn't mean we suddenly get shared libraries
8009     # on systems that don't support them.
8010     lt_prog_compiler_can_build_shared=no
8011     enable_shared=no
8012     ;;
8013    
8014 michael 945 *nto* | *qnx*)
8015     # QNX uses GNU C++, but need to define -shared option too, otherwise
8016     # it will coredump.
8017     lt_prog_compiler_pic='-fPIC -shared'
8018     ;;
8019    
8020 michael 912 sysv4*MP*)
8021     if test -d /usr/nec; then
8022     lt_prog_compiler_pic=-Kconform_pic
8023     fi
8024     ;;
8025    
8026     *)
8027     lt_prog_compiler_pic='-fPIC'
8028     ;;
8029     esac
8030     else
8031     # PORTME Check for flag to pass linker flags through the system compiler.
8032     case $host_os in
8033     aix*)
8034     lt_prog_compiler_wl='-Wl,'
8035     if test "$host_cpu" = ia64; then
8036     # AIX 5 now supports IA64 processor
8037     lt_prog_compiler_static='-Bstatic'
8038     else
8039     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8040     fi
8041     ;;
8042    
8043 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8044 michael 912 # This hack is so that the source file can tell whether it is being
8045     # built for inclusion in a dll (and should export symbols for example).
8046     lt_prog_compiler_pic='-DDLL_EXPORT'
8047     ;;
8048    
8049     hpux9* | hpux10* | hpux11*)
8050     lt_prog_compiler_wl='-Wl,'
8051     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8052     # not for PA HP-UX.
8053     case $host_cpu in
8054     hppa*64*|ia64*)
8055     # +Z the default
8056     ;;
8057     *)
8058     lt_prog_compiler_pic='+Z'
8059     ;;
8060     esac
8061     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8062     lt_prog_compiler_static='${wl}-a ${wl}archive'
8063     ;;
8064    
8065     irix5* | irix6* | nonstopux*)
8066     lt_prog_compiler_wl='-Wl,'
8067     # PIC (with -KPIC) is the default.
8068     lt_prog_compiler_static='-non_shared'
8069     ;;
8070    
8071     linux* | k*bsd*-gnu)
8072     case $cc_basename in
8073 michael 945 # old Intel for x86_64 which still supported -KPIC.
8074     ecc*)
8075 michael 912 lt_prog_compiler_wl='-Wl,'
8076     lt_prog_compiler_pic='-KPIC'
8077     lt_prog_compiler_static='-static'
8078     ;;
8079 michael 945 # icc used to be incompatible with GCC.
8080     # ICC 10 doesn't accept -KPIC any more.
8081     icc* | ifort*)
8082     lt_prog_compiler_wl='-Wl,'
8083     lt_prog_compiler_pic='-fPIC'
8084     lt_prog_compiler_static='-static'
8085     ;;
8086     # Lahey Fortran 8.1.
8087     lf95*)
8088     lt_prog_compiler_wl='-Wl,'
8089     lt_prog_compiler_pic='--shared'
8090     lt_prog_compiler_static='--static'
8091     ;;
8092 michael 912 pgcc* | pgf77* | pgf90* | pgf95*)
8093     # Portland Group compilers (*not* the Pentium gcc compiler,
8094     # which looks to be a dead project)
8095     lt_prog_compiler_wl='-Wl,'
8096     lt_prog_compiler_pic='-fpic'
8097     lt_prog_compiler_static='-Bstatic'
8098     ;;
8099     ccc*)
8100     lt_prog_compiler_wl='-Wl,'
8101     # All Alpha code is PIC.
8102     lt_prog_compiler_static='-non_shared'
8103     ;;
8104 michael 945 xl*)
8105     # IBM XL C 8.0/Fortran 10.1 on PPC
8106     lt_prog_compiler_wl='-Wl,'
8107     lt_prog_compiler_pic='-qpic'
8108     lt_prog_compiler_static='-qstaticlink'
8109     ;;
8110 michael 912 *)
8111 michael 945 case `$CC -V 2>&1 | sed 5q` in
8112 michael 912 *Sun\ C*)
8113     # Sun C 5.9
8114     lt_prog_compiler_pic='-KPIC'
8115     lt_prog_compiler_static='-Bstatic'
8116     lt_prog_compiler_wl='-Wl,'
8117     ;;
8118     *Sun\ F*)
8119     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8120     lt_prog_compiler_pic='-KPIC'
8121     lt_prog_compiler_static='-Bstatic'
8122     lt_prog_compiler_wl=''
8123     ;;
8124     esac
8125     ;;
8126     esac
8127     ;;
8128    
8129 michael 945 newsos6)
8130     lt_prog_compiler_pic='-KPIC'
8131     lt_prog_compiler_static='-Bstatic'
8132     ;;
8133    
8134     *nto* | *qnx*)
8135     # QNX uses GNU C++, but need to define -shared option too, otherwise
8136     # it will coredump.
8137     lt_prog_compiler_pic='-fPIC -shared'
8138     ;;
8139    
8140 michael 912 osf3* | osf4* | osf5*)
8141     lt_prog_compiler_wl='-Wl,'
8142     # All OSF/1 code is PIC.
8143     lt_prog_compiler_static='-non_shared'
8144     ;;
8145    
8146     rdos*)
8147     lt_prog_compiler_static='-non_shared'
8148     ;;
8149    
8150     solaris*)
8151     lt_prog_compiler_pic='-KPIC'
8152     lt_prog_compiler_static='-Bstatic'
8153     case $cc_basename in
8154     f77* | f90* | f95*)
8155     lt_prog_compiler_wl='-Qoption ld ';;
8156     *)
8157     lt_prog_compiler_wl='-Wl,';;
8158     esac
8159     ;;
8160    
8161     sunos4*)
8162     lt_prog_compiler_wl='-Qoption ld '
8163     lt_prog_compiler_pic='-PIC'
8164     lt_prog_compiler_static='-Bstatic'
8165     ;;
8166    
8167     sysv4 | sysv4.2uw2* | sysv4.3*)
8168     lt_prog_compiler_wl='-Wl,'
8169     lt_prog_compiler_pic='-KPIC'
8170     lt_prog_compiler_static='-Bstatic'
8171     ;;
8172    
8173     sysv4*MP*)
8174     if test -d /usr/nec ;then
8175     lt_prog_compiler_pic='-Kconform_pic'
8176     lt_prog_compiler_static='-Bstatic'
8177     fi
8178     ;;
8179    
8180     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8181     lt_prog_compiler_wl='-Wl,'
8182     lt_prog_compiler_pic='-KPIC'
8183     lt_prog_compiler_static='-Bstatic'
8184     ;;
8185    
8186     unicos*)
8187     lt_prog_compiler_wl='-Wl,'
8188     lt_prog_compiler_can_build_shared=no
8189     ;;
8190    
8191     uts4*)
8192     lt_prog_compiler_pic='-pic'
8193     lt_prog_compiler_static='-Bstatic'
8194     ;;
8195    
8196     *)
8197     lt_prog_compiler_can_build_shared=no
8198     ;;
8199     esac
8200     fi
8201    
8202 michael 945 case $host_os in
8203     # For platforms which do not support PIC, -DPIC is meaningless:
8204     *djgpp*)
8205     lt_prog_compiler_pic=
8206     ;;
8207     *)
8208     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8209     ;;
8210     esac
8211 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8212 db 941 $as_echo "$lt_prog_compiler_pic" >&6; }
8213 michael 912
8214 michael 945
8215    
8216    
8217    
8218    
8219 michael 912 #
8220     # Check to make sure the PIC flag actually works.
8221     #
8222     if test -n "$lt_prog_compiler_pic"; then
8223 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8224 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8225 michael 967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8226 db 941 $as_echo_n "(cached) " >&6
8227 michael 912 else
8228 db 941 lt_cv_prog_compiler_pic_works=no
8229 michael 945 ac_outfile=conftest.$ac_objext
8230 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8232     # Insert the option either (1) after the last *FLAGS variable, or
8233     # (2) before a word containing "conftest.", or (3) at the end.
8234     # Note that $ac_compile itself does not contain backslashes and begins
8235     # with a dollar sign (not a hyphen), so the echo should work correctly.
8236     # The option is referenced via a variable to avoid confusing sed.
8237     lt_compile=`echo "$ac_compile" | $SED \
8238     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8239     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8240     -e 's:$: $lt_compiler_flag:'`
8241 michael 1084 (eval echo "\"\$as_me:8241: $lt_compile\"" >&5)
8242 michael 912 (eval "$lt_compile" 2>conftest.err)
8243     ac_status=$?
8244     cat conftest.err >&5
8245 michael 1084 echo "$as_me:8245: \$? = $ac_status" >&5
8246 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8247     # The compiler can only warn and ignore the option if not recognized
8248     # So say no if there are warnings other than the usual output.
8249 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8250 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8251     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8252 db 941 lt_cv_prog_compiler_pic_works=yes
8253 michael 912 fi
8254     fi
8255 michael 945 $RM conftest*
8256 michael 912
8257     fi
8258 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8259 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8260 michael 912
8261 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8262 michael 912 case $lt_prog_compiler_pic in
8263     "" | " "*) ;;
8264     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8265     esac
8266     else
8267     lt_prog_compiler_pic=
8268     lt_prog_compiler_can_build_shared=no
8269     fi
8270    
8271     fi
8272    
8273 michael 945
8274    
8275    
8276    
8277    
8278 michael 912 #
8279     # Check to make sure the static flag actually works.
8280     #
8281     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8282 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8283 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8284 michael 967 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8285 db 941 $as_echo_n "(cached) " >&6
8286 michael 912 else
8287 db 941 lt_cv_prog_compiler_static_works=no
8288 michael 912 save_LDFLAGS="$LDFLAGS"
8289     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8290     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8291     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8292     # The linker can only warn and ignore the option if not recognized
8293     # So say no if there are warnings
8294     if test -s conftest.err; then
8295     # Append any errors to the config.log.
8296     cat conftest.err 1>&5
8297 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8298 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8299     if diff conftest.exp conftest.er2 >/dev/null; then
8300 db 941 lt_cv_prog_compiler_static_works=yes
8301 michael 912 fi
8302     else
8303 db 941 lt_cv_prog_compiler_static_works=yes
8304 michael 912 fi
8305     fi
8306 michael 945 $RM -r conftest*
8307 michael 912 LDFLAGS="$save_LDFLAGS"
8308    
8309     fi
8310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8311 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8312 michael 912
8313 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8314 michael 912 :
8315     else
8316     lt_prog_compiler_static=
8317     fi
8318    
8319    
8320 michael 945
8321    
8322    
8323    
8324    
8325 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8326 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8327 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8328 db 941 $as_echo_n "(cached) " >&6
8329 michael 912 else
8330     lt_cv_prog_compiler_c_o=no
8331 michael 945 $RM -r conftest 2>/dev/null
8332 michael 912 mkdir conftest
8333     cd conftest
8334     mkdir out
8335     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8336    
8337     lt_compiler_flag="-o out/conftest2.$ac_objext"
8338     # Insert the option either (1) after the last *FLAGS variable, or
8339     # (2) before a word containing "conftest.", or (3) at the end.
8340     # Note that $ac_compile itself does not contain backslashes and begins
8341     # with a dollar sign (not a hyphen), so the echo should work correctly.
8342     lt_compile=`echo "$ac_compile" | $SED \
8343     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8344     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8345     -e 's:$: $lt_compiler_flag:'`
8346 michael 1084 (eval echo "\"\$as_me:8346: $lt_compile\"" >&5)
8347 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8348     ac_status=$?
8349     cat out/conftest.err >&5
8350 michael 1084 echo "$as_me:8350: \$? = $ac_status" >&5
8351 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8352     then
8353     # The compiler can only warn and ignore the option if not recognized
8354     # So say no if there are warnings
8355 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8356 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8357     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8358     lt_cv_prog_compiler_c_o=yes
8359     fi
8360     fi
8361     chmod u+w . 2>&5
8362 michael 945 $RM conftest*
8363 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8364     # template instantiation
8365 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8366     $RM out/* && rmdir out
8367 michael 912 cd ..
8368 michael 945 $RM -r conftest
8369     $RM conftest*
8370 michael 912
8371     fi
8372 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8373 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8374 michael 912
8375    
8376 michael 945
8377    
8378    
8379    
8380 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8381 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8382 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8383 michael 945 $as_echo_n "(cached) " >&6
8384     else
8385     lt_cv_prog_compiler_c_o=no
8386     $RM -r conftest 2>/dev/null
8387     mkdir conftest
8388     cd conftest
8389     mkdir out
8390     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8391    
8392     lt_compiler_flag="-o out/conftest2.$ac_objext"
8393     # Insert the option either (1) after the last *FLAGS variable, or
8394     # (2) before a word containing "conftest.", or (3) at the end.
8395     # Note that $ac_compile itself does not contain backslashes and begins
8396     # with a dollar sign (not a hyphen), so the echo should work correctly.
8397     lt_compile=`echo "$ac_compile" | $SED \
8398     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8399     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8400     -e 's:$: $lt_compiler_flag:'`
8401 michael 1084 (eval echo "\"\$as_me:8401: $lt_compile\"" >&5)
8402 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8403     ac_status=$?
8404     cat out/conftest.err >&5
8405 michael 1084 echo "$as_me:8405: \$? = $ac_status" >&5
8406 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8407     then
8408     # The compiler can only warn and ignore the option if not recognized
8409     # So say no if there are warnings
8410     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8411     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8412     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8413     lt_cv_prog_compiler_c_o=yes
8414     fi
8415     fi
8416     chmod u+w . 2>&5
8417     $RM conftest*
8418     # SGI C++ compiler will create directory out/ii_files/ for
8419     # template instantiation
8420     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8421     $RM out/* && rmdir out
8422     cd ..
8423     $RM -r conftest
8424     $RM conftest*
8425    
8426     fi
8427 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8428 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8429    
8430    
8431    
8432    
8433 michael 912 hard_links="nottested"
8434     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8435     # do not overwrite the value of need_locks provided by the user
8436 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8437 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
8438 michael 912 hard_links=yes
8439 michael 945 $RM conftest*
8440 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8441     touch conftest.a
8442     ln conftest.a conftest.b 2>&5 || hard_links=no
8443     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8445 db 941 $as_echo "$hard_links" >&6; }
8446 michael 912 if test "$hard_links" = no; then
8447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8448 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8449 michael 912 need_locks=warn
8450     fi
8451     else
8452     need_locks=no
8453     fi
8454    
8455 michael 945
8456    
8457    
8458    
8459    
8460 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8461 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8462 michael 912
8463     runpath_var=
8464     allow_undefined_flag=
8465 michael 945 always_export_symbols=no
8466 michael 912 archive_cmds=
8467     archive_expsym_cmds=
8468 michael 945 compiler_needs_object=no
8469     enable_shared_with_static_runtimes=no
8470 michael 912 export_dynamic_flag_spec=
8471 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8472     hardcode_automatic=no
8473     hardcode_direct=no
8474     hardcode_direct_absolute=no
8475 michael 912 hardcode_libdir_flag_spec=
8476     hardcode_libdir_flag_spec_ld=
8477     hardcode_libdir_separator=
8478     hardcode_minus_L=no
8479     hardcode_shlibpath_var=unsupported
8480 michael 945 inherit_rpath=no
8481 michael 912 link_all_deplibs=unknown
8482     module_cmds=
8483     module_expsym_cmds=
8484 michael 945 old_archive_from_new_cmds=
8485     old_archive_from_expsyms_cmds=
8486     thread_safe_flag_spec=
8487     whole_archive_flag_spec=
8488 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
8489     # included in the symbol list
8490     include_expsyms=
8491     # exclude_expsyms can be an extended regexp of symbols to exclude
8492     # it will be wrapped by ` (' and `)$', so one must not match beginning or
8493     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8494     # as well as any symbol that contains `d'.
8495 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8496 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8497     # platforms (ab)use it in PIC code, but their linkers get confused if
8498     # the symbol is explicitly referenced. Since portable code cannot
8499     # rely on this symbol name, it's probably fine to never include it in
8500     # preloaded symbol tables.
8501 db 941 # Exclude shared library initialization/finalization symbols.
8502 michael 912 extract_expsyms_cmds=
8503    
8504     case $host_os in
8505 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8506 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8507     # When not using gcc, we currently assume that we are using
8508     # Microsoft Visual C++.
8509     if test "$GCC" != yes; then
8510     with_gnu_ld=no
8511     fi
8512     ;;
8513     interix*)
8514     # we just hope/assume this is gcc and not c89 (= MSVC++)
8515     with_gnu_ld=yes
8516     ;;
8517     openbsd*)
8518     with_gnu_ld=no
8519     ;;
8520     esac
8521    
8522     ld_shlibs=yes
8523     if test "$with_gnu_ld" = yes; then
8524     # If archive_cmds runs LD, not CC, wlarc should be empty
8525     wlarc='${wl}'
8526    
8527     # Set some defaults for GNU ld with shared library support. These
8528     # are reset later if shared libraries are not supported. Putting them
8529     # here allows them to be overridden if necessary.
8530     runpath_var=LD_RUN_PATH
8531 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
8533     # ancient GNU ld didn't support --whole-archive et. al.
8534 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8535     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8536     else
8537     whole_archive_flag_spec=
8538 michael 912 fi
8539     supports_anon_versioning=no
8540 michael 945 case `$LD -v 2>&1` in
8541 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8542     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8543     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8544     *\ 2.11.*) ;; # other 2.11 versions
8545     *) supports_anon_versioning=yes ;;
8546     esac
8547    
8548     # See if GNU ld supports shared libraries.
8549     case $host_os in
8550 db 941 aix[3-9]*)
8551 michael 912 # On AIX/PPC, the GNU linker is very broken
8552     if test "$host_cpu" != ia64; then
8553     ld_shlibs=no
8554 michael 945 cat <<_LT_EOF 1>&2
8555 michael 912
8556     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8557     *** to be unable to reliably create shared libraries on AIX.
8558     *** Therefore, libtool is disabling shared libraries support. If you
8559     *** really care for shared libraries, you may want to modify your PATH
8560     *** so that a non-GNU linker is found, and then restart.
8561    
8562 michael 945 _LT_EOF
8563 michael 912 fi
8564     ;;
8565    
8566     amigaos*)
8567 michael 945 case $host_cpu in
8568     powerpc)
8569     # see comment about AmigaOS4 .so support
8570     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8571     archive_expsym_cmds=''
8572     ;;
8573     m68k)
8574     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)'
8575     hardcode_libdir_flag_spec='-L$libdir'
8576     hardcode_minus_L=yes
8577     ;;
8578     esac
8579 michael 912 ;;
8580    
8581     beos*)
8582 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8583 michael 912 allow_undefined_flag=unsupported
8584     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8585     # support --undefined. This deserves some investigation. FIXME
8586     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587     else
8588     ld_shlibs=no
8589     fi
8590     ;;
8591    
8592 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8593     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8594 michael 912 # as there is no search path for DLLs.
8595     hardcode_libdir_flag_spec='-L$libdir'
8596     allow_undefined_flag=unsupported
8597     always_export_symbols=no
8598     enable_shared_with_static_runtimes=yes
8599 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8600 michael 912
8601 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8602 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8603     # If the export-symbols file already is a .def file (1st line
8604     # is EXPORTS), use it as is; otherwise, prepend...
8605     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8606     cp $export_symbols $output_objdir/$soname.def;
8607     else
8608     echo EXPORTS > $output_objdir/$soname.def;
8609     cat $export_symbols >> $output_objdir/$soname.def;
8610     fi~
8611     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8612     else
8613     ld_shlibs=no
8614     fi
8615     ;;
8616    
8617     interix[3-9]*)
8618     hardcode_direct=no
8619     hardcode_shlibpath_var=no
8620     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8621     export_dynamic_flag_spec='${wl}-E'
8622     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8623     # Instead, shared libraries are loaded at an image base (0x10000000 by
8624     # default) and relocated if they conflict, which is a slow very memory
8625     # consuming and fragmenting process. To avoid this, we pick a random,
8626     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8627     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8628     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8629     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'
8630     ;;
8631    
8632 michael 945 gnu* | linux* | tpf* | k*bsd*-gnu)
8633     tmp_diet=no
8634     if test "$host_os" = linux-dietlibc; then
8635     case $cc_basename in
8636     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8637     esac
8638     fi
8639     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8640     && test "$tmp_diet" = no
8641     then
8642 michael 912 tmp_addflag=
8643 michael 945 tmp_sharedflag='-shared'
8644 michael 912 case $cc_basename,$host_cpu in
8645 michael 945 pgcc*) # Portland Group C compiler
8646     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'
8647 michael 912 tmp_addflag=' $pic_flag'
8648     ;;
8649     pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8650 michael 945 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'
8651 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
8652 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8653 michael 912 tmp_addflag=' -i_dynamic' ;;
8654     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8655     tmp_addflag=' -i_dynamic -nofor_main' ;;
8656     ifc* | ifort*) # Intel Fortran compiler
8657     tmp_addflag=' -nofor_main' ;;
8658 michael 945 lf95*) # Lahey Fortran 8.1
8659     whole_archive_flag_spec=
8660     tmp_sharedflag='--shared' ;;
8661     xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8662     tmp_sharedflag='-qmkshrobj'
8663     tmp_addflag= ;;
8664 michael 912 esac
8665     case `$CC -V 2>&1 | sed 5q` in
8666     *Sun\ C*) # Sun C 5.9
8667 michael 945 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'
8668     compiler_needs_object=yes
8669 michael 912 tmp_sharedflag='-G' ;;
8670     *Sun\ F*) # Sun Fortran 8.3
8671     tmp_sharedflag='-G' ;;
8672     esac
8673     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8674    
8675 michael 945 if test "x$supports_anon_versioning" = xyes; then
8676     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8677     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8678     echo "local: *; };" >> $output_objdir/$libname.ver~
8679     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8680     fi
8681    
8682     case $cc_basename in
8683     xlf*)
8684     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8685     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8686     hardcode_libdir_flag_spec=
8687     hardcode_libdir_flag_spec_ld='-rpath $libdir'
8688     archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8689     if test "x$supports_anon_versioning" = xyes; then
8690     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8691     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8692     echo "local: *; };" >> $output_objdir/$libname.ver~
8693     $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8694     fi
8695     ;;
8696     esac
8697 michael 912 else
8698 michael 945 ld_shlibs=no
8699 michael 912 fi
8700     ;;
8701    
8702     netbsd*)
8703 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8704 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8705     wlarc=
8706     else
8707     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8708     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8709     fi
8710     ;;
8711    
8712     solaris*)
8713 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8714 michael 912 ld_shlibs=no
8715 michael 945 cat <<_LT_EOF 1>&2
8716 michael 912
8717     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8718     *** create shared libraries on Solaris systems. Therefore, libtool
8719     *** is disabling shared libraries support. We urge you to upgrade GNU
8720     *** binutils to release 2.9.1 or newer. Another option is to modify
8721     *** your PATH or compiler configuration so that the native linker is
8722     *** used, and then restart.
8723    
8724 michael 945 _LT_EOF
8725     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8726 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728     else
8729     ld_shlibs=no
8730     fi
8731     ;;
8732    
8733     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8734     case `$LD -v 2>&1` in
8735     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8736     ld_shlibs=no
8737     cat <<_LT_EOF 1>&2
8738    
8739     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8740     *** reliably create shared libraries on SCO systems. Therefore, libtool
8741     *** is disabling shared libraries support. We urge you to upgrade GNU
8742     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8743     *** your PATH or compiler configuration so that the native linker is
8744     *** used, and then restart.
8745    
8746     _LT_EOF
8747     ;;
8748     *)
8749 michael 945 # For security reasons, it is highly recommended that you always
8750     # use absolute paths for naming shared libraries, and exclude the
8751     # DT_RUNPATH tag from executables and libraries. But doing so
8752     # requires that you compile everything twice, which is a pain.
8753     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8756     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8757 michael 912 else
8758     ld_shlibs=no
8759     fi
8760     ;;
8761     esac
8762     ;;
8763    
8764     sunos4*)
8765     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766     wlarc=
8767     hardcode_direct=yes
8768     hardcode_shlibpath_var=no
8769     ;;
8770    
8771     *)
8772 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8773 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8775     else
8776     ld_shlibs=no
8777     fi
8778     ;;
8779     esac
8780    
8781     if test "$ld_shlibs" = no; then
8782     runpath_var=
8783     hardcode_libdir_flag_spec=
8784     export_dynamic_flag_spec=
8785     whole_archive_flag_spec=
8786     fi
8787     else
8788     # PORTME fill in a description of your system's linker (not GNU ld)
8789     case $host_os in
8790     aix3*)
8791     allow_undefined_flag=unsupported
8792     always_export_symbols=yes
8793     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'
8794     # Note: this linker hardcodes the directories in LIBPATH if there
8795     # are no directories specified by -L.
8796     hardcode_minus_L=yes
8797     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8798     # Neither direct hardcoding nor static linking is supported with a
8799     # broken collect2.
8800     hardcode_direct=unsupported
8801     fi
8802     ;;
8803    
8804 db 941 aix[4-9]*)
8805 michael 912 if test "$host_cpu" = ia64; then
8806     # On IA64, the linker does run time linking by default, so we don't
8807     # have to do anything special.
8808     aix_use_runtimelinking=no
8809     exp_sym_flag='-Bexport'
8810     no_entry_flag=""
8811     else
8812     # If we're using GNU nm, then we don't want the "-C" option.
8813     # -C means demangle to AIX nm, but means don't demangle with GNU nm
8814 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8815     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'
8816 michael 912 else
8817 michael 945 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'
8818 michael 912 fi
8819     aix_use_runtimelinking=no
8820    
8821     # Test if we are trying to use run time linking or normal
8822     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8823     # need to do runtime linking.
8824 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8825 michael 912 for ld_flag in $LDFLAGS; do
8826 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8827     aix_use_runtimelinking=yes
8828     break
8829     fi
8830 michael 912 done
8831     ;;
8832     esac
8833    
8834     exp_sym_flag='-bexport'
8835     no_entry_flag='-bnoentry'
8836     fi
8837    
8838     # When large executables or shared objects are built, AIX ld can
8839     # have problems creating the table of contents. If linking a library
8840     # or program results in "error TOC overflow" add -mminimal-toc to
8841     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8842     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843    
8844     archive_cmds=''
8845     hardcode_direct=yes
8846 michael 945 hardcode_direct_absolute=yes
8847 michael 912 hardcode_libdir_separator=':'
8848     link_all_deplibs=yes
8849 michael 945 file_list_spec='${wl}-f,'
8850 michael 912
8851     if test "$GCC" = yes; then
8852     case $host_os in aix4.[012]|aix4.[012].*)
8853     # We only want to do this on AIX 4.2 and lower, the check
8854     # below for broken collect2 doesn't work under 4.3+
8855     collect2name=`${CC} -print-prog-name=collect2`
8856 michael 945 if test -f "$collect2name" &&
8857     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8858 michael 912 then
8859 michael 945 # We have reworked collect2
8860     :
8861 michael 912 else
8862 michael 945 # We have old collect2
8863     hardcode_direct=unsupported
8864     # It fails to find uninstalled libraries when the uninstalled
8865     # path is not listed in the libpath. Setting hardcode_minus_L
8866     # to unsupported forces relinking
8867     hardcode_minus_L=yes
8868     hardcode_libdir_flag_spec='-L$libdir'
8869     hardcode_libdir_separator=
8870 michael 912 fi
8871     ;;
8872     esac
8873     shared_flag='-shared'
8874     if test "$aix_use_runtimelinking" = yes; then
8875     shared_flag="$shared_flag "'${wl}-G'
8876     fi
8877     else
8878     # not using gcc
8879     if test "$host_cpu" = ia64; then
8880 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8881     # chokes on -Wl,-G. The following line is correct:
8882 michael 912 shared_flag='-G'
8883     else
8884     if test "$aix_use_runtimelinking" = yes; then
8885     shared_flag='${wl}-G'
8886     else
8887     shared_flag='${wl}-bM:SRE'
8888     fi
8889     fi
8890     fi
8891    
8892 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
8893 michael 912 # It seems that -bexpall does not export symbols beginning with
8894     # underscore (_), so it is better to generate a list of symbols to export.
8895     always_export_symbols=yes
8896     if test "$aix_use_runtimelinking" = yes; then
8897     # Warning - without using the other runtime loading flags (-brtl),
8898     # -berok will link without error, but may produce a broken library.
8899     allow_undefined_flag='-berok'
8900 michael 945 # Determine the default libpath from the value encoded in an
8901     # empty executable.
8902 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903 michael 912 /* end confdefs.h. */
8904    
8905     int
8906     main ()
8907     {
8908    
8909     ;
8910     return 0;
8911     }
8912     _ACEOF
8913 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8914 michael 912
8915     lt_aix_libpath_sed='
8916     /Import File Strings/,/^$/ {
8917     /^0/ {
8918     s/^0 *\(.*\)$/\1/
8919     p
8920     }
8921     }'
8922     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8923     # Check for a 64-bit object if we didn't find anything.
8924     if test -z "$aix_libpath"; then
8925     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926     fi
8927     fi
8928 michael 967 rm -f core conftest.err conftest.$ac_objext \
8929     conftest$ac_exeext conftest.$ac_ext
8930 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8931    
8932 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933     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"
8934     else
8935 michael 912 if test "$host_cpu" = ia64; then
8936     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8937     allow_undefined_flag="-z nodefs"
8938     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"
8939     else
8940 michael 945 # Determine the default libpath from the value encoded in an
8941     # empty executable.
8942 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 michael 912 /* end confdefs.h. */
8944    
8945     int
8946     main ()
8947     {
8948    
8949     ;
8950     return 0;
8951     }
8952     _ACEOF
8953 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8954 michael 912
8955     lt_aix_libpath_sed='
8956     /Import File Strings/,/^$/ {
8957     /^0/ {
8958     s/^0 *\(.*\)$/\1/
8959     p
8960     }
8961     }'
8962     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963     # Check for a 64-bit object if we didn't find anything.
8964     if test -z "$aix_libpath"; then
8965     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966     fi
8967     fi
8968 michael 967 rm -f core conftest.err conftest.$ac_objext \
8969     conftest$ac_exeext conftest.$ac_ext
8970 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8971    
8972     hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8973     # Warning - without using the other run time loading flags,
8974     # -berok will link without error, but may produce a broken library.
8975     no_undefined_flag=' ${wl}-bernotok'
8976     allow_undefined_flag=' ${wl}-berok'
8977     # Exported symbols can be pulled into shared objects from archives
8978     whole_archive_flag_spec='$convenience'
8979     archive_cmds_need_lc=yes
8980     # This is similar to how AIX traditionally builds its shared libraries.
8981     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'
8982     fi
8983     fi
8984     ;;
8985    
8986     amigaos*)
8987 michael 945 case $host_cpu in
8988     powerpc)
8989     # see comment about AmigaOS4 .so support
8990     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991     archive_expsym_cmds=''
8992     ;;
8993     m68k)
8994     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)'
8995     hardcode_libdir_flag_spec='-L$libdir'
8996     hardcode_minus_L=yes
8997     ;;
8998     esac
8999 michael 912 ;;
9000    
9001     bsdi[45]*)
9002     export_dynamic_flag_spec=-rdynamic
9003     ;;
9004    
9005 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9006 michael 912 # When not using gcc, we currently assume that we are using
9007     # Microsoft Visual C++.
9008     # hardcode_libdir_flag_spec is actually meaningless, as there is
9009     # no search path for DLLs.
9010     hardcode_libdir_flag_spec=' '
9011     allow_undefined_flag=unsupported
9012     # Tell ltmain to make .lib files, not .a files.
9013     libext=lib
9014     # Tell ltmain to make .dll files, not .so files.
9015     shrext_cmds=".dll"
9016     # FIXME: Setting linknames here is a bad hack.
9017 michael 945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9018 michael 912 # The linker will automatically build a .lib file if we build a DLL.
9019 michael 945 old_archive_from_new_cmds='true'
9020 michael 912 # FIXME: Should let the user specify the lib program.
9021     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9022     fix_srcfile_path='`cygpath -w "$srcfile"`'
9023     enable_shared_with_static_runtimes=yes
9024     ;;
9025    
9026     darwin* | rhapsody*)
9027 michael 945
9028    
9029     archive_cmds_need_lc=no
9030     hardcode_direct=no
9031     hardcode_automatic=yes
9032     hardcode_shlibpath_var=unsupported
9033     whole_archive_flag_spec=''
9034     link_all_deplibs=yes
9035     allow_undefined_flag="$_lt_dar_allow_undefined"
9036     case $cc_basename in
9037     ifort*) _lt_dar_can_shared=yes ;;
9038     *) _lt_dar_can_shared=$GCC ;;
9039     esac
9040     if test "$_lt_dar_can_shared" = "yes"; then
9041     output_verbose_link_cmd=echo
9042     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9043     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9044     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}"
9045     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}"
9046    
9047     else
9048     ld_shlibs=no
9049     fi
9050    
9051 michael 912 ;;
9052    
9053     dgux*)
9054     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9055     hardcode_libdir_flag_spec='-L$libdir'
9056     hardcode_shlibpath_var=no
9057     ;;
9058    
9059     freebsd1*)
9060     ld_shlibs=no
9061     ;;
9062    
9063     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9064     # support. Future versions do this automatically, but an explicit c++rt0.o
9065     # does not break anything, and helps significantly (at the cost of a little
9066     # extra space).
9067     freebsd2.2*)
9068     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9069     hardcode_libdir_flag_spec='-R$libdir'
9070     hardcode_direct=yes
9071     hardcode_shlibpath_var=no
9072     ;;
9073    
9074     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9075     freebsd2*)
9076     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9077     hardcode_direct=yes
9078     hardcode_minus_L=yes
9079     hardcode_shlibpath_var=no
9080     ;;
9081    
9082     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9083     freebsd* | dragonfly*)
9084     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9085     hardcode_libdir_flag_spec='-R$libdir'
9086     hardcode_direct=yes
9087     hardcode_shlibpath_var=no
9088     ;;
9089    
9090     hpux9*)
9091     if test "$GCC" = yes; then
9092 michael 945 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'
9093 michael 912 else
9094 michael 945 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'
9095 michael 912 fi
9096     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9097     hardcode_libdir_separator=:
9098     hardcode_direct=yes
9099    
9100     # hardcode_minus_L: Not really in the search PATH,
9101     # but as the default location of the library.
9102     hardcode_minus_L=yes
9103     export_dynamic_flag_spec='${wl}-E'
9104     ;;
9105    
9106     hpux10*)
9107     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9108     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9109     else
9110     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9111     fi
9112     if test "$with_gnu_ld" = no; then
9113     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9114 michael 945 hardcode_libdir_flag_spec_ld='+b $libdir'
9115 michael 912 hardcode_libdir_separator=:
9116     hardcode_direct=yes
9117 michael 945 hardcode_direct_absolute=yes
9118 michael 912 export_dynamic_flag_spec='${wl}-E'
9119     # hardcode_minus_L: Not really in the search PATH,
9120     # but as the default location of the library.
9121     hardcode_minus_L=yes
9122     fi
9123     ;;
9124    
9125     hpux11*)
9126     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9127     case $host_cpu in
9128     hppa*64*)
9129     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130     ;;
9131     ia64*)
9132 michael 945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133 michael 912 ;;
9134     *)
9135     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136     ;;
9137     esac
9138     else
9139     case $host_cpu in
9140     hppa*64*)
9141     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9142     ;;
9143     ia64*)
9144     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9145     ;;
9146     *)
9147     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9148     ;;
9149     esac
9150     fi
9151     if test "$with_gnu_ld" = no; then
9152     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9153     hardcode_libdir_separator=:
9154    
9155     case $host_cpu in
9156     hppa*64*|ia64*)
9157     hardcode_direct=no
9158     hardcode_shlibpath_var=no
9159     ;;
9160     *)
9161     hardcode_direct=yes
9162 michael 945 hardcode_direct_absolute=yes
9163 michael 912 export_dynamic_flag_spec='${wl}-E'
9164    
9165     # hardcode_minus_L: Not really in the search PATH,
9166     # but as the default location of the library.
9167     hardcode_minus_L=yes
9168     ;;
9169     esac
9170     fi
9171     ;;
9172    
9173     irix5* | irix6* | nonstopux*)
9174     if test "$GCC" = yes; then
9175 michael 945 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'
9176     # Try to use the -exported_symbol ld option, if it does not
9177     # work, assume that -exports_file does not work either and
9178     # implicitly export all symbols.
9179     save_LDFLAGS="$LDFLAGS"
9180     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9181 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182     /* end confdefs.h. */
9183 michael 945 int foo(void) {}
9184     _ACEOF
9185 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9186 michael 945 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'
9187    
9188     fi
9189 michael 967 rm -f core conftest.err conftest.$ac_objext \
9190     conftest$ac_exeext conftest.$ac_ext
9191 michael 945 LDFLAGS="$save_LDFLAGS"
9192 michael 912 else
9193 michael 945 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'
9194     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'
9195 michael 912 fi
9196 michael 945 archive_cmds_need_lc='no'
9197 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9198     hardcode_libdir_separator=:
9199 michael 945 inherit_rpath=yes
9200 michael 912 link_all_deplibs=yes
9201     ;;
9202    
9203     netbsd*)
9204 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9205 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9206     else
9207     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9208     fi
9209     hardcode_libdir_flag_spec='-R$libdir'
9210     hardcode_direct=yes
9211     hardcode_shlibpath_var=no
9212     ;;
9213    
9214     newsos6)
9215     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9216     hardcode_direct=yes
9217     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9218     hardcode_libdir_separator=:
9219     hardcode_shlibpath_var=no
9220     ;;
9221    
9222 michael 945 *nto* | *qnx*)
9223     ;;
9224    
9225 michael 912 openbsd*)
9226     if test -f /usr/libexec/ld.so; then
9227     hardcode_direct=yes
9228     hardcode_shlibpath_var=no
9229 michael 945 hardcode_direct_absolute=yes
9230     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9231 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9232     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9233     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9234     export_dynamic_flag_spec='${wl}-E'
9235     else
9236     case $host_os in
9237     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9238     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239     hardcode_libdir_flag_spec='-R$libdir'
9240     ;;
9241     *)
9242     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244     ;;
9245     esac
9246 michael 945 fi
9247 michael 912 else
9248     ld_shlibs=no
9249     fi
9250     ;;
9251    
9252     os2*)
9253     hardcode_libdir_flag_spec='-L$libdir'
9254     hardcode_minus_L=yes
9255     allow_undefined_flag=unsupported
9256 michael 945 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'
9257     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9258 michael 912 ;;
9259    
9260     osf3*)
9261     if test "$GCC" = yes; then
9262     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9263 michael 945 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'
9264 michael 912 else
9265     allow_undefined_flag=' -expect_unresolved \*'
9266 michael 945 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'
9267 michael 912 fi
9268 michael 945 archive_cmds_need_lc='no'
9269 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270     hardcode_libdir_separator=:
9271     ;;
9272    
9273     osf4* | osf5*) # as osf3* with the addition of -msym flag
9274     if test "$GCC" = yes; then
9275     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 michael 945 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'
9277 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9278     else
9279     allow_undefined_flag=' -expect_unresolved \*'
9280 michael 945 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'
9281     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~
9282     $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'
9283 michael 912
9284     # Both c and cxx compiler support -rpath directly
9285     hardcode_libdir_flag_spec='-rpath $libdir'
9286     fi
9287 michael 945 archive_cmds_need_lc='no'
9288 michael 912 hardcode_libdir_separator=:
9289     ;;
9290    
9291     solaris*)
9292 michael 945 no_undefined_flag=' -z defs'
9293 michael 912 if test "$GCC" = yes; then
9294     wlarc='${wl}'
9295 michael 945 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297     $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9298 michael 912 else
9299 michael 945 case `$CC -V 2>&1` in
9300     *"Compilers 5.0"*)
9301     wlarc=''
9302     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9304     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9305     ;;
9306     *)
9307     wlarc='${wl}'
9308     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9311     ;;
9312     esac
9313 michael 912 fi
9314     hardcode_libdir_flag_spec='-R$libdir'
9315     hardcode_shlibpath_var=no
9316     case $host_os in
9317     solaris2.[0-5] | solaris2.[0-5].*) ;;
9318     *)
9319     # The compiler driver will combine and reorder linker options,
9320     # but understands `-z linker_flag'. GCC discards it without `$wl',
9321     # but is careful enough not to reorder.
9322 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
9323 michael 912 if test "$GCC" = yes; then
9324     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9325     else
9326     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9327     fi
9328     ;;
9329     esac
9330     link_all_deplibs=yes
9331     ;;
9332    
9333     sunos4*)
9334     if test "x$host_vendor" = xsequent; then
9335     # Use $CC to link under sequent, because it throws in some extra .o
9336     # files that make .init and .fini sections work.
9337     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9338     else
9339     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9340     fi
9341     hardcode_libdir_flag_spec='-L$libdir'
9342     hardcode_direct=yes
9343     hardcode_minus_L=yes
9344     hardcode_shlibpath_var=no
9345     ;;
9346    
9347     sysv4)
9348     case $host_vendor in
9349     sni)
9350     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9351     hardcode_direct=yes # is this really true???
9352     ;;
9353     siemens)
9354     ## LD is ld it makes a PLAMLIB
9355     ## CC just makes a GrossModule.
9356     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9357     reload_cmds='$CC -r -o $output$reload_objs'
9358     hardcode_direct=no
9359     ;;
9360     motorola)
9361     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9363     ;;
9364     esac
9365     runpath_var='LD_RUN_PATH'
9366     hardcode_shlibpath_var=no
9367     ;;
9368    
9369     sysv4.3*)
9370     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371     hardcode_shlibpath_var=no
9372     export_dynamic_flag_spec='-Bexport'
9373     ;;
9374    
9375     sysv4*MP*)
9376     if test -d /usr/nec; then
9377     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378     hardcode_shlibpath_var=no
9379     runpath_var=LD_RUN_PATH
9380     hardcode_runpath_var=yes
9381     ld_shlibs=yes
9382     fi
9383     ;;
9384    
9385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9386     no_undefined_flag='${wl}-z,text'
9387     archive_cmds_need_lc=no
9388     hardcode_shlibpath_var=no
9389     runpath_var='LD_RUN_PATH'
9390    
9391     if test "$GCC" = yes; then
9392     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394     else
9395     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9397     fi
9398     ;;
9399    
9400     sysv5* | sco3.2v5* | sco5v6*)
9401     # Note: We can NOT use -z defs as we might desire, because we do not
9402     # link with -lc, and that would cause any symbols used from libc to
9403     # always be unresolved, which means just about no library would
9404     # ever link correctly. If we're not using GNU ld we use -z text
9405     # though, which does catch some bad symbols but isn't as heavy-handed
9406     # as -z defs.
9407     no_undefined_flag='${wl}-z,text'
9408     allow_undefined_flag='${wl}-z,nodefs'
9409     archive_cmds_need_lc=no
9410     hardcode_shlibpath_var=no
9411 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9412 michael 912 hardcode_libdir_separator=':'
9413     link_all_deplibs=yes
9414     export_dynamic_flag_spec='${wl}-Bexport'
9415     runpath_var='LD_RUN_PATH'
9416    
9417     if test "$GCC" = yes; then
9418 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 michael 912 else
9421 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 michael 912 fi
9424     ;;
9425    
9426     uts4*)
9427     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428     hardcode_libdir_flag_spec='-L$libdir'
9429     hardcode_shlibpath_var=no
9430     ;;
9431    
9432     *)
9433     ld_shlibs=no
9434     ;;
9435     esac
9436 michael 945
9437     if test x$host_vendor = xsni; then
9438     case $host in
9439     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9440     export_dynamic_flag_spec='${wl}-Blargedynsym'
9441     ;;
9442     esac
9443     fi
9444 michael 912 fi
9445    
9446 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9447 db 941 $as_echo "$ld_shlibs" >&6; }
9448 michael 912 test "$ld_shlibs" = no && can_build_shared=no
9449    
9450 michael 945 with_gnu_ld=$with_gnu_ld
9451    
9452    
9453    
9454    
9455    
9456    
9457    
9458    
9459    
9460    
9461    
9462    
9463    
9464    
9465    
9466 michael 912 #
9467     # Do we need to explicitly link libc?
9468     #
9469     case "x$archive_cmds_need_lc" in
9470     x|xyes)
9471     # Assume -lc should be added
9472     archive_cmds_need_lc=yes
9473    
9474     if test "$enable_shared" = yes && test "$GCC" = yes; then
9475     case $archive_cmds in
9476     *'~'*)
9477     # FIXME: we may have to deal with multi-command sequences.
9478     ;;
9479     '$CC '*)
9480     # Test whether the compiler implicitly links with -lc since on some
9481     # systems, -lgcc has to come before -lc. If gcc already passes -lc
9482     # to ld, don't add -lc before -lgcc.
9483 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9484 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9485 michael 945 $RM conftest*
9486 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9487    
9488 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9489 michael 912 (eval $ac_compile) 2>&5
9490     ac_status=$?
9491 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9492     test $ac_status = 0; } 2>conftest.err; then
9493 michael 912 soname=conftest
9494     lib=conftest
9495     libobjs=conftest.$ac_objext
9496     deplibs=
9497     wl=$lt_prog_compiler_wl
9498     pic_flag=$lt_prog_compiler_pic
9499     compiler_flags=-v
9500     linker_flags=-v
9501     verstring=
9502     output_objdir=.
9503     libname=conftest
9504     lt_save_allow_undefined_flag=$allow_undefined_flag
9505     allow_undefined_flag=
9506 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9507 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9508 michael 912 ac_status=$?
9509 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9510     test $ac_status = 0; }
9511 michael 912 then
9512     archive_cmds_need_lc=no
9513     else
9514     archive_cmds_need_lc=yes
9515     fi
9516     allow_undefined_flag=$lt_save_allow_undefined_flag
9517     else
9518     cat conftest.err 1>&5
9519     fi
9520 michael 945 $RM conftest*
9521 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9522 db 941 $as_echo "$archive_cmds_need_lc" >&6; }
9523 michael 912 ;;
9524     esac
9525     fi
9526     ;;
9527     esac
9528    
9529 michael 945
9530    
9531    
9532    
9533    
9534    
9535    
9536    
9537    
9538    
9539    
9540    
9541    
9542    
9543    
9544    
9545    
9546    
9547    
9548    
9549    
9550    
9551    
9552    
9553    
9554    
9555    
9556    
9557    
9558    
9559    
9560    
9561    
9562    
9563    
9564    
9565    
9566    
9567    
9568    
9569    
9570    
9571    
9572    
9573    
9574    
9575    
9576    
9577    
9578    
9579    
9580    
9581    
9582    
9583    
9584    
9585    
9586    
9587    
9588    
9589    
9590    
9591    
9592    
9593    
9594    
9595    
9596    
9597    
9598    
9599    
9600    
9601    
9602    
9603    
9604    
9605    
9606    
9607    
9608    
9609    
9610    
9611    
9612    
9613    
9614    
9615    
9616    
9617    
9618    
9619    
9620    
9621    
9622    
9623    
9624    
9625    
9626    
9627    
9628    
9629    
9630    
9631    
9632    
9633    
9634    
9635    
9636    
9637    
9638    
9639    
9640    
9641    
9642    
9643    
9644    
9645    
9646    
9647    
9648    
9649    
9650    
9651    
9652    
9653    
9654    
9655    
9656    
9657    
9658    
9659    
9660    
9661    
9662    
9663    
9664    
9665    
9666    
9667    
9668    
9669    
9670    
9671    
9672    
9673    
9674    
9675    
9676    
9677    
9678    
9679    
9680    
9681    
9682    
9683    
9684    
9685 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9686 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9687 michael 912
9688     if test "$GCC" = yes; then
9689     case $host_os in
9690     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9691     *) lt_awk_arg="/^libraries:/" ;;
9692     esac
9693     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9694 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9695 michael 912 # if the path contains ";" then we assume it to be the separator
9696     # otherwise default to the standard path separator (i.e. ":") - it is
9697     # assumed that no part of a normal pathname contains ";" but that should
9698     # okay in the real world where ";" in dirpaths is itself problematic.
9699 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9700 michael 912 else
9701 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9702 michael 912 fi
9703     # Ok, now we have the path, separated by spaces, we can step through it
9704     # and add multilib dir if necessary.
9705     lt_tmp_lt_search_path_spec=
9706     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9707     for lt_sys_path in $lt_search_path_spec; do
9708     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9709     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9710     else
9711     test -d "$lt_sys_path" && \
9712     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9713     fi
9714     done
9715 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9716 michael 912 BEGIN {RS=" "; FS="/|\n";} {
9717     lt_foo="";
9718     lt_count=0;
9719     for (lt_i = NF; lt_i > 0; lt_i--) {
9720     if ($lt_i != "" && $lt_i != ".") {
9721     if ($lt_i == "..") {
9722     lt_count++;
9723     } else {
9724     if (lt_count == 0) {
9725     lt_foo="/" $lt_i lt_foo;
9726     } else {
9727     lt_count--;
9728     }
9729     }
9730     }
9731     }
9732     if (lt_foo != "") { lt_freq[lt_foo]++; }
9733     if (lt_freq[lt_foo] == 1) { print lt_foo; }
9734     }'`
9735 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9736 michael 912 else
9737     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9738     fi
9739 michael 945 library_names_spec=
9740     libname_spec='lib$name'
9741     soname_spec=
9742     shrext_cmds=".so"
9743     postinstall_cmds=
9744     postuninstall_cmds=
9745     finish_cmds=
9746     finish_eval=
9747     shlibpath_var=
9748     shlibpath_overrides_runpath=unknown
9749     version_type=none
9750     dynamic_linker="$host_os ld.so"
9751     sys_lib_dlsearch_path_spec="/lib /usr/lib"
9752 michael 912 need_lib_prefix=unknown
9753     hardcode_into_libs=no
9754    
9755     # when you set need_version to no, make sure it does not cause -set_version
9756     # flags to be left without arguments
9757     need_version=unknown
9758    
9759     case $host_os in
9760     aix3*)
9761     version_type=linux
9762     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9763     shlibpath_var=LIBPATH
9764    
9765     # AIX 3 has no versioning support, so we append a major version to the name.
9766     soname_spec='${libname}${release}${shared_ext}$major'
9767     ;;
9768    
9769 db 941 aix[4-9]*)
9770 michael 912 version_type=linux
9771     need_lib_prefix=no
9772     need_version=no
9773     hardcode_into_libs=yes
9774     if test "$host_cpu" = ia64; then
9775     # AIX 5 supports IA64
9776     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9777     shlibpath_var=LD_LIBRARY_PATH
9778     else
9779     # With GCC up to 2.95.x, collect2 would create an import file
9780     # for dependence libraries. The import file would start with
9781     # the line `#! .'. This would cause the generated library to
9782     # depend on `.', always an invalid library. This was fixed in
9783     # development snapshots of GCC prior to 3.0.
9784     case $host_os in
9785     aix4 | aix4.[01] | aix4.[01].*)
9786     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9787     echo ' yes '
9788 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9789 michael 912 :
9790     else
9791     can_build_shared=no
9792     fi
9793     ;;
9794     esac
9795     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9796     # soname into executable. Probably we can add versioning support to
9797     # collect2, so additional links can be useful in future.
9798     if test "$aix_use_runtimelinking" = yes; then
9799     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9800     # instead of lib<name>.a to let people know that these are not
9801     # typical AIX shared libraries.
9802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803     else
9804     # We preserve .a as extension for shared libraries through AIX4.2
9805     # and later when we are not doing run time linking.
9806     library_names_spec='${libname}${release}.a $libname.a'
9807     soname_spec='${libname}${release}${shared_ext}$major'
9808     fi
9809     shlibpath_var=LIBPATH
9810     fi
9811     ;;
9812    
9813     amigaos*)
9814 michael 945 case $host_cpu in
9815     powerpc)
9816     # Since July 2007 AmigaOS4 officially supports .so libraries.
9817     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819     ;;
9820     m68k)
9821     library_names_spec='$libname.ixlibrary $libname.a'
9822     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9823     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'
9824     ;;
9825     esac
9826 michael 912 ;;
9827    
9828     beos*)
9829     library_names_spec='${libname}${shared_ext}'
9830     dynamic_linker="$host_os ld.so"
9831     shlibpath_var=LIBRARY_PATH
9832     ;;
9833    
9834     bsdi[45]*)
9835     version_type=linux
9836     need_version=no
9837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838     soname_spec='${libname}${release}${shared_ext}$major'
9839     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9840     shlibpath_var=LD_LIBRARY_PATH
9841     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9842     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9843     # the default ld.so.conf also contains /usr/contrib/lib and
9844     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9845     # libtool to hard-code these into programs
9846     ;;
9847    
9848 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9849 michael 912 version_type=windows
9850     shrext_cmds=".dll"
9851     need_version=no
9852     need_lib_prefix=no
9853    
9854     case $GCC,$host_os in
9855 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9856 michael 912 library_names_spec='$libname.dll.a'
9857     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9858     postinstall_cmds='base_file=`basename \${file}`~
9859 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9860 michael 912 dldir=$destdir/`dirname \$dlpath`~
9861     test -d \$dldir || mkdir -p \$dldir~
9862     $install_prog $dir/$dlname \$dldir/$dlname~
9863 michael 945 chmod a+x \$dldir/$dlname~
9864     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9865     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9866     fi'
9867 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9868     dlpath=$dir/\$dldll~
9869 michael 945 $RM \$dlpath'
9870 michael 912 shlibpath_overrides_runpath=yes
9871    
9872     case $host_os in
9873     cygwin*)
9874     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9875     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9877     ;;
9878 michael 945 mingw* | cegcc*)
9879 michael 912 # MinGW DLLs use traditional 'lib' prefix
9880     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9882     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9883 michael 912 # It is most probably a Windows format PATH printed by
9884     # mingw gcc, but we are running on Cygwin. Gcc prints its search
9885     # path with ; separators, and with drive letters. We can handle the
9886     # drive letters (cygwin fileutils understands them), so leave them,
9887     # especially as we might pass files found there to a mingw objdump,
9888     # which wouldn't understand a cygwinified path. Ahh.
9889 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9890 michael 912 else
9891 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9892 michael 912 fi
9893     ;;
9894     pw32*)
9895     # pw32 DLLs use 'pw' prefix rather than 'lib'
9896     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9897     ;;
9898     esac
9899     ;;
9900    
9901     *)
9902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9903     ;;
9904     esac
9905     dynamic_linker='Win32 ld.exe'
9906     # FIXME: first we should search . and the directory the executable is in
9907     shlibpath_var=PATH
9908     ;;
9909    
9910     darwin* | rhapsody*)
9911     dynamic_linker="$host_os dyld"
9912     version_type=darwin
9913     need_lib_prefix=no
9914     need_version=no
9915 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9916 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
9917     shlibpath_overrides_runpath=yes
9918     shlibpath_var=DYLD_LIBRARY_PATH
9919     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9920    
9921     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9922     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9923     ;;
9924    
9925     dgux*)
9926     version_type=linux
9927     need_lib_prefix=no
9928     need_version=no
9929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9930     soname_spec='${libname}${release}${shared_ext}$major'
9931     shlibpath_var=LD_LIBRARY_PATH
9932     ;;
9933    
9934     freebsd1*)
9935     dynamic_linker=no
9936     ;;
9937    
9938     freebsd* | dragonfly*)
9939     # DragonFly does not have aout. When/if they implement a new
9940     # versioning mechanism, adjust this.
9941     if test -x /usr/bin/objformat; then
9942     objformat=`/usr/bin/objformat`
9943     else
9944     case $host_os in
9945     freebsd[123]*) objformat=aout ;;
9946     *) objformat=elf ;;
9947     esac
9948     fi
9949     version_type=freebsd-$objformat
9950     case $version_type in
9951     freebsd-elf*)
9952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9953     need_version=no
9954     need_lib_prefix=no
9955     ;;
9956     freebsd-*)
9957     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9958     need_version=yes
9959     ;;
9960     esac
9961     shlibpath_var=LD_LIBRARY_PATH
9962     case $host_os in
9963     freebsd2*)
9964     shlibpath_overrides_runpath=yes
9965     ;;
9966     freebsd3.[01]* | freebsdelf3.[01]*)
9967     shlibpath_overrides_runpath=yes
9968     hardcode_into_libs=yes
9969     ;;
9970     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9971     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9972     shlibpath_overrides_runpath=no
9973     hardcode_into_libs=yes
9974     ;;
9975     *) # from 4.6 on, and DragonFly
9976     shlibpath_overrides_runpath=yes
9977     hardcode_into_libs=yes
9978     ;;
9979     esac
9980     ;;
9981    
9982     gnu*)
9983     version_type=linux
9984     need_lib_prefix=no
9985     need_version=no
9986     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9987     soname_spec='${libname}${release}${shared_ext}$major'
9988     shlibpath_var=LD_LIBRARY_PATH
9989     hardcode_into_libs=yes
9990     ;;
9991    
9992     hpux9* | hpux10* | hpux11*)
9993     # Give a soname corresponding to the major version so that dld.sl refuses to
9994     # link against other versions.
9995     version_type=sunos
9996     need_lib_prefix=no
9997     need_version=no
9998     case $host_cpu in
9999     ia64*)
10000     shrext_cmds='.so'
10001     hardcode_into_libs=yes
10002     dynamic_linker="$host_os dld.so"
10003     shlibpath_var=LD_LIBRARY_PATH
10004     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006     soname_spec='${libname}${release}${shared_ext}$major'
10007     if test "X$HPUX_IA64_MODE" = X32; then
10008     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10009     else
10010     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10011     fi
10012     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10013     ;;
10014 michael 945 hppa*64*)
10015 michael 912 shrext_cmds='.sl'
10016 michael 945 hardcode_into_libs=yes
10017 michael 912 dynamic_linker="$host_os dld.sl"
10018 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10019     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021     soname_spec='${libname}${release}${shared_ext}$major'
10022     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10023     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10024     ;;
10025     *)
10026     shrext_cmds='.sl'
10027     dynamic_linker="$host_os dld.sl"
10028 michael 912 shlibpath_var=SHLIB_PATH
10029     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10030     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031     soname_spec='${libname}${release}${shared_ext}$major'
10032     ;;
10033     esac
10034     # HP-UX runs *really* slowly unless shared libraries are mode 555.
10035     postinstall_cmds='chmod 555 $lib'
10036     ;;
10037    
10038     interix[3-9]*)
10039     version_type=linux
10040     need_lib_prefix=no
10041     need_version=no
10042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10043     soname_spec='${libname}${release}${shared_ext}$major'
10044     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10045     shlibpath_var=LD_LIBRARY_PATH
10046     shlibpath_overrides_runpath=no
10047     hardcode_into_libs=yes
10048     ;;
10049    
10050     irix5* | irix6* | nonstopux*)
10051     case $host_os in
10052     nonstopux*) version_type=nonstopux ;;
10053     *)
10054     if test "$lt_cv_prog_gnu_ld" = yes; then
10055     version_type=linux
10056     else
10057     version_type=irix
10058     fi ;;
10059     esac
10060     need_lib_prefix=no
10061     need_version=no
10062     soname_spec='${libname}${release}${shared_ext}$major'
10063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10064     case $host_os in
10065     irix5* | nonstopux*)
10066     libsuff= shlibsuff=
10067     ;;
10068     *)
10069     case $LD in # libtool.m4 will add one of these switches to LD
10070     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10071     libsuff= shlibsuff= libmagic=32-bit;;
10072     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10073     libsuff=32 shlibsuff=N32 libmagic=N32;;
10074     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10075     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10076     *) libsuff= shlibsuff= libmagic=never-match;;
10077     esac
10078     ;;
10079     esac
10080     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10081     shlibpath_overrides_runpath=no
10082     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10083     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10084     hardcode_into_libs=yes
10085     ;;
10086    
10087     # No shared lib support for Linux oldld, aout, or coff.
10088     linux*oldld* | linux*aout* | linux*coff*)
10089     dynamic_linker=no
10090     ;;
10091    
10092     # This must be Linux ELF.
10093     linux* | k*bsd*-gnu)
10094     version_type=linux
10095     need_lib_prefix=no
10096     need_version=no
10097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098     soname_spec='${libname}${release}${shared_ext}$major'
10099     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10100     shlibpath_var=LD_LIBRARY_PATH
10101     shlibpath_overrides_runpath=no
10102 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10103     save_LDFLAGS=$LDFLAGS
10104     save_libdir=$libdir
10105     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10106     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10107 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 michael 945 /* end confdefs.h. */
10109    
10110     int
10111     main ()
10112     {
10113    
10114     ;
10115     return 0;
10116     }
10117     _ACEOF
10118 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10119     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10120 michael 945 shlibpath_overrides_runpath=yes
10121     fi
10122     fi
10123 michael 967 rm -f core conftest.err conftest.$ac_objext \
10124     conftest$ac_exeext conftest.$ac_ext
10125 michael 945 LDFLAGS=$save_LDFLAGS
10126     libdir=$save_libdir
10127    
10128 michael 912 # This implies no fast_install, which is unacceptable.
10129     # Some rework will be needed to allow for fast_install
10130     # before this can be enabled.
10131     hardcode_into_libs=yes
10132    
10133     # Append ld.so.conf contents to the search path
10134     if test -f /etc/ld.so.conf; then
10135 michael 945 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' ' '`
10136 michael 1084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10137 michael 912 fi
10138    
10139     # We used to test for /lib/ld.so.1 and disable shared libraries on
10140     # powerpc, because MkLinux only supported shared libraries with the
10141     # GNU dynamic linker. Since this was broken with cross compilers,
10142     # most powerpc-linux boxes support dynamic linking these days and
10143     # people can always --disable-shared, the test was removed, and we
10144     # assume the GNU/Linux dynamic linker is in use.
10145     dynamic_linker='GNU/Linux ld.so'
10146     ;;
10147    
10148     netbsd*)
10149     version_type=sunos
10150     need_lib_prefix=no
10151     need_version=no
10152 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10153 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10155     dynamic_linker='NetBSD (a.out) ld.so'
10156     else
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     dynamic_linker='NetBSD ld.elf_so'
10160     fi
10161     shlibpath_var=LD_LIBRARY_PATH
10162     shlibpath_overrides_runpath=yes
10163     hardcode_into_libs=yes
10164     ;;
10165    
10166     newsos6)
10167     version_type=linux
10168     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169     shlibpath_var=LD_LIBRARY_PATH
10170     shlibpath_overrides_runpath=yes
10171     ;;
10172    
10173 michael 945 *nto* | *qnx*)
10174     version_type=qnx
10175 michael 912 need_lib_prefix=no
10176     need_version=no
10177     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178     soname_spec='${libname}${release}${shared_ext}$major'
10179     shlibpath_var=LD_LIBRARY_PATH
10180 michael 945 shlibpath_overrides_runpath=no
10181     hardcode_into_libs=yes
10182     dynamic_linker='ldqnx.so'
10183 michael 912 ;;
10184    
10185     openbsd*)
10186     version_type=sunos
10187     sys_lib_dlsearch_path_spec="/usr/lib"
10188     need_lib_prefix=no
10189     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10190     case $host_os in
10191 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10192     *) need_version=no ;;
10193 michael 912 esac
10194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10195     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10196     shlibpath_var=LD_LIBRARY_PATH
10197 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10198 michael 912 case $host_os in
10199     openbsd2.[89] | openbsd2.[89].*)
10200     shlibpath_overrides_runpath=no
10201     ;;
10202     *)
10203     shlibpath_overrides_runpath=yes
10204     ;;
10205     esac
10206     else
10207     shlibpath_overrides_runpath=yes
10208     fi
10209     ;;
10210    
10211     os2*)
10212     libname_spec='$name'
10213     shrext_cmds=".dll"
10214     need_lib_prefix=no
10215     library_names_spec='$libname${shared_ext} $libname.a'
10216     dynamic_linker='OS/2 ld.exe'
10217     shlibpath_var=LIBPATH
10218     ;;
10219    
10220     osf3* | osf4* | osf5*)
10221     version_type=osf
10222     need_lib_prefix=no
10223     need_version=no
10224     soname_spec='${libname}${release}${shared_ext}$major'
10225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226     shlibpath_var=LD_LIBRARY_PATH
10227     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10228     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10229     ;;
10230    
10231     rdos*)
10232     dynamic_linker=no
10233     ;;
10234    
10235     solaris*)
10236     version_type=linux
10237     need_lib_prefix=no
10238     need_version=no
10239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240     soname_spec='${libname}${release}${shared_ext}$major'
10241     shlibpath_var=LD_LIBRARY_PATH
10242     shlibpath_overrides_runpath=yes
10243     hardcode_into_libs=yes
10244     # ldd complains unless libraries are executable
10245     postinstall_cmds='chmod +x $lib'
10246     ;;
10247    
10248     sunos4*)
10249     version_type=sunos
10250     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10252     shlibpath_var=LD_LIBRARY_PATH
10253     shlibpath_overrides_runpath=yes
10254     if test "$with_gnu_ld" = yes; then
10255     need_lib_prefix=no
10256     fi
10257     need_version=yes
10258     ;;
10259    
10260     sysv4 | sysv4.3*)
10261     version_type=linux
10262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263     soname_spec='${libname}${release}${shared_ext}$major'
10264     shlibpath_var=LD_LIBRARY_PATH
10265     case $host_vendor in
10266     sni)
10267     shlibpath_overrides_runpath=no
10268     need_lib_prefix=no
10269     runpath_var=LD_RUN_PATH
10270     ;;
10271     siemens)
10272     need_lib_prefix=no
10273     ;;
10274     motorola)
10275     need_lib_prefix=no
10276     need_version=no
10277     shlibpath_overrides_runpath=no
10278     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10279     ;;
10280     esac
10281     ;;
10282    
10283     sysv4*MP*)
10284     if test -d /usr/nec ;then
10285     version_type=linux
10286     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10287     soname_spec='$libname${shared_ext}.$major'
10288     shlibpath_var=LD_LIBRARY_PATH
10289     fi
10290     ;;
10291    
10292     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293     version_type=freebsd-elf
10294     need_lib_prefix=no
10295     need_version=no
10296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10297     soname_spec='${libname}${release}${shared_ext}$major'
10298     shlibpath_var=LD_LIBRARY_PATH
10299 michael 945 shlibpath_overrides_runpath=yes
10300 michael 912 hardcode_into_libs=yes
10301     if test "$with_gnu_ld" = yes; then
10302     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10303     else
10304     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10305     case $host_os in
10306     sco3.2v5*)
10307     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10308     ;;
10309     esac
10310     fi
10311     sys_lib_dlsearch_path_spec='/usr/lib'
10312     ;;
10313    
10314 michael 945 tpf*)
10315     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10316     version_type=linux
10317     need_lib_prefix=no
10318     need_version=no
10319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320     shlibpath_var=LD_LIBRARY_PATH
10321     shlibpath_overrides_runpath=no
10322     hardcode_into_libs=yes
10323     ;;
10324    
10325 michael 912 uts4*)
10326     version_type=linux
10327     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328     soname_spec='${libname}${release}${shared_ext}$major'
10329     shlibpath_var=LD_LIBRARY_PATH
10330     ;;
10331    
10332     *)
10333     dynamic_linker=no
10334     ;;
10335     esac
10336 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10337 db 941 $as_echo "$dynamic_linker" >&6; }
10338 michael 912 test "$dynamic_linker" = no && can_build_shared=no
10339    
10340 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10341     if test "$GCC" = yes; then
10342     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10343     fi
10344    
10345 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10346 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10347 db 941 fi
10348     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10349 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10350 db 941 fi
10351    
10352    
10353 michael 912
10354 michael 945
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10439 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10440 michael 912 hardcode_action=
10441 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
10442     test -n "$runpath_var" ||
10443 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
10444    
10445 michael 945 # We can hardcode non-existent directories.
10446 michael 912 if test "$hardcode_direct" != no &&
10447     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10448     # have to relink, otherwise we might link with an installed library
10449     # when we should be linking with a yet-to-be-installed one
10450 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10451 michael 912 test "$hardcode_minus_L" != no; then
10452     # Linking always hardcodes the temporary library directory.
10453     hardcode_action=relink
10454     else
10455     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10456     hardcode_action=immediate
10457     fi
10458     else
10459     # We cannot hardcode anything, or else we can only hardcode existing
10460     # directories.
10461     hardcode_action=unsupported
10462     fi
10463 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10464 db 941 $as_echo "$hardcode_action" >&6; }
10465 michael 912
10466 michael 945 if test "$hardcode_action" = relink ||
10467     test "$inherit_rpath" = yes; then
10468 michael 912 # Fast installation is not supported
10469     enable_fast_install=no
10470     elif test "$shlibpath_overrides_runpath" = yes ||
10471     test "$enable_shared" = no; then
10472     # Fast installation is not necessary
10473     enable_fast_install=needless
10474     fi
10475    
10476    
10477 michael 945
10478    
10479    
10480    
10481     if test "x$enable_dlopen" != xyes; then
10482 michael 912 enable_dlopen=unknown
10483     enable_dlopen_self=unknown
10484     enable_dlopen_self_static=unknown
10485     else
10486     lt_cv_dlopen=no
10487     lt_cv_dlopen_libs=
10488    
10489     case $host_os in
10490     beos*)
10491     lt_cv_dlopen="load_add_on"
10492     lt_cv_dlopen_libs=
10493     lt_cv_dlopen_self=yes
10494     ;;
10495    
10496 michael 945 mingw* | pw32* | cegcc*)
10497 michael 912 lt_cv_dlopen="LoadLibrary"
10498     lt_cv_dlopen_libs=
10499 michael 945 ;;
10500 michael 912
10501     cygwin*)
10502     lt_cv_dlopen="dlopen"
10503     lt_cv_dlopen_libs=
10504 michael 945 ;;
10505 michael 912
10506     darwin*)
10507     # if libdl is installed we need to link against it
10508 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10509 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10510 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10511 db 941 $as_echo_n "(cached) " >&6
10512 michael 912 else
10513     ac_check_lib_save_LIBS=$LIBS
10514     LIBS="-ldl $LIBS"
10515 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10516 michael 912 /* end confdefs.h. */
10517    
10518     /* Override any GCC internal prototype to avoid an error.
10519     Use char because int might match the return type of a GCC
10520     builtin and then its argument prototype would still apply. */
10521     #ifdef __cplusplus
10522     extern "C"
10523     #endif
10524     char dlopen ();
10525     int
10526     main ()
10527     {
10528     return dlopen ();
10529     ;
10530     return 0;
10531     }
10532     _ACEOF
10533 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10534 michael 912 ac_cv_lib_dl_dlopen=yes
10535     else
10536 michael 967 ac_cv_lib_dl_dlopen=no
10537 michael 912 fi
10538 michael 967 rm -f core conftest.err conftest.$ac_objext \
10539     conftest$ac_exeext conftest.$ac_ext
10540 michael 912 LIBS=$ac_check_lib_save_LIBS
10541     fi
10542 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10543 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10544 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10545 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10546     else
10547    
10548     lt_cv_dlopen="dyld"
10549     lt_cv_dlopen_libs=
10550     lt_cv_dlopen_self=yes
10551    
10552     fi
10553    
10554 michael 945 ;;
10555 michael 912
10556     *)
10557 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10558     if test "x$ac_cv_func_shl_load" = x""yes; then :
10559 michael 912 lt_cv_dlopen="shl_load"
10560     else
10561 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10562 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10563 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10564 db 941 $as_echo_n "(cached) " >&6
10565 michael 912 else
10566     ac_check_lib_save_LIBS=$LIBS
10567     LIBS="-ldld $LIBS"
10568 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 michael 912 /* end confdefs.h. */
10570    
10571     /* Override any GCC internal prototype to avoid an error.
10572     Use char because int might match the return type of a GCC
10573     builtin and then its argument prototype would still apply. */
10574     #ifdef __cplusplus
10575     extern "C"
10576     #endif
10577     char shl_load ();
10578     int
10579     main ()
10580     {
10581     return shl_load ();
10582     ;
10583     return 0;
10584     }
10585     _ACEOF
10586 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10587 michael 912 ac_cv_lib_dld_shl_load=yes
10588     else
10589 michael 967 ac_cv_lib_dld_shl_load=no
10590 michael 912 fi
10591 michael 967 rm -f core conftest.err conftest.$ac_objext \
10592     conftest$ac_exeext conftest.$ac_ext
10593 michael 912 LIBS=$ac_check_lib_save_LIBS
10594     fi
10595 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10596 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10597 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10598 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10599 michael 912 else
10600 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10601     if test "x$ac_cv_func_dlopen" = x""yes; then :
10602 michael 912 lt_cv_dlopen="dlopen"
10603     else
10604 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10605 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10606 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10607 db 941 $as_echo_n "(cached) " >&6
10608 michael 912 else
10609     ac_check_lib_save_LIBS=$LIBS
10610     LIBS="-ldl $LIBS"
10611 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 michael 912 /* end confdefs.h. */
10613    
10614     /* Override any GCC internal prototype to avoid an error.
10615     Use char because int might match the return type of a GCC
10616     builtin and then its argument prototype would still apply. */
10617     #ifdef __cplusplus
10618     extern "C"
10619     #endif
10620     char dlopen ();
10621     int
10622     main ()
10623     {
10624     return dlopen ();
10625     ;
10626     return 0;
10627     }
10628     _ACEOF
10629 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10630 michael 912 ac_cv_lib_dl_dlopen=yes
10631     else
10632 michael 967 ac_cv_lib_dl_dlopen=no
10633 michael 912 fi
10634 michael 967 rm -f core conftest.err conftest.$ac_objext \
10635     conftest$ac_exeext conftest.$ac_ext
10636 michael 912 LIBS=$ac_check_lib_save_LIBS
10637     fi
10638 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10639 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10640 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10641 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10642     else
10643 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10644 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10645 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10646 db 941 $as_echo_n "(cached) " >&6
10647 michael 912 else
10648     ac_check_lib_save_LIBS=$LIBS
10649     LIBS="-lsvld $LIBS"
10650 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 michael 912 /* end confdefs.h. */
10652    
10653     /* Override any GCC internal prototype to avoid an error.
10654     Use char because int might match the return type of a GCC
10655     builtin and then its argument prototype would still apply. */
10656     #ifdef __cplusplus
10657     extern "C"
10658     #endif
10659     char dlopen ();
10660     int
10661     main ()
10662     {
10663     return dlopen ();
10664     ;
10665     return 0;
10666     }
10667     _ACEOF
10668 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10669 michael 912 ac_cv_lib_svld_dlopen=yes
10670     else
10671 michael 967 ac_cv_lib_svld_dlopen=no
10672 michael 912 fi
10673 michael 967 rm -f core conftest.err conftest.$ac_objext \
10674     conftest$ac_exeext conftest.$ac_ext
10675 michael 912 LIBS=$ac_check_lib_save_LIBS
10676     fi
10677 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10678 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10679 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10680 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10681     else
10682 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10683 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10684 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10685 db 941 $as_echo_n "(cached) " >&6
10686 michael 912 else
10687     ac_check_lib_save_LIBS=$LIBS
10688     LIBS="-ldld $LIBS"
10689 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10690 michael 912 /* end confdefs.h. */
10691    
10692     /* Override any GCC internal prototype to avoid an error.
10693     Use char because int might match the return type of a GCC
10694     builtin and then its argument prototype would still apply. */
10695     #ifdef __cplusplus
10696     extern "C"
10697     #endif
10698     char dld_link ();
10699     int
10700     main ()
10701     {
10702     return dld_link ();
10703     ;
10704     return 0;
10705     }
10706     _ACEOF
10707 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10708 michael 912 ac_cv_lib_dld_dld_link=yes
10709     else
10710 michael 967 ac_cv_lib_dld_dld_link=no
10711 michael 912 fi
10712 michael 967 rm -f core conftest.err conftest.$ac_objext \
10713     conftest$ac_exeext conftest.$ac_ext
10714 michael 912 LIBS=$ac_check_lib_save_LIBS
10715     fi
10716 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10717 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10718 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10719 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10720 michael 912 fi
10721    
10722    
10723     fi
10724    
10725    
10726     fi
10727    
10728    
10729     fi
10730    
10731    
10732     fi
10733    
10734    
10735     fi
10736    
10737     ;;
10738     esac
10739    
10740     if test "x$lt_cv_dlopen" != xno; then
10741     enable_dlopen=yes
10742     else
10743     enable_dlopen=no
10744     fi
10745    
10746     case $lt_cv_dlopen in
10747     dlopen)
10748     save_CPPFLAGS="$CPPFLAGS"
10749     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10750    
10751     save_LDFLAGS="$LDFLAGS"
10752     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10753    
10754     save_LIBS="$LIBS"
10755     LIBS="$lt_cv_dlopen_libs $LIBS"
10756    
10757 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10758 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10759 michael 967 if test "${lt_cv_dlopen_self+set}" = set; then :
10760 db 941 $as_echo_n "(cached) " >&6
10761 michael 912 else
10762     if test "$cross_compiling" = yes; then :
10763     lt_cv_dlopen_self=cross
10764     else
10765     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10766     lt_status=$lt_dlunknown
10767 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10768 michael 1084 #line 10768 "configure"
10769 michael 912 #include "confdefs.h"
10770    
10771     #if HAVE_DLFCN_H
10772     #include <dlfcn.h>
10773     #endif
10774    
10775     #include <stdio.h>
10776    
10777     #ifdef RTLD_GLOBAL
10778     # define LT_DLGLOBAL RTLD_GLOBAL
10779     #else
10780     # ifdef DL_GLOBAL
10781     # define LT_DLGLOBAL DL_GLOBAL
10782     # else
10783     # define LT_DLGLOBAL 0
10784     # endif
10785     #endif
10786    
10787     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10788     find out it does not work in some platform. */
10789     #ifndef LT_DLLAZY_OR_NOW
10790     # ifdef RTLD_LAZY
10791     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10792     # else
10793     # ifdef DL_LAZY
10794     # define LT_DLLAZY_OR_NOW DL_LAZY
10795     # else
10796     # ifdef RTLD_NOW
10797     # define LT_DLLAZY_OR_NOW RTLD_NOW
10798     # else
10799     # ifdef DL_NOW
10800     # define LT_DLLAZY_OR_NOW DL_NOW
10801     # else
10802     # define LT_DLLAZY_OR_NOW 0
10803     # endif
10804     # endif
10805     # endif
10806     # endif
10807     #endif
10808    
10809     void fnord() { int i=42;}
10810     int main ()
10811     {
10812     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10813     int status = $lt_dlunknown;
10814    
10815     if (self)
10816     {
10817     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10818     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10819     /* dlclose (self); */
10820     }
10821     else
10822     puts (dlerror ());
10823    
10824 michael 945 return status;
10825 michael 912 }
10826 michael 945 _LT_EOF
10827 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10828 michael 912 (eval $ac_link) 2>&5
10829     ac_status=$?
10830 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10832 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10833     lt_status=$?
10834     case x$lt_status in
10835     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10836     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10837     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10838     esac
10839     else :
10840     # compilation failed
10841     lt_cv_dlopen_self=no
10842     fi
10843     fi
10844     rm -fr conftest*
10845    
10846    
10847     fi
10848 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10849 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
10850 michael 912
10851     if test "x$lt_cv_dlopen_self" = xyes; then
10852     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10853 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10854 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10855 michael 967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10856 db 941 $as_echo_n "(cached) " >&6
10857 michael 912 else
10858     if test "$cross_compiling" = yes; then :
10859     lt_cv_dlopen_self_static=cross
10860     else
10861     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862     lt_status=$lt_dlunknown
10863 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10864 michael 1084 #line 10864 "configure"
10865 michael 912 #include "confdefs.h"
10866    
10867     #if HAVE_DLFCN_H
10868     #include <dlfcn.h>
10869     #endif
10870    
10871     #include <stdio.h>
10872    
10873     #ifdef RTLD_GLOBAL
10874     # define LT_DLGLOBAL RTLD_GLOBAL
10875     #else
10876     # ifdef DL_GLOBAL
10877     # define LT_DLGLOBAL DL_GLOBAL
10878     # else
10879     # define LT_DLGLOBAL 0
10880     # endif
10881     #endif
10882    
10883     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884     find out it does not work in some platform. */
10885     #ifndef LT_DLLAZY_OR_NOW
10886     # ifdef RTLD_LAZY
10887     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10888     # else
10889     # ifdef DL_LAZY
10890     # define LT_DLLAZY_OR_NOW DL_LAZY
10891     # else
10892     # ifdef RTLD_NOW
10893     # define LT_DLLAZY_OR_NOW RTLD_NOW
10894     # else
10895     # ifdef DL_NOW
10896     # define LT_DLLAZY_OR_NOW DL_NOW
10897     # else
10898     # define LT_DLLAZY_OR_NOW 0
10899     # endif
10900     # endif
10901     # endif
10902     # endif
10903     #endif
10904    
10905     void fnord() { int i=42;}
10906     int main ()
10907     {
10908     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10909     int status = $lt_dlunknown;
10910    
10911     if (self)
10912     {
10913     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10914     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10915     /* dlclose (self); */
10916     }
10917     else
10918     puts (dlerror ());
10919    
10920 michael 945 return status;
10921 michael 912 }
10922 michael 945 _LT_EOF
10923 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10924 michael 912 (eval $ac_link) 2>&5
10925     ac_status=$?
10926 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10927     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10928 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10929     lt_status=$?
10930     case x$lt_status in
10931     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10932     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10933     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10934     esac
10935     else :
10936     # compilation failed
10937     lt_cv_dlopen_self_static=no
10938     fi
10939     fi
10940     rm -fr conftest*
10941    
10942    
10943     fi
10944 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10945 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10946 michael 912 fi
10947    
10948     CPPFLAGS="$save_CPPFLAGS"
10949     LDFLAGS="$save_LDFLAGS"
10950     LIBS="$save_LIBS"
10951     ;;
10952     esac
10953    
10954     case $lt_cv_dlopen_self in
10955     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10956     *) enable_dlopen_self=unknown ;;
10957     esac
10958    
10959     case $lt_cv_dlopen_self_static in
10960     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10961     *) enable_dlopen_self_static=unknown ;;
10962     esac
10963     fi
10964    
10965    
10966    
10967    
10968    
10969    
10970    
10971    
10972    
10973    
10974    
10975    
10976    
10977    
10978    
10979    
10980    
10981 michael 945 striplib=
10982     old_striplib=
10983 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10984 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10985     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10986     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10989 michael 945 $as_echo "yes" >&6; }
10990     else
10991     # FIXME - insert some real tests, host_os isn't really good enough
10992     case $host_os in
10993     darwin*)
10994     if test -n "$STRIP" ; then
10995     striplib="$STRIP -x"
10996     old_striplib="$STRIP -S"
10997 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10998 michael 945 $as_echo "yes" >&6; }
10999     else
11000 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 michael 945 $as_echo "no" >&6; }
11002     fi
11003     ;;
11004     *)
11005 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 michael 945 $as_echo "no" >&6; }
11007     ;;
11008     esac
11009     fi
11010 michael 912
11011    
11012    
11013    
11014    
11015    
11016    
11017    
11018    
11019    
11020    
11021    
11022 michael 945 # Report which library types will actually be built
11023 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11024 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11025 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11026 michael 945 $as_echo "$can_build_shared" >&6; }
11027 michael 912
11028 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11029 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11030     test "$can_build_shared" = "no" && enable_shared=no
11031 michael 912
11032 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11033     # are all built from PIC.
11034 michael 912 case $host_os in
11035     aix3*)
11036 michael 945 test "$enable_shared" = yes && enable_static=no
11037     if test -n "$RANLIB"; then
11038     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11039     postinstall_cmds='$RANLIB $lib'
11040     fi
11041     ;;
11042 michael 912
11043 michael 945 aix[4-9]*)
11044     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11045     test "$enable_shared" = yes && enable_static=no
11046     fi
11047 michael 912 ;;
11048     esac
11049 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11050 michael 945 $as_echo "$enable_shared" >&6; }
11051 michael 912
11052 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11053 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11054     # Make sure either enable_shared or enable_static is yes.
11055     test "$enable_shared" = yes || enable_static=yes
11056 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11057 michael 945 $as_echo "$enable_static" >&6; }
11058 michael 912
11059    
11060    
11061    
11062 michael 945 fi
11063 michael 912 ac_ext=c
11064     ac_cpp='$CPP $CPPFLAGS'
11065     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11066     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11067     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11068    
11069     CC="$lt_save_CC"
11070    
11071    
11072    
11073    
11074    
11075    
11076    
11077    
11078    
11079    
11080    
11081    
11082    
11083 michael 945 ac_config_commands="$ac_config_commands libtool"
11084 michael 912
11085    
11086    
11087    
11088 michael 945 # Only expand once:
11089 michael 912
11090    
11091 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11092 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11093 michael 967 if test "${libltdl_cv_shlibext+set}" = set; then :
11094 michael 945 $as_echo_n "(cached) " >&6
11095 michael 912 else
11096    
11097 michael 945 module=yes
11098     eval libltdl_cv_shlibext=$shrext_cmds
11099 michael 912
11100     fi
11101 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11102 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11103     if test -n "$libltdl_cv_shlibext"; then
11104 michael 912
11105 michael 945 cat >>confdefs.h <<_ACEOF
11106     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11107     _ACEOF
11108 michael 912
11109     fi
11110    
11111 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11112 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11113 michael 967 if test "${lt_cv_module_path_var+set}" = set; then :
11114 db 941 $as_echo_n "(cached) " >&6
11115 michael 912 else
11116 michael 945 lt_cv_module_path_var="$shlibpath_var"
11117 michael 912 fi
11118 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11119 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11120     if test -n "$lt_cv_module_path_var"; then
11121    
11122     cat >>confdefs.h <<_ACEOF
11123     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11124     _ACEOF
11125    
11126 michael 912 fi
11127    
11128 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11129 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
11130 michael 967 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11131 db 941 $as_echo_n "(cached) " >&6
11132 michael 912 else
11133 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11134 michael 912 fi
11135 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11136 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11137     if test -n "$lt_cv_sys_dlsearch_path"; then
11138     sys_dlsearch_path=
11139     for dir in $lt_cv_sys_dlsearch_path; do
11140     if test -z "$sys_dlsearch_path"; then
11141     sys_dlsearch_path="$dir"
11142 michael 912 else
11143 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11144 michael 912 fi
11145 michael 945 done
11146 michael 912
11147 michael 945 cat >>confdefs.h <<_ACEOF
11148     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11149     _ACEOF
11150 michael 912
11151     fi
11152    
11153    
11154 michael 945 LT_DLLOADERS=
11155 michael 912
11156    
11157 michael 945 ac_ext=c
11158     ac_cpp='$CPP $CPPFLAGS'
11159     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11160     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11161     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11162 michael 912
11163    
11164 michael 945 LIBADD_DLOPEN=
11165 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11166 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
11167 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11168 michael 945 $as_echo_n "(cached) " >&6
11169     else
11170     ac_func_search_save_LIBS=$LIBS
11171 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 michael 912 /* end confdefs.h. */
11173    
11174 michael 945 /* Override any GCC internal prototype to avoid an error.
11175     Use char because int might match the return type of a GCC
11176     builtin and then its argument prototype would still apply. */
11177     #ifdef __cplusplus
11178     extern "C"
11179     #endif
11180     char dlopen ();
11181 michael 912 int
11182     main ()
11183     {
11184 michael 945 return dlopen ();
11185 michael 912 ;
11186     return 0;
11187     }
11188     _ACEOF
11189 michael 945 for ac_lib in '' dl; do
11190     if test -z "$ac_lib"; then
11191     ac_res="none required"
11192     else
11193     ac_res=-l$ac_lib
11194     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11195     fi
11196 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11197 michael 945 ac_cv_search_dlopen=$ac_res
11198 michael 912 fi
11199 michael 967 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext
11201     if test "${ac_cv_search_dlopen+set}" = set; then :
11202 michael 945 break
11203     fi
11204     done
11205 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11206    
11207 michael 945 else
11208     ac_cv_search_dlopen=no
11209     fi
11210     rm conftest.$ac_ext
11211     LIBS=$ac_func_search_save_LIBS
11212     fi
11213 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11214 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
11215     ac_res=$ac_cv_search_dlopen
11216 michael 967 if test "$ac_res" != no; then :
11217 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11218 michael 912
11219 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11220 michael 912
11221 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
11222     LIBADD_DLOPEN="-ldl"
11223     fi
11224     libltdl_cv_lib_dl_dlopen="yes"
11225     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11226     else
11227 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 michael 912 /* end confdefs.h. */
11229 michael 945 #if HAVE_DLFCN_H
11230     # include <dlfcn.h>
11231     #endif
11232 michael 912
11233     int
11234     main ()
11235     {
11236 michael 945 dlopen(0, 0);
11237 michael 912 ;
11238     return 0;
11239     }
11240     _ACEOF
11241 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11242 michael 912
11243 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11244 michael 945
11245     libltdl_cv_func_dlopen="yes"
11246     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11247 michael 912 else
11248 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11249 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11250 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11251 michael 945 $as_echo_n "(cached) " >&6
11252     else
11253     ac_check_lib_save_LIBS=$LIBS
11254     LIBS="-lsvld $LIBS"
11255 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256 michael 945 /* end confdefs.h. */
11257 michael 912
11258 michael 945 /* Override any GCC internal prototype to avoid an error.
11259     Use char because int might match the return type of a GCC
11260     builtin and then its argument prototype would still apply. */
11261     #ifdef __cplusplus
11262     extern "C"
11263     #endif
11264     char dlopen ();
11265     int
11266     main ()
11267     {
11268     return dlopen ();
11269     ;
11270     return 0;
11271     }
11272     _ACEOF
11273 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11274 michael 945 ac_cv_lib_svld_dlopen=yes
11275 michael 912 else
11276 michael 967 ac_cv_lib_svld_dlopen=no
11277 db 941 fi
11278 michael 967 rm -f core conftest.err conftest.$ac_objext \
11279     conftest$ac_exeext conftest.$ac_ext
11280 michael 945 LIBS=$ac_check_lib_save_LIBS
11281 michael 912 fi
11282 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11283 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11284 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11285 michael 912
11286 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11287 michael 912
11288 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11289     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11290 michael 912 fi
11291    
11292     fi
11293 michael 967 rm -f core conftest.err conftest.$ac_objext \
11294     conftest$ac_exeext conftest.$ac_ext
11295 michael 912 fi
11296    
11297 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11298     then
11299     lt_save_LIBS="$LIBS"
11300     LIBS="$LIBS $LIBADD_DLOPEN"
11301 michael 967 for ac_func in dlerror
11302     do :
11303     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11304     if test "x$ac_cv_func_dlerror" = x""yes; then :
11305 michael 945 cat >>confdefs.h <<_ACEOF
11306 michael 967 #define HAVE_DLERROR 1
11307 michael 945 _ACEOF
11308 michael 912
11309     fi
11310 michael 945 done
11311 michael 912
11312 michael 945 LIBS="$lt_save_LIBS"
11313 michael 912 fi
11314    
11315    
11316 michael 945 LIBADD_SHL_LOAD=
11317 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11318     if test "x$ac_cv_func_shl_load" = x""yes; then :
11319 michael 912
11320 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11321 michael 912
11322 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11323 michael 912 else
11324 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11325 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11326 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11327 db 941 $as_echo_n "(cached) " >&6
11328 michael 912 else
11329 michael 945 ac_check_lib_save_LIBS=$LIBS
11330     LIBS="-ldld $LIBS"
11331 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 michael 945 /* end confdefs.h. */
11333 michael 912
11334 michael 945 /* Override any GCC internal prototype to avoid an error.
11335     Use char because int might match the return type of a GCC
11336     builtin and then its argument prototype would still apply. */
11337     #ifdef __cplusplus
11338     extern "C"
11339     #endif
11340     char shl_load ();
11341     int
11342     main ()
11343     {
11344     return shl_load ();
11345     ;
11346     return 0;
11347     }
11348 michael 912 _ACEOF
11349 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11350 michael 945 ac_cv_lib_dld_shl_load=yes
11351 michael 912 else
11352 michael 967 ac_cv_lib_dld_shl_load=no
11353 michael 912 fi
11354 michael 967 rm -f core conftest.err conftest.$ac_objext \
11355     conftest$ac_exeext conftest.$ac_ext
11356 michael 945 LIBS=$ac_check_lib_save_LIBS
11357     fi
11358 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11359 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11360 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11361 michael 912
11362 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11363 michael 912
11364 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11365     LIBADD_SHL_LOAD="-ldld"
11366     fi
11367    
11368     fi
11369    
11370    
11371    
11372     case $host_os in
11373     darwin[1567].*)
11374     # We only want this for pre-Mac OS X 10.4.
11375 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11376     if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11377 michael 945
11378 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11379 michael 945
11380     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11381     fi
11382 michael 912
11383 michael 945 ;;
11384     beos*)
11385     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11386     ;;
11387     cygwin* | mingw* | os2* | pw32*)
11388 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11389     "
11390     if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11391     ac_have_decl=1
11392 michael 945 else
11393 michael 967 ac_have_decl=0
11394 michael 945 fi
11395 michael 912
11396 michael 945 cat >>confdefs.h <<_ACEOF
11397 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11398 michael 945 _ACEOF
11399 michael 912
11400 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11401     ;;
11402     esac
11403 michael 912
11404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11405 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11406 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11407 michael 945 $as_echo_n "(cached) " >&6
11408     else
11409     ac_check_lib_save_LIBS=$LIBS
11410     LIBS="-ldld $LIBS"
11411 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 michael 945 /* end confdefs.h. */
11413 michael 912
11414 michael 945 /* Override any GCC internal prototype to avoid an error.
11415     Use char because int might match the return type of a GCC
11416     builtin and then its argument prototype would still apply. */
11417     #ifdef __cplusplus
11418     extern "C"
11419     #endif
11420     char dld_link ();
11421     int
11422     main ()
11423     {
11424     return dld_link ();
11425     ;
11426     return 0;
11427     }
11428     _ACEOF
11429 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11430 michael 945 ac_cv_lib_dld_dld_link=yes
11431     else
11432 michael 967 ac_cv_lib_dld_dld_link=no
11433 michael 945 fi
11434 michael 967 rm -f core conftest.err conftest.$ac_objext \
11435     conftest$ac_exeext conftest.$ac_ext
11436 michael 945 LIBS=$ac_check_lib_save_LIBS
11437     fi
11438 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11439 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11440 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11441 michael 912
11442 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11443 michael 912
11444 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11445     fi
11446 michael 912
11447    
11448    
11449    
11450 michael 945 LT_DLPREOPEN=
11451     if test -n "$LT_DLLOADERS"
11452     then
11453     for lt_loader in $LT_DLLOADERS; do
11454     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11455     done
11456 michael 912
11457 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11458 michael 912
11459 michael 945 fi
11460 michael 912
11461    
11462 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11463 michael 912
11464    
11465 michael 945 ac_ext=c
11466     ac_cpp='$CPP $CPPFLAGS'
11467     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11468     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11469     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11470 michael 912
11471    
11472 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11473 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11474 michael 967 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11475 michael 945 $as_echo_n "(cached) " >&6
11476     else
11477     lt_cv_sys_symbol_underscore=no
11478     cat > conftest.$ac_ext <<_LT_EOF
11479     void nm_test_func(){}
11480     int main(){nm_test_func;return 0;}
11481     _LT_EOF
11482 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11483 michael 912 (eval $ac_compile) 2>&5
11484     ac_status=$?
11485 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486     test $ac_status = 0; }; then
11487 michael 945 # Now try to grab the symbols.
11488     ac_nlist=conftest.nm
11489 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11490 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11491 michael 912 ac_status=$?
11492 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493     test $ac_status = 0; } && test -s "$ac_nlist"; then
11494 michael 945 # See whether the symbols have a leading underscore.
11495     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11496     lt_cv_sys_symbol_underscore=yes
11497     else
11498     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11499     :
11500 michael 912 else
11501 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11502 michael 912 fi
11503     fi
11504 michael 945 else
11505     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11506     fi
11507     else
11508     echo "configure: failed program was:" >&5
11509     cat conftest.c >&5
11510 michael 912 fi
11511 michael 945 rm -rf conftest*
11512 michael 912
11513 michael 945 fi
11514 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11515 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11516     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11517 michael 912
11518    
11519 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11520     if test x"$libltdl_cv_func_dlopen" = xyes ||
11521     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11522 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11523 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11524 michael 967 if test "${libltdl_cv_need_uscore+set}" = set; then :
11525 michael 945 $as_echo_n "(cached) " >&6
11526     else
11527     libltdl_cv_need_uscore=unknown
11528     save_LIBS="$LIBS"
11529     LIBS="$LIBS $LIBADD_DLOPEN"
11530     if test "$cross_compiling" = yes; then :
11531     libltdl_cv_need_uscore=cross
11532     else
11533     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11534     lt_status=$lt_dlunknown
11535     cat > conftest.$ac_ext <<_LT_EOF
11536 michael 1084 #line 11536 "configure"
11537 michael 945 #include "confdefs.h"
11538 michael 912
11539 michael 945 #if HAVE_DLFCN_H
11540     #include <dlfcn.h>
11541     #endif
11542 michael 912
11543 michael 945 #include <stdio.h>
11544 michael 912
11545 michael 945 #ifdef RTLD_GLOBAL
11546     # define LT_DLGLOBAL RTLD_GLOBAL
11547     #else
11548     # ifdef DL_GLOBAL
11549     # define LT_DLGLOBAL DL_GLOBAL
11550     # else
11551     # define LT_DLGLOBAL 0
11552     # endif
11553     #endif
11554    
11555     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11556     find out it does not work in some platform. */
11557     #ifndef LT_DLLAZY_OR_NOW
11558     # ifdef RTLD_LAZY
11559     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11560     # else
11561     # ifdef DL_LAZY
11562     # define LT_DLLAZY_OR_NOW DL_LAZY
11563     # else
11564     # ifdef RTLD_NOW
11565     # define LT_DLLAZY_OR_NOW RTLD_NOW
11566     # else
11567     # ifdef DL_NOW
11568     # define LT_DLLAZY_OR_NOW DL_NOW
11569     # else
11570     # define LT_DLLAZY_OR_NOW 0
11571     # endif
11572     # endif
11573     # endif
11574     # endif
11575     #endif
11576    
11577     void fnord() { int i=42;}
11578     int main ()
11579     {
11580     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11581     int status = $lt_dlunknown;
11582    
11583     if (self)
11584     {
11585     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11586     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11587     /* dlclose (self); */
11588     }
11589 michael 912 else
11590 michael 945 puts (dlerror ());
11591    
11592     return status;
11593     }
11594     _LT_EOF
11595 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11596 michael 945 (eval $ac_link) 2>&5
11597     ac_status=$?
11598 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11599     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11600 michael 945 (./conftest; exit; ) >&5 2>/dev/null
11601     lt_status=$?
11602     case x$lt_status in
11603     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11604     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11605     x$lt_dlunknown|x*) ;;
11606 michael 912 esac
11607 michael 945 else :
11608     # compilation failed
11609    
11610 michael 912 fi
11611 michael 945 fi
11612     rm -fr conftest*
11613 michael 912
11614 michael 945 LIBS="$save_LIBS"
11615 michael 912
11616 michael 945 fi
11617 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11618 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
11619     fi
11620     fi
11621 michael 912
11622 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
11623 michael 912
11624 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11625 michael 912
11626 michael 945 fi
11627 michael 912
11628 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11629 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11630 michael 967 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11631 michael 945 $as_echo_n "(cached) " >&6
11632     else
11633     # PORTME does your system automatically load deplibs for dlopen?
11634     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11635     # For now, we just catch OSes we know something about -- in the
11636     # future, we'll try test this programmatically.
11637     lt_cv_sys_dlopen_deplibs=unknown
11638     case $host_os in
11639     aix3*|aix4.1.*|aix4.2.*)
11640     # Unknown whether this is true for these versions of AIX, but
11641     # we want this `case' here to explicitly catch those versions.
11642     lt_cv_sys_dlopen_deplibs=unknown
11643     ;;
11644     aix[4-9]*)
11645     lt_cv_sys_dlopen_deplibs=yes
11646     ;;
11647     amigaos*)
11648     case $host_cpu in
11649     powerpc)
11650     lt_cv_sys_dlopen_deplibs=no
11651 michael 912 ;;
11652     esac
11653     ;;
11654 michael 945 darwin*)
11655     # Assuming the user has installed a libdl from somewhere, this is true
11656     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11657     lt_cv_sys_dlopen_deplibs=yes
11658 michael 912 ;;
11659 michael 945 freebsd* | dragonfly*)
11660     lt_cv_sys_dlopen_deplibs=yes
11661 michael 912 ;;
11662 michael 945 gnu* | linux* | k*bsd*-gnu)
11663     # GNU and its variants, using gnu ld.so (Glibc)
11664     lt_cv_sys_dlopen_deplibs=yes
11665 michael 912 ;;
11666 michael 945 hpux10*|hpux11*)
11667     lt_cv_sys_dlopen_deplibs=yes
11668 michael 912 ;;
11669 michael 945 interix*)
11670     lt_cv_sys_dlopen_deplibs=yes
11671 michael 912 ;;
11672 michael 945 irix[12345]*|irix6.[01]*)
11673     # Catch all versions of IRIX before 6.2, and indicate that we don't
11674     # know how it worked for any of those versions.
11675     lt_cv_sys_dlopen_deplibs=unknown
11676 michael 912 ;;
11677 michael 945 irix*)
11678     # The case above catches anything before 6.2, and it's known that
11679     # at 6.2 and later dlopen does load deplibs.
11680     lt_cv_sys_dlopen_deplibs=yes
11681 michael 912 ;;
11682 michael 945 netbsd*)
11683     lt_cv_sys_dlopen_deplibs=yes
11684 michael 912 ;;
11685 michael 945 openbsd*)
11686     lt_cv_sys_dlopen_deplibs=yes
11687 michael 912 ;;
11688 michael 945 osf[1234]*)
11689     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11690     # it did *not* use an RPATH in a shared library to find objects the
11691     # library depends on, so we explicitly say `no'.
11692     lt_cv_sys_dlopen_deplibs=no
11693     ;;
11694     osf5.0|osf5.0a|osf5.1)
11695     # dlopen *does* load deplibs and with the right loader patch applied
11696     # it even uses RPATH in a shared library to search for shared objects
11697     # that the library depends on, but there's no easy way to know if that
11698     # patch is installed. Since this is the case, all we can really
11699     # say is unknown -- it depends on the patch being installed. If
11700     # it is, this changes to `yes'. Without it, it would be `no'.
11701     lt_cv_sys_dlopen_deplibs=unknown
11702     ;;
11703     osf*)
11704     # the two cases above should catch all versions of osf <= 5.1. Read
11705     # the comments above for what we know about them.
11706     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11707     # is used to find them so we can finally say `yes'.
11708     lt_cv_sys_dlopen_deplibs=yes
11709     ;;
11710     qnx*)
11711     lt_cv_sys_dlopen_deplibs=yes
11712     ;;
11713     solaris*)
11714     lt_cv_sys_dlopen_deplibs=yes
11715     ;;
11716     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11717     libltdl_cv_sys_dlopen_deplibs=yes
11718     ;;
11719 michael 912 esac
11720    
11721 michael 945 fi
11722 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11723 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11724     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11725 michael 912
11726 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11727 michael 912
11728 michael 945 fi
11729 michael 912
11730 michael 945 :
11731 michael 912
11732 michael 945 for ac_header in argz.h
11733 michael 967 do :
11734     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11735     "
11736     if test "x$ac_cv_header_argz_h" = x""yes; then :
11737 michael 945 cat >>confdefs.h <<_ACEOF
11738 michael 967 #define HAVE_ARGZ_H 1
11739 michael 945 _ACEOF
11740 michael 912
11741     fi
11742    
11743 michael 945 done
11744 michael 912
11745    
11746 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11747 michael 945 # include <argz.h>
11748     #endif
11749 michael 967 "
11750     if test "x$ac_cv_type_error_t" = x""yes; then :
11751 michael 912
11752 michael 945 cat >>confdefs.h <<_ACEOF
11753     #define HAVE_ERROR_T 1
11754     _ACEOF
11755 michael 912
11756    
11757 michael 945 else
11758 michael 912
11759 michael 967 $as_echo "#define error_t int" >>confdefs.h
11760 michael 912
11761    
11762 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
11763 michael 912
11764 michael 945 fi
11765 michael 912
11766    
11767 michael 945 ARGZ_H=
11768     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11769     argz_next argz_stringify
11770 michael 967 do :
11771     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11772     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11773     eval as_val=\$$as_ac_var
11774     if test "x$as_val" = x""yes; then :
11775 michael 945 cat >>confdefs.h <<_ACEOF
11776     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11777     _ACEOF
11778 michael 912
11779 michael 945 else
11780     ARGZ_H=argz.h;
11781 michael 912
11782 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11783 michael 912
11784 michael 945 fi
11785     done
11786 michael 912
11787    
11788 michael 967 if test -z "$ARGZ_H"; then :
11789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11790 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
11791 michael 967 if test "${lt_cv_sys_argz_works+set}" = set; then :
11792 michael 945 $as_echo_n "(cached) " >&6
11793 michael 912 else
11794 michael 945 case $host_os in #(
11795     *cygwin*)
11796     lt_cv_sys_argz_works=no
11797     if test "$cross_compiling" != no; then
11798     lt_cv_sys_argz_works="guessing no"
11799     else
11800     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11801     save_IFS=$IFS
11802     IFS=-.
11803     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11804     IFS=$save_IFS
11805     lt_os_major=${2-0}
11806     lt_os_minor=${3-0}
11807     lt_os_micro=${4-0}
11808     if test "$lt_os_major" -gt 1 \
11809     || { test "$lt_os_major" -eq 1 \
11810     && { test "$lt_os_minor" -gt 5 \
11811     || { test "$lt_os_minor" -eq 5 \
11812     && test "$lt_os_micro" -gt 24; }; }; }; then
11813     lt_cv_sys_argz_works=yes
11814     fi
11815     fi
11816     ;; #(
11817     *) lt_cv_sys_argz_works=yes ;;
11818     esac
11819 michael 912 fi
11820 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11821 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
11822 michael 967 if test $lt_cv_sys_argz_works = yes; then :
11823 michael 912
11824 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11825 michael 912
11826 michael 945 else
11827     ARGZ_H=argz.h
11828 michael 912
11829    
11830 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11831 michael 912
11832 michael 945 fi
11833     fi
11834 michael 912
11835    
11836    
11837 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11838 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11839 michael 967 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11840 db 941 $as_echo_n "(cached) " >&6
11841 michael 912 else
11842 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11843     libltdl_cv_preloaded_symbols=yes
11844     else
11845     libltdl_cv_preloaded_symbols=no
11846     fi
11847 michael 912
11848     fi
11849 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11850 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11851     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11852 michael 912
11853 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11854 michael 912
11855     fi
11856    
11857    
11858    
11859 michael 945 # Set options
11860 michael 912
11861    
11862    
11863    
11864 db 941
11865 michael 912
11866    
11867    
11868    
11869    
11870    
11871    
11872 michael 945 # Check whether --with-included_ltdl was given.
11873 michael 967 if test "${with_included_ltdl+set}" = set; then :
11874 michael 945 withval=$with_included_ltdl;
11875     fi
11876 db 941
11877 michael 912
11878 michael 945 if test "x$with_included_ltdl" != xyes; then
11879     # We are not being forced to use the included libltdl sources, so
11880     # decide whether there is a useful installed version we can use.
11881 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11882 michael 912
11883 michael 967 "
11884     if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11885     ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11886 michael 945 #include <ltdl.h>
11887 michael 967 "
11888     if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11890 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11891 michael 967 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11892 michael 945 $as_echo_n "(cached) " >&6
11893     else
11894     ac_check_lib_save_LIBS=$LIBS
11895     LIBS="-lltdl $LIBS"
11896 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 michael 912 /* end confdefs.h. */
11898    
11899 michael 945 /* Override any GCC internal prototype to avoid an error.
11900     Use char because int might match the return type of a GCC
11901     builtin and then its argument prototype would still apply. */
11902     #ifdef __cplusplus
11903     extern "C"
11904     #endif
11905     char lt_dladvise_preload ();
11906 michael 912 int
11907     main ()
11908     {
11909 michael 945 return lt_dladvise_preload ();
11910 michael 912 ;
11911     return 0;
11912     }
11913     _ACEOF
11914 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11915 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11916 michael 912 else
11917 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
11918 michael 912 fi
11919 michael 967 rm -f core conftest.err conftest.$ac_objext \
11920     conftest$ac_exeext conftest.$ac_ext
11921 michael 945 LIBS=$ac_check_lib_save_LIBS
11922     fi
11923 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11924 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11925 michael 967 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11926 michael 945 with_included_ltdl=no
11927     else
11928     with_included_ltdl=yes
11929     fi
11930 michael 912
11931 michael 945 else
11932     with_included_ltdl=yes
11933     fi
11934 michael 912
11935 michael 945 else
11936     with_included_ltdl=yes
11937     fi
11938 michael 912
11939    
11940 michael 945 fi
11941 michael 912
11942    
11943    
11944    
11945 michael 945 # Check whether --with-ltdl_include was given.
11946 michael 967 if test "${with_ltdl_include+set}" = set; then :
11947 michael 945 withval=$with_ltdl_include;
11948     fi
11949 michael 912
11950    
11951 michael 945 if test -n "$with_ltdl_include"; then
11952     if test -f "$with_ltdl_include/ltdl.h"; then :
11953 michael 912 else
11954 michael 967 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11955 michael 912 fi
11956 michael 945 else
11957     with_ltdl_include=no
11958     fi
11959 michael 912
11960    
11961 michael 945 # Check whether --with-ltdl_lib was given.
11962 michael 967 if test "${with_ltdl_lib+set}" = set; then :
11963 michael 945 withval=$with_ltdl_lib;
11964     fi
11965 michael 912
11966    
11967 michael 945 if test -n "$with_ltdl_lib"; then
11968     if test -f "$with_ltdl_lib/libltdl.la"; then :
11969 michael 912 else
11970 michael 967 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11971 michael 912 fi
11972 michael 945 else
11973     with_ltdl_lib=no
11974     fi
11975 michael 912
11976 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11977     ,yes,no,no,)
11978     case $enable_ltdl_convenience in
11979 michael 967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11980 michael 945 "") enable_ltdl_convenience=yes
11981     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11982     esac
11983     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11984     LTDLDEPS=$LIBLTDL
11985     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11986 michael 912
11987    
11988    
11989    
11990    
11991 michael 945 # For backwards non-gettext consistent compatibility...
11992     INCLTDL="$LTDLINCL"
11993 michael 912
11994    
11995 michael 945 ;;
11996     ,no,no,no,)
11997     # If the included ltdl is not to be used, then use the
11998     # preinstalled libltdl we found.
11999 michael 912
12000 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12001 michael 912
12002 michael 945 LIBLTDL=-lltdl
12003     LTDLDEPS=
12004     LTDLINCL=
12005 michael 912 ;;
12006 michael 945 ,no*,no,*)
12007 michael 967 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12008 michael 912 ;;
12009 michael 945 *) with_included_ltdl=no
12010     LIBLTDL="-L$with_ltdl_lib -lltdl"
12011     LTDLDEPS=
12012     LTDLINCL="-I$with_ltdl_include"
12013     ;;
12014     esac
12015     INCLTDL="$LTDLINCL"
12016 michael 912
12017 michael 945 # Report our decision...
12018 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12019 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12020 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12021 michael 945 $as_echo "$LTDLINCL" >&6; }
12022 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12023 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12024 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12025 michael 945 $as_echo "$LIBLTDL" >&6; }
12026 michael 912
12027    
12028    
12029 michael 945 # Check whether --enable-ltdl-install was given.
12030 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12031 michael 945 enableval=$enable_ltdl_install;
12032     fi
12033 michael 912
12034    
12035 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12036     *yes*) ;;
12037     *) enable_ltdl_convenience=yes ;;
12038 michael 912 esac
12039    
12040 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12041     INSTALL_LTDL_TRUE=
12042     INSTALL_LTDL_FALSE='#'
12043 db 941 else
12044 michael 945 INSTALL_LTDL_TRUE='#'
12045     INSTALL_LTDL_FALSE=
12046 db 941 fi
12047    
12048 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12049     CONVENIENCE_LTDL_TRUE=
12050     CONVENIENCE_LTDL_FALSE='#'
12051 db 941 else
12052 michael 945 CONVENIENCE_LTDL_TRUE='#'
12053     CONVENIENCE_LTDL_FALSE=
12054 db 941 fi
12055    
12056    
12057 michael 912
12058 michael 945 subdirs="$subdirs libltdl"
12059 michael 912
12060    
12061    
12062    
12063    
12064 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12065     # the user used. This is so that ltdl.h can pick up the parent projects
12066     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12067     # definitions required by ltdl.c.
12068     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12069 michael 912
12070    
12071    
12072 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12073 michael 967 do :
12074     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12075     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12076     "
12077     eval as_val=\$$as_ac_Header
12078     if test "x$as_val" = x""yes; then :
12079 michael 945 cat >>confdefs.h <<_ACEOF
12080     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12081     _ACEOF
12082 michael 912
12083 michael 945 fi
12084 michael 912
12085 michael 945 done
12086 michael 912
12087    
12088 michael 945 for ac_func in closedir opendir readdir
12089 michael 967 do :
12090     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12091     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12092     eval as_val=\$$as_ac_var
12093     if test "x$as_val" = x""yes; then :
12094 michael 945 cat >>confdefs.h <<_ACEOF
12095     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12096     _ACEOF
12097 michael 912
12098 michael 945 else
12099 michael 912
12100    
12101 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12102 michael 912
12103     fi
12104     done
12105    
12106 michael 945 for ac_func in strlcat strlcpy
12107 michael 967 do :
12108     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12109     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12110     eval as_val=\$$as_ac_var
12111     if test "x$as_val" = x""yes; then :
12112 michael 945 cat >>confdefs.h <<_ACEOF
12113     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12114     _ACEOF
12115 michael 912
12116     else
12117    
12118    
12119 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12120 michael 912
12121     fi
12122 michael 945 done
12123 michael 912
12124    
12125    
12126 michael 945 cat >>confdefs.h <<_ACEOF
12127     #define LT_LIBEXT "$libext"
12128     _ACEOF
12129 michael 912
12130    
12131 michael 945 name=ltdl
12132     LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12133 michael 912
12134    
12135    
12136    
12137    
12138    
12139    
12140    
12141 michael 945 # Only expand once:
12142 michael 912
12143    
12144 michael 1053 LIBTOOL="$LIBTOOL --silent"
12145 michael 912
12146     # Checks for libraries.
12147    
12148 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12149 db 941 $as_echo_n "checking for library containing socket... " >&6; }
12150 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12151 db 941 $as_echo_n "(cached) " >&6
12152 michael 912 else
12153     ac_func_search_save_LIBS=$LIBS
12154 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155 michael 912 /* end confdefs.h. */
12156    
12157     /* Override any GCC internal prototype to avoid an error.
12158     Use char because int might match the return type of a GCC
12159     builtin and then its argument prototype would still apply. */
12160     #ifdef __cplusplus
12161     extern "C"
12162     #endif
12163     char socket ();
12164     int
12165     main ()
12166     {
12167     return socket ();
12168     ;
12169     return 0;
12170     }
12171     _ACEOF
12172     for ac_lib in '' socket; do
12173     if test -z "$ac_lib"; then
12174     ac_res="none required"
12175     else
12176     ac_res=-l$ac_lib
12177     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12178     fi
12179 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12180 michael 912 ac_cv_search_socket=$ac_res
12181     fi
12182 michael 967 rm -f core conftest.err conftest.$ac_objext \
12183     conftest$ac_exeext
12184     if test "${ac_cv_search_socket+set}" = set; then :
12185 michael 912 break
12186     fi
12187     done
12188 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12189    
12190 michael 912 else
12191     ac_cv_search_socket=no
12192     fi
12193     rm conftest.$ac_ext
12194     LIBS=$ac_func_search_save_LIBS
12195     fi
12196 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12197 db 941 $as_echo "$ac_cv_search_socket" >&6; }
12198 michael 912 ac_res=$ac_cv_search_socket
12199 michael 967 if test "$ac_res" != no; then :
12200 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12201    
12202     else
12203 michael 967 as_fn_error "socket library not found" "$LINENO" 5
12204 michael 912 fi
12205    
12206 michael 967 for ac_func in inet_aton inet_ntop inet_pton
12207     do :
12208     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12209     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12210     eval as_val=\$$as_ac_var
12211     if test "x$as_val" = x""yes; then :
12212 michael 912 cat >>confdefs.h <<_ACEOF
12213 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12214 michael 912 _ACEOF
12215    
12216     fi
12217     done
12218    
12219 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12220 db 941 #include <sys/socket.h>
12221     #include <netdb.h>
12222    
12223 michael 967 "
12224     if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12225 db 941
12226 michael 912 cat >>confdefs.h <<_ACEOF
12227     #define HAVE_STRUCT_SOCKADDR_IN 1
12228     _ACEOF
12229    
12230    
12231     fi
12232 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12233 db 941 #include <sys/socket.h>
12234     #include <netdb.h>
12235    
12236 michael 967 "
12237     if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12238 db 941
12239 michael 912 cat >>confdefs.h <<_ACEOF
12240     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12241     _ACEOF
12242    
12243    
12244     fi
12245 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12246 db 941 #include <sys/socket.h>
12247     #include <netdb.h>
12248    
12249 michael 967 "
12250     if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12251 db 941
12252 michael 912 cat >>confdefs.h <<_ACEOF
12253     #define HAVE_STRUCT_ADDRINFO 1
12254     _ACEOF
12255    
12256    
12257     fi
12258    
12259 michael 967 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
12260 db 941 <sys/socket.h>
12261 michael 967 "
12262     if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12263 michael 912
12264     cat >>confdefs.h <<_ACEOF
12265     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12266     _ACEOF
12267    
12268    
12269     fi
12270    
12271    
12272    
12273 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12274     if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12275 michael 912
12276     cat >>confdefs.h <<_ACEOF
12277     #define HAVE_STRUCT_SOCKADDR_IN6 1
12278     _ACEOF
12279    
12280    
12281     else
12282    
12283 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
12284 michael 912
12285     fi
12286    
12287    
12288    
12289     # Checks for typedefs, structures, and compiler characteristics.
12290 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12291 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12292 michael 967 if test "${ac_cv_c_bigendian+set}" = set; then :
12293 db 941 $as_echo_n "(cached) " >&6
12294 michael 912 else
12295 db 941 ac_cv_c_bigendian=unknown
12296 michael 942 # See if we're dealing with a universal compiler.
12297 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 michael 912 /* end confdefs.h. */
12299 michael 942 #ifndef __APPLE_CC__
12300     not a universal capable compiler
12301 db 941 #endif
12302     typedef int dummy;
12303    
12304     _ACEOF
12305 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12306 michael 942
12307     # Check for potential -arch flags. It is not universal unless
12308 michael 967 # there are at least two -arch flags with different values.
12309     ac_arch=
12310     ac_prev=
12311     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12312     if test -n "$ac_prev"; then
12313     case $ac_word in
12314     i?86 | x86_64 | ppc | ppc64)
12315     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12316     ac_arch=$ac_word
12317     else
12318     ac_cv_c_bigendian=universal
12319     break
12320     fi
12321     ;;
12322     esac
12323     ac_prev=
12324     elif test "x$ac_word" = "x-arch"; then
12325     ac_prev=arch
12326     fi
12327     done
12328 db 941 fi
12329     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330     if test $ac_cv_c_bigendian = unknown; then
12331     # See if sys/param.h defines the BYTE_ORDER macro.
12332 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 db 941 /* end confdefs.h. */
12334 michael 912 #include <sys/types.h>
12335 db 941 #include <sys/param.h>
12336 michael 912
12337     int
12338     main ()
12339     {
12340 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12341     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12342     && LITTLE_ENDIAN)
12343     bogus endian macros
12344     #endif
12345 michael 912
12346     ;
12347     return 0;
12348     }
12349     _ACEOF
12350 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12351 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
12352 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 michael 912 /* end confdefs.h. */
12354     #include <sys/types.h>
12355 db 941 #include <sys/param.h>
12356 michael 912
12357     int
12358     main ()
12359     {
12360     #if BYTE_ORDER != BIG_ENDIAN
12361 db 941 not big endian
12362     #endif
12363 michael 912
12364     ;
12365     return 0;
12366     }
12367     _ACEOF
12368 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12369 michael 912 ac_cv_c_bigendian=yes
12370     else
12371 michael 967 ac_cv_c_bigendian=no
12372 michael 912 fi
12373     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 db 941 fi
12375     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376     fi
12377     if test $ac_cv_c_bigendian = unknown; then
12378     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12379 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 michael 912 /* end confdefs.h. */
12381 db 941 #include <limits.h>
12382    
12383 michael 912 int
12384     main ()
12385     {
12386 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12387     bogus endian macros
12388     #endif
12389    
12390 michael 912 ;
12391     return 0;
12392     }
12393     _ACEOF
12394 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12395 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
12396 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 michael 912 /* end confdefs.h. */
12398 db 941 #include <limits.h>
12399    
12400 michael 912 int
12401     main ()
12402     {
12403 db 941 #ifndef _BIG_ENDIAN
12404     not big endian
12405     #endif
12406 michael 912
12407     ;
12408     return 0;
12409     }
12410     _ACEOF
12411 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12412 db 941 ac_cv_c_bigendian=yes
12413 michael 912 else
12414 michael 967 ac_cv_c_bigendian=no
12415 michael 912 fi
12416 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417 michael 912 fi
12418     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 db 941 fi
12420     if test $ac_cv_c_bigendian = unknown; then
12421     # Compile a test program.
12422 michael 967 if test "$cross_compiling" = yes; then :
12423 db 941 # Try to guess by grepping values from an object file.
12424 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 michael 912 /* end confdefs.h. */
12426 db 941 short int ascii_mm[] =
12427     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12428     short int ascii_ii[] =
12429     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12430     int use_ascii (int i) {
12431     return ascii_mm[i] + ascii_ii[i];
12432     }
12433     short int ebcdic_ii[] =
12434     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12435     short int ebcdic_mm[] =
12436     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12437     int use_ebcdic (int i) {
12438     return ebcdic_mm[i] + ebcdic_ii[i];
12439     }
12440     extern int foo;
12441    
12442 michael 912 int
12443     main ()
12444     {
12445 db 941 return use_ascii (foo) == use_ebcdic (foo);
12446 michael 912 ;
12447     return 0;
12448     }
12449     _ACEOF
12450 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12451 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12452     ac_cv_c_bigendian=yes
12453     fi
12454     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12455     if test "$ac_cv_c_bigendian" = unknown; then
12456     ac_cv_c_bigendian=no
12457     else
12458     # finding both strings is unlikely to happen, but who knows?
12459     ac_cv_c_bigendian=unknown
12460     fi
12461     fi
12462 michael 912 fi
12463     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12464 db 941 else
12465 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 db 941 /* end confdefs.h. */
12467     $ac_includes_default
12468     int
12469     main ()
12470     {
12471    
12472     /* Are we little or big endian? From Harbison&Steele. */
12473     union
12474     {
12475     long int l;
12476     char c[sizeof (long int)];
12477     } u;
12478     u.l = 1;
12479     return u.c[sizeof (long int) - 1] == 1;
12480    
12481     ;
12482     return 0;
12483     }
12484     _ACEOF
12485 michael 967 if ac_fn_c_try_run "$LINENO"; then :
12486 db 941 ac_cv_c_bigendian=no
12487     else
12488 michael 967 ac_cv_c_bigendian=yes
12489 michael 912 fi
12490 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12491     conftest.$ac_objext conftest.beam conftest.$ac_ext
12492 db 941 fi
12493 michael 912
12494 db 941 fi
12495     fi
12496 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12497 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
12498     case $ac_cv_c_bigendian in #(
12499     yes)
12500 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12501 db 941 ;; #(
12502     no)
12503     ;; #(
12504     universal)
12505 michael 942
12506 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12507 michael 942
12508     ;; #(
12509 db 941 *)
12510 michael 967 as_fn_error "unknown endianness
12511     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12512 db 941 esac
12513    
12514    
12515 michael 912 # Checks for library functions.
12516    
12517    
12518    
12519 michael 967 for ac_func in $ac_func_list
12520     do :
12521     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12522     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12523     eval as_val=\$$as_ac_var
12524     if test "x$as_val" = x""yes; then :
12525 michael 912 cat >>confdefs.h <<_ACEOF
12526 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12527 michael 912 _ACEOF
12528    
12529     fi
12530     done
12531    
12532    
12533    
12534    
12535    
12536    
12537    
12538    
12539    
12540    
12541 michael 942
12542    
12543    
12544 michael 923 # Checks for header files.
12545 michael 912
12546    
12547    
12548 michael 967 for ac_header in $ac_header_list
12549     do :
12550     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12551     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12552     "
12553     eval as_val=\$$as_ac_Header
12554     if test "x$as_val" = x""yes; then :
12555 michael 912 cat >>confdefs.h <<_ACEOF
12556 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12557 michael 912 _ACEOF
12558    
12559     fi
12560    
12561     done
12562    
12563    
12564    
12565    
12566    
12567    
12568    
12569    
12570    
12571    
12572    
12573    
12574    
12575    
12576    
12577    
12578    
12579    
12580    
12581    
12582    
12583    
12584    
12585    
12586    
12587    
12588    
12589 michael 1015 # check for /dev/null so we can use it to hold evil fd's
12590 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12591 db 941 $as_echo_n "checking for /dev/null... " >&6; }
12592 michael 1010 if test -c /dev/null; then :
12593 michael 915
12594 michael 1010
12595 michael 967 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12596 michael 915
12597 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598 db 941 $as_echo "yes" >&6; }
12599 michael 923 else
12600    
12601 michael 1010
12602 michael 967 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12603 michael 923
12604 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12605 db 941 $as_echo "no - using devnull.log" >&6; }
12606 michael 923 fi
12607    
12608    
12609 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12610 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
12611 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12612 db 941 $as_echo_n "(cached) " >&6
12613 michael 923 else
12614     ac_func_search_save_LIBS=$LIBS
12615 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12616 michael 923 /* end confdefs.h. */
12617    
12618     /* Override any GCC internal prototype to avoid an error.
12619     Use char because int might match the return type of a GCC
12620     builtin and then its argument prototype would still apply. */
12621     #ifdef __cplusplus
12622     extern "C"
12623     #endif
12624     char crypt ();
12625     int
12626     main ()
12627     {
12628     return crypt ();
12629     ;
12630     return 0;
12631     }
12632     _ACEOF
12633 michael 977 for ac_lib in '' crypt; do
12634 michael 923 if test -z "$ac_lib"; then
12635     ac_res="none required"
12636     else
12637     ac_res=-l$ac_lib
12638     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12639     fi
12640 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12641 michael 923 ac_cv_search_crypt=$ac_res
12642     fi
12643 michael 967 rm -f core conftest.err conftest.$ac_objext \
12644     conftest$ac_exeext
12645     if test "${ac_cv_search_crypt+set}" = set; then :
12646 michael 923 break
12647     fi
12648     done
12649 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12650    
12651 michael 923 else
12652     ac_cv_search_crypt=no
12653     fi
12654     rm conftest.$ac_ext
12655     LIBS=$ac_func_search_save_LIBS
12656     fi
12657 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12658 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
12659 michael 923 ac_res=$ac_cv_search_crypt
12660 michael 967 if test "$ac_res" != no; then :
12661 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12662    
12663     fi
12664    
12665    
12666    
12667    
12668     # Check whether --with-zlib-path was given.
12669 michael 967 if test "${with_zlib_path+set}" = set; then :
12670 michael 923 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12671     fi
12672    
12673    
12674     # Check whether --enable-zlib was given.
12675 michael 967 if test "${enable_zlib+set}" = set; then :
12676 michael 923 enableval=$enable_zlib; zlib=$enableval
12677     else
12678     zlib=yes
12679     fi
12680    
12681    
12682 michael 1010 if test "$zlib" = "yes"; then :
12683    
12684 michael 967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12685     if test "x$ac_cv_header_zlib_h" = x""yes; then :
12686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12687 db 941 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12688 michael 967 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12689 db 941 $as_echo_n "(cached) " >&6
12690 michael 923 else
12691     ac_check_lib_save_LIBS=$LIBS
12692     LIBS="-lz $LIBS"
12693 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 michael 923 /* end confdefs.h. */
12695    
12696     /* Override any GCC internal prototype to avoid an error.
12697     Use char because int might match the return type of a GCC
12698     builtin and then its argument prototype would still apply. */
12699     #ifdef __cplusplus
12700     extern "C"
12701     #endif
12702     char zlibVersion ();
12703     int
12704     main ()
12705     {
12706     return zlibVersion ();
12707     ;
12708     return 0;
12709     }
12710     _ACEOF
12711 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12712 michael 923 ac_cv_lib_z_zlibVersion=yes
12713     else
12714 michael 967 ac_cv_lib_z_zlibVersion=no
12715 michael 923 fi
12716 michael 967 rm -f core conftest.err conftest.$ac_objext \
12717     conftest$ac_exeext conftest.$ac_ext
12718 michael 923 LIBS=$ac_check_lib_save_LIBS
12719     fi
12720 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12721 db 941 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12722 michael 967 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12723 michael 923
12724     LIBS="-lz $LIBS"
12725    
12726 michael 967 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12727 michael 923
12728    
12729     else
12730     zlib=no
12731     fi
12732    
12733    
12734     else
12735     zlib=no
12736     fi
12737    
12738    
12739 michael 1010
12740 michael 923 fi
12741    
12742    
12743 michael 1009 # Check whether --with-libpcre-path was given.
12744     if test "${with_libpcre_path+set}" = set; then :
12745     withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12746     fi
12747    
12748    
12749     # Check whether --enable-libpcre was given.
12750     if test "${enable_libpcre+set}" = set; then :
12751     enableval=$enable_libpcre; libpcre=$enableval
12752     else
12753     libpcre=yes
12754     fi
12755    
12756    
12757 michael 1010 if test "$libpcre" = "yes"; then :
12758    
12759 michael 1009 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12760     if test "x$ac_cv_header_pcre_h" = x""yes; then :
12761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12762     $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12763     if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12764     $as_echo_n "(cached) " >&6
12765     else
12766     ac_check_lib_save_LIBS=$LIBS
12767     LIBS="-lpcre $LIBS"
12768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769     /* end confdefs.h. */
12770    
12771     /* Override any GCC internal prototype to avoid an error.
12772     Use char because int might match the return type of a GCC
12773     builtin and then its argument prototype would still apply. */
12774     #ifdef __cplusplus
12775     extern "C"
12776     #endif
12777     char pcre_study ();
12778     int
12779     main ()
12780     {
12781     return pcre_study ();
12782     ;
12783     return 0;
12784     }
12785     _ACEOF
12786     if ac_fn_c_try_link "$LINENO"; then :
12787     ac_cv_lib_pcre_pcre_study=yes
12788     else
12789     ac_cv_lib_pcre_pcre_study=no
12790     fi
12791     rm -f core conftest.err conftest.$ac_objext \
12792     conftest$ac_exeext conftest.$ac_ext
12793     LIBS=$ac_check_lib_save_LIBS
12794     fi
12795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12796     $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12797     if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12798    
12799     LIBS="-lpcre $LIBS"
12800    
12801     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12802    
12803    
12804     else
12805     libpcre=no
12806     fi
12807    
12808    
12809     else
12810     libpcre=no
12811     fi
12812    
12813    
12814 michael 1010
12815 michael 1009 fi
12816     if test "$libpcre" = yes; then
12817     ENABLE_PCRE_TRUE=
12818     ENABLE_PCRE_FALSE='#'
12819     else
12820     ENABLE_PCRE_TRUE='#'
12821     ENABLE_PCRE_FALSE=
12822     fi
12823    
12824    
12825    
12826 michael 912 # Check whether --enable-openssl was given.
12827 michael 967 if test "${enable_openssl+set}" = set; then :
12828 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
12829     else
12830     cf_enable_openssl="auto"
12831     fi
12832    
12833 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12834 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
12835 michael 912 if test "$cf_enable_openssl" != "no"; then
12836     cf_openssl_basedir=""
12837     if test "$cf_enable_openssl" != "auto" &&
12838     test "$cf_enable_openssl" != "yes"; then
12839     cf_openssl_basedir="${cf_enable_openssl}"
12840     else
12841     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12842     /opt /opt/openssl /usr/local/openssl; do
12843     if test -f "${dirs}/include/openssl/opensslv.h"; then
12844     cf_openssl_basedir="${dirs}"
12845     break
12846     fi
12847     done
12848     unset dirs
12849     fi
12850    
12851     if test ! -z "$cf_openssl_basedir"; then
12852     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12853     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12854     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12855     else
12856     cf_openssl_basedir=""
12857     fi
12858     else
12859     if test -f "/usr/include/openssl/opensslv.h"; then
12860     cf_openssl_basedir="/usr"
12861     fi
12862     fi
12863    
12864     if test ! -z "$cf_openssl_basedir"; then
12865     LIBS="-lcrypto -lssl $LIBS"
12866 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12867 db 941 $as_echo "$cf_openssl_basedir" >&6; }
12868 michael 912 cf_enable_openssl="yes"
12869 michael 924
12870 michael 967 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12871 michael 912
12872     else
12873 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12874     $as_echo "not found. Please check your path." >&6; }
12875 michael 912 cf_enable_openssl="no"
12876     fi
12877     unset cf_openssl_basedir
12878     else
12879 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12880 db 941 $as_echo "disabled" >&6; }
12881 michael 912 fi
12882 michael 1015
12883     if test "$cf_enable_openssl" != "no"; then :
12884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12885     $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12886     if test "$cross_compiling" = yes; then :
12887     cf_openssl_version_ok=no
12888     else
12889     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890     /* end confdefs.h. */
12891    
12892     #include <openssl/opensslv.h>
12893     #include <stdlib.h>
12894     int
12895     main ()
12896     {
12897     exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12898     ;
12899     return 0;
12900     }
12901     _ACEOF
12902     if ac_fn_c_try_run "$LINENO"; then :
12903     cf_openssl_version_ok=yes
12904     else
12905     cf_openssl_version_ok=no
12906     fi
12907     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12908     conftest.$ac_objext conftest.beam conftest.$ac_ext
12909     fi
12910    
12911    
12912     if test "$cf_openssl_version_ok" = "yes"; then :
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12914     $as_echo "found" >&6; }
12915    
12916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12917     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12918     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12919     $as_echo_n "(cached) " >&6
12920     else
12921     ac_check_lib_save_LIBS=$LIBS
12922     LIBS="-lcrypto $LIBS"
12923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924     /* end confdefs.h. */
12925    
12926     /* Override any GCC internal prototype to avoid an error.
12927     Use char because int might match the return type of a GCC
12928     builtin and then its argument prototype would still apply. */
12929     #ifdef __cplusplus
12930     extern "C"
12931     #endif
12932     char RSA_free ();
12933     int
12934     main ()
12935     {
12936     return RSA_free ();
12937     ;
12938     return 0;
12939     }
12940     _ACEOF
12941     if ac_fn_c_try_link "$LINENO"; then :
12942     ac_cv_lib_crypto_RSA_free=yes
12943     else
12944     ac_cv_lib_crypto_RSA_free=no
12945     fi
12946     rm -f core conftest.err conftest.$ac_objext \
12947     conftest$ac_exeext conftest.$ac_ext
12948     LIBS=$ac_check_lib_save_LIBS
12949     fi
12950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12951     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12952     if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12953     cat >>confdefs.h <<_ACEOF
12954     #define HAVE_LIBCRYPTO 1
12955     _ACEOF
12956    
12957     LIBS="-lcrypto $LIBS"
12958    
12959     fi
12960    
12961     if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12962     for ac_func in EVP_bf_cfb \
12963     EVP_cast5_cfb \
12964     EVP_idea_cfb \
12965     EVP_rc5_32_12_16_cfb \
12966     EVP_des_ede3_cfb \
12967     EVP_des_cfb
12968     do :
12969     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12970     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12971     eval as_val=\$$as_ac_var
12972     if test "x$as_val" = x""yes; then :
12973     cat >>confdefs.h <<_ACEOF
12974     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975     _ACEOF
12976    
12977     fi
12978     done
12979    
12980     fi
12981    
12982     else
12983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
12984     $as_echo "no - OpenSSL support disabled" >&6; }
12985     cf_enable_openssl="no"
12986     fi
12987     fi
12988    
12989 michael 924 if test "$cf_enable_openssl" = yes; then
12990 michael 912 ENABLE_SSL_TRUE=
12991     ENABLE_SSL_FALSE='#'
12992     else
12993     ENABLE_SSL_TRUE='#'
12994     ENABLE_SSL_FALSE=
12995     fi
12996    
12997    
12998    
12999 michael 924 # Check whether --enable-assert was given.
13000 michael 967 if test "${enable_assert+set}" = set; then :
13001 michael 924 enableval=$enable_assert; assert=$enableval
13002     else
13003     assert=no
13004     fi
13005    
13006    
13007 michael 1010 if test "$assert" = "no"; then :
13008    
13009 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13010 michael 925
13011 michael 924 fi
13012    
13013    
13014 michael 925 # Check whether --enable-small-net was given.
13015 michael 967 if test "${enable_small_net+set}" = set; then :
13016 michael 925 enableval=$enable_small_net; small_net=$enableval
13017     else
13018     small_net=no
13019     fi
13020    
13021    
13022 michael 1015 if test "$small_net" = "yes"; then :
13023 michael 925
13024 michael 1015
13025 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13026 michael 925
13027    
13028 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13029 michael 925
13030    
13031 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13032 michael 925
13033    
13034 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13035 michael 925
13036    
13037 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13038 michael 925
13039    
13040 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13041 michael 925
13042    
13043 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13044 michael 925
13045    
13046 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13047 michael 925
13048 michael 998
13049     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13050    
13051    
13052     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13053    
13054 michael 925 else
13055    
13056 michael 1015
13057    
13058 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13059 michael 925
13060    
13061 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13062 michael 925
13063    
13064 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13065 michael 925
13066    
13067 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13068 michael 925
13069    
13070 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13071 michael 925
13072    
13073 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13074 michael 925
13075    
13076 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13077 michael 925
13078    
13079 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13080 michael 925
13081 michael 998
13082     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13083    
13084    
13085     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13086    
13087 michael 925 fi
13088    
13089 db 941
13090 michael 912 # Argument processing.
13091    
13092     desired_iopoll_mechanism="none"
13093     # Check whether --enable-kqueue was given.
13094 michael 967 if test "${enable_kqueue+set}" = set; then :
13095 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13096     fi
13097    
13098     # Check whether --enable-epoll was given.
13099 michael 967 if test "${enable_epoll+set}" = set; then :
13100 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13101     fi
13102    
13103     # Check whether --enable-devpoll was given.
13104 michael 967 if test "${enable_devpoll+set}" = set; then :
13105 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13106     fi
13107    
13108     # Check whether --enable-rtsigio was given.
13109 michael 967 if test "${enable_rtsigio+set}" = set; then :
13110 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13111     fi
13112    
13113     # Check whether --enable-poll was given.
13114 michael 967 if test "${enable_poll+set}" = set; then :
13115 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13116     fi
13117    
13118     # Check whether --enable-select was given.
13119 michael 967 if test "${enable_select+set}" = set; then :
13120 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13121     fi
13122    
13123 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13124 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13125 michael 912 iopoll_mechanism_none=0
13126    
13127     cat >>confdefs.h <<_ACEOF
13128     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13129     _ACEOF
13130    
13131     iopoll_mechanism_kqueue=1
13132    
13133     cat >>confdefs.h <<_ACEOF
13134     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13135     _ACEOF
13136    
13137 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 michael 912 /* end confdefs.h. */
13139     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13140     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13141     #define kevent innocuous_kevent
13142    
13143     /* System header to define __stub macros and hopefully few prototypes,
13144     which can conflict with char kevent (); below.
13145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13146     <limits.h> exists even on freestanding compilers. */
13147    
13148     #ifdef __STDC__
13149     # include <limits.h>
13150     #else
13151     # include <assert.h>
13152     #endif
13153    
13154     #undef kevent
13155    
13156     /* Override any GCC internal prototype to avoid an error.
13157     Use char because int might match the return type of a GCC
13158     builtin and then its argument prototype would still apply. */
13159     #ifdef __cplusplus
13160     extern "C"
13161     #endif
13162     char kevent ();
13163     /* The GNU C library defines this for functions which it implements
13164     to always fail with ENOSYS. Some functions are actually named
13165     something starting with __ and the normal name is an alias. */
13166     #if defined __stub_kevent || defined __stub___kevent
13167     choke me
13168     #endif
13169    
13170     int
13171     main ()
13172     {
13173     return kevent ();
13174     ;
13175     return 0;
13176     }
13177     _ACEOF
13178 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13179 michael 912 is_kqueue_mechanism_available="yes"
13180     else
13181 michael 967 is_kqueue_mechanism_available="no"
13182 michael 912 fi
13183 michael 967 rm -f core conftest.err conftest.$ac_objext \
13184     conftest$ac_exeext conftest.$ac_ext
13185 michael 912 iopoll_mechanism_epoll=2
13186    
13187     cat >>confdefs.h <<_ACEOF
13188     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13189     _ACEOF
13190    
13191 michael 967 if test "$cross_compiling" = yes; then :
13192     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13193 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13194 michael 967 as_fn_error "cannot run test program while cross compiling
13195     See \`config.log' for more details." "$LINENO" 5; }
13196 michael 912 else
13197 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198     /* end confdefs.h. */
13199 michael 912
13200     #include <sys/epoll.h>
13201     #include <sys/syscall.h>
13202     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13203     #if !defined(__NR_epoll_create)
13204     #if defined(__ia64__)
13205     #define __NR_epoll_create 1243
13206     #elif defined(__x86_64__)
13207     #define __NR_epoll_create 214
13208     #elif defined(__sparc64__) || defined(__sparc__)
13209     #define __NR_epoll_create 193
13210     #elif defined(__s390__) || defined(__m68k__)
13211     #define __NR_epoll_create 249
13212     #elif defined(__ppc64__) || defined(__ppc__)
13213     #define __NR_epoll_create 236
13214     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13215     #define __NR_epoll_create 224
13216     #elif defined(__alpha__)
13217     #define __NR_epoll_create 407
13218     #elif defined(__sh64__)
13219     #define __NR_epoll_create 282
13220     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13221     #define __NR_epoll_create 254
13222     #else
13223     #error No system call numbers defined for epoll family.
13224     #endif
13225     #endif
13226     _syscall1(int, epoll_create, int, size)
13227     #endif
13228     main() { return epoll_create(256) == -1 ? 1 : 0; }
13229    
13230     _ACEOF
13231 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13232 michael 912 is_epoll_mechanism_available="yes"
13233     else
13234 michael 967 is_epoll_mechanism_available="no"
13235 michael 912 fi
13236 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13237     conftest.$ac_objext conftest.beam conftest.$ac_ext
13238 michael 912 fi
13239    
13240     iopoll_mechanism_devpoll=3
13241    
13242     cat >>confdefs.h <<_ACEOF
13243     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13244     _ACEOF
13245    
13246 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 michael 912 /* end confdefs.h. */
13248     #include <devpoll.h>
13249     int
13250     main ()
13251     {
13252    
13253     ;
13254     return 0;
13255     }
13256     _ACEOF
13257 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13258 michael 912 is_devpoll_mechanism_available="yes"
13259     else
13260 michael 967 is_devpoll_mechanism_available="no"
13261 michael 912 fi
13262     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263     if test "$is_devpoll_mechanism_available" = "yes" ; then
13264    
13265 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13266 michael 912
13267     fi
13268 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 michael 912 /* end confdefs.h. */
13270     #include <sys/devpoll.h>
13271     int
13272     main ()
13273     {
13274    
13275     ;
13276     return 0;
13277     }
13278     _ACEOF
13279 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13280 michael 912 is_devpoll_mechanism_available="yes"
13281     else
13282 michael 967 is_devpoll_mechanism_available="no"
13283 michael 912 fi
13284     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285     if test "$is_devpoll_mechanism_available" = "yes" ; then
13286    
13287 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13288 michael 912
13289     fi
13290     iopoll_mechanism_rtsigio=4
13291    
13292     cat >>confdefs.h <<_ACEOF
13293     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13294     _ACEOF
13295    
13296 michael 967 if test "$cross_compiling" = yes; then :
13297     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13298 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13299 michael 967 as_fn_error "cannot run test program while cross compiling
13300     See \`config.log' for more details." "$LINENO" 5; }
13301 michael 912 else
13302 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 michael 912 /* end confdefs.h. */
13304    
13305     #include <fcntl.h>
13306     #ifdef F_SETSIG
13307     main () { return 0; } /* F_SETSIG defined */
13308     #else
13309     main () { return 1; } /* F_SETSIG not defined */
13310     #endif
13311    
13312     int
13313     main ()
13314     {
13315    
13316     ;
13317     return 0;
13318     }
13319     _ACEOF
13320 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13321 michael 912 is_rtsigio_mechanism_available="yes"
13322     else
13323 michael 967 is_rtsigio_mechanism_available="no"
13324 michael 912 fi
13325 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13326     conftest.$ac_objext conftest.beam conftest.$ac_ext
13327 michael 912 fi
13328    
13329     iopoll_mechanism_poll=5
13330    
13331     cat >>confdefs.h <<_ACEOF
13332     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13333     _ACEOF
13334    
13335 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 michael 912 /* end confdefs.h. */
13337     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13338     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13339     #define poll innocuous_poll
13340    
13341     /* System header to define __stub macros and hopefully few prototypes,
13342     which can conflict with char poll (); below.
13343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13344     <limits.h> exists even on freestanding compilers. */
13345    
13346     #ifdef __STDC__
13347     # include <limits.h>
13348     #else
13349     # include <assert.h>
13350     #endif
13351    
13352     #undef poll
13353    
13354     /* Override any GCC internal prototype to avoid an error.
13355     Use char because int might match the return type of a GCC
13356     builtin and then its argument prototype would still apply. */
13357     #ifdef __cplusplus
13358     extern "C"
13359     #endif
13360     char poll ();
13361     /* The GNU C library defines this for functions which it implements
13362     to always fail with ENOSYS. Some functions are actually named
13363     something starting with __ and the normal name is an alias. */
13364     #if defined __stub_poll || defined __stub___poll
13365     choke me
13366     #endif
13367    
13368     int
13369     main ()
13370     {
13371     return poll ();
13372     ;
13373     return 0;
13374     }
13375     _ACEOF
13376 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13377 michael 912 is_poll_mechanism_available="yes"
13378     else
13379 michael 967 is_poll_mechanism_available="no"
13380 michael 912 fi
13381 michael 967 rm -f core conftest.err conftest.$ac_objext \
13382     conftest$ac_exeext conftest.$ac_ext
13383 michael 912 iopoll_mechanism_select=6
13384    
13385     cat >>confdefs.h <<_ACEOF
13386     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13387     _ACEOF
13388    
13389 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 michael 912 /* end confdefs.h. */
13391     /* Define select to an innocuous variant, in case <limits.h> declares select.
13392     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13393     #define select innocuous_select
13394    
13395     /* System header to define __stub macros and hopefully few prototypes,
13396     which can conflict with char select (); below.
13397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13398     <limits.h> exists even on freestanding compilers. */
13399    
13400     #ifdef __STDC__
13401     # include <limits.h>
13402     #else
13403     # include <assert.h>
13404     #endif
13405    
13406     #undef select
13407    
13408     /* Override any GCC internal prototype to avoid an error.
13409     Use char because int might match the return type of a GCC
13410     builtin and then its argument prototype would still apply. */
13411     #ifdef __cplusplus
13412     extern "C"
13413     #endif
13414     char select ();
13415     /* The GNU C library defines this for functions which it implements
13416     to always fail with ENOSYS. Some functions are actually named
13417     something starting with __ and the normal name is an alias. */
13418     #if defined __stub_select || defined __stub___select
13419     choke me
13420     #endif
13421    
13422     int
13423     main ()
13424     {
13425     return select ();
13426     ;
13427     return 0;
13428     }
13429     _ACEOF
13430 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13431 michael 912 is_select_mechanism_available="yes"
13432     else
13433 michael 967 is_select_mechanism_available="no"
13434 michael 912 fi
13435 michael 967 rm -f core conftest.err conftest.$ac_objext \
13436     conftest$ac_exeext conftest.$ac_ext
13437 michael 912 optimal_iopoll_mechanism="none"
13438     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13439     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13440     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13441     optimal_iopoll_mechanism="$mechanism"
13442     break
13443     fi
13444     done
13445     if test "$desired_iopoll_mechanism" = "none" ; then
13446     if test "$optimal_iopoll_mechanism" = "none" ; then
13447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13448 db 941 $as_echo "none" >&6; }
13449 michael 967 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13450 michael 912 else
13451     selected_iopoll_mechanism=$optimal_iopoll_mechanism
13452 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13453 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13454 michael 912 fi
13455     else
13456     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13457     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13458     selected_iopoll_mechanism=$desired_iopoll_mechanism
13459 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13460 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13461 michael 912 else
13462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13463 db 941 $as_echo "none" >&6; }
13464 michael 967 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13465 michael 912 fi
13466     fi
13467     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13468    
13469     cat >>confdefs.h <<_ACEOF
13470     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13471     _ACEOF
13472    
13473    
13474    
13475    
13476     # Check whether --with-nicklen was given.
13477 michael 967 if test "${with_nicklen+set}" = set; then :
13478 michael 912 withval=$with_nicklen; nicklen="$withval"
13479     else
13480     nicklen="9"
13481     fi
13482    
13483    
13484     cat >>confdefs.h <<_ACEOF
13485     #define NICKLEN ($nicklen+1)
13486     _ACEOF
13487    
13488    
13489    
13490    
13491     # Check whether --with-topiclen was given.
13492 michael 967 if test "${with_topiclen+set}" = set; then :
13493 michael 912 withval=$with_topiclen; topiclen="$withval"
13494     else
13495     topiclen="160"
13496     fi
13497    
13498    
13499     cat >>confdefs.h <<_ACEOF
13500 michael 1015 #define TOPICLEN ($topiclen)
13501 michael 912 _ACEOF
13502    
13503    
13504    
13505    
13506     # Check whether --with-syslog-facility was given.
13507 michael 967 if test "${with_syslog_facility+set}" = set; then :
13508 michael 912 withval=$with_syslog_facility; syslog_facility="$withval"
13509     else
13510     syslog_facility="LOG_LOCAL4"
13511     fi
13512    
13513    
13514     cat >>confdefs.h <<_ACEOF
13515     #define LOG_FACILITY $syslog_facility
13516     _ACEOF
13517    
13518    
13519    
13520     # Check whether --enable-efnet was given.
13521 michael 967 if test "${enable_efnet+set}" = set; then :
13522 michael 912 enableval=$enable_efnet; efnet="$enableval"
13523     else
13524     efnet="no"
13525     fi
13526    
13527     if test "$efnet" = "yes" ; then
13528     use_efnet="yes"
13529    
13530 michael 967 $as_echo "#define EFNET 1" >>confdefs.h
13531 michael 912
13532    
13533 michael 967 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13534 michael 912
13535     else
13536     use_efnet="no"
13537     fi
13538     if test "$use_efnet" = "yes"; then
13539     EFNET_TRUE=
13540     EFNET_FALSE='#'
13541     else
13542     EFNET_TRUE='#'
13543     EFNET_FALSE=
13544     fi
13545    
13546    
13547    
13548     # Check whether --enable-halfops was given.
13549 michael 967 if test "${enable_halfops+set}" = set; then :
13550 michael 912 enableval=$enable_halfops; halfops="$enableval"
13551     else
13552     halfops="no"
13553     fi
13554    
13555     if test "$halfops" = "yes" ; then
13556    
13557 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
13558 michael 912
13559     fi
13560    
13561    
13562     # Check whether --enable-debugging was given.
13563 michael 967 if test "${enable_debugging+set}" = set; then :
13564 michael 912 enableval=$enable_debugging; debugging="$enableval"
13565     else
13566     debugging="no"
13567     fi
13568    
13569     if test "$debugging" = "yes" ; then
13570    
13571 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
13572 michael 912
13573 michael 1017 CFLAGS="-Wall -g -O0"
13574 michael 912 else
13575    
13576 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13577 michael 912
13578     fi
13579    
13580    
13581     # Check whether --enable-warnings was given.
13582 michael 967 if test "${enable_warnings+set}" = set; then :
13583 michael 912 enableval=$enable_warnings; warnings="$enableval"
13584     else
13585     warnings="no"
13586     fi
13587    
13588     if test "$warnings" = "yes" ; then
13589 michael 1013 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
13590 michael 912 fi
13591    
13592    
13593 michael 967 for ac_header in syslog.h sys/syslog.h
13594     do :
13595     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13596     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13597     eval as_val=\$$as_ac_Header
13598     if test "x$as_val" = x""yes; then :
13599 michael 912 cat >>confdefs.h <<_ACEOF
13600 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13601 michael 912 _ACEOF
13602    
13603     fi
13604    
13605     done
13606    
13607     # Check whether --enable-syslog was given.
13608 michael 967 if test "${enable_syslog+set}" = set; then :
13609 michael 912 enableval=$enable_syslog; syslog="$enableval"
13610     else
13611     syslog="no"
13612     fi
13613    
13614     if test "$enableval" != "no" ; then
13615     for option in $enableval ; do
13616     case "$option" in
13617     users)
13618 michael 967 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13619 michael 912 ;;
13620     oper)
13621 michael 967 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13622 michael 912 ;;
13623     yes) : ;;
13624 michael 967 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13625 michael 912 esac
13626     done
13627    
13628 michael 967 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13629 michael 912
13630     fi
13631    
13632    
13633    
13634     prefix_NONE=
13635     exec_prefix_NONE=
13636     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13637     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13638     eval ac_define_dir="\"$prefix\""
13639     eval ac_define_dir="\"$ac_define_dir\""
13640     PREFIX="$ac_define_dir"
13641    
13642    
13643     cat >>confdefs.h <<_ACEOF
13644     #define PREFIX "$ac_define_dir"
13645     _ACEOF
13646    
13647     test "$prefix_NONE" && prefix=NONE
13648     test "$exec_prefix_NONE" && exec_prefix=NONE
13649    
13650    
13651     prefix_NONE=
13652     exec_prefix_NONE=
13653     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13654     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13655     eval ac_define_dir="\"$sysconfdir\""
13656     eval ac_define_dir="\"$ac_define_dir\""
13657     SYSCONFDIR="$ac_define_dir"
13658    
13659    
13660     cat >>confdefs.h <<_ACEOF
13661     #define SYSCONFDIR "$ac_define_dir"
13662     _ACEOF
13663    
13664     test "$prefix_NONE" && prefix=NONE
13665     test "$exec_prefix_NONE" && exec_prefix=NONE
13666    
13667    
13668     prefix_NONE=
13669     exec_prefix_NONE=
13670     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13671     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13672     eval ac_define_dir="\"$libdir\""
13673     eval ac_define_dir="\"$ac_define_dir\""
13674     LIBDIR="$ac_define_dir"
13675    
13676    
13677     cat >>confdefs.h <<_ACEOF
13678     #define LIBDIR "$ac_define_dir"
13679     _ACEOF
13680    
13681     test "$prefix_NONE" && prefix=NONE
13682     test "$exec_prefix_NONE" && exec_prefix=NONE
13683    
13684    
13685     prefix_NONE=
13686     exec_prefix_NONE=
13687     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13688     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13689     eval ac_define_dir="\"$datadir\""
13690     eval ac_define_dir="\"$ac_define_dir\""
13691     DATADIR="$ac_define_dir"
13692    
13693    
13694     cat >>confdefs.h <<_ACEOF
13695     #define DATADIR "$ac_define_dir"
13696     _ACEOF
13697    
13698     test "$prefix_NONE" && prefix=NONE
13699     test "$exec_prefix_NONE" && exec_prefix=NONE
13700    
13701    
13702     prefix_NONE=
13703     exec_prefix_NONE=
13704     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13705     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13706     eval ac_define_dir="\"$localstatedir\""
13707     eval ac_define_dir="\"$ac_define_dir\""
13708     LOCALSTATEDIR="$ac_define_dir"
13709    
13710    
13711     cat >>confdefs.h <<_ACEOF
13712     #define LOCALSTATEDIR "$ac_define_dir"
13713     _ACEOF
13714    
13715     test "$prefix_NONE" && prefix=NONE
13716     test "$exec_prefix_NONE" && exec_prefix=NONE
13717    
13718 db 941
13719 michael 1068 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13720 michael 912
13721    
13722     cat >confcache <<\_ACEOF
13723     # This file is a shell script that caches the results of configure
13724     # tests run on this system so they can be shared between configure
13725     # scripts and configure runs, see configure's option --config-cache.
13726     # It is not useful on other systems. If it contains results you don't
13727     # want to keep, you may remove or edit it.
13728     #
13729     # config.status only pays attention to the cache file if you give it
13730     # the --recheck option to rerun configure.
13731     #
13732     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13733     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13734     # following values.
13735    
13736     _ACEOF
13737    
13738     # The following way of writing the cache mishandles newlines in values,
13739     # but we know of no workaround that is simple, portable, and efficient.
13740     # So, we kill variables containing newlines.
13741     # Ultrix sh set writes to stderr and can't be redirected directly,
13742     # and sets the high bit in the cache file unless we assign to the vars.
13743     (
13744     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13745     eval ac_val=\$$ac_var
13746     case $ac_val in #(
13747     *${as_nl}*)
13748     case $ac_var in #(
13749 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13750 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13751 michael 912 esac
13752     case $ac_var in #(
13753     _ | IFS | as_nl) ;; #(
13754 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13755 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
13756 michael 912 esac ;;
13757     esac
13758     done
13759    
13760     (set) 2>&1 |
13761     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13762     *${as_nl}ac_space=\ *)
13763 michael 967 # `set' does not quote correctly, so add quotes: double-quote
13764     # substitution turns \\\\ into \\, and sed turns \\ into \.
13765 michael 912 sed -n \
13766     "s/'/'\\\\''/g;
13767     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13768     ;; #(
13769     *)
13770     # `set' quotes correctly as required by POSIX, so do not add quotes.
13771     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13772     ;;
13773     esac |
13774     sort
13775     ) |
13776     sed '
13777     /^ac_cv_env_/b end
13778     t clear
13779     :clear
13780     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13781     t end
13782     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13783     :end' >>confcache
13784     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13785     if test -w "$cache_file"; then
13786     test "x$cache_file" != "x/dev/null" &&
13787 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13788 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13789 michael 912 cat confcache >$cache_file
13790     else
13791 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13792 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13793 michael 912 fi
13794     fi
13795     rm -f confcache
13796    
13797     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13798     # Let make expand exec_prefix.
13799     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13800    
13801     DEFS=-DHAVE_CONFIG_H
13802    
13803     ac_libobjs=
13804     ac_ltlibobjs=
13805     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13806     # 1. Remove the extension, and $U if already installed.
13807     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13808 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13809 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13810     # will be set to the directory where LIBOBJS objects are built.
13811 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13812     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13813 michael 912 done
13814     LIBOBJS=$ac_libobjs
13815    
13816     LTLIBOBJS=$ac_ltlibobjs
13817    
13818    
13819 michael 945 if test -n "$EXEEXT"; then
13820     am__EXEEXT_TRUE=
13821     am__EXEEXT_FALSE='#'
13822     else
13823     am__EXEEXT_TRUE='#'
13824     am__EXEEXT_FALSE=
13825     fi
13826    
13827 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13828 michael 967 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13829     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13830 michael 912 fi
13831     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13832 michael 967 as_fn_error "conditional \"AMDEP\" was never defined.
13833     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13834 michael 912 fi
13835     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13836 michael 967 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13837     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13838 michael 912 fi
13839 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13840 michael 967 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13841     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13842 michael 912 fi
13843 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13844 michael 967 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13845     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13846 michael 945 fi
13847     LT_CONFIG_H=config.h
13848 michael 942
13849 michael 945 _ltdl_libobjs=
13850     _ltdl_ltlibobjs=
13851     if test -n "$_LT_LIBOBJS"; then
13852     # Remove the extension.
13853     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13854     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13855     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13856     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13857     done
13858     fi
13859     ltdl_LIBOBJS=$_ltdl_libobjs
13860    
13861     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13862    
13863    
13864    
13865 michael 1009 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13866     as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13867     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13868     fi
13869 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13870 michael 967 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13871     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13872 michael 912 fi
13873     if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13874 michael 967 as_fn_error "conditional \"EFNET\" was never defined.
13875     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13876 michael 912 fi
13877    
13878     : ${CONFIG_STATUS=./config.status}
13879 db 941 ac_write_fail=0
13880 michael 912 ac_clean_files_save=$ac_clean_files
13881     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13882 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13883 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13884 michael 967 as_write_fail=0
13885     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13886 michael 912 #! $SHELL
13887     # Generated by $as_me.
13888     # Run this file to recreate the current configuration.
13889     # Compiler output produced by configure, useful for debugging
13890     # configure, is in config.log if it exists.
13891    
13892     debug=false
13893     ac_cs_recheck=false
13894     ac_cs_silent=false
13895 michael 967
13896 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
13897 michael 967 export SHELL
13898     _ASEOF
13899     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13900     ## -------------------- ##
13901     ## M4sh Initialization. ##
13902     ## -------------------- ##
13903 michael 912
13904     # Be more Bourne compatible
13905     DUALCASE=1; export DUALCASE # for MKS sh
13906 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13907 michael 912 emulate sh
13908     NULLCMD=:
13909 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13910 michael 912 # is contrary to our usage. Disable this feature.
13911     alias -g '${1+"$@"}'='"$@"'
13912     setopt NO_GLOB_SUBST
13913     else
13914 michael 967 case `(set -o) 2>/dev/null` in #(
13915     *posix*) :
13916     set -o posix ;; #(
13917     *) :
13918     ;;
13919 michael 912 esac
13920     fi
13921    
13922    
13923 db 941 as_nl='
13924     '
13925     export as_nl
13926     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13927     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13928     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13929     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13930 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
13931     # but without wasting forks for bash or zsh.
13932     if test -z "$BASH_VERSION$ZSH_VERSION" \
13933     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13934     as_echo='print -r --'
13935     as_echo_n='print -rn --'
13936     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13937 db 941 as_echo='printf %s\n'
13938     as_echo_n='printf %s'
13939     else
13940     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13941     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13942     as_echo_n='/usr/ucb/echo -n'
13943 michael 912 else
13944 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13945     as_echo_n_body='eval
13946     arg=$1;
13947 michael 967 case $arg in #(
13948 db 941 *"$as_nl"*)
13949     expr "X$arg" : "X\\(.*\\)$as_nl";
13950     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13951     esac;
13952     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13953     '
13954     export as_echo_n_body
13955     as_echo_n='sh -c $as_echo_n_body as_echo'
13956 michael 912 fi
13957 db 941 export as_echo_body
13958     as_echo='sh -c $as_echo_body as_echo'
13959 michael 912 fi
13960    
13961 db 941 # The user is always right.
13962     if test "${PATH_SEPARATOR+set}" != set; then
13963     PATH_SEPARATOR=:
13964     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13965     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13966     PATH_SEPARATOR=';'
13967     }
13968     fi
13969    
13970 michael 912
13971     # IFS
13972     # We need space, tab and new line, in precisely that order. Quoting is
13973     # there to prevent editors from complaining about space-tab.
13974     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13975     # splitting by setting IFS to empty value.)
13976     IFS=" "" $as_nl"
13977    
13978     # Find who we are. Look in the path if we contain no directory separator.
13979 michael 967 case $0 in #((
13980 michael 912 *[\\/]* ) as_myself=$0 ;;
13981     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982     for as_dir in $PATH
13983     do
13984     IFS=$as_save_IFS
13985     test -z "$as_dir" && as_dir=.
13986 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13987     done
13988 michael 912 IFS=$as_save_IFS
13989    
13990     ;;
13991     esac
13992     # We did not find ourselves, most probably we were run as `sh COMMAND'
13993     # in which case we are not to be found in the path.
13994     if test "x$as_myself" = x; then
13995     as_myself=$0
13996     fi
13997     if test ! -f "$as_myself"; then
13998 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13999 michael 967 exit 1
14000 michael 912 fi
14001    
14002 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14003     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14004     # suppresses any "Segmentation fault" message there. '((' could
14005     # trigger a bug in pdksh 5.2.14.
14006     for as_var in BASH_ENV ENV MAIL MAILPATH
14007     do eval test x\${$as_var+set} = xset \
14008     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14009 michael 912 done
14010     PS1='$ '
14011     PS2='> '
14012     PS4='+ '
14013    
14014     # NLS nuisances.
14015 db 941 LC_ALL=C
14016     export LC_ALL
14017     LANGUAGE=C
14018     export LANGUAGE
14019 michael 912
14020 michael 967 # CDPATH.
14021     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14022    
14023    
14024     # as_fn_error ERROR [LINENO LOG_FD]
14025     # ---------------------------------
14026     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14027     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14028     # script with status $?, using 1 if that was 0.
14029     as_fn_error ()
14030     {
14031     as_status=$?; test $as_status -eq 0 && as_status=1
14032     if test "$3"; then
14033     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14034     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14035     fi
14036     $as_echo "$as_me: error: $1" >&2
14037     as_fn_exit $as_status
14038     } # as_fn_error
14039    
14040    
14041     # as_fn_set_status STATUS
14042     # -----------------------
14043     # Set $? to STATUS, without forking.
14044     as_fn_set_status ()
14045     {
14046     return $1
14047     } # as_fn_set_status
14048    
14049     # as_fn_exit STATUS
14050     # -----------------
14051     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14052     as_fn_exit ()
14053     {
14054     set +e
14055     as_fn_set_status $1
14056     exit $1
14057     } # as_fn_exit
14058    
14059     # as_fn_unset VAR
14060     # ---------------
14061     # Portably unset VAR.
14062     as_fn_unset ()
14063     {
14064     { eval $1=; unset $1;}
14065     }
14066     as_unset=as_fn_unset
14067     # as_fn_append VAR VALUE
14068     # ----------------------
14069     # Append the text in VALUE to the end of the definition contained in VAR. Take
14070     # advantage of any shell optimizations that allow amortized linear growth over
14071     # repeated appends, instead of the typical quadratic growth present in naive
14072     # implementations.
14073     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14074     eval 'as_fn_append ()
14075     {
14076     eval $1+=\$2
14077     }'
14078     else
14079     as_fn_append ()
14080     {
14081     eval $1=\$$1\$2
14082     }
14083     fi # as_fn_append
14084    
14085     # as_fn_arith ARG...
14086     # ------------------
14087     # Perform arithmetic evaluation on the ARGs, and store the result in the
14088     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14089     # must be portable across $(()) and expr.
14090     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14091     eval 'as_fn_arith ()
14092     {
14093     as_val=$(( $* ))
14094     }'
14095     else
14096     as_fn_arith ()
14097     {
14098     as_val=`expr "$@" || test $? -eq 1`
14099     }
14100     fi # as_fn_arith
14101    
14102    
14103 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14104     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14105     as_expr=expr
14106     else
14107     as_expr=false
14108     fi
14109    
14110     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14111     as_basename=basename
14112     else
14113     as_basename=false
14114     fi
14115    
14116 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14117     as_dirname=dirname
14118     else
14119     as_dirname=false
14120     fi
14121 michael 912
14122     as_me=`$as_basename -- "$0" ||
14123     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14124     X"$0" : 'X\(//\)$' \| \
14125     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14126 db 941 $as_echo X/"$0" |
14127 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14128     s//\1/
14129     q
14130     }
14131     /^X\/\(\/\/\)$/{
14132     s//\1/
14133     q
14134     }
14135     /^X\/\(\/\).*/{
14136     s//\1/
14137     q
14138     }
14139     s/.*/./; q'`
14140    
14141 michael 967 # Avoid depending upon Character Ranges.
14142     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14143     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14144     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14145     as_cr_digits='0123456789'
14146     as_cr_alnum=$as_cr_Letters$as_cr_digits
14147 michael 912
14148     ECHO_C= ECHO_N= ECHO_T=
14149 michael 967 case `echo -n x` in #(((((
14150 michael 912 -n*)
14151 michael 967 case `echo 'xy\c'` in
14152 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14153 michael 967 xy) ECHO_C='\c';;
14154     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14155     ECHO_T=' ';;
14156 michael 912 esac;;
14157     *)
14158     ECHO_N='-n';;
14159     esac
14160    
14161     rm -f conf$$ conf$$.exe conf$$.file
14162     if test -d conf$$.dir; then
14163     rm -f conf$$.dir/conf$$.file
14164     else
14165     rm -f conf$$.dir
14166 db 941 mkdir conf$$.dir 2>/dev/null
14167 michael 912 fi
14168 db 941 if (echo >conf$$.file) 2>/dev/null; then
14169     if ln -s conf$$.file conf$$ 2>/dev/null; then
14170     as_ln_s='ln -s'
14171     # ... but there are two gotchas:
14172     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14173     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14174     # In both cases, we have to default to `cp -p'.
14175     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14176     as_ln_s='cp -p'
14177     elif ln conf$$.file conf$$ 2>/dev/null; then
14178     as_ln_s=ln
14179     else
14180 michael 912 as_ln_s='cp -p'
14181 db 941 fi
14182 michael 912 else
14183     as_ln_s='cp -p'
14184     fi
14185     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14186     rmdir conf$$.dir 2>/dev/null
14187    
14188 michael 967
14189     # as_fn_mkdir_p
14190     # -------------
14191     # Create "$as_dir" as a directory, including parents if necessary.
14192     as_fn_mkdir_p ()
14193     {
14194    
14195     case $as_dir in #(
14196     -*) as_dir=./$as_dir;;
14197     esac
14198     test -d "$as_dir" || eval $as_mkdir_p || {
14199     as_dirs=
14200     while :; do
14201     case $as_dir in #(
14202     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14203     *) as_qdir=$as_dir;;
14204     esac
14205     as_dirs="'$as_qdir' $as_dirs"
14206     as_dir=`$as_dirname -- "$as_dir" ||
14207     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14208     X"$as_dir" : 'X\(//\)[^/]' \| \
14209     X"$as_dir" : 'X\(//\)$' \| \
14210     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14211     $as_echo X"$as_dir" |
14212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14213     s//\1/
14214     q
14215     }
14216     /^X\(\/\/\)[^/].*/{
14217     s//\1/
14218     q
14219     }
14220     /^X\(\/\/\)$/{
14221     s//\1/
14222     q
14223     }
14224     /^X\(\/\).*/{
14225     s//\1/
14226     q
14227     }
14228     s/.*/./; q'`
14229     test -d "$as_dir" && break
14230     done
14231     test -z "$as_dirs" || eval "mkdir $as_dirs"
14232     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14233    
14234    
14235     } # as_fn_mkdir_p
14236 michael 912 if mkdir -p . 2>/dev/null; then
14237 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
14238 michael 912 else
14239     test -d ./-p && rmdir ./-p
14240     as_mkdir_p=false
14241     fi
14242    
14243     if test -x / >/dev/null 2>&1; then
14244     as_test_x='test -x'
14245     else
14246     if ls -dL / >/dev/null 2>&1; then
14247     as_ls_L_option=L
14248     else
14249     as_ls_L_option=
14250     fi
14251     as_test_x='
14252     eval sh -c '\''
14253     if test -d "$1"; then
14254 db 941 test -d "$1/.";
14255 michael 912 else
14256 michael 967 case $1 in #(
14257 db 941 -*)set "./$1";;
14258 michael 912 esac;
14259 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14260 michael 912 ???[sx]*):;;*)false;;esac;fi
14261     '\'' sh
14262     '
14263     fi
14264     as_executable_p=$as_test_x
14265    
14266     # Sed expression to map a string onto a valid CPP name.
14267     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14268    
14269     # Sed expression to map a string onto a valid variable name.
14270     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14271    
14272    
14273     exec 6>&1
14274 michael 967 ## ----------------------------------- ##
14275     ## Main body of $CONFIG_STATUS script. ##
14276     ## ----------------------------------- ##
14277     _ASEOF
14278     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14279 michael 912
14280 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14281     # Save the log message, to keep $0 and so on meaningful, and to
14282 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
14283     # values after options handling.
14284     ac_log="
14285 michael 1039 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14286 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
14287 michael 912
14288     CONFIG_FILES = $CONFIG_FILES
14289     CONFIG_HEADERS = $CONFIG_HEADERS
14290     CONFIG_LINKS = $CONFIG_LINKS
14291     CONFIG_COMMANDS = $CONFIG_COMMANDS
14292     $ $0 $@
14293    
14294     on `(hostname || uname -n) 2>/dev/null | sed 1q`
14295     "
14296    
14297     _ACEOF
14298    
14299 michael 942 case $ac_config_files in *"
14300     "*) set x $ac_config_files; shift; ac_config_files=$*;;
14301     esac
14302    
14303     case $ac_config_headers in *"
14304     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14305     esac
14306    
14307    
14308 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14309 michael 912 # Files that config.status was made for.
14310 michael 967 config_files="$ac_config_files"
14311     config_headers="$ac_config_headers"
14312     config_commands="$ac_config_commands"
14313 michael 912
14314     _ACEOF
14315    
14316 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317 michael 912 ac_cs_usage="\
14318 michael 967 \`$as_me' instantiates files and other configuration actions
14319     from templates according to the current configuration. Unless the files
14320     and actions are specified as TAGs, all are instantiated by default.
14321 michael 912
14322 michael 967 Usage: $0 [OPTION]... [TAG]...
14323 michael 912
14324     -h, --help print this help, then exit
14325     -V, --version print version number and configuration settings, then exit
14326 michael 1033 --config print configuration, then exit
14327 michael 942 -q, --quiet, --silent
14328     do not print progress messages
14329 michael 912 -d, --debug don't remove temporary files
14330     --recheck update $as_me by reconfiguring in the same conditions
14331 michael 942 --file=FILE[:TEMPLATE]
14332 db 941 instantiate the configuration file FILE
14333 michael 942 --header=FILE[:TEMPLATE]
14334 db 941 instantiate the configuration header FILE
14335 michael 912
14336     Configuration files:
14337     $config_files
14338    
14339     Configuration headers:
14340     $config_headers
14341    
14342     Configuration commands:
14343     $config_commands
14344    
14345 michael 1039 Report bugs to <bugs@ircd-hybrid.org>."
14346 michael 912
14347     _ACEOF
14348 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14349 michael 1033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14350 michael 912 ac_cs_version="\\
14351 michael 1039 ircd-hybrid config.status 7.3-rc1
14352 michael 1033 configured by $0, generated by GNU Autoconf 2.65,
14353     with options \\"\$ac_cs_config\\"
14354 michael 912
14355 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
14356 michael 912 This config.status script is free software; the Free Software Foundation
14357     gives unlimited permission to copy, distribute and modify it."
14358    
14359     ac_pwd='$ac_pwd'
14360     srcdir='$srcdir'
14361     INSTALL='$INSTALL'
14362     MKDIR_P='$MKDIR_P'
14363 db 941 AWK='$AWK'
14364     test -n "\$AWK" || AWK=awk
14365 michael 912 _ACEOF
14366    
14367 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14368     # The default lists apply if the user does not specify any file.
14369 michael 912 ac_need_defaults=:
14370     while test $# != 0
14371     do
14372     case $1 in
14373     --*=*)
14374     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14375     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14376     ac_shift=:
14377     ;;
14378     *)
14379     ac_option=$1
14380     ac_optarg=$2
14381     ac_shift=shift
14382     ;;
14383     esac
14384    
14385     case $ac_option in
14386     # Handling of the options.
14387     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14388     ac_cs_recheck=: ;;
14389     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14390 db 941 $as_echo "$ac_cs_version"; exit ;;
14391 michael 1033 --config | --confi | --conf | --con | --co | --c )
14392     $as_echo "$ac_cs_config"; exit ;;
14393 michael 912 --debug | --debu | --deb | --de | --d | -d )
14394     debug=: ;;
14395     --file | --fil | --fi | --f )
14396     $ac_shift
14397 db 941 case $ac_optarg in
14398     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14399     esac
14400 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
14401 michael 912 ac_need_defaults=false;;
14402     --header | --heade | --head | --hea )
14403     $ac_shift
14404 db 941 case $ac_optarg in
14405     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14406     esac
14407 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14408 michael 912 ac_need_defaults=false;;
14409     --he | --h)
14410     # Conflict between --help and --header
14411 michael 967 as_fn_error "ambiguous option: \`$1'
14412     Try \`$0 --help' for more information.";;
14413 michael 912 --help | --hel | -h )
14414 db 941 $as_echo "$ac_cs_usage"; exit ;;
14415 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14416     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14417     ac_cs_silent=: ;;
14418    
14419     # This is an error.
14420 michael 967 -*) as_fn_error "unrecognized option: \`$1'
14421     Try \`$0 --help' for more information." ;;
14422 michael 912
14423 michael 967 *) as_fn_append ac_config_targets " $1"
14424 michael 912 ac_need_defaults=false ;;
14425    
14426     esac
14427     shift
14428     done
14429    
14430     ac_configure_extra_args=
14431    
14432     if $ac_cs_silent; then
14433     exec 6>/dev/null
14434     ac_configure_extra_args="$ac_configure_extra_args --silent"
14435     fi
14436    
14437     _ACEOF
14438 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14439 michael 912 if \$ac_cs_recheck; then
14440 db 941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14441     shift
14442     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14443     CONFIG_SHELL='$SHELL'
14444 michael 912 export CONFIG_SHELL
14445 db 941 exec "\$@"
14446 michael 912 fi
14447    
14448     _ACEOF
14449 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14450 michael 912 exec 5>>config.log
14451     {
14452     echo
14453     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14454     ## Running $as_me. ##
14455     _ASBOX
14456 db 941 $as_echo "$ac_log"
14457 michael 912 } >&5
14458    
14459     _ACEOF
14460 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14461 michael 912 #
14462     # INIT-COMMANDS
14463     #
14464     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14465    
14466 michael 945
14467     # The HP-UX ksh and POSIX shell print the target directory to stdout
14468     # if CDPATH is set.
14469     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14470    
14471     sed_quote_subst='$sed_quote_subst'
14472     double_quote_subst='$double_quote_subst'
14473     delay_variable_subst='$delay_variable_subst'
14474     macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14475     macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14476 michael 977 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14477 michael 945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14478     pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14479     enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14480     host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14481     host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14482     host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14483     build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14484     build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14485     build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14486     SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14487     Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14488     GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14489     EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14490     FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14491     LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14492     NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14493     LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14494     max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14495     ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14496     exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14497     lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14498     lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14499     lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14500     reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14501     reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14502     OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14503     deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14504     file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14505     AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14506     AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14507     STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14508     RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14509     old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14510     old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14511     old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14512     CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14513     CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14514     compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14515     GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14516     lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14517     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14518     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"`'
14519     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"`'
14520     objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14521     SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14522     ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14523     MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14524     lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14525     lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14526     lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14527     lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14528     lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14529     need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14530     DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14531     NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14532     LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14533     OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14534     OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14535     libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14536     shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14537     extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14538     archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14539     enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14540     export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14541     whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14542     compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14543     old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14544     old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14545     archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14546     archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14547     module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14548     module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14549     with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14550     allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14551     no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14552     hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14553     hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14554     hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14555     hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14556     hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14557     hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14558     hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14559     hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14560     inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14561     link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14562     fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14563     always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14564     export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14565     exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14566     include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14567     prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14568     file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14569     variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14570     need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14571     need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14572     version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14573     runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14574     shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14575     shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14576     libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14577     library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14578     soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14579     postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14580     postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14581     finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14582     finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14583     hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14584     sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14585     sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14586     hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14587     enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14588     enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14589     enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14590     old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14591     striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14592    
14593     LTCC='$LTCC'
14594     LTCFLAGS='$LTCFLAGS'
14595     compiler='$compiler_DEFAULT'
14596    
14597     # Quote evaled strings.
14598     for var in SED \
14599     GREP \
14600     EGREP \
14601     FGREP \
14602     LD \
14603     NM \
14604     LN_S \
14605     lt_SP2NL \
14606     lt_NL2SP \
14607     reload_flag \
14608     OBJDUMP \
14609     deplibs_check_method \
14610     file_magic_cmd \
14611     AR \
14612     AR_FLAGS \
14613     STRIP \
14614     RANLIB \
14615     CC \
14616     CFLAGS \
14617     compiler \
14618     lt_cv_sys_global_symbol_pipe \
14619     lt_cv_sys_global_symbol_to_cdecl \
14620     lt_cv_sys_global_symbol_to_c_name_address \
14621     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14622     SHELL \
14623     ECHO \
14624     lt_prog_compiler_no_builtin_flag \
14625     lt_prog_compiler_wl \
14626     lt_prog_compiler_pic \
14627     lt_prog_compiler_static \
14628     lt_cv_prog_compiler_c_o \
14629     need_locks \
14630     DSYMUTIL \
14631     NMEDIT \
14632     LIPO \
14633     OTOOL \
14634     OTOOL64 \
14635     shrext_cmds \
14636     export_dynamic_flag_spec \
14637     whole_archive_flag_spec \
14638     compiler_needs_object \
14639     with_gnu_ld \
14640     allow_undefined_flag \
14641     no_undefined_flag \
14642     hardcode_libdir_flag_spec \
14643     hardcode_libdir_flag_spec_ld \
14644     hardcode_libdir_separator \
14645     fix_srcfile_path \
14646     exclude_expsyms \
14647     include_expsyms \
14648     file_list_spec \
14649     variables_saved_for_relink \
14650     libname_spec \
14651     library_names_spec \
14652     soname_spec \
14653     finish_eval \
14654     old_striplib \
14655     striplib; do
14656     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14657     *[\\\\\\\`\\"\\\$]*)
14658     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14659     ;;
14660     *)
14661     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14662     ;;
14663     esac
14664     done
14665    
14666     # Double-quote double-evaled strings.
14667     for var in reload_cmds \
14668     old_postinstall_cmds \
14669     old_postuninstall_cmds \
14670     old_archive_cmds \
14671     extract_expsyms_cmds \
14672     old_archive_from_new_cmds \
14673     old_archive_from_expsyms_cmds \
14674     archive_cmds \
14675     archive_expsym_cmds \
14676     module_cmds \
14677     module_expsym_cmds \
14678     export_symbols_cmds \
14679     prelink_cmds \
14680     postinstall_cmds \
14681     postuninstall_cmds \
14682     finish_cmds \
14683     sys_lib_search_path_spec \
14684     sys_lib_dlsearch_path_spec; do
14685     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14686     *[\\\\\\\`\\"\\\$]*)
14687     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14688     ;;
14689     *)
14690     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14691     ;;
14692     esac
14693     done
14694    
14695     # Fix-up fallback echo if it was mangled by the above quoting rules.
14696     case \$lt_ECHO in
14697     *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14698     ;;
14699     esac
14700    
14701     ac_aux_dir='$ac_aux_dir'
14702     xsi_shell='$xsi_shell'
14703     lt_shell_append='$lt_shell_append'
14704    
14705     # See if we are running on zsh, and set the options which allow our
14706     # commands through without removal of \ escapes INIT.
14707     if test -n "\${ZSH_VERSION+set}" ; then
14708     setopt NO_GLOB_SUBST
14709     fi
14710    
14711    
14712     PACKAGE='$PACKAGE'
14713     VERSION='$VERSION'
14714     TIMESTAMP='$TIMESTAMP'
14715     RM='$RM'
14716     ofile='$ofile'
14717    
14718    
14719    
14720    
14721 michael 912 _ACEOF
14722    
14723 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724 michael 912
14725     # Handling of arguments.
14726     for ac_config_target in $ac_config_targets
14727     do
14728     case $ac_config_target in
14729     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14730     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14731 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14732 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14733     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14734     "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14735     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14736     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14737     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14738     "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14739     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14740     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14741     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14742     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14743     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14744     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14745 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14746 michael 912
14747 michael 967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14748 michael 912 esac
14749     done
14750    
14751    
14752     # If the user did not use the arguments to specify the items to instantiate,
14753     # then the envvar interface is used. Set only those that are not.
14754     # We use the long form for the default assignment because of an extremely
14755     # bizarre bug on SunOS 4.1.3.
14756     if $ac_need_defaults; then
14757     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14758     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14759     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14760     fi
14761    
14762     # Have a temporary directory for convenience. Make it in the build tree
14763     # simply because there is no reason against having it here, and in addition,
14764     # creating and moving files from /tmp can sometimes cause problems.
14765     # Hook for its removal unless debugging.
14766     # Note that there is a small window in which the directory will not be cleaned:
14767     # after its creation but before its name has been assigned to `$tmp'.
14768     $debug ||
14769     {
14770     tmp=
14771     trap 'exit_status=$?
14772     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14773     ' 0
14774 michael 967 trap 'as_fn_exit 1' 1 2 13 15
14775 michael 912 }
14776     # Create a (secure) tmp directory for tmp files.
14777    
14778     {
14779     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14780     test -n "$tmp" && test -d "$tmp"
14781     } ||
14782     {
14783     tmp=./conf$$-$RANDOM
14784     (umask 077 && mkdir "$tmp")
14785 michael 967 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14786 michael 912
14787 db 941 # Set up the scripts for CONFIG_FILES section.
14788     # No need to generate them if there are no CONFIG_FILES.
14789     # This happens for instance with `./config.status config.h'.
14790 michael 912 if test -n "$CONFIG_FILES"; then
14791    
14792 db 941
14793 michael 967 ac_cr=`echo X | tr X '\015'`
14794     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14795     # But we know of no other shell where ac_cr would be empty at this
14796     # point, so we can use a bashism as a fallback.
14797     if test "x$ac_cr" = x; then
14798     eval ac_cr=\$\'\\r\'
14799     fi
14800 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14801     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14802 michael 967 ac_cs_awk_cr='\r'
14803 db 941 else
14804     ac_cs_awk_cr=$ac_cr
14805     fi
14806    
14807     echo 'BEGIN {' >"$tmp/subs1.awk" &&
14808 michael 912 _ACEOF
14809    
14810    
14811 db 941 {
14812     echo "cat >conf$$subs.awk <<_ACEOF" &&
14813     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14814     echo "_ACEOF"
14815     } >conf$$subs.sh ||
14816 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14817 db 941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14818 michael 912 ac_delim='%!_!# '
14819     for ac_last_try in false false false false false :; do
14820 db 941 . ./conf$$subs.sh ||
14821 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14822 michael 912
14823 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14824     if test $ac_delim_n = $ac_delim_num; then
14825 michael 912 break
14826     elif $ac_last_try; then
14827 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14828 michael 912 else
14829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14830     fi
14831     done
14832 db 941 rm -f conf$$subs.sh
14833 michael 912
14834 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14835     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14836 michael 912 _ACEOF
14837 db 941 sed -n '
14838     h
14839     s/^/S["/; s/!.*/"]=/
14840     p
14841     g
14842     s/^[^!]*!//
14843     :repl
14844     t repl
14845     s/'"$ac_delim"'$//
14846     t delim
14847     :nl
14848     h
14849 michael 1033 s/\(.\{148\}\)..*/\1/
14850 db 941 t more1
14851     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14852     p
14853     n
14854     b repl
14855     :more1
14856     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14857     p
14858     g
14859     s/.\{148\}//
14860     t nl
14861     :delim
14862     h
14863 michael 1033 s/\(.\{148\}\)..*/\1/
14864 db 941 t more2
14865     s/["\\]/\\&/g; s/^/"/; s/$/"/
14866     p
14867     b
14868     :more2
14869     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14870     p
14871     g
14872     s/.\{148\}//
14873     t delim
14874     ' <conf$$subs.awk | sed '
14875     /^[^""]/{
14876     N
14877     s/\n//
14878     }
14879     ' >>$CONFIG_STATUS || ac_write_fail=1
14880     rm -f conf$$subs.awk
14881     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14882     _ACAWK
14883     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14884     for (key in S) S_is_set[key] = 1
14885     FS = ""
14886 michael 912
14887 db 941 }
14888     {
14889     line = $ 0
14890     nfields = split(line, field, "@")
14891     substed = 0
14892     len = length(field[1])
14893     for (i = 2; i < nfields; i++) {
14894     key = field[i]
14895     keylen = length(key)
14896     if (S_is_set[key]) {
14897     value = S[key]
14898     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14899     len += length(value) + length(field[++i])
14900     substed = 1
14901     } else
14902     len += 1 + keylen
14903     }
14904 michael 912
14905 db 941 print line
14906     }
14907    
14908     _ACAWK
14909 michael 912 _ACEOF
14910 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14911     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14912     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14913     else
14914     cat
14915     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14916 michael 967 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14917 michael 912 _ACEOF
14918    
14919     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14920     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14921     # trailing colons and then remove the whole line if VPATH becomes empty
14922     # (actually we leave an empty line to preserve line numbers).
14923     if test "x$srcdir" = x.; then
14924     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14925     s/:*\$(srcdir):*/:/
14926     s/:*\${srcdir}:*/:/
14927     s/:*@srcdir@:*/:/
14928     s/^\([^=]*=[ ]*\):*/\1/
14929     s/:*$//
14930     s/^[^=]*=[ ]*$//
14931     }'
14932     fi
14933    
14934 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14935 michael 912 fi # test -n "$CONFIG_FILES"
14936    
14937 db 941 # Set up the scripts for CONFIG_HEADERS section.
14938     # No need to generate them if there are no CONFIG_HEADERS.
14939     # This happens for instance with `./config.status Makefile'.
14940     if test -n "$CONFIG_HEADERS"; then
14941     cat >"$tmp/defines.awk" <<\_ACAWK ||
14942     BEGIN {
14943     _ACEOF
14944 michael 912
14945 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14946     # here-document in config.status, that substitutes the proper values into
14947     # config.h.in to produce config.h.
14948    
14949     # Create a delimiter string that does not exist in confdefs.h, to ease
14950     # handling of long lines.
14951     ac_delim='%!_!# '
14952     for ac_last_try in false false :; do
14953     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14954     if test -z "$ac_t"; then
14955     break
14956     elif $ac_last_try; then
14957 michael 967 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14958 db 941 else
14959     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14960     fi
14961     done
14962    
14963     # For the awk script, D is an array of macro values keyed by name,
14964     # likewise P contains macro parameters if any. Preserve backslash
14965     # newline sequences.
14966    
14967     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14968     sed -n '
14969     s/.\{148\}/&'"$ac_delim"'/g
14970     t rset
14971     :rset
14972     s/^[ ]*#[ ]*define[ ][ ]*/ /
14973     t def
14974     d
14975     :def
14976     s/\\$//
14977     t bsnl
14978     s/["\\]/\\&/g
14979     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14980     D["\1"]=" \3"/p
14981     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14982     d
14983     :bsnl
14984     s/["\\]/\\&/g
14985     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14986     D["\1"]=" \3\\\\\\n"\\/p
14987     t cont
14988     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14989     t cont
14990     d
14991     :cont
14992     n
14993     s/.\{148\}/&'"$ac_delim"'/g
14994     t clear
14995     :clear
14996     s/\\$//
14997     t bsnlc
14998     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14999     d
15000     :bsnlc
15001     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15002     b cont
15003     ' <confdefs.h | sed '
15004     s/'"$ac_delim"'/"\\\
15005     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15006    
15007     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15008     for (key in D) D_is_set[key] = 1
15009     FS = ""
15010     }
15011     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15012     line = \$ 0
15013     split(line, arg, " ")
15014     if (arg[1] == "#") {
15015     defundef = arg[2]
15016     mac1 = arg[3]
15017     } else {
15018     defundef = substr(arg[1], 2)
15019     mac1 = arg[2]
15020     }
15021     split(mac1, mac2, "(") #)
15022     macro = mac2[1]
15023 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15024 db 941 if (D_is_set[macro]) {
15025     # Preserve the white space surrounding the "#".
15026     print prefix "define", macro P[macro] D[macro]
15027     next
15028     } else {
15029     # Replace #undef with comments. This is necessary, for example,
15030     # in the case of _POSIX_SOURCE, which is predefined and required
15031     # on some systems where configure will not decide to define it.
15032     if (defundef == "undef") {
15033 michael 942 print "/*", prefix defundef, macro, "*/"
15034 db 941 next
15035     }
15036     }
15037     }
15038     { print }
15039     _ACAWK
15040     _ACEOF
15041     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15042 michael 967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15043 db 941 fi # test -n "$CONFIG_HEADERS"
15044    
15045    
15046     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15047     shift
15048     for ac_tag
15049 michael 912 do
15050     case $ac_tag in
15051     :[FHLC]) ac_mode=$ac_tag; continue;;
15052     esac
15053     case $ac_mode$ac_tag in
15054     :[FHL]*:*);;
15055 michael 967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15056 michael 912 :[FH]-) ac_tag=-:-;;
15057     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15058     esac
15059     ac_save_IFS=$IFS
15060     IFS=:
15061     set x $ac_tag
15062     IFS=$ac_save_IFS
15063     shift
15064     ac_file=$1
15065     shift
15066    
15067     case $ac_mode in
15068     :L) ac_source=$1;;
15069     :[FH])
15070     ac_file_inputs=
15071     for ac_f
15072     do
15073     case $ac_f in
15074     -) ac_f="$tmp/stdin";;
15075     *) # Look for the file first in the build tree, then in the source tree
15076     # (if the path is not absolute). The absolute path cannot be DOS-style,
15077     # because $ac_f cannot contain `:'.
15078     test -f "$ac_f" ||
15079     case $ac_f in
15080     [\\/$]*) false;;
15081     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15082     esac ||
15083 michael 967 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15084 michael 912 esac
15085 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15086 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15087 michael 912 done
15088    
15089     # Let's still pretend it is `configure' which instantiates (i.e., don't
15090     # use $as_me), people would be surprised to read:
15091     # /* config.h. Generated by config.status. */
15092 db 941 configure_input='Generated from '`
15093     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15094     `' by configure.'
15095 michael 912 if test x"$ac_file" != x-; then
15096     configure_input="$ac_file. $configure_input"
15097 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15098 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15099 michael 912 fi
15100 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15101     case $configure_input in #(
15102     *\&* | *\|* | *\\* )
15103     ac_sed_conf_input=`$as_echo "$configure_input" |
15104     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15105     *) ac_sed_conf_input=$configure_input;;
15106     esac
15107 michael 912
15108     case $ac_tag in
15109 db 941 *:-:* | *:-) cat >"$tmp/stdin" \
15110 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15111 michael 912 esac
15112     ;;
15113     esac
15114    
15115     ac_dir=`$as_dirname -- "$ac_file" ||
15116     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15117     X"$ac_file" : 'X\(//\)[^/]' \| \
15118     X"$ac_file" : 'X\(//\)$' \| \
15119     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15120 db 941 $as_echo X"$ac_file" |
15121 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15122     s//\1/
15123     q
15124     }
15125     /^X\(\/\/\)[^/].*/{
15126     s//\1/
15127     q
15128     }
15129     /^X\(\/\/\)$/{
15130     s//\1/
15131     q
15132     }
15133     /^X\(\/\).*/{
15134     s//\1/
15135     q
15136     }
15137     s/.*/./; q'`
15138 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15139 michael 912 ac_builddir=.
15140    
15141     case "$ac_dir" in
15142     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15143     *)
15144 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15145 michael 912 # A ".." for each directory in $ac_dir_suffix.
15146 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15147 michael 912 case $ac_top_builddir_sub in
15148     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15149     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15150     esac ;;
15151     esac
15152     ac_abs_top_builddir=$ac_pwd
15153     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15154     # for backward compatibility:
15155     ac_top_builddir=$ac_top_build_prefix
15156    
15157     case $srcdir in
15158     .) # We are building in place.
15159     ac_srcdir=.
15160     ac_top_srcdir=$ac_top_builddir_sub
15161     ac_abs_top_srcdir=$ac_pwd ;;
15162     [\\/]* | ?:[\\/]* ) # Absolute name.
15163     ac_srcdir=$srcdir$ac_dir_suffix;
15164     ac_top_srcdir=$srcdir
15165     ac_abs_top_srcdir=$srcdir ;;
15166     *) # Relative name.
15167     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15168     ac_top_srcdir=$ac_top_build_prefix$srcdir
15169     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15170     esac
15171     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15172    
15173    
15174     case $ac_mode in
15175     :F)
15176     #
15177     # CONFIG_FILE
15178     #
15179    
15180     case $INSTALL in
15181     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15182     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15183     esac
15184     ac_MKDIR_P=$MKDIR_P
15185     case $MKDIR_P in
15186     [\\/$]* | ?:[\\/]* ) ;;
15187     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15188     esac
15189     _ACEOF
15190    
15191 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15192 michael 912 # If the template does not know about datarootdir, expand it.
15193     # FIXME: This hack should be removed a few years after 2.60.
15194     ac_datarootdir_hack=; ac_datarootdir_seen=
15195 db 941 ac_sed_dataroot='
15196     /datarootdir/ {
15197 michael 912 p
15198     q
15199     }
15200     /@datadir@/p
15201     /@docdir@/p
15202     /@infodir@/p
15203     /@localedir@/p
15204 michael 967 /@mandir@/p'
15205 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15206 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
15207     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15208 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15209 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15210 michael 912 _ACEOF
15211 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15212 michael 912 ac_datarootdir_hack='
15213     s&@datadir@&$datadir&g
15214     s&@docdir@&$docdir&g
15215     s&@infodir@&$infodir&g
15216     s&@localedir@&$localedir&g
15217     s&@mandir@&$mandir&g
15218 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
15219 michael 912 esac
15220     _ACEOF
15221    
15222     # Neutralize VPATH when `$srcdir' = `.'.
15223     # Shell code in configure.ac might set extrasub.
15224     # FIXME: do we really want to maintain this feature?
15225 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226     ac_sed_extra="$ac_vpsub
15227 michael 912 $extrasub
15228     _ACEOF
15229 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15230 michael 912 :t
15231     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15232 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
15233 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
15234 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15235 michael 912 s&@srcdir@&$ac_srcdir&;t t
15236     s&@abs_srcdir@&$ac_abs_srcdir&;t t
15237     s&@top_srcdir@&$ac_top_srcdir&;t t
15238     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15239     s&@builddir@&$ac_builddir&;t t
15240     s&@abs_builddir@&$ac_abs_builddir&;t t
15241     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15242     s&@INSTALL@&$ac_INSTALL&;t t
15243     s&@MKDIR_P@&$ac_MKDIR_P&;t t
15244     $ac_datarootdir_hack
15245 db 941 "
15246     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15247 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15248 michael 912
15249     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15250     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15251     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15252 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15253 michael 912 which seems to be undefined. Please make sure it is defined." >&5
15254 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15255 michael 912 which seems to be undefined. Please make sure it is defined." >&2;}
15256    
15257     rm -f "$tmp/stdin"
15258     case $ac_file in
15259 db 941 -) cat "$tmp/out" && rm -f "$tmp/out";;
15260     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15261     esac \
15262 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15263 michael 912 ;;
15264     :H)
15265     #
15266     # CONFIG_HEADER
15267     #
15268     if test x"$ac_file" != x-; then
15269 db 941 {
15270     $as_echo "/* $configure_input */" \
15271     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15272     } >"$tmp/config.h" \
15273 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15274 db 941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15275 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15276 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15277 michael 912 else
15278 db 941 rm -f "$ac_file"
15279     mv "$tmp/config.h" "$ac_file" \
15280 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15281 michael 912 fi
15282     else
15283 db 941 $as_echo "/* $configure_input */" \
15284     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15285 michael 967 || as_fn_error "could not create -" "$LINENO" 5
15286 michael 912 fi
15287 db 941 # Compute "$ac_file"'s index in $config_headers.
15288     _am_arg="$ac_file"
15289 michael 912 _am_stamp_count=1
15290     for _am_header in $config_headers :; do
15291     case $_am_header in
15292 db 941 $_am_arg | $_am_arg:* )
15293 michael 912 break ;;
15294     * )
15295     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15296     esac
15297     done
15298 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15299     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15300     X"$_am_arg" : 'X\(//\)[^/]' \| \
15301     X"$_am_arg" : 'X\(//\)$' \| \
15302     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15303     $as_echo X"$_am_arg" |
15304 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15305     s//\1/
15306     q
15307     }
15308     /^X\(\/\/\)[^/].*/{
15309     s//\1/
15310     q
15311     }
15312     /^X\(\/\/\)$/{
15313     s//\1/
15314     q
15315     }
15316     /^X\(\/\).*/{
15317     s//\1/
15318     q
15319     }
15320     s/.*/./; q'`/stamp-h$_am_stamp_count
15321     ;;
15322    
15323 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15324 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
15325 michael 912 ;;
15326     esac
15327    
15328    
15329     case $ac_file$ac_mode in
15330 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15331     # Autoconf 2.62 quotes --file arguments for eval, but not when files
15332     # are listed without --file. Let's play safe and only enable the eval
15333     # if we detect the quoting.
15334     case $CONFIG_FILES in
15335     *\'*) eval set x "$CONFIG_FILES" ;;
15336     *) set x $CONFIG_FILES ;;
15337     esac
15338     shift
15339     for mf
15340     do
15341     # Strip MF so we end up with the name of the file.
15342     mf=`echo "$mf" | sed -e 's/:.*$//'`
15343     # Check whether this is an Automake generated Makefile or not.
15344     # We used to match only the files named `Makefile.in', but
15345     # some people rename them; so instead we look at the file content.
15346     # Grep'ing the first line is not enough: some people post-process
15347     # each Makefile.in and add a new line on top of each file to say so.
15348     # Grep'ing the whole file is not good either: AIX grep has a line
15349     # limit of 2048, but all sed's we know have understand at least 4000.
15350     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15351     dirpart=`$as_dirname -- "$mf" ||
15352 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15353     X"$mf" : 'X\(//\)[^/]' \| \
15354     X"$mf" : 'X\(//\)$' \| \
15355     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15356 db 941 $as_echo X"$mf" |
15357 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15358     s//\1/
15359     q
15360     }
15361     /^X\(\/\/\)[^/].*/{
15362     s//\1/
15363     q
15364     }
15365     /^X\(\/\/\)$/{
15366     s//\1/
15367     q
15368     }
15369     /^X\(\/\).*/{
15370     s//\1/
15371     q
15372     }
15373     s/.*/./; q'`
15374 michael 945 else
15375     continue
15376     fi
15377     # Extract the definition of DEPDIR, am__include, and am__quote
15378     # from the Makefile without running `make'.
15379     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15380     test -z "$DEPDIR" && continue
15381     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15382     test -z "am__include" && continue
15383     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15384     # When using ansi2knr, U may be empty or an underscore; expand it
15385     U=`sed -n 's/^U = //p' < "$mf"`
15386     # Find all dependency output files, they are included files with
15387     # $(DEPDIR) in their names. We invoke sed twice because it is the
15388     # simplest approach to changing $(DEPDIR) to its actual value in the
15389     # expansion.
15390     for file in `sed -n "
15391     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15392     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15393     # Make sure the directory exists.
15394     test -f "$dirpart/$file" && continue
15395     fdir=`$as_dirname -- "$file" ||
15396 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15397     X"$file" : 'X\(//\)[^/]' \| \
15398     X"$file" : 'X\(//\)$' \| \
15399     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15400 db 941 $as_echo X"$file" |
15401 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15402     s//\1/
15403     q
15404     }
15405     /^X\(\/\/\)[^/].*/{
15406     s//\1/
15407     q
15408     }
15409     /^X\(\/\/\)$/{
15410     s//\1/
15411     q
15412     }
15413     /^X\(\/\).*/{
15414     s//\1/
15415     q
15416     }
15417     s/.*/./; q'`
15418 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15419 michael 945 # echo "creating $dirpart/$file"
15420     echo '# dummy' > "$dirpart/$file"
15421     done
15422 michael 912 done
15423 michael 945 }
15424 michael 912 ;;
15425 michael 945 "libtool":C)
15426 michael 912
15427 michael 945 # See if we are running on zsh, and set the options which allow our
15428     # commands through without removal of \ escapes.
15429     if test -n "${ZSH_VERSION+set}" ; then
15430     setopt NO_GLOB_SUBST
15431     fi
15432    
15433     cfgfile="${ofile}T"
15434     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15435     $RM "$cfgfile"
15436    
15437     cat <<_LT_EOF >> "$cfgfile"
15438     #! $SHELL
15439    
15440     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15441     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15442     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15443     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15444     #
15445     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15446     # 2006, 2007, 2008 Free Software Foundation, Inc.
15447     # Written by Gordon Matzigkeit, 1996
15448     #
15449     # This file is part of GNU Libtool.
15450     #
15451     # GNU Libtool is free software; you can redistribute it and/or
15452     # modify it under the terms of the GNU General Public License as
15453     # published by the Free Software Foundation; either version 2 of
15454     # the License, or (at your option) any later version.
15455     #
15456     # As a special exception to the GNU General Public License,
15457     # if you distribute this file as part of a program or library that
15458     # is built using GNU Libtool, you may include this file under the
15459     # same distribution terms that you use for the rest of that program.
15460     #
15461     # GNU Libtool is distributed in the hope that it will be useful,
15462     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15463     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15464     # GNU General Public License for more details.
15465     #
15466     # You should have received a copy of the GNU General Public License
15467     # along with GNU Libtool; see the file COPYING. If not, a copy
15468     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15469     # obtained by writing to the Free Software Foundation, Inc.,
15470     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15471    
15472    
15473     # The names of the tagged configurations supported by this script.
15474     available_tags=""
15475    
15476     # ### BEGIN LIBTOOL CONFIG
15477    
15478     # Which release of libtool.m4 was used?
15479     macro_version=$macro_version
15480     macro_revision=$macro_revision
15481    
15482 michael 977 # Whether or not to build static libraries.
15483     build_old_libs=$enable_static
15484    
15485 michael 945 # Whether or not to build shared libraries.
15486     build_libtool_libs=$enable_shared
15487    
15488     # What type of objects to build.
15489     pic_mode=$pic_mode
15490    
15491     # Whether or not to optimize for fast installation.
15492     fast_install=$enable_fast_install
15493    
15494     # The host system.
15495     host_alias=$host_alias
15496     host=$host
15497     host_os=$host_os
15498    
15499     # The build system.
15500     build_alias=$build_alias
15501     build=$build
15502     build_os=$build_os
15503    
15504     # A sed program that does not truncate output.
15505     SED=$lt_SED
15506    
15507     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15508     Xsed="\$SED -e 1s/^X//"
15509    
15510     # A grep program that handles long lines.
15511     GREP=$lt_GREP
15512    
15513     # An ERE matcher.
15514     EGREP=$lt_EGREP
15515    
15516     # A literal string matcher.
15517     FGREP=$lt_FGREP
15518    
15519     # A BSD- or MS-compatible name lister.
15520     NM=$lt_NM
15521    
15522     # Whether we need soft or hard links.
15523     LN_S=$lt_LN_S
15524    
15525     # What is the maximum length of a command?
15526     max_cmd_len=$max_cmd_len
15527    
15528     # Object file suffix (normally "o").
15529     objext=$ac_objext
15530    
15531     # Executable file suffix (normally "").
15532     exeext=$exeext
15533    
15534     # whether the shell understands "unset".
15535     lt_unset=$lt_unset
15536    
15537     # turn spaces into newlines.
15538     SP2NL=$lt_lt_SP2NL
15539    
15540     # turn newlines into spaces.
15541     NL2SP=$lt_lt_NL2SP
15542    
15543     # How to create reloadable object files.
15544     reload_flag=$lt_reload_flag
15545     reload_cmds=$lt_reload_cmds
15546    
15547     # An object symbol dumper.
15548     OBJDUMP=$lt_OBJDUMP
15549    
15550     # Method to check whether dependent libraries are shared objects.
15551     deplibs_check_method=$lt_deplibs_check_method
15552    
15553     # Command to use when deplibs_check_method == "file_magic".
15554     file_magic_cmd=$lt_file_magic_cmd
15555    
15556     # The archiver.
15557     AR=$lt_AR
15558     AR_FLAGS=$lt_AR_FLAGS
15559    
15560     # A symbol stripping program.
15561     STRIP=$lt_STRIP
15562    
15563     # Commands used to install an old-style archive.
15564     RANLIB=$lt_RANLIB
15565     old_postinstall_cmds=$lt_old_postinstall_cmds
15566     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15567    
15568     # A C compiler.
15569     LTCC=$lt_CC
15570    
15571     # LTCC compiler flags.
15572     LTCFLAGS=$lt_CFLAGS
15573    
15574     # Take the output of nm and produce a listing of raw symbols and C names.
15575     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15576    
15577     # Transform the output of nm in a proper C declaration.
15578     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15579    
15580     # Transform the output of nm in a C name address pair.
15581     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15582    
15583     # Transform the output of nm in a C name address pair when lib prefix is needed.
15584     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15585    
15586     # The name of the directory that contains temporary libtool files.
15587     objdir=$objdir
15588    
15589     # Shell to use when invoking shell scripts.
15590     SHELL=$lt_SHELL
15591    
15592     # An echo program that does not interpret backslashes.
15593     ECHO=$lt_ECHO
15594    
15595     # Used to examine libraries when file_magic_cmd begins with "file".
15596     MAGIC_CMD=$MAGIC_CMD
15597    
15598     # Must we lock files when doing compilation?
15599     need_locks=$lt_need_locks
15600    
15601     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15602     DSYMUTIL=$lt_DSYMUTIL
15603    
15604     # Tool to change global to local symbols on Mac OS X.
15605     NMEDIT=$lt_NMEDIT
15606    
15607     # Tool to manipulate fat objects and archives on Mac OS X.
15608     LIPO=$lt_LIPO
15609    
15610     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15611     OTOOL=$lt_OTOOL
15612    
15613     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15614     OTOOL64=$lt_OTOOL64
15615    
15616     # Old archive suffix (normally "a").
15617     libext=$libext
15618    
15619     # Shared library suffix (normally ".so").
15620     shrext_cmds=$lt_shrext_cmds
15621    
15622     # The commands to extract the exported symbol list from a shared archive.
15623     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15624    
15625     # Variables whose values should be saved in libtool wrapper scripts and
15626     # restored at link time.
15627     variables_saved_for_relink=$lt_variables_saved_for_relink
15628    
15629     # Do we need the "lib" prefix for modules?
15630     need_lib_prefix=$need_lib_prefix
15631    
15632     # Do we need a version for libraries?
15633     need_version=$need_version
15634    
15635     # Library versioning type.
15636     version_type=$version_type
15637    
15638     # Shared library runtime path variable.
15639     runpath_var=$runpath_var
15640    
15641     # Shared library path variable.
15642     shlibpath_var=$shlibpath_var
15643    
15644     # Is shlibpath searched before the hard-coded library search path?
15645     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15646    
15647     # Format of library name prefix.
15648     libname_spec=$lt_libname_spec
15649    
15650     # List of archive names. First name is the real one, the rest are links.
15651     # The last name is the one that the linker finds with -lNAME
15652     library_names_spec=$lt_library_names_spec
15653    
15654     # The coded name of the library, if different from the real name.
15655     soname_spec=$lt_soname_spec
15656    
15657     # Command to use after installation of a shared archive.
15658     postinstall_cmds=$lt_postinstall_cmds
15659    
15660     # Command to use after uninstallation of a shared archive.
15661     postuninstall_cmds=$lt_postuninstall_cmds
15662    
15663     # Commands used to finish a libtool library installation in a directory.
15664     finish_cmds=$lt_finish_cmds
15665    
15666     # As "finish_cmds", except a single script fragment to be evaled but
15667     # not shown.
15668     finish_eval=$lt_finish_eval
15669    
15670     # Whether we should hardcode library paths into libraries.
15671     hardcode_into_libs=$hardcode_into_libs
15672    
15673     # Compile-time system search path for libraries.
15674     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15675    
15676     # Run-time system search path for libraries.
15677     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15678    
15679     # Whether dlopen is supported.
15680     dlopen_support=$enable_dlopen
15681    
15682     # Whether dlopen of programs is supported.
15683     dlopen_self=$enable_dlopen_self
15684    
15685     # Whether dlopen of statically linked programs is supported.
15686     dlopen_self_static=$enable_dlopen_self_static
15687    
15688     # Commands to strip libraries.
15689     old_striplib=$lt_old_striplib
15690     striplib=$lt_striplib
15691    
15692    
15693     # The linker used to build libraries.
15694     LD=$lt_LD
15695    
15696     # Commands used to build an old-style archive.
15697     old_archive_cmds=$lt_old_archive_cmds
15698    
15699     # A language specific compiler.
15700     CC=$lt_compiler
15701    
15702     # Is the compiler the GNU compiler?
15703     with_gcc=$GCC
15704    
15705     # Compiler flag to turn off builtin functions.
15706     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15707    
15708     # How to pass a linker flag through the compiler.
15709     wl=$lt_lt_prog_compiler_wl
15710    
15711     # Additional compiler flags for building library objects.
15712     pic_flag=$lt_lt_prog_compiler_pic
15713    
15714     # Compiler flag to prevent dynamic linking.
15715     link_static_flag=$lt_lt_prog_compiler_static
15716    
15717     # Does compiler simultaneously support -c and -o options?
15718     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15719    
15720     # Whether or not to add -lc for building shared libraries.
15721     build_libtool_need_lc=$archive_cmds_need_lc
15722    
15723     # Whether or not to disallow shared libs when runtime libs are static.
15724     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15725    
15726     # Compiler flag to allow reflexive dlopens.
15727     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15728    
15729     # Compiler flag to generate shared objects directly from archives.
15730     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15731    
15732     # Whether the compiler copes with passing no objects directly.
15733     compiler_needs_object=$lt_compiler_needs_object
15734    
15735     # Create an old-style archive from a shared archive.
15736     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15737    
15738     # Create a temporary old-style archive to link instead of a shared archive.
15739     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15740    
15741     # Commands used to build a shared archive.
15742     archive_cmds=$lt_archive_cmds
15743     archive_expsym_cmds=$lt_archive_expsym_cmds
15744    
15745     # Commands used to build a loadable module if different from building
15746     # a shared archive.
15747     module_cmds=$lt_module_cmds
15748     module_expsym_cmds=$lt_module_expsym_cmds
15749    
15750     # Whether we are building with GNU ld or not.
15751     with_gnu_ld=$lt_with_gnu_ld
15752    
15753     # Flag that allows shared libraries with undefined symbols to be built.
15754     allow_undefined_flag=$lt_allow_undefined_flag
15755    
15756     # Flag that enforces no undefined symbols.
15757     no_undefined_flag=$lt_no_undefined_flag
15758    
15759     # Flag to hardcode \$libdir into a binary during linking.
15760     # This must work even if \$libdir does not exist
15761     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15762    
15763     # If ld is used when linking, flag to hardcode \$libdir into a binary
15764     # during linking. This must work even if \$libdir does not exist.
15765     hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15766    
15767     # Whether we need a single "-rpath" flag with a separated argument.
15768     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15769    
15770     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15771     # DIR into the resulting binary.
15772     hardcode_direct=$hardcode_direct
15773    
15774     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15775     # DIR into the resulting binary and the resulting library dependency is
15776     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15777     # library is relocated.
15778     hardcode_direct_absolute=$hardcode_direct_absolute
15779    
15780     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15781     # into the resulting binary.
15782     hardcode_minus_L=$hardcode_minus_L
15783    
15784     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15785     # into the resulting binary.
15786     hardcode_shlibpath_var=$hardcode_shlibpath_var
15787    
15788     # Set to "yes" if building a shared library automatically hardcodes DIR
15789     # into the library and all subsequent libraries and executables linked
15790     # against it.
15791     hardcode_automatic=$hardcode_automatic
15792    
15793     # Set to yes if linker adds runtime paths of dependent libraries
15794     # to runtime path list.
15795     inherit_rpath=$inherit_rpath
15796    
15797     # Whether libtool must link a program against all its dependency libraries.
15798     link_all_deplibs=$link_all_deplibs
15799    
15800     # Fix the shell variable \$srcfile for the compiler.
15801     fix_srcfile_path=$lt_fix_srcfile_path
15802    
15803     # Set to "yes" if exported symbols are required.
15804     always_export_symbols=$always_export_symbols
15805    
15806     # The commands to list exported symbols.
15807     export_symbols_cmds=$lt_export_symbols_cmds
15808    
15809     # Symbols that should not be listed in the preloaded symbols.
15810     exclude_expsyms=$lt_exclude_expsyms
15811    
15812     # Symbols that must always be exported.
15813     include_expsyms=$lt_include_expsyms
15814    
15815     # Commands necessary for linking programs (against libraries) with templates.
15816     prelink_cmds=$lt_prelink_cmds
15817    
15818     # Specify filename containing input files.
15819     file_list_spec=$lt_file_list_spec
15820    
15821     # How to hardcode a shared library path into an executable.
15822     hardcode_action=$hardcode_action
15823    
15824     # ### END LIBTOOL CONFIG
15825    
15826     _LT_EOF
15827    
15828     case $host_os in
15829     aix3*)
15830     cat <<\_LT_EOF >> "$cfgfile"
15831     # AIX sometimes has problems with the GCC collect2 program. For some
15832     # reason, if we set the COLLECT_NAMES environment variable, the problems
15833     # vanish in a puff of smoke.
15834     if test "X${COLLECT_NAMES+set}" != Xset; then
15835     COLLECT_NAMES=
15836     export COLLECT_NAMES
15837     fi
15838     _LT_EOF
15839     ;;
15840 michael 912 esac
15841 michael 945
15842    
15843     ltmain="$ac_aux_dir/ltmain.sh"
15844    
15845    
15846     # We use sed instead of cat because bash on DJGPP gets confused if
15847     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15848     # text mode, it properly converts lines to CR/LF. This bash problem
15849     # is reportedly fixed, but why not run on old versions too?
15850     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15851     || (rm -f "$cfgfile"; exit 1)
15852    
15853     case $xsi_shell in
15854     yes)
15855     cat << \_LT_EOF >> "$cfgfile"
15856    
15857     # func_dirname file append nondir_replacement
15858     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15859     # otherwise set result to NONDIR_REPLACEMENT.
15860     func_dirname ()
15861     {
15862     case ${1} in
15863     */*) func_dirname_result="${1%/*}${2}" ;;
15864     * ) func_dirname_result="${3}" ;;
15865     esac
15866     }
15867    
15868     # func_basename file
15869     func_basename ()
15870     {
15871     func_basename_result="${1##*/}"
15872     }
15873    
15874     # func_dirname_and_basename file append nondir_replacement
15875     # perform func_basename and func_dirname in a single function
15876     # call:
15877     # dirname: Compute the dirname of FILE. If nonempty,
15878     # add APPEND to the result, otherwise set result
15879     # to NONDIR_REPLACEMENT.
15880     # value returned in "$func_dirname_result"
15881     # basename: Compute filename of FILE.
15882     # value retuned in "$func_basename_result"
15883     # Implementation must be kept synchronized with func_dirname
15884     # and func_basename. For efficiency, we do not delegate to
15885     # those functions but instead duplicate the functionality here.
15886     func_dirname_and_basename ()
15887     {
15888     case ${1} in
15889     */*) func_dirname_result="${1%/*}${2}" ;;
15890     * ) func_dirname_result="${3}" ;;
15891     esac
15892     func_basename_result="${1##*/}"
15893     }
15894    
15895     # func_stripname prefix suffix name
15896     # strip PREFIX and SUFFIX off of NAME.
15897     # PREFIX and SUFFIX must not contain globbing or regex special
15898     # characters, hashes, percent signs, but SUFFIX may contain a leading
15899     # dot (in which case that matches only a dot).
15900     func_stripname ()
15901     {
15902     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15903     # positional parameters, so assign one to ordinary parameter first.
15904     func_stripname_result=${3}
15905     func_stripname_result=${func_stripname_result#"${1}"}
15906     func_stripname_result=${func_stripname_result%"${2}"}
15907     }
15908    
15909     # func_opt_split
15910     func_opt_split ()
15911     {
15912     func_opt_split_opt=${1%%=*}
15913     func_opt_split_arg=${1#*=}
15914     }
15915    
15916     # func_lo2o object
15917     func_lo2o ()
15918     {
15919     case ${1} in
15920     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15921     *) func_lo2o_result=${1} ;;
15922     esac
15923     }
15924    
15925     # func_xform libobj-or-source
15926     func_xform ()
15927     {
15928     func_xform_result=${1%.*}.lo
15929     }
15930    
15931     # func_arith arithmetic-term...
15932     func_arith ()
15933     {
15934     func_arith_result=$(( $* ))
15935     }
15936    
15937     # func_len string
15938     # STRING may not start with a hyphen.
15939     func_len ()
15940     {
15941     func_len_result=${#1}
15942     }
15943    
15944     _LT_EOF
15945     ;;
15946     *) # Bourne compatible functions.
15947     cat << \_LT_EOF >> "$cfgfile"
15948    
15949     # func_dirname file append nondir_replacement
15950     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15951     # otherwise set result to NONDIR_REPLACEMENT.
15952     func_dirname ()
15953     {
15954     # Extract subdirectory from the argument.
15955     func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15956     if test "X$func_dirname_result" = "X${1}"; then
15957     func_dirname_result="${3}"
15958     else
15959     func_dirname_result="$func_dirname_result${2}"
15960     fi
15961     }
15962    
15963     # func_basename file
15964     func_basename ()
15965     {
15966     func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15967     }
15968    
15969    
15970     # func_stripname prefix suffix name
15971     # strip PREFIX and SUFFIX off of NAME.
15972     # PREFIX and SUFFIX must not contain globbing or regex special
15973     # characters, hashes, percent signs, but SUFFIX may contain a leading
15974     # dot (in which case that matches only a dot).
15975     # func_strip_suffix prefix name
15976     func_stripname ()
15977     {
15978     case ${2} in
15979     .*) func_stripname_result=`$ECHO "X${3}" \
15980     | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15981     *) func_stripname_result=`$ECHO "X${3}" \
15982     | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15983     esac
15984     }
15985    
15986     # sed scripts:
15987     my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15988     my_sed_long_arg='1s/^-[^=]*=//'
15989    
15990     # func_opt_split
15991     func_opt_split ()
15992     {
15993     func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15994     func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15995     }
15996    
15997     # func_lo2o object
15998     func_lo2o ()
15999     {
16000     func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16001     }
16002    
16003     # func_xform libobj-or-source
16004     func_xform ()
16005     {
16006     func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16007     }
16008    
16009     # func_arith arithmetic-term...
16010     func_arith ()
16011     {
16012     func_arith_result=`expr "$@"`
16013     }
16014    
16015     # func_len string
16016     # STRING may not start with a hyphen.
16017     func_len ()
16018     {
16019     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16020     }
16021    
16022     _LT_EOF
16023     esac
16024    
16025     case $lt_shell_append in
16026     yes)
16027     cat << \_LT_EOF >> "$cfgfile"
16028    
16029     # func_append var value
16030     # Append VALUE to the end of shell variable VAR.
16031     func_append ()
16032     {
16033     eval "$1+=\$2"
16034     }
16035     _LT_EOF
16036     ;;
16037     *)
16038     cat << \_LT_EOF >> "$cfgfile"
16039    
16040     # func_append var value
16041     # Append VALUE to the end of shell variable VAR.
16042     func_append ()
16043     {
16044     eval "$1=\$$1\$2"
16045     }
16046    
16047     _LT_EOF
16048     ;;
16049     esac
16050    
16051    
16052     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16053     || (rm -f "$cfgfile"; exit 1)
16054    
16055     mv -f "$cfgfile" "$ofile" ||
16056     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16057     chmod +x "$ofile"
16058    
16059     ;;
16060    
16061     esac
16062 michael 912 done # for ac_tag
16063    
16064    
16065 michael 967 as_fn_exit 0
16066 michael 912 _ACEOF
16067     ac_clean_files=$ac_clean_files_save
16068    
16069 db 941 test $ac_write_fail = 0 ||
16070 michael 967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16071 michael 912
16072 db 941
16073 michael 912 # configure is writing to config.log, and then calls config.status.
16074     # config.status does its own redirection, appending to config.log.
16075     # Unfortunately, on DOS this fails, as config.log is still kept open
16076     # by configure, so config.status won't be able to write to it; its
16077     # output is simply discarded. So we exec the FD to /dev/null,
16078     # effectively closing config.log, so it can be properly (re)opened and
16079     # appended to by config.status. When coming back to configure, we
16080     # need to make the FD available again.
16081     if test "$no_create" != yes; then
16082     ac_cs_success=:
16083     ac_config_status_args=
16084     test "$silent" = yes &&
16085     ac_config_status_args="$ac_config_status_args --quiet"
16086     exec 5>/dev/null
16087     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16088     exec 5>>config.log
16089     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16090     # would make configure fail if this is the last instruction.
16091 michael 967 $ac_cs_success || as_fn_exit $?
16092 michael 912 fi
16093    
16094     #
16095     # CONFIG_SUBDIRS section.
16096     #
16097     if test "$no_recursion" != yes; then
16098    
16099 db 941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16100     # so they do not pile up.
16101 michael 912 ac_sub_configure_args=
16102     ac_prev=
16103     eval "set x $ac_configure_args"
16104     shift
16105     for ac_arg
16106     do
16107     if test -n "$ac_prev"; then
16108     ac_prev=
16109     continue
16110     fi
16111     case $ac_arg in
16112     -cache-file | --cache-file | --cache-fil | --cache-fi \
16113     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16114     ac_prev=cache_file ;;
16115     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16116     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16117     | --c=*)
16118     ;;
16119     --config-cache | -C)
16120     ;;
16121     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16122     ac_prev=srcdir ;;
16123     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16124     ;;
16125     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16126     ac_prev=prefix ;;
16127     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16128     ;;
16129 db 941 --disable-option-checking)
16130     ;;
16131 michael 912 *)
16132     case $ac_arg in
16133 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16134 michael 912 esac
16135 michael 967 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16136 michael 912 esac
16137     done
16138    
16139     # Always prepend --prefix to ensure using the same prefix
16140     # in subdir configurations.
16141     ac_arg="--prefix=$prefix"
16142     case $ac_arg in
16143 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16144 michael 912 esac
16145     ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16146    
16147     # Pass --silent
16148     if test "$silent" = yes; then
16149     ac_sub_configure_args="--silent $ac_sub_configure_args"
16150     fi
16151    
16152 db 941 # Always prepend --disable-option-checking to silence warnings, since
16153     # different subdirs can have different --enable and --with options.
16154     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16155    
16156 michael 912 ac_popdir=`pwd`
16157     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16158    
16159     # Do not complain, so a configure script can configure whichever
16160     # parts of a large source tree are present.
16161     test -d "$srcdir/$ac_dir" || continue
16162    
16163     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16164 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16165 db 941 $as_echo "$ac_msg" >&6
16166 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
16167 michael 912 ac_builddir=.
16168    
16169     case "$ac_dir" in
16170     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16171     *)
16172 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16173 michael 912 # A ".." for each directory in $ac_dir_suffix.
16174 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16175 michael 912 case $ac_top_builddir_sub in
16176     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16177     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16178     esac ;;
16179     esac
16180     ac_abs_top_builddir=$ac_pwd
16181     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16182     # for backward compatibility:
16183     ac_top_builddir=$ac_top_build_prefix
16184    
16185     case $srcdir in
16186     .) # We are building in place.
16187     ac_srcdir=.
16188     ac_top_srcdir=$ac_top_builddir_sub
16189     ac_abs_top_srcdir=$ac_pwd ;;
16190     [\\/]* | ?:[\\/]* ) # Absolute name.
16191     ac_srcdir=$srcdir$ac_dir_suffix;
16192     ac_top_srcdir=$srcdir
16193     ac_abs_top_srcdir=$srcdir ;;
16194     *) # Relative name.
16195     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16196     ac_top_srcdir=$ac_top_build_prefix$srcdir
16197     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16198     esac
16199     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16200    
16201    
16202     cd "$ac_dir"
16203    
16204     # Check for guested configure; otherwise get Cygnus style configure.
16205     if test -f "$ac_srcdir/configure.gnu"; then
16206     ac_sub_configure=$ac_srcdir/configure.gnu
16207     elif test -f "$ac_srcdir/configure"; then
16208     ac_sub_configure=$ac_srcdir/configure
16209     elif test -f "$ac_srcdir/configure.in"; then
16210     # This should be Cygnus configure.
16211     ac_sub_configure=$ac_aux_dir/configure
16212     else
16213 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16214 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16215 michael 912 ac_sub_configure=
16216     fi
16217    
16218     # The recursion is here.
16219     if test -n "$ac_sub_configure"; then
16220     # Make the cache file name correct relative to the subdirectory.
16221     case $cache_file in
16222     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16223     *) # Relative name.
16224     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16225     esac
16226    
16227 michael 967 { $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
16228 db 941 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16229 michael 912 # The eval makes quoting arguments work.
16230     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16231     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16232 michael 967 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16233 michael 912 fi
16234    
16235     cd "$ac_popdir"
16236     done
16237     fi
16238 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16239 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16240 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16241 db 941 fi
16242 michael 912

Properties

Name Value
svn:executable *