ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1013
Committed: Sun Oct 18 14:26:49 2009 UTC (17 years ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 465085 byte(s)
Log Message:
- Add -Wextra -Wcast-align -Wbad-function-cast to CFLAGS if --enable-warnings is specified
- Fixed several compile warnings
- 64-bit cleanliness fixes, e.g., reorganize data structures to reduce storage/unnecessary padding

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1011 # From configure.ac Id: configure.ac 1010 2009-09-17 17:06:11Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 967 # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5 michael 912 #
6     # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 michael 967 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8     # Foundation, Inc.
9     #
10 michael 912 # This configure script is free software; the Free Software Foundation
11     # gives unlimited permission to copy, distribute and modify it.
12 michael 967 ## -------------------- ##
13     ## M4sh Initialization. ##
14     ## -------------------- ##
15 michael 912
16     # Be more Bourne compatible
17     DUALCASE=1; export DUALCASE # for MKS sh
18 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 michael 912 emulate sh
20     NULLCMD=:
21 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 michael 912 # is contrary to our usage. Disable this feature.
23     alias -g '${1+"$@"}'='"$@"'
24     setopt NO_GLOB_SUBST
25     else
26 michael 967 case `(set -o) 2>/dev/null` in #(
27     *posix*) :
28     set -o posix ;; #(
29     *) :
30     ;;
31 michael 912 esac
32     fi
33    
34    
35 db 941 as_nl='
36     '
37     export as_nl
38     # Printing a long string crashes Solaris 7 /usr/bin/printf.
39     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
43     # but without wasting forks for bash or zsh.
44     if test -z "$BASH_VERSION$ZSH_VERSION" \
45     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46     as_echo='print -r --'
47     as_echo_n='print -rn --'
48     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 db 941 as_echo='printf %s\n'
50     as_echo_n='printf %s'
51     else
52     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54     as_echo_n='/usr/ucb/echo -n'
55 michael 912 else
56 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57     as_echo_n_body='eval
58     arg=$1;
59 michael 967 case $arg in #(
60 db 941 *"$as_nl"*)
61     expr "X$arg" : "X\\(.*\\)$as_nl";
62     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63     esac;
64     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65     '
66     export as_echo_n_body
67     as_echo_n='sh -c $as_echo_n_body as_echo'
68 michael 912 fi
69 db 941 export as_echo_body
70     as_echo='sh -c $as_echo_body as_echo'
71 michael 912 fi
72    
73 db 941 # The user is always right.
74     if test "${PATH_SEPARATOR+set}" != set; then
75     PATH_SEPARATOR=:
76     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78     PATH_SEPARATOR=';'
79     }
80     fi
81    
82 michael 912
83     # IFS
84     # We need space, tab and new line, in precisely that order. Quoting is
85     # there to prevent editors from complaining about space-tab.
86     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87     # splitting by setting IFS to empty value.)
88     IFS=" "" $as_nl"
89    
90     # Find who we are. Look in the path if we contain no directory separator.
91 michael 967 case $0 in #((
92 michael 912 *[\\/]* ) as_myself=$0 ;;
93     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94     for as_dir in $PATH
95     do
96     IFS=$as_save_IFS
97     test -z "$as_dir" && as_dir=.
98 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 michael 912 IFS=$as_save_IFS
101    
102     ;;
103     esac
104     # We did not find ourselves, most probably we were run as `sh COMMAND'
105     # in which case we are not to be found in the path.
106     if test "x$as_myself" = x; then
107     as_myself=$0
108     fi
109     if test ! -f "$as_myself"; then
110 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 michael 967 exit 1
112 michael 912 fi
113    
114 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
115     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116     # suppresses any "Segmentation fault" message there. '((' could
117     # trigger a bug in pdksh 5.2.14.
118     for as_var in BASH_ENV ENV MAIL MAILPATH
119     do eval test x\${$as_var+set} = xset \
120     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 michael 912 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 db 941 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 michael 912
132     # CDPATH.
133 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 michael 912
135     if test "x$CONFIG_SHELL" = x; then
136 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137     emulate sh
138     NULLCMD=:
139     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140     # is contrary to our usage. Disable this feature.
141     alias -g '\${1+\"\$@\"}'='\"\$@\"'
142     setopt NO_GLOB_SUBST
143 michael 912 else
144 michael 967 case \`(set -o) 2>/dev/null\` in #(
145     *posix*) :
146     set -o posix ;; #(
147     *) :
148     ;;
149     esac
150 michael 912 fi
151 michael 967 "
152     as_required="as_fn_return () { (exit \$1); }
153     as_fn_success () { as_fn_return 0; }
154     as_fn_failure () { as_fn_return 1; }
155     as_fn_ret_success () { return 0; }
156     as_fn_ret_failure () { return 1; }
157 michael 912
158     exitcode=0
159 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 michael 912
165     else
166 michael 967 exitcode=1; echo positional parameters were not saved.
167 michael 912 fi
168 michael 967 test x\$exitcode = x0 || exit 1"
169     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173     test \$(( 1 + 1 )) = 2 || exit 1"
174     if (eval "$as_required") 2>/dev/null; then :
175     as_have_required=yes
176 michael 912 else
177 michael 967 as_have_required=no
178 michael 912 fi
179 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 michael 912
181     else
182 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183     as_found=false
184 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185     do
186     IFS=$as_save_IFS
187     test -z "$as_dir" && as_dir=.
188 michael 967 as_found=:
189     case $as_dir in #(
190 michael 912 /*)
191     for as_base in sh bash ksh sh5; do
192 michael 967 # Try only shells that exist, to save several forks.
193     as_shell=$as_dir/$as_base
194     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196     CONFIG_SHELL=$as_shell as_have_required=yes
197     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198     break 2
199     fi
200     fi
201 michael 912 done;;
202     esac
203 michael 967 as_found=false
204 michael 912 done
205 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207     CONFIG_SHELL=$SHELL as_have_required=yes
208     fi; }
209 michael 912 IFS=$as_save_IFS
210    
211    
212 michael 967 if test "x$CONFIG_SHELL" != x; then :
213     # We cannot yet assume a decent shell, so we have to provide a
214     # neutralization value for shells without unset; and this also
215     # works around shells that cannot unset nonexistent variables.
216     BASH_ENV=/dev/null
217     ENV=/dev/null
218     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219     export CONFIG_SHELL
220     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 michael 912 fi
222    
223 michael 967 if test x$as_have_required = xno; then :
224     $as_echo "$0: This script requires a shell more modern than all"
225     $as_echo "$0: the shells that I found on your system."
226     if test x${ZSH_VERSION+set} = xset ; then
227     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229     else
230     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231     $0: including any error possibly output before this
232     $0: message. Then install a modern shell, or manually run
233     $0: the script under such a shell if you do have one."
234     fi
235     exit 1
236 michael 912 fi
237     fi
238     fi
239 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
240     export SHELL
241     # Unset more variables known to interfere with behavior of common tools.
242     CLICOLOR_FORCE= GREP_OPTIONS=
243     unset CLICOLOR_FORCE GREP_OPTIONS
244 michael 912
245 michael 967 ## --------------------- ##
246     ## M4sh Shell Functions. ##
247     ## --------------------- ##
248     # as_fn_unset VAR
249     # ---------------
250     # Portably unset VAR.
251     as_fn_unset ()
252     {
253     { eval $1=; unset $1;}
254     }
255     as_unset=as_fn_unset
256 michael 912
257 michael 967 # as_fn_set_status STATUS
258     # -----------------------
259     # Set $? to STATUS, without forking.
260     as_fn_set_status ()
261     {
262     return $1
263     } # as_fn_set_status
264 michael 912
265 michael 967 # as_fn_exit STATUS
266     # -----------------
267     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268     as_fn_exit ()
269     {
270     set +e
271     as_fn_set_status $1
272     exit $1
273     } # as_fn_exit
274 michael 912
275 michael 967 # as_fn_mkdir_p
276     # -------------
277     # Create "$as_dir" as a directory, including parents if necessary.
278     as_fn_mkdir_p ()
279     {
280 michael 912
281 michael 967 case $as_dir in #(
282     -*) as_dir=./$as_dir;;
283     esac
284     test -d "$as_dir" || eval $as_mkdir_p || {
285     as_dirs=
286     while :; do
287     case $as_dir in #(
288     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289     *) as_qdir=$as_dir;;
290     esac
291     as_dirs="'$as_qdir' $as_dirs"
292     as_dir=`$as_dirname -- "$as_dir" ||
293     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294     X"$as_dir" : 'X\(//\)[^/]' \| \
295     X"$as_dir" : 'X\(//\)$' \| \
296     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297     $as_echo X"$as_dir" |
298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299     s//\1/
300     q
301     }
302     /^X\(\/\/\)[^/].*/{
303     s//\1/
304     q
305     }
306     /^X\(\/\/\)$/{
307     s//\1/
308     q
309     }
310     /^X\(\/\).*/{
311     s//\1/
312     q
313     }
314     s/.*/./; q'`
315     test -d "$as_dir" && break
316     done
317     test -z "$as_dirs" || eval "mkdir $as_dirs"
318     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319 michael 912
320    
321 michael 967 } # as_fn_mkdir_p
322     # as_fn_append VAR VALUE
323     # ----------------------
324     # Append the text in VALUE to the end of the definition contained in VAR. Take
325     # advantage of any shell optimizations that allow amortized linear growth over
326     # repeated appends, instead of the typical quadratic growth present in naive
327     # implementations.
328     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329     eval 'as_fn_append ()
330     {
331     eval $1+=\$2
332     }'
333     else
334     as_fn_append ()
335     {
336     eval $1=\$$1\$2
337     }
338     fi # as_fn_append
339 michael 912
340 michael 967 # as_fn_arith ARG...
341     # ------------------
342     # Perform arithmetic evaluation on the ARGs, and store the result in the
343     # global $as_val. Take advantage of shells that can avoid forks. The arguments
344     # must be portable across $(()) and expr.
345     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346     eval 'as_fn_arith ()
347     {
348     as_val=$(( $* ))
349     }'
350     else
351     as_fn_arith ()
352     {
353     as_val=`expr "$@" || test $? -eq 1`
354     }
355     fi # as_fn_arith
356 michael 912
357    
358 michael 967 # as_fn_error ERROR [LINENO LOG_FD]
359     # ---------------------------------
360     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362     # script with status $?, using 1 if that was 0.
363     as_fn_error ()
364     {
365     as_status=$?; test $as_status -eq 0 && as_status=1
366     if test "$3"; then
367     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369     fi
370     $as_echo "$as_me: error: $1" >&2
371     as_fn_exit $as_status
372     } # as_fn_error
373 michael 912
374 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
375     test "X`expr 00001 : '.*\(...\)'`" = X001; then
376     as_expr=expr
377 michael 912 else
378 michael 967 as_expr=false
379 michael 912 fi
380    
381 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382     as_basename=basename
383 michael 912 else
384 michael 967 as_basename=false
385 michael 912 fi
386    
387 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388     as_dirname=dirname
389 michael 912 else
390 michael 967 as_dirname=false
391 michael 912 fi
392    
393 michael 967 as_me=`$as_basename -- "$0" ||
394     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395     X"$0" : 'X\(//\)$' \| \
396     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397     $as_echo X/"$0" |
398     sed '/^.*\/\([^/][^/]*\)\/*$/{
399     s//\1/
400     q
401     }
402     /^X\/\(\/\/\)$/{
403     s//\1/
404     q
405     }
406     /^X\/\(\/\).*/{
407     s//\1/
408     q
409     }
410     s/.*/./; q'`
411 michael 912
412 michael 967 # Avoid depending upon Character Ranges.
413     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416     as_cr_digits='0123456789'
417     as_cr_alnum=$as_cr_Letters$as_cr_digits
418 michael 912
419    
420 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421     as_lineno_2=$LINENO as_lineno_2a=$LINENO
422     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 michael 912 sed -n '
426     p
427     /[$]LINENO/=
428     ' <$as_myself |
429     sed '
430     s/[$]LINENO.*/&-/
431     t lineno
432     b
433     :lineno
434     N
435     :loop
436     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437     t loop
438     s/-\n.*//
439     ' >$as_me.lineno &&
440     chmod +x "$as_me.lineno" ||
441 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 michael 912
443     # Don't try to exec as it changes $[0], causing all sort of problems
444     # (the dirname of $[0] is not the place where we might find the
445     # original and so on. Autoconf is especially sensitive to this).
446     . "./$as_me.lineno"
447     # Exit status is that of the last command.
448     exit
449     }
450    
451     ECHO_C= ECHO_N= ECHO_T=
452 michael 967 case `echo -n x` in #(((((
453 michael 912 -n*)
454 michael 967 case `echo 'xy\c'` in
455 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 michael 967 xy) ECHO_C='\c';;
457     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458     ECHO_T=' ';;
459 michael 912 esac;;
460     *)
461     ECHO_N='-n';;
462     esac
463    
464     rm -f conf$$ conf$$.exe conf$$.file
465     if test -d conf$$.dir; then
466     rm -f conf$$.dir/conf$$.file
467     else
468     rm -f conf$$.dir
469 db 941 mkdir conf$$.dir 2>/dev/null
470 michael 912 fi
471 db 941 if (echo >conf$$.file) 2>/dev/null; then
472     if ln -s conf$$.file conf$$ 2>/dev/null; then
473     as_ln_s='ln -s'
474     # ... but there are two gotchas:
475     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477     # In both cases, we have to default to `cp -p'.
478     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479     as_ln_s='cp -p'
480     elif ln conf$$.file conf$$ 2>/dev/null; then
481     as_ln_s=ln
482     else
483 michael 912 as_ln_s='cp -p'
484 db 941 fi
485 michael 912 else
486     as_ln_s='cp -p'
487     fi
488     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489     rmdir conf$$.dir 2>/dev/null
490    
491     if mkdir -p . 2>/dev/null; then
492 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
493 michael 912 else
494     test -d ./-p && rmdir ./-p
495     as_mkdir_p=false
496     fi
497    
498     if test -x / >/dev/null 2>&1; then
499     as_test_x='test -x'
500     else
501     if ls -dL / >/dev/null 2>&1; then
502     as_ls_L_option=L
503     else
504     as_ls_L_option=
505     fi
506     as_test_x='
507     eval sh -c '\''
508     if test -d "$1"; then
509 db 941 test -d "$1/.";
510 michael 912 else
511 michael 967 case $1 in #(
512 db 941 -*)set "./$1";;
513 michael 912 esac;
514 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 michael 912 ???[sx]*):;;*)false;;esac;fi
516     '\'' sh
517     '
518     fi
519     as_executable_p=$as_test_x
520    
521     # Sed expression to map a string onto a valid CPP name.
522     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523    
524     # Sed expression to map a string onto a valid variable name.
525     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526    
527    
528    
529     # Check that we are running under the correct shell.
530     SHELL=${CONFIG_SHELL-/bin/sh}
531    
532 michael 945 case X$lt_ECHO in
533 michael 912 X*--fallback-echo)
534     # Remove one level of quotation (which was required for Make).
535 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 michael 912 ;;
537     esac
538    
539 michael 945 ECHO=${lt_ECHO-echo}
540 michael 912 if test "X$1" = X--no-reexec; then
541     # Discard the --no-reexec flag, and continue.
542     shift
543     elif test "X$1" = X--fallback-echo; then
544     # Avoid inline document here, it may be left over
545     :
546 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547     # Yippee, $ECHO works!
548 michael 912 :
549     else
550     # Restart under the correct shell.
551     exec $SHELL "$0" --no-reexec ${1+"$@"}
552     fi
553    
554     if test "X$1" = X--fallback-echo; then
555     # used as fallback echo
556     shift
557 michael 945 cat <<_LT_EOF
558 michael 912 $*
559 michael 945 _LT_EOF
560 michael 912 exit 0
561     fi
562    
563     # The HP-UX ksh and POSIX shell print the target directory to stdout
564     # if CDPATH is set.
565     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566    
567 michael 945 if test -z "$lt_ECHO"; then
568     if test "X${echo_test_string+set}" != Xset; then
569     # find a string as large as possible, as long as the shell can cope with it
570     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574     then
575     break
576     fi
577     done
578     fi
579 michael 912
580 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582     test "X$echo_testing_string" = "X$echo_test_string"; then
583     :
584     else
585     # The Solaris, AIX, and Digital Unix default echo programs unquote
586     # backslashes. This makes it impossible to quote backslashes using
587     # echo "$something" | sed 's/\\/\\\\/g'
588     #
589     # So, first we look for a working echo in the user's PATH.
590 michael 912
591 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592     for dir in $PATH /usr/ucb; do
593     IFS="$lt_save_ifs"
594     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597     test "X$echo_testing_string" = "X$echo_test_string"; then
598     ECHO="$dir/echo"
599     break
600     fi
601     done
602 michael 912 IFS="$lt_save_ifs"
603    
604 michael 945 if test "X$ECHO" = Xecho; then
605     # We didn't find a better echo, so look for alternatives.
606     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608     test "X$echo_testing_string" = "X$echo_test_string"; then
609     # This shell has a builtin print -r that does the trick.
610     ECHO='print -r'
611     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612     test "X$CONFIG_SHELL" != X/bin/ksh; then
613     # If we have ksh, try running configure again with it.
614     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615     export ORIGINAL_CONFIG_SHELL
616     CONFIG_SHELL=/bin/ksh
617     export CONFIG_SHELL
618     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619     else
620     # Try using printf.
621     ECHO='printf %s\n'
622     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
625 michael 945 # Cool, printf works
626     :
627     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628     test "X$echo_testing_string" = 'X\t' &&
629     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632     export CONFIG_SHELL
633     SHELL="$CONFIG_SHELL"
634     export SHELL
635     ECHO="$CONFIG_SHELL $0 --fallback-echo"
636     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637     test "X$echo_testing_string" = 'X\t' &&
638     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639     test "X$echo_testing_string" = "X$echo_test_string"; then
640     ECHO="$CONFIG_SHELL $0 --fallback-echo"
641     else
642     # maybe with a smaller string...
643     prev=:
644 michael 912
645 michael 945 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647     then
648     break
649     fi
650     prev="$cmd"
651     done
652    
653     if test "$prev" != 'sed 50q "$0"'; then
654     echo_test_string=`eval $prev`
655     export echo_test_string
656     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657     else
658     # Oops. We lost completely, so just stick with echo.
659     ECHO=echo
660 michael 912 fi
661 michael 945 fi
662 michael 912 fi
663     fi
664     fi
665     fi
666    
667     # Copy echo and quote the copy suitably for passing to libtool from
668     # the Makefile, instead of quoting the original, which is used later.
669 michael 945 lt_ECHO=$ECHO
670     if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671     lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 michael 912 fi
673    
674    
675    
676    
677 michael 945 lt_ltdl_dir='libltdl'
678 michael 912
679 michael 945 lt_dlopen_dir="$lt_ltdl_dir"
680 michael 912
681     exec 7<&0 </dev/null 6>&1
682    
683     # Name of the host.
684     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685     # so uname gets run too.
686     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687    
688     #
689     # Initializations.
690     #
691     ac_default_prefix=/usr/local
692     ac_clean_files=
693     ac_config_libobj_dir=.
694     LIBOBJS=
695     cross_compiling=no
696     subdirs=
697     MFLAGS=
698     MAKEFLAGS=
699    
700     # Identity of this package.
701     PACKAGE_NAME='ircd-hybrid'
702     PACKAGE_TARNAME='ircd-hybrid'
703     PACKAGE_VERSION='7.2.4'
704     PACKAGE_STRING='ircd-hybrid 7.2.4'
705     PACKAGE_BUGREPORT=''
706 michael 967 PACKAGE_URL=''
707 michael 912
708     ac_unique_file="src/ircd.c"
709     # Factoring default headers for most tests.
710     ac_includes_default="\
711     #include <stdio.h>
712     #ifdef HAVE_SYS_TYPES_H
713     # include <sys/types.h>
714     #endif
715     #ifdef HAVE_SYS_STAT_H
716     # include <sys/stat.h>
717     #endif
718     #ifdef STDC_HEADERS
719     # include <stdlib.h>
720     # include <stddef.h>
721     #else
722     # ifdef HAVE_STDLIB_H
723     # include <stdlib.h>
724     # endif
725     #endif
726     #ifdef HAVE_STRING_H
727     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728     # include <memory.h>
729     # endif
730     # include <string.h>
731     #endif
732     #ifdef HAVE_STRINGS_H
733     # include <strings.h>
734     #endif
735     #ifdef HAVE_INTTYPES_H
736     # include <inttypes.h>
737     #endif
738     #ifdef HAVE_STDINT_H
739     # include <stdint.h>
740     #endif
741     #ifdef HAVE_UNISTD_H
742     # include <unistd.h>
743     #endif"
744    
745 michael 945 enable_option_checking=no
746 michael 912 ac_func_list=
747     ac_header_list=
748 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
749     ltdl_LIBOBJS
750     am__EXEEXT_FALSE
751     am__EXEEXT_TRUE
752     LTLIBOBJS
753 michael 942 LIBOBJS
754     LOCALSTATEDIR
755     DATADIR
756     LIBDIR
757     SYSCONFDIR
758     PREFIX
759     EFNET_FALSE
760     EFNET_TRUE
761     ENABLE_SSL_FALSE
762     ENABLE_SSL_TRUE
763 michael 1009 ENABLE_PCRE_FALSE
764     ENABLE_PCRE_TRUE
765 michael 945 LTDLOPEN
766     LT_CONFIG_H
767     subdirs
768     CONVENIENCE_LTDL_FALSE
769     CONVENIENCE_LTDL_TRUE
770     INSTALL_LTDL_FALSE
771     INSTALL_LTDL_TRUE
772     ARGZ_H
773     sys_symbol_underscore
774     LIBADD_DL
775     LT_DLPREOPEN
776     LIBADD_DLD_LINK
777     LIBADD_SHL_LOAD
778     LIBADD_DLOPEN
779     LT_DLLOADERS
780     INCLTDL
781     LTDLINCL
782     LTDLDEPS
783     LIBLTDL
784 michael 942 CPP
785 michael 945 OTOOL64
786     OTOOL
787     LIPO
788 michael 942 NMEDIT
789     DSYMUTIL
790 michael 945 lt_ECHO
791 michael 942 RANLIB
792     AR
793 michael 945 OBJDUMP
794 michael 942 LN_S
795 michael 945 NM
796     ac_ct_DUMPBIN
797     DUMPBIN
798     LD
799     FGREP
800 michael 942 EGREP
801     GREP
802     SED
803     host_os
804     host_vendor
805     host_cpu
806     host
807     build_os
808     build_vendor
809     build_cpu
810     build
811 michael 945 LIBTOOL
812 michael 942 LEXLIB
813     LEX_OUTPUT_ROOT
814     LEX
815     YFLAGS
816     YACC
817     am__fastdepCC_FALSE
818     am__fastdepCC_TRUE
819     CCDEPMODE
820     AMDEPBACKSLASH
821     AMDEP_FALSE
822     AMDEP_TRUE
823     am__quote
824     am__include
825     DEPDIR
826     OBJEXT
827     EXEEXT
828     ac_ct_CC
829     CPPFLAGS
830     LDFLAGS
831     CFLAGS
832     CC
833     MAINT
834     MAINTAINER_MODE_FALSE
835     MAINTAINER_MODE_TRUE
836     am__untar
837     am__tar
838     AMTAR
839     am__leading_dot
840     SET_MAKE
841     AWK
842     mkdir_p
843     MKDIR_P
844     INSTALL_STRIP_PROGRAM
845     STRIP
846     install_sh
847     MAKEINFO
848     AUTOHEADER
849     AUTOMAKE
850     AUTOCONF
851     ACLOCAL
852     VERSION
853     PACKAGE
854     CYGPATH_W
855     am__isrc
856     INSTALL_DATA
857     INSTALL_SCRIPT
858     INSTALL_PROGRAM
859     target_alias
860     host_alias
861     build_alias
862     LIBS
863     ECHO_T
864     ECHO_N
865     ECHO_C
866     DEFS
867     mandir
868     localedir
869     libdir
870     psdir
871     pdfdir
872     dvidir
873     htmldir
874     infodir
875     docdir
876     oldincludedir
877     includedir
878     localstatedir
879     sharedstatedir
880     sysconfdir
881     datadir
882     datarootdir
883     libexecdir
884     sbindir
885     bindir
886     program_transform_name
887     prefix
888     exec_prefix
889 michael 967 PACKAGE_URL
890 michael 942 PACKAGE_BUGREPORT
891     PACKAGE_STRING
892     PACKAGE_VERSION
893     PACKAGE_TARNAME
894     PACKAGE_NAME
895 michael 912 PATH_SEPARATOR
896 michael 942 SHELL'
897 michael 912 ac_subst_files=''
898 db 941 ac_user_opts='
899     enable_option_checking
900     enable_maintainer_mode
901 michael 945 enable_dependency_tracking
902 michael 977 enable_static
903 michael 945 enable_shared
904     with_pic
905 db 941 enable_fast_install
906     with_gnu_ld
907     enable_libtool_lock
908 michael 945 with_included_ltdl
909     with_ltdl_include
910     with_ltdl_lib
911     enable_ltdl_install
912 db 941 with_zlib_path
913     enable_zlib
914 michael 1009 with_libpcre_path
915     enable_libpcre
916 db 941 enable_openssl
917     enable_assert
918     enable_small_net
919     enable_kqueue
920     enable_epoll
921     enable_devpoll
922     enable_rtsigio
923     enable_poll
924     enable_select
925     with_nicklen
926     with_topiclen
927     with_syslog_facility
928     enable_efnet
929     enable_halfops
930     enable_debugging
931     enable_warnings
932     enable_syslog
933     '
934 michael 912 ac_precious_vars='build_alias
935     host_alias
936     target_alias
937     CC
938     CFLAGS
939     LDFLAGS
940     LIBS
941     CPPFLAGS
942     YACC
943     YFLAGS
944 michael 945 CPP'
945 michael 912 ac_subdirs_all='libltdl'
946    
947     # Initialize some variables set by options.
948     ac_init_help=
949     ac_init_version=false
950 db 941 ac_unrecognized_opts=
951     ac_unrecognized_sep=
952 michael 912 # The variables have the same names as the options, with
953     # dashes changed to underlines.
954     cache_file=/dev/null
955     exec_prefix=NONE
956     no_create=
957     no_recursion=
958     prefix=NONE
959     program_prefix=NONE
960     program_suffix=NONE
961     program_transform_name=s,x,x,
962     silent=
963     site=
964     srcdir=
965     verbose=
966     x_includes=NONE
967     x_libraries=NONE
968    
969     # Installation directory options.
970     # These are left unexpanded so users can "make install exec_prefix=/foo"
971     # and all the variables that are supposed to be based on exec_prefix
972     # by default will actually change.
973     # Use braces instead of parens because sh, perl, etc. also accept them.
974     # (The list follows the same order as the GNU Coding Standards.)
975     bindir='${exec_prefix}/bin'
976     sbindir='${exec_prefix}/sbin'
977     libexecdir='${exec_prefix}/libexec'
978     datarootdir='${prefix}/share'
979     datadir='${datarootdir}'
980     sysconfdir='${prefix}/etc'
981     sharedstatedir='${prefix}/com'
982     localstatedir='${prefix}/var'
983     includedir='${prefix}/include'
984     oldincludedir='/usr/include'
985     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986     infodir='${datarootdir}/info'
987     htmldir='${docdir}'
988     dvidir='${docdir}'
989     pdfdir='${docdir}'
990     psdir='${docdir}'
991     libdir='${exec_prefix}/lib'
992     localedir='${datarootdir}/locale'
993     mandir='${datarootdir}/man'
994    
995     ac_prev=
996     ac_dashdash=
997     for ac_option
998     do
999     # If the previous option needs an argument, assign it.
1000     if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004     fi
1005    
1006     case $ac_option in
1007     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008     *) ac_optarg=yes ;;
1009     esac
1010    
1011     # Accept the important Cygnus configure options, so we can diagnose typos.
1012    
1013     case $ac_dashdash$ac_option in
1014     --)
1015     ac_dashdash=yes ;;
1016    
1017     -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018     ac_prev=bindir ;;
1019     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020     bindir=$ac_optarg ;;
1021    
1022     -build | --build | --buil | --bui | --bu)
1023     ac_prev=build_alias ;;
1024     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025     build_alias=$ac_optarg ;;
1026    
1027     -cache-file | --cache-file | --cache-fil | --cache-fi \
1028     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029     ac_prev=cache_file ;;
1030     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032     cache_file=$ac_optarg ;;
1033    
1034     --config-cache | -C)
1035     cache_file=config.cache ;;
1036    
1037     -datadir | --datadir | --datadi | --datad)
1038     ac_prev=datadir ;;
1039     -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040     datadir=$ac_optarg ;;
1041    
1042     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043     | --dataroo | --dataro | --datar)
1044     ac_prev=datarootdir ;;
1045     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047     datarootdir=$ac_optarg ;;
1048    
1049     -disable-* | --disable-*)
1050 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 michael 912 # Reject names that are not valid shell variable names.
1052 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1054 db 941 ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057     *"
1058     "enable_$ac_useropt"
1059     "*) ;;
1060     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061     ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=no ;;
1064 michael 912
1065     -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069    
1070     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074    
1075     -enable-* | --enable-*)
1076 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 michael 912 # Reject names that are not valid shell variable names.
1078 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1080 db 941 ac_useropt_orig=$ac_useropt
1081     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083     *"
1084     "enable_$ac_useropt"
1085     "*) ;;
1086     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087     ac_unrecognized_sep=', ';;
1088     esac
1089     eval enable_$ac_useropt=\$ac_optarg ;;
1090 michael 912
1091     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093     | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097     | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099    
1100     -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103    
1104     -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110    
1111     -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113     -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115    
1116     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119     | --ht=*)
1120     htmldir=$ac_optarg ;;
1121    
1122     -includedir | --includedir | --includedi | --included | --include \
1123     | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126     | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128    
1129     -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133    
1134     -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138    
1139     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140     | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143     | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145    
1146     -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150    
1151     -localstatedir | --localstatedir | --localstatedi | --localstated \
1152     | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157    
1158     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162    
1163     -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166    
1167     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168     | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170    
1171     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174    
1175     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177     | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183    
1184     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188    
1189     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190     | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195    
1196     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197     | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202    
1203     -program-transform-name | --program-transform-name \
1204     | --program-transform-nam | --program-transform-na \
1205     | --program-transform-n | --program-transform- \
1206     | --program-transform | --program-transfor \
1207     | --program-transfo | --program-transf \
1208     | --program-trans | --program-tran \
1209     | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211     -program-transform-name=* | --program-transform-name=* \
1212     | --program-transform-nam=* | --program-transform-na=* \
1213     | --program-transform-n=* | --program-transform-=* \
1214     | --program-transform=* | --program-transfor=* \
1215     | --program-transfo=* | --program-transf=* \
1216     | --program-trans=* | --program-tran=* \
1217     | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219    
1220     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224    
1225     -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229    
1230     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231     | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233    
1234     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237     | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239    
1240     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242     | --sharedst | --shareds | --shared | --share | --shar \
1243     | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248     | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250    
1251     -site | --site | --sit)
1252     ac_prev=site ;;
1253     -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255    
1256     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260    
1261     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262     | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267    
1268     -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272    
1273     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275    
1276     -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278    
1279     -with-* | --with-*)
1280 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 michael 912 # Reject names that are not valid shell variable names.
1282 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 michael 967 as_fn_error "invalid package name: $ac_useropt"
1284 db 941 ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287     *"
1288     "with_$ac_useropt"
1289     "*) ;;
1290     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291     ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=\$ac_optarg ;;
1294 michael 912
1295     -without-* | --without-*)
1296 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297 michael 912 # Reject names that are not valid shell variable names.
1298 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299 michael 967 as_fn_error "invalid package name: $ac_useropt"
1300 db 941 ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303     *"
1304     "with_$ac_useropt"
1305     "*) ;;
1306     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307     ac_unrecognized_sep=', ';;
1308     esac
1309     eval with_$ac_useropt=no ;;
1310 michael 912
1311     --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314    
1315     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316     | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321    
1322     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328    
1329 michael 967 -*) as_fn_error "unrecognized option: \`$ac_option'
1330     Try \`$0 --help' for more information."
1331 michael 912 ;;
1332    
1333     *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336 michael 967 case $ac_envvar in #(
1337     '' | [0-9]* | *[!_$as_cr_alnum]* )
1338     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339     esac
1340 michael 912 eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342    
1343     *)
1344     # FIXME: should be removed in autoconf 3.0.
1345 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 michael 912 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350    
1351     esac
1352     done
1353    
1354     if test -n "$ac_prev"; then
1355     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 michael 967 as_fn_error "missing argument to $ac_option"
1357 michael 912 fi
1358    
1359 db 941 if test -n "$ac_unrecognized_opts"; then
1360     case $enable_option_checking in
1361     no) ;;
1362 michael 967 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 db 941 esac
1365     fi
1366    
1367     # Check all directory arguments for consistency.
1368 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369     datadir sysconfdir sharedstatedir localstatedir includedir \
1370     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371     libdir localedir mandir
1372     do
1373     eval ac_val=\$$ac_var
1374 db 941 # Remove trailing slashes.
1375 michael 912 case $ac_val in
1376 db 941 */ )
1377     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378     eval $ac_var=\$ac_val;;
1379     esac
1380     # Be sure to have absolute directory names.
1381     case $ac_val in
1382 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1383     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384     esac
1385 michael 967 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 michael 912 done
1387    
1388     # There might be people who depend on the old broken behavior: `$host'
1389     # used to hold the argument of --host etc.
1390     # FIXME: To remove some day.
1391     build=$build_alias
1392     host=$host_alias
1393     target=$target_alias
1394    
1395     # FIXME: To remove some day.
1396     if test "x$host_alias" != x; then
1397     if test "x$build_alias" = x; then
1398     cross_compiling=maybe
1399 db 941 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 michael 912 If a cross compiler is detected then cross compile mode will be used." >&2
1401     elif test "x$build_alias" != "x$host_alias"; then
1402     cross_compiling=yes
1403     fi
1404     fi
1405    
1406     ac_tool_prefix=
1407     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408    
1409     test "$silent" = yes && exec 6>/dev/null
1410    
1411    
1412     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413     ac_ls_di=`ls -di .` &&
1414     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 michael 967 as_fn_error "working directory cannot be determined"
1416 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417 michael 967 as_fn_error "pwd does not report name of working directory"
1418 michael 912
1419    
1420     # Find the source files, if location was not specified.
1421     if test -z "$srcdir"; then
1422     ac_srcdir_defaulted=yes
1423     # Try the directory containing this script, then the parent directory.
1424 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1425     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426     X"$as_myself" : 'X\(//\)[^/]' \| \
1427     X"$as_myself" : 'X\(//\)$' \| \
1428     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429     $as_echo X"$as_myself" |
1430 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431     s//\1/
1432     q
1433     }
1434     /^X\(\/\/\)[^/].*/{
1435     s//\1/
1436     q
1437     }
1438     /^X\(\/\/\)$/{
1439     s//\1/
1440     q
1441     }
1442     /^X\(\/\).*/{
1443     s//\1/
1444     q
1445     }
1446     s/.*/./; q'`
1447     srcdir=$ac_confdir
1448     if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450     fi
1451     else
1452     ac_srcdir_defaulted=no
1453     fi
1454     if test ! -r "$srcdir/$ac_unique_file"; then
1455     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456 michael 967 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 michael 912 fi
1458     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459     ac_abs_confdir=`(
1460 michael 967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461 michael 912 pwd)`
1462     # When building in place, set srcdir=.
1463     if test "$ac_abs_confdir" = "$ac_pwd"; then
1464     srcdir=.
1465     fi
1466     # Remove unnecessary trailing slashes from srcdir.
1467     # Double slashes in file names in object file debugging info
1468     # mess up M-x gdb in Emacs.
1469     case $srcdir in
1470     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471     esac
1472     for ac_var in $ac_precious_vars; do
1473     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474     eval ac_env_${ac_var}_value=\$${ac_var}
1475     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477     done
1478    
1479     #
1480     # Report the --help message.
1481     #
1482     if test "$ac_init_help" = "long"; then
1483     # Omit some internal or obsolete options to make the list less imposing.
1484     # This message is too long to be a string in the A/UX 3.1 sh.
1485     cat <<_ACEOF
1486     \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1487    
1488     Usage: $0 [OPTION]... [VAR=VALUE]...
1489    
1490     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491     VAR=VALUE. See below for descriptions of some of the useful variables.
1492    
1493     Defaults for the options are specified in brackets.
1494    
1495     Configuration:
1496     -h, --help display this help and exit
1497     --help=short display options specific to this package
1498     --help=recursive display the short help of all the included packages
1499     -V, --version display version information and exit
1500     -q, --quiet, --silent do not print \`checking...' messages
1501     --cache-file=FILE cache test results in FILE [disabled]
1502     -C, --config-cache alias for \`--cache-file=config.cache'
1503     -n, --no-create do not create output files
1504     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505    
1506     Installation directories:
1507     --prefix=PREFIX install architecture-independent files in PREFIX
1508 db 941 [$ac_default_prefix]
1509 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 db 941 [PREFIX]
1511 michael 912
1512     By default, \`make install' will install all the files in
1513     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515     for instance \`--prefix=\$HOME'.
1516    
1517     For better control, use the options below.
1518    
1519     Fine tuning of the installation directories:
1520 db 941 --bindir=DIR user executables [EPREFIX/bin]
1521     --sbindir=DIR system admin executables [EPREFIX/sbin]
1522     --libexecdir=DIR program executables [EPREFIX/libexec]
1523     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526     --libdir=DIR object code libraries [EPREFIX/lib]
1527     --includedir=DIR C header files [PREFIX/include]
1528     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531     --infodir=DIR info documentation [DATAROOTDIR/info]
1532     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533     --mandir=DIR man documentation [DATAROOTDIR/man]
1534     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1535     --htmldir=DIR html documentation [DOCDIR]
1536     --dvidir=DIR dvi documentation [DOCDIR]
1537     --pdfdir=DIR pdf documentation [DOCDIR]
1538     --psdir=DIR ps documentation [DOCDIR]
1539 michael 912 _ACEOF
1540    
1541     cat <<\_ACEOF
1542    
1543     Program names:
1544     --program-prefix=PREFIX prepend PREFIX to installed program names
1545     --program-suffix=SUFFIX append SUFFIX to installed program names
1546     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547    
1548     System types:
1549     --build=BUILD configure for building on BUILD [guessed]
1550     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551     _ACEOF
1552     fi
1553    
1554     if test -n "$ac_init_help"; then
1555     case $ac_init_help in
1556     short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1557     esac
1558     cat <<\_ACEOF
1559    
1560     Optional Features:
1561 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1562 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564     --enable-maintainer-mode enable make rules and dependencies not useful
1565     (and sometimes confusing) to the casual installer
1566     --disable-dependency-tracking speeds up one-time build
1567     --enable-dependency-tracking do not reject slow dependency extractors
1568 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1569 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1570 michael 912 --enable-fast-install[=PKGS]
1571     optimize for fast installation [default=yes]
1572     --disable-libtool-lock avoid locking (might break parallel builds)
1573 michael 945 --enable-ltdl-install install libltdl
1574 michael 923 --disable-zlib Disable ziplinks support
1575 michael 1009 --disable-libpcre Disable PCRE support
1576 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1577     --disable-openssl Disable OpenSSL support.
1578 michael 924 --enable-assert Enable assert() statements
1579 michael 925 --enable-small-net Enable small network support.
1580 michael 912 --enable-kqueue Force kqueue usage.
1581     --enable-epoll Force epoll usage.
1582     --enable-devpoll Force devpoll usage.
1583     --enable-rtsigio Force rtsigio usage.
1584     --enable-poll Force poll usage.
1585     --enable-select Force select usage.
1586     --enable-efnet For IRCDs running on EFnet.
1587     --enable-halfops Enable halfops support.
1588     --enable-debugging Enable debugging.
1589     --enable-warnings Enable compiler warnings.
1590     --enable-syslog="EVENTS"
1591     Enable syslog for events: users oper (space
1592     separated in quotes; default: disabled).
1593    
1594     Optional Packages:
1595     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1596     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1597     --with-pic try to use only PIC/non-PIC objects [default=use
1598     both]
1599 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1600     --with-included-ltdl use the GNU ltdl sources included here
1601     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1602     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1603 michael 923 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1604 michael 1009 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1605 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1606     --with-topiclen=<value> Set topic length (default 160).
1607     --with-syslog-facility=LOG
1608     Define the syslog facility to use (default:
1609     LOG_LOCAL4)
1610    
1611     Some influential environment variables:
1612     CC C compiler command
1613     CFLAGS C compiler flags
1614     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615     nonstandard directory <lib dir>
1616     LIBS libraries to pass to the linker, e.g. -l<library>
1617     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1618     you have headers in a nonstandard directory <include dir>
1619     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1620     the first program found out of: `bison -y', `byacc', `yacc'.
1621     YFLAGS The list of arguments that will be passed by default to $YACC.
1622     This script will default YFLAGS to the empty string to avoid a
1623     default value of `-d' given by some make applications.
1624     CPP C preprocessor
1625    
1626     Use these variables to override the choices made by `configure' or to help
1627     it to find libraries and programs with nonstandard names/locations.
1628    
1629 michael 967 Report bugs to the package provider.
1630 michael 912 _ACEOF
1631     ac_status=$?
1632     fi
1633    
1634     if test "$ac_init_help" = "recursive"; then
1635     # If there are subdirs, report their specific --help.
1636     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 db 941 test -d "$ac_dir" ||
1638     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639     continue
1640 michael 912 ac_builddir=.
1641    
1642     case "$ac_dir" in
1643     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644     *)
1645 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 michael 912 # A ".." for each directory in $ac_dir_suffix.
1647 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 michael 912 case $ac_top_builddir_sub in
1649     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651     esac ;;
1652     esac
1653     ac_abs_top_builddir=$ac_pwd
1654     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655     # for backward compatibility:
1656     ac_top_builddir=$ac_top_build_prefix
1657    
1658     case $srcdir in
1659     .) # We are building in place.
1660     ac_srcdir=.
1661     ac_top_srcdir=$ac_top_builddir_sub
1662     ac_abs_top_srcdir=$ac_pwd ;;
1663     [\\/]* | ?:[\\/]* ) # Absolute name.
1664     ac_srcdir=$srcdir$ac_dir_suffix;
1665     ac_top_srcdir=$srcdir
1666     ac_abs_top_srcdir=$srcdir ;;
1667     *) # Relative name.
1668     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669     ac_top_srcdir=$ac_top_build_prefix$srcdir
1670     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1671     esac
1672     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1673    
1674     cd "$ac_dir" || { ac_status=$?; continue; }
1675     # Check for guested configure.
1676     if test -f "$ac_srcdir/configure.gnu"; then
1677     echo &&
1678     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679     elif test -f "$ac_srcdir/configure"; then
1680     echo &&
1681     $SHELL "$ac_srcdir/configure" --help=recursive
1682     else
1683 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1684 michael 912 fi || ac_status=$?
1685     cd "$ac_pwd" || { ac_status=$?; break; }
1686     done
1687     fi
1688    
1689     test -n "$ac_init_help" && exit $ac_status
1690     if $ac_init_version; then
1691     cat <<\_ACEOF
1692     ircd-hybrid configure 7.2.4
1693 michael 967 generated by GNU Autoconf 2.64
1694 michael 912
1695 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
1696 michael 912 This configure script is free software; the Free Software Foundation
1697     gives unlimited permission to copy, distribute and modify it.
1698     _ACEOF
1699     exit
1700     fi
1701 michael 967
1702     ## ------------------------ ##
1703     ## Autoconf initialization. ##
1704     ## ------------------------ ##
1705    
1706     # ac_fn_c_try_compile LINENO
1707     # --------------------------
1708     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709     ac_fn_c_try_compile ()
1710     {
1711     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712     rm -f conftest.$ac_objext
1713     if { { ac_try="$ac_compile"
1714     case "(($ac_try" in
1715     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716     *) ac_try_echo=$ac_try;;
1717     esac
1718     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719     $as_echo "$ac_try_echo"; } >&5
1720     (eval "$ac_compile") 2>conftest.err
1721     ac_status=$?
1722     if test -s conftest.err; then
1723     grep -v '^ *+' conftest.err >conftest.er1
1724     cat conftest.er1 >&5
1725     mv -f conftest.er1 conftest.err
1726     fi
1727     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728     test $ac_status = 0; } && {
1729     test -z "$ac_c_werror_flag" ||
1730     test ! -s conftest.err
1731     } && test -s conftest.$ac_objext; then :
1732     ac_retval=0
1733     else
1734     $as_echo "$as_me: failed program was:" >&5
1735     sed 's/^/| /' conftest.$ac_ext >&5
1736    
1737     ac_retval=1
1738     fi
1739     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740     return $ac_retval
1741    
1742     } # ac_fn_c_try_compile
1743    
1744     # ac_fn_c_try_link LINENO
1745     # -----------------------
1746     # Try to link conftest.$ac_ext, and return whether this succeeded.
1747     ac_fn_c_try_link ()
1748     {
1749     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750     rm -f conftest.$ac_objext conftest$ac_exeext
1751     if { { ac_try="$ac_link"
1752     case "(($ac_try" in
1753     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754     *) ac_try_echo=$ac_try;;
1755     esac
1756     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757     $as_echo "$ac_try_echo"; } >&5
1758     (eval "$ac_link") 2>conftest.err
1759     ac_status=$?
1760     if test -s conftest.err; then
1761     grep -v '^ *+' conftest.err >conftest.er1
1762     cat conftest.er1 >&5
1763     mv -f conftest.er1 conftest.err
1764     fi
1765     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766     test $ac_status = 0; } && {
1767     test -z "$ac_c_werror_flag" ||
1768     test ! -s conftest.err
1769     } && test -s conftest$ac_exeext && {
1770     test "$cross_compiling" = yes ||
1771     $as_test_x conftest$ac_exeext
1772     }; then :
1773     ac_retval=0
1774     else
1775     $as_echo "$as_me: failed program was:" >&5
1776     sed 's/^/| /' conftest.$ac_ext >&5
1777    
1778     ac_retval=1
1779     fi
1780     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1781     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1782     # interfere with the next link command; also delete a directory that is
1783     # left behind by Apple's compiler. We do this before executing the actions.
1784     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786     return $ac_retval
1787    
1788     } # ac_fn_c_try_link
1789    
1790     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791     # -------------------------------------------------------
1792     # Tests whether HEADER exists and can be compiled using the include files in
1793     # INCLUDES, setting the cache variable VAR accordingly.
1794     ac_fn_c_check_header_compile ()
1795     {
1796     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798     $as_echo_n "checking for $2... " >&6; }
1799     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800     $as_echo_n "(cached) " >&6
1801     else
1802     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803     /* end confdefs.h. */
1804     $4
1805     #include <$2>
1806     _ACEOF
1807     if ac_fn_c_try_compile "$LINENO"; then :
1808     eval "$3=yes"
1809     else
1810     eval "$3=no"
1811     fi
1812     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813     fi
1814     eval ac_res=\$$3
1815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816     $as_echo "$ac_res" >&6; }
1817     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818    
1819     } # ac_fn_c_check_header_compile
1820    
1821     # ac_fn_c_try_cpp LINENO
1822     # ----------------------
1823     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824     ac_fn_c_try_cpp ()
1825     {
1826     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827     if { { ac_try="$ac_cpp conftest.$ac_ext"
1828     case "(($ac_try" in
1829     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830     *) ac_try_echo=$ac_try;;
1831     esac
1832     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833     $as_echo "$ac_try_echo"; } >&5
1834     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835     ac_status=$?
1836     if test -s conftest.err; then
1837     grep -v '^ *+' conftest.err >conftest.er1
1838     cat conftest.er1 >&5
1839     mv -f conftest.er1 conftest.err
1840     fi
1841     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842     test $ac_status = 0; } >/dev/null && {
1843     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844     test ! -s conftest.err
1845     }; then :
1846     ac_retval=0
1847     else
1848     $as_echo "$as_me: failed program was:" >&5
1849     sed 's/^/| /' conftest.$ac_ext >&5
1850    
1851     ac_retval=1
1852     fi
1853     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854     return $ac_retval
1855    
1856     } # ac_fn_c_try_cpp
1857    
1858     # ac_fn_c_try_run LINENO
1859     # ----------------------
1860     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1861     # that executables *can* be run.
1862     ac_fn_c_try_run ()
1863     {
1864     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865     if { { ac_try="$ac_link"
1866     case "(($ac_try" in
1867     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868     *) ac_try_echo=$ac_try;;
1869     esac
1870     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871     $as_echo "$ac_try_echo"; } >&5
1872     (eval "$ac_link") 2>&5
1873     ac_status=$?
1874     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1876     { { case "(($ac_try" in
1877     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878     *) ac_try_echo=$ac_try;;
1879     esac
1880     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881     $as_echo "$ac_try_echo"; } >&5
1882     (eval "$ac_try") 2>&5
1883     ac_status=$?
1884     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885     test $ac_status = 0; }; }; then :
1886     ac_retval=0
1887     else
1888     $as_echo "$as_me: program exited with status $ac_status" >&5
1889     $as_echo "$as_me: failed program was:" >&5
1890     sed 's/^/| /' conftest.$ac_ext >&5
1891    
1892     ac_retval=$ac_status
1893     fi
1894     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896     return $ac_retval
1897    
1898     } # ac_fn_c_try_run
1899    
1900     # ac_fn_c_check_func LINENO FUNC VAR
1901     # ----------------------------------
1902     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1903     ac_fn_c_check_func ()
1904     {
1905     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907     $as_echo_n "checking for $2... " >&6; }
1908     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909     $as_echo_n "(cached) " >&6
1910     else
1911     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912     /* end confdefs.h. */
1913     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1914     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1915     #define $2 innocuous_$2
1916    
1917     /* System header to define __stub macros and hopefully few prototypes,
1918     which can conflict with char $2 (); below.
1919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1920     <limits.h> exists even on freestanding compilers. */
1921    
1922     #ifdef __STDC__
1923     # include <limits.h>
1924     #else
1925     # include <assert.h>
1926     #endif
1927    
1928     #undef $2
1929    
1930     /* Override any GCC internal prototype to avoid an error.
1931     Use char because int might match the return type of a GCC
1932     builtin and then its argument prototype would still apply. */
1933     #ifdef __cplusplus
1934     extern "C"
1935     #endif
1936     char $2 ();
1937     /* The GNU C library defines this for functions which it implements
1938     to always fail with ENOSYS. Some functions are actually named
1939     something starting with __ and the normal name is an alias. */
1940     #if defined __stub_$2 || defined __stub___$2
1941     choke me
1942     #endif
1943    
1944     int
1945     main ()
1946     {
1947     return $2 ();
1948     ;
1949     return 0;
1950     }
1951     _ACEOF
1952     if ac_fn_c_try_link "$LINENO"; then :
1953     eval "$3=yes"
1954     else
1955     eval "$3=no"
1956     fi
1957     rm -f core conftest.err conftest.$ac_objext \
1958     conftest$ac_exeext conftest.$ac_ext
1959     fi
1960     eval ac_res=\$$3
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962     $as_echo "$ac_res" >&6; }
1963     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964    
1965     } # ac_fn_c_check_func
1966    
1967     # ac_fn_c_check_decl LINENO SYMBOL VAR
1968     # ------------------------------------
1969     # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1970     ac_fn_c_check_decl ()
1971     {
1972     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1974     $as_echo_n "checking whether $2 is declared... " >&6; }
1975     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1976     $as_echo_n "(cached) " >&6
1977     else
1978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979     /* end confdefs.h. */
1980     $4
1981     int
1982     main ()
1983     {
1984     #ifndef $2
1985     (void) $2;
1986     #endif
1987    
1988     ;
1989     return 0;
1990     }
1991     _ACEOF
1992     if ac_fn_c_try_compile "$LINENO"; then :
1993     eval "$3=yes"
1994     else
1995     eval "$3=no"
1996     fi
1997     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998     fi
1999     eval ac_res=\$$3
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001     $as_echo "$ac_res" >&6; }
2002     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003    
2004     } # ac_fn_c_check_decl
2005    
2006     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007     # -------------------------------------------
2008     # Tests whether TYPE exists after having included INCLUDES, setting cache
2009     # variable VAR accordingly.
2010     ac_fn_c_check_type ()
2011     {
2012     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014     $as_echo_n "checking for $2... " >&6; }
2015     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016     $as_echo_n "(cached) " >&6
2017     else
2018     eval "$3=no"
2019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020     /* end confdefs.h. */
2021     $4
2022     int
2023     main ()
2024     {
2025     if (sizeof ($2))
2026     return 0;
2027     ;
2028     return 0;
2029     }
2030     _ACEOF
2031     if ac_fn_c_try_compile "$LINENO"; then :
2032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033     /* end confdefs.h. */
2034     $4
2035     int
2036     main ()
2037     {
2038     if (sizeof (($2)))
2039     return 0;
2040     ;
2041     return 0;
2042     }
2043     _ACEOF
2044     if ac_fn_c_try_compile "$LINENO"; then :
2045    
2046     else
2047     eval "$3=yes"
2048     fi
2049     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050     fi
2051     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052     fi
2053     eval ac_res=\$$3
2054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055     $as_echo "$ac_res" >&6; }
2056     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057    
2058     } # ac_fn_c_check_type
2059    
2060     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2061     # ----------------------------------------------------
2062     # Tries to find if the field MEMBER exists in type AGGR, after including
2063     # INCLUDES, setting cache variable VAR accordingly.
2064     ac_fn_c_check_member ()
2065     {
2066     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2068     $as_echo_n "checking for $2.$3... " >&6; }
2069     if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2070     $as_echo_n "(cached) " >&6
2071     else
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073     /* end confdefs.h. */
2074     $5
2075     int
2076     main ()
2077     {
2078     static $2 ac_aggr;
2079     if (ac_aggr.$3)
2080     return 0;
2081     ;
2082     return 0;
2083     }
2084     _ACEOF
2085     if ac_fn_c_try_compile "$LINENO"; then :
2086     eval "$4=yes"
2087     else
2088     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089     /* end confdefs.h. */
2090     $5
2091     int
2092     main ()
2093     {
2094     static $2 ac_aggr;
2095     if (sizeof ac_aggr.$3)
2096     return 0;
2097     ;
2098     return 0;
2099     }
2100     _ACEOF
2101     if ac_fn_c_try_compile "$LINENO"; then :
2102     eval "$4=yes"
2103     else
2104     eval "$4=no"
2105     fi
2106     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107     fi
2108     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109     fi
2110     eval ac_res=\$$4
2111     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112     $as_echo "$ac_res" >&6; }
2113     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114    
2115     } # ac_fn_c_check_member
2116    
2117     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2118     # -------------------------------------------------------
2119     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120     # the include files in INCLUDES and setting the cache variable VAR
2121     # accordingly.
2122     ac_fn_c_check_header_mongrel ()
2123     {
2124     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127     $as_echo_n "checking for $2... " >&6; }
2128     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2129     $as_echo_n "(cached) " >&6
2130     fi
2131     eval ac_res=\$$3
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133     $as_echo "$ac_res" >&6; }
2134     else
2135     # Is the header compilable?
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137     $as_echo_n "checking $2 usability... " >&6; }
2138     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139     /* end confdefs.h. */
2140     $4
2141     #include <$2>
2142     _ACEOF
2143     if ac_fn_c_try_compile "$LINENO"; then :
2144     ac_header_compiler=yes
2145     else
2146     ac_header_compiler=no
2147     fi
2148     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150     $as_echo "$ac_header_compiler" >&6; }
2151    
2152     # Is the header present?
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154     $as_echo_n "checking $2 presence... " >&6; }
2155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156     /* end confdefs.h. */
2157     #include <$2>
2158     _ACEOF
2159     if ac_fn_c_try_cpp "$LINENO"; then :
2160     ac_header_preproc=yes
2161     else
2162     ac_header_preproc=no
2163     fi
2164     rm -f conftest.err conftest.$ac_ext
2165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166     $as_echo "$ac_header_preproc" >&6; }
2167    
2168     # So? What about this header?
2169     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2170     yes:no: )
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2175     ;;
2176     no:yes:* )
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187     ;;
2188     esac
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190     $as_echo_n "checking for $2... " >&6; }
2191     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192     $as_echo_n "(cached) " >&6
2193     else
2194     eval "$3=\$ac_header_compiler"
2195     fi
2196     eval ac_res=\$$3
2197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198     $as_echo "$ac_res" >&6; }
2199     fi
2200     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2201    
2202     } # ac_fn_c_check_header_mongrel
2203 michael 912 cat >config.log <<_ACEOF
2204     This file contains any messages produced by compilers while
2205     running configure, to aid debugging if configure makes a mistake.
2206    
2207     It was created by ircd-hybrid $as_me 7.2.4, which was
2208 michael 967 generated by GNU Autoconf 2.64. Invocation command line was
2209 michael 912
2210     $ $0 $@
2211    
2212     _ACEOF
2213     exec 5>>config.log
2214     {
2215     cat <<_ASUNAME
2216     ## --------- ##
2217     ## Platform. ##
2218     ## --------- ##
2219    
2220     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225    
2226     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2228    
2229     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2236    
2237     _ASUNAME
2238    
2239     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240     for as_dir in $PATH
2241     do
2242     IFS=$as_save_IFS
2243     test -z "$as_dir" && as_dir=.
2244 michael 967 $as_echo "PATH: $as_dir"
2245     done
2246 michael 912 IFS=$as_save_IFS
2247    
2248     } >&5
2249    
2250     cat >&5 <<_ACEOF
2251    
2252    
2253     ## ----------- ##
2254     ## Core tests. ##
2255     ## ----------- ##
2256    
2257     _ACEOF
2258    
2259    
2260     # Keep a trace of the command line.
2261     # Strip out --no-create and --no-recursion so they do not pile up.
2262     # Strip out --silent because we don't want to record it for future runs.
2263     # Also quote any args containing shell meta-characters.
2264     # Make two passes to allow for proper duplicate-argument suppression.
2265     ac_configure_args=
2266     ac_configure_args0=
2267     ac_configure_args1=
2268     ac_must_keep_next=false
2269     for ac_pass in 1 2
2270     do
2271     for ac_arg
2272     do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277     continue ;;
2278     *\'*)
2279 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 michael 912 esac
2281     case $ac_pass in
2282 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283 michael 912 2)
2284 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 michael 912 if test $ac_must_keep_next = true; then
2286     ac_must_keep_next=false # Got value, back to normal.
2287     else
2288     case $ac_arg in
2289     *=* | --config-cache | -C | -disable-* | --disable-* \
2290     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292     | -with-* | --with-* | -without-* | --without-* | --x)
2293     case "$ac_configure_args0 " in
2294     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295     esac
2296     ;;
2297     -* ) ac_must_keep_next=true ;;
2298     esac
2299     fi
2300 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2301 michael 912 ;;
2302     esac
2303     done
2304     done
2305 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2306     { ac_configure_args1=; unset ac_configure_args1;}
2307 michael 912
2308     # When interrupted or exit'd, cleanup temporary files, and complete
2309     # config.log. We remove comments because anyway the quotes in there
2310     # would cause problems or look ugly.
2311     # WARNING: Use '\'' to represent an apostrophe within the trap.
2312     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313     trap 'exit_status=$?
2314     # Save into config.log some information that might help in debugging.
2315     {
2316     echo
2317    
2318     cat <<\_ASBOX
2319     ## ---------------- ##
2320     ## Cache variables. ##
2321     ## ---------------- ##
2322     _ASBOX
2323     echo
2324     # The following way of writing the cache mishandles newlines in values,
2325     (
2326     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327     eval ac_val=\$$ac_var
2328     case $ac_val in #(
2329     *${as_nl}*)
2330     case $ac_var in #(
2331 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 michael 912 esac
2334     case $ac_var in #(
2335     _ | IFS | as_nl) ;; #(
2336 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2338 michael 912 esac ;;
2339     esac
2340     done
2341     (set) 2>&1 |
2342     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343     *${as_nl}ac_space=\ *)
2344     sed -n \
2345     "s/'\''/'\''\\\\'\'''\''/g;
2346     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347     ;; #(
2348     *)
2349     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350     ;;
2351     esac |
2352     sort
2353     )
2354     echo
2355    
2356     cat <<\_ASBOX
2357     ## ----------------- ##
2358     ## Output variables. ##
2359     ## ----------------- ##
2360     _ASBOX
2361     echo
2362     for ac_var in $ac_subst_vars
2363     do
2364     eval ac_val=\$$ac_var
2365     case $ac_val in
2366 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 michael 912 esac
2368 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2369 michael 912 done | sort
2370     echo
2371    
2372     if test -n "$ac_subst_files"; then
2373     cat <<\_ASBOX
2374     ## ------------------- ##
2375     ## File substitutions. ##
2376     ## ------------------- ##
2377     _ASBOX
2378     echo
2379     for ac_var in $ac_subst_files
2380     do
2381     eval ac_val=\$$ac_var
2382     case $ac_val in
2383 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 michael 912 esac
2385 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2386 michael 912 done | sort
2387     echo
2388     fi
2389    
2390     if test -s confdefs.h; then
2391     cat <<\_ASBOX
2392     ## ----------- ##
2393     ## confdefs.h. ##
2394     ## ----------- ##
2395     _ASBOX
2396     echo
2397     cat confdefs.h
2398     echo
2399     fi
2400     test "$ac_signal" != 0 &&
2401 db 941 $as_echo "$as_me: caught signal $ac_signal"
2402     $as_echo "$as_me: exit $exit_status"
2403 michael 912 } >&5
2404     rm -f core *.core core.conftest.* &&
2405     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2406     exit $exit_status
2407     ' 0
2408     for ac_signal in 1 2 13 15; do
2409 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2410 michael 912 done
2411     ac_signal=0
2412    
2413     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2414     rm -f -r conftest* confdefs.h
2415    
2416 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2417    
2418 michael 912 # Predefined preprocessor variables.
2419    
2420     cat >>confdefs.h <<_ACEOF
2421     #define PACKAGE_NAME "$PACKAGE_NAME"
2422     _ACEOF
2423    
2424     cat >>confdefs.h <<_ACEOF
2425     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2426     _ACEOF
2427    
2428     cat >>confdefs.h <<_ACEOF
2429     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2430     _ACEOF
2431    
2432     cat >>confdefs.h <<_ACEOF
2433     #define PACKAGE_STRING "$PACKAGE_STRING"
2434     _ACEOF
2435    
2436     cat >>confdefs.h <<_ACEOF
2437     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2438     _ACEOF
2439    
2440 michael 967 cat >>confdefs.h <<_ACEOF
2441     #define PACKAGE_URL "$PACKAGE_URL"
2442     _ACEOF
2443 michael 912
2444 michael 967
2445 michael 912 # Let the site file select an alternate cache file if it wants to.
2446 db 941 # Prefer an explicitly selected file to automatically selected ones.
2447     ac_site_file1=NONE
2448     ac_site_file2=NONE
2449 michael 912 if test -n "$CONFIG_SITE"; then
2450 db 941 ac_site_file1=$CONFIG_SITE
2451 michael 912 elif test "x$prefix" != xNONE; then
2452 db 941 ac_site_file1=$prefix/share/config.site
2453     ac_site_file2=$prefix/etc/config.site
2454 michael 912 else
2455 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2456     ac_site_file2=$ac_default_prefix/etc/config.site
2457 michael 912 fi
2458 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2459 michael 912 do
2460 db 941 test "x$ac_site_file" = xNONE && continue
2461 michael 912 if test -r "$ac_site_file"; then
2462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2463 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2464 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2465     . "$ac_site_file"
2466     fi
2467     done
2468    
2469     if test -r "$cache_file"; then
2470     # Some versions of bash will fail to source /dev/null (special
2471     # files actually), so we avoid doing that.
2472     if test -f "$cache_file"; then
2473 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 michael 912 case $cache_file in
2476     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477     *) . "./$cache_file";;
2478     esac
2479     fi
2480     else
2481 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 michael 912 >$cache_file
2484     fi
2485    
2486 michael 967 as_fn_append ac_func_list " mmap"
2487     as_fn_append ac_func_list " strtok_r"
2488     as_fn_append ac_func_list " usleep"
2489     as_fn_append ac_func_list " strlcat"
2490     as_fn_append ac_func_list " strlcpy"
2491     as_fn_append ac_header_list " crypt.h"
2492     as_fn_append ac_header_list " inttypes.h"
2493     as_fn_append ac_header_list " stdint.h"
2494     as_fn_append ac_header_list " sys/resource.h"
2495     as_fn_append ac_header_list " sys/param.h"
2496     as_fn_append ac_header_list " errno.h"
2497     as_fn_append ac_header_list " sys/syslog.h"
2498     as_fn_append ac_header_list " stddef.h"
2499     as_fn_append ac_header_list " libgen.h"
2500     as_fn_append ac_header_list " types.h"
2501     as_fn_append ac_header_list " socket.h"
2502     as_fn_append ac_header_list " sys/wait.h"
2503     as_fn_append ac_header_list " wait.h"
2504     as_fn_append ac_header_list " link.h"
2505 michael 912 # Check that the precious variables saved in the cache have kept the same
2506     # value.
2507     ac_cache_corrupted=false
2508     for ac_var in $ac_precious_vars; do
2509     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2510     eval ac_new_set=\$ac_env_${ac_var}_set
2511     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2512     eval ac_new_val=\$ac_env_${ac_var}_value
2513     case $ac_old_set,$ac_new_set in
2514     set,)
2515 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2516 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2517 michael 912 ac_cache_corrupted=: ;;
2518     ,set)
2519 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2520 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2521 michael 912 ac_cache_corrupted=: ;;
2522     ,);;
2523     *)
2524     if test "x$ac_old_val" != "x$ac_new_val"; then
2525 db 941 # differences in whitespace do not lead to failure.
2526     ac_old_val_w=`echo x $ac_old_val`
2527     ac_new_val_w=`echo x $ac_new_val`
2528     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2529 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2530 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2531     ac_cache_corrupted=:
2532     else
2533 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2534 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2535     eval $ac_var=\$ac_old_val
2536     fi
2537 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2538 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2539 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2540 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2541 michael 912 fi;;
2542     esac
2543     # Pass precious variables to config.status.
2544     if test "$ac_new_set" = set; then
2545     case $ac_new_val in
2546 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2547 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2548     esac
2549     case " $ac_configure_args " in
2550     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2551 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2552 michael 912 esac
2553     fi
2554     done
2555     if $ac_cache_corrupted; then
2556 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2559 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2560 michael 967 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2561 michael 912 fi
2562 michael 967 ## -------------------- ##
2563     ## Main body of script. ##
2564     ## -------------------- ##
2565 michael 912
2566     ac_ext=c
2567     ac_cpp='$CPP $CPPFLAGS'
2568     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2569     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2570     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2571    
2572    
2573 michael 945 am__api_version='1.11'
2574 michael 912
2575     ac_aux_dir=
2576     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2577 michael 967 for ac_t in install-sh install.sh shtool; do
2578     if test -f "$ac_dir/$ac_t"; then
2579     ac_aux_dir=$ac_dir
2580     ac_install_sh="$ac_aux_dir/$ac_t -c"
2581     break 2
2582     fi
2583     done
2584 michael 912 done
2585     if test -z "$ac_aux_dir"; then
2586 michael 967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2587 michael 912 fi
2588    
2589     # These three variables are undocumented and unsupported,
2590     # and are intended to be withdrawn in a future Autoconf release.
2591     # They can cause serious problems if a builder's source tree is in a directory
2592     # whose full name contains unusual characters.
2593     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2594     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2595     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2596    
2597    
2598     # Find a good install program. We prefer a C program (faster),
2599     # so one script is as good as another. But avoid the broken or
2600     # incompatible versions:
2601     # SysV /etc/install, /usr/sbin/install
2602     # SunOS /usr/etc/install
2603     # IRIX /sbin/install
2604     # AIX /bin/install
2605     # AmigaOS /C/install, which installs bootblocks on floppy discs
2606     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2607     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2608     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2609     # OS/2's system install, which has a completely different semantic
2610     # ./install, which can be erroneously created by make from ./install.sh.
2611 db 941 # Reject install programs that cannot install multiple files.
2612 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2613 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2614 michael 912 if test -z "$INSTALL"; then
2615 michael 967 if test "${ac_cv_path_install+set}" = set; then :
2616 db 941 $as_echo_n "(cached) " >&6
2617 michael 912 else
2618     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619     for as_dir in $PATH
2620     do
2621     IFS=$as_save_IFS
2622     test -z "$as_dir" && as_dir=.
2623 michael 967 # Account for people who put trailing slashes in PATH elements.
2624     case $as_dir/ in #((
2625     ./ | .// | /[cC]/* | \
2626 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2627 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2628 michael 912 /usr/ucb/* ) ;;
2629     *)
2630     # OSF1 and SCO ODT 3.0 have their own names for install.
2631     # Don't use installbsd from OSF since it installs stuff as root
2632     # by default.
2633     for ac_prog in ginstall scoinst install; do
2634     for ac_exec_ext in '' $ac_executable_extensions; do
2635     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2636     if test $ac_prog = install &&
2637     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2638     # AIX install. It has an incompatible calling convention.
2639     :
2640     elif test $ac_prog = install &&
2641     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2642     # program-specific install script used by HP pwplus--don't use.
2643     :
2644     else
2645 db 941 rm -rf conftest.one conftest.two conftest.dir
2646     echo one > conftest.one
2647     echo two > conftest.two
2648     mkdir conftest.dir
2649     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2650     test -s conftest.one && test -s conftest.two &&
2651     test -s conftest.dir/conftest.one &&
2652     test -s conftest.dir/conftest.two
2653     then
2654     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2655     break 3
2656     fi
2657 michael 912 fi
2658     fi
2659     done
2660     done
2661     ;;
2662     esac
2663 db 941
2664 michael 967 done
2665 michael 912 IFS=$as_save_IFS
2666    
2667 db 941 rm -rf conftest.one conftest.two conftest.dir
2668 michael 912
2669     fi
2670     if test "${ac_cv_path_install+set}" = set; then
2671     INSTALL=$ac_cv_path_install
2672     else
2673     # As a last resort, use the slow shell script. Don't cache a
2674     # value for INSTALL within a source directory, because that will
2675     # break other packages using the cache if that directory is
2676     # removed, or if the value is a relative name.
2677     INSTALL=$ac_install_sh
2678     fi
2679     fi
2680 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2681 db 941 $as_echo "$INSTALL" >&6; }
2682 michael 912
2683     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2684     # It thinks the first close brace ends the variable substitution.
2685     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2686    
2687     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2688    
2689     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2690    
2691 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2692 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2693 michael 912 # Just in case
2694     sleep 1
2695     echo timestamp > conftest.file
2696 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2697     # name. Accept space and tab only in the latter.
2698     am_lf='
2699     '
2700     case `pwd` in
2701     *[\\\"\#\$\&\'\`$am_lf]*)
2702 michael 967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2703 michael 945 esac
2704     case $srcdir in
2705     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2706 michael 967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2707 michael 945 esac
2708    
2709 michael 912 # Do `set' in a subshell so we don't clobber the current shell's
2710     # arguments. Must try -L first in case configure is actually a
2711     # symlink; some systems play weird games with the mod time of symlinks
2712     # (eg FreeBSD returns the mod time of the symlink's containing
2713     # directory).
2714     if (
2715 michael 945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2716 michael 912 if test "$*" = "X"; then
2717     # -L didn't work.
2718 michael 945 set X `ls -t "$srcdir/configure" conftest.file`
2719 michael 912 fi
2720     rm -f conftest.file
2721     if test "$*" != "X $srcdir/configure conftest.file" \
2722     && test "$*" != "X conftest.file $srcdir/configure"; then
2723    
2724     # If neither matched, then we have a broken ls. This can happen
2725     # if, for instance, CONFIG_SHELL is bash and it inherits a
2726     # broken ls alias from the environment. This has actually
2727     # happened. Such a system could not be considered "sane".
2728 michael 967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2729     alias in your environment" "$LINENO" 5
2730 michael 912 fi
2731    
2732     test "$2" = conftest.file
2733     )
2734     then
2735     # Ok.
2736     :
2737     else
2738 michael 967 as_fn_error "newly created file is older than distributed files!
2739     Check your system clock" "$LINENO" 5
2740 michael 912 fi
2741 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2742 db 941 $as_echo "yes" >&6; }
2743 michael 912 test "$program_prefix" != NONE &&
2744     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2745     # Use a double $ so make ignores it.
2746     test "$program_suffix" != NONE &&
2747     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2748 db 941 # Double any \ or $.
2749 michael 912 # By default was `s,x,x', remove it if useless.
2750 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2751     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2752 michael 912
2753     # expand $ac_aux_dir to an absolute path
2754     am_aux_dir=`cd $ac_aux_dir && pwd`
2755    
2756 michael 945 if test x"${MISSING+set}" != xset; then
2757     case $am_aux_dir in
2758     *\ * | *\ *)
2759     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2760     *)
2761     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2762     esac
2763     fi
2764 michael 912 # Use eval to expand $SHELL
2765     if eval "$MISSING --run true"; then
2766     am_missing_run="$MISSING --run "
2767     else
2768     am_missing_run=
2769 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2770 db 941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2771 michael 912 fi
2772    
2773 michael 945 if test x"${install_sh}" != xset; then
2774     case $am_aux_dir in
2775     *\ * | *\ *)
2776     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2777     *)
2778     install_sh="\${SHELL} $am_aux_dir/install-sh"
2779     esac
2780     fi
2781    
2782     # Installed binaries are usually stripped using `strip' when the user
2783     # run `make install-strip'. However `strip' might not be the right
2784     # tool to use in cross-compilation environments, therefore Automake
2785     # will honor the `STRIP' environment variable to overrule this program.
2786     if test "$cross_compiling" != no; then
2787     if test -n "$ac_tool_prefix"; then
2788     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2789     set dummy ${ac_tool_prefix}strip; ac_word=$2
2790 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2792 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2793 michael 945 $as_echo_n "(cached) " >&6
2794     else
2795     if test -n "$STRIP"; then
2796     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2797     else
2798     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799     for as_dir in $PATH
2800     do
2801     IFS=$as_save_IFS
2802     test -z "$as_dir" && as_dir=.
2803 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2804 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2806 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 michael 945 break 2
2808     fi
2809     done
2810 michael 967 done
2811 michael 945 IFS=$as_save_IFS
2812    
2813     fi
2814     fi
2815     STRIP=$ac_cv_prog_STRIP
2816     if test -n "$STRIP"; then
2817 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2818 michael 945 $as_echo "$STRIP" >&6; }
2819     else
2820 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 michael 945 $as_echo "no" >&6; }
2822     fi
2823    
2824    
2825     fi
2826     if test -z "$ac_cv_prog_STRIP"; then
2827     ac_ct_STRIP=$STRIP
2828     # Extract the first word of "strip", so it can be a program name with args.
2829     set dummy strip; ac_word=$2
2830 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2832 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2833 michael 945 $as_echo_n "(cached) " >&6
2834     else
2835     if test -n "$ac_ct_STRIP"; then
2836     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2837     else
2838     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839     for as_dir in $PATH
2840     do
2841     IFS=$as_save_IFS
2842     test -z "$as_dir" && as_dir=.
2843 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2844 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845     ac_cv_prog_ac_ct_STRIP="strip"
2846 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 michael 945 break 2
2848     fi
2849     done
2850 michael 967 done
2851 michael 945 IFS=$as_save_IFS
2852    
2853     fi
2854     fi
2855     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2856     if test -n "$ac_ct_STRIP"; then
2857 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2858 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2859     else
2860 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 michael 945 $as_echo "no" >&6; }
2862     fi
2863    
2864     if test "x$ac_ct_STRIP" = x; then
2865     STRIP=":"
2866     else
2867     case $cross_compiling:$ac_tool_warned in
2868     yes:)
2869 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2870 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2871     ac_tool_warned=yes ;;
2872     esac
2873     STRIP=$ac_ct_STRIP
2874     fi
2875     else
2876     STRIP="$ac_cv_prog_STRIP"
2877     fi
2878    
2879     fi
2880     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2881    
2882 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2883 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2884 michael 912 if test -z "$MKDIR_P"; then
2885 michael 967 if test "${ac_cv_path_mkdir+set}" = set; then :
2886 db 941 $as_echo_n "(cached) " >&6
2887 michael 912 else
2888     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2890     do
2891     IFS=$as_save_IFS
2892     test -z "$as_dir" && as_dir=.
2893 michael 967 for ac_prog in mkdir gmkdir; do
2894 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2895     { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2896     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2897     'mkdir (GNU coreutils) '* | \
2898     'mkdir (coreutils) '* | \
2899     'mkdir (fileutils) '4.1*)
2900     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2901     break 3;;
2902     esac
2903     done
2904     done
2905 michael 967 done
2906 michael 912 IFS=$as_save_IFS
2907    
2908     fi
2909    
2910     if test "${ac_cv_path_mkdir+set}" = set; then
2911     MKDIR_P="$ac_cv_path_mkdir -p"
2912     else
2913     # As a last resort, use the slow shell script. Don't cache a
2914     # value for MKDIR_P within a source directory, because that will
2915     # break other packages using the cache if that directory is
2916     # removed, or if the value is a relative name.
2917     test -d ./--version && rmdir ./--version
2918     MKDIR_P="$ac_install_sh -d"
2919     fi
2920     fi
2921 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2922 db 941 $as_echo "$MKDIR_P" >&6; }
2923 michael 912
2924     mkdir_p="$MKDIR_P"
2925     case $mkdir_p in
2926     [\\/$]* | ?:[\\/]*) ;;
2927     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2928     esac
2929    
2930     for ac_prog in gawk mawk nawk awk
2931     do
2932     # Extract the first word of "$ac_prog", so it can be a program name with args.
2933     set dummy $ac_prog; ac_word=$2
2934 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2936 michael 967 if test "${ac_cv_prog_AWK+set}" = set; then :
2937 db 941 $as_echo_n "(cached) " >&6
2938 michael 912 else
2939     if test -n "$AWK"; then
2940     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2941     else
2942     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943     for as_dir in $PATH
2944     do
2945     IFS=$as_save_IFS
2946     test -z "$as_dir" && as_dir=.
2947 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2948 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_AWK="$ac_prog"
2950 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 michael 912 break 2
2952     fi
2953     done
2954 michael 967 done
2955 michael 912 IFS=$as_save_IFS
2956    
2957     fi
2958     fi
2959     AWK=$ac_cv_prog_AWK
2960     if test -n "$AWK"; then
2961 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2962 db 941 $as_echo "$AWK" >&6; }
2963 michael 912 else
2964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 db 941 $as_echo "no" >&6; }
2966 michael 912 fi
2967    
2968    
2969     test -n "$AWK" && break
2970     done
2971    
2972 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2973 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2974     set x ${MAKE-make}
2975     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2976 michael 967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2977 db 941 $as_echo_n "(cached) " >&6
2978 michael 912 else
2979     cat >conftest.make <<\_ACEOF
2980     SHELL = /bin/sh
2981     all:
2982     @echo '@@@%%%=$(MAKE)=@@@%%%'
2983     _ACEOF
2984     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2985     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2986     *@@@%%%=?*=@@@%%%*)
2987     eval ac_cv_prog_make_${ac_make}_set=yes;;
2988     *)
2989     eval ac_cv_prog_make_${ac_make}_set=no;;
2990     esac
2991     rm -f conftest.make
2992     fi
2993     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2994 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 db 941 $as_echo "yes" >&6; }
2996 michael 912 SET_MAKE=
2997     else
2998 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 db 941 $as_echo "no" >&6; }
3000 michael 912 SET_MAKE="MAKE=${MAKE-make}"
3001     fi
3002    
3003     rm -rf .tst 2>/dev/null
3004     mkdir .tst 2>/dev/null
3005     if test -d .tst; then
3006     am__leading_dot=.
3007     else
3008     am__leading_dot=_
3009     fi
3010     rmdir .tst 2>/dev/null
3011    
3012     if test "`cd $srcdir && pwd`" != "`pwd`"; then
3013     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3014     # is not polluted with repeated "-I."
3015     am__isrc=' -I$(srcdir)'
3016     # test to see if srcdir already configured
3017     if test -f $srcdir/config.status; then
3018 michael 967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3019 michael 912 fi
3020     fi
3021    
3022     # test whether we have cygpath
3023     if test -z "$CYGPATH_W"; then
3024     if (cygpath --version) >/dev/null 2>/dev/null; then
3025     CYGPATH_W='cygpath -w'
3026     else
3027     CYGPATH_W=echo
3028     fi
3029     fi
3030    
3031    
3032     # Define the identity of the package.
3033     PACKAGE='ircd-hybrid'
3034     VERSION='7.2.4'
3035    
3036    
3037     cat >>confdefs.h <<_ACEOF
3038     #define PACKAGE "$PACKAGE"
3039     _ACEOF
3040    
3041    
3042     cat >>confdefs.h <<_ACEOF
3043     #define VERSION "$VERSION"
3044     _ACEOF
3045    
3046     # Some tools Automake needs.
3047    
3048     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3049    
3050    
3051     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3052    
3053    
3054     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3055    
3056    
3057     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3058    
3059    
3060     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3061    
3062     # We need awk for the "check" target. The system "awk" is bad on
3063     # some platforms.
3064     # Always define AMTAR for backward compatibility.
3065    
3066     AMTAR=${AMTAR-"${am_missing_run}tar"}
3067    
3068     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3069    
3070    
3071    
3072    
3073    
3074 michael 945
3075 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3076 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3077 michael 912 # Check whether --enable-maintainer-mode was given.
3078 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
3079 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3080     else
3081     USE_MAINTAINER_MODE=no
3082     fi
3083    
3084 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3085 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3086 michael 912 if test $USE_MAINTAINER_MODE = yes; then
3087     MAINTAINER_MODE_TRUE=
3088     MAINTAINER_MODE_FALSE='#'
3089     else
3090     MAINTAINER_MODE_TRUE='#'
3091     MAINTAINER_MODE_FALSE=
3092     fi
3093    
3094     MAINT=$MAINTAINER_MODE_TRUE
3095    
3096    
3097     ac_config_headers="$ac_config_headers config.h"
3098    
3099    
3100    
3101 michael 1010 # Checks for programs.
3102     DEPDIR="${am__leading_dot}deps"
3103 michael 923
3104 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3105    
3106    
3107     am_make=${MAKE-make}
3108     cat > confinc << 'END'
3109     am__doit:
3110     @echo this is the am__doit target
3111     .PHONY: am__doit
3112     END
3113     # If we don't find an include directive, just comment out the code.
3114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116     am__include="#"
3117     am__quote=
3118     _am_result=none
3119     # First try GNU make style include.
3120     echo "include confinc" > confmf
3121     # Ignore all kinds of additional output from `make'.
3122     case `$am_make -s -f confmf 2> /dev/null` in #(
3123     *the\ am__doit\ target*)
3124     am__include=include
3125     am__quote=
3126     _am_result=GNU
3127     ;;
3128     esac
3129     # Now try BSD make style include.
3130     if test "$am__include" = "#"; then
3131     echo '.include "confinc"' > confmf
3132     case `$am_make -s -f confmf 2> /dev/null` in #(
3133     *the\ am__doit\ target*)
3134     am__include=.include
3135     am__quote="\""
3136     _am_result=BSD
3137     ;;
3138     esac
3139     fi
3140    
3141    
3142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143     $as_echo "$_am_result" >&6; }
3144     rm -f confinc confmf
3145    
3146     # Check whether --enable-dependency-tracking was given.
3147     if test "${enable_dependency_tracking+set}" = set; then :
3148     enableval=$enable_dependency_tracking;
3149     fi
3150    
3151     if test "x$enable_dependency_tracking" != xno; then
3152     am_depcomp="$ac_aux_dir/depcomp"
3153     AMDEPBACKSLASH='\'
3154     fi
3155     if test "x$enable_dependency_tracking" != xno; then
3156     AMDEP_TRUE=
3157     AMDEP_FALSE='#'
3158     else
3159     AMDEP_TRUE='#'
3160     AMDEP_FALSE=
3161     fi
3162    
3163    
3164 michael 912 ac_ext=c
3165     ac_cpp='$CPP $CPPFLAGS'
3166     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169     if test -n "$ac_tool_prefix"; then
3170     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3174 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3175 db 941 $as_echo_n "(cached) " >&6
3176 michael 912 else
3177     if test -n "$CC"; then
3178     ac_cv_prog_CC="$CC" # Let the user override the test.
3179     else
3180     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181     for as_dir in $PATH
3182     do
3183     IFS=$as_save_IFS
3184     test -z "$as_dir" && as_dir=.
3185 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3186 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 michael 912 break 2
3190     fi
3191     done
3192 michael 967 done
3193 michael 912 IFS=$as_save_IFS
3194    
3195     fi
3196     fi
3197     CC=$ac_cv_prog_CC
3198     if test -n "$CC"; then
3199 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 db 941 $as_echo "$CC" >&6; }
3201 michael 912 else
3202 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 db 941 $as_echo "no" >&6; }
3204 michael 912 fi
3205    
3206    
3207     fi
3208     if test -z "$ac_cv_prog_CC"; then
3209     ac_ct_CC=$CC
3210     # Extract the first word of "gcc", so it can be a program name with args.
3211     set dummy gcc; ac_word=$2
3212 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3214 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3215 db 941 $as_echo_n "(cached) " >&6
3216 michael 912 else
3217     if test -n "$ac_ct_CC"; then
3218     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219     else
3220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221     for as_dir in $PATH
3222     do
3223     IFS=$as_save_IFS
3224     test -z "$as_dir" && as_dir=.
3225 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3226 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227     ac_cv_prog_ac_ct_CC="gcc"
3228 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 michael 912 break 2
3230     fi
3231     done
3232 michael 967 done
3233 michael 912 IFS=$as_save_IFS
3234    
3235     fi
3236     fi
3237     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238     if test -n "$ac_ct_CC"; then
3239 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 db 941 $as_echo "$ac_ct_CC" >&6; }
3241 michael 912 else
3242 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 db 941 $as_echo "no" >&6; }
3244 michael 912 fi
3245    
3246     if test "x$ac_ct_CC" = x; then
3247     CC=""
3248     else
3249     case $cross_compiling:$ac_tool_warned in
3250     yes:)
3251 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 michael 912 ac_tool_warned=yes ;;
3254     esac
3255     CC=$ac_ct_CC
3256     fi
3257     else
3258     CC="$ac_cv_prog_CC"
3259     fi
3260    
3261     if test -z "$CC"; then
3262     if test -n "$ac_tool_prefix"; then
3263     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264     set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3267 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3268 db 941 $as_echo_n "(cached) " >&6
3269 michael 912 else
3270     if test -n "$CC"; then
3271     ac_cv_prog_CC="$CC" # Let the user override the test.
3272     else
3273     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274     for as_dir in $PATH
3275     do
3276     IFS=$as_save_IFS
3277     test -z "$as_dir" && as_dir=.
3278 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3279 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280     ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 michael 912 break 2
3283     fi
3284     done
3285 michael 967 done
3286 michael 912 IFS=$as_save_IFS
3287    
3288     fi
3289     fi
3290     CC=$ac_cv_prog_CC
3291     if test -n "$CC"; then
3292 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 db 941 $as_echo "$CC" >&6; }
3294 michael 912 else
3295 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 db 941 $as_echo "no" >&6; }
3297 michael 912 fi
3298    
3299    
3300     fi
3301     fi
3302     if test -z "$CC"; then
3303     # Extract the first word of "cc", so it can be a program name with args.
3304     set dummy cc; ac_word=$2
3305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3307 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3308 db 941 $as_echo_n "(cached) " >&6
3309 michael 912 else
3310     if test -n "$CC"; then
3311     ac_cv_prog_CC="$CC" # Let the user override the test.
3312     else
3313     ac_prog_rejected=no
3314     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315     for as_dir in $PATH
3316     do
3317     IFS=$as_save_IFS
3318     test -z "$as_dir" && as_dir=.
3319 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3320 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322     ac_prog_rejected=yes
3323     continue
3324     fi
3325     ac_cv_prog_CC="cc"
3326 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 michael 912 break 2
3328     fi
3329     done
3330 michael 967 done
3331 michael 912 IFS=$as_save_IFS
3332    
3333     if test $ac_prog_rejected = yes; then
3334     # We found a bogon in the path, so make sure we never use it.
3335     set dummy $ac_cv_prog_CC
3336     shift
3337     if test $# != 0; then
3338     # We chose a different compiler from the bogus one.
3339     # However, it has the same basename, so the bogon will be chosen
3340     # first if we set CC to just the basename; use the full file name.
3341     shift
3342     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343     fi
3344     fi
3345     fi
3346     fi
3347     CC=$ac_cv_prog_CC
3348     if test -n "$CC"; then
3349 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 db 941 $as_echo "$CC" >&6; }
3351 michael 912 else
3352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 db 941 $as_echo "no" >&6; }
3354 michael 912 fi
3355    
3356    
3357     fi
3358     if test -z "$CC"; then
3359     if test -n "$ac_tool_prefix"; then
3360     for ac_prog in cl.exe
3361     do
3362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3366 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3367 db 941 $as_echo_n "(cached) " >&6
3368 michael 912 else
3369     if test -n "$CC"; then
3370     ac_cv_prog_CC="$CC" # Let the user override the test.
3371     else
3372     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373     for as_dir in $PATH
3374     do
3375     IFS=$as_save_IFS
3376     test -z "$as_dir" && as_dir=.
3377 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3378 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 michael 912 break 2
3382     fi
3383     done
3384 michael 967 done
3385 michael 912 IFS=$as_save_IFS
3386    
3387     fi
3388     fi
3389     CC=$ac_cv_prog_CC
3390     if test -n "$CC"; then
3391 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 db 941 $as_echo "$CC" >&6; }
3393 michael 912 else
3394 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 db 941 $as_echo "no" >&6; }
3396 michael 912 fi
3397    
3398    
3399     test -n "$CC" && break
3400     done
3401     fi
3402     if test -z "$CC"; then
3403     ac_ct_CC=$CC
3404     for ac_prog in cl.exe
3405     do
3406     # Extract the first word of "$ac_prog", so it can be a program name with args.
3407     set dummy $ac_prog; ac_word=$2
3408 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3410 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3411 db 941 $as_echo_n "(cached) " >&6
3412 michael 912 else
3413     if test -n "$ac_ct_CC"; then
3414     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415     else
3416     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417     for as_dir in $PATH
3418     do
3419     IFS=$as_save_IFS
3420     test -z "$as_dir" && as_dir=.
3421 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3422 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423     ac_cv_prog_ac_ct_CC="$ac_prog"
3424 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 michael 912 break 2
3426     fi
3427     done
3428 michael 967 done
3429 michael 912 IFS=$as_save_IFS
3430    
3431     fi
3432     fi
3433     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434     if test -n "$ac_ct_CC"; then
3435 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 db 941 $as_echo "$ac_ct_CC" >&6; }
3437 michael 912 else
3438 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 db 941 $as_echo "no" >&6; }
3440 michael 912 fi
3441    
3442    
3443     test -n "$ac_ct_CC" && break
3444     done
3445    
3446     if test "x$ac_ct_CC" = x; then
3447     CC=""
3448     else
3449     case $cross_compiling:$ac_tool_warned in
3450     yes:)
3451 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 michael 912 ac_tool_warned=yes ;;
3454     esac
3455     CC=$ac_ct_CC
3456     fi
3457     fi
3458    
3459     fi
3460    
3461    
3462 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 michael 967 as_fn_error "no acceptable C compiler found in \$PATH
3465     See \`config.log' for more details." "$LINENO" 5; }
3466 michael 912
3467     # Provide some information about the compiler.
3468 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 db 941 set X $ac_compile
3470     ac_compiler=$2
3471 michael 967 for ac_option in --version -v -V -qversion; do
3472     { { ac_try="$ac_compiler $ac_option >&5"
3473 michael 912 case "(($ac_try" in
3474     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475     *) ac_try_echo=$ac_try;;
3476     esac
3477 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478     $as_echo "$ac_try_echo"; } >&5
3479     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 michael 912 ac_status=$?
3481 michael 967 if test -s conftest.err; then
3482     sed '10a\
3483     ... rest of stderr output deleted ...
3484     10q' conftest.err >conftest.er1
3485     cat conftest.er1 >&5
3486     rm -f conftest.er1 conftest.err
3487     fi
3488     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489     test $ac_status = 0; }
3490     done
3491 michael 912
3492 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 michael 912 /* end confdefs.h. */
3494 michael 967 #include <stdio.h>
3495 michael 912 int
3496     main ()
3497     {
3498 michael 967 FILE *f = fopen ("conftest.out", "w");
3499     return ferror (f) || fclose (f) != 0;
3500 michael 912
3501     ;
3502     return 0;
3503     }
3504     _ACEOF
3505     ac_clean_files_save=$ac_clean_files
3506 michael 967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3507 michael 912 # Try to create an executable without -o first, disregard a.out.
3508     # It will help us diagnose broken compilers, and finding out an intuition
3509     # of exeext.
3510 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3511 db 941 $as_echo_n "checking for C compiler default output file name... " >&6; }
3512     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513    
3514     # The possible output files:
3515     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516    
3517 michael 912 ac_rmfiles=
3518     for ac_file in $ac_files
3519     do
3520     case $ac_file in
3521 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523     esac
3524     done
3525     rm -f $ac_rmfiles
3526    
3527 michael 967 if { { ac_try="$ac_link_default"
3528 michael 912 case "(($ac_try" in
3529     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530     *) ac_try_echo=$ac_try;;
3531     esac
3532 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533     $as_echo "$ac_try_echo"; } >&5
3534 michael 912 (eval "$ac_link_default") 2>&5
3535     ac_status=$?
3536 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537     test $ac_status = 0; }; then :
3538 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541     # so that the user can short-circuit this test for compilers unknown to
3542     # Autoconf.
3543     for ac_file in $ac_files ''
3544     do
3545     test -f "$ac_file" || continue
3546     case $ac_file in
3547 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 michael 912 ;;
3549     [ab].out )
3550     # We found the default executable, but exeext='' is most
3551     # certainly right.
3552     break;;
3553     *.* )
3554 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 michael 912 then :; else
3556     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557     fi
3558     # We set ac_cv_exeext here because the later test for it is not
3559     # safe: cross compilers may not add the suffix if given an `-o'
3560     # argument, so we may need to know it at that point already.
3561     # Even if this section looks crufty: it has the advantage of
3562     # actually working.
3563     break;;
3564     * )
3565     break;;
3566     esac
3567     done
3568     test "$ac_cv_exeext" = no && ac_cv_exeext=
3569    
3570     else
3571     ac_file=''
3572     fi
3573 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3574 db 941 $as_echo "$ac_file" >&6; }
3575 michael 967 if test -z "$ac_file"; then :
3576 db 941 $as_echo "$as_me: failed program was:" >&5
3577 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3578    
3579 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 michael 967 { as_fn_set_status 77
3582     as_fn_error "C compiler cannot create executables
3583     See \`config.log' for more details." "$LINENO" 5; }; }
3584 michael 912 fi
3585     ac_exeext=$ac_cv_exeext
3586    
3587     # Check that the compiler produces executables we can run. If not, either
3588     # the compiler is broken, or we cross compile.
3589 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 db 941 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 michael 912 # If not cross compiling, check that we can run a simple program.
3592     if test "$cross_compiling" != yes; then
3593     if { ac_try='./$ac_file'
3594 michael 967 { { case "(($ac_try" in
3595 michael 912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596     *) ac_try_echo=$ac_try;;
3597     esac
3598 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599     $as_echo "$ac_try_echo"; } >&5
3600 michael 912 (eval "$ac_try") 2>&5
3601     ac_status=$?
3602 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603     test $ac_status = 0; }; }; then
3604 michael 912 cross_compiling=no
3605     else
3606     if test "$cross_compiling" = maybe; then
3607     cross_compiling=yes
3608     else
3609 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 michael 967 as_fn_error "cannot run C compiled programs.
3612 michael 912 If you meant to cross compile, use \`--host'.
3613 michael 967 See \`config.log' for more details." "$LINENO" 5; }
3614 michael 912 fi
3615     fi
3616     fi
3617 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618 db 941 $as_echo "yes" >&6; }
3619 michael 912
3620 michael 967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3621 michael 912 ac_clean_files=$ac_clean_files_save
3622     # Check that the compiler produces executables we can run. If not, either
3623     # the compiler is broken, or we cross compile.
3624 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3625 db 941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3626 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3627 db 941 $as_echo "$cross_compiling" >&6; }
3628 michael 912
3629 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3630 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3631 michael 967 if { { ac_try="$ac_link"
3632 michael 912 case "(($ac_try" in
3633     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634     *) ac_try_echo=$ac_try;;
3635     esac
3636 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637     $as_echo "$ac_try_echo"; } >&5
3638 michael 912 (eval "$ac_link") 2>&5
3639     ac_status=$?
3640 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641     test $ac_status = 0; }; then :
3642 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3643     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3644     # work properly (i.e., refer to `conftest.exe'), while it won't with
3645     # `rm'.
3646     for ac_file in conftest.exe conftest conftest.*; do
3647     test -f "$ac_file" || continue
3648     case $ac_file in
3649 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3651     break;;
3652     * ) break;;
3653     esac
3654     done
3655     else
3656 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3657 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3658 michael 967 as_fn_error "cannot compute suffix of executables: cannot compile and link
3659     See \`config.log' for more details." "$LINENO" 5; }
3660 michael 912 fi
3661     rm -f conftest$ac_cv_exeext
3662 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3663 db 941 $as_echo "$ac_cv_exeext" >&6; }
3664 michael 912
3665     rm -f conftest.$ac_ext
3666     EXEEXT=$ac_cv_exeext
3667     ac_exeext=$EXEEXT
3668 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3669 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3670 michael 967 if test "${ac_cv_objext+set}" = set; then :
3671 db 941 $as_echo_n "(cached) " >&6
3672 michael 912 else
3673 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 michael 912 /* end confdefs.h. */
3675    
3676     int
3677     main ()
3678     {
3679    
3680     ;
3681     return 0;
3682     }
3683     _ACEOF
3684     rm -f conftest.o conftest.obj
3685 michael 967 if { { ac_try="$ac_compile"
3686 michael 912 case "(($ac_try" in
3687     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688     *) ac_try_echo=$ac_try;;
3689     esac
3690 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691     $as_echo "$ac_try_echo"; } >&5
3692 michael 912 (eval "$ac_compile") 2>&5
3693     ac_status=$?
3694 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695     test $ac_status = 0; }; then :
3696 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3697     test -f "$ac_file" || continue;
3698     case $ac_file in
3699 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3700 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701     break;;
3702     esac
3703     done
3704     else
3705 db 941 $as_echo "$as_me: failed program was:" >&5
3706 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3707    
3708 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 michael 967 as_fn_error "cannot compute suffix of object files: cannot compile
3711     See \`config.log' for more details." "$LINENO" 5; }
3712 michael 912 fi
3713     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714     fi
3715 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3716 db 941 $as_echo "$ac_cv_objext" >&6; }
3717 michael 912 OBJEXT=$ac_cv_objext
3718     ac_objext=$OBJEXT
3719 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3720 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3721 michael 967 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3722 db 941 $as_echo_n "(cached) " >&6
3723 michael 912 else
3724 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 michael 912 /* end confdefs.h. */
3726    
3727     int
3728     main ()
3729     {
3730     #ifndef __GNUC__
3731     choke me
3732     #endif
3733    
3734     ;
3735     return 0;
3736     }
3737     _ACEOF
3738 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3739 michael 912 ac_compiler_gnu=yes
3740     else
3741 michael 967 ac_compiler_gnu=no
3742 michael 912 fi
3743     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745    
3746     fi
3747 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3748 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3749     if test $ac_compiler_gnu = yes; then
3750     GCC=yes
3751     else
3752     GCC=
3753     fi
3754 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3755     ac_save_CFLAGS=$CFLAGS
3756 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3757 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3758 michael 967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3759 db 941 $as_echo_n "(cached) " >&6
3760 michael 912 else
3761     ac_save_c_werror_flag=$ac_c_werror_flag
3762     ac_c_werror_flag=yes
3763     ac_cv_prog_cc_g=no
3764     CFLAGS="-g"
3765 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 michael 912 /* end confdefs.h. */
3767    
3768     int
3769     main ()
3770     {
3771    
3772     ;
3773     return 0;
3774     }
3775     _ACEOF
3776 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3777 michael 912 ac_cv_prog_cc_g=yes
3778     else
3779 michael 967 CFLAGS=""
3780     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 michael 912 /* end confdefs.h. */
3782    
3783     int
3784     main ()
3785     {
3786    
3787     ;
3788     return 0;
3789     }
3790     _ACEOF
3791 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3792    
3793 michael 912 else
3794 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3795 michael 912 CFLAGS="-g"
3796 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 michael 912 /* end confdefs.h. */
3798    
3799     int
3800     main ()
3801     {
3802    
3803     ;
3804     return 0;
3805     }
3806     _ACEOF
3807 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3808 michael 912 ac_cv_prog_cc_g=yes
3809     fi
3810     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811     fi
3812     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813     fi
3814     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815     ac_c_werror_flag=$ac_save_c_werror_flag
3816     fi
3817 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3818 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3819 michael 912 if test "$ac_test_CFLAGS" = set; then
3820     CFLAGS=$ac_save_CFLAGS
3821     elif test $ac_cv_prog_cc_g = yes; then
3822     if test "$GCC" = yes; then
3823     CFLAGS="-g -O2"
3824     else
3825     CFLAGS="-g"
3826     fi
3827     else
3828     if test "$GCC" = yes; then
3829     CFLAGS="-O2"
3830     else
3831     CFLAGS=
3832     fi
3833     fi
3834 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3835 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3836 michael 967 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3837 db 941 $as_echo_n "(cached) " >&6
3838 michael 912 else
3839     ac_cv_prog_cc_c89=no
3840     ac_save_CC=$CC
3841 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 michael 912 /* end confdefs.h. */
3843     #include <stdarg.h>
3844     #include <stdio.h>
3845     #include <sys/types.h>
3846     #include <sys/stat.h>
3847     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3848     struct buf { int x; };
3849     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3850     static char *e (p, i)
3851     char **p;
3852     int i;
3853     {
3854     return p[i];
3855     }
3856     static char *f (char * (*g) (char **, int), char **p, ...)
3857     {
3858     char *s;
3859     va_list v;
3860     va_start (v,p);
3861     s = g (p, va_arg (v,int));
3862     va_end (v);
3863     return s;
3864     }
3865    
3866     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3867     function prototypes and stuff, but not '\xHH' hex character constants.
3868     These don't provoke an error unfortunately, instead are silently treated
3869     as 'x'. The following induces an error, until -std is added to get
3870     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3871     array size at least. It's necessary to write '\x00'==0 to get something
3872     that's true only with -std. */
3873     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3874    
3875     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3876     inside strings and character constants. */
3877     #define FOO(x) 'x'
3878     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3879    
3880     int test (int i, double x);
3881     struct s1 {int (*f) (int a);};
3882     struct s2 {int (*f) (double a);};
3883     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3884     int argc;
3885     char **argv;
3886     int
3887     main ()
3888     {
3889     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890     ;
3891     return 0;
3892     }
3893     _ACEOF
3894     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3895     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896     do
3897     CC="$ac_save_CC $ac_arg"
3898 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3899 michael 912 ac_cv_prog_cc_c89=$ac_arg
3900     fi
3901     rm -f core conftest.err conftest.$ac_objext
3902     test "x$ac_cv_prog_cc_c89" != "xno" && break
3903     done
3904     rm -f conftest.$ac_ext
3905     CC=$ac_save_CC
3906    
3907     fi
3908     # AC_CACHE_VAL
3909     case "x$ac_cv_prog_cc_c89" in
3910     x)
3911 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3912 db 941 $as_echo "none needed" >&6; } ;;
3913 michael 912 xno)
3914 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3915 db 941 $as_echo "unsupported" >&6; } ;;
3916 michael 912 *)
3917     CC="$CC $ac_cv_prog_cc_c89"
3918 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3919 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3920 michael 912 esac
3921 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3922 michael 912
3923 michael 967 fi
3924 michael 912
3925     ac_ext=c
3926     ac_cpp='$CPP $CPPFLAGS'
3927     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3928     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3929     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3930    
3931     depcc="$CC" am_compiler_list=
3932    
3933 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3934 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3935 michael 967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3936 db 941 $as_echo_n "(cached) " >&6
3937 michael 912 else
3938     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3939     # We make a subdir and do the tests there. Otherwise we can end up
3940     # making bogus files that we don't know about and never remove. For
3941     # instance it was reported that on HP-UX the gcc test will end up
3942     # making a dummy file named `D' -- because `-MD' means `put the output
3943     # in D'.
3944     mkdir conftest.dir
3945     # Copy depcomp to subdir because otherwise we won't find it if we're
3946     # using a relative directory.
3947     cp "$am_depcomp" conftest.dir
3948     cd conftest.dir
3949     # We will build objects and dependencies in a subdirectory because
3950     # it helps to detect inapplicable dependency modes. For instance
3951     # both Tru64's cc and ICC support -MD to output dependencies as a
3952     # side effect of compilation, but ICC will put the dependencies in
3953     # the current directory while Tru64 will put them in the object
3954     # directory.
3955     mkdir sub
3956    
3957     am_cv_CC_dependencies_compiler_type=none
3958     if test "$am_compiler_list" = ""; then
3959     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960     fi
3961 michael 945 am__universal=false
3962     case " $depcc " in #(
3963     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964     esac
3965    
3966 michael 912 for depmode in $am_compiler_list; do
3967     # Setup a source with many dependencies, because some compilers
3968     # like to wrap large dependency lists on column 80 (with \), and
3969     # we should not choose a depcomp mode which is confused by this.
3970     #
3971     # We need to recreate these files for each test, as the compiler may
3972     # overwrite some of them when testing with obscure command lines.
3973     # This happens at least with the AIX C compiler.
3974     : > sub/conftest.c
3975     for i in 1 2 3 4 5 6; do
3976     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3977     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3978     # Solaris 8's {/usr,}/bin/sh.
3979     touch sub/conftst$i.h
3980     done
3981     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982    
3983 michael 945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3984     # mode. It turns out that the SunPro C++ compiler does not properly
3985     # handle `-M -o', and we need to detect this. Also, some Intel
3986     # versions had trouble with output in subdirs
3987     am__obj=sub/conftest.${OBJEXT-o}
3988     am__minus_obj="-o $am__obj"
3989 michael 912 case $depmode in
3990 michael 945 gcc)
3991     # This depmode causes a compiler race in universal mode.
3992     test "$am__universal" = false || continue
3993     ;;
3994 michael 912 nosideeffect)
3995     # after this tag, mechanisms are not by side-effect, so they'll
3996     # only be used when explicitly requested
3997     if test "x$enable_dependency_tracking" = xyes; then
3998     continue
3999     else
4000     break
4001     fi
4002     ;;
4003 michael 945 msvisualcpp | msvcmsys)
4004     # This compiler won't grok `-c -o', but also, the minuso test has
4005     # not run yet. These depmodes are late enough in the game, and
4006     # so weak that their functioning should not be impacted.
4007     am__obj=conftest.${OBJEXT-o}
4008     am__minus_obj=
4009     ;;
4010 michael 912 none) break ;;
4011     esac
4012     if depmode=$depmode \
4013 michael 945 source=sub/conftest.c object=$am__obj \
4014 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016 michael 912 >/dev/null 2>conftest.err &&
4017     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021     # icc doesn't choke on unknown options, it will just issue warnings
4022     # or remarks (even with -Werror). So we grep stderr for any message
4023     # that says an option was ignored or not supported.
4024     # When given -MP, icc 7.0 and 7.1 complain thusly:
4025     # icc: Command line warning: ignoring option '-M'; no argument required
4026     # The diagnosis changed in icc 8.0:
4027     # icc: Command line remark: option '-MP' not supported
4028     if (grep 'ignoring option' conftest.err ||
4029     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030     am_cv_CC_dependencies_compiler_type=$depmode
4031     break
4032     fi
4033     fi
4034     done
4035    
4036     cd ..
4037     rm -rf conftest.dir
4038     else
4039     am_cv_CC_dependencies_compiler_type=none
4040     fi
4041    
4042     fi
4043 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4044 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046    
4047     if
4048     test "x$enable_dependency_tracking" != xno \
4049     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050     am__fastdepCC_TRUE=
4051     am__fastdepCC_FALSE='#'
4052     else
4053     am__fastdepCC_TRUE='#'
4054     am__fastdepCC_FALSE=
4055     fi
4056    
4057    
4058 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4059     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4060     if test "${ac_cv_prog_cc_c99+set}" = set; then :
4061     $as_echo_n "(cached) " >&6
4062     else
4063     ac_cv_prog_cc_c99=no
4064     ac_save_CC=$CC
4065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066     /* end confdefs.h. */
4067     #include <stdarg.h>
4068     #include <stdbool.h>
4069     #include <stdlib.h>
4070     #include <wchar.h>
4071     #include <stdio.h>
4072    
4073     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4074     #define debug(...) fprintf (stderr, __VA_ARGS__)
4075     #define showlist(...) puts (#__VA_ARGS__)
4076     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4077     static void
4078     test_varargs_macros (void)
4079     {
4080     int x = 1234;
4081     int y = 5678;
4082     debug ("Flag");
4083     debug ("X = %d\n", x);
4084     showlist (The first, second, and third items.);
4085     report (x>y, "x is %d but y is %d", x, y);
4086     }
4087    
4088     // Check long long types.
4089     #define BIG64 18446744073709551615ull
4090     #define BIG32 4294967295ul
4091     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4092     #if !BIG_OK
4093     your preprocessor is broken;
4094     #endif
4095     #if BIG_OK
4096     #else
4097     your preprocessor is broken;
4098     #endif
4099     static long long int bignum = -9223372036854775807LL;
4100     static unsigned long long int ubignum = BIG64;
4101    
4102     struct incomplete_array
4103     {
4104     int datasize;
4105     double data[];
4106     };
4107    
4108     struct named_init {
4109     int number;
4110     const wchar_t *name;
4111     double average;
4112     };
4113    
4114     typedef const char *ccp;
4115    
4116     static inline int
4117     test_restrict (ccp restrict text)
4118     {
4119     // See if C++-style comments work.
4120     // Iterate through items via the restricted pointer.
4121     // Also check for declarations in for loops.
4122     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4123     continue;
4124     return 0;
4125     }
4126    
4127     // Check varargs and va_copy.
4128     static void
4129     test_varargs (const char *format, ...)
4130     {
4131     va_list args;
4132     va_start (args, format);
4133     va_list args_copy;
4134     va_copy (args_copy, args);
4135    
4136     const char *str;
4137     int number;
4138     float fnumber;
4139    
4140     while (*format)
4141     {
4142     switch (*format++)
4143     {
4144     case 's': // string
4145     str = va_arg (args_copy, const char *);
4146     break;
4147     case 'd': // int
4148     number = va_arg (args_copy, int);
4149     break;
4150     case 'f': // float
4151     fnumber = va_arg (args_copy, double);
4152     break;
4153     default:
4154     break;
4155     }
4156     }
4157     va_end (args_copy);
4158     va_end (args);
4159     }
4160    
4161     int
4162     main ()
4163     {
4164    
4165     // Check bool.
4166     _Bool success = false;
4167    
4168     // Check restrict.
4169     if (test_restrict ("String literal") == 0)
4170     success = true;
4171     char *restrict newvar = "Another string";
4172    
4173     // Check varargs.
4174     test_varargs ("s, d' f .", "string", 65, 34.234);
4175     test_varargs_macros ();
4176    
4177     // Check flexible array members.
4178     struct incomplete_array *ia =
4179     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4180     ia->datasize = 10;
4181     for (int i = 0; i < ia->datasize; ++i)
4182     ia->data[i] = i * 1.234;
4183    
4184     // Check named initializers.
4185     struct named_init ni = {
4186     .number = 34,
4187     .name = L"Test wide string",
4188     .average = 543.34343,
4189     };
4190    
4191     ni.number = 58;
4192    
4193     int dynamic_array[ni.number];
4194     dynamic_array[ni.number - 1] = 543;
4195    
4196     // work around unused variable warnings
4197     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4198     || dynamic_array[ni.number - 1] != 543);
4199    
4200     ;
4201     return 0;
4202     }
4203     _ACEOF
4204     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4205     do
4206     CC="$ac_save_CC $ac_arg"
4207     if ac_fn_c_try_compile "$LINENO"; then :
4208     ac_cv_prog_cc_c99=$ac_arg
4209     fi
4210     rm -f core conftest.err conftest.$ac_objext
4211     test "x$ac_cv_prog_cc_c99" != "xno" && break
4212     done
4213     rm -f conftest.$ac_ext
4214     CC=$ac_save_CC
4215    
4216     fi
4217     # AC_CACHE_VAL
4218     case "x$ac_cv_prog_cc_c99" in
4219     x)
4220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221     $as_echo "none needed" >&6; } ;;
4222     xno)
4223     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224     $as_echo "unsupported" >&6; } ;;
4225     *)
4226     CC="$CC $ac_cv_prog_cc_c99"
4227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4228     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4229     esac
4230     if test "x$ac_cv_prog_cc_c99" != xno; then :
4231    
4232     fi
4233    
4234    
4235     if test "$ac_cv_prog_cc_c99" = "no"; then :
4236     as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4237     fi
4238 michael 912 for ac_prog in 'bison -y' byacc
4239     do
4240     # Extract the first word of "$ac_prog", so it can be a program name with args.
4241     set dummy $ac_prog; ac_word=$2
4242 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4244 michael 967 if test "${ac_cv_prog_YACC+set}" = set; then :
4245 db 941 $as_echo_n "(cached) " >&6
4246 michael 912 else
4247     if test -n "$YACC"; then
4248     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4249     else
4250     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251     for as_dir in $PATH
4252     do
4253     IFS=$as_save_IFS
4254     test -z "$as_dir" && as_dir=.
4255 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4256 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257     ac_cv_prog_YACC="$ac_prog"
4258 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 michael 912 break 2
4260     fi
4261     done
4262 michael 967 done
4263 michael 912 IFS=$as_save_IFS
4264    
4265     fi
4266     fi
4267     YACC=$ac_cv_prog_YACC
4268     if test -n "$YACC"; then
4269 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4270 db 941 $as_echo "$YACC" >&6; }
4271 michael 912 else
4272 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 db 941 $as_echo "no" >&6; }
4274 michael 912 fi
4275    
4276    
4277     test -n "$YACC" && break
4278     done
4279     test -n "$YACC" || YACC="yacc"
4280    
4281    
4282     for ac_prog in flex lex
4283     do
4284     # Extract the first word of "$ac_prog", so it can be a program name with args.
4285     set dummy $ac_prog; ac_word=$2
4286 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4288 michael 967 if test "${ac_cv_prog_LEX+set}" = set; then :
4289 db 941 $as_echo_n "(cached) " >&6
4290 michael 912 else
4291     if test -n "$LEX"; then
4292     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4293     else
4294     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295     for as_dir in $PATH
4296     do
4297     IFS=$as_save_IFS
4298     test -z "$as_dir" && as_dir=.
4299 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4300 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301     ac_cv_prog_LEX="$ac_prog"
4302 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 michael 912 break 2
4304     fi
4305     done
4306 michael 967 done
4307 michael 912 IFS=$as_save_IFS
4308    
4309     fi
4310     fi
4311     LEX=$ac_cv_prog_LEX
4312     if test -n "$LEX"; then
4313 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4314 db 941 $as_echo "$LEX" >&6; }
4315 michael 912 else
4316 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 db 941 $as_echo "no" >&6; }
4318 michael 912 fi
4319    
4320    
4321     test -n "$LEX" && break
4322     done
4323     test -n "$LEX" || LEX=":"
4324    
4325     if test "x$LEX" != "x:"; then
4326     cat >conftest.l <<_ACEOF
4327     %%
4328     a { ECHO; }
4329     b { REJECT; }
4330     c { yymore (); }
4331     d { yyless (1); }
4332     e { yyless (input () != 0); }
4333     f { unput (yytext[0]); }
4334     . { BEGIN INITIAL; }
4335     %%
4336     #ifdef YYTEXT_POINTER
4337     extern char *yytext;
4338     #endif
4339     int
4340     main (void)
4341     {
4342     return ! yylex () + ! yywrap ();
4343     }
4344     _ACEOF
4345 michael 967 { { ac_try="$LEX conftest.l"
4346 michael 912 case "(($ac_try" in
4347     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348     *) ac_try_echo=$ac_try;;
4349     esac
4350 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351     $as_echo "$ac_try_echo"; } >&5
4352 michael 912 (eval "$LEX conftest.l") 2>&5
4353     ac_status=$?
4354 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355     test $ac_status = 0; }
4356     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4357 db 941 $as_echo_n "checking lex output file root... " >&6; }
4358 michael 967 if test "${ac_cv_prog_lex_root+set}" = set; then :
4359 db 941 $as_echo_n "(cached) " >&6
4360 michael 912 else
4361    
4362     if test -f lex.yy.c; then
4363     ac_cv_prog_lex_root=lex.yy
4364     elif test -f lexyy.c; then
4365     ac_cv_prog_lex_root=lexyy
4366     else
4367 michael 967 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4368 michael 912 fi
4369     fi
4370 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4371 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4372 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4373    
4374     if test -z "${LEXLIB+set}"; then
4375 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4376 db 941 $as_echo_n "checking lex library... " >&6; }
4377 michael 967 if test "${ac_cv_lib_lex+set}" = set; then :
4378 db 941 $as_echo_n "(cached) " >&6
4379 michael 912 else
4380    
4381     ac_save_LIBS=$LIBS
4382     ac_cv_lib_lex='none needed'
4383     for ac_lib in '' -lfl -ll; do
4384     LIBS="$ac_lib $ac_save_LIBS"
4385 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386     /* end confdefs.h. */
4387 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4388     _ACEOF
4389 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4390 michael 912 ac_cv_lib_lex=$ac_lib
4391     fi
4392 michael 967 rm -f core conftest.err conftest.$ac_objext \
4393     conftest$ac_exeext conftest.$ac_ext
4394 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4395     done
4396     LIBS=$ac_save_LIBS
4397    
4398     fi
4399 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4400 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4401 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4402     fi
4403    
4404    
4405 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4406 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4407 michael 967 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4408 db 941 $as_echo_n "(cached) " >&6
4409 michael 912 else
4410     # POSIX says lex can declare yytext either as a pointer or an array; the
4411     # default is implementation-dependent. Figure out which it is, since
4412     # not all implementations provide the %pointer and %array declarations.
4413     ac_cv_prog_lex_yytext_pointer=no
4414     ac_save_LIBS=$LIBS
4415     LIBS="$LEXLIB $ac_save_LIBS"
4416 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417     /* end confdefs.h. */
4418 michael 912 #define YYTEXT_POINTER 1
4419     `cat $LEX_OUTPUT_ROOT.c`
4420     _ACEOF
4421 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4422 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4423     fi
4424 michael 967 rm -f core conftest.err conftest.$ac_objext \
4425     conftest$ac_exeext conftest.$ac_ext
4426 michael 912 LIBS=$ac_save_LIBS
4427    
4428     fi
4429 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4430 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4431 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4432    
4433 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4434 michael 912
4435     fi
4436     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4437    
4438     fi
4439     if test "$LEX" = :; then
4440     LEX=${am_missing_run}flex
4441     fi
4442 db 941
4443 michael 912
4444 michael 945 #ltdl stuff
4445     case `pwd` in
4446     *\ * | *\ *)
4447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4448 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4449     esac
4450    
4451    
4452    
4453     macro_version='2.2.6'
4454     macro_revision='1.3012'
4455    
4456    
4457    
4458    
4459    
4460    
4461    
4462    
4463    
4464    
4465    
4466    
4467    
4468     ltmain="$ac_aux_dir/ltmain.sh"
4469    
4470 michael 912 # Make sure we can run config.sub.
4471     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4472 michael 967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4473 michael 912
4474 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4475 db 941 $as_echo_n "checking build system type... " >&6; }
4476 michael 967 if test "${ac_cv_build+set}" = set; then :
4477 db 941 $as_echo_n "(cached) " >&6
4478 michael 912 else
4479     ac_build_alias=$build_alias
4480     test "x$ac_build_alias" = x &&
4481     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4482     test "x$ac_build_alias" = x &&
4483 michael 967 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4484 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4485 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4486 michael 912
4487     fi
4488 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4489 db 941 $as_echo "$ac_cv_build" >&6; }
4490 michael 912 case $ac_cv_build in
4491     *-*-*) ;;
4492 michael 967 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4493 michael 912 esac
4494     build=$ac_cv_build
4495     ac_save_IFS=$IFS; IFS='-'
4496     set x $ac_cv_build
4497     shift
4498     build_cpu=$1
4499     build_vendor=$2
4500     shift; shift
4501     # Remember, the first character of IFS is used to create $*,
4502     # except with old shells:
4503     build_os=$*
4504     IFS=$ac_save_IFS
4505     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4506    
4507    
4508 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4509 db 941 $as_echo_n "checking host system type... " >&6; }
4510 michael 967 if test "${ac_cv_host+set}" = set; then :
4511 db 941 $as_echo_n "(cached) " >&6
4512 michael 912 else
4513     if test "x$host_alias" = x; then
4514     ac_cv_host=$ac_cv_build
4515     else
4516     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4517 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4518 michael 912 fi
4519    
4520     fi
4521 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4522 db 941 $as_echo "$ac_cv_host" >&6; }
4523 michael 912 case $ac_cv_host in
4524     *-*-*) ;;
4525 michael 967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4526 michael 912 esac
4527     host=$ac_cv_host
4528     ac_save_IFS=$IFS; IFS='-'
4529     set x $ac_cv_host
4530     shift
4531     host_cpu=$1
4532     host_vendor=$2
4533     shift; shift
4534     # Remember, the first character of IFS is used to create $*,
4535     # except with old shells:
4536     host_os=$*
4537     IFS=$ac_save_IFS
4538     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4539    
4540    
4541 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 michael 967 if test "${ac_cv_path_SED+set}" = set; then :
4544 db 941 $as_echo_n "(cached) " >&6
4545 michael 912 else
4546 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4547     for ac_i in 1 2 3 4 5 6 7; do
4548     ac_script="$ac_script$as_nl$ac_script"
4549     done
4550     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4551 michael 967 { ac_script=; unset ac_script;}
4552 michael 945 if test -z "$SED"; then
4553     ac_path_SED_found=false
4554     # Loop through the user's path and test for each of PROGNAME-LIST
4555     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 michael 912 for as_dir in $PATH
4557     do
4558     IFS=$as_save_IFS
4559     test -z "$as_dir" && as_dir=.
4560 michael 967 for ac_prog in sed gsed; do
4561 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4562 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4563     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564     # Check for GNU ac_path_SED and select it if it is found.
4565     # Check for GNU $ac_path_SED
4566     case `"$ac_path_SED" --version 2>&1` in
4567     *GNU*)
4568     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4569     *)
4570     ac_count=0
4571     $as_echo_n 0123456789 >"conftest.in"
4572     while :
4573     do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo '' >> "conftest.nl"
4578     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4581 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4582     # Best one so far, save it but keep looking for a better one
4583     ac_cv_path_SED="$ac_path_SED"
4584     ac_path_SED_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588     done
4589     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590     esac
4591    
4592     $ac_path_SED_found && break 3
4593 michael 912 done
4594     done
4595 michael 967 done
4596 michael 912 IFS=$as_save_IFS
4597 michael 945 if test -z "$ac_cv_path_SED"; then
4598 michael 967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4599 michael 912 fi
4600 michael 945 else
4601     ac_cv_path_SED=$SED
4602     fi
4603 michael 912
4604     fi
4605 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4607     SED="$ac_cv_path_SED"
4608     rm -f conftest.sed
4609 michael 912
4610 michael 945 test -z "$SED" && SED=sed
4611     Xsed="$SED -e 1s/^X//"
4612 michael 912
4613    
4614 michael 945
4615    
4616    
4617    
4618    
4619    
4620    
4621    
4622    
4623 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4624 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4625 michael 967 if test "${ac_cv_path_GREP+set}" = set; then :
4626 db 941 $as_echo_n "(cached) " >&6
4627 michael 912 else
4628 db 941 if test -z "$GREP"; then
4629 michael 912 ac_path_GREP_found=false
4630 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4631     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4633     do
4634     IFS=$as_save_IFS
4635     test -z "$as_dir" && as_dir=.
4636 michael 967 for ac_prog in grep ggrep; do
4637 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4638     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4639     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4640     # Check for GNU ac_path_GREP and select it if it is found.
4641 michael 912 # Check for GNU $ac_path_GREP
4642     case `"$ac_path_GREP" --version 2>&1` in
4643     *GNU*)
4644     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4645     *)
4646     ac_count=0
4647 db 941 $as_echo_n 0123456789 >"conftest.in"
4648 michael 912 while :
4649     do
4650     cat "conftest.in" "conftest.in" >"conftest.tmp"
4651     mv "conftest.tmp" "conftest.in"
4652     cp "conftest.in" "conftest.nl"
4653 db 941 $as_echo 'GREP' >> "conftest.nl"
4654 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4655     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4656 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4657 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4658     # Best one so far, save it but keep looking for a better one
4659     ac_cv_path_GREP="$ac_path_GREP"
4660     ac_path_GREP_max=$ac_count
4661     fi
4662     # 10*(2^10) chars as input seems more than enough
4663     test $ac_count -gt 10 && break
4664     done
4665     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4666     esac
4667    
4668 db 941 $ac_path_GREP_found && break 3
4669     done
4670 michael 912 done
4671 michael 967 done
4672 michael 912 IFS=$as_save_IFS
4673 db 941 if test -z "$ac_cv_path_GREP"; then
4674 michael 967 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4675 db 941 fi
4676 michael 912 else
4677     ac_cv_path_GREP=$GREP
4678     fi
4679    
4680     fi
4681 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4682 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4683 michael 912 GREP="$ac_cv_path_GREP"
4684    
4685    
4686 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4687 db 941 $as_echo_n "checking for egrep... " >&6; }
4688 michael 967 if test "${ac_cv_path_EGREP+set}" = set; then :
4689 db 941 $as_echo_n "(cached) " >&6
4690 michael 912 else
4691     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4692     then ac_cv_path_EGREP="$GREP -E"
4693     else
4694 db 941 if test -z "$EGREP"; then
4695 michael 912 ac_path_EGREP_found=false
4696 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4697     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4699     do
4700     IFS=$as_save_IFS
4701     test -z "$as_dir" && as_dir=.
4702 michael 967 for ac_prog in egrep; do
4703 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4704     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4705     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4706     # Check for GNU ac_path_EGREP and select it if it is found.
4707 michael 912 # Check for GNU $ac_path_EGREP
4708     case `"$ac_path_EGREP" --version 2>&1` in
4709     *GNU*)
4710     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4711     *)
4712     ac_count=0
4713 db 941 $as_echo_n 0123456789 >"conftest.in"
4714 michael 912 while :
4715     do
4716     cat "conftest.in" "conftest.in" >"conftest.tmp"
4717     mv "conftest.tmp" "conftest.in"
4718     cp "conftest.in" "conftest.nl"
4719 db 941 $as_echo 'EGREP' >> "conftest.nl"
4720 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4721     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4722 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4723 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4724     # Best one so far, save it but keep looking for a better one
4725     ac_cv_path_EGREP="$ac_path_EGREP"
4726     ac_path_EGREP_max=$ac_count
4727     fi
4728     # 10*(2^10) chars as input seems more than enough
4729     test $ac_count -gt 10 && break
4730     done
4731     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4732     esac
4733    
4734 db 941 $ac_path_EGREP_found && break 3
4735     done
4736 michael 912 done
4737 michael 967 done
4738 michael 912 IFS=$as_save_IFS
4739 db 941 if test -z "$ac_cv_path_EGREP"; then
4740 michael 967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4741 db 941 fi
4742 michael 912 else
4743     ac_cv_path_EGREP=$EGREP
4744     fi
4745    
4746     fi
4747     fi
4748 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4749 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4750 michael 912 EGREP="$ac_cv_path_EGREP"
4751    
4752    
4753 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4754 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4755 michael 967 if test "${ac_cv_path_FGREP+set}" = set; then :
4756 michael 945 $as_echo_n "(cached) " >&6
4757     else
4758     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4759     then ac_cv_path_FGREP="$GREP -F"
4760     else
4761     if test -z "$FGREP"; then
4762     ac_path_FGREP_found=false
4763     # Loop through the user's path and test for each of PROGNAME-LIST
4764     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766     do
4767     IFS=$as_save_IFS
4768     test -z "$as_dir" && as_dir=.
4769 michael 967 for ac_prog in fgrep; do
4770 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4771     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4772     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4773     # Check for GNU ac_path_FGREP and select it if it is found.
4774     # Check for GNU $ac_path_FGREP
4775     case `"$ac_path_FGREP" --version 2>&1` in
4776     *GNU*)
4777     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4778     *)
4779     ac_count=0
4780     $as_echo_n 0123456789 >"conftest.in"
4781     while :
4782     do
4783     cat "conftest.in" "conftest.in" >"conftest.tmp"
4784     mv "conftest.tmp" "conftest.in"
4785     cp "conftest.in" "conftest.nl"
4786     $as_echo 'FGREP' >> "conftest.nl"
4787     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4791     # Best one so far, save it but keep looking for a better one
4792     ac_cv_path_FGREP="$ac_path_FGREP"
4793     ac_path_FGREP_max=$ac_count
4794     fi
4795     # 10*(2^10) chars as input seems more than enough
4796     test $ac_count -gt 10 && break
4797     done
4798     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799     esac
4800 michael 912
4801 michael 945 $ac_path_FGREP_found && break 3
4802     done
4803     done
4804 michael 967 done
4805 michael 945 IFS=$as_save_IFS
4806     if test -z "$ac_cv_path_FGREP"; then
4807 michael 967 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808 michael 945 fi
4809     else
4810     ac_cv_path_FGREP=$FGREP
4811     fi
4812    
4813     fi
4814     fi
4815 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4816 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4817     FGREP="$ac_cv_path_FGREP"
4818    
4819    
4820     test -z "$GREP" && GREP=grep
4821    
4822    
4823    
4824    
4825    
4826    
4827    
4828    
4829    
4830    
4831    
4832    
4833    
4834    
4835    
4836    
4837    
4838    
4839    
4840 michael 912 # Check whether --with-gnu-ld was given.
4841 michael 967 if test "${with_gnu_ld+set}" = set; then :
4842 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4843     else
4844     with_gnu_ld=no
4845     fi
4846    
4847     ac_prog=ld
4848     if test "$GCC" = yes; then
4849     # Check if gcc -print-prog-name=ld gives a path.
4850 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4851 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4852 michael 912 case $host in
4853     *-*-mingw*)
4854     # gcc leaves a trailing carriage return which upsets mingw
4855     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4856     *)
4857     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4858     esac
4859     case $ac_prog in
4860     # Accept absolute paths.
4861     [\\/]* | ?:[\\/]*)
4862     re_direlt='/[^/][^/]*/\.\./'
4863     # Canonicalize the pathname of ld
4864 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4865     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4866     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4867 michael 912 done
4868     test -z "$LD" && LD="$ac_prog"
4869     ;;
4870     "")
4871     # If it fails, then pretend we aren't using GCC.
4872     ac_prog=ld
4873     ;;
4874     *)
4875     # If it is relative, then search for the first ld in PATH.
4876     with_gnu_ld=unknown
4877     ;;
4878     esac
4879     elif test "$with_gnu_ld" = yes; then
4880 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4881 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4882 michael 912 else
4883 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4884 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4885 michael 912 fi
4886 michael 967 if test "${lt_cv_path_LD+set}" = set; then :
4887 db 941 $as_echo_n "(cached) " >&6
4888 michael 912 else
4889     if test -z "$LD"; then
4890     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4891     for ac_dir in $PATH; do
4892     IFS="$lt_save_ifs"
4893     test -z "$ac_dir" && ac_dir=.
4894     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4895     lt_cv_path_LD="$ac_dir/$ac_prog"
4896     # Check to see if the program is GNU ld. I'd rather use --version,
4897     # but apparently some variants of GNU ld only accept -v.
4898     # Break only if it was the GNU/non-GNU ld that we prefer.
4899     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4900     *GNU* | *'with BFD'*)
4901     test "$with_gnu_ld" != no && break
4902     ;;
4903     *)
4904     test "$with_gnu_ld" != yes && break
4905     ;;
4906     esac
4907     fi
4908     done
4909     IFS="$lt_save_ifs"
4910     else
4911     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4912     fi
4913     fi
4914    
4915     LD="$lt_cv_path_LD"
4916     if test -n "$LD"; then
4917 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4918 db 941 $as_echo "$LD" >&6; }
4919 michael 912 else
4920 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 db 941 $as_echo "no" >&6; }
4922 michael 912 fi
4923 michael 967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4925 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4926 michael 967 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4927 db 941 $as_echo_n "(cached) " >&6
4928 michael 912 else
4929     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4930     case `$LD -v 2>&1 </dev/null` in
4931     *GNU* | *'with BFD'*)
4932     lt_cv_prog_gnu_ld=yes
4933     ;;
4934     *)
4935     lt_cv_prog_gnu_ld=no
4936     ;;
4937     esac
4938     fi
4939 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4940 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4941 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4942    
4943    
4944    
4945 michael 945
4946    
4947    
4948    
4949    
4950    
4951 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4952 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4953 michael 967 if test "${lt_cv_path_NM+set}" = set; then :
4954 db 941 $as_echo_n "(cached) " >&6
4955 michael 912 else
4956     if test -n "$NM"; then
4957     # Let the user override the test.
4958     lt_cv_path_NM="$NM"
4959     else
4960     lt_nm_to_check="${ac_tool_prefix}nm"
4961     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4962     lt_nm_to_check="$lt_nm_to_check nm"
4963     fi
4964     for lt_tmp_nm in $lt_nm_to_check; do
4965     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4966     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4967     IFS="$lt_save_ifs"
4968     test -z "$ac_dir" && ac_dir=.
4969     tmp_nm="$ac_dir/$lt_tmp_nm"
4970     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4971     # Check to see if the nm accepts a BSD-compat flag.
4972     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4973     # nm: unknown option "B" ignored
4974     # Tru64's nm complains that /dev/null is an invalid object file
4975     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4976     */dev/null* | *'Invalid file or object type'*)
4977     lt_cv_path_NM="$tmp_nm -B"
4978     break
4979     ;;
4980     *)
4981     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4982     */dev/null*)
4983     lt_cv_path_NM="$tmp_nm -p"
4984     break
4985     ;;
4986     *)
4987     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4988     continue # so that we can try to find one that supports BSD flags
4989     ;;
4990     esac
4991     ;;
4992     esac
4993     fi
4994     done
4995     IFS="$lt_save_ifs"
4996     done
4997 michael 945 : ${lt_cv_path_NM=no}
4998 michael 912 fi
4999     fi
5000 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5001 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5002 michael 945 if test "$lt_cv_path_NM" != "no"; then
5003     NM="$lt_cv_path_NM"
5004     else
5005     # Didn't find any BSD compatible name lister, look for dumpbin.
5006     if test -n "$ac_tool_prefix"; then
5007     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5008     do
5009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5013 michael 967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5014 michael 945 $as_echo_n "(cached) " >&6
5015     else
5016     if test -n "$DUMPBIN"; then
5017     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5018     else
5019     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020     for as_dir in $PATH
5021     do
5022     IFS=$as_save_IFS
5023     test -z "$as_dir" && as_dir=.
5024 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5025 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5027 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 michael 945 break 2
5029     fi
5030     done
5031 michael 967 done
5032 michael 945 IFS=$as_save_IFS
5033 michael 912
5034 michael 945 fi
5035     fi
5036     DUMPBIN=$ac_cv_prog_DUMPBIN
5037     if test -n "$DUMPBIN"; then
5038 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5039 michael 945 $as_echo "$DUMPBIN" >&6; }
5040     else
5041 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 michael 945 $as_echo "no" >&6; }
5043     fi
5044    
5045    
5046     test -n "$DUMPBIN" && break
5047     done
5048     fi
5049     if test -z "$DUMPBIN"; then
5050     ac_ct_DUMPBIN=$DUMPBIN
5051     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5052     do
5053     # Extract the first word of "$ac_prog", so it can be a program name with args.
5054     set dummy $ac_prog; ac_word=$2
5055 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5057 michael 967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5058 michael 945 $as_echo_n "(cached) " >&6
5059     else
5060     if test -n "$ac_ct_DUMPBIN"; then
5061     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5062     else
5063     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064     for as_dir in $PATH
5065     do
5066     IFS=$as_save_IFS
5067     test -z "$as_dir" && as_dir=.
5068 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5069 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5071 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 michael 945 break 2
5073     fi
5074     done
5075 michael 967 done
5076 michael 945 IFS=$as_save_IFS
5077    
5078     fi
5079     fi
5080     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5081     if test -n "$ac_ct_DUMPBIN"; then
5082 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5083 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5084     else
5085 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 michael 945 $as_echo "no" >&6; }
5087     fi
5088    
5089    
5090     test -n "$ac_ct_DUMPBIN" && break
5091     done
5092    
5093     if test "x$ac_ct_DUMPBIN" = x; then
5094     DUMPBIN=":"
5095     else
5096     case $cross_compiling:$ac_tool_warned in
5097     yes:)
5098 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100     ac_tool_warned=yes ;;
5101     esac
5102     DUMPBIN=$ac_ct_DUMPBIN
5103     fi
5104     fi
5105    
5106    
5107     if test "$DUMPBIN" != ":"; then
5108     NM="$DUMPBIN"
5109     fi
5110     fi
5111     test -z "$NM" && NM=nm
5112    
5113    
5114    
5115    
5116    
5117    
5118 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5119 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5120 michael 967 if test "${lt_cv_nm_interface+set}" = set; then :
5121 michael 945 $as_echo_n "(cached) " >&6
5122     else
5123     lt_cv_nm_interface="BSD nm"
5124     echo "int some_variable = 0;" > conftest.$ac_ext
5125 michael 1010 (eval echo "\"\$as_me:5125: $ac_compile\"" >&5)
5126 michael 945 (eval "$ac_compile" 2>conftest.err)
5127     cat conftest.err >&5
5128 michael 1010 (eval echo "\"\$as_me:5128: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5129 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5130     cat conftest.err >&5
5131 michael 1010 (eval echo "\"\$as_me:5131: output\"" >&5)
5132 michael 945 cat conftest.out >&5
5133     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5134     lt_cv_nm_interface="MS dumpbin"
5135     fi
5136     rm -f conftest*
5137     fi
5138 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5139 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5140    
5141 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5142 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5143 michael 912 LN_S=$as_ln_s
5144     if test "$LN_S" = "ln -s"; then
5145 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5146 db 941 $as_echo "yes" >&6; }
5147 michael 912 else
5148 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5149 db 941 $as_echo "no, using $LN_S" >&6; }
5150 michael 912 fi
5151    
5152 michael 945 # find the maximum length of command line arguments
5153 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5154 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5155 michael 967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5156 michael 945 $as_echo_n "(cached) " >&6
5157     else
5158     i=0
5159     teststring="ABCD"
5160    
5161     case $build_os in
5162     msdosdjgpp*)
5163     # On DJGPP, this test can blow up pretty badly due to problems in libc
5164     # (any single argument exceeding 2000 bytes causes a buffer overrun
5165     # during glob expansion). Even if it were fixed, the result of this
5166     # check would be larger than it should be.
5167     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5168     ;;
5169    
5170     gnu*)
5171     # Under GNU Hurd, this test is not required because there is
5172     # no limit to the length of command line arguments.
5173     # Libtool will interpret -1 as no limit whatsoever
5174     lt_cv_sys_max_cmd_len=-1;
5175     ;;
5176    
5177     cygwin* | mingw* | cegcc*)
5178     # On Win9x/ME, this test blows up -- it succeeds, but takes
5179     # about 5 minutes as the teststring grows exponentially.
5180     # Worse, since 9x/ME are not pre-emptively multitasking,
5181     # you end up with a "frozen" computer, even though with patience
5182     # the test eventually succeeds (with a max line length of 256k).
5183     # Instead, let's just punt: use the minimum linelength reported by
5184     # all of the supported platforms: 8192 (on NT/2K/XP).
5185     lt_cv_sys_max_cmd_len=8192;
5186     ;;
5187    
5188     amigaos*)
5189     # On AmigaOS with pdksh, this test takes hours, literally.
5190     # So we just punt and use a minimum line length of 8192.
5191     lt_cv_sys_max_cmd_len=8192;
5192     ;;
5193    
5194     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5195     # This has been around since 386BSD, at least. Likely further.
5196     if test -x /sbin/sysctl; then
5197     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5198     elif test -x /usr/sbin/sysctl; then
5199     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5200     else
5201     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5202     fi
5203     # And add a safety zone
5204     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5205     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5206     ;;
5207    
5208     interix*)
5209     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5210     lt_cv_sys_max_cmd_len=196608
5211     ;;
5212    
5213     osf*)
5214     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5215     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5216     # nice to cause kernel panics so lets avoid the loop below.
5217     # First set a reasonable default.
5218     lt_cv_sys_max_cmd_len=16384
5219     #
5220     if test -x /sbin/sysconfig; then
5221     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5222     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5223     esac
5224     fi
5225     ;;
5226     sco3.2v5*)
5227     lt_cv_sys_max_cmd_len=102400
5228     ;;
5229     sysv5* | sco5v6* | sysv4.2uw2*)
5230     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5231     if test -n "$kargmax"; then
5232     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5233     else
5234     lt_cv_sys_max_cmd_len=32768
5235     fi
5236     ;;
5237     *)
5238     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5239     if test -n "$lt_cv_sys_max_cmd_len"; then
5240     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5241     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5242     else
5243     # Make teststring a little bigger before we do anything with it.
5244     # a 1K string should be a reasonable start.
5245     for i in 1 2 3 4 5 6 7 8 ; do
5246     teststring=$teststring$teststring
5247     done
5248     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5249     # If test is not a shell built-in, we'll probably end up computing a
5250     # maximum length that is only half of the actual maximum length, but
5251     # we can't tell.
5252     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5253     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5254     test $i != 17 # 1/2 MB should be enough
5255     do
5256     i=`expr $i + 1`
5257     teststring=$teststring$teststring
5258     done
5259     # Only check the string length outside the loop.
5260     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5261     teststring=
5262     # Add a significant safety factor because C++ compilers can tack on
5263     # massive amounts of additional arguments before passing them to the
5264     # linker. It appears as though 1/2 is a usable value.
5265     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5266     fi
5267     ;;
5268     esac
5269    
5270     fi
5271    
5272     if test -n $lt_cv_sys_max_cmd_len ; then
5273 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5274 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5275     else
5276 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5277 michael 945 $as_echo "none" >&6; }
5278     fi
5279     max_cmd_len=$lt_cv_sys_max_cmd_len
5280    
5281    
5282    
5283    
5284    
5285    
5286     : ${CP="cp -f"}
5287     : ${MV="mv -f"}
5288     : ${RM="rm -f"}
5289    
5290 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5291 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5292     # Try some XSI features
5293     xsi_shell=no
5294     ( _lt_dummy="a/b/c"
5295     test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5296     = c,a/b,, \
5297     && eval 'test $(( 1 + 1 )) -eq 2 \
5298     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5299     && xsi_shell=yes
5300 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5301 michael 945 $as_echo "$xsi_shell" >&6; }
5302    
5303    
5304 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5305 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5306     lt_shell_append=no
5307     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5308     >/dev/null 2>&1 \
5309     && lt_shell_append=yes
5310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5311 michael 945 $as_echo "$lt_shell_append" >&6; }
5312    
5313    
5314     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5315     lt_unset=unset
5316     else
5317     lt_unset=false
5318     fi
5319    
5320    
5321    
5322    
5323    
5324     # test EBCDIC or ASCII
5325     case `echo X|tr X '\101'` in
5326     A) # ASCII based system
5327     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5328     lt_SP2NL='tr \040 \012'
5329     lt_NL2SP='tr \015\012 \040\040'
5330     ;;
5331     *) # EBCDIC based system
5332     lt_SP2NL='tr \100 \n'
5333     lt_NL2SP='tr \r\n \100\100'
5334     ;;
5335     esac
5336    
5337    
5338    
5339    
5340    
5341    
5342    
5343    
5344    
5345 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5346 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5347 michael 967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5348 michael 945 $as_echo_n "(cached) " >&6
5349     else
5350     lt_cv_ld_reload_flag='-r'
5351     fi
5352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5353 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5354     reload_flag=$lt_cv_ld_reload_flag
5355     case $reload_flag in
5356     "" | " "*) ;;
5357     *) reload_flag=" $reload_flag" ;;
5358     esac
5359     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5360     case $host_os in
5361     darwin*)
5362     if test "$GCC" = yes; then
5363     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5364     else
5365     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366     fi
5367     ;;
5368     esac
5369    
5370    
5371    
5372    
5373    
5374    
5375    
5376    
5377    
5378     if test -n "$ac_tool_prefix"; then
5379     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5380     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5381 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5383 michael 967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5384 michael 945 $as_echo_n "(cached) " >&6
5385     else
5386     if test -n "$OBJDUMP"; then
5387     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5388     else
5389     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390     for as_dir in $PATH
5391     do
5392     IFS=$as_save_IFS
5393     test -z "$as_dir" && as_dir=.
5394 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5395 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5397 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 michael 945 break 2
5399     fi
5400     done
5401 michael 967 done
5402 michael 945 IFS=$as_save_IFS
5403    
5404     fi
5405     fi
5406     OBJDUMP=$ac_cv_prog_OBJDUMP
5407     if test -n "$OBJDUMP"; then
5408 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5409 michael 945 $as_echo "$OBJDUMP" >&6; }
5410     else
5411 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 michael 945 $as_echo "no" >&6; }
5413     fi
5414    
5415    
5416     fi
5417     if test -z "$ac_cv_prog_OBJDUMP"; then
5418     ac_ct_OBJDUMP=$OBJDUMP
5419     # Extract the first word of "objdump", so it can be a program name with args.
5420     set dummy objdump; ac_word=$2
5421 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5423 michael 967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5424 michael 945 $as_echo_n "(cached) " >&6
5425     else
5426     if test -n "$ac_ct_OBJDUMP"; then
5427     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5428     else
5429     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430     for as_dir in $PATH
5431     do
5432     IFS=$as_save_IFS
5433     test -z "$as_dir" && as_dir=.
5434 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5435 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5437 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 michael 945 break 2
5439     fi
5440     done
5441 michael 967 done
5442 michael 945 IFS=$as_save_IFS
5443    
5444     fi
5445     fi
5446     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5447     if test -n "$ac_ct_OBJDUMP"; then
5448 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5449 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5450     else
5451 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 michael 945 $as_echo "no" >&6; }
5453     fi
5454    
5455     if test "x$ac_ct_OBJDUMP" = x; then
5456     OBJDUMP="false"
5457     else
5458     case $cross_compiling:$ac_tool_warned in
5459     yes:)
5460 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462     ac_tool_warned=yes ;;
5463     esac
5464     OBJDUMP=$ac_ct_OBJDUMP
5465     fi
5466     else
5467     OBJDUMP="$ac_cv_prog_OBJDUMP"
5468     fi
5469    
5470     test -z "$OBJDUMP" && OBJDUMP=objdump
5471    
5472    
5473    
5474    
5475    
5476    
5477    
5478    
5479    
5480 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5481 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5482 michael 967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5483 db 941 $as_echo_n "(cached) " >&6
5484 michael 912 else
5485     lt_cv_file_magic_cmd='$MAGIC_CMD'
5486     lt_cv_file_magic_test_file=
5487     lt_cv_deplibs_check_method='unknown'
5488     # Need to set the preceding variable on all platforms that support
5489     # interlibrary dependencies.
5490     # 'none' -- dependencies not supported.
5491     # `unknown' -- same as none, but documents that we really don't know.
5492     # 'pass_all' -- all dependencies passed with no checks.
5493     # 'test_compile' -- check by making test program.
5494     # 'file_magic [[regex]]' -- check by looking for files in library path
5495     # which responds to the $file_magic_cmd with a given extended regex.
5496     # If you have `file' or equivalent on your system and you're not sure
5497     # whether `pass_all' will *always* work, you probably want this one.
5498    
5499     case $host_os in
5500 db 941 aix[4-9]*)
5501 michael 912 lt_cv_deplibs_check_method=pass_all
5502     ;;
5503    
5504     beos*)
5505     lt_cv_deplibs_check_method=pass_all
5506     ;;
5507    
5508     bsdi[45]*)
5509     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5510     lt_cv_file_magic_cmd='/usr/bin/file -L'
5511     lt_cv_file_magic_test_file=/shlib/libc.so
5512     ;;
5513    
5514     cygwin*)
5515     # func_win32_libid is a shell function defined in ltmain.sh
5516     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5517     lt_cv_file_magic_cmd='func_win32_libid'
5518     ;;
5519    
5520     mingw* | pw32*)
5521     # Base MSYS/MinGW do not provide the 'file' command needed by
5522     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5523     # unless we find 'file', for example because we are cross-compiling.
5524     if ( file / ) >/dev/null 2>&1; then
5525     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5526     lt_cv_file_magic_cmd='func_win32_libid'
5527     else
5528     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5529     lt_cv_file_magic_cmd='$OBJDUMP -f'
5530     fi
5531     ;;
5532    
5533 michael 945 cegcc)
5534     # use the weaker test based on 'objdump'. See mingw*.
5535     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5536     lt_cv_file_magic_cmd='$OBJDUMP -f'
5537     ;;
5538    
5539 michael 912 darwin* | rhapsody*)
5540     lt_cv_deplibs_check_method=pass_all
5541     ;;
5542    
5543     freebsd* | dragonfly*)
5544 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5545 michael 912 case $host_cpu in
5546     i*86 )
5547     # Not sure whether the presence of OpenBSD here was a mistake.
5548     # Let's accept both of them until this is cleared up.
5549     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5550     lt_cv_file_magic_cmd=/usr/bin/file
5551     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5552     ;;
5553     esac
5554     else
5555     lt_cv_deplibs_check_method=pass_all
5556     fi
5557     ;;
5558    
5559     gnu*)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562    
5563     hpux10.20* | hpux11*)
5564     lt_cv_file_magic_cmd=/usr/bin/file
5565     case $host_cpu in
5566     ia64*)
5567     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5569     ;;
5570     hppa*64*)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5572     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5573     ;;
5574     *)
5575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5576     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577     ;;
5578     esac
5579     ;;
5580    
5581     interix[3-9]*)
5582     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5584     ;;
5585    
5586     irix5* | irix6* | nonstopux*)
5587     case $LD in
5588     *-32|*"-32 ") libmagic=32-bit;;
5589     *-n32|*"-n32 ") libmagic=N32;;
5590     *-64|*"-64 ") libmagic=64-bit;;
5591     *) libmagic=never-match;;
5592     esac
5593     lt_cv_deplibs_check_method=pass_all
5594     ;;
5595    
5596     # This must be Linux ELF.
5597     linux* | k*bsd*-gnu)
5598     lt_cv_deplibs_check_method=pass_all
5599     ;;
5600    
5601     netbsd*)
5602 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5603 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604     else
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606     fi
5607     ;;
5608    
5609     newos6*)
5610     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611     lt_cv_file_magic_cmd=/usr/bin/file
5612     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613     ;;
5614    
5615 michael 945 *nto* | *qnx*)
5616     lt_cv_deplibs_check_method=pass_all
5617 michael 912 ;;
5618    
5619     openbsd*)
5620 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622     else
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624     fi
5625     ;;
5626    
5627     osf3* | osf4* | osf5*)
5628     lt_cv_deplibs_check_method=pass_all
5629     ;;
5630    
5631     rdos*)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634    
5635     solaris*)
5636     lt_cv_deplibs_check_method=pass_all
5637     ;;
5638    
5639 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5640     lt_cv_deplibs_check_method=pass_all
5641     ;;
5642    
5643 michael 912 sysv4 | sysv4.3*)
5644     case $host_vendor in
5645     motorola)
5646     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5647     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5648     ;;
5649     ncr)
5650     lt_cv_deplibs_check_method=pass_all
5651     ;;
5652     sequent)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5655     ;;
5656     sni)
5657     lt_cv_file_magic_cmd='/bin/file'
5658     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659     lt_cv_file_magic_test_file=/lib/libc.so
5660     ;;
5661     siemens)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664     pc)
5665     lt_cv_deplibs_check_method=pass_all
5666     ;;
5667     esac
5668     ;;
5669    
5670 michael 945 tpf*)
5671 michael 912 lt_cv_deplibs_check_method=pass_all
5672     ;;
5673     esac
5674    
5675     fi
5676 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5678 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5679     deplibs_check_method=$lt_cv_deplibs_check_method
5680     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5681    
5682    
5683    
5684    
5685 michael 945
5686    
5687    
5688    
5689    
5690    
5691    
5692    
5693     if test -n "$ac_tool_prefix"; then
5694     # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5695     set dummy ${ac_tool_prefix}ar; ac_word=$2
5696 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5698 michael 967 if test "${ac_cv_prog_AR+set}" = set; then :
5699 michael 945 $as_echo_n "(cached) " >&6
5700     else
5701     if test -n "$AR"; then
5702     ac_cv_prog_AR="$AR" # Let the user override the test.
5703     else
5704     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705     for as_dir in $PATH
5706     do
5707     IFS=$as_save_IFS
5708     test -z "$as_dir" && as_dir=.
5709 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5710 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711     ac_cv_prog_AR="${ac_tool_prefix}ar"
5712 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 michael 945 break 2
5714     fi
5715     done
5716 michael 967 done
5717 michael 945 IFS=$as_save_IFS
5718    
5719     fi
5720     fi
5721     AR=$ac_cv_prog_AR
5722     if test -n "$AR"; then
5723 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5724 michael 945 $as_echo "$AR" >&6; }
5725     else
5726 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 michael 945 $as_echo "no" >&6; }
5728     fi
5729    
5730    
5731     fi
5732     if test -z "$ac_cv_prog_AR"; then
5733     ac_ct_AR=$AR
5734     # Extract the first word of "ar", so it can be a program name with args.
5735     set dummy ar; ac_word=$2
5736 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5738 michael 967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5739 michael 945 $as_echo_n "(cached) " >&6
5740     else
5741     if test -n "$ac_ct_AR"; then
5742     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5743     else
5744     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745     for as_dir in $PATH
5746     do
5747     IFS=$as_save_IFS
5748     test -z "$as_dir" && as_dir=.
5749 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5750 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5751     ac_cv_prog_ac_ct_AR="ar"
5752 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 michael 945 break 2
5754     fi
5755     done
5756 michael 967 done
5757 michael 945 IFS=$as_save_IFS
5758    
5759     fi
5760     fi
5761     ac_ct_AR=$ac_cv_prog_ac_ct_AR
5762     if test -n "$ac_ct_AR"; then
5763 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5764 michael 945 $as_echo "$ac_ct_AR" >&6; }
5765     else
5766 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 michael 945 $as_echo "no" >&6; }
5768     fi
5769    
5770     if test "x$ac_ct_AR" = x; then
5771     AR="false"
5772     else
5773     case $cross_compiling:$ac_tool_warned in
5774     yes:)
5775 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777     ac_tool_warned=yes ;;
5778     esac
5779     AR=$ac_ct_AR
5780     fi
5781     else
5782     AR="$ac_cv_prog_AR"
5783     fi
5784    
5785     test -z "$AR" && AR=ar
5786     test -z "$AR_FLAGS" && AR_FLAGS=cru
5787    
5788    
5789    
5790    
5791    
5792    
5793    
5794    
5795    
5796    
5797    
5798     if test -n "$ac_tool_prefix"; then
5799     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5800     set dummy ${ac_tool_prefix}strip; ac_word=$2
5801 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5803 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
5804 michael 945 $as_echo_n "(cached) " >&6
5805     else
5806     if test -n "$STRIP"; then
5807     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5808     else
5809     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810     for as_dir in $PATH
5811     do
5812     IFS=$as_save_IFS
5813     test -z "$as_dir" && as_dir=.
5814 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5815 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5817 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 michael 945 break 2
5819     fi
5820     done
5821 michael 967 done
5822 michael 945 IFS=$as_save_IFS
5823    
5824     fi
5825     fi
5826     STRIP=$ac_cv_prog_STRIP
5827     if test -n "$STRIP"; then
5828 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5829 michael 945 $as_echo "$STRIP" >&6; }
5830     else
5831 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 michael 945 $as_echo "no" >&6; }
5833     fi
5834    
5835    
5836     fi
5837     if test -z "$ac_cv_prog_STRIP"; then
5838     ac_ct_STRIP=$STRIP
5839     # Extract the first word of "strip", so it can be a program name with args.
5840     set dummy strip; ac_word=$2
5841 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5843 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5844 michael 945 $as_echo_n "(cached) " >&6
5845     else
5846     if test -n "$ac_ct_STRIP"; then
5847     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5848     else
5849     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850     for as_dir in $PATH
5851     do
5852     IFS=$as_save_IFS
5853     test -z "$as_dir" && as_dir=.
5854 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5855 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5856     ac_cv_prog_ac_ct_STRIP="strip"
5857 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 michael 945 break 2
5859     fi
5860     done
5861 michael 967 done
5862 michael 945 IFS=$as_save_IFS
5863    
5864     fi
5865     fi
5866     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5867     if test -n "$ac_ct_STRIP"; then
5868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5869 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
5870     else
5871 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 michael 945 $as_echo "no" >&6; }
5873     fi
5874    
5875     if test "x$ac_ct_STRIP" = x; then
5876     STRIP=":"
5877     else
5878     case $cross_compiling:$ac_tool_warned in
5879     yes:)
5880 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5881 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5882     ac_tool_warned=yes ;;
5883     esac
5884     STRIP=$ac_ct_STRIP
5885     fi
5886     else
5887     STRIP="$ac_cv_prog_STRIP"
5888     fi
5889    
5890     test -z "$STRIP" && STRIP=:
5891    
5892    
5893    
5894    
5895    
5896    
5897     if test -n "$ac_tool_prefix"; then
5898     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5899     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5900 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5902 michael 967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5903 michael 945 $as_echo_n "(cached) " >&6
5904     else
5905     if test -n "$RANLIB"; then
5906     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5907     else
5908     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909     for as_dir in $PATH
5910     do
5911     IFS=$as_save_IFS
5912     test -z "$as_dir" && as_dir=.
5913 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5914 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5916 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 michael 945 break 2
5918     fi
5919     done
5920 michael 967 done
5921 michael 945 IFS=$as_save_IFS
5922    
5923     fi
5924     fi
5925     RANLIB=$ac_cv_prog_RANLIB
5926     if test -n "$RANLIB"; then
5927 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5928 michael 945 $as_echo "$RANLIB" >&6; }
5929     else
5930 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 michael 945 $as_echo "no" >&6; }
5932     fi
5933    
5934    
5935     fi
5936     if test -z "$ac_cv_prog_RANLIB"; then
5937     ac_ct_RANLIB=$RANLIB
5938     # Extract the first word of "ranlib", so it can be a program name with args.
5939     set dummy ranlib; ac_word=$2
5940 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5942 michael 967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5943 michael 945 $as_echo_n "(cached) " >&6
5944     else
5945     if test -n "$ac_ct_RANLIB"; then
5946     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5947     else
5948     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949     for as_dir in $PATH
5950     do
5951     IFS=$as_save_IFS
5952     test -z "$as_dir" && as_dir=.
5953 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5954 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_prog_ac_ct_RANLIB="ranlib"
5956 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 michael 945 break 2
5958     fi
5959     done
5960 michael 967 done
5961 michael 945 IFS=$as_save_IFS
5962    
5963     fi
5964     fi
5965     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5966     if test -n "$ac_ct_RANLIB"; then
5967 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5968 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
5969     else
5970 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971 michael 945 $as_echo "no" >&6; }
5972     fi
5973    
5974     if test "x$ac_ct_RANLIB" = x; then
5975     RANLIB=":"
5976     else
5977     case $cross_compiling:$ac_tool_warned in
5978     yes:)
5979 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981     ac_tool_warned=yes ;;
5982     esac
5983     RANLIB=$ac_ct_RANLIB
5984     fi
5985     else
5986     RANLIB="$ac_cv_prog_RANLIB"
5987     fi
5988    
5989     test -z "$RANLIB" && RANLIB=:
5990    
5991    
5992    
5993    
5994    
5995    
5996     # Determine commands to create old-style static archives.
5997     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5998     old_postinstall_cmds='chmod 644 $oldlib'
5999     old_postuninstall_cmds=
6000    
6001     if test -n "$RANLIB"; then
6002     case $host_os in
6003     openbsd*)
6004     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6005     ;;
6006     *)
6007     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6008     ;;
6009     esac
6010     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6011     fi
6012    
6013    
6014    
6015    
6016    
6017    
6018    
6019    
6020    
6021    
6022    
6023    
6024    
6025    
6026    
6027    
6028    
6029    
6030    
6031    
6032    
6033    
6034    
6035    
6036    
6037    
6038    
6039    
6040    
6041    
6042    
6043    
6044    
6045    
6046 michael 912 # If no C compiler was specified, use CC.
6047     LTCC=${LTCC-"$CC"}
6048    
6049     # If no C compiler flags were specified, use CFLAGS.
6050     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6051    
6052     # Allow CC to be a program name with arguments.
6053     compiler=$CC
6054    
6055 michael 945
6056     # Check for command to grab the raw symbol name followed by C symbol from nm.
6057 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6058 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6059 michael 967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6060 michael 945 $as_echo_n "(cached) " >&6
6061     else
6062    
6063     # These are sane defaults that work on at least a few old systems.
6064     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6065    
6066     # Character class describing NM global symbol codes.
6067     symcode='[BCDEGRST]'
6068    
6069     # Regexp to match symbols that can be accessed directly from C.
6070     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6071    
6072     # Define system-specific variables.
6073     case $host_os in
6074     aix*)
6075     symcode='[BCDT]'
6076     ;;
6077     cygwin* | mingw* | pw32* | cegcc*)
6078     symcode='[ABCDGISTW]'
6079     ;;
6080     hpux*)
6081     if test "$host_cpu" = ia64; then
6082     symcode='[ABCDEGRST]'
6083     fi
6084     ;;
6085     irix* | nonstopux*)
6086     symcode='[BCDEGRST]'
6087     ;;
6088     osf*)
6089     symcode='[BCDEGQRST]'
6090     ;;
6091     solaris*)
6092     symcode='[BDRT]'
6093     ;;
6094     sco3.2v5*)
6095     symcode='[DT]'
6096     ;;
6097     sysv4.2uw2*)
6098     symcode='[DT]'
6099     ;;
6100     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6101     symcode='[ABDT]'
6102     ;;
6103     sysv4)
6104     symcode='[DFNSTU]'
6105     ;;
6106     esac
6107    
6108     # If we're using GNU nm, then use its standard symbol codes.
6109     case `$NM -V 2>&1` in
6110     *GNU* | *'with BFD'*)
6111     symcode='[ABCDGIRSTW]' ;;
6112     esac
6113    
6114     # Transform an extracted symbol line into a proper C declaration.
6115     # Some systems (esp. on ia64) link data and code symbols differently,
6116     # so use this general approach.
6117     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6118    
6119     # Transform an extracted symbol line into symbol name and symbol address
6120     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6121     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6122    
6123     # Handle CRLF in mingw tool chain
6124     opt_cr=
6125     case $build_os in
6126     mingw*)
6127     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6128     ;;
6129     esac
6130    
6131     # Try without a prefix underscore, then with it.
6132     for ac_symprfx in "" "_"; do
6133    
6134     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6135     symxfrm="\\1 $ac_symprfx\\2 \\2"
6136    
6137     # Write the raw and C identifiers.
6138     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6139     # Fake it for dumpbin and say T for any non-static function
6140     # and D for any global variable.
6141     # Also find C++ and __fastcall symbols from MSVC++,
6142     # which start with @ or ?.
6143     lt_cv_sys_global_symbol_pipe="$AWK '"\
6144     " {last_section=section; section=\$ 3};"\
6145     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6146     " \$ 0!~/External *\|/{next};"\
6147     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6148     " {if(hide[section]) next};"\
6149     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6150     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6151     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6152     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6153     " ' prfx=^$ac_symprfx"
6154     else
6155     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6156     fi
6157    
6158     # Check to see that the pipe works correctly.
6159     pipe_works=no
6160    
6161     rm -f conftest*
6162     cat > conftest.$ac_ext <<_LT_EOF
6163     #ifdef __cplusplus
6164     extern "C" {
6165     #endif
6166     char nm_test_var;
6167     void nm_test_func(void);
6168     void nm_test_func(void){}
6169     #ifdef __cplusplus
6170     }
6171     #endif
6172     int main(){nm_test_var='a';nm_test_func();return(0);}
6173     _LT_EOF
6174    
6175 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 michael 945 (eval $ac_compile) 2>&5
6177     ac_status=$?
6178 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179     test $ac_status = 0; }; then
6180 michael 945 # Now try to grab the symbols.
6181     nlist=conftest.nm
6182 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6183 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6184     ac_status=$?
6185 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186     test $ac_status = 0; } && test -s "$nlist"; then
6187 michael 945 # Try sorting and uniquifying the output.
6188     if sort "$nlist" | uniq > "$nlist"T; then
6189     mv -f "$nlist"T "$nlist"
6190     else
6191     rm -f "$nlist"T
6192     fi
6193    
6194     # Make sure that we snagged all the symbols we need.
6195     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6196     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6197     cat <<_LT_EOF > conftest.$ac_ext
6198     #ifdef __cplusplus
6199     extern "C" {
6200     #endif
6201    
6202     _LT_EOF
6203     # Now generate the symbol file.
6204     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6205    
6206     cat <<_LT_EOF >> conftest.$ac_ext
6207    
6208     /* The mapping between symbol names and symbols. */
6209     const struct {
6210     const char *name;
6211     void *address;
6212     }
6213     lt__PROGRAM__LTX_preloaded_symbols[] =
6214     {
6215     { "@PROGRAM@", (void *) 0 },
6216     _LT_EOF
6217     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6218     cat <<\_LT_EOF >> conftest.$ac_ext
6219     {0, (void *) 0}
6220     };
6221    
6222     /* This works around a problem in FreeBSD linker */
6223     #ifdef FREEBSD_WORKAROUND
6224     static const void *lt_preloaded_setup() {
6225     return lt__PROGRAM__LTX_preloaded_symbols;
6226     }
6227     #endif
6228    
6229     #ifdef __cplusplus
6230     }
6231     #endif
6232     _LT_EOF
6233     # Now try linking the two files.
6234     mv conftest.$ac_objext conftstm.$ac_objext
6235     lt_save_LIBS="$LIBS"
6236     lt_save_CFLAGS="$CFLAGS"
6237     LIBS="conftstm.$ac_objext"
6238     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6239 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6240 michael 945 (eval $ac_link) 2>&5
6241     ac_status=$?
6242 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6243     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6244 michael 945 pipe_works=yes
6245     fi
6246     LIBS="$lt_save_LIBS"
6247     CFLAGS="$lt_save_CFLAGS"
6248     else
6249     echo "cannot find nm_test_func in $nlist" >&5
6250     fi
6251     else
6252     echo "cannot find nm_test_var in $nlist" >&5
6253     fi
6254     else
6255     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6256     fi
6257     else
6258     echo "$progname: failed program was:" >&5
6259     cat conftest.$ac_ext >&5
6260     fi
6261     rm -rf conftest* conftst*
6262    
6263     # Do not use the global_symbol_pipe unless it works.
6264     if test "$pipe_works" = yes; then
6265     break
6266     else
6267     lt_cv_sys_global_symbol_pipe=
6268     fi
6269     done
6270    
6271     fi
6272    
6273     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6274     lt_cv_sys_global_symbol_to_cdecl=
6275     fi
6276     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6277 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6278 michael 945 $as_echo "failed" >&6; }
6279     else
6280 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6281 michael 945 $as_echo "ok" >&6; }
6282     fi
6283    
6284    
6285    
6286    
6287    
6288    
6289    
6290    
6291    
6292    
6293    
6294    
6295    
6296    
6297    
6298    
6299    
6300    
6301    
6302    
6303    
6304    
6305 michael 912 # Check whether --enable-libtool-lock was given.
6306 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6307 michael 912 enableval=$enable_libtool_lock;
6308     fi
6309    
6310     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311    
6312     # Some flags need to be propagated to the compiler or linker for good
6313     # libtool support.
6314     case $host in
6315     ia64-*-hpux*)
6316     # Find out which ABI we are using.
6317     echo 'int i;' > conftest.$ac_ext
6318 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6319 michael 912 (eval $ac_compile) 2>&5
6320     ac_status=$?
6321 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6322     test $ac_status = 0; }; then
6323 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6324 michael 945 *ELF-32*)
6325     HPUX_IA64_MODE="32"
6326     ;;
6327     *ELF-64*)
6328     HPUX_IA64_MODE="64"
6329     ;;
6330 michael 912 esac
6331     fi
6332     rm -rf conftest*
6333     ;;
6334     *-*-irix6*)
6335     # Find out which ABI we are using.
6336 michael 1010 echo '#line 6336 "configure"' > conftest.$ac_ext
6337 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6338 michael 912 (eval $ac_compile) 2>&5
6339     ac_status=$?
6340 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6341     test $ac_status = 0; }; then
6342 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6343     case `/usr/bin/file conftest.$ac_objext` in
6344     *32-bit*)
6345     LD="${LD-ld} -melf32bsmip"
6346     ;;
6347     *N32*)
6348     LD="${LD-ld} -melf32bmipn32"
6349     ;;
6350     *64-bit*)
6351     LD="${LD-ld} -melf64bmip"
6352     ;;
6353     esac
6354     else
6355     case `/usr/bin/file conftest.$ac_objext` in
6356     *32-bit*)
6357     LD="${LD-ld} -32"
6358     ;;
6359     *N32*)
6360     LD="${LD-ld} -n32"
6361     ;;
6362     *64-bit*)
6363     LD="${LD-ld} -64"
6364     ;;
6365     esac
6366     fi
6367 michael 912 fi
6368     rm -rf conftest*
6369     ;;
6370    
6371     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6372 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6373 michael 912 # Find out which ABI we are using.
6374     echo 'int i;' > conftest.$ac_ext
6375 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6376 michael 912 (eval $ac_compile) 2>&5
6377     ac_status=$?
6378 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6379     test $ac_status = 0; }; then
6380 michael 912 case `/usr/bin/file conftest.o` in
6381 michael 945 *32-bit*)
6382     case $host in
6383     x86_64-*kfreebsd*-gnu)
6384     LD="${LD-ld} -m elf_i386_fbsd"
6385     ;;
6386     x86_64-*linux*)
6387     LD="${LD-ld} -m elf_i386"
6388     ;;
6389     ppc64-*linux*|powerpc64-*linux*)
6390     LD="${LD-ld} -m elf32ppclinux"
6391     ;;
6392     s390x-*linux*)
6393     LD="${LD-ld} -m elf_s390"
6394     ;;
6395     sparc64-*linux*)
6396     LD="${LD-ld} -m elf32_sparc"
6397     ;;
6398     esac
6399     ;;
6400     *64-bit*)
6401     case $host in
6402     x86_64-*kfreebsd*-gnu)
6403     LD="${LD-ld} -m elf_x86_64_fbsd"
6404     ;;
6405     x86_64-*linux*)
6406     LD="${LD-ld} -m elf_x86_64"
6407     ;;
6408     ppc*-*linux*|powerpc*-*linux*)
6409     LD="${LD-ld} -m elf64ppc"
6410     ;;
6411     s390*-*linux*|s390*-*tpf*)
6412     LD="${LD-ld} -m elf64_s390"
6413     ;;
6414     sparc*-*linux*)
6415     LD="${LD-ld} -m elf64_sparc"
6416     ;;
6417     esac
6418     ;;
6419 michael 912 esac
6420     fi
6421     rm -rf conftest*
6422     ;;
6423    
6424     *-*-sco3.2v5*)
6425     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6426     SAVE_CFLAGS="$CFLAGS"
6427     CFLAGS="$CFLAGS -belf"
6428 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6429 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6430 michael 967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6431 db 941 $as_echo_n "(cached) " >&6
6432 michael 912 else
6433     ac_ext=c
6434     ac_cpp='$CPP $CPPFLAGS'
6435     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438    
6439 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 michael 912 /* end confdefs.h. */
6441    
6442     int
6443     main ()
6444     {
6445    
6446     ;
6447     return 0;
6448     }
6449     _ACEOF
6450 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6451 michael 912 lt_cv_cc_needs_belf=yes
6452     else
6453 michael 967 lt_cv_cc_needs_belf=no
6454 michael 912 fi
6455 michael 967 rm -f core conftest.err conftest.$ac_objext \
6456     conftest$ac_exeext conftest.$ac_ext
6457 michael 912 ac_ext=c
6458     ac_cpp='$CPP $CPPFLAGS'
6459     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6460     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6461     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6462    
6463     fi
6464 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6465 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6466 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6467     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6468     CFLAGS="$SAVE_CFLAGS"
6469     fi
6470     ;;
6471     sparc*-*solaris*)
6472     # Find out which ABI we are using.
6473     echo 'int i;' > conftest.$ac_ext
6474 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6475 michael 912 (eval $ac_compile) 2>&5
6476     ac_status=$?
6477 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478     test $ac_status = 0; }; then
6479 michael 912 case `/usr/bin/file conftest.o` in
6480     *64-bit*)
6481     case $lt_cv_prog_gnu_ld in
6482     yes*) LD="${LD-ld} -m elf64_sparc" ;;
6483 db 941 *)
6484 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6485 db 941 LD="${LD-ld} -64"
6486     fi
6487     ;;
6488 michael 912 esac
6489     ;;
6490     esac
6491     fi
6492     rm -rf conftest*
6493     ;;
6494 michael 945 esac
6495 michael 912
6496 michael 945 need_locks="$enable_libtool_lock"
6497 michael 912
6498 michael 945
6499     case $host_os in
6500     rhapsody* | darwin*)
6501     if test -n "$ac_tool_prefix"; then
6502     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6503     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6504 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6506 michael 967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6507 michael 945 $as_echo_n "(cached) " >&6
6508     else
6509     if test -n "$DSYMUTIL"; then
6510     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6511     else
6512     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513     for as_dir in $PATH
6514     do
6515     IFS=$as_save_IFS
6516     test -z "$as_dir" && as_dir=.
6517 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6518 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6519     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6520 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 michael 945 break 2
6522     fi
6523     done
6524 michael 967 done
6525 michael 945 IFS=$as_save_IFS
6526    
6527     fi
6528     fi
6529     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6530     if test -n "$DSYMUTIL"; then
6531 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6532 michael 945 $as_echo "$DSYMUTIL" >&6; }
6533     else
6534 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 michael 945 $as_echo "no" >&6; }
6536     fi
6537    
6538    
6539     fi
6540     if test -z "$ac_cv_prog_DSYMUTIL"; then
6541     ac_ct_DSYMUTIL=$DSYMUTIL
6542     # Extract the first word of "dsymutil", so it can be a program name with args.
6543     set dummy dsymutil; ac_word=$2
6544 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6546 michael 967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6547 michael 945 $as_echo_n "(cached) " >&6
6548     else
6549     if test -n "$ac_ct_DSYMUTIL"; then
6550     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6551     else
6552     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553     for as_dir in $PATH
6554     do
6555     IFS=$as_save_IFS
6556     test -z "$as_dir" && as_dir=.
6557 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6558 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6559     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6560 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 michael 945 break 2
6562     fi
6563     done
6564 michael 967 done
6565 michael 945 IFS=$as_save_IFS
6566    
6567     fi
6568     fi
6569     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6570     if test -n "$ac_ct_DSYMUTIL"; then
6571 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6572 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6573     else
6574 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 michael 945 $as_echo "no" >&6; }
6576     fi
6577    
6578     if test "x$ac_ct_DSYMUTIL" = x; then
6579     DSYMUTIL=":"
6580     else
6581     case $cross_compiling:$ac_tool_warned in
6582     yes:)
6583 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585     ac_tool_warned=yes ;;
6586 michael 912 esac
6587 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
6588     fi
6589     else
6590     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6591     fi
6592 michael 912
6593 michael 945 if test -n "$ac_tool_prefix"; then
6594     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6595     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6596 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6598 michael 967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6599 michael 945 $as_echo_n "(cached) " >&6
6600     else
6601     if test -n "$NMEDIT"; then
6602     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6603     else
6604     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605     for as_dir in $PATH
6606     do
6607     IFS=$as_save_IFS
6608     test -z "$as_dir" && as_dir=.
6609 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6610 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6612 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 michael 945 break 2
6614     fi
6615     done
6616 michael 967 done
6617 michael 945 IFS=$as_save_IFS
6618 michael 912
6619 michael 945 fi
6620     fi
6621     NMEDIT=$ac_cv_prog_NMEDIT
6622     if test -n "$NMEDIT"; then
6623 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6624 michael 945 $as_echo "$NMEDIT" >&6; }
6625     else
6626 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 michael 945 $as_echo "no" >&6; }
6628     fi
6629 michael 912
6630 michael 945
6631     fi
6632     if test -z "$ac_cv_prog_NMEDIT"; then
6633     ac_ct_NMEDIT=$NMEDIT
6634     # Extract the first word of "nmedit", so it can be a program name with args.
6635     set dummy nmedit; ac_word=$2
6636 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6638 michael 967 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6639 michael 945 $as_echo_n "(cached) " >&6
6640     else
6641     if test -n "$ac_ct_NMEDIT"; then
6642     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6643     else
6644     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645     for as_dir in $PATH
6646     do
6647     IFS=$as_save_IFS
6648     test -z "$as_dir" && as_dir=.
6649 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6650 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6652 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 michael 945 break 2
6654     fi
6655     done
6656 michael 967 done
6657 michael 945 IFS=$as_save_IFS
6658    
6659     fi
6660     fi
6661     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6662     if test -n "$ac_ct_NMEDIT"; then
6663 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6664 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
6665     else
6666 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 michael 945 $as_echo "no" >&6; }
6668     fi
6669    
6670     if test "x$ac_ct_NMEDIT" = x; then
6671     NMEDIT=":"
6672     else
6673     case $cross_compiling:$ac_tool_warned in
6674     yes:)
6675 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677     ac_tool_warned=yes ;;
6678     esac
6679     NMEDIT=$ac_ct_NMEDIT
6680     fi
6681     else
6682     NMEDIT="$ac_cv_prog_NMEDIT"
6683     fi
6684    
6685     if test -n "$ac_tool_prefix"; then
6686     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6687     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6688 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6690 michael 967 if test "${ac_cv_prog_LIPO+set}" = set; then :
6691 michael 945 $as_echo_n "(cached) " >&6
6692     else
6693     if test -n "$LIPO"; then
6694     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6695     else
6696     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697     for as_dir in $PATH
6698     do
6699     IFS=$as_save_IFS
6700     test -z "$as_dir" && as_dir=.
6701 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6702 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6704 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 michael 945 break 2
6706     fi
6707     done
6708 michael 967 done
6709 michael 945 IFS=$as_save_IFS
6710    
6711     fi
6712     fi
6713     LIPO=$ac_cv_prog_LIPO
6714     if test -n "$LIPO"; then
6715 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6716 michael 945 $as_echo "$LIPO" >&6; }
6717     else
6718 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 michael 945 $as_echo "no" >&6; }
6720     fi
6721    
6722    
6723     fi
6724     if test -z "$ac_cv_prog_LIPO"; then
6725     ac_ct_LIPO=$LIPO
6726     # Extract the first word of "lipo", so it can be a program name with args.
6727     set dummy lipo; ac_word=$2
6728 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6730 michael 967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6731 michael 945 $as_echo_n "(cached) " >&6
6732     else
6733     if test -n "$ac_ct_LIPO"; then
6734     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6735     else
6736     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737     for as_dir in $PATH
6738     do
6739     IFS=$as_save_IFS
6740     test -z "$as_dir" && as_dir=.
6741 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6742 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743     ac_cv_prog_ac_ct_LIPO="lipo"
6744 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 michael 945 break 2
6746     fi
6747     done
6748 michael 967 done
6749 michael 945 IFS=$as_save_IFS
6750    
6751     fi
6752     fi
6753     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6754     if test -n "$ac_ct_LIPO"; then
6755 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6756 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
6757     else
6758 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 michael 945 $as_echo "no" >&6; }
6760     fi
6761    
6762     if test "x$ac_ct_LIPO" = x; then
6763     LIPO=":"
6764     else
6765     case $cross_compiling:$ac_tool_warned in
6766     yes:)
6767 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6768 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6769     ac_tool_warned=yes ;;
6770     esac
6771     LIPO=$ac_ct_LIPO
6772     fi
6773     else
6774     LIPO="$ac_cv_prog_LIPO"
6775     fi
6776    
6777     if test -n "$ac_tool_prefix"; then
6778     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6779     set dummy ${ac_tool_prefix}otool; ac_word=$2
6780 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6782 michael 967 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6783 michael 945 $as_echo_n "(cached) " >&6
6784     else
6785     if test -n "$OTOOL"; then
6786     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6787     else
6788     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789     for as_dir in $PATH
6790     do
6791     IFS=$as_save_IFS
6792     test -z "$as_dir" && as_dir=.
6793 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6794 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6796 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797 michael 945 break 2
6798     fi
6799     done
6800 michael 967 done
6801 michael 945 IFS=$as_save_IFS
6802    
6803     fi
6804     fi
6805     OTOOL=$ac_cv_prog_OTOOL
6806     if test -n "$OTOOL"; then
6807 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6808 michael 945 $as_echo "$OTOOL" >&6; }
6809     else
6810 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811 michael 945 $as_echo "no" >&6; }
6812     fi
6813    
6814    
6815     fi
6816     if test -z "$ac_cv_prog_OTOOL"; then
6817     ac_ct_OTOOL=$OTOOL
6818     # Extract the first word of "otool", so it can be a program name with args.
6819     set dummy otool; ac_word=$2
6820 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6822 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6823 michael 945 $as_echo_n "(cached) " >&6
6824     else
6825     if test -n "$ac_ct_OTOOL"; then
6826     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6827     else
6828     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829     for as_dir in $PATH
6830     do
6831     IFS=$as_save_IFS
6832     test -z "$as_dir" && as_dir=.
6833 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6834 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835     ac_cv_prog_ac_ct_OTOOL="otool"
6836 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 michael 945 break 2
6838     fi
6839     done
6840 michael 967 done
6841 michael 945 IFS=$as_save_IFS
6842    
6843     fi
6844     fi
6845     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6846     if test -n "$ac_ct_OTOOL"; then
6847 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6848 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
6849     else
6850 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 michael 945 $as_echo "no" >&6; }
6852     fi
6853    
6854     if test "x$ac_ct_OTOOL" = x; then
6855     OTOOL=":"
6856     else
6857     case $cross_compiling:$ac_tool_warned in
6858     yes:)
6859 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861     ac_tool_warned=yes ;;
6862     esac
6863     OTOOL=$ac_ct_OTOOL
6864     fi
6865     else
6866     OTOOL="$ac_cv_prog_OTOOL"
6867     fi
6868    
6869     if test -n "$ac_tool_prefix"; then
6870     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6871     set dummy ${ac_tool_prefix}otool64; ac_word=$2
6872 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6873 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6874 michael 967 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6875 michael 945 $as_echo_n "(cached) " >&6
6876     else
6877     if test -n "$OTOOL64"; then
6878     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6879     else
6880     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881     for as_dir in $PATH
6882     do
6883     IFS=$as_save_IFS
6884     test -z "$as_dir" && as_dir=.
6885 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6886 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6888 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 michael 945 break 2
6890     fi
6891     done
6892 michael 967 done
6893 michael 945 IFS=$as_save_IFS
6894    
6895     fi
6896     fi
6897     OTOOL64=$ac_cv_prog_OTOOL64
6898     if test -n "$OTOOL64"; then
6899 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6900 michael 945 $as_echo "$OTOOL64" >&6; }
6901     else
6902 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6903 michael 945 $as_echo "no" >&6; }
6904     fi
6905    
6906    
6907     fi
6908     if test -z "$ac_cv_prog_OTOOL64"; then
6909     ac_ct_OTOOL64=$OTOOL64
6910     # Extract the first word of "otool64", so it can be a program name with args.
6911     set dummy otool64; ac_word=$2
6912 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6914 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6915 michael 945 $as_echo_n "(cached) " >&6
6916     else
6917     if test -n "$ac_ct_OTOOL64"; then
6918     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6919     else
6920     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921     for as_dir in $PATH
6922     do
6923     IFS=$as_save_IFS
6924     test -z "$as_dir" && as_dir=.
6925 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6926 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927     ac_cv_prog_ac_ct_OTOOL64="otool64"
6928 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 michael 945 break 2
6930     fi
6931     done
6932 michael 967 done
6933 michael 945 IFS=$as_save_IFS
6934    
6935     fi
6936     fi
6937     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6938     if test -n "$ac_ct_OTOOL64"; then
6939 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6940 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
6941     else
6942 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 michael 945 $as_echo "no" >&6; }
6944     fi
6945    
6946     if test "x$ac_ct_OTOOL64" = x; then
6947     OTOOL64=":"
6948     else
6949     case $cross_compiling:$ac_tool_warned in
6950     yes:)
6951 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6952 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6953     ac_tool_warned=yes ;;
6954     esac
6955     OTOOL64=$ac_ct_OTOOL64
6956     fi
6957     else
6958     OTOOL64="$ac_cv_prog_OTOOL64"
6959     fi
6960    
6961    
6962    
6963    
6964    
6965    
6966    
6967    
6968    
6969    
6970    
6971    
6972    
6973    
6974    
6975    
6976    
6977    
6978    
6979    
6980    
6981    
6982    
6983    
6984    
6985    
6986    
6987 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6988 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
6989 michael 967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6990 michael 945 $as_echo_n "(cached) " >&6
6991     else
6992     lt_cv_apple_cc_single_mod=no
6993     if test -z "${LT_MULTI_MODULE}"; then
6994     # By default we will add the -single_module flag. You can override
6995     # by either setting the environment variable LT_MULTI_MODULE
6996     # non-empty at configure time, or by adding -multi_module to the
6997     # link flags.
6998     rm -rf libconftest.dylib*
6999     echo "int foo(void){return 1;}" > conftest.c
7000     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7001     -dynamiclib -Wl,-single_module conftest.c" >&5
7002     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7003     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7004     _lt_result=$?
7005     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7006     lt_cv_apple_cc_single_mod=yes
7007     else
7008     cat conftest.err >&5
7009     fi
7010     rm -rf libconftest.dylib*
7011     rm -f conftest.*
7012     fi
7013     fi
7014 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7015 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7016 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7017 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7018 michael 967 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7019 michael 945 $as_echo_n "(cached) " >&6
7020     else
7021     lt_cv_ld_exported_symbols_list=no
7022     save_LDFLAGS=$LDFLAGS
7023     echo "_main" > conftest.sym
7024     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7025 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7026 michael 945 /* end confdefs.h. */
7027    
7028     int
7029     main ()
7030     {
7031    
7032     ;
7033     return 0;
7034     }
7035     _ACEOF
7036 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7037 michael 945 lt_cv_ld_exported_symbols_list=yes
7038     else
7039 michael 967 lt_cv_ld_exported_symbols_list=no
7040 michael 945 fi
7041 michael 967 rm -f core conftest.err conftest.$ac_objext \
7042     conftest$ac_exeext conftest.$ac_ext
7043 michael 945 LDFLAGS="$save_LDFLAGS"
7044    
7045     fi
7046 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7047 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7048     case $host_os in
7049     rhapsody* | darwin1.[012])
7050     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7051     darwin1.*)
7052     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7053     darwin*) # darwin 5.x on
7054     # if running on 10.5 or later, the deployment target defaults
7055     # to the OS version, if on x86, and 10.4, the deployment
7056     # target defaults to 10.4. Don't you love it?
7057     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7058     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7059     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7060     10.[012]*)
7061     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7062     10.*)
7063     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7064     esac
7065     ;;
7066     esac
7067     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7068     _lt_dar_single_mod='$single_module'
7069     fi
7070     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7071     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7072     else
7073     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7074     fi
7075     if test "$DSYMUTIL" != ":"; then
7076     _lt_dsymutil='~$DSYMUTIL $lib || :'
7077     else
7078     _lt_dsymutil=
7079     fi
7080     ;;
7081     esac
7082    
7083 michael 912 ac_ext=c
7084     ac_cpp='$CPP $CPPFLAGS'
7085     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7089 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7090 michael 912 # On Suns, sometimes $CPP names a directory.
7091     if test -n "$CPP" && test -d "$CPP"; then
7092     CPP=
7093     fi
7094     if test -z "$CPP"; then
7095 michael 967 if test "${ac_cv_prog_CPP+set}" = set; then :
7096 db 941 $as_echo_n "(cached) " >&6
7097 michael 912 else
7098     # Double quotes because CPP needs to be expanded
7099     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7100     do
7101     ac_preproc_ok=false
7102     for ac_c_preproc_warn_flag in '' yes
7103     do
7104     # Use a header file that comes with gcc, so configuring glibc
7105     # with a fresh cross-compiler works.
7106     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107     # <limits.h> exists even on freestanding compilers.
7108     # On the NeXT, cc -E runs the code through the compiler's parser,
7109     # not just through cpp. "Syntax error" is here to catch this case.
7110 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 michael 912 /* end confdefs.h. */
7112     #ifdef __STDC__
7113     # include <limits.h>
7114     #else
7115     # include <assert.h>
7116     #endif
7117     Syntax error
7118     _ACEOF
7119 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7120    
7121 michael 912 else
7122     # Broken: fails on valid input.
7123     continue
7124     fi
7125     rm -f conftest.err conftest.$ac_ext
7126    
7127     # OK, works on sane cases. Now check whether nonexistent headers
7128     # can be detected and how.
7129 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 michael 912 /* end confdefs.h. */
7131     #include <ac_nonexistent.h>
7132     _ACEOF
7133 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7134 michael 912 # Broken: success on invalid input.
7135     continue
7136     else
7137     # Passes both tests.
7138     ac_preproc_ok=:
7139     break
7140     fi
7141     rm -f conftest.err conftest.$ac_ext
7142    
7143     done
7144     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7145     rm -f conftest.err conftest.$ac_ext
7146 michael 967 if $ac_preproc_ok; then :
7147 michael 912 break
7148     fi
7149    
7150     done
7151     ac_cv_prog_CPP=$CPP
7152    
7153     fi
7154     CPP=$ac_cv_prog_CPP
7155     else
7156     ac_cv_prog_CPP=$CPP
7157     fi
7158 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7159 db 941 $as_echo "$CPP" >&6; }
7160 michael 912 ac_preproc_ok=false
7161     for ac_c_preproc_warn_flag in '' yes
7162     do
7163     # Use a header file that comes with gcc, so configuring glibc
7164     # with a fresh cross-compiler works.
7165     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7166     # <limits.h> exists even on freestanding compilers.
7167     # On the NeXT, cc -E runs the code through the compiler's parser,
7168     # not just through cpp. "Syntax error" is here to catch this case.
7169 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 michael 912 /* end confdefs.h. */
7171     #ifdef __STDC__
7172     # include <limits.h>
7173     #else
7174     # include <assert.h>
7175     #endif
7176     Syntax error
7177     _ACEOF
7178 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7179    
7180 michael 912 else
7181     # Broken: fails on valid input.
7182     continue
7183     fi
7184     rm -f conftest.err conftest.$ac_ext
7185    
7186     # OK, works on sane cases. Now check whether nonexistent headers
7187     # can be detected and how.
7188 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 michael 912 /* end confdefs.h. */
7190     #include <ac_nonexistent.h>
7191     _ACEOF
7192 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7193 michael 912 # Broken: success on invalid input.
7194     continue
7195     else
7196     # Passes both tests.
7197     ac_preproc_ok=:
7198     break
7199     fi
7200     rm -f conftest.err conftest.$ac_ext
7201    
7202     done
7203     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7204     rm -f conftest.err conftest.$ac_ext
7205 michael 967 if $ac_preproc_ok; then :
7206    
7207 michael 912 else
7208 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7209 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 michael 967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7211     See \`config.log' for more details." "$LINENO" 5; }
7212 michael 912 fi
7213    
7214     ac_ext=c
7215     ac_cpp='$CPP $CPPFLAGS'
7216     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7217     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7218     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7219    
7220    
7221 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7222 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7223 michael 967 if test "${ac_cv_header_stdc+set}" = set; then :
7224 db 941 $as_echo_n "(cached) " >&6
7225 michael 912 else
7226 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 michael 912 /* end confdefs.h. */
7228     #include <stdlib.h>
7229     #include <stdarg.h>
7230     #include <string.h>
7231     #include <float.h>
7232    
7233     int
7234     main ()
7235     {
7236    
7237     ;
7238     return 0;
7239     }
7240     _ACEOF
7241 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7242 michael 912 ac_cv_header_stdc=yes
7243     else
7244 michael 967 ac_cv_header_stdc=no
7245 michael 912 fi
7246     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247    
7248     if test $ac_cv_header_stdc = yes; then
7249     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7250 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 michael 912 /* end confdefs.h. */
7252     #include <string.h>
7253    
7254     _ACEOF
7255     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7256 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7257    
7258 michael 912 else
7259     ac_cv_header_stdc=no
7260     fi
7261     rm -f conftest*
7262    
7263     fi
7264    
7265     if test $ac_cv_header_stdc = yes; then
7266     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7267 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 michael 912 /* end confdefs.h. */
7269     #include <stdlib.h>
7270    
7271     _ACEOF
7272     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7273 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7274    
7275 michael 912 else
7276     ac_cv_header_stdc=no
7277     fi
7278     rm -f conftest*
7279    
7280     fi
7281    
7282     if test $ac_cv_header_stdc = yes; then
7283     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7284 michael 967 if test "$cross_compiling" = yes; then :
7285 michael 912 :
7286     else
7287 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 michael 912 /* end confdefs.h. */
7289     #include <ctype.h>
7290     #include <stdlib.h>
7291     #if ((' ' & 0x0FF) == 0x020)
7292     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7293     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7294     #else
7295     # define ISLOWER(c) \
7296     (('a' <= (c) && (c) <= 'i') \
7297     || ('j' <= (c) && (c) <= 'r') \
7298     || ('s' <= (c) && (c) <= 'z'))
7299     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7300     #endif
7301    
7302     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7303     int
7304     main ()
7305     {
7306     int i;
7307     for (i = 0; i < 256; i++)
7308     if (XOR (islower (i), ISLOWER (i))
7309     || toupper (i) != TOUPPER (i))
7310     return 2;
7311     return 0;
7312     }
7313     _ACEOF
7314 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7315    
7316 michael 912 else
7317 michael 967 ac_cv_header_stdc=no
7318 michael 912 fi
7319 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7320     conftest.$ac_objext conftest.beam conftest.$ac_ext
7321 michael 912 fi
7322    
7323     fi
7324     fi
7325 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7326 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7327 michael 912 if test $ac_cv_header_stdc = yes; then
7328    
7329 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7330 michael 912
7331     fi
7332    
7333     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7334     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7335     inttypes.h stdint.h unistd.h
7336 michael 967 do :
7337     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7338     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7339     "
7340     eval as_val=\$$as_ac_Header
7341     if test "x$as_val" = x""yes; then :
7342 michael 912 cat >>confdefs.h <<_ACEOF
7343 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344 michael 912 _ACEOF
7345    
7346     fi
7347    
7348     done
7349    
7350    
7351     for ac_header in dlfcn.h
7352 michael 967 do :
7353     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7354     "
7355     if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7356 michael 912 cat >>confdefs.h <<_ACEOF
7357 michael 967 #define HAVE_DLFCN_H 1
7358 michael 912 _ACEOF
7359    
7360     fi
7361    
7362     done
7363    
7364    
7365    
7366 michael 945 # Set options
7367     enable_dlopen=yes
7368 michael 977 # Check whether --enable-static was given.
7369     if test "${enable_static+set}" = set; then :
7370     enableval=$enable_static; p=${PACKAGE-default}
7371 michael 945 case $enableval in
7372 michael 977 yes) enable_static=yes ;;
7373     no) enable_static=no ;;
7374 michael 945 *)
7375 michael 977 enable_static=no
7376 michael 945 # Look at the argument we got. We use all the common list separators.
7377     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378     for pkg in $enableval; do
7379     IFS="$lt_save_ifs"
7380     if test "X$pkg" = "X$p"; then
7381 michael 977 enable_static=yes
7382 michael 945 fi
7383     done
7384     IFS="$lt_save_ifs"
7385     ;;
7386     esac
7387 michael 912 else
7388 michael 977 enable_static=no
7389 michael 912 fi
7390    
7391    
7392    
7393    
7394    
7395    
7396    
7397    
7398    
7399 michael 977
7400    
7401     enable_win32_dll=no
7402    
7403    
7404     # Check whether --enable-shared was given.
7405     if test "${enable_shared+set}" = set; then :
7406     enableval=$enable_shared; p=${PACKAGE-default}
7407 michael 945 case $enableval in
7408 michael 977 yes) enable_shared=yes ;;
7409     no) enable_shared=no ;;
7410 michael 945 *)
7411 michael 977 enable_shared=no
7412 michael 945 # Look at the argument we got. We use all the common list separators.
7413     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7414     for pkg in $enableval; do
7415     IFS="$lt_save_ifs"
7416     if test "X$pkg" = "X$p"; then
7417 michael 977 enable_shared=yes
7418 michael 945 fi
7419     done
7420     IFS="$lt_save_ifs"
7421 michael 912 ;;
7422     esac
7423     else
7424 michael 977 enable_shared=yes
7425 michael 912 fi
7426    
7427    
7428    
7429    
7430    
7431    
7432    
7433    
7434    
7435    
7436 michael 977
7437 michael 945 # Check whether --with-pic was given.
7438 michael 967 if test "${with_pic+set}" = set; then :
7439 michael 945 withval=$with_pic; pic_mode="$withval"
7440 michael 912 else
7441 michael 945 pic_mode=default
7442 michael 912 fi
7443    
7444    
7445 michael 945 test -z "$pic_mode" && pic_mode=default
7446 michael 912
7447    
7448    
7449    
7450    
7451    
7452    
7453 michael 945 # Check whether --enable-fast-install was given.
7454 michael 967 if test "${enable_fast_install+set}" = set; then :
7455 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
7456     case $enableval in
7457     yes) enable_fast_install=yes ;;
7458     no) enable_fast_install=no ;;
7459     *)
7460     enable_fast_install=no
7461     # Look at the argument we got. We use all the common list separators.
7462     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463     for pkg in $enableval; do
7464     IFS="$lt_save_ifs"
7465     if test "X$pkg" = "X$p"; then
7466     enable_fast_install=yes
7467     fi
7468     done
7469     IFS="$lt_save_ifs"
7470     ;;
7471     esac
7472 michael 912 else
7473 michael 945 enable_fast_install=yes
7474 michael 912 fi
7475    
7476    
7477    
7478    
7479    
7480    
7481    
7482    
7483    
7484    
7485    
7486 michael 945 # This can be used to rebuild libtool when needed
7487     LIBTOOL_DEPS="$ltmain"
7488 michael 912
7489 michael 945 # Always use our own libtool.
7490     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7491 michael 912
7492    
7493    
7494    
7495    
7496    
7497    
7498    
7499    
7500    
7501    
7502    
7503    
7504    
7505    
7506    
7507    
7508    
7509    
7510    
7511    
7512    
7513    
7514    
7515    
7516 michael 945 test -z "$LN_S" && LN_S="ln -s"
7517 michael 912
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527    
7528    
7529    
7530    
7531 michael 945 if test -n "${ZSH_VERSION+set}" ; then
7532     setopt NO_GLOB_SUBST
7533 michael 912 fi
7534    
7535 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536 db 941 $as_echo_n "checking for objdir... " >&6; }
7537 michael 967 if test "${lt_cv_objdir+set}" = set; then :
7538 db 941 $as_echo_n "(cached) " >&6
7539 michael 912 else
7540     rm -f .libs 2>/dev/null
7541     mkdir .libs 2>/dev/null
7542     if test -d .libs; then
7543     lt_cv_objdir=.libs
7544     else
7545     # MS-DOS does not allow filenames that begin with a dot.
7546     lt_cv_objdir=_libs
7547     fi
7548     rmdir .libs 2>/dev/null
7549     fi
7550 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551 db 941 $as_echo "$lt_cv_objdir" >&6; }
7552 michael 912 objdir=$lt_cv_objdir
7553    
7554    
7555    
7556    
7557    
7558 michael 945 cat >>confdefs.h <<_ACEOF
7559     #define LT_OBJDIR "$lt_cv_objdir/"
7560     _ACEOF
7561    
7562    
7563    
7564    
7565    
7566    
7567    
7568    
7569    
7570    
7571    
7572    
7573    
7574    
7575    
7576    
7577    
7578 michael 912 case $host_os in
7579     aix3*)
7580     # AIX sometimes has problems with the GCC collect2 program. For some
7581     # reason, if we set the COLLECT_NAMES environment variable, the problems
7582     # vanish in a puff of smoke.
7583     if test "X${COLLECT_NAMES+set}" != Xset; then
7584     COLLECT_NAMES=
7585     export COLLECT_NAMES
7586     fi
7587     ;;
7588     esac
7589    
7590     # Sed substitution that helps us do robust quoting. It backslashifies
7591     # metacharacters that are still active within double-quoted strings.
7592 michael 945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7593 michael 912
7594     # Same as above, but do not quote variable references.
7595 michael 945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7596 michael 912
7597     # Sed substitution to delay expansion of an escaped shell variable in a
7598     # double_quote_subst'ed string.
7599     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7600    
7601 michael 945 # Sed substitution to delay expansion of an escaped single quote.
7602     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7603    
7604 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
7605     no_glob_subst='s/\*/\\\*/g'
7606    
7607     # Global variables:
7608 michael 945 ofile=libtool
7609 michael 912 can_build_shared=yes
7610    
7611     # All known linkers require a `.a' archive for static linking (except MSVC,
7612     # which needs '.lib').
7613     libext=a
7614 michael 945
7615 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7616    
7617     old_CC="$CC"
7618     old_CFLAGS="$CFLAGS"
7619    
7620     # Set sane defaults for various variables
7621     test -z "$CC" && CC=cc
7622     test -z "$LTCC" && LTCC=$CC
7623     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7624     test -z "$LD" && LD=ld
7625     test -z "$ac_objext" && ac_objext=o
7626    
7627     for cc_temp in $compiler""; do
7628     case $cc_temp in
7629     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7630     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7631     \-*) ;;
7632     *) break;;
7633     esac
7634     done
7635 michael 945 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7636 michael 912
7637    
7638     # Only perform the check for file, if the check method requires it
7639 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7640 michael 912 case $deplibs_check_method in
7641     file_magic*)
7642     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7643 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7644 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7645 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7646 db 941 $as_echo_n "(cached) " >&6
7647 michael 912 else
7648     case $MAGIC_CMD in
7649     [\\/*] | ?:[\\/]*)
7650     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651     ;;
7652     *)
7653     lt_save_MAGIC_CMD="$MAGIC_CMD"
7654     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656     for ac_dir in $ac_dummy; do
7657     IFS="$lt_save_ifs"
7658     test -z "$ac_dir" && ac_dir=.
7659     if test -f $ac_dir/${ac_tool_prefix}file; then
7660     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7661     if test -n "$file_magic_test_file"; then
7662     case $deplibs_check_method in
7663     "file_magic "*)
7664     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667     $EGREP "$file_magic_regex" > /dev/null; then
7668     :
7669     else
7670 michael 945 cat <<_LT_EOF 1>&2
7671 michael 912
7672     *** Warning: the command libtool uses to detect shared libraries,
7673     *** $file_magic_cmd, produces output that libtool cannot recognize.
7674     *** The result is that libtool may fail to recognize shared libraries
7675     *** as such. This will affect the creation of libtool libraries that
7676     *** depend on shared libraries, but programs linked with such libtool
7677     *** libraries will work regardless of this problem. Nevertheless, you
7678     *** may want to report the problem to your system manager and/or to
7679     *** bug-libtool@gnu.org
7680    
7681 michael 945 _LT_EOF
7682 michael 912 fi ;;
7683     esac
7684     fi
7685     break
7686     fi
7687     done
7688     IFS="$lt_save_ifs"
7689     MAGIC_CMD="$lt_save_MAGIC_CMD"
7690     ;;
7691     esac
7692     fi
7693    
7694     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695     if test -n "$MAGIC_CMD"; then
7696 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7697 db 941 $as_echo "$MAGIC_CMD" >&6; }
7698 michael 912 else
7699 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 db 941 $as_echo "no" >&6; }
7701 michael 912 fi
7702    
7703 michael 945
7704    
7705    
7706    
7707 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
7708     if test -n "$ac_tool_prefix"; then
7709 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7710 db 941 $as_echo_n "checking for file... " >&6; }
7711 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7712 db 941 $as_echo_n "(cached) " >&6
7713 michael 912 else
7714     case $MAGIC_CMD in
7715     [\\/*] | ?:[\\/]*)
7716     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7717     ;;
7718     *)
7719     lt_save_MAGIC_CMD="$MAGIC_CMD"
7720     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7721     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7722     for ac_dir in $ac_dummy; do
7723     IFS="$lt_save_ifs"
7724     test -z "$ac_dir" && ac_dir=.
7725     if test -f $ac_dir/file; then
7726     lt_cv_path_MAGIC_CMD="$ac_dir/file"
7727     if test -n "$file_magic_test_file"; then
7728     case $deplibs_check_method in
7729     "file_magic "*)
7730     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7731     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7732     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7733     $EGREP "$file_magic_regex" > /dev/null; then
7734     :
7735     else
7736 michael 945 cat <<_LT_EOF 1>&2
7737 michael 912
7738     *** Warning: the command libtool uses to detect shared libraries,
7739     *** $file_magic_cmd, produces output that libtool cannot recognize.
7740     *** The result is that libtool may fail to recognize shared libraries
7741     *** as such. This will affect the creation of libtool libraries that
7742     *** depend on shared libraries, but programs linked with such libtool
7743     *** libraries will work regardless of this problem. Nevertheless, you
7744     *** may want to report the problem to your system manager and/or to
7745     *** bug-libtool@gnu.org
7746    
7747 michael 945 _LT_EOF
7748 michael 912 fi ;;
7749     esac
7750     fi
7751     break
7752     fi
7753     done
7754     IFS="$lt_save_ifs"
7755     MAGIC_CMD="$lt_save_MAGIC_CMD"
7756     ;;
7757     esac
7758     fi
7759    
7760     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7761     if test -n "$MAGIC_CMD"; then
7762 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7763 db 941 $as_echo "$MAGIC_CMD" >&6; }
7764 michael 912 else
7765 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 db 941 $as_echo "no" >&6; }
7767 michael 912 fi
7768    
7769 michael 945
7770 michael 912 else
7771     MAGIC_CMD=:
7772     fi
7773     fi
7774    
7775     fi
7776     ;;
7777     esac
7778    
7779 michael 945 # Use C for the default configuration in the libtool script
7780 db 941
7781 michael 912 lt_save_CC="$CC"
7782     ac_ext=c
7783     ac_cpp='$CPP $CPPFLAGS'
7784     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7787    
7788    
7789     # Source file extension for C test sources.
7790     ac_ext=c
7791    
7792     # Object file extension for compiled C test sources.
7793     objext=o
7794     objext=$objext
7795    
7796     # Code to be used in simple compile tests
7797     lt_simple_compile_test_code="int some_variable = 0;"
7798    
7799     # Code to be used in simple link tests
7800     lt_simple_link_test_code='int main(){return(0);}'
7801    
7802    
7803 michael 945
7804    
7805    
7806    
7807    
7808 michael 912 # If no C compiler was specified, use CC.
7809     LTCC=${LTCC-"$CC"}
7810    
7811     # If no C compiler flags were specified, use CFLAGS.
7812     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7813    
7814     # Allow CC to be a program name with arguments.
7815     compiler=$CC
7816    
7817 michael 945 # Save the default compiler, since it gets overwritten when the other
7818     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7819     compiler_DEFAULT=$CC
7820 michael 912
7821     # save warnings/boilerplate of simple test code
7822     ac_outfile=conftest.$ac_objext
7823     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7824     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7825     _lt_compiler_boilerplate=`cat conftest.err`
7826 michael 945 $RM conftest*
7827 michael 912
7828     ac_outfile=conftest.$ac_objext
7829     echo "$lt_simple_link_test_code" >conftest.$ac_ext
7830     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7831     _lt_linker_boilerplate=`cat conftest.err`
7832 michael 945 $RM -r conftest*
7833 michael 912
7834    
7835 michael 945 if test -n "$compiler"; then
7836 michael 912
7837     lt_prog_compiler_no_builtin_flag=
7838    
7839     if test "$GCC" = yes; then
7840     lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7841    
7842 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7843 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7844 michael 967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7845 db 941 $as_echo_n "(cached) " >&6
7846 michael 912 else
7847     lt_cv_prog_compiler_rtti_exceptions=no
7848 michael 945 ac_outfile=conftest.$ac_objext
7849 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7850     lt_compiler_flag="-fno-rtti -fno-exceptions"
7851     # Insert the option either (1) after the last *FLAGS variable, or
7852     # (2) before a word containing "conftest.", or (3) at the end.
7853     # Note that $ac_compile itself does not contain backslashes and begins
7854     # with a dollar sign (not a hyphen), so the echo should work correctly.
7855     # The option is referenced via a variable to avoid confusing sed.
7856     lt_compile=`echo "$ac_compile" | $SED \
7857     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7858     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7859     -e 's:$: $lt_compiler_flag:'`
7860 michael 1010 (eval echo "\"\$as_me:7860: $lt_compile\"" >&5)
7861 michael 912 (eval "$lt_compile" 2>conftest.err)
7862     ac_status=$?
7863     cat conftest.err >&5
7864 michael 1010 echo "$as_me:7864: \$? = $ac_status" >&5
7865 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
7866     # The compiler can only warn and ignore the option if not recognized
7867     # So say no if there are warnings other than the usual output.
7868 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7869 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7870     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7871     lt_cv_prog_compiler_rtti_exceptions=yes
7872     fi
7873     fi
7874 michael 945 $RM conftest*
7875 michael 912
7876     fi
7877 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7878 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7879 michael 912
7880     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7881     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7882     else
7883     :
7884     fi
7885    
7886     fi
7887    
7888 michael 945
7889    
7890    
7891    
7892    
7893     lt_prog_compiler_wl=
7894 michael 912 lt_prog_compiler_pic=
7895     lt_prog_compiler_static=
7896    
7897 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7898 db 941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7899 michael 912
7900     if test "$GCC" = yes; then
7901     lt_prog_compiler_wl='-Wl,'
7902     lt_prog_compiler_static='-static'
7903    
7904     case $host_os in
7905     aix*)
7906     # All AIX code is PIC.
7907     if test "$host_cpu" = ia64; then
7908     # AIX 5 now supports IA64 processor
7909     lt_prog_compiler_static='-Bstatic'
7910     fi
7911     ;;
7912    
7913     amigaos*)
7914 michael 945 case $host_cpu in
7915     powerpc)
7916     # see comment about AmigaOS4 .so support
7917     lt_prog_compiler_pic='-fPIC'
7918     ;;
7919     m68k)
7920     # FIXME: we need at least 68020 code to build shared libraries, but
7921     # adding the `-m68020' flag to GCC prevents building anything better,
7922     # like `-m68040'.
7923     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7924     ;;
7925     esac
7926 michael 912 ;;
7927    
7928     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7929     # PIC is the default for these OSes.
7930     ;;
7931    
7932 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7933 michael 912 # This hack is so that the source file can tell whether it is being
7934     # built for inclusion in a dll (and should export symbols for example).
7935     # Although the cygwin gcc ignores -fPIC, still need this for old-style
7936     # (--disable-auto-import) libraries
7937     lt_prog_compiler_pic='-DDLL_EXPORT'
7938     ;;
7939    
7940     darwin* | rhapsody*)
7941     # PIC is the default on this platform
7942     # Common symbols not allowed in MH_DYLIB files
7943     lt_prog_compiler_pic='-fno-common'
7944     ;;
7945    
7946 michael 945 hpux*)
7947     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7948     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7949     # sets the default TLS model and affects inlining.
7950     case $host_cpu in
7951     hppa*64*)
7952     # +Z the default
7953     ;;
7954     *)
7955     lt_prog_compiler_pic='-fPIC'
7956     ;;
7957     esac
7958     ;;
7959    
7960 michael 912 interix[3-9]*)
7961     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7962     # Instead, we relocate shared libraries at runtime.
7963     ;;
7964    
7965     msdosdjgpp*)
7966     # Just because we use GCC doesn't mean we suddenly get shared libraries
7967     # on systems that don't support them.
7968     lt_prog_compiler_can_build_shared=no
7969     enable_shared=no
7970     ;;
7971    
7972 michael 945 *nto* | *qnx*)
7973     # QNX uses GNU C++, but need to define -shared option too, otherwise
7974     # it will coredump.
7975     lt_prog_compiler_pic='-fPIC -shared'
7976     ;;
7977    
7978 michael 912 sysv4*MP*)
7979     if test -d /usr/nec; then
7980     lt_prog_compiler_pic=-Kconform_pic
7981     fi
7982     ;;
7983    
7984     *)
7985     lt_prog_compiler_pic='-fPIC'
7986     ;;
7987     esac
7988     else
7989     # PORTME Check for flag to pass linker flags through the system compiler.
7990     case $host_os in
7991     aix*)
7992     lt_prog_compiler_wl='-Wl,'
7993     if test "$host_cpu" = ia64; then
7994     # AIX 5 now supports IA64 processor
7995     lt_prog_compiler_static='-Bstatic'
7996     else
7997     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7998     fi
7999     ;;
8000    
8001 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8002 michael 912 # This hack is so that the source file can tell whether it is being
8003     # built for inclusion in a dll (and should export symbols for example).
8004     lt_prog_compiler_pic='-DDLL_EXPORT'
8005     ;;
8006    
8007     hpux9* | hpux10* | hpux11*)
8008     lt_prog_compiler_wl='-Wl,'
8009     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010     # not for PA HP-UX.
8011     case $host_cpu in
8012     hppa*64*|ia64*)
8013     # +Z the default
8014     ;;
8015     *)
8016     lt_prog_compiler_pic='+Z'
8017     ;;
8018     esac
8019     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8020     lt_prog_compiler_static='${wl}-a ${wl}archive'
8021     ;;
8022    
8023     irix5* | irix6* | nonstopux*)
8024     lt_prog_compiler_wl='-Wl,'
8025     # PIC (with -KPIC) is the default.
8026     lt_prog_compiler_static='-non_shared'
8027     ;;
8028    
8029     linux* | k*bsd*-gnu)
8030     case $cc_basename in
8031 michael 945 # old Intel for x86_64 which still supported -KPIC.
8032     ecc*)
8033 michael 912 lt_prog_compiler_wl='-Wl,'
8034     lt_prog_compiler_pic='-KPIC'
8035     lt_prog_compiler_static='-static'
8036     ;;
8037 michael 945 # icc used to be incompatible with GCC.
8038     # ICC 10 doesn't accept -KPIC any more.
8039     icc* | ifort*)
8040     lt_prog_compiler_wl='-Wl,'
8041     lt_prog_compiler_pic='-fPIC'
8042     lt_prog_compiler_static='-static'
8043     ;;
8044     # Lahey Fortran 8.1.
8045     lf95*)
8046     lt_prog_compiler_wl='-Wl,'
8047     lt_prog_compiler_pic='--shared'
8048     lt_prog_compiler_static='--static'
8049     ;;
8050 michael 912 pgcc* | pgf77* | pgf90* | pgf95*)
8051     # Portland Group compilers (*not* the Pentium gcc compiler,
8052     # which looks to be a dead project)
8053     lt_prog_compiler_wl='-Wl,'
8054     lt_prog_compiler_pic='-fpic'
8055     lt_prog_compiler_static='-Bstatic'
8056     ;;
8057     ccc*)
8058     lt_prog_compiler_wl='-Wl,'
8059     # All Alpha code is PIC.
8060     lt_prog_compiler_static='-non_shared'
8061     ;;
8062 michael 945 xl*)
8063     # IBM XL C 8.0/Fortran 10.1 on PPC
8064     lt_prog_compiler_wl='-Wl,'
8065     lt_prog_compiler_pic='-qpic'
8066     lt_prog_compiler_static='-qstaticlink'
8067     ;;
8068 michael 912 *)
8069 michael 945 case `$CC -V 2>&1 | sed 5q` in
8070 michael 912 *Sun\ C*)
8071     # Sun C 5.9
8072     lt_prog_compiler_pic='-KPIC'
8073     lt_prog_compiler_static='-Bstatic'
8074     lt_prog_compiler_wl='-Wl,'
8075     ;;
8076     *Sun\ F*)
8077     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8078     lt_prog_compiler_pic='-KPIC'
8079     lt_prog_compiler_static='-Bstatic'
8080     lt_prog_compiler_wl=''
8081     ;;
8082     esac
8083     ;;
8084     esac
8085     ;;
8086    
8087 michael 945 newsos6)
8088     lt_prog_compiler_pic='-KPIC'
8089     lt_prog_compiler_static='-Bstatic'
8090     ;;
8091    
8092     *nto* | *qnx*)
8093     # QNX uses GNU C++, but need to define -shared option too, otherwise
8094     # it will coredump.
8095     lt_prog_compiler_pic='-fPIC -shared'
8096     ;;
8097    
8098 michael 912 osf3* | osf4* | osf5*)
8099     lt_prog_compiler_wl='-Wl,'
8100     # All OSF/1 code is PIC.
8101     lt_prog_compiler_static='-non_shared'
8102     ;;
8103    
8104     rdos*)
8105     lt_prog_compiler_static='-non_shared'
8106     ;;
8107    
8108     solaris*)
8109     lt_prog_compiler_pic='-KPIC'
8110     lt_prog_compiler_static='-Bstatic'
8111     case $cc_basename in
8112     f77* | f90* | f95*)
8113     lt_prog_compiler_wl='-Qoption ld ';;
8114     *)
8115     lt_prog_compiler_wl='-Wl,';;
8116     esac
8117     ;;
8118    
8119     sunos4*)
8120     lt_prog_compiler_wl='-Qoption ld '
8121     lt_prog_compiler_pic='-PIC'
8122     lt_prog_compiler_static='-Bstatic'
8123     ;;
8124    
8125     sysv4 | sysv4.2uw2* | sysv4.3*)
8126     lt_prog_compiler_wl='-Wl,'
8127     lt_prog_compiler_pic='-KPIC'
8128     lt_prog_compiler_static='-Bstatic'
8129     ;;
8130    
8131     sysv4*MP*)
8132     if test -d /usr/nec ;then
8133     lt_prog_compiler_pic='-Kconform_pic'
8134     lt_prog_compiler_static='-Bstatic'
8135     fi
8136     ;;
8137    
8138     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8139     lt_prog_compiler_wl='-Wl,'
8140     lt_prog_compiler_pic='-KPIC'
8141     lt_prog_compiler_static='-Bstatic'
8142     ;;
8143    
8144     unicos*)
8145     lt_prog_compiler_wl='-Wl,'
8146     lt_prog_compiler_can_build_shared=no
8147     ;;
8148    
8149     uts4*)
8150     lt_prog_compiler_pic='-pic'
8151     lt_prog_compiler_static='-Bstatic'
8152     ;;
8153    
8154     *)
8155     lt_prog_compiler_can_build_shared=no
8156     ;;
8157     esac
8158     fi
8159    
8160 michael 945 case $host_os in
8161     # For platforms which do not support PIC, -DPIC is meaningless:
8162     *djgpp*)
8163     lt_prog_compiler_pic=
8164     ;;
8165     *)
8166     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8167     ;;
8168     esac
8169 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8170 db 941 $as_echo "$lt_prog_compiler_pic" >&6; }
8171 michael 912
8172 michael 945
8173    
8174    
8175    
8176    
8177 michael 912 #
8178     # Check to make sure the PIC flag actually works.
8179     #
8180     if test -n "$lt_prog_compiler_pic"; then
8181 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8182 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8183 michael 967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8184 db 941 $as_echo_n "(cached) " >&6
8185 michael 912 else
8186 db 941 lt_cv_prog_compiler_pic_works=no
8187 michael 945 ac_outfile=conftest.$ac_objext
8188 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8189     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8190     # Insert the option either (1) after the last *FLAGS variable, or
8191     # (2) before a word containing "conftest.", or (3) at the end.
8192     # Note that $ac_compile itself does not contain backslashes and begins
8193     # with a dollar sign (not a hyphen), so the echo should work correctly.
8194     # The option is referenced via a variable to avoid confusing sed.
8195     lt_compile=`echo "$ac_compile" | $SED \
8196     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8197     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8198     -e 's:$: $lt_compiler_flag:'`
8199 michael 1010 (eval echo "\"\$as_me:8199: $lt_compile\"" >&5)
8200 michael 912 (eval "$lt_compile" 2>conftest.err)
8201     ac_status=$?
8202     cat conftest.err >&5
8203 michael 1010 echo "$as_me:8203: \$? = $ac_status" >&5
8204 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8205     # The compiler can only warn and ignore the option if not recognized
8206     # So say no if there are warnings other than the usual output.
8207 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8208 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8209     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8210 db 941 lt_cv_prog_compiler_pic_works=yes
8211 michael 912 fi
8212     fi
8213 michael 945 $RM conftest*
8214 michael 912
8215     fi
8216 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8217 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8218 michael 912
8219 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8220 michael 912 case $lt_prog_compiler_pic in
8221     "" | " "*) ;;
8222     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8223     esac
8224     else
8225     lt_prog_compiler_pic=
8226     lt_prog_compiler_can_build_shared=no
8227     fi
8228    
8229     fi
8230    
8231 michael 945
8232    
8233    
8234    
8235    
8236 michael 912 #
8237     # Check to make sure the static flag actually works.
8238     #
8239     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8240 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8241 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8242 michael 967 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8243 db 941 $as_echo_n "(cached) " >&6
8244 michael 912 else
8245 db 941 lt_cv_prog_compiler_static_works=no
8246 michael 912 save_LDFLAGS="$LDFLAGS"
8247     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8248     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8249     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8250     # The linker can only warn and ignore the option if not recognized
8251     # So say no if there are warnings
8252     if test -s conftest.err; then
8253     # Append any errors to the config.log.
8254     cat conftest.err 1>&5
8255 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8256 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257     if diff conftest.exp conftest.er2 >/dev/null; then
8258 db 941 lt_cv_prog_compiler_static_works=yes
8259 michael 912 fi
8260     else
8261 db 941 lt_cv_prog_compiler_static_works=yes
8262 michael 912 fi
8263     fi
8264 michael 945 $RM -r conftest*
8265 michael 912 LDFLAGS="$save_LDFLAGS"
8266    
8267     fi
8268 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8269 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8270 michael 912
8271 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8272 michael 912 :
8273     else
8274     lt_prog_compiler_static=
8275     fi
8276    
8277    
8278 michael 945
8279    
8280    
8281    
8282    
8283 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8284 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8285 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8286 db 941 $as_echo_n "(cached) " >&6
8287 michael 912 else
8288     lt_cv_prog_compiler_c_o=no
8289 michael 945 $RM -r conftest 2>/dev/null
8290 michael 912 mkdir conftest
8291     cd conftest
8292     mkdir out
8293     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8294    
8295     lt_compiler_flag="-o out/conftest2.$ac_objext"
8296     # Insert the option either (1) after the last *FLAGS variable, or
8297     # (2) before a word containing "conftest.", or (3) at the end.
8298     # Note that $ac_compile itself does not contain backslashes and begins
8299     # with a dollar sign (not a hyphen), so the echo should work correctly.
8300     lt_compile=`echo "$ac_compile" | $SED \
8301     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8302     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8303     -e 's:$: $lt_compiler_flag:'`
8304 michael 1010 (eval echo "\"\$as_me:8304: $lt_compile\"" >&5)
8305 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8306     ac_status=$?
8307     cat out/conftest.err >&5
8308 michael 1010 echo "$as_me:8308: \$? = $ac_status" >&5
8309 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8310     then
8311     # The compiler can only warn and ignore the option if not recognized
8312     # So say no if there are warnings
8313 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8314 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8315     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8316     lt_cv_prog_compiler_c_o=yes
8317     fi
8318     fi
8319     chmod u+w . 2>&5
8320 michael 945 $RM conftest*
8321 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8322     # template instantiation
8323 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8324     $RM out/* && rmdir out
8325 michael 912 cd ..
8326 michael 945 $RM -r conftest
8327     $RM conftest*
8328 michael 912
8329     fi
8330 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8331 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8332 michael 912
8333    
8334 michael 945
8335    
8336    
8337    
8338 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8339 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8340 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8341 michael 945 $as_echo_n "(cached) " >&6
8342     else
8343     lt_cv_prog_compiler_c_o=no
8344     $RM -r conftest 2>/dev/null
8345     mkdir conftest
8346     cd conftest
8347     mkdir out
8348     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349    
8350     lt_compiler_flag="-o out/conftest2.$ac_objext"
8351     # Insert the option either (1) after the last *FLAGS variable, or
8352     # (2) before a word containing "conftest.", or (3) at the end.
8353     # Note that $ac_compile itself does not contain backslashes and begins
8354     # with a dollar sign (not a hyphen), so the echo should work correctly.
8355     lt_compile=`echo "$ac_compile" | $SED \
8356     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358     -e 's:$: $lt_compiler_flag:'`
8359 michael 1010 (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8361     ac_status=$?
8362     cat out/conftest.err >&5
8363 michael 1010 echo "$as_me:8363: \$? = $ac_status" >&5
8364 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365     then
8366     # The compiler can only warn and ignore the option if not recognized
8367     # So say no if there are warnings
8368     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8369     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8370     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8371     lt_cv_prog_compiler_c_o=yes
8372     fi
8373     fi
8374     chmod u+w . 2>&5
8375     $RM conftest*
8376     # SGI C++ compiler will create directory out/ii_files/ for
8377     # template instantiation
8378     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8379     $RM out/* && rmdir out
8380     cd ..
8381     $RM -r conftest
8382     $RM conftest*
8383    
8384     fi
8385 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8386 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8387    
8388    
8389    
8390    
8391 michael 912 hard_links="nottested"
8392     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8393     # do not overwrite the value of need_locks provided by the user
8394 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8395 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
8396 michael 912 hard_links=yes
8397 michael 945 $RM conftest*
8398 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8399     touch conftest.a
8400     ln conftest.a conftest.b 2>&5 || hard_links=no
8401     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8402 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8403 db 941 $as_echo "$hard_links" >&6; }
8404 michael 912 if test "$hard_links" = no; then
8405 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8406 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8407 michael 912 need_locks=warn
8408     fi
8409     else
8410     need_locks=no
8411     fi
8412    
8413 michael 945
8414    
8415    
8416    
8417    
8418 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8419 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8420 michael 912
8421     runpath_var=
8422     allow_undefined_flag=
8423 michael 945 always_export_symbols=no
8424 michael 912 archive_cmds=
8425     archive_expsym_cmds=
8426 michael 945 compiler_needs_object=no
8427     enable_shared_with_static_runtimes=no
8428 michael 912 export_dynamic_flag_spec=
8429 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8430     hardcode_automatic=no
8431     hardcode_direct=no
8432     hardcode_direct_absolute=no
8433 michael 912 hardcode_libdir_flag_spec=
8434     hardcode_libdir_flag_spec_ld=
8435     hardcode_libdir_separator=
8436     hardcode_minus_L=no
8437     hardcode_shlibpath_var=unsupported
8438 michael 945 inherit_rpath=no
8439 michael 912 link_all_deplibs=unknown
8440     module_cmds=
8441     module_expsym_cmds=
8442 michael 945 old_archive_from_new_cmds=
8443     old_archive_from_expsyms_cmds=
8444     thread_safe_flag_spec=
8445     whole_archive_flag_spec=
8446 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
8447     # included in the symbol list
8448     include_expsyms=
8449     # exclude_expsyms can be an extended regexp of symbols to exclude
8450     # it will be wrapped by ` (' and `)$', so one must not match beginning or
8451     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8452     # as well as any symbol that contains `d'.
8453 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8454 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8455     # platforms (ab)use it in PIC code, but their linkers get confused if
8456     # the symbol is explicitly referenced. Since portable code cannot
8457     # rely on this symbol name, it's probably fine to never include it in
8458     # preloaded symbol tables.
8459 db 941 # Exclude shared library initialization/finalization symbols.
8460 michael 912 extract_expsyms_cmds=
8461    
8462     case $host_os in
8463 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8464 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8465     # When not using gcc, we currently assume that we are using
8466     # Microsoft Visual C++.
8467     if test "$GCC" != yes; then
8468     with_gnu_ld=no
8469     fi
8470     ;;
8471     interix*)
8472     # we just hope/assume this is gcc and not c89 (= MSVC++)
8473     with_gnu_ld=yes
8474     ;;
8475     openbsd*)
8476     with_gnu_ld=no
8477     ;;
8478     esac
8479    
8480     ld_shlibs=yes
8481     if test "$with_gnu_ld" = yes; then
8482     # If archive_cmds runs LD, not CC, wlarc should be empty
8483     wlarc='${wl}'
8484    
8485     # Set some defaults for GNU ld with shared library support. These
8486     # are reset later if shared libraries are not supported. Putting them
8487     # here allows them to be overridden if necessary.
8488     runpath_var=LD_RUN_PATH
8489 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8490 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
8491     # ancient GNU ld didn't support --whole-archive et. al.
8492 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8493     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8494     else
8495     whole_archive_flag_spec=
8496 michael 912 fi
8497     supports_anon_versioning=no
8498 michael 945 case `$LD -v 2>&1` in
8499 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8500     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8501     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8502     *\ 2.11.*) ;; # other 2.11 versions
8503     *) supports_anon_versioning=yes ;;
8504     esac
8505    
8506     # See if GNU ld supports shared libraries.
8507     case $host_os in
8508 db 941 aix[3-9]*)
8509 michael 912 # On AIX/PPC, the GNU linker is very broken
8510     if test "$host_cpu" != ia64; then
8511     ld_shlibs=no
8512 michael 945 cat <<_LT_EOF 1>&2
8513 michael 912
8514     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8515     *** to be unable to reliably create shared libraries on AIX.
8516     *** Therefore, libtool is disabling shared libraries support. If you
8517     *** really care for shared libraries, you may want to modify your PATH
8518     *** so that a non-GNU linker is found, and then restart.
8519    
8520 michael 945 _LT_EOF
8521 michael 912 fi
8522     ;;
8523    
8524     amigaos*)
8525 michael 945 case $host_cpu in
8526     powerpc)
8527     # see comment about AmigaOS4 .so support
8528     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529     archive_expsym_cmds=''
8530     ;;
8531     m68k)
8532     archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8533     hardcode_libdir_flag_spec='-L$libdir'
8534     hardcode_minus_L=yes
8535     ;;
8536     esac
8537 michael 912 ;;
8538    
8539     beos*)
8540 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8541 michael 912 allow_undefined_flag=unsupported
8542     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8543     # support --undefined. This deserves some investigation. FIXME
8544     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545     else
8546     ld_shlibs=no
8547     fi
8548     ;;
8549    
8550 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8551     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8552 michael 912 # as there is no search path for DLLs.
8553     hardcode_libdir_flag_spec='-L$libdir'
8554     allow_undefined_flag=unsupported
8555     always_export_symbols=no
8556     enable_shared_with_static_runtimes=yes
8557 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'
8558 michael 912
8559 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8560 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8561     # If the export-symbols file already is a .def file (1st line
8562     # is EXPORTS), use it as is; otherwise, prepend...
8563     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8564     cp $export_symbols $output_objdir/$soname.def;
8565     else
8566     echo EXPORTS > $output_objdir/$soname.def;
8567     cat $export_symbols >> $output_objdir/$soname.def;
8568     fi~
8569     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8570     else
8571     ld_shlibs=no
8572     fi
8573     ;;
8574    
8575     interix[3-9]*)
8576     hardcode_direct=no
8577     hardcode_shlibpath_var=no
8578     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579     export_dynamic_flag_spec='${wl}-E'
8580     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8581     # Instead, shared libraries are loaded at an image base (0x10000000 by
8582     # default) and relocated if they conflict, which is a slow very memory
8583     # consuming and fragmenting process. To avoid this, we pick a random,
8584     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8585     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8586     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8587     archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8588     ;;
8589    
8590 michael 945 gnu* | linux* | tpf* | k*bsd*-gnu)
8591     tmp_diet=no
8592     if test "$host_os" = linux-dietlibc; then
8593     case $cc_basename in
8594     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8595     esac
8596     fi
8597     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8598     && test "$tmp_diet" = no
8599     then
8600 michael 912 tmp_addflag=
8601 michael 945 tmp_sharedflag='-shared'
8602 michael 912 case $cc_basename,$host_cpu in
8603 michael 945 pgcc*) # Portland Group C compiler
8604     whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8605 michael 912 tmp_addflag=' $pic_flag'
8606     ;;
8607     pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8608 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'
8609 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
8610 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8611 michael 912 tmp_addflag=' -i_dynamic' ;;
8612     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8613     tmp_addflag=' -i_dynamic -nofor_main' ;;
8614     ifc* | ifort*) # Intel Fortran compiler
8615     tmp_addflag=' -nofor_main' ;;
8616 michael 945 lf95*) # Lahey Fortran 8.1
8617     whole_archive_flag_spec=
8618     tmp_sharedflag='--shared' ;;
8619     xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8620     tmp_sharedflag='-qmkshrobj'
8621     tmp_addflag= ;;
8622 michael 912 esac
8623     case `$CC -V 2>&1 | sed 5q` in
8624     *Sun\ C*) # Sun C 5.9
8625 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'
8626     compiler_needs_object=yes
8627 michael 912 tmp_sharedflag='-G' ;;
8628     *Sun\ F*) # Sun Fortran 8.3
8629     tmp_sharedflag='-G' ;;
8630     esac
8631     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632    
8633 michael 945 if test "x$supports_anon_versioning" = xyes; then
8634     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8635     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8636     echo "local: *; };" >> $output_objdir/$libname.ver~
8637     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8638     fi
8639    
8640     case $cc_basename in
8641     xlf*)
8642     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8643     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8644     hardcode_libdir_flag_spec=
8645     hardcode_libdir_flag_spec_ld='-rpath $libdir'
8646     archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8647     if test "x$supports_anon_versioning" = xyes; then
8648     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8649     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650     echo "local: *; };" >> $output_objdir/$libname.ver~
8651     $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8652     fi
8653     ;;
8654     esac
8655 michael 912 else
8656 michael 945 ld_shlibs=no
8657 michael 912 fi
8658     ;;
8659    
8660     netbsd*)
8661 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8662 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8663     wlarc=
8664     else
8665     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8667     fi
8668     ;;
8669    
8670     solaris*)
8671 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8672 michael 912 ld_shlibs=no
8673 michael 945 cat <<_LT_EOF 1>&2
8674 michael 912
8675     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8676     *** create shared libraries on Solaris systems. Therefore, libtool
8677     *** is disabling shared libraries support. We urge you to upgrade GNU
8678     *** binutils to release 2.9.1 or newer. Another option is to modify
8679     *** your PATH or compiler configuration so that the native linker is
8680     *** used, and then restart.
8681    
8682 michael 945 _LT_EOF
8683     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686     else
8687     ld_shlibs=no
8688     fi
8689     ;;
8690    
8691     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8692     case `$LD -v 2>&1` in
8693     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8694     ld_shlibs=no
8695     cat <<_LT_EOF 1>&2
8696    
8697     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8698     *** reliably create shared libraries on SCO systems. Therefore, libtool
8699     *** is disabling shared libraries support. We urge you to upgrade GNU
8700     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8701     *** your PATH or compiler configuration so that the native linker is
8702     *** used, and then restart.
8703    
8704     _LT_EOF
8705     ;;
8706     *)
8707 michael 945 # For security reasons, it is highly recommended that you always
8708     # use absolute paths for naming shared libraries, and exclude the
8709     # DT_RUNPATH tag from executables and libraries. But doing so
8710     # requires that you compile everything twice, which is a pain.
8711     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8712     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8713     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715 michael 912 else
8716     ld_shlibs=no
8717     fi
8718     ;;
8719     esac
8720     ;;
8721    
8722     sunos4*)
8723     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8724     wlarc=
8725     hardcode_direct=yes
8726     hardcode_shlibpath_var=no
8727     ;;
8728    
8729     *)
8730 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8732     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8733     else
8734     ld_shlibs=no
8735     fi
8736     ;;
8737     esac
8738    
8739     if test "$ld_shlibs" = no; then
8740     runpath_var=
8741     hardcode_libdir_flag_spec=
8742     export_dynamic_flag_spec=
8743     whole_archive_flag_spec=
8744     fi
8745     else
8746     # PORTME fill in a description of your system's linker (not GNU ld)
8747     case $host_os in
8748     aix3*)
8749     allow_undefined_flag=unsupported
8750     always_export_symbols=yes
8751     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8752     # Note: this linker hardcodes the directories in LIBPATH if there
8753     # are no directories specified by -L.
8754     hardcode_minus_L=yes
8755     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8756     # Neither direct hardcoding nor static linking is supported with a
8757     # broken collect2.
8758     hardcode_direct=unsupported
8759     fi
8760     ;;
8761    
8762 db 941 aix[4-9]*)
8763 michael 912 if test "$host_cpu" = ia64; then
8764     # On IA64, the linker does run time linking by default, so we don't
8765     # have to do anything special.
8766     aix_use_runtimelinking=no
8767     exp_sym_flag='-Bexport'
8768     no_entry_flag=""
8769     else
8770     # If we're using GNU nm, then we don't want the "-C" option.
8771     # -C means demangle to AIX nm, but means don't demangle with GNU nm
8772 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8773     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8774 michael 912 else
8775 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'
8776 michael 912 fi
8777     aix_use_runtimelinking=no
8778    
8779     # Test if we are trying to use run time linking or normal
8780     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8781     # need to do runtime linking.
8782 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8783 michael 912 for ld_flag in $LDFLAGS; do
8784 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8785     aix_use_runtimelinking=yes
8786     break
8787     fi
8788 michael 912 done
8789     ;;
8790     esac
8791    
8792     exp_sym_flag='-bexport'
8793     no_entry_flag='-bnoentry'
8794     fi
8795    
8796     # When large executables or shared objects are built, AIX ld can
8797     # have problems creating the table of contents. If linking a library
8798     # or program results in "error TOC overflow" add -mminimal-toc to
8799     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8800     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8801    
8802     archive_cmds=''
8803     hardcode_direct=yes
8804 michael 945 hardcode_direct_absolute=yes
8805 michael 912 hardcode_libdir_separator=':'
8806     link_all_deplibs=yes
8807 michael 945 file_list_spec='${wl}-f,'
8808 michael 912
8809     if test "$GCC" = yes; then
8810     case $host_os in aix4.[012]|aix4.[012].*)
8811     # We only want to do this on AIX 4.2 and lower, the check
8812     # below for broken collect2 doesn't work under 4.3+
8813     collect2name=`${CC} -print-prog-name=collect2`
8814 michael 945 if test -f "$collect2name" &&
8815     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8816 michael 912 then
8817 michael 945 # We have reworked collect2
8818     :
8819 michael 912 else
8820 michael 945 # We have old collect2
8821     hardcode_direct=unsupported
8822     # It fails to find uninstalled libraries when the uninstalled
8823     # path is not listed in the libpath. Setting hardcode_minus_L
8824     # to unsupported forces relinking
8825     hardcode_minus_L=yes
8826     hardcode_libdir_flag_spec='-L$libdir'
8827     hardcode_libdir_separator=
8828 michael 912 fi
8829     ;;
8830     esac
8831     shared_flag='-shared'
8832     if test "$aix_use_runtimelinking" = yes; then
8833     shared_flag="$shared_flag "'${wl}-G'
8834     fi
8835 michael 945 link_all_deplibs=no
8836 michael 912 else
8837     # not using gcc
8838     if test "$host_cpu" = ia64; then
8839 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8840     # chokes on -Wl,-G. The following line is correct:
8841 michael 912 shared_flag='-G'
8842     else
8843     if test "$aix_use_runtimelinking" = yes; then
8844     shared_flag='${wl}-G'
8845     else
8846     shared_flag='${wl}-bM:SRE'
8847     fi
8848     fi
8849     fi
8850    
8851 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
8852 michael 912 # It seems that -bexpall does not export symbols beginning with
8853     # underscore (_), so it is better to generate a list of symbols to export.
8854     always_export_symbols=yes
8855     if test "$aix_use_runtimelinking" = yes; then
8856     # Warning - without using the other runtime loading flags (-brtl),
8857     # -berok will link without error, but may produce a broken library.
8858     allow_undefined_flag='-berok'
8859 michael 945 # Determine the default libpath from the value encoded in an
8860     # empty executable.
8861 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 michael 912 /* end confdefs.h. */
8863    
8864     int
8865     main ()
8866     {
8867    
8868     ;
8869     return 0;
8870     }
8871     _ACEOF
8872 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8873 michael 912
8874     lt_aix_libpath_sed='
8875     /Import File Strings/,/^$/ {
8876     /^0/ {
8877     s/^0 *\(.*\)$/\1/
8878     p
8879     }
8880     }'
8881     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882     # Check for a 64-bit object if we didn't find anything.
8883     if test -z "$aix_libpath"; then
8884     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8885     fi
8886     fi
8887 michael 967 rm -f core conftest.err conftest.$ac_objext \
8888     conftest$ac_exeext conftest.$ac_ext
8889 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8890    
8891 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8892     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8893     else
8894 michael 912 if test "$host_cpu" = ia64; then
8895     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8896     allow_undefined_flag="-z nodefs"
8897     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8898     else
8899 michael 945 # Determine the default libpath from the value encoded in an
8900     # empty executable.
8901 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 michael 912 /* end confdefs.h. */
8903    
8904     int
8905     main ()
8906     {
8907    
8908     ;
8909     return 0;
8910     }
8911     _ACEOF
8912 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8913 michael 912
8914     lt_aix_libpath_sed='
8915     /Import File Strings/,/^$/ {
8916     /^0/ {
8917     s/^0 *\(.*\)$/\1/
8918     p
8919     }
8920     }'
8921     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8922     # Check for a 64-bit object if we didn't find anything.
8923     if test -z "$aix_libpath"; then
8924     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8925     fi
8926     fi
8927 michael 967 rm -f core conftest.err conftest.$ac_objext \
8928     conftest$ac_exeext conftest.$ac_ext
8929 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8930    
8931     hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8932     # Warning - without using the other run time loading flags,
8933     # -berok will link without error, but may produce a broken library.
8934     no_undefined_flag=' ${wl}-bernotok'
8935     allow_undefined_flag=' ${wl}-berok'
8936     # Exported symbols can be pulled into shared objects from archives
8937     whole_archive_flag_spec='$convenience'
8938     archive_cmds_need_lc=yes
8939     # This is similar to how AIX traditionally builds its shared libraries.
8940     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8941     fi
8942     fi
8943     ;;
8944    
8945     amigaos*)
8946 michael 945 case $host_cpu in
8947     powerpc)
8948     # see comment about AmigaOS4 .so support
8949     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950     archive_expsym_cmds=''
8951     ;;
8952     m68k)
8953     archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8954     hardcode_libdir_flag_spec='-L$libdir'
8955     hardcode_minus_L=yes
8956     ;;
8957     esac
8958 michael 912 ;;
8959    
8960     bsdi[45]*)
8961     export_dynamic_flag_spec=-rdynamic
8962     ;;
8963    
8964 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8965 michael 912 # When not using gcc, we currently assume that we are using
8966     # Microsoft Visual C++.
8967     # hardcode_libdir_flag_spec is actually meaningless, as there is
8968     # no search path for DLLs.
8969     hardcode_libdir_flag_spec=' '
8970     allow_undefined_flag=unsupported
8971     # Tell ltmain to make .lib files, not .a files.
8972     libext=lib
8973     # Tell ltmain to make .dll files, not .so files.
8974     shrext_cmds=".dll"
8975     # FIXME: Setting linknames here is a bad hack.
8976 michael 945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8977 michael 912 # The linker will automatically build a .lib file if we build a DLL.
8978 michael 945 old_archive_from_new_cmds='true'
8979 michael 912 # FIXME: Should let the user specify the lib program.
8980     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8981     fix_srcfile_path='`cygpath -w "$srcfile"`'
8982     enable_shared_with_static_runtimes=yes
8983     ;;
8984    
8985     darwin* | rhapsody*)
8986 michael 945
8987    
8988     archive_cmds_need_lc=no
8989     hardcode_direct=no
8990     hardcode_automatic=yes
8991     hardcode_shlibpath_var=unsupported
8992     whole_archive_flag_spec=''
8993     link_all_deplibs=yes
8994     allow_undefined_flag="$_lt_dar_allow_undefined"
8995     case $cc_basename in
8996     ifort*) _lt_dar_can_shared=yes ;;
8997     *) _lt_dar_can_shared=$GCC ;;
8998     esac
8999     if test "$_lt_dar_can_shared" = "yes"; then
9000     output_verbose_link_cmd=echo
9001     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9002     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9003     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9004     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9005    
9006     else
9007     ld_shlibs=no
9008     fi
9009    
9010 michael 912 ;;
9011    
9012     dgux*)
9013     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014     hardcode_libdir_flag_spec='-L$libdir'
9015     hardcode_shlibpath_var=no
9016     ;;
9017    
9018     freebsd1*)
9019     ld_shlibs=no
9020     ;;
9021    
9022     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9023     # support. Future versions do this automatically, but an explicit c++rt0.o
9024     # does not break anything, and helps significantly (at the cost of a little
9025     # extra space).
9026     freebsd2.2*)
9027     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9028     hardcode_libdir_flag_spec='-R$libdir'
9029     hardcode_direct=yes
9030     hardcode_shlibpath_var=no
9031     ;;
9032    
9033     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9034     freebsd2*)
9035     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9036     hardcode_direct=yes
9037     hardcode_minus_L=yes
9038     hardcode_shlibpath_var=no
9039     ;;
9040    
9041     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9042     freebsd* | dragonfly*)
9043     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9044     hardcode_libdir_flag_spec='-R$libdir'
9045     hardcode_direct=yes
9046     hardcode_shlibpath_var=no
9047     ;;
9048    
9049     hpux9*)
9050     if test "$GCC" = yes; then
9051 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'
9052 michael 912 else
9053 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'
9054 michael 912 fi
9055     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9056     hardcode_libdir_separator=:
9057     hardcode_direct=yes
9058    
9059     # hardcode_minus_L: Not really in the search PATH,
9060     # but as the default location of the library.
9061     hardcode_minus_L=yes
9062     export_dynamic_flag_spec='${wl}-E'
9063     ;;
9064    
9065     hpux10*)
9066     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9067     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068     else
9069     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9070     fi
9071     if test "$with_gnu_ld" = no; then
9072     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9073 michael 945 hardcode_libdir_flag_spec_ld='+b $libdir'
9074 michael 912 hardcode_libdir_separator=:
9075     hardcode_direct=yes
9076 michael 945 hardcode_direct_absolute=yes
9077 michael 912 export_dynamic_flag_spec='${wl}-E'
9078     # hardcode_minus_L: Not really in the search PATH,
9079     # but as the default location of the library.
9080     hardcode_minus_L=yes
9081     fi
9082     ;;
9083    
9084     hpux11*)
9085     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9086     case $host_cpu in
9087     hppa*64*)
9088     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089     ;;
9090     ia64*)
9091 michael 945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9092 michael 912 ;;
9093     *)
9094     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9095     ;;
9096     esac
9097     else
9098     case $host_cpu in
9099     hppa*64*)
9100     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101     ;;
9102     ia64*)
9103     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9104     ;;
9105     *)
9106     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107     ;;
9108     esac
9109     fi
9110     if test "$with_gnu_ld" = no; then
9111     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9112     hardcode_libdir_separator=:
9113    
9114     case $host_cpu in
9115     hppa*64*|ia64*)
9116     hardcode_direct=no
9117     hardcode_shlibpath_var=no
9118     ;;
9119     *)
9120     hardcode_direct=yes
9121 michael 945 hardcode_direct_absolute=yes
9122 michael 912 export_dynamic_flag_spec='${wl}-E'
9123    
9124     # hardcode_minus_L: Not really in the search PATH,
9125     # but as the default location of the library.
9126     hardcode_minus_L=yes
9127     ;;
9128     esac
9129     fi
9130     ;;
9131    
9132     irix5* | irix6* | nonstopux*)
9133     if test "$GCC" = yes; then
9134 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'
9135     # Try to use the -exported_symbol ld option, if it does not
9136     # work, assume that -exports_file does not work either and
9137     # implicitly export all symbols.
9138     save_LDFLAGS="$LDFLAGS"
9139     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9140 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141     /* end confdefs.h. */
9142 michael 945 int foo(void) {}
9143     _ACEOF
9144 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9145 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'
9146    
9147     fi
9148 michael 967 rm -f core conftest.err conftest.$ac_objext \
9149     conftest$ac_exeext conftest.$ac_ext
9150 michael 945 LDFLAGS="$save_LDFLAGS"
9151 michael 912 else
9152 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'
9153     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9154 michael 912 fi
9155 michael 945 archive_cmds_need_lc='no'
9156 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157     hardcode_libdir_separator=:
9158 michael 945 inherit_rpath=yes
9159 michael 912 link_all_deplibs=yes
9160     ;;
9161    
9162     netbsd*)
9163 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9164 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9165     else
9166     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9167     fi
9168     hardcode_libdir_flag_spec='-R$libdir'
9169     hardcode_direct=yes
9170     hardcode_shlibpath_var=no
9171     ;;
9172    
9173     newsos6)
9174     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175     hardcode_direct=yes
9176     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177     hardcode_libdir_separator=:
9178     hardcode_shlibpath_var=no
9179     ;;
9180    
9181 michael 945 *nto* | *qnx*)
9182     ;;
9183    
9184 michael 912 openbsd*)
9185     if test -f /usr/libexec/ld.so; then
9186     hardcode_direct=yes
9187     hardcode_shlibpath_var=no
9188 michael 945 hardcode_direct_absolute=yes
9189     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9190 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9192     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193     export_dynamic_flag_spec='${wl}-E'
9194     else
9195     case $host_os in
9196     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9197     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198     hardcode_libdir_flag_spec='-R$libdir'
9199     ;;
9200     *)
9201     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9203     ;;
9204     esac
9205 michael 945 fi
9206 michael 912 else
9207     ld_shlibs=no
9208     fi
9209     ;;
9210    
9211     os2*)
9212     hardcode_libdir_flag_spec='-L$libdir'
9213     hardcode_minus_L=yes
9214     allow_undefined_flag=unsupported
9215 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'
9216     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9217 michael 912 ;;
9218    
9219     osf3*)
9220     if test "$GCC" = yes; then
9221     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9222 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'
9223 michael 912 else
9224     allow_undefined_flag=' -expect_unresolved \*'
9225 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'
9226 michael 912 fi
9227 michael 945 archive_cmds_need_lc='no'
9228 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229     hardcode_libdir_separator=:
9230     ;;
9231    
9232     osf4* | osf5*) # as osf3* with the addition of -msym flag
9233     if test "$GCC" = yes; then
9234     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9235 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'
9236 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237     else
9238     allow_undefined_flag=' -expect_unresolved \*'
9239 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'
9240     archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9241     $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9242 michael 912
9243     # Both c and cxx compiler support -rpath directly
9244     hardcode_libdir_flag_spec='-rpath $libdir'
9245     fi
9246 michael 945 archive_cmds_need_lc='no'
9247 michael 912 hardcode_libdir_separator=:
9248     ;;
9249    
9250     solaris*)
9251 michael 945 no_undefined_flag=' -z defs'
9252 michael 912 if test "$GCC" = yes; then
9253     wlarc='${wl}'
9254 michael 945 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9255     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256     $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9257 michael 912 else
9258 michael 945 case `$CC -V 2>&1` in
9259     *"Compilers 5.0"*)
9260     wlarc=''
9261     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264     ;;
9265     *)
9266     wlarc='${wl}'
9267     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270     ;;
9271     esac
9272 michael 912 fi
9273     hardcode_libdir_flag_spec='-R$libdir'
9274     hardcode_shlibpath_var=no
9275     case $host_os in
9276     solaris2.[0-5] | solaris2.[0-5].*) ;;
9277     *)
9278     # The compiler driver will combine and reorder linker options,
9279     # but understands `-z linker_flag'. GCC discards it without `$wl',
9280     # but is careful enough not to reorder.
9281 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 michael 912 if test "$GCC" = yes; then
9283     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9284     else
9285     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9286     fi
9287     ;;
9288     esac
9289     link_all_deplibs=yes
9290     ;;
9291    
9292     sunos4*)
9293     if test "x$host_vendor" = xsequent; then
9294     # Use $CC to link under sequent, because it throws in some extra .o
9295     # files that make .init and .fini sections work.
9296     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297     else
9298     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9299     fi
9300     hardcode_libdir_flag_spec='-L$libdir'
9301     hardcode_direct=yes
9302     hardcode_minus_L=yes
9303     hardcode_shlibpath_var=no
9304     ;;
9305    
9306     sysv4)
9307     case $host_vendor in
9308     sni)
9309     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310     hardcode_direct=yes # is this really true???
9311     ;;
9312     siemens)
9313     ## LD is ld it makes a PLAMLIB
9314     ## CC just makes a GrossModule.
9315     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316     reload_cmds='$CC -r -o $output$reload_objs'
9317     hardcode_direct=no
9318     ;;
9319     motorola)
9320     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9322     ;;
9323     esac
9324     runpath_var='LD_RUN_PATH'
9325     hardcode_shlibpath_var=no
9326     ;;
9327    
9328     sysv4.3*)
9329     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330     hardcode_shlibpath_var=no
9331     export_dynamic_flag_spec='-Bexport'
9332     ;;
9333    
9334     sysv4*MP*)
9335     if test -d /usr/nec; then
9336     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337     hardcode_shlibpath_var=no
9338     runpath_var=LD_RUN_PATH
9339     hardcode_runpath_var=yes
9340     ld_shlibs=yes
9341     fi
9342     ;;
9343    
9344     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9345     no_undefined_flag='${wl}-z,text'
9346     archive_cmds_need_lc=no
9347     hardcode_shlibpath_var=no
9348     runpath_var='LD_RUN_PATH'
9349    
9350     if test "$GCC" = yes; then
9351     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353     else
9354     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9356     fi
9357     ;;
9358    
9359     sysv5* | sco3.2v5* | sco5v6*)
9360     # Note: We can NOT use -z defs as we might desire, because we do not
9361     # link with -lc, and that would cause any symbols used from libc to
9362     # always be unresolved, which means just about no library would
9363     # ever link correctly. If we're not using GNU ld we use -z text
9364     # though, which does catch some bad symbols but isn't as heavy-handed
9365     # as -z defs.
9366     no_undefined_flag='${wl}-z,text'
9367     allow_undefined_flag='${wl}-z,nodefs'
9368     archive_cmds_need_lc=no
9369     hardcode_shlibpath_var=no
9370 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9371 michael 912 hardcode_libdir_separator=':'
9372     link_all_deplibs=yes
9373     export_dynamic_flag_spec='${wl}-Bexport'
9374     runpath_var='LD_RUN_PATH'
9375    
9376     if test "$GCC" = yes; then
9377 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 michael 912 else
9380 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9382 michael 912 fi
9383     ;;
9384    
9385     uts4*)
9386     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387     hardcode_libdir_flag_spec='-L$libdir'
9388     hardcode_shlibpath_var=no
9389     ;;
9390    
9391     *)
9392     ld_shlibs=no
9393     ;;
9394     esac
9395 michael 945
9396     if test x$host_vendor = xsni; then
9397     case $host in
9398     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9399     export_dynamic_flag_spec='${wl}-Blargedynsym'
9400     ;;
9401     esac
9402     fi
9403 michael 912 fi
9404    
9405 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9406 db 941 $as_echo "$ld_shlibs" >&6; }
9407 michael 912 test "$ld_shlibs" = no && can_build_shared=no
9408    
9409 michael 945 with_gnu_ld=$with_gnu_ld
9410    
9411    
9412    
9413    
9414    
9415    
9416    
9417    
9418    
9419    
9420    
9421    
9422    
9423    
9424    
9425 michael 912 #
9426     # Do we need to explicitly link libc?
9427     #
9428     case "x$archive_cmds_need_lc" in
9429     x|xyes)
9430     # Assume -lc should be added
9431     archive_cmds_need_lc=yes
9432    
9433     if test "$enable_shared" = yes && test "$GCC" = yes; then
9434     case $archive_cmds in
9435     *'~'*)
9436     # FIXME: we may have to deal with multi-command sequences.
9437     ;;
9438     '$CC '*)
9439     # Test whether the compiler implicitly links with -lc since on some
9440     # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441     # to ld, don't add -lc before -lgcc.
9442 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9443 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 michael 945 $RM conftest*
9445 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446    
9447 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9448 michael 912 (eval $ac_compile) 2>&5
9449     ac_status=$?
9450 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9451     test $ac_status = 0; } 2>conftest.err; then
9452 michael 912 soname=conftest
9453     lib=conftest
9454     libobjs=conftest.$ac_objext
9455     deplibs=
9456     wl=$lt_prog_compiler_wl
9457     pic_flag=$lt_prog_compiler_pic
9458     compiler_flags=-v
9459     linker_flags=-v
9460     verstring=
9461     output_objdir=.
9462     libname=conftest
9463     lt_save_allow_undefined_flag=$allow_undefined_flag
9464     allow_undefined_flag=
9465 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9466 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9467 michael 912 ac_status=$?
9468 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469     test $ac_status = 0; }
9470 michael 912 then
9471     archive_cmds_need_lc=no
9472     else
9473     archive_cmds_need_lc=yes
9474     fi
9475     allow_undefined_flag=$lt_save_allow_undefined_flag
9476     else
9477     cat conftest.err 1>&5
9478     fi
9479 michael 945 $RM conftest*
9480 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9481 db 941 $as_echo "$archive_cmds_need_lc" >&6; }
9482 michael 912 ;;
9483     esac
9484     fi
9485     ;;
9486     esac
9487    
9488 michael 945
9489    
9490    
9491    
9492    
9493    
9494    
9495    
9496    
9497    
9498    
9499    
9500    
9501    
9502    
9503    
9504    
9505    
9506    
9507    
9508    
9509    
9510    
9511    
9512    
9513    
9514    
9515    
9516    
9517    
9518    
9519    
9520    
9521    
9522    
9523    
9524    
9525    
9526    
9527    
9528    
9529    
9530    
9531    
9532    
9533    
9534    
9535    
9536    
9537    
9538    
9539    
9540    
9541    
9542    
9543    
9544    
9545    
9546    
9547    
9548    
9549    
9550    
9551    
9552    
9553    
9554    
9555    
9556    
9557    
9558    
9559    
9560    
9561    
9562    
9563    
9564    
9565    
9566    
9567    
9568    
9569    
9570    
9571    
9572    
9573    
9574    
9575    
9576    
9577    
9578    
9579    
9580    
9581    
9582    
9583    
9584    
9585    
9586    
9587    
9588    
9589    
9590    
9591    
9592    
9593    
9594    
9595    
9596    
9597    
9598    
9599    
9600    
9601    
9602    
9603    
9604    
9605    
9606    
9607    
9608    
9609    
9610    
9611    
9612    
9613    
9614    
9615    
9616    
9617    
9618    
9619    
9620    
9621    
9622    
9623    
9624    
9625    
9626    
9627    
9628    
9629    
9630    
9631    
9632    
9633    
9634    
9635    
9636    
9637    
9638    
9639    
9640    
9641    
9642    
9643    
9644 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9645 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9646 michael 912
9647     if test "$GCC" = yes; then
9648     case $host_os in
9649     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9650     *) lt_awk_arg="/^libraries:/" ;;
9651     esac
9652     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9654 michael 912 # if the path contains ";" then we assume it to be the separator
9655     # otherwise default to the standard path separator (i.e. ":") - it is
9656     # assumed that no part of a normal pathname contains ";" but that should
9657     # okay in the real world where ";" in dirpaths is itself problematic.
9658 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9659 michael 912 else
9660 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 michael 912 fi
9662     # Ok, now we have the path, separated by spaces, we can step through it
9663     # and add multilib dir if necessary.
9664     lt_tmp_lt_search_path_spec=
9665     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9666     for lt_sys_path in $lt_search_path_spec; do
9667     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9668     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9669     else
9670     test -d "$lt_sys_path" && \
9671     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9672     fi
9673     done
9674 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9675 michael 912 BEGIN {RS=" "; FS="/|\n";} {
9676     lt_foo="";
9677     lt_count=0;
9678     for (lt_i = NF; lt_i > 0; lt_i--) {
9679     if ($lt_i != "" && $lt_i != ".") {
9680     if ($lt_i == "..") {
9681     lt_count++;
9682     } else {
9683     if (lt_count == 0) {
9684     lt_foo="/" $lt_i lt_foo;
9685     } else {
9686     lt_count--;
9687     }
9688     }
9689     }
9690     }
9691     if (lt_foo != "") { lt_freq[lt_foo]++; }
9692     if (lt_freq[lt_foo] == 1) { print lt_foo; }
9693     }'`
9694 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9695 michael 912 else
9696     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9697     fi
9698 michael 945 library_names_spec=
9699     libname_spec='lib$name'
9700     soname_spec=
9701     shrext_cmds=".so"
9702     postinstall_cmds=
9703     postuninstall_cmds=
9704     finish_cmds=
9705     finish_eval=
9706     shlibpath_var=
9707     shlibpath_overrides_runpath=unknown
9708     version_type=none
9709     dynamic_linker="$host_os ld.so"
9710     sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711 michael 912 need_lib_prefix=unknown
9712     hardcode_into_libs=no
9713    
9714     # when you set need_version to no, make sure it does not cause -set_version
9715     # flags to be left without arguments
9716     need_version=unknown
9717    
9718     case $host_os in
9719     aix3*)
9720     version_type=linux
9721     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9722     shlibpath_var=LIBPATH
9723    
9724     # AIX 3 has no versioning support, so we append a major version to the name.
9725     soname_spec='${libname}${release}${shared_ext}$major'
9726     ;;
9727    
9728 db 941 aix[4-9]*)
9729 michael 912 version_type=linux
9730     need_lib_prefix=no
9731     need_version=no
9732     hardcode_into_libs=yes
9733     if test "$host_cpu" = ia64; then
9734     # AIX 5 supports IA64
9735     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9736     shlibpath_var=LD_LIBRARY_PATH
9737     else
9738     # With GCC up to 2.95.x, collect2 would create an import file
9739     # for dependence libraries. The import file would start with
9740     # the line `#! .'. This would cause the generated library to
9741     # depend on `.', always an invalid library. This was fixed in
9742     # development snapshots of GCC prior to 3.0.
9743     case $host_os in
9744     aix4 | aix4.[01] | aix4.[01].*)
9745     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9746     echo ' yes '
9747 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9748 michael 912 :
9749     else
9750     can_build_shared=no
9751     fi
9752     ;;
9753     esac
9754     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9755     # soname into executable. Probably we can add versioning support to
9756     # collect2, so additional links can be useful in future.
9757     if test "$aix_use_runtimelinking" = yes; then
9758     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9759     # instead of lib<name>.a to let people know that these are not
9760     # typical AIX shared libraries.
9761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762     else
9763     # We preserve .a as extension for shared libraries through AIX4.2
9764     # and later when we are not doing run time linking.
9765     library_names_spec='${libname}${release}.a $libname.a'
9766     soname_spec='${libname}${release}${shared_ext}$major'
9767     fi
9768     shlibpath_var=LIBPATH
9769     fi
9770     ;;
9771    
9772     amigaos*)
9773 michael 945 case $host_cpu in
9774     powerpc)
9775     # Since July 2007 AmigaOS4 officially supports .so libraries.
9776     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778     ;;
9779     m68k)
9780     library_names_spec='$libname.ixlibrary $libname.a'
9781     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9782     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9783     ;;
9784     esac
9785 michael 912 ;;
9786    
9787     beos*)
9788     library_names_spec='${libname}${shared_ext}'
9789     dynamic_linker="$host_os ld.so"
9790     shlibpath_var=LIBRARY_PATH
9791     ;;
9792    
9793     bsdi[45]*)
9794     version_type=linux
9795     need_version=no
9796     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797     soname_spec='${libname}${release}${shared_ext}$major'
9798     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9799     shlibpath_var=LD_LIBRARY_PATH
9800     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9801     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9802     # the default ld.so.conf also contains /usr/contrib/lib and
9803     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9804     # libtool to hard-code these into programs
9805     ;;
9806    
9807 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9808 michael 912 version_type=windows
9809     shrext_cmds=".dll"
9810     need_version=no
9811     need_lib_prefix=no
9812    
9813     case $GCC,$host_os in
9814 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9815 michael 912 library_names_spec='$libname.dll.a'
9816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9817     postinstall_cmds='base_file=`basename \${file}`~
9818 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9819 michael 912 dldir=$destdir/`dirname \$dlpath`~
9820     test -d \$dldir || mkdir -p \$dldir~
9821     $install_prog $dir/$dlname \$dldir/$dlname~
9822 michael 945 chmod a+x \$dldir/$dlname~
9823     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9824     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9825     fi'
9826 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9827     dlpath=$dir/\$dldll~
9828 michael 945 $RM \$dlpath'
9829 michael 912 shlibpath_overrides_runpath=yes
9830    
9831     case $host_os in
9832     cygwin*)
9833     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9834     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9836     ;;
9837 michael 945 mingw* | cegcc*)
9838 michael 912 # MinGW DLLs use traditional 'lib' prefix
9839     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9840 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9842 michael 912 # It is most probably a Windows format PATH printed by
9843     # mingw gcc, but we are running on Cygwin. Gcc prints its search
9844     # path with ; separators, and with drive letters. We can handle the
9845     # drive letters (cygwin fileutils understands them), so leave them,
9846     # especially as we might pass files found there to a mingw objdump,
9847     # which wouldn't understand a cygwinified path. Ahh.
9848 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9849 michael 912 else
9850 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9851 michael 912 fi
9852     ;;
9853     pw32*)
9854     # pw32 DLLs use 'pw' prefix rather than 'lib'
9855     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9856     ;;
9857     esac
9858     ;;
9859    
9860     *)
9861     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9862     ;;
9863     esac
9864     dynamic_linker='Win32 ld.exe'
9865     # FIXME: first we should search . and the directory the executable is in
9866     shlibpath_var=PATH
9867     ;;
9868    
9869     darwin* | rhapsody*)
9870     dynamic_linker="$host_os dyld"
9871     version_type=darwin
9872     need_lib_prefix=no
9873     need_version=no
9874 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9875 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
9876     shlibpath_overrides_runpath=yes
9877     shlibpath_var=DYLD_LIBRARY_PATH
9878     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9879    
9880     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9881     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9882     ;;
9883    
9884     dgux*)
9885     version_type=linux
9886     need_lib_prefix=no
9887     need_version=no
9888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9889     soname_spec='${libname}${release}${shared_ext}$major'
9890     shlibpath_var=LD_LIBRARY_PATH
9891     ;;
9892    
9893     freebsd1*)
9894     dynamic_linker=no
9895     ;;
9896    
9897     freebsd* | dragonfly*)
9898     # DragonFly does not have aout. When/if they implement a new
9899     # versioning mechanism, adjust this.
9900     if test -x /usr/bin/objformat; then
9901     objformat=`/usr/bin/objformat`
9902     else
9903     case $host_os in
9904     freebsd[123]*) objformat=aout ;;
9905     *) objformat=elf ;;
9906     esac
9907     fi
9908     version_type=freebsd-$objformat
9909     case $version_type in
9910     freebsd-elf*)
9911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9912     need_version=no
9913     need_lib_prefix=no
9914     ;;
9915     freebsd-*)
9916     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9917     need_version=yes
9918     ;;
9919     esac
9920     shlibpath_var=LD_LIBRARY_PATH
9921     case $host_os in
9922     freebsd2*)
9923     shlibpath_overrides_runpath=yes
9924     ;;
9925     freebsd3.[01]* | freebsdelf3.[01]*)
9926     shlibpath_overrides_runpath=yes
9927     hardcode_into_libs=yes
9928     ;;
9929     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9930     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9931     shlibpath_overrides_runpath=no
9932     hardcode_into_libs=yes
9933     ;;
9934     *) # from 4.6 on, and DragonFly
9935     shlibpath_overrides_runpath=yes
9936     hardcode_into_libs=yes
9937     ;;
9938     esac
9939     ;;
9940    
9941     gnu*)
9942     version_type=linux
9943     need_lib_prefix=no
9944     need_version=no
9945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9946     soname_spec='${libname}${release}${shared_ext}$major'
9947     shlibpath_var=LD_LIBRARY_PATH
9948     hardcode_into_libs=yes
9949     ;;
9950    
9951     hpux9* | hpux10* | hpux11*)
9952     # Give a soname corresponding to the major version so that dld.sl refuses to
9953     # link against other versions.
9954     version_type=sunos
9955     need_lib_prefix=no
9956     need_version=no
9957     case $host_cpu in
9958     ia64*)
9959     shrext_cmds='.so'
9960     hardcode_into_libs=yes
9961     dynamic_linker="$host_os dld.so"
9962     shlibpath_var=LD_LIBRARY_PATH
9963     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965     soname_spec='${libname}${release}${shared_ext}$major'
9966     if test "X$HPUX_IA64_MODE" = X32; then
9967     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9968     else
9969     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9970     fi
9971     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972     ;;
9973 michael 945 hppa*64*)
9974 michael 912 shrext_cmds='.sl'
9975 michael 945 hardcode_into_libs=yes
9976 michael 912 dynamic_linker="$host_os dld.sl"
9977 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9978     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980     soname_spec='${libname}${release}${shared_ext}$major'
9981     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9982     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9983     ;;
9984     *)
9985     shrext_cmds='.sl'
9986     dynamic_linker="$host_os dld.sl"
9987 michael 912 shlibpath_var=SHLIB_PATH
9988     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990     soname_spec='${libname}${release}${shared_ext}$major'
9991     ;;
9992     esac
9993     # HP-UX runs *really* slowly unless shared libraries are mode 555.
9994     postinstall_cmds='chmod 555 $lib'
9995     ;;
9996    
9997     interix[3-9]*)
9998     version_type=linux
9999     need_lib_prefix=no
10000     need_version=no
10001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10002     soname_spec='${libname}${release}${shared_ext}$major'
10003     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10004     shlibpath_var=LD_LIBRARY_PATH
10005     shlibpath_overrides_runpath=no
10006     hardcode_into_libs=yes
10007     ;;
10008    
10009     irix5* | irix6* | nonstopux*)
10010     case $host_os in
10011     nonstopux*) version_type=nonstopux ;;
10012     *)
10013     if test "$lt_cv_prog_gnu_ld" = yes; then
10014     version_type=linux
10015     else
10016     version_type=irix
10017     fi ;;
10018     esac
10019     need_lib_prefix=no
10020     need_version=no
10021     soname_spec='${libname}${release}${shared_ext}$major'
10022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10023     case $host_os in
10024     irix5* | nonstopux*)
10025     libsuff= shlibsuff=
10026     ;;
10027     *)
10028     case $LD in # libtool.m4 will add one of these switches to LD
10029     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10030     libsuff= shlibsuff= libmagic=32-bit;;
10031     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10032     libsuff=32 shlibsuff=N32 libmagic=N32;;
10033     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10034     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10035     *) libsuff= shlibsuff= libmagic=never-match;;
10036     esac
10037     ;;
10038     esac
10039     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10040     shlibpath_overrides_runpath=no
10041     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10042     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10043     hardcode_into_libs=yes
10044     ;;
10045    
10046     # No shared lib support for Linux oldld, aout, or coff.
10047     linux*oldld* | linux*aout* | linux*coff*)
10048     dynamic_linker=no
10049     ;;
10050    
10051     # This must be Linux ELF.
10052     linux* | k*bsd*-gnu)
10053     version_type=linux
10054     need_lib_prefix=no
10055     need_version=no
10056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057     soname_spec='${libname}${release}${shared_ext}$major'
10058     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10059     shlibpath_var=LD_LIBRARY_PATH
10060     shlibpath_overrides_runpath=no
10061 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10062     save_LDFLAGS=$LDFLAGS
10063     save_libdir=$libdir
10064     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10065     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10066 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067 michael 945 /* end confdefs.h. */
10068    
10069     int
10070     main ()
10071     {
10072    
10073     ;
10074     return 0;
10075     }
10076     _ACEOF
10077 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10078     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10079 michael 945 shlibpath_overrides_runpath=yes
10080     fi
10081     fi
10082 michael 967 rm -f core conftest.err conftest.$ac_objext \
10083     conftest$ac_exeext conftest.$ac_ext
10084 michael 945 LDFLAGS=$save_LDFLAGS
10085     libdir=$save_libdir
10086    
10087 michael 912 # This implies no fast_install, which is unacceptable.
10088     # Some rework will be needed to allow for fast_install
10089     # before this can be enabled.
10090     hardcode_into_libs=yes
10091    
10092 michael 945 # find out which ABI we are using
10093     libsuff=
10094     case "$host_cpu" in
10095     x86_64*|s390x*|powerpc64*)
10096 michael 1010 echo '#line 10096 "configure"' > conftest.$ac_ext
10097 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10098 michael 945 (eval $ac_compile) 2>&5
10099     ac_status=$?
10100 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10101     test $ac_status = 0; }; then
10102 michael 945 case `/usr/bin/file conftest.$ac_objext` in
10103     *64-bit*)
10104     libsuff=64
10105     ;;
10106     esac
10107     fi
10108     rm -rf conftest*
10109     ;;
10110     esac
10111    
10112     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10113    
10114 michael 912 # Append ld.so.conf contents to the search path
10115     if test -f /etc/ld.so.conf; then
10116 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' ' '`
10117     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10118 michael 912 fi
10119    
10120     # We used to test for /lib/ld.so.1 and disable shared libraries on
10121     # powerpc, because MkLinux only supported shared libraries with the
10122     # GNU dynamic linker. Since this was broken with cross compilers,
10123     # most powerpc-linux boxes support dynamic linking these days and
10124     # people can always --disable-shared, the test was removed, and we
10125     # assume the GNU/Linux dynamic linker is in use.
10126     dynamic_linker='GNU/Linux ld.so'
10127     ;;
10128    
10129     netbsd*)
10130     version_type=sunos
10131     need_lib_prefix=no
10132     need_version=no
10133 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10136     dynamic_linker='NetBSD (a.out) ld.so'
10137     else
10138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139     soname_spec='${libname}${release}${shared_ext}$major'
10140     dynamic_linker='NetBSD ld.elf_so'
10141     fi
10142     shlibpath_var=LD_LIBRARY_PATH
10143     shlibpath_overrides_runpath=yes
10144     hardcode_into_libs=yes
10145     ;;
10146    
10147     newsos6)
10148     version_type=linux
10149     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150     shlibpath_var=LD_LIBRARY_PATH
10151     shlibpath_overrides_runpath=yes
10152     ;;
10153    
10154 michael 945 *nto* | *qnx*)
10155     version_type=qnx
10156 michael 912 need_lib_prefix=no
10157     need_version=no
10158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159     soname_spec='${libname}${release}${shared_ext}$major'
10160     shlibpath_var=LD_LIBRARY_PATH
10161 michael 945 shlibpath_overrides_runpath=no
10162     hardcode_into_libs=yes
10163     dynamic_linker='ldqnx.so'
10164 michael 912 ;;
10165    
10166     openbsd*)
10167     version_type=sunos
10168     sys_lib_dlsearch_path_spec="/usr/lib"
10169     need_lib_prefix=no
10170     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10171     case $host_os in
10172 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10173     *) need_version=no ;;
10174 michael 912 esac
10175     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10176     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10177     shlibpath_var=LD_LIBRARY_PATH
10178 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10179 michael 912 case $host_os in
10180     openbsd2.[89] | openbsd2.[89].*)
10181     shlibpath_overrides_runpath=no
10182     ;;
10183     *)
10184     shlibpath_overrides_runpath=yes
10185     ;;
10186     esac
10187     else
10188     shlibpath_overrides_runpath=yes
10189     fi
10190     ;;
10191    
10192     os2*)
10193     libname_spec='$name'
10194     shrext_cmds=".dll"
10195     need_lib_prefix=no
10196     library_names_spec='$libname${shared_ext} $libname.a'
10197     dynamic_linker='OS/2 ld.exe'
10198     shlibpath_var=LIBPATH
10199     ;;
10200    
10201     osf3* | osf4* | osf5*)
10202     version_type=osf
10203     need_lib_prefix=no
10204     need_version=no
10205     soname_spec='${libname}${release}${shared_ext}$major'
10206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207     shlibpath_var=LD_LIBRARY_PATH
10208     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10209     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10210     ;;
10211    
10212     rdos*)
10213     dynamic_linker=no
10214     ;;
10215    
10216     solaris*)
10217     version_type=linux
10218     need_lib_prefix=no
10219     need_version=no
10220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221     soname_spec='${libname}${release}${shared_ext}$major'
10222     shlibpath_var=LD_LIBRARY_PATH
10223     shlibpath_overrides_runpath=yes
10224     hardcode_into_libs=yes
10225     # ldd complains unless libraries are executable
10226     postinstall_cmds='chmod +x $lib'
10227     ;;
10228    
10229     sunos4*)
10230     version_type=sunos
10231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10233     shlibpath_var=LD_LIBRARY_PATH
10234     shlibpath_overrides_runpath=yes
10235     if test "$with_gnu_ld" = yes; then
10236     need_lib_prefix=no
10237     fi
10238     need_version=yes
10239     ;;
10240    
10241     sysv4 | sysv4.3*)
10242     version_type=linux
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     shlibpath_var=LD_LIBRARY_PATH
10246     case $host_vendor in
10247     sni)
10248     shlibpath_overrides_runpath=no
10249     need_lib_prefix=no
10250     runpath_var=LD_RUN_PATH
10251     ;;
10252     siemens)
10253     need_lib_prefix=no
10254     ;;
10255     motorola)
10256     need_lib_prefix=no
10257     need_version=no
10258     shlibpath_overrides_runpath=no
10259     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10260     ;;
10261     esac
10262     ;;
10263    
10264     sysv4*MP*)
10265     if test -d /usr/nec ;then
10266     version_type=linux
10267     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10268     soname_spec='$libname${shared_ext}.$major'
10269     shlibpath_var=LD_LIBRARY_PATH
10270     fi
10271     ;;
10272    
10273     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10274     version_type=freebsd-elf
10275     need_lib_prefix=no
10276     need_version=no
10277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10278     soname_spec='${libname}${release}${shared_ext}$major'
10279     shlibpath_var=LD_LIBRARY_PATH
10280 michael 945 shlibpath_overrides_runpath=yes
10281 michael 912 hardcode_into_libs=yes
10282     if test "$with_gnu_ld" = yes; then
10283     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10284     else
10285     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10286     case $host_os in
10287     sco3.2v5*)
10288     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10289     ;;
10290     esac
10291     fi
10292     sys_lib_dlsearch_path_spec='/usr/lib'
10293     ;;
10294    
10295 michael 945 tpf*)
10296     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10297     version_type=linux
10298     need_lib_prefix=no
10299     need_version=no
10300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301     shlibpath_var=LD_LIBRARY_PATH
10302     shlibpath_overrides_runpath=no
10303     hardcode_into_libs=yes
10304     ;;
10305    
10306 michael 912 uts4*)
10307     version_type=linux
10308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10309     soname_spec='${libname}${release}${shared_ext}$major'
10310     shlibpath_var=LD_LIBRARY_PATH
10311     ;;
10312    
10313     *)
10314     dynamic_linker=no
10315     ;;
10316     esac
10317 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10318 db 941 $as_echo "$dynamic_linker" >&6; }
10319 michael 912 test "$dynamic_linker" = no && can_build_shared=no
10320    
10321 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10322     if test "$GCC" = yes; then
10323     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10324     fi
10325    
10326 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10327 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10328 db 941 fi
10329     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10330 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10331 db 941 fi
10332    
10333    
10334 michael 912
10335 michael 945
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10420 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10421 michael 912 hardcode_action=
10422 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
10423     test -n "$runpath_var" ||
10424 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
10425    
10426 michael 945 # We can hardcode non-existent directories.
10427 michael 912 if test "$hardcode_direct" != no &&
10428     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10429     # have to relink, otherwise we might link with an installed library
10430     # when we should be linking with a yet-to-be-installed one
10431 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10432 michael 912 test "$hardcode_minus_L" != no; then
10433     # Linking always hardcodes the temporary library directory.
10434     hardcode_action=relink
10435     else
10436     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10437     hardcode_action=immediate
10438     fi
10439     else
10440     # We cannot hardcode anything, or else we can only hardcode existing
10441     # directories.
10442     hardcode_action=unsupported
10443     fi
10444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10445 db 941 $as_echo "$hardcode_action" >&6; }
10446 michael 912
10447 michael 945 if test "$hardcode_action" = relink ||
10448     test "$inherit_rpath" = yes; then
10449 michael 912 # Fast installation is not supported
10450     enable_fast_install=no
10451     elif test "$shlibpath_overrides_runpath" = yes ||
10452     test "$enable_shared" = no; then
10453     # Fast installation is not necessary
10454     enable_fast_install=needless
10455     fi
10456    
10457    
10458 michael 945
10459    
10460    
10461    
10462     if test "x$enable_dlopen" != xyes; then
10463 michael 912 enable_dlopen=unknown
10464     enable_dlopen_self=unknown
10465     enable_dlopen_self_static=unknown
10466     else
10467     lt_cv_dlopen=no
10468     lt_cv_dlopen_libs=
10469    
10470     case $host_os in
10471     beos*)
10472     lt_cv_dlopen="load_add_on"
10473     lt_cv_dlopen_libs=
10474     lt_cv_dlopen_self=yes
10475     ;;
10476    
10477 michael 945 mingw* | pw32* | cegcc*)
10478 michael 912 lt_cv_dlopen="LoadLibrary"
10479     lt_cv_dlopen_libs=
10480 michael 945 ;;
10481 michael 912
10482     cygwin*)
10483     lt_cv_dlopen="dlopen"
10484     lt_cv_dlopen_libs=
10485 michael 945 ;;
10486 michael 912
10487     darwin*)
10488     # if libdl is installed we need to link against it
10489 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10490 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10491 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10492 db 941 $as_echo_n "(cached) " >&6
10493 michael 912 else
10494     ac_check_lib_save_LIBS=$LIBS
10495     LIBS="-ldl $LIBS"
10496 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 michael 912 /* end confdefs.h. */
10498    
10499     /* Override any GCC internal prototype to avoid an error.
10500     Use char because int might match the return type of a GCC
10501     builtin and then its argument prototype would still apply. */
10502     #ifdef __cplusplus
10503     extern "C"
10504     #endif
10505     char dlopen ();
10506     int
10507     main ()
10508     {
10509     return dlopen ();
10510     ;
10511     return 0;
10512     }
10513     _ACEOF
10514 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10515 michael 912 ac_cv_lib_dl_dlopen=yes
10516     else
10517 michael 967 ac_cv_lib_dl_dlopen=no
10518 michael 912 fi
10519 michael 967 rm -f core conftest.err conftest.$ac_objext \
10520     conftest$ac_exeext conftest.$ac_ext
10521 michael 912 LIBS=$ac_check_lib_save_LIBS
10522     fi
10523 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10524 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10525 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10526 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10527     else
10528    
10529     lt_cv_dlopen="dyld"
10530     lt_cv_dlopen_libs=
10531     lt_cv_dlopen_self=yes
10532    
10533     fi
10534    
10535 michael 945 ;;
10536 michael 912
10537     *)
10538 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10539     if test "x$ac_cv_func_shl_load" = x""yes; then :
10540 michael 912 lt_cv_dlopen="shl_load"
10541     else
10542 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10543 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10544 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10545 db 941 $as_echo_n "(cached) " >&6
10546 michael 912 else
10547     ac_check_lib_save_LIBS=$LIBS
10548     LIBS="-ldld $LIBS"
10549 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 michael 912 /* end confdefs.h. */
10551    
10552     /* Override any GCC internal prototype to avoid an error.
10553     Use char because int might match the return type of a GCC
10554     builtin and then its argument prototype would still apply. */
10555     #ifdef __cplusplus
10556     extern "C"
10557     #endif
10558     char shl_load ();
10559     int
10560     main ()
10561     {
10562     return shl_load ();
10563     ;
10564     return 0;
10565     }
10566     _ACEOF
10567 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10568 michael 912 ac_cv_lib_dld_shl_load=yes
10569     else
10570 michael 967 ac_cv_lib_dld_shl_load=no
10571 michael 912 fi
10572 michael 967 rm -f core conftest.err conftest.$ac_objext \
10573     conftest$ac_exeext conftest.$ac_ext
10574 michael 912 LIBS=$ac_check_lib_save_LIBS
10575     fi
10576 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10577 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10578 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10579 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10580 michael 912 else
10581 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10582     if test "x$ac_cv_func_dlopen" = x""yes; then :
10583 michael 912 lt_cv_dlopen="dlopen"
10584     else
10585 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10586 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10587 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10588 db 941 $as_echo_n "(cached) " >&6
10589 michael 912 else
10590     ac_check_lib_save_LIBS=$LIBS
10591     LIBS="-ldl $LIBS"
10592 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 michael 912 /* end confdefs.h. */
10594    
10595     /* Override any GCC internal prototype to avoid an error.
10596     Use char because int might match the return type of a GCC
10597     builtin and then its argument prototype would still apply. */
10598     #ifdef __cplusplus
10599     extern "C"
10600     #endif
10601     char dlopen ();
10602     int
10603     main ()
10604     {
10605     return dlopen ();
10606     ;
10607     return 0;
10608     }
10609     _ACEOF
10610 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10611 michael 912 ac_cv_lib_dl_dlopen=yes
10612     else
10613 michael 967 ac_cv_lib_dl_dlopen=no
10614 michael 912 fi
10615 michael 967 rm -f core conftest.err conftest.$ac_objext \
10616     conftest$ac_exeext conftest.$ac_ext
10617 michael 912 LIBS=$ac_check_lib_save_LIBS
10618     fi
10619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10620 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10621 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10622 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10623     else
10624 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10625 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10626 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10627 db 941 $as_echo_n "(cached) " >&6
10628 michael 912 else
10629     ac_check_lib_save_LIBS=$LIBS
10630     LIBS="-lsvld $LIBS"
10631 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 michael 912 /* end confdefs.h. */
10633    
10634     /* Override any GCC internal prototype to avoid an error.
10635     Use char because int might match the return type of a GCC
10636     builtin and then its argument prototype would still apply. */
10637     #ifdef __cplusplus
10638     extern "C"
10639     #endif
10640     char dlopen ();
10641     int
10642     main ()
10643     {
10644     return dlopen ();
10645     ;
10646     return 0;
10647     }
10648     _ACEOF
10649 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10650 michael 912 ac_cv_lib_svld_dlopen=yes
10651     else
10652 michael 967 ac_cv_lib_svld_dlopen=no
10653 michael 912 fi
10654 michael 967 rm -f core conftest.err conftest.$ac_objext \
10655     conftest$ac_exeext conftest.$ac_ext
10656 michael 912 LIBS=$ac_check_lib_save_LIBS
10657     fi
10658 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10659 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10660 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10661 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10662     else
10663 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10664 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10665 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10666 db 941 $as_echo_n "(cached) " >&6
10667 michael 912 else
10668     ac_check_lib_save_LIBS=$LIBS
10669     LIBS="-ldld $LIBS"
10670 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 michael 912 /* end confdefs.h. */
10672    
10673     /* Override any GCC internal prototype to avoid an error.
10674     Use char because int might match the return type of a GCC
10675     builtin and then its argument prototype would still apply. */
10676     #ifdef __cplusplus
10677     extern "C"
10678     #endif
10679     char dld_link ();
10680     int
10681     main ()
10682     {
10683     return dld_link ();
10684     ;
10685     return 0;
10686     }
10687     _ACEOF
10688 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10689 michael 912 ac_cv_lib_dld_dld_link=yes
10690     else
10691 michael 967 ac_cv_lib_dld_dld_link=no
10692 michael 912 fi
10693 michael 967 rm -f core conftest.err conftest.$ac_objext \
10694     conftest$ac_exeext conftest.$ac_ext
10695 michael 912 LIBS=$ac_check_lib_save_LIBS
10696     fi
10697 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10698 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10699 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10700 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10701 michael 912 fi
10702    
10703    
10704     fi
10705    
10706    
10707     fi
10708    
10709    
10710     fi
10711    
10712    
10713     fi
10714    
10715    
10716     fi
10717    
10718     ;;
10719     esac
10720    
10721     if test "x$lt_cv_dlopen" != xno; then
10722     enable_dlopen=yes
10723     else
10724     enable_dlopen=no
10725     fi
10726    
10727     case $lt_cv_dlopen in
10728     dlopen)
10729     save_CPPFLAGS="$CPPFLAGS"
10730     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10731    
10732     save_LDFLAGS="$LDFLAGS"
10733     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10734    
10735     save_LIBS="$LIBS"
10736     LIBS="$lt_cv_dlopen_libs $LIBS"
10737    
10738 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10739 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10740 michael 967 if test "${lt_cv_dlopen_self+set}" = set; then :
10741 db 941 $as_echo_n "(cached) " >&6
10742 michael 912 else
10743     if test "$cross_compiling" = yes; then :
10744     lt_cv_dlopen_self=cross
10745     else
10746     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747     lt_status=$lt_dlunknown
10748 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10749 michael 1010 #line 10749 "configure"
10750 michael 912 #include "confdefs.h"
10751    
10752     #if HAVE_DLFCN_H
10753     #include <dlfcn.h>
10754     #endif
10755    
10756     #include <stdio.h>
10757    
10758     #ifdef RTLD_GLOBAL
10759     # define LT_DLGLOBAL RTLD_GLOBAL
10760     #else
10761     # ifdef DL_GLOBAL
10762     # define LT_DLGLOBAL DL_GLOBAL
10763     # else
10764     # define LT_DLGLOBAL 0
10765     # endif
10766     #endif
10767    
10768     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10769     find out it does not work in some platform. */
10770     #ifndef LT_DLLAZY_OR_NOW
10771     # ifdef RTLD_LAZY
10772     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10773     # else
10774     # ifdef DL_LAZY
10775     # define LT_DLLAZY_OR_NOW DL_LAZY
10776     # else
10777     # ifdef RTLD_NOW
10778     # define LT_DLLAZY_OR_NOW RTLD_NOW
10779     # else
10780     # ifdef DL_NOW
10781     # define LT_DLLAZY_OR_NOW DL_NOW
10782     # else
10783     # define LT_DLLAZY_OR_NOW 0
10784     # endif
10785     # endif
10786     # endif
10787     # endif
10788     #endif
10789    
10790     void fnord() { int i=42;}
10791     int main ()
10792     {
10793     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10794     int status = $lt_dlunknown;
10795    
10796     if (self)
10797     {
10798     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10799     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10800     /* dlclose (self); */
10801     }
10802     else
10803     puts (dlerror ());
10804    
10805 michael 945 return status;
10806 michael 912 }
10807 michael 945 _LT_EOF
10808 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10809 michael 912 (eval $ac_link) 2>&5
10810     ac_status=$?
10811 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10812     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10813 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10814     lt_status=$?
10815     case x$lt_status in
10816     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10817     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10818     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10819     esac
10820     else :
10821     # compilation failed
10822     lt_cv_dlopen_self=no
10823     fi
10824     fi
10825     rm -fr conftest*
10826    
10827    
10828     fi
10829 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10830 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
10831 michael 912
10832     if test "x$lt_cv_dlopen_self" = xyes; then
10833     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10834 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10835 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10836 michael 967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10837 db 941 $as_echo_n "(cached) " >&6
10838 michael 912 else
10839     if test "$cross_compiling" = yes; then :
10840     lt_cv_dlopen_self_static=cross
10841     else
10842     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10843     lt_status=$lt_dlunknown
10844 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10845 michael 1010 #line 10845 "configure"
10846 michael 912 #include "confdefs.h"
10847    
10848     #if HAVE_DLFCN_H
10849     #include <dlfcn.h>
10850     #endif
10851    
10852     #include <stdio.h>
10853    
10854     #ifdef RTLD_GLOBAL
10855     # define LT_DLGLOBAL RTLD_GLOBAL
10856     #else
10857     # ifdef DL_GLOBAL
10858     # define LT_DLGLOBAL DL_GLOBAL
10859     # else
10860     # define LT_DLGLOBAL 0
10861     # endif
10862     #endif
10863    
10864     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10865     find out it does not work in some platform. */
10866     #ifndef LT_DLLAZY_OR_NOW
10867     # ifdef RTLD_LAZY
10868     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10869     # else
10870     # ifdef DL_LAZY
10871     # define LT_DLLAZY_OR_NOW DL_LAZY
10872     # else
10873     # ifdef RTLD_NOW
10874     # define LT_DLLAZY_OR_NOW RTLD_NOW
10875     # else
10876     # ifdef DL_NOW
10877     # define LT_DLLAZY_OR_NOW DL_NOW
10878     # else
10879     # define LT_DLLAZY_OR_NOW 0
10880     # endif
10881     # endif
10882     # endif
10883     # endif
10884     #endif
10885    
10886     void fnord() { int i=42;}
10887     int main ()
10888     {
10889     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10890     int status = $lt_dlunknown;
10891    
10892     if (self)
10893     {
10894     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10895     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10896     /* dlclose (self); */
10897     }
10898     else
10899     puts (dlerror ());
10900    
10901 michael 945 return status;
10902 michael 912 }
10903 michael 945 _LT_EOF
10904 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10905 michael 912 (eval $ac_link) 2>&5
10906     ac_status=$?
10907 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10908     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10909 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10910     lt_status=$?
10911     case x$lt_status in
10912     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10913     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10914     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10915     esac
10916     else :
10917     # compilation failed
10918     lt_cv_dlopen_self_static=no
10919     fi
10920     fi
10921     rm -fr conftest*
10922    
10923    
10924     fi
10925 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10926 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10927 michael 912 fi
10928    
10929     CPPFLAGS="$save_CPPFLAGS"
10930     LDFLAGS="$save_LDFLAGS"
10931     LIBS="$save_LIBS"
10932     ;;
10933     esac
10934    
10935     case $lt_cv_dlopen_self in
10936     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10937     *) enable_dlopen_self=unknown ;;
10938     esac
10939    
10940     case $lt_cv_dlopen_self_static in
10941     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10942     *) enable_dlopen_self_static=unknown ;;
10943     esac
10944     fi
10945    
10946    
10947    
10948    
10949    
10950    
10951    
10952    
10953    
10954    
10955    
10956    
10957    
10958    
10959    
10960    
10961    
10962 michael 945 striplib=
10963     old_striplib=
10964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10965 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10966     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10967     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10968     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10969 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10970 michael 945 $as_echo "yes" >&6; }
10971     else
10972     # FIXME - insert some real tests, host_os isn't really good enough
10973     case $host_os in
10974     darwin*)
10975     if test -n "$STRIP" ; then
10976     striplib="$STRIP -x"
10977     old_striplib="$STRIP -S"
10978 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10979 michael 945 $as_echo "yes" >&6; }
10980     else
10981 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982 michael 945 $as_echo "no" >&6; }
10983     fi
10984     ;;
10985     *)
10986 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 michael 945 $as_echo "no" >&6; }
10988     ;;
10989     esac
10990     fi
10991 michael 912
10992    
10993    
10994    
10995    
10996    
10997    
10998    
10999    
11000    
11001    
11002    
11003 michael 945 # Report which library types will actually be built
11004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11005 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11007 michael 945 $as_echo "$can_build_shared" >&6; }
11008 michael 912
11009 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11010 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11011     test "$can_build_shared" = "no" && enable_shared=no
11012 michael 912
11013 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11014     # are all built from PIC.
11015 michael 912 case $host_os in
11016     aix3*)
11017 michael 945 test "$enable_shared" = yes && enable_static=no
11018     if test -n "$RANLIB"; then
11019     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11020     postinstall_cmds='$RANLIB $lib'
11021     fi
11022     ;;
11023 michael 912
11024 michael 945 aix[4-9]*)
11025     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11026     test "$enable_shared" = yes && enable_static=no
11027     fi
11028 michael 912 ;;
11029     esac
11030 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11031 michael 945 $as_echo "$enable_shared" >&6; }
11032 michael 912
11033 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11034 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11035     # Make sure either enable_shared or enable_static is yes.
11036     test "$enable_shared" = yes || enable_static=yes
11037 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11038 michael 945 $as_echo "$enable_static" >&6; }
11039 michael 912
11040    
11041    
11042    
11043 michael 945 fi
11044 michael 912 ac_ext=c
11045     ac_cpp='$CPP $CPPFLAGS'
11046     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11047     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11048     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11049    
11050     CC="$lt_save_CC"
11051    
11052    
11053    
11054    
11055    
11056    
11057    
11058    
11059    
11060    
11061    
11062    
11063    
11064 michael 945 ac_config_commands="$ac_config_commands libtool"
11065 michael 912
11066    
11067    
11068    
11069 michael 945 # Only expand once:
11070 michael 912
11071    
11072 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11073 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11074 michael 967 if test "${libltdl_cv_shlibext+set}" = set; then :
11075 michael 945 $as_echo_n "(cached) " >&6
11076 michael 912 else
11077    
11078 michael 945 module=yes
11079     eval libltdl_cv_shlibext=$shrext_cmds
11080 michael 912
11081     fi
11082 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11083 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11084     if test -n "$libltdl_cv_shlibext"; then
11085 michael 912
11086 michael 945 cat >>confdefs.h <<_ACEOF
11087     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11088     _ACEOF
11089 michael 912
11090     fi
11091    
11092 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11093 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11094 michael 967 if test "${lt_cv_module_path_var+set}" = set; then :
11095 db 941 $as_echo_n "(cached) " >&6
11096 michael 912 else
11097 michael 945 lt_cv_module_path_var="$shlibpath_var"
11098 michael 912 fi
11099 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11100 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11101     if test -n "$lt_cv_module_path_var"; then
11102    
11103     cat >>confdefs.h <<_ACEOF
11104     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11105     _ACEOF
11106    
11107 michael 912 fi
11108    
11109 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11110 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
11111 michael 967 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11112 db 941 $as_echo_n "(cached) " >&6
11113 michael 912 else
11114 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11115 michael 912 fi
11116 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11117 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11118     if test -n "$lt_cv_sys_dlsearch_path"; then
11119     sys_dlsearch_path=
11120     for dir in $lt_cv_sys_dlsearch_path; do
11121     if test -z "$sys_dlsearch_path"; then
11122     sys_dlsearch_path="$dir"
11123 michael 912 else
11124 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11125 michael 912 fi
11126 michael 945 done
11127 michael 912
11128 michael 945 cat >>confdefs.h <<_ACEOF
11129     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11130     _ACEOF
11131 michael 912
11132     fi
11133    
11134    
11135 michael 945 LT_DLLOADERS=
11136 michael 912
11137    
11138 michael 945 ac_ext=c
11139     ac_cpp='$CPP $CPPFLAGS'
11140     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11143 michael 912
11144    
11145 michael 945 LIBADD_DLOPEN=
11146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11147 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
11148 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11149 michael 945 $as_echo_n "(cached) " >&6
11150     else
11151     ac_func_search_save_LIBS=$LIBS
11152 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 michael 912 /* end confdefs.h. */
11154    
11155 michael 945 /* Override any GCC internal prototype to avoid an error.
11156     Use char because int might match the return type of a GCC
11157     builtin and then its argument prototype would still apply. */
11158     #ifdef __cplusplus
11159     extern "C"
11160     #endif
11161     char dlopen ();
11162 michael 912 int
11163     main ()
11164     {
11165 michael 945 return dlopen ();
11166 michael 912 ;
11167     return 0;
11168     }
11169     _ACEOF
11170 michael 945 for ac_lib in '' dl; do
11171     if test -z "$ac_lib"; then
11172     ac_res="none required"
11173     else
11174     ac_res=-l$ac_lib
11175     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11176     fi
11177 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11178 michael 945 ac_cv_search_dlopen=$ac_res
11179 michael 912 fi
11180 michael 967 rm -f core conftest.err conftest.$ac_objext \
11181     conftest$ac_exeext
11182     if test "${ac_cv_search_dlopen+set}" = set; then :
11183 michael 945 break
11184     fi
11185     done
11186 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11187    
11188 michael 945 else
11189     ac_cv_search_dlopen=no
11190     fi
11191     rm conftest.$ac_ext
11192     LIBS=$ac_func_search_save_LIBS
11193     fi
11194 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11195 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
11196     ac_res=$ac_cv_search_dlopen
11197 michael 967 if test "$ac_res" != no; then :
11198 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11199 michael 912
11200 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11201 michael 912
11202 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
11203     LIBADD_DLOPEN="-ldl"
11204     fi
11205     libltdl_cv_lib_dl_dlopen="yes"
11206     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11207     else
11208 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 michael 912 /* end confdefs.h. */
11210 michael 945 #if HAVE_DLFCN_H
11211     # include <dlfcn.h>
11212     #endif
11213 michael 912
11214     int
11215     main ()
11216     {
11217 michael 945 dlopen(0, 0);
11218 michael 912 ;
11219     return 0;
11220     }
11221     _ACEOF
11222 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11223 michael 912
11224 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11225 michael 945
11226     libltdl_cv_func_dlopen="yes"
11227     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11228 michael 912 else
11229 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11230 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11231 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11232 michael 945 $as_echo_n "(cached) " >&6
11233     else
11234     ac_check_lib_save_LIBS=$LIBS
11235     LIBS="-lsvld $LIBS"
11236 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 michael 945 /* end confdefs.h. */
11238 michael 912
11239 michael 945 /* Override any GCC internal prototype to avoid an error.
11240     Use char because int might match the return type of a GCC
11241     builtin and then its argument prototype would still apply. */
11242     #ifdef __cplusplus
11243     extern "C"
11244     #endif
11245     char dlopen ();
11246     int
11247     main ()
11248     {
11249     return dlopen ();
11250     ;
11251     return 0;
11252     }
11253     _ACEOF
11254 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11255 michael 945 ac_cv_lib_svld_dlopen=yes
11256 michael 912 else
11257 michael 967 ac_cv_lib_svld_dlopen=no
11258 db 941 fi
11259 michael 967 rm -f core conftest.err conftest.$ac_objext \
11260     conftest$ac_exeext conftest.$ac_ext
11261 michael 945 LIBS=$ac_check_lib_save_LIBS
11262 michael 912 fi
11263 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11264 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11265 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11266 michael 912
11267 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11268 michael 912
11269 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11270     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11271 michael 912 fi
11272    
11273     fi
11274 michael 967 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276 michael 912 fi
11277    
11278 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11279     then
11280     lt_save_LIBS="$LIBS"
11281     LIBS="$LIBS $LIBADD_DLOPEN"
11282 michael 967 for ac_func in dlerror
11283     do :
11284     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11285     if test "x$ac_cv_func_dlerror" = x""yes; then :
11286 michael 945 cat >>confdefs.h <<_ACEOF
11287 michael 967 #define HAVE_DLERROR 1
11288 michael 945 _ACEOF
11289 michael 912
11290     fi
11291 michael 945 done
11292 michael 912
11293 michael 945 LIBS="$lt_save_LIBS"
11294 michael 912 fi
11295    
11296    
11297 michael 945 LIBADD_SHL_LOAD=
11298 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11299     if test "x$ac_cv_func_shl_load" = x""yes; then :
11300 michael 912
11301 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11302 michael 912
11303 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11304 michael 912 else
11305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11306 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11307 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11308 db 941 $as_echo_n "(cached) " >&6
11309 michael 912 else
11310 michael 945 ac_check_lib_save_LIBS=$LIBS
11311     LIBS="-ldld $LIBS"
11312 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 michael 945 /* end confdefs.h. */
11314 michael 912
11315 michael 945 /* Override any GCC internal prototype to avoid an error.
11316     Use char because int might match the return type of a GCC
11317     builtin and then its argument prototype would still apply. */
11318     #ifdef __cplusplus
11319     extern "C"
11320     #endif
11321     char shl_load ();
11322     int
11323     main ()
11324     {
11325     return shl_load ();
11326     ;
11327     return 0;
11328     }
11329 michael 912 _ACEOF
11330 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11331 michael 945 ac_cv_lib_dld_shl_load=yes
11332 michael 912 else
11333 michael 967 ac_cv_lib_dld_shl_load=no
11334 michael 912 fi
11335 michael 967 rm -f core conftest.err conftest.$ac_objext \
11336     conftest$ac_exeext conftest.$ac_ext
11337 michael 945 LIBS=$ac_check_lib_save_LIBS
11338     fi
11339 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11340 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11341 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11342 michael 912
11343 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11344 michael 912
11345 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11346     LIBADD_SHL_LOAD="-ldld"
11347     fi
11348    
11349     fi
11350    
11351    
11352    
11353     case $host_os in
11354     darwin[1567].*)
11355     # We only want this for pre-Mac OS X 10.4.
11356 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11357     if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11358 michael 945
11359 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11360 michael 945
11361     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11362     fi
11363 michael 912
11364 michael 945 ;;
11365     beos*)
11366     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11367     ;;
11368     cygwin* | mingw* | os2* | pw32*)
11369 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11370     "
11371     if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11372     ac_have_decl=1
11373 michael 945 else
11374 michael 967 ac_have_decl=0
11375 michael 945 fi
11376 michael 912
11377 michael 945 cat >>confdefs.h <<_ACEOF
11378 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11379 michael 945 _ACEOF
11380 michael 912
11381 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11382     ;;
11383     esac
11384 michael 912
11385 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11386 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11387 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11388 michael 945 $as_echo_n "(cached) " >&6
11389     else
11390     ac_check_lib_save_LIBS=$LIBS
11391     LIBS="-ldld $LIBS"
11392 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 michael 945 /* end confdefs.h. */
11394 michael 912
11395 michael 945 /* Override any GCC internal prototype to avoid an error.
11396     Use char because int might match the return type of a GCC
11397     builtin and then its argument prototype would still apply. */
11398     #ifdef __cplusplus
11399     extern "C"
11400     #endif
11401     char dld_link ();
11402     int
11403     main ()
11404     {
11405     return dld_link ();
11406     ;
11407     return 0;
11408     }
11409     _ACEOF
11410 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11411 michael 945 ac_cv_lib_dld_dld_link=yes
11412     else
11413 michael 967 ac_cv_lib_dld_dld_link=no
11414 michael 945 fi
11415 michael 967 rm -f core conftest.err conftest.$ac_objext \
11416     conftest$ac_exeext conftest.$ac_ext
11417 michael 945 LIBS=$ac_check_lib_save_LIBS
11418     fi
11419 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11420 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11421 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11422 michael 912
11423 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11424 michael 912
11425 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11426     fi
11427 michael 912
11428    
11429    
11430    
11431 michael 945 LT_DLPREOPEN=
11432     if test -n "$LT_DLLOADERS"
11433     then
11434     for lt_loader in $LT_DLLOADERS; do
11435     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11436     done
11437 michael 912
11438 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11439 michael 912
11440 michael 945 fi
11441 michael 912
11442    
11443 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11444 michael 912
11445    
11446 michael 945 ac_ext=c
11447     ac_cpp='$CPP $CPPFLAGS'
11448     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11451 michael 912
11452    
11453 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11454 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11455 michael 967 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11456 michael 945 $as_echo_n "(cached) " >&6
11457     else
11458     lt_cv_sys_symbol_underscore=no
11459     cat > conftest.$ac_ext <<_LT_EOF
11460     void nm_test_func(){}
11461     int main(){nm_test_func;return 0;}
11462     _LT_EOF
11463 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11464 michael 912 (eval $ac_compile) 2>&5
11465     ac_status=$?
11466 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11467     test $ac_status = 0; }; then
11468 michael 945 # Now try to grab the symbols.
11469     ac_nlist=conftest.nm
11470 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11471 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11472 michael 912 ac_status=$?
11473 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474     test $ac_status = 0; } && test -s "$ac_nlist"; then
11475 michael 945 # See whether the symbols have a leading underscore.
11476     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11477     lt_cv_sys_symbol_underscore=yes
11478     else
11479     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11480     :
11481 michael 912 else
11482 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11483 michael 912 fi
11484     fi
11485 michael 945 else
11486     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11487     fi
11488     else
11489     echo "configure: failed program was:" >&5
11490     cat conftest.c >&5
11491 michael 912 fi
11492 michael 945 rm -rf conftest*
11493 michael 912
11494 michael 945 fi
11495 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11496 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11497     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11498 michael 912
11499    
11500 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11501     if test x"$libltdl_cv_func_dlopen" = xyes ||
11502     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11503 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11504 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11505 michael 967 if test "${libltdl_cv_need_uscore+set}" = set; then :
11506 michael 945 $as_echo_n "(cached) " >&6
11507     else
11508     libltdl_cv_need_uscore=unknown
11509     save_LIBS="$LIBS"
11510     LIBS="$LIBS $LIBADD_DLOPEN"
11511     if test "$cross_compiling" = yes; then :
11512     libltdl_cv_need_uscore=cross
11513     else
11514     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11515     lt_status=$lt_dlunknown
11516     cat > conftest.$ac_ext <<_LT_EOF
11517 michael 1010 #line 11517 "configure"
11518 michael 945 #include "confdefs.h"
11519 michael 912
11520 michael 945 #if HAVE_DLFCN_H
11521     #include <dlfcn.h>
11522     #endif
11523 michael 912
11524 michael 945 #include <stdio.h>
11525 michael 912
11526 michael 945 #ifdef RTLD_GLOBAL
11527     # define LT_DLGLOBAL RTLD_GLOBAL
11528     #else
11529     # ifdef DL_GLOBAL
11530     # define LT_DLGLOBAL DL_GLOBAL
11531     # else
11532     # define LT_DLGLOBAL 0
11533     # endif
11534     #endif
11535    
11536     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11537     find out it does not work in some platform. */
11538     #ifndef LT_DLLAZY_OR_NOW
11539     # ifdef RTLD_LAZY
11540     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11541     # else
11542     # ifdef DL_LAZY
11543     # define LT_DLLAZY_OR_NOW DL_LAZY
11544     # else
11545     # ifdef RTLD_NOW
11546     # define LT_DLLAZY_OR_NOW RTLD_NOW
11547     # else
11548     # ifdef DL_NOW
11549     # define LT_DLLAZY_OR_NOW DL_NOW
11550     # else
11551     # define LT_DLLAZY_OR_NOW 0
11552     # endif
11553     # endif
11554     # endif
11555     # endif
11556     #endif
11557    
11558     void fnord() { int i=42;}
11559     int main ()
11560     {
11561     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11562     int status = $lt_dlunknown;
11563    
11564     if (self)
11565     {
11566     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11567     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11568     /* dlclose (self); */
11569     }
11570 michael 912 else
11571 michael 945 puts (dlerror ());
11572    
11573     return status;
11574     }
11575     _LT_EOF
11576 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577 michael 945 (eval $ac_link) 2>&5
11578     ac_status=$?
11579 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581 michael 945 (./conftest; exit; ) >&5 2>/dev/null
11582     lt_status=$?
11583     case x$lt_status in
11584     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11585     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11586     x$lt_dlunknown|x*) ;;
11587 michael 912 esac
11588 michael 945 else :
11589     # compilation failed
11590    
11591 michael 912 fi
11592 michael 945 fi
11593     rm -fr conftest*
11594 michael 912
11595 michael 945 LIBS="$save_LIBS"
11596 michael 912
11597 michael 945 fi
11598 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11599 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
11600     fi
11601     fi
11602 michael 912
11603 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
11604 michael 912
11605 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11606 michael 912
11607 michael 945 fi
11608 michael 912
11609 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11610 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11611 michael 967 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11612 michael 945 $as_echo_n "(cached) " >&6
11613     else
11614     # PORTME does your system automatically load deplibs for dlopen?
11615     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11616     # For now, we just catch OSes we know something about -- in the
11617     # future, we'll try test this programmatically.
11618     lt_cv_sys_dlopen_deplibs=unknown
11619     case $host_os in
11620     aix3*|aix4.1.*|aix4.2.*)
11621     # Unknown whether this is true for these versions of AIX, but
11622     # we want this `case' here to explicitly catch those versions.
11623     lt_cv_sys_dlopen_deplibs=unknown
11624     ;;
11625     aix[4-9]*)
11626     lt_cv_sys_dlopen_deplibs=yes
11627     ;;
11628     amigaos*)
11629     case $host_cpu in
11630     powerpc)
11631     lt_cv_sys_dlopen_deplibs=no
11632 michael 912 ;;
11633     esac
11634     ;;
11635 michael 945 darwin*)
11636     # Assuming the user has installed a libdl from somewhere, this is true
11637     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11638     lt_cv_sys_dlopen_deplibs=yes
11639 michael 912 ;;
11640 michael 945 freebsd* | dragonfly*)
11641     lt_cv_sys_dlopen_deplibs=yes
11642 michael 912 ;;
11643 michael 945 gnu* | linux* | k*bsd*-gnu)
11644     # GNU and its variants, using gnu ld.so (Glibc)
11645     lt_cv_sys_dlopen_deplibs=yes
11646 michael 912 ;;
11647 michael 945 hpux10*|hpux11*)
11648     lt_cv_sys_dlopen_deplibs=yes
11649 michael 912 ;;
11650 michael 945 interix*)
11651     lt_cv_sys_dlopen_deplibs=yes
11652 michael 912 ;;
11653 michael 945 irix[12345]*|irix6.[01]*)
11654     # Catch all versions of IRIX before 6.2, and indicate that we don't
11655     # know how it worked for any of those versions.
11656     lt_cv_sys_dlopen_deplibs=unknown
11657 michael 912 ;;
11658 michael 945 irix*)
11659     # The case above catches anything before 6.2, and it's known that
11660     # at 6.2 and later dlopen does load deplibs.
11661     lt_cv_sys_dlopen_deplibs=yes
11662 michael 912 ;;
11663 michael 945 netbsd*)
11664     lt_cv_sys_dlopen_deplibs=yes
11665 michael 912 ;;
11666 michael 945 openbsd*)
11667     lt_cv_sys_dlopen_deplibs=yes
11668 michael 912 ;;
11669 michael 945 osf[1234]*)
11670     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11671     # it did *not* use an RPATH in a shared library to find objects the
11672     # library depends on, so we explicitly say `no'.
11673     lt_cv_sys_dlopen_deplibs=no
11674     ;;
11675     osf5.0|osf5.0a|osf5.1)
11676     # dlopen *does* load deplibs and with the right loader patch applied
11677     # it even uses RPATH in a shared library to search for shared objects
11678     # that the library depends on, but there's no easy way to know if that
11679     # patch is installed. Since this is the case, all we can really
11680     # say is unknown -- it depends on the patch being installed. If
11681     # it is, this changes to `yes'. Without it, it would be `no'.
11682     lt_cv_sys_dlopen_deplibs=unknown
11683     ;;
11684     osf*)
11685     # the two cases above should catch all versions of osf <= 5.1. Read
11686     # the comments above for what we know about them.
11687     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11688     # is used to find them so we can finally say `yes'.
11689     lt_cv_sys_dlopen_deplibs=yes
11690     ;;
11691     qnx*)
11692     lt_cv_sys_dlopen_deplibs=yes
11693     ;;
11694     solaris*)
11695     lt_cv_sys_dlopen_deplibs=yes
11696     ;;
11697     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11698     libltdl_cv_sys_dlopen_deplibs=yes
11699     ;;
11700 michael 912 esac
11701    
11702 michael 945 fi
11703 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11704 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11705     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11706 michael 912
11707 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11708 michael 912
11709 michael 945 fi
11710 michael 912
11711 michael 945 :
11712 michael 912
11713 michael 945 for ac_header in argz.h
11714 michael 967 do :
11715     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11716     "
11717     if test "x$ac_cv_header_argz_h" = x""yes; then :
11718 michael 945 cat >>confdefs.h <<_ACEOF
11719 michael 967 #define HAVE_ARGZ_H 1
11720 michael 945 _ACEOF
11721 michael 912
11722     fi
11723    
11724 michael 945 done
11725 michael 912
11726    
11727 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11728 michael 945 # include <argz.h>
11729     #endif
11730 michael 967 "
11731     if test "x$ac_cv_type_error_t" = x""yes; then :
11732 michael 912
11733 michael 945 cat >>confdefs.h <<_ACEOF
11734     #define HAVE_ERROR_T 1
11735     _ACEOF
11736 michael 912
11737    
11738 michael 945 else
11739 michael 912
11740 michael 967 $as_echo "#define error_t int" >>confdefs.h
11741 michael 912
11742    
11743 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
11744 michael 912
11745 michael 945 fi
11746 michael 912
11747    
11748 michael 945 ARGZ_H=
11749     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11750     argz_next argz_stringify
11751 michael 967 do :
11752     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11754     eval as_val=\$$as_ac_var
11755     if test "x$as_val" = x""yes; then :
11756 michael 945 cat >>confdefs.h <<_ACEOF
11757     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11758     _ACEOF
11759 michael 912
11760 michael 945 else
11761     ARGZ_H=argz.h;
11762 michael 912
11763 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11764 michael 912
11765 michael 945 fi
11766     done
11767 michael 912
11768    
11769 michael 967 if test -z "$ARGZ_H"; then :
11770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11771 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
11772 michael 967 if test "${lt_cv_sys_argz_works+set}" = set; then :
11773 michael 945 $as_echo_n "(cached) " >&6
11774 michael 912 else
11775 michael 945 case $host_os in #(
11776     *cygwin*)
11777     lt_cv_sys_argz_works=no
11778     if test "$cross_compiling" != no; then
11779     lt_cv_sys_argz_works="guessing no"
11780     else
11781     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11782     save_IFS=$IFS
11783     IFS=-.
11784     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11785     IFS=$save_IFS
11786     lt_os_major=${2-0}
11787     lt_os_minor=${3-0}
11788     lt_os_micro=${4-0}
11789     if test "$lt_os_major" -gt 1 \
11790     || { test "$lt_os_major" -eq 1 \
11791     && { test "$lt_os_minor" -gt 5 \
11792     || { test "$lt_os_minor" -eq 5 \
11793     && test "$lt_os_micro" -gt 24; }; }; }; then
11794     lt_cv_sys_argz_works=yes
11795     fi
11796     fi
11797     ;; #(
11798     *) lt_cv_sys_argz_works=yes ;;
11799     esac
11800 michael 912 fi
11801 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11802 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
11803 michael 967 if test $lt_cv_sys_argz_works = yes; then :
11804 michael 912
11805 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11806 michael 912
11807 michael 945 else
11808     ARGZ_H=argz.h
11809 michael 912
11810    
11811 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11812 michael 912
11813 michael 945 fi
11814     fi
11815 michael 912
11816    
11817    
11818 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11819 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11820 michael 967 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11821 db 941 $as_echo_n "(cached) " >&6
11822 michael 912 else
11823 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11824     libltdl_cv_preloaded_symbols=yes
11825     else
11826     libltdl_cv_preloaded_symbols=no
11827     fi
11828 michael 912
11829     fi
11830 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11831 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11832     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11833 michael 912
11834 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11835 michael 912
11836     fi
11837    
11838    
11839    
11840 michael 945 # Set options
11841 michael 912
11842    
11843    
11844    
11845 db 941
11846 michael 912
11847    
11848    
11849    
11850    
11851    
11852    
11853 michael 945 # Check whether --with-included_ltdl was given.
11854 michael 967 if test "${with_included_ltdl+set}" = set; then :
11855 michael 945 withval=$with_included_ltdl;
11856     fi
11857 db 941
11858 michael 912
11859 michael 945 if test "x$with_included_ltdl" != xyes; then
11860     # We are not being forced to use the included libltdl sources, so
11861     # decide whether there is a useful installed version we can use.
11862 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11863 michael 912
11864 michael 967 "
11865     if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11866     ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11867 michael 945 #include <ltdl.h>
11868 michael 967 "
11869     if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11871 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11872 michael 967 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11873 michael 945 $as_echo_n "(cached) " >&6
11874     else
11875     ac_check_lib_save_LIBS=$LIBS
11876     LIBS="-lltdl $LIBS"
11877 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878 michael 912 /* end confdefs.h. */
11879    
11880 michael 945 /* Override any GCC internal prototype to avoid an error.
11881     Use char because int might match the return type of a GCC
11882     builtin and then its argument prototype would still apply. */
11883     #ifdef __cplusplus
11884     extern "C"
11885     #endif
11886     char lt_dladvise_preload ();
11887 michael 912 int
11888     main ()
11889     {
11890 michael 945 return lt_dladvise_preload ();
11891 michael 912 ;
11892     return 0;
11893     }
11894     _ACEOF
11895 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11896 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11897 michael 912 else
11898 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
11899 michael 912 fi
11900 michael 967 rm -f core conftest.err conftest.$ac_objext \
11901     conftest$ac_exeext conftest.$ac_ext
11902 michael 945 LIBS=$ac_check_lib_save_LIBS
11903     fi
11904 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11905 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11906 michael 967 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11907 michael 945 with_included_ltdl=no
11908     else
11909     with_included_ltdl=yes
11910     fi
11911 michael 912
11912 michael 945 else
11913     with_included_ltdl=yes
11914     fi
11915 michael 912
11916 michael 945 else
11917     with_included_ltdl=yes
11918     fi
11919 michael 912
11920    
11921 michael 945 fi
11922 michael 912
11923    
11924    
11925    
11926    
11927    
11928    
11929    
11930    
11931 michael 945 # Check whether --with-ltdl_include was given.
11932 michael 967 if test "${with_ltdl_include+set}" = set; then :
11933 michael 945 withval=$with_ltdl_include;
11934     fi
11935 michael 912
11936    
11937 michael 945 if test -n "$with_ltdl_include"; then
11938     if test -f "$with_ltdl_include/ltdl.h"; then :
11939 michael 912 else
11940 michael 967 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11941 michael 912 fi
11942 michael 945 else
11943     with_ltdl_include=no
11944     fi
11945 michael 912
11946    
11947 michael 945 # Check whether --with-ltdl_lib was given.
11948 michael 967 if test "${with_ltdl_lib+set}" = set; then :
11949 michael 945 withval=$with_ltdl_lib;
11950     fi
11951 michael 912
11952    
11953 michael 945 if test -n "$with_ltdl_lib"; then
11954     if test -f "$with_ltdl_lib/libltdl.la"; then :
11955 michael 912 else
11956 michael 967 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11957 michael 912 fi
11958 michael 945 else
11959     with_ltdl_lib=no
11960     fi
11961 michael 912
11962 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11963     ,yes,no,no,)
11964     case $enable_ltdl_convenience in
11965 michael 967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11966 michael 945 "") enable_ltdl_convenience=yes
11967     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11968     esac
11969     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11970     LTDLDEPS=$LIBLTDL
11971     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11972 michael 912
11973    
11974    
11975    
11976    
11977 michael 945 # For backwards non-gettext consistent compatibility...
11978     INCLTDL="$LTDLINCL"
11979 michael 912
11980    
11981 michael 945 ;;
11982     ,no,no,no,)
11983     # If the included ltdl is not to be used, then use the
11984     # preinstalled libltdl we found.
11985 michael 912
11986 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11987 michael 912
11988 michael 945 LIBLTDL=-lltdl
11989     LTDLDEPS=
11990     LTDLINCL=
11991 michael 912 ;;
11992 michael 945 ,no*,no,*)
11993 michael 967 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11994 michael 912 ;;
11995 michael 945 *) with_included_ltdl=no
11996     LIBLTDL="-L$with_ltdl_lib -lltdl"
11997     LTDLDEPS=
11998     LTDLINCL="-I$with_ltdl_include"
11999     ;;
12000     esac
12001     INCLTDL="$LTDLINCL"
12002 michael 912
12003 michael 945 # Report our decision...
12004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12005 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12007 michael 945 $as_echo "$LTDLINCL" >&6; }
12008 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12009 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12010 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12011 michael 945 $as_echo "$LIBLTDL" >&6; }
12012 michael 912
12013    
12014    
12015 michael 945 # Check whether --enable-ltdl-install was given.
12016 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12017 michael 945 enableval=$enable_ltdl_install;
12018     fi
12019 michael 912
12020    
12021 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12022     *yes*) ;;
12023     *) enable_ltdl_convenience=yes ;;
12024 michael 912 esac
12025    
12026 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12027     INSTALL_LTDL_TRUE=
12028     INSTALL_LTDL_FALSE='#'
12029 db 941 else
12030 michael 945 INSTALL_LTDL_TRUE='#'
12031     INSTALL_LTDL_FALSE=
12032 db 941 fi
12033    
12034 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12035     CONVENIENCE_LTDL_TRUE=
12036     CONVENIENCE_LTDL_FALSE='#'
12037 db 941 else
12038 michael 945 CONVENIENCE_LTDL_TRUE='#'
12039     CONVENIENCE_LTDL_FALSE=
12040 db 941 fi
12041    
12042    
12043 michael 912
12044 michael 945 subdirs="$subdirs libltdl"
12045 michael 912
12046    
12047    
12048    
12049    
12050 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12051     # the user used. This is so that ltdl.h can pick up the parent projects
12052     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12053     # definitions required by ltdl.c.
12054     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12055 michael 912
12056    
12057    
12058 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12059 michael 967 do :
12060     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12061     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12062     "
12063     eval as_val=\$$as_ac_Header
12064     if test "x$as_val" = x""yes; then :
12065 michael 945 cat >>confdefs.h <<_ACEOF
12066     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12067     _ACEOF
12068 michael 912
12069 michael 945 fi
12070 michael 912
12071 michael 945 done
12072 michael 912
12073    
12074 michael 945 for ac_func in closedir opendir readdir
12075 michael 967 do :
12076     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12077     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12078     eval as_val=\$$as_ac_var
12079     if test "x$as_val" = x""yes; then :
12080 michael 945 cat >>confdefs.h <<_ACEOF
12081     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12082     _ACEOF
12083 michael 912
12084 michael 945 else
12085 michael 912
12086    
12087 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12088 michael 912
12089     fi
12090     done
12091    
12092 michael 945 for ac_func in strlcat strlcpy
12093 michael 967 do :
12094     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12095     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12096     eval as_val=\$$as_ac_var
12097     if test "x$as_val" = x""yes; then :
12098 michael 945 cat >>confdefs.h <<_ACEOF
12099     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12100     _ACEOF
12101 michael 912
12102     else
12103    
12104    
12105 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12106 michael 912
12107     fi
12108 michael 945 done
12109 michael 912
12110    
12111    
12112 michael 945 cat >>confdefs.h <<_ACEOF
12113     #define LT_LIBEXT "$libext"
12114     _ACEOF
12115 michael 912
12116    
12117 michael 945 name=ltdl
12118     LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12119 michael 912
12120    
12121    
12122    
12123    
12124    
12125    
12126    
12127 michael 945 # Only expand once:
12128 michael 912
12129    
12130     LIBTOOL="$LIBTOOL --silent"
12131    
12132     # Checks for libraries.
12133    
12134 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12135 db 941 $as_echo_n "checking for library containing socket... " >&6; }
12136 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12137 db 941 $as_echo_n "(cached) " >&6
12138 michael 912 else
12139     ac_func_search_save_LIBS=$LIBS
12140 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 michael 912 /* end confdefs.h. */
12142    
12143     /* Override any GCC internal prototype to avoid an error.
12144     Use char because int might match the return type of a GCC
12145     builtin and then its argument prototype would still apply. */
12146     #ifdef __cplusplus
12147     extern "C"
12148     #endif
12149     char socket ();
12150     int
12151     main ()
12152     {
12153     return socket ();
12154     ;
12155     return 0;
12156     }
12157     _ACEOF
12158     for ac_lib in '' socket; do
12159     if test -z "$ac_lib"; then
12160     ac_res="none required"
12161     else
12162     ac_res=-l$ac_lib
12163     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12164     fi
12165 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12166 michael 912 ac_cv_search_socket=$ac_res
12167     fi
12168 michael 967 rm -f core conftest.err conftest.$ac_objext \
12169     conftest$ac_exeext
12170     if test "${ac_cv_search_socket+set}" = set; then :
12171 michael 912 break
12172     fi
12173     done
12174 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12175    
12176 michael 912 else
12177     ac_cv_search_socket=no
12178     fi
12179     rm conftest.$ac_ext
12180     LIBS=$ac_func_search_save_LIBS
12181     fi
12182 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12183 db 941 $as_echo "$ac_cv_search_socket" >&6; }
12184 michael 912 ac_res=$ac_cv_search_socket
12185 michael 967 if test "$ac_res" != no; then :
12186 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12187    
12188     else
12189 michael 967 as_fn_error "socket library not found" "$LINENO" 5
12190 michael 912 fi
12191    
12192 michael 967 for ac_func in inet_aton inet_ntop inet_pton
12193     do :
12194     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12195     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12196     eval as_val=\$$as_ac_var
12197     if test "x$as_val" = x""yes; then :
12198 michael 912 cat >>confdefs.h <<_ACEOF
12199 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200 michael 912 _ACEOF
12201    
12202     fi
12203     done
12204    
12205 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12206 db 941 #include <sys/socket.h>
12207     #include <netdb.h>
12208    
12209 michael 967 "
12210     if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12211 db 941
12212 michael 912 cat >>confdefs.h <<_ACEOF
12213     #define HAVE_STRUCT_SOCKADDR_IN 1
12214     _ACEOF
12215    
12216    
12217     fi
12218 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12219 db 941 #include <sys/socket.h>
12220     #include <netdb.h>
12221    
12222 michael 967 "
12223     if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12224 db 941
12225 michael 912 cat >>confdefs.h <<_ACEOF
12226     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12227     _ACEOF
12228    
12229    
12230     fi
12231 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12232 db 941 #include <sys/socket.h>
12233     #include <netdb.h>
12234    
12235 michael 967 "
12236     if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12237 db 941
12238 michael 912 cat >>confdefs.h <<_ACEOF
12239     #define HAVE_STRUCT_ADDRINFO 1
12240     _ACEOF
12241    
12242    
12243     fi
12244    
12245 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>
12246 db 941 <sys/socket.h>
12247 michael 967 "
12248     if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12249 michael 912
12250     cat >>confdefs.h <<_ACEOF
12251     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12252     _ACEOF
12253    
12254    
12255     fi
12256    
12257    
12258    
12259 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12260     if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12261 michael 912
12262     cat >>confdefs.h <<_ACEOF
12263     #define HAVE_STRUCT_SOCKADDR_IN6 1
12264     _ACEOF
12265    
12266    
12267     else
12268    
12269 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
12270 michael 912
12271     fi
12272    
12273    
12274    
12275     # Checks for typedefs, structures, and compiler characteristics.
12276 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12277 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12278 michael 967 if test "${ac_cv_c_bigendian+set}" = set; then :
12279 db 941 $as_echo_n "(cached) " >&6
12280 michael 912 else
12281 db 941 ac_cv_c_bigendian=unknown
12282 michael 942 # See if we're dealing with a universal compiler.
12283 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 michael 912 /* end confdefs.h. */
12285 michael 942 #ifndef __APPLE_CC__
12286     not a universal capable compiler
12287 db 941 #endif
12288     typedef int dummy;
12289    
12290     _ACEOF
12291 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12292 michael 942
12293     # Check for potential -arch flags. It is not universal unless
12294 michael 967 # there are at least two -arch flags with different values.
12295     ac_arch=
12296     ac_prev=
12297     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12298     if test -n "$ac_prev"; then
12299     case $ac_word in
12300     i?86 | x86_64 | ppc | ppc64)
12301     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12302     ac_arch=$ac_word
12303     else
12304     ac_cv_c_bigendian=universal
12305     break
12306     fi
12307     ;;
12308     esac
12309     ac_prev=
12310     elif test "x$ac_word" = "x-arch"; then
12311     ac_prev=arch
12312     fi
12313     done
12314 db 941 fi
12315     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316     if test $ac_cv_c_bigendian = unknown; then
12317     # See if sys/param.h defines the BYTE_ORDER macro.
12318 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 db 941 /* end confdefs.h. */
12320 michael 912 #include <sys/types.h>
12321 db 941 #include <sys/param.h>
12322 michael 912
12323     int
12324     main ()
12325     {
12326 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12327     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12328     && LITTLE_ENDIAN)
12329     bogus endian macros
12330     #endif
12331 michael 912
12332     ;
12333     return 0;
12334     }
12335     _ACEOF
12336 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12337 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
12338 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 michael 912 /* end confdefs.h. */
12340     #include <sys/types.h>
12341 db 941 #include <sys/param.h>
12342 michael 912
12343     int
12344     main ()
12345     {
12346     #if BYTE_ORDER != BIG_ENDIAN
12347 db 941 not big endian
12348     #endif
12349 michael 912
12350     ;
12351     return 0;
12352     }
12353     _ACEOF
12354 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12355 michael 912 ac_cv_c_bigendian=yes
12356     else
12357 michael 967 ac_cv_c_bigendian=no
12358 michael 912 fi
12359     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 db 941 fi
12361     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362     fi
12363     if test $ac_cv_c_bigendian = unknown; then
12364     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12365 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 michael 912 /* end confdefs.h. */
12367 db 941 #include <limits.h>
12368    
12369 michael 912 int
12370     main ()
12371     {
12372 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12373     bogus endian macros
12374     #endif
12375    
12376 michael 912 ;
12377     return 0;
12378     }
12379     _ACEOF
12380 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12381 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
12382 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 michael 912 /* end confdefs.h. */
12384 db 941 #include <limits.h>
12385    
12386 michael 912 int
12387     main ()
12388     {
12389 db 941 #ifndef _BIG_ENDIAN
12390     not big endian
12391     #endif
12392 michael 912
12393     ;
12394     return 0;
12395     }
12396     _ACEOF
12397 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12398 db 941 ac_cv_c_bigendian=yes
12399 michael 912 else
12400 michael 967 ac_cv_c_bigendian=no
12401 michael 912 fi
12402 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 michael 912 fi
12404     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 db 941 fi
12406     if test $ac_cv_c_bigendian = unknown; then
12407     # Compile a test program.
12408 michael 967 if test "$cross_compiling" = yes; then :
12409 db 941 # Try to guess by grepping values from an object file.
12410 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 michael 912 /* end confdefs.h. */
12412 db 941 short int ascii_mm[] =
12413     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12414     short int ascii_ii[] =
12415     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12416     int use_ascii (int i) {
12417     return ascii_mm[i] + ascii_ii[i];
12418     }
12419     short int ebcdic_ii[] =
12420     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12421     short int ebcdic_mm[] =
12422     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12423     int use_ebcdic (int i) {
12424     return ebcdic_mm[i] + ebcdic_ii[i];
12425     }
12426     extern int foo;
12427    
12428 michael 912 int
12429     main ()
12430     {
12431 db 941 return use_ascii (foo) == use_ebcdic (foo);
12432 michael 912 ;
12433     return 0;
12434     }
12435     _ACEOF
12436 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12437 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12438     ac_cv_c_bigendian=yes
12439     fi
12440     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12441     if test "$ac_cv_c_bigendian" = unknown; then
12442     ac_cv_c_bigendian=no
12443     else
12444     # finding both strings is unlikely to happen, but who knows?
12445     ac_cv_c_bigendian=unknown
12446     fi
12447     fi
12448 michael 912 fi
12449     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 db 941 else
12451 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 db 941 /* end confdefs.h. */
12453     $ac_includes_default
12454     int
12455     main ()
12456     {
12457    
12458     /* Are we little or big endian? From Harbison&Steele. */
12459     union
12460     {
12461     long int l;
12462     char c[sizeof (long int)];
12463     } u;
12464     u.l = 1;
12465     return u.c[sizeof (long int) - 1] == 1;
12466    
12467     ;
12468     return 0;
12469     }
12470     _ACEOF
12471 michael 967 if ac_fn_c_try_run "$LINENO"; then :
12472 db 941 ac_cv_c_bigendian=no
12473     else
12474 michael 967 ac_cv_c_bigendian=yes
12475 michael 912 fi
12476 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477     conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 db 941 fi
12479 michael 912
12480 db 941 fi
12481     fi
12482 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12483 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
12484     case $ac_cv_c_bigendian in #(
12485     yes)
12486 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12487 db 941 ;; #(
12488     no)
12489     ;; #(
12490     universal)
12491 michael 942
12492 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12493 michael 942
12494     ;; #(
12495 db 941 *)
12496 michael 967 as_fn_error "unknown endianness
12497     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12498 db 941 esac
12499    
12500    
12501 michael 912 # Checks for library functions.
12502    
12503    
12504    
12505 michael 967 for ac_func in $ac_func_list
12506     do :
12507     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12508     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12509     eval as_val=\$$as_ac_var
12510     if test "x$as_val" = x""yes; then :
12511 michael 912 cat >>confdefs.h <<_ACEOF
12512 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12513 michael 912 _ACEOF
12514    
12515     fi
12516     done
12517    
12518    
12519    
12520    
12521    
12522    
12523    
12524    
12525    
12526    
12527 michael 942
12528    
12529    
12530 michael 923 # Checks for header files.
12531 michael 912
12532    
12533    
12534 michael 967 for ac_header in $ac_header_list
12535     do :
12536     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12537     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12538     "
12539     eval as_val=\$$as_ac_Header
12540     if test "x$as_val" = x""yes; then :
12541 michael 912 cat >>confdefs.h <<_ACEOF
12542 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 michael 912 _ACEOF
12544    
12545     fi
12546    
12547     done
12548    
12549    
12550    
12551    
12552    
12553    
12554    
12555    
12556    
12557    
12558    
12559    
12560    
12561    
12562    
12563    
12564    
12565    
12566    
12567    
12568    
12569    
12570    
12571    
12572    
12573    
12574    
12575    
12576    
12577    
12578    
12579 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12580 db 941 $as_echo_n "checking for /dev/null... " >&6; }
12581 michael 1010 if test -c /dev/null; then :
12582 michael 915
12583 michael 1010
12584 michael 967 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12585 michael 915
12586 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12587 db 941 $as_echo "yes" >&6; }
12588 michael 923 else
12589    
12590 michael 1010
12591 michael 967 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12592 michael 923
12593 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12594 db 941 $as_echo "no - using devnull.log" >&6; }
12595 michael 923 fi
12596    
12597    
12598 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12599 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
12600 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12601 db 941 $as_echo_n "(cached) " >&6
12602 michael 923 else
12603     ac_func_search_save_LIBS=$LIBS
12604 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 michael 923 /* end confdefs.h. */
12606    
12607     /* Override any GCC internal prototype to avoid an error.
12608     Use char because int might match the return type of a GCC
12609     builtin and then its argument prototype would still apply. */
12610     #ifdef __cplusplus
12611     extern "C"
12612     #endif
12613     char crypt ();
12614     int
12615     main ()
12616     {
12617     return crypt ();
12618     ;
12619     return 0;
12620     }
12621     _ACEOF
12622 michael 977 for ac_lib in '' crypt; do
12623 michael 923 if test -z "$ac_lib"; then
12624     ac_res="none required"
12625     else
12626     ac_res=-l$ac_lib
12627     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12628     fi
12629 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12630 michael 923 ac_cv_search_crypt=$ac_res
12631     fi
12632 michael 967 rm -f core conftest.err conftest.$ac_objext \
12633     conftest$ac_exeext
12634     if test "${ac_cv_search_crypt+set}" = set; then :
12635 michael 923 break
12636     fi
12637     done
12638 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12639    
12640 michael 923 else
12641     ac_cv_search_crypt=no
12642     fi
12643     rm conftest.$ac_ext
12644     LIBS=$ac_func_search_save_LIBS
12645     fi
12646 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12647 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
12648 michael 923 ac_res=$ac_cv_search_crypt
12649 michael 967 if test "$ac_res" != no; then :
12650 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12651    
12652     fi
12653    
12654    
12655    
12656    
12657     # Check whether --with-zlib-path was given.
12658 michael 967 if test "${with_zlib_path+set}" = set; then :
12659 michael 923 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12660     fi
12661    
12662    
12663     # Check whether --enable-zlib was given.
12664 michael 967 if test "${enable_zlib+set}" = set; then :
12665 michael 923 enableval=$enable_zlib; zlib=$enableval
12666     else
12667     zlib=yes
12668     fi
12669    
12670    
12671 michael 1010 if test "$zlib" = "yes"; then :
12672    
12673 michael 967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12674     if test "x$ac_cv_header_zlib_h" = x""yes; then :
12675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12676 db 941 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12677 michael 967 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12678 db 941 $as_echo_n "(cached) " >&6
12679 michael 923 else
12680     ac_check_lib_save_LIBS=$LIBS
12681     LIBS="-lz $LIBS"
12682 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 michael 923 /* end confdefs.h. */
12684    
12685     /* Override any GCC internal prototype to avoid an error.
12686     Use char because int might match the return type of a GCC
12687     builtin and then its argument prototype would still apply. */
12688     #ifdef __cplusplus
12689     extern "C"
12690     #endif
12691     char zlibVersion ();
12692     int
12693     main ()
12694     {
12695     return zlibVersion ();
12696     ;
12697     return 0;
12698     }
12699     _ACEOF
12700 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12701 michael 923 ac_cv_lib_z_zlibVersion=yes
12702     else
12703 michael 967 ac_cv_lib_z_zlibVersion=no
12704 michael 923 fi
12705 michael 967 rm -f core conftest.err conftest.$ac_objext \
12706     conftest$ac_exeext conftest.$ac_ext
12707 michael 923 LIBS=$ac_check_lib_save_LIBS
12708     fi
12709 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12710 db 941 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12711 michael 967 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12712 michael 923
12713     LIBS="-lz $LIBS"
12714    
12715 michael 967 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12716 michael 923
12717    
12718     else
12719     zlib=no
12720     fi
12721    
12722    
12723     else
12724     zlib=no
12725     fi
12726    
12727    
12728 michael 1010
12729 michael 923 fi
12730    
12731    
12732 michael 1009 # Check whether --with-libpcre-path was given.
12733     if test "${with_libpcre_path+set}" = set; then :
12734     withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12735     fi
12736    
12737    
12738     # Check whether --enable-libpcre was given.
12739     if test "${enable_libpcre+set}" = set; then :
12740     enableval=$enable_libpcre; libpcre=$enableval
12741     else
12742     libpcre=yes
12743     fi
12744    
12745    
12746 michael 1010 if test "$libpcre" = "yes"; then :
12747    
12748 michael 1009 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12749     if test "x$ac_cv_header_pcre_h" = x""yes; then :
12750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12751     $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12752     if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12753     $as_echo_n "(cached) " >&6
12754     else
12755     ac_check_lib_save_LIBS=$LIBS
12756     LIBS="-lpcre $LIBS"
12757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758     /* end confdefs.h. */
12759    
12760     /* Override any GCC internal prototype to avoid an error.
12761     Use char because int might match the return type of a GCC
12762     builtin and then its argument prototype would still apply. */
12763     #ifdef __cplusplus
12764     extern "C"
12765     #endif
12766     char pcre_study ();
12767     int
12768     main ()
12769     {
12770     return pcre_study ();
12771     ;
12772     return 0;
12773     }
12774     _ACEOF
12775     if ac_fn_c_try_link "$LINENO"; then :
12776     ac_cv_lib_pcre_pcre_study=yes
12777     else
12778     ac_cv_lib_pcre_pcre_study=no
12779     fi
12780     rm -f core conftest.err conftest.$ac_objext \
12781     conftest$ac_exeext conftest.$ac_ext
12782     LIBS=$ac_check_lib_save_LIBS
12783     fi
12784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12785     $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12786     if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12787    
12788     LIBS="-lpcre $LIBS"
12789    
12790     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12791    
12792    
12793     else
12794     libpcre=no
12795     fi
12796    
12797    
12798     else
12799     libpcre=no
12800     fi
12801    
12802    
12803 michael 1010
12804 michael 1009 fi
12805     if test "$libpcre" = yes; then
12806     ENABLE_PCRE_TRUE=
12807     ENABLE_PCRE_FALSE='#'
12808     else
12809     ENABLE_PCRE_TRUE='#'
12810     ENABLE_PCRE_FALSE=
12811     fi
12812    
12813    
12814    
12815 michael 912 # Check whether --enable-openssl was given.
12816 michael 967 if test "${enable_openssl+set}" = set; then :
12817 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
12818     else
12819     cf_enable_openssl="auto"
12820     fi
12821    
12822 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12823 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
12824 michael 912 if test "$cf_enable_openssl" != "no"; then
12825     cf_openssl_basedir=""
12826     if test "$cf_enable_openssl" != "auto" &&
12827     test "$cf_enable_openssl" != "yes"; then
12828     cf_openssl_basedir="${cf_enable_openssl}"
12829     else
12830     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12831     /opt /opt/openssl /usr/local/openssl; do
12832     if test -f "${dirs}/include/openssl/opensslv.h"; then
12833     cf_openssl_basedir="${dirs}"
12834     break
12835     fi
12836     done
12837     unset dirs
12838     fi
12839    
12840     if test ! -z "$cf_openssl_basedir"; then
12841     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12842     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12843     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12844     else
12845     cf_openssl_basedir=""
12846     fi
12847     else
12848     if test -f "/usr/include/openssl/opensslv.h"; then
12849     cf_openssl_basedir="/usr"
12850     fi
12851     fi
12852    
12853     if test ! -z "$cf_openssl_basedir"; then
12854     LIBS="-lcrypto -lssl $LIBS"
12855 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12856 db 941 $as_echo "$cf_openssl_basedir" >&6; }
12857 michael 912 cf_enable_openssl="yes"
12858 michael 924
12859 michael 967 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12860 michael 912
12861     else
12862 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12863     $as_echo "not found. Please check your path." >&6; }
12864 michael 912 cf_enable_openssl="no"
12865     fi
12866     unset cf_openssl_basedir
12867     else
12868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12869 db 941 $as_echo "disabled" >&6; }
12870 michael 912 fi
12871 michael 924 if test "$cf_enable_openssl" = yes; then
12872 michael 912 ENABLE_SSL_TRUE=
12873     ENABLE_SSL_FALSE='#'
12874     else
12875     ENABLE_SSL_TRUE='#'
12876     ENABLE_SSL_FALSE=
12877     fi
12878    
12879    
12880    
12881 michael 924 # Check whether --enable-assert was given.
12882 michael 967 if test "${enable_assert+set}" = set; then :
12883 michael 924 enableval=$enable_assert; assert=$enableval
12884     else
12885     assert=no
12886     fi
12887    
12888    
12889 michael 1010 if test "$assert" = "no"; then :
12890    
12891 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
12892 michael 925
12893 michael 924 fi
12894    
12895    
12896 michael 925 # Check whether --enable-small-net was given.
12897 michael 967 if test "${enable_small_net+set}" = set; then :
12898 michael 925 enableval=$enable_small_net; small_net=$enableval
12899     else
12900     small_net=no
12901     fi
12902    
12903    
12904     if test "$small_net" = yes; then
12905    
12906 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
12907 michael 925
12908    
12909 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
12910 michael 925
12911    
12912 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
12913 michael 925
12914    
12915 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
12916 michael 925
12917    
12918 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
12919 michael 925
12920    
12921 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
12922 michael 925
12923    
12924 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
12925 michael 925
12926    
12927 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
12928 michael 925
12929 michael 998
12930     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
12931    
12932    
12933     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
12934    
12935 michael 925 else
12936    
12937 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
12938 michael 925
12939    
12940 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
12941 michael 925
12942    
12943 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
12944 michael 925
12945    
12946 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
12947 michael 925
12948    
12949 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
12950 michael 925
12951    
12952 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
12953 michael 925
12954    
12955 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
12956 michael 925
12957    
12958 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
12959 michael 925
12960 michael 998
12961     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
12962    
12963    
12964     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
12965    
12966 michael 925 fi
12967    
12968 db 941
12969 michael 912 # Argument processing.
12970    
12971     desired_iopoll_mechanism="none"
12972     # Check whether --enable-kqueue was given.
12973 michael 967 if test "${enable_kqueue+set}" = set; then :
12974 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
12975     fi
12976    
12977     # Check whether --enable-epoll was given.
12978 michael 967 if test "${enable_epoll+set}" = set; then :
12979 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
12980     fi
12981    
12982     # Check whether --enable-devpoll was given.
12983 michael 967 if test "${enable_devpoll+set}" = set; then :
12984 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
12985     fi
12986    
12987     # Check whether --enable-rtsigio was given.
12988 michael 967 if test "${enable_rtsigio+set}" = set; then :
12989 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
12990     fi
12991    
12992     # Check whether --enable-poll was given.
12993 michael 967 if test "${enable_poll+set}" = set; then :
12994 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
12995     fi
12996    
12997     # Check whether --enable-select was given.
12998 michael 967 if test "${enable_select+set}" = set; then :
12999 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13000     fi
13001    
13002 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13003 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13004 michael 912 iopoll_mechanism_none=0
13005    
13006     cat >>confdefs.h <<_ACEOF
13007     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13008     _ACEOF
13009    
13010     iopoll_mechanism_kqueue=1
13011    
13012     cat >>confdefs.h <<_ACEOF
13013     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13014     _ACEOF
13015    
13016 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 michael 912 /* end confdefs.h. */
13018     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13019     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13020     #define kevent innocuous_kevent
13021    
13022     /* System header to define __stub macros and hopefully few prototypes,
13023     which can conflict with char kevent (); below.
13024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025     <limits.h> exists even on freestanding compilers. */
13026    
13027     #ifdef __STDC__
13028     # include <limits.h>
13029     #else
13030     # include <assert.h>
13031     #endif
13032    
13033     #undef kevent
13034    
13035     /* Override any GCC internal prototype to avoid an error.
13036     Use char because int might match the return type of a GCC
13037     builtin and then its argument prototype would still apply. */
13038     #ifdef __cplusplus
13039     extern "C"
13040     #endif
13041     char kevent ();
13042     /* The GNU C library defines this for functions which it implements
13043     to always fail with ENOSYS. Some functions are actually named
13044     something starting with __ and the normal name is an alias. */
13045     #if defined __stub_kevent || defined __stub___kevent
13046     choke me
13047     #endif
13048    
13049     int
13050     main ()
13051     {
13052     return kevent ();
13053     ;
13054     return 0;
13055     }
13056     _ACEOF
13057 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13058 michael 912 is_kqueue_mechanism_available="yes"
13059     else
13060 michael 967 is_kqueue_mechanism_available="no"
13061 michael 912 fi
13062 michael 967 rm -f core conftest.err conftest.$ac_objext \
13063     conftest$ac_exeext conftest.$ac_ext
13064 michael 912 iopoll_mechanism_epoll=2
13065    
13066     cat >>confdefs.h <<_ACEOF
13067     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13068     _ACEOF
13069    
13070 michael 967 if test "$cross_compiling" = yes; then :
13071     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13072 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13073 michael 967 as_fn_error "cannot run test program while cross compiling
13074     See \`config.log' for more details." "$LINENO" 5; }
13075 michael 912 else
13076 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077     /* end confdefs.h. */
13078 michael 912
13079     #include <sys/epoll.h>
13080     #include <sys/syscall.h>
13081     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13082     #if !defined(__NR_epoll_create)
13083     #if defined(__ia64__)
13084     #define __NR_epoll_create 1243
13085     #elif defined(__x86_64__)
13086     #define __NR_epoll_create 214
13087     #elif defined(__sparc64__) || defined(__sparc__)
13088     #define __NR_epoll_create 193
13089     #elif defined(__s390__) || defined(__m68k__)
13090     #define __NR_epoll_create 249
13091     #elif defined(__ppc64__) || defined(__ppc__)
13092     #define __NR_epoll_create 236
13093     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13094     #define __NR_epoll_create 224
13095     #elif defined(__alpha__)
13096     #define __NR_epoll_create 407
13097     #elif defined(__sh64__)
13098     #define __NR_epoll_create 282
13099     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13100     #define __NR_epoll_create 254
13101     #else
13102     #error No system call numbers defined for epoll family.
13103     #endif
13104     #endif
13105     _syscall1(int, epoll_create, int, size)
13106     #endif
13107     main() { return epoll_create(256) == -1 ? 1 : 0; }
13108    
13109     _ACEOF
13110 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13111 michael 912 is_epoll_mechanism_available="yes"
13112     else
13113 michael 967 is_epoll_mechanism_available="no"
13114 michael 912 fi
13115 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13116     conftest.$ac_objext conftest.beam conftest.$ac_ext
13117 michael 912 fi
13118    
13119     iopoll_mechanism_devpoll=3
13120    
13121     cat >>confdefs.h <<_ACEOF
13122     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13123     _ACEOF
13124    
13125 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 michael 912 /* end confdefs.h. */
13127     #include <devpoll.h>
13128     int
13129     main ()
13130     {
13131    
13132     ;
13133     return 0;
13134     }
13135     _ACEOF
13136 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13137 michael 912 is_devpoll_mechanism_available="yes"
13138     else
13139 michael 967 is_devpoll_mechanism_available="no"
13140 michael 912 fi
13141     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142     if test "$is_devpoll_mechanism_available" = "yes" ; then
13143    
13144 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13145 michael 912
13146     fi
13147 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 michael 912 /* end confdefs.h. */
13149     #include <sys/devpoll.h>
13150     int
13151     main ()
13152     {
13153    
13154     ;
13155     return 0;
13156     }
13157     _ACEOF
13158 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13159 michael 912 is_devpoll_mechanism_available="yes"
13160     else
13161 michael 967 is_devpoll_mechanism_available="no"
13162 michael 912 fi
13163     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13164     if test "$is_devpoll_mechanism_available" = "yes" ; then
13165    
13166 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13167 michael 912
13168     fi
13169     iopoll_mechanism_rtsigio=4
13170    
13171     cat >>confdefs.h <<_ACEOF
13172     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13173     _ACEOF
13174    
13175 michael 967 if test "$cross_compiling" = yes; then :
13176     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13177 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13178 michael 967 as_fn_error "cannot run test program while cross compiling
13179     See \`config.log' for more details." "$LINENO" 5; }
13180 michael 912 else
13181 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 michael 912 /* end confdefs.h. */
13183    
13184     #include <fcntl.h>
13185     #ifdef F_SETSIG
13186     main () { return 0; } /* F_SETSIG defined */
13187     #else
13188     main () { return 1; } /* F_SETSIG not defined */
13189     #endif
13190    
13191     int
13192     main ()
13193     {
13194    
13195     ;
13196     return 0;
13197     }
13198     _ACEOF
13199 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13200 michael 912 is_rtsigio_mechanism_available="yes"
13201     else
13202 michael 967 is_rtsigio_mechanism_available="no"
13203 michael 912 fi
13204 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13205     conftest.$ac_objext conftest.beam conftest.$ac_ext
13206 michael 912 fi
13207    
13208     iopoll_mechanism_poll=5
13209    
13210     cat >>confdefs.h <<_ACEOF
13211     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13212     _ACEOF
13213    
13214 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 michael 912 /* end confdefs.h. */
13216     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13217     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13218     #define poll innocuous_poll
13219    
13220     /* System header to define __stub macros and hopefully few prototypes,
13221     which can conflict with char poll (); below.
13222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13223     <limits.h> exists even on freestanding compilers. */
13224    
13225     #ifdef __STDC__
13226     # include <limits.h>
13227     #else
13228     # include <assert.h>
13229     #endif
13230    
13231     #undef poll
13232    
13233     /* Override any GCC internal prototype to avoid an error.
13234     Use char because int might match the return type of a GCC
13235     builtin and then its argument prototype would still apply. */
13236     #ifdef __cplusplus
13237     extern "C"
13238     #endif
13239     char poll ();
13240     /* The GNU C library defines this for functions which it implements
13241     to always fail with ENOSYS. Some functions are actually named
13242     something starting with __ and the normal name is an alias. */
13243     #if defined __stub_poll || defined __stub___poll
13244     choke me
13245     #endif
13246    
13247     int
13248     main ()
13249     {
13250     return poll ();
13251     ;
13252     return 0;
13253     }
13254     _ACEOF
13255 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13256 michael 912 is_poll_mechanism_available="yes"
13257     else
13258 michael 967 is_poll_mechanism_available="no"
13259 michael 912 fi
13260 michael 967 rm -f core conftest.err conftest.$ac_objext \
13261     conftest$ac_exeext conftest.$ac_ext
13262 michael 912 iopoll_mechanism_select=6
13263    
13264     cat >>confdefs.h <<_ACEOF
13265     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13266     _ACEOF
13267    
13268 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 michael 912 /* end confdefs.h. */
13270     /* Define select to an innocuous variant, in case <limits.h> declares select.
13271     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13272     #define select innocuous_select
13273    
13274     /* System header to define __stub macros and hopefully few prototypes,
13275     which can conflict with char select (); below.
13276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277     <limits.h> exists even on freestanding compilers. */
13278    
13279     #ifdef __STDC__
13280     # include <limits.h>
13281     #else
13282     # include <assert.h>
13283     #endif
13284    
13285     #undef select
13286    
13287     /* Override any GCC internal prototype to avoid an error.
13288     Use char because int might match the return type of a GCC
13289     builtin and then its argument prototype would still apply. */
13290     #ifdef __cplusplus
13291     extern "C"
13292     #endif
13293     char select ();
13294     /* The GNU C library defines this for functions which it implements
13295     to always fail with ENOSYS. Some functions are actually named
13296     something starting with __ and the normal name is an alias. */
13297     #if defined __stub_select || defined __stub___select
13298     choke me
13299     #endif
13300    
13301     int
13302     main ()
13303     {
13304     return select ();
13305     ;
13306     return 0;
13307     }
13308     _ACEOF
13309 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13310 michael 912 is_select_mechanism_available="yes"
13311     else
13312 michael 967 is_select_mechanism_available="no"
13313 michael 912 fi
13314 michael 967 rm -f core conftest.err conftest.$ac_objext \
13315     conftest$ac_exeext conftest.$ac_ext
13316 michael 912 optimal_iopoll_mechanism="none"
13317     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13318     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13319     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13320     optimal_iopoll_mechanism="$mechanism"
13321     break
13322     fi
13323     done
13324     if test "$desired_iopoll_mechanism" = "none" ; then
13325     if test "$optimal_iopoll_mechanism" = "none" ; then
13326 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13327 db 941 $as_echo "none" >&6; }
13328 michael 967 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13329 michael 912 else
13330     selected_iopoll_mechanism=$optimal_iopoll_mechanism
13331 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13332 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13333 michael 912 fi
13334     else
13335     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13336     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13337     selected_iopoll_mechanism=$desired_iopoll_mechanism
13338 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13339 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13340 michael 912 else
13341 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13342 db 941 $as_echo "none" >&6; }
13343 michael 967 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13344 michael 912 fi
13345     fi
13346     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13347    
13348     cat >>confdefs.h <<_ACEOF
13349     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13350     _ACEOF
13351    
13352    
13353    
13354    
13355     # Check whether --with-nicklen was given.
13356 michael 967 if test "${with_nicklen+set}" = set; then :
13357 michael 912 withval=$with_nicklen; nicklen="$withval"
13358     else
13359     nicklen="9"
13360     fi
13361    
13362    
13363     cat >>confdefs.h <<_ACEOF
13364     #define NICKLEN ($nicklen+1)
13365     _ACEOF
13366    
13367    
13368    
13369    
13370     # Check whether --with-topiclen was given.
13371 michael 967 if test "${with_topiclen+set}" = set; then :
13372 michael 912 withval=$with_topiclen; topiclen="$withval"
13373     else
13374     topiclen="160"
13375     fi
13376    
13377    
13378     cat >>confdefs.h <<_ACEOF
13379     #define TOPICLEN ($topiclen+1)
13380     _ACEOF
13381    
13382    
13383    
13384    
13385     # Check whether --with-syslog-facility was given.
13386 michael 967 if test "${with_syslog_facility+set}" = set; then :
13387 michael 912 withval=$with_syslog_facility; syslog_facility="$withval"
13388     else
13389     syslog_facility="LOG_LOCAL4"
13390     fi
13391    
13392    
13393     cat >>confdefs.h <<_ACEOF
13394     #define LOG_FACILITY $syslog_facility
13395     _ACEOF
13396    
13397    
13398    
13399     # Check whether --enable-efnet was given.
13400 michael 967 if test "${enable_efnet+set}" = set; then :
13401 michael 912 enableval=$enable_efnet; efnet="$enableval"
13402     else
13403     efnet="no"
13404     fi
13405    
13406     if test "$efnet" = "yes" ; then
13407     use_efnet="yes"
13408    
13409 michael 967 $as_echo "#define EFNET 1" >>confdefs.h
13410 michael 912
13411    
13412 michael 967 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13413 michael 912
13414     else
13415     use_efnet="no"
13416     fi
13417     if test "$use_efnet" = "yes"; then
13418     EFNET_TRUE=
13419     EFNET_FALSE='#'
13420     else
13421     EFNET_TRUE='#'
13422     EFNET_FALSE=
13423     fi
13424    
13425    
13426    
13427     # Check whether --enable-halfops was given.
13428 michael 967 if test "${enable_halfops+set}" = set; then :
13429 michael 912 enableval=$enable_halfops; halfops="$enableval"
13430     else
13431     halfops="no"
13432     fi
13433    
13434     if test "$halfops" = "yes" ; then
13435    
13436 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
13437 michael 912
13438     fi
13439    
13440    
13441     # Check whether --enable-debugging was given.
13442 michael 967 if test "${enable_debugging+set}" = set; then :
13443 michael 912 enableval=$enable_debugging; debugging="$enableval"
13444     else
13445     debugging="no"
13446     fi
13447    
13448     if test "$debugging" = "yes" ; then
13449    
13450 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
13451 michael 912
13452     CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13453     else
13454    
13455 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13456 michael 912
13457     fi
13458    
13459    
13460     # Check whether --enable-warnings was given.
13461 michael 967 if test "${enable_warnings+set}" = set; then :
13462 michael 912 enableval=$enable_warnings; warnings="$enableval"
13463     else
13464     warnings="no"
13465     fi
13466    
13467     if test "$warnings" = "yes" ; then
13468 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"
13469 michael 912 fi
13470    
13471    
13472 michael 967 for ac_header in syslog.h sys/syslog.h
13473     do :
13474     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13476     eval as_val=\$$as_ac_Header
13477     if test "x$as_val" = x""yes; then :
13478 michael 912 cat >>confdefs.h <<_ACEOF
13479 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480 michael 912 _ACEOF
13481    
13482     fi
13483    
13484     done
13485    
13486     # Check whether --enable-syslog was given.
13487 michael 967 if test "${enable_syslog+set}" = set; then :
13488 michael 912 enableval=$enable_syslog; syslog="$enableval"
13489     else
13490     syslog="no"
13491     fi
13492    
13493     if test "$enableval" != "no" ; then
13494     for option in $enableval ; do
13495     case "$option" in
13496     users)
13497 michael 967 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13498 michael 912 ;;
13499     oper)
13500 michael 967 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13501 michael 912 ;;
13502     yes) : ;;
13503 michael 967 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13504 michael 912 esac
13505     done
13506    
13507 michael 967 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13508 michael 912
13509     fi
13510    
13511    
13512    
13513     prefix_NONE=
13514     exec_prefix_NONE=
13515     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13516     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13517     eval ac_define_dir="\"$prefix\""
13518     eval ac_define_dir="\"$ac_define_dir\""
13519     PREFIX="$ac_define_dir"
13520    
13521    
13522     cat >>confdefs.h <<_ACEOF
13523     #define PREFIX "$ac_define_dir"
13524     _ACEOF
13525    
13526     test "$prefix_NONE" && prefix=NONE
13527     test "$exec_prefix_NONE" && exec_prefix=NONE
13528    
13529    
13530     prefix_NONE=
13531     exec_prefix_NONE=
13532     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13533     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13534     eval ac_define_dir="\"$sysconfdir\""
13535     eval ac_define_dir="\"$ac_define_dir\""
13536     SYSCONFDIR="$ac_define_dir"
13537    
13538    
13539     cat >>confdefs.h <<_ACEOF
13540     #define SYSCONFDIR "$ac_define_dir"
13541     _ACEOF
13542    
13543     test "$prefix_NONE" && prefix=NONE
13544     test "$exec_prefix_NONE" && exec_prefix=NONE
13545    
13546    
13547     prefix_NONE=
13548     exec_prefix_NONE=
13549     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13550     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13551     eval ac_define_dir="\"$libdir\""
13552     eval ac_define_dir="\"$ac_define_dir\""
13553     LIBDIR="$ac_define_dir"
13554    
13555    
13556     cat >>confdefs.h <<_ACEOF
13557     #define LIBDIR "$ac_define_dir"
13558     _ACEOF
13559    
13560     test "$prefix_NONE" && prefix=NONE
13561     test "$exec_prefix_NONE" && exec_prefix=NONE
13562    
13563    
13564     prefix_NONE=
13565     exec_prefix_NONE=
13566     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13567     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13568     eval ac_define_dir="\"$datadir\""
13569     eval ac_define_dir="\"$ac_define_dir\""
13570     DATADIR="$ac_define_dir"
13571    
13572    
13573     cat >>confdefs.h <<_ACEOF
13574     #define DATADIR "$ac_define_dir"
13575     _ACEOF
13576    
13577     test "$prefix_NONE" && prefix=NONE
13578     test "$exec_prefix_NONE" && exec_prefix=NONE
13579    
13580    
13581     prefix_NONE=
13582     exec_prefix_NONE=
13583     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13584     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13585     eval ac_define_dir="\"$localstatedir\""
13586     eval ac_define_dir="\"$ac_define_dir\""
13587     LOCALSTATEDIR="$ac_define_dir"
13588    
13589    
13590     cat >>confdefs.h <<_ACEOF
13591     #define LOCALSTATEDIR "$ac_define_dir"
13592     _ACEOF
13593    
13594     test "$prefix_NONE" && prefix=NONE
13595     test "$exec_prefix_NONE" && exec_prefix=NONE
13596    
13597 db 941
13598 michael 1009 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13599 michael 912
13600    
13601     cat >confcache <<\_ACEOF
13602     # This file is a shell script that caches the results of configure
13603     # tests run on this system so they can be shared between configure
13604     # scripts and configure runs, see configure's option --config-cache.
13605     # It is not useful on other systems. If it contains results you don't
13606     # want to keep, you may remove or edit it.
13607     #
13608     # config.status only pays attention to the cache file if you give it
13609     # the --recheck option to rerun configure.
13610     #
13611     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13612     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13613     # following values.
13614    
13615     _ACEOF
13616    
13617     # The following way of writing the cache mishandles newlines in values,
13618     # but we know of no workaround that is simple, portable, and efficient.
13619     # So, we kill variables containing newlines.
13620     # Ultrix sh set writes to stderr and can't be redirected directly,
13621     # and sets the high bit in the cache file unless we assign to the vars.
13622     (
13623     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13624     eval ac_val=\$$ac_var
13625     case $ac_val in #(
13626     *${as_nl}*)
13627     case $ac_var in #(
13628 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13629 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13630 michael 912 esac
13631     case $ac_var in #(
13632     _ | IFS | as_nl) ;; #(
13633 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13634 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
13635 michael 912 esac ;;
13636     esac
13637     done
13638    
13639     (set) 2>&1 |
13640     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13641     *${as_nl}ac_space=\ *)
13642 michael 967 # `set' does not quote correctly, so add quotes: double-quote
13643     # substitution turns \\\\ into \\, and sed turns \\ into \.
13644 michael 912 sed -n \
13645     "s/'/'\\\\''/g;
13646     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13647     ;; #(
13648     *)
13649     # `set' quotes correctly as required by POSIX, so do not add quotes.
13650     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13651     ;;
13652     esac |
13653     sort
13654     ) |
13655     sed '
13656     /^ac_cv_env_/b end
13657     t clear
13658     :clear
13659     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13660     t end
13661     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13662     :end' >>confcache
13663     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13664     if test -w "$cache_file"; then
13665     test "x$cache_file" != "x/dev/null" &&
13666 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13667 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13668 michael 912 cat confcache >$cache_file
13669     else
13670 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13671 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13672 michael 912 fi
13673     fi
13674     rm -f confcache
13675    
13676     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13677     # Let make expand exec_prefix.
13678     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13679    
13680     DEFS=-DHAVE_CONFIG_H
13681    
13682     ac_libobjs=
13683     ac_ltlibobjs=
13684     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13685     # 1. Remove the extension, and $U if already installed.
13686     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13687 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13688 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13689     # will be set to the directory where LIBOBJS objects are built.
13690 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13691     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13692 michael 912 done
13693     LIBOBJS=$ac_libobjs
13694    
13695     LTLIBOBJS=$ac_ltlibobjs
13696    
13697    
13698 michael 945 if test -n "$EXEEXT"; then
13699     am__EXEEXT_TRUE=
13700     am__EXEEXT_FALSE='#'
13701     else
13702     am__EXEEXT_TRUE='#'
13703     am__EXEEXT_FALSE=
13704     fi
13705    
13706 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13707 michael 967 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13708     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13709 michael 912 fi
13710     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13711 michael 967 as_fn_error "conditional \"AMDEP\" was never defined.
13712     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 michael 912 fi
13714     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13715 michael 967 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13716     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 michael 912 fi
13718 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13719 michael 967 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13720     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 michael 912 fi
13722 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13723 michael 967 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13724     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13725 michael 945 fi
13726     LT_CONFIG_H=config.h
13727 michael 942
13728 michael 945 _ltdl_libobjs=
13729     _ltdl_ltlibobjs=
13730     if test -n "$_LT_LIBOBJS"; then
13731     # Remove the extension.
13732     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13733     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13734     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13735     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13736     done
13737     fi
13738     ltdl_LIBOBJS=$_ltdl_libobjs
13739    
13740     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13741    
13742    
13743    
13744 michael 1009 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13745     as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13746     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747     fi
13748 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13749 michael 967 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13750     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13751 michael 912 fi
13752     if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13753 michael 967 as_fn_error "conditional \"EFNET\" was never defined.
13754     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13755 michael 912 fi
13756    
13757     : ${CONFIG_STATUS=./config.status}
13758 db 941 ac_write_fail=0
13759 michael 912 ac_clean_files_save=$ac_clean_files
13760     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13761 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13762 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13763 michael 967 as_write_fail=0
13764     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13765 michael 912 #! $SHELL
13766     # Generated by $as_me.
13767     # Run this file to recreate the current configuration.
13768     # Compiler output produced by configure, useful for debugging
13769     # configure, is in config.log if it exists.
13770    
13771     debug=false
13772     ac_cs_recheck=false
13773     ac_cs_silent=false
13774 michael 967
13775 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
13776 michael 967 export SHELL
13777     _ASEOF
13778     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13779     ## -------------------- ##
13780     ## M4sh Initialization. ##
13781     ## -------------------- ##
13782 michael 912
13783     # Be more Bourne compatible
13784     DUALCASE=1; export DUALCASE # for MKS sh
13785 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13786 michael 912 emulate sh
13787     NULLCMD=:
13788 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13789 michael 912 # is contrary to our usage. Disable this feature.
13790     alias -g '${1+"$@"}'='"$@"'
13791     setopt NO_GLOB_SUBST
13792     else
13793 michael 967 case `(set -o) 2>/dev/null` in #(
13794     *posix*) :
13795     set -o posix ;; #(
13796     *) :
13797     ;;
13798 michael 912 esac
13799     fi
13800    
13801    
13802 db 941 as_nl='
13803     '
13804     export as_nl
13805     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13806     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13807     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13808     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13809 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
13810     # but without wasting forks for bash or zsh.
13811     if test -z "$BASH_VERSION$ZSH_VERSION" \
13812     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13813     as_echo='print -r --'
13814     as_echo_n='print -rn --'
13815     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13816 db 941 as_echo='printf %s\n'
13817     as_echo_n='printf %s'
13818     else
13819     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13820     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13821     as_echo_n='/usr/ucb/echo -n'
13822 michael 912 else
13823 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13824     as_echo_n_body='eval
13825     arg=$1;
13826 michael 967 case $arg in #(
13827 db 941 *"$as_nl"*)
13828     expr "X$arg" : "X\\(.*\\)$as_nl";
13829     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13830     esac;
13831     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13832     '
13833     export as_echo_n_body
13834     as_echo_n='sh -c $as_echo_n_body as_echo'
13835 michael 912 fi
13836 db 941 export as_echo_body
13837     as_echo='sh -c $as_echo_body as_echo'
13838 michael 912 fi
13839    
13840 db 941 # The user is always right.
13841     if test "${PATH_SEPARATOR+set}" != set; then
13842     PATH_SEPARATOR=:
13843     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13844     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13845     PATH_SEPARATOR=';'
13846     }
13847     fi
13848    
13849 michael 912
13850     # IFS
13851     # We need space, tab and new line, in precisely that order. Quoting is
13852     # there to prevent editors from complaining about space-tab.
13853     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13854     # splitting by setting IFS to empty value.)
13855     IFS=" "" $as_nl"
13856    
13857     # Find who we are. Look in the path if we contain no directory separator.
13858 michael 967 case $0 in #((
13859 michael 912 *[\\/]* ) as_myself=$0 ;;
13860     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861     for as_dir in $PATH
13862     do
13863     IFS=$as_save_IFS
13864     test -z "$as_dir" && as_dir=.
13865 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13866     done
13867 michael 912 IFS=$as_save_IFS
13868    
13869     ;;
13870     esac
13871     # We did not find ourselves, most probably we were run as `sh COMMAND'
13872     # in which case we are not to be found in the path.
13873     if test "x$as_myself" = x; then
13874     as_myself=$0
13875     fi
13876     if test ! -f "$as_myself"; then
13877 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13878 michael 967 exit 1
13879 michael 912 fi
13880    
13881 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
13882     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13883     # suppresses any "Segmentation fault" message there. '((' could
13884     # trigger a bug in pdksh 5.2.14.
13885     for as_var in BASH_ENV ENV MAIL MAILPATH
13886     do eval test x\${$as_var+set} = xset \
13887     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13888 michael 912 done
13889     PS1='$ '
13890     PS2='> '
13891     PS4='+ '
13892    
13893     # NLS nuisances.
13894 db 941 LC_ALL=C
13895     export LC_ALL
13896     LANGUAGE=C
13897     export LANGUAGE
13898 michael 912
13899 michael 967 # CDPATH.
13900     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13901    
13902    
13903     # as_fn_error ERROR [LINENO LOG_FD]
13904     # ---------------------------------
13905     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13906     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13907     # script with status $?, using 1 if that was 0.
13908     as_fn_error ()
13909     {
13910     as_status=$?; test $as_status -eq 0 && as_status=1
13911     if test "$3"; then
13912     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13913     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13914     fi
13915     $as_echo "$as_me: error: $1" >&2
13916     as_fn_exit $as_status
13917     } # as_fn_error
13918    
13919    
13920     # as_fn_set_status STATUS
13921     # -----------------------
13922     # Set $? to STATUS, without forking.
13923     as_fn_set_status ()
13924     {
13925     return $1
13926     } # as_fn_set_status
13927    
13928     # as_fn_exit STATUS
13929     # -----------------
13930     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13931     as_fn_exit ()
13932     {
13933     set +e
13934     as_fn_set_status $1
13935     exit $1
13936     } # as_fn_exit
13937    
13938     # as_fn_unset VAR
13939     # ---------------
13940     # Portably unset VAR.
13941     as_fn_unset ()
13942     {
13943     { eval $1=; unset $1;}
13944     }
13945     as_unset=as_fn_unset
13946     # as_fn_append VAR VALUE
13947     # ----------------------
13948     # Append the text in VALUE to the end of the definition contained in VAR. Take
13949     # advantage of any shell optimizations that allow amortized linear growth over
13950     # repeated appends, instead of the typical quadratic growth present in naive
13951     # implementations.
13952     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13953     eval 'as_fn_append ()
13954     {
13955     eval $1+=\$2
13956     }'
13957     else
13958     as_fn_append ()
13959     {
13960     eval $1=\$$1\$2
13961     }
13962     fi # as_fn_append
13963    
13964     # as_fn_arith ARG...
13965     # ------------------
13966     # Perform arithmetic evaluation on the ARGs, and store the result in the
13967     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13968     # must be portable across $(()) and expr.
13969     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13970     eval 'as_fn_arith ()
13971     {
13972     as_val=$(( $* ))
13973     }'
13974     else
13975     as_fn_arith ()
13976     {
13977     as_val=`expr "$@" || test $? -eq 1`
13978     }
13979     fi # as_fn_arith
13980    
13981    
13982 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
13983     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13984     as_expr=expr
13985     else
13986     as_expr=false
13987     fi
13988    
13989     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13990     as_basename=basename
13991     else
13992     as_basename=false
13993     fi
13994    
13995 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13996     as_dirname=dirname
13997     else
13998     as_dirname=false
13999     fi
14000 michael 912
14001     as_me=`$as_basename -- "$0" ||
14002     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14003     X"$0" : 'X\(//\)$' \| \
14004     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14005 db 941 $as_echo X/"$0" |
14006 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14007     s//\1/
14008     q
14009     }
14010     /^X\/\(\/\/\)$/{
14011     s//\1/
14012     q
14013     }
14014     /^X\/\(\/\).*/{
14015     s//\1/
14016     q
14017     }
14018     s/.*/./; q'`
14019    
14020 michael 967 # Avoid depending upon Character Ranges.
14021     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14022     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14023     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14024     as_cr_digits='0123456789'
14025     as_cr_alnum=$as_cr_Letters$as_cr_digits
14026 michael 912
14027     ECHO_C= ECHO_N= ECHO_T=
14028 michael 967 case `echo -n x` in #(((((
14029 michael 912 -n*)
14030 michael 967 case `echo 'xy\c'` in
14031 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14032 michael 967 xy) ECHO_C='\c';;
14033     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14034     ECHO_T=' ';;
14035 michael 912 esac;;
14036     *)
14037     ECHO_N='-n';;
14038     esac
14039    
14040     rm -f conf$$ conf$$.exe conf$$.file
14041     if test -d conf$$.dir; then
14042     rm -f conf$$.dir/conf$$.file
14043     else
14044     rm -f conf$$.dir
14045 db 941 mkdir conf$$.dir 2>/dev/null
14046 michael 912 fi
14047 db 941 if (echo >conf$$.file) 2>/dev/null; then
14048     if ln -s conf$$.file conf$$ 2>/dev/null; then
14049     as_ln_s='ln -s'
14050     # ... but there are two gotchas:
14051     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14052     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14053     # In both cases, we have to default to `cp -p'.
14054     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14055     as_ln_s='cp -p'
14056     elif ln conf$$.file conf$$ 2>/dev/null; then
14057     as_ln_s=ln
14058     else
14059 michael 912 as_ln_s='cp -p'
14060 db 941 fi
14061 michael 912 else
14062     as_ln_s='cp -p'
14063     fi
14064     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14065     rmdir conf$$.dir 2>/dev/null
14066    
14067 michael 967
14068     # as_fn_mkdir_p
14069     # -------------
14070     # Create "$as_dir" as a directory, including parents if necessary.
14071     as_fn_mkdir_p ()
14072     {
14073    
14074     case $as_dir in #(
14075     -*) as_dir=./$as_dir;;
14076     esac
14077     test -d "$as_dir" || eval $as_mkdir_p || {
14078     as_dirs=
14079     while :; do
14080     case $as_dir in #(
14081     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14082     *) as_qdir=$as_dir;;
14083     esac
14084     as_dirs="'$as_qdir' $as_dirs"
14085     as_dir=`$as_dirname -- "$as_dir" ||
14086     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14087     X"$as_dir" : 'X\(//\)[^/]' \| \
14088     X"$as_dir" : 'X\(//\)$' \| \
14089     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14090     $as_echo X"$as_dir" |
14091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14092     s//\1/
14093     q
14094     }
14095     /^X\(\/\/\)[^/].*/{
14096     s//\1/
14097     q
14098     }
14099     /^X\(\/\/\)$/{
14100     s//\1/
14101     q
14102     }
14103     /^X\(\/\).*/{
14104     s//\1/
14105     q
14106     }
14107     s/.*/./; q'`
14108     test -d "$as_dir" && break
14109     done
14110     test -z "$as_dirs" || eval "mkdir $as_dirs"
14111     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14112    
14113    
14114     } # as_fn_mkdir_p
14115 michael 912 if mkdir -p . 2>/dev/null; then
14116 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
14117 michael 912 else
14118     test -d ./-p && rmdir ./-p
14119     as_mkdir_p=false
14120     fi
14121    
14122     if test -x / >/dev/null 2>&1; then
14123     as_test_x='test -x'
14124     else
14125     if ls -dL / >/dev/null 2>&1; then
14126     as_ls_L_option=L
14127     else
14128     as_ls_L_option=
14129     fi
14130     as_test_x='
14131     eval sh -c '\''
14132     if test -d "$1"; then
14133 db 941 test -d "$1/.";
14134 michael 912 else
14135 michael 967 case $1 in #(
14136 db 941 -*)set "./$1";;
14137 michael 912 esac;
14138 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14139 michael 912 ???[sx]*):;;*)false;;esac;fi
14140     '\'' sh
14141     '
14142     fi
14143     as_executable_p=$as_test_x
14144    
14145     # Sed expression to map a string onto a valid CPP name.
14146     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14147    
14148     # Sed expression to map a string onto a valid variable name.
14149     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14150    
14151    
14152     exec 6>&1
14153 michael 967 ## ----------------------------------- ##
14154     ## Main body of $CONFIG_STATUS script. ##
14155     ## ----------------------------------- ##
14156     _ASEOF
14157     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14158 michael 912
14159 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160     # Save the log message, to keep $0 and so on meaningful, and to
14161 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
14162     # values after options handling.
14163     ac_log="
14164     This file was extended by ircd-hybrid $as_me 7.2.4, which was
14165 michael 967 generated by GNU Autoconf 2.64. Invocation command line was
14166 michael 912
14167     CONFIG_FILES = $CONFIG_FILES
14168     CONFIG_HEADERS = $CONFIG_HEADERS
14169     CONFIG_LINKS = $CONFIG_LINKS
14170     CONFIG_COMMANDS = $CONFIG_COMMANDS
14171     $ $0 $@
14172    
14173     on `(hostname || uname -n) 2>/dev/null | sed 1q`
14174     "
14175    
14176     _ACEOF
14177    
14178 michael 942 case $ac_config_files in *"
14179     "*) set x $ac_config_files; shift; ac_config_files=$*;;
14180     esac
14181    
14182     case $ac_config_headers in *"
14183     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14184     esac
14185    
14186    
14187 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14188 michael 912 # Files that config.status was made for.
14189 michael 967 config_files="$ac_config_files"
14190     config_headers="$ac_config_headers"
14191     config_commands="$ac_config_commands"
14192 michael 912
14193     _ACEOF
14194    
14195 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14196 michael 912 ac_cs_usage="\
14197 michael 967 \`$as_me' instantiates files and other configuration actions
14198     from templates according to the current configuration. Unless the files
14199     and actions are specified as TAGs, all are instantiated by default.
14200 michael 912
14201 michael 967 Usage: $0 [OPTION]... [TAG]...
14202 michael 912
14203     -h, --help print this help, then exit
14204     -V, --version print version number and configuration settings, then exit
14205 michael 942 -q, --quiet, --silent
14206     do not print progress messages
14207 michael 912 -d, --debug don't remove temporary files
14208     --recheck update $as_me by reconfiguring in the same conditions
14209 michael 942 --file=FILE[:TEMPLATE]
14210 db 941 instantiate the configuration file FILE
14211 michael 942 --header=FILE[:TEMPLATE]
14212 db 941 instantiate the configuration header FILE
14213 michael 912
14214     Configuration files:
14215     $config_files
14216    
14217     Configuration headers:
14218     $config_headers
14219    
14220     Configuration commands:
14221     $config_commands
14222    
14223 michael 967 Report bugs to the package provider."
14224 michael 912
14225     _ACEOF
14226 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14227 michael 912 ac_cs_version="\\
14228     ircd-hybrid config.status 7.2.4
14229 michael 967 configured by $0, generated by GNU Autoconf 2.64,
14230 db 941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14231 michael 912
14232 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
14233 michael 912 This config.status script is free software; the Free Software Foundation
14234     gives unlimited permission to copy, distribute and modify it."
14235    
14236     ac_pwd='$ac_pwd'
14237     srcdir='$srcdir'
14238     INSTALL='$INSTALL'
14239     MKDIR_P='$MKDIR_P'
14240 db 941 AWK='$AWK'
14241     test -n "\$AWK" || AWK=awk
14242 michael 912 _ACEOF
14243    
14244 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14245     # The default lists apply if the user does not specify any file.
14246 michael 912 ac_need_defaults=:
14247     while test $# != 0
14248     do
14249     case $1 in
14250     --*=*)
14251     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14252     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14253     ac_shift=:
14254     ;;
14255     *)
14256     ac_option=$1
14257     ac_optarg=$2
14258     ac_shift=shift
14259     ;;
14260     esac
14261    
14262     case $ac_option in
14263     # Handling of the options.
14264     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14265     ac_cs_recheck=: ;;
14266     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14267 db 941 $as_echo "$ac_cs_version"; exit ;;
14268 michael 912 --debug | --debu | --deb | --de | --d | -d )
14269     debug=: ;;
14270     --file | --fil | --fi | --f )
14271     $ac_shift
14272 db 941 case $ac_optarg in
14273     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14274     esac
14275 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
14276 michael 912 ac_need_defaults=false;;
14277     --header | --heade | --head | --hea )
14278     $ac_shift
14279 db 941 case $ac_optarg in
14280     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14281     esac
14282 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14283 michael 912 ac_need_defaults=false;;
14284     --he | --h)
14285     # Conflict between --help and --header
14286 michael 967 as_fn_error "ambiguous option: \`$1'
14287     Try \`$0 --help' for more information.";;
14288 michael 912 --help | --hel | -h )
14289 db 941 $as_echo "$ac_cs_usage"; exit ;;
14290 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14291     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14292     ac_cs_silent=: ;;
14293    
14294     # This is an error.
14295 michael 967 -*) as_fn_error "unrecognized option: \`$1'
14296     Try \`$0 --help' for more information." ;;
14297 michael 912
14298 michael 967 *) as_fn_append ac_config_targets " $1"
14299 michael 912 ac_need_defaults=false ;;
14300    
14301     esac
14302     shift
14303     done
14304    
14305     ac_configure_extra_args=
14306    
14307     if $ac_cs_silent; then
14308     exec 6>/dev/null
14309     ac_configure_extra_args="$ac_configure_extra_args --silent"
14310     fi
14311    
14312     _ACEOF
14313 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14314 michael 912 if \$ac_cs_recheck; then
14315 db 941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14316     shift
14317     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14318     CONFIG_SHELL='$SHELL'
14319 michael 912 export CONFIG_SHELL
14320 db 941 exec "\$@"
14321 michael 912 fi
14322    
14323     _ACEOF
14324 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14325 michael 912 exec 5>>config.log
14326     {
14327     echo
14328     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14329     ## Running $as_me. ##
14330     _ASBOX
14331 db 941 $as_echo "$ac_log"
14332 michael 912 } >&5
14333    
14334     _ACEOF
14335 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14336 michael 912 #
14337     # INIT-COMMANDS
14338     #
14339     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14340    
14341 michael 945
14342     # The HP-UX ksh and POSIX shell print the target directory to stdout
14343     # if CDPATH is set.
14344     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14345    
14346     sed_quote_subst='$sed_quote_subst'
14347     double_quote_subst='$double_quote_subst'
14348     delay_variable_subst='$delay_variable_subst'
14349     macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14350     macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14351 michael 977 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14352 michael 945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14353     pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14354     enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14355     host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14356     host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14357     host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14358     build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14359     build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14360     build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14361     SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14362     Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14363     GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14364     EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14365     FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14366     LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14367     NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14368     LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14369     max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14370     ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14371     exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14372     lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14373     lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14374     lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14375     reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14376     reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14377     OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14378     deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14379     file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14380     AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14381     AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14382     STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14383     RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14384     old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14385     old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14386     old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14387     CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14388     CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14389     compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14390     GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14391     lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14392     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14393     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"`'
14394     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"`'
14395     objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14396     SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14397     ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14398     MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14399     lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14400     lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14401     lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14402     lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14403     lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14404     need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14405     DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14406     NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14407     LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14408     OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14409     OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14410     libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14411     shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14412     extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14413     archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14414     enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14415     export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14416     whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14417     compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14418     old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14419     old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14420     archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14421     archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14422     module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14423     module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14424     with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14425     allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14426     no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14427     hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14428     hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14429     hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14430     hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14431     hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14432     hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14433     hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14434     hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14435     inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14436     link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14437     fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14438     always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14439     export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14440     exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14441     include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14442     prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14443     file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14444     variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14445     need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14446     need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14447     version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14448     runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14449     shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14450     shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14451     libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14452     library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14453     soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14454     postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14455     postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14456     finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14457     finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14458     hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14459     sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14460     sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14461     hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14462     enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14463     enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14464     enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14465     old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14466     striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14467    
14468     LTCC='$LTCC'
14469     LTCFLAGS='$LTCFLAGS'
14470     compiler='$compiler_DEFAULT'
14471    
14472     # Quote evaled strings.
14473     for var in SED \
14474     GREP \
14475     EGREP \
14476     FGREP \
14477     LD \
14478     NM \
14479     LN_S \
14480     lt_SP2NL \
14481     lt_NL2SP \
14482     reload_flag \
14483     OBJDUMP \
14484     deplibs_check_method \
14485     file_magic_cmd \
14486     AR \
14487     AR_FLAGS \
14488     STRIP \
14489     RANLIB \
14490     CC \
14491     CFLAGS \
14492     compiler \
14493     lt_cv_sys_global_symbol_pipe \
14494     lt_cv_sys_global_symbol_to_cdecl \
14495     lt_cv_sys_global_symbol_to_c_name_address \
14496     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14497     SHELL \
14498     ECHO \
14499     lt_prog_compiler_no_builtin_flag \
14500     lt_prog_compiler_wl \
14501     lt_prog_compiler_pic \
14502     lt_prog_compiler_static \
14503     lt_cv_prog_compiler_c_o \
14504     need_locks \
14505     DSYMUTIL \
14506     NMEDIT \
14507     LIPO \
14508     OTOOL \
14509     OTOOL64 \
14510     shrext_cmds \
14511     export_dynamic_flag_spec \
14512     whole_archive_flag_spec \
14513     compiler_needs_object \
14514     with_gnu_ld \
14515     allow_undefined_flag \
14516     no_undefined_flag \
14517     hardcode_libdir_flag_spec \
14518     hardcode_libdir_flag_spec_ld \
14519     hardcode_libdir_separator \
14520     fix_srcfile_path \
14521     exclude_expsyms \
14522     include_expsyms \
14523     file_list_spec \
14524     variables_saved_for_relink \
14525     libname_spec \
14526     library_names_spec \
14527     soname_spec \
14528     finish_eval \
14529     old_striplib \
14530     striplib; do
14531     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14532     *[\\\\\\\`\\"\\\$]*)
14533     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14534     ;;
14535     *)
14536     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14537     ;;
14538     esac
14539     done
14540    
14541     # Double-quote double-evaled strings.
14542     for var in reload_cmds \
14543     old_postinstall_cmds \
14544     old_postuninstall_cmds \
14545     old_archive_cmds \
14546     extract_expsyms_cmds \
14547     old_archive_from_new_cmds \
14548     old_archive_from_expsyms_cmds \
14549     archive_cmds \
14550     archive_expsym_cmds \
14551     module_cmds \
14552     module_expsym_cmds \
14553     export_symbols_cmds \
14554     prelink_cmds \
14555     postinstall_cmds \
14556     postuninstall_cmds \
14557     finish_cmds \
14558     sys_lib_search_path_spec \
14559     sys_lib_dlsearch_path_spec; do
14560     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14561     *[\\\\\\\`\\"\\\$]*)
14562     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14563     ;;
14564     *)
14565     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14566     ;;
14567     esac
14568     done
14569    
14570     # Fix-up fallback echo if it was mangled by the above quoting rules.
14571     case \$lt_ECHO in
14572     *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14573     ;;
14574     esac
14575    
14576     ac_aux_dir='$ac_aux_dir'
14577     xsi_shell='$xsi_shell'
14578     lt_shell_append='$lt_shell_append'
14579    
14580     # See if we are running on zsh, and set the options which allow our
14581     # commands through without removal of \ escapes INIT.
14582     if test -n "\${ZSH_VERSION+set}" ; then
14583     setopt NO_GLOB_SUBST
14584     fi
14585    
14586    
14587     PACKAGE='$PACKAGE'
14588     VERSION='$VERSION'
14589     TIMESTAMP='$TIMESTAMP'
14590     RM='$RM'
14591     ofile='$ofile'
14592    
14593    
14594    
14595    
14596 michael 912 _ACEOF
14597    
14598 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14599 michael 912
14600     # Handling of arguments.
14601     for ac_config_target in $ac_config_targets
14602     do
14603     case $ac_config_target in
14604     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14605     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14606 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14607 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14608     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14609     "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14610     "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14611     "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14612     "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14613     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14614     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14615     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14616     "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14617     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14618     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14619     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14620     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14621     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14622     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14623 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14624 michael 912
14625 michael 967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14626 michael 912 esac
14627     done
14628    
14629    
14630     # If the user did not use the arguments to specify the items to instantiate,
14631     # then the envvar interface is used. Set only those that are not.
14632     # We use the long form for the default assignment because of an extremely
14633     # bizarre bug on SunOS 4.1.3.
14634     if $ac_need_defaults; then
14635     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14636     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14637     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14638     fi
14639    
14640     # Have a temporary directory for convenience. Make it in the build tree
14641     # simply because there is no reason against having it here, and in addition,
14642     # creating and moving files from /tmp can sometimes cause problems.
14643     # Hook for its removal unless debugging.
14644     # Note that there is a small window in which the directory will not be cleaned:
14645     # after its creation but before its name has been assigned to `$tmp'.
14646     $debug ||
14647     {
14648     tmp=
14649     trap 'exit_status=$?
14650     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14651     ' 0
14652 michael 967 trap 'as_fn_exit 1' 1 2 13 15
14653 michael 912 }
14654     # Create a (secure) tmp directory for tmp files.
14655    
14656     {
14657     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14658     test -n "$tmp" && test -d "$tmp"
14659     } ||
14660     {
14661     tmp=./conf$$-$RANDOM
14662     (umask 077 && mkdir "$tmp")
14663 michael 967 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14664 michael 912
14665 db 941 # Set up the scripts for CONFIG_FILES section.
14666     # No need to generate them if there are no CONFIG_FILES.
14667     # This happens for instance with `./config.status config.h'.
14668 michael 912 if test -n "$CONFIG_FILES"; then
14669    
14670 db 941
14671 michael 967 ac_cr=`echo X | tr X '\015'`
14672     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14673     # But we know of no other shell where ac_cr would be empty at this
14674     # point, so we can use a bashism as a fallback.
14675     if test "x$ac_cr" = x; then
14676     eval ac_cr=\$\'\\r\'
14677     fi
14678 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14679     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14680 michael 967 ac_cs_awk_cr='\r'
14681 db 941 else
14682     ac_cs_awk_cr=$ac_cr
14683     fi
14684    
14685     echo 'BEGIN {' >"$tmp/subs1.awk" &&
14686 michael 912 _ACEOF
14687    
14688    
14689 db 941 {
14690     echo "cat >conf$$subs.awk <<_ACEOF" &&
14691     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14692     echo "_ACEOF"
14693     } >conf$$subs.sh ||
14694 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14695 db 941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14696 michael 912 ac_delim='%!_!# '
14697     for ac_last_try in false false false false false :; do
14698 db 941 . ./conf$$subs.sh ||
14699 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14700 michael 912
14701 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14702     if test $ac_delim_n = $ac_delim_num; then
14703 michael 912 break
14704     elif $ac_last_try; then
14705 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14706 michael 912 else
14707     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14708     fi
14709     done
14710 db 941 rm -f conf$$subs.sh
14711 michael 912
14712 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14713     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14714 michael 912 _ACEOF
14715 db 941 sed -n '
14716     h
14717     s/^/S["/; s/!.*/"]=/
14718     p
14719     g
14720     s/^[^!]*!//
14721     :repl
14722     t repl
14723     s/'"$ac_delim"'$//
14724     t delim
14725     :nl
14726     h
14727     s/\(.\{148\}\).*/\1/
14728     t more1
14729     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14730     p
14731     n
14732     b repl
14733     :more1
14734     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14735     p
14736     g
14737     s/.\{148\}//
14738     t nl
14739     :delim
14740     h
14741     s/\(.\{148\}\).*/\1/
14742     t more2
14743     s/["\\]/\\&/g; s/^/"/; s/$/"/
14744     p
14745     b
14746     :more2
14747     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14748     p
14749     g
14750     s/.\{148\}//
14751     t delim
14752     ' <conf$$subs.awk | sed '
14753     /^[^""]/{
14754     N
14755     s/\n//
14756     }
14757     ' >>$CONFIG_STATUS || ac_write_fail=1
14758     rm -f conf$$subs.awk
14759     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14760     _ACAWK
14761     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14762     for (key in S) S_is_set[key] = 1
14763     FS = ""
14764 michael 912
14765 db 941 }
14766     {
14767     line = $ 0
14768     nfields = split(line, field, "@")
14769     substed = 0
14770     len = length(field[1])
14771     for (i = 2; i < nfields; i++) {
14772     key = field[i]
14773     keylen = length(key)
14774     if (S_is_set[key]) {
14775     value = S[key]
14776     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14777     len += length(value) + length(field[++i])
14778     substed = 1
14779     } else
14780     len += 1 + keylen
14781     }
14782 michael 912
14783 db 941 print line
14784     }
14785    
14786     _ACAWK
14787 michael 912 _ACEOF
14788 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14789     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14790     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14791     else
14792     cat
14793     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14794 michael 967 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14795 michael 912 _ACEOF
14796    
14797     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14798     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14799     # trailing colons and then remove the whole line if VPATH becomes empty
14800     # (actually we leave an empty line to preserve line numbers).
14801     if test "x$srcdir" = x.; then
14802     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14803     s/:*\$(srcdir):*/:/
14804     s/:*\${srcdir}:*/:/
14805     s/:*@srcdir@:*/:/
14806     s/^\([^=]*=[ ]*\):*/\1/
14807     s/:*$//
14808     s/^[^=]*=[ ]*$//
14809     }'
14810     fi
14811    
14812 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14813 michael 912 fi # test -n "$CONFIG_FILES"
14814    
14815 db 941 # Set up the scripts for CONFIG_HEADERS section.
14816     # No need to generate them if there are no CONFIG_HEADERS.
14817     # This happens for instance with `./config.status Makefile'.
14818     if test -n "$CONFIG_HEADERS"; then
14819     cat >"$tmp/defines.awk" <<\_ACAWK ||
14820     BEGIN {
14821     _ACEOF
14822 michael 912
14823 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14824     # here-document in config.status, that substitutes the proper values into
14825     # config.h.in to produce config.h.
14826    
14827     # Create a delimiter string that does not exist in confdefs.h, to ease
14828     # handling of long lines.
14829     ac_delim='%!_!# '
14830     for ac_last_try in false false :; do
14831     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14832     if test -z "$ac_t"; then
14833     break
14834     elif $ac_last_try; then
14835 michael 967 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14836 db 941 else
14837     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14838     fi
14839     done
14840    
14841     # For the awk script, D is an array of macro values keyed by name,
14842     # likewise P contains macro parameters if any. Preserve backslash
14843     # newline sequences.
14844    
14845     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14846     sed -n '
14847     s/.\{148\}/&'"$ac_delim"'/g
14848     t rset
14849     :rset
14850     s/^[ ]*#[ ]*define[ ][ ]*/ /
14851     t def
14852     d
14853     :def
14854     s/\\$//
14855     t bsnl
14856     s/["\\]/\\&/g
14857     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14858     D["\1"]=" \3"/p
14859     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14860     d
14861     :bsnl
14862     s/["\\]/\\&/g
14863     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14864     D["\1"]=" \3\\\\\\n"\\/p
14865     t cont
14866     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14867     t cont
14868     d
14869     :cont
14870     n
14871     s/.\{148\}/&'"$ac_delim"'/g
14872     t clear
14873     :clear
14874     s/\\$//
14875     t bsnlc
14876     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14877     d
14878     :bsnlc
14879     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14880     b cont
14881     ' <confdefs.h | sed '
14882     s/'"$ac_delim"'/"\\\
14883     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14884    
14885     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14886     for (key in D) D_is_set[key] = 1
14887     FS = ""
14888     }
14889     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14890     line = \$ 0
14891     split(line, arg, " ")
14892     if (arg[1] == "#") {
14893     defundef = arg[2]
14894     mac1 = arg[3]
14895     } else {
14896     defundef = substr(arg[1], 2)
14897     mac1 = arg[2]
14898     }
14899     split(mac1, mac2, "(") #)
14900     macro = mac2[1]
14901 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
14902 db 941 if (D_is_set[macro]) {
14903     # Preserve the white space surrounding the "#".
14904     print prefix "define", macro P[macro] D[macro]
14905     next
14906     } else {
14907     # Replace #undef with comments. This is necessary, for example,
14908     # in the case of _POSIX_SOURCE, which is predefined and required
14909     # on some systems where configure will not decide to define it.
14910     if (defundef == "undef") {
14911 michael 942 print "/*", prefix defundef, macro, "*/"
14912 db 941 next
14913     }
14914     }
14915     }
14916     { print }
14917     _ACAWK
14918     _ACEOF
14919     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14920 michael 967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14921 db 941 fi # test -n "$CONFIG_HEADERS"
14922    
14923    
14924     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14925     shift
14926     for ac_tag
14927 michael 912 do
14928     case $ac_tag in
14929     :[FHLC]) ac_mode=$ac_tag; continue;;
14930     esac
14931     case $ac_mode$ac_tag in
14932     :[FHL]*:*);;
14933 michael 967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14934 michael 912 :[FH]-) ac_tag=-:-;;
14935     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14936     esac
14937     ac_save_IFS=$IFS
14938     IFS=:
14939     set x $ac_tag
14940     IFS=$ac_save_IFS
14941     shift
14942     ac_file=$1
14943     shift
14944    
14945     case $ac_mode in
14946     :L) ac_source=$1;;
14947     :[FH])
14948     ac_file_inputs=
14949     for ac_f
14950     do
14951     case $ac_f in
14952     -) ac_f="$tmp/stdin";;
14953     *) # Look for the file first in the build tree, then in the source tree
14954     # (if the path is not absolute). The absolute path cannot be DOS-style,
14955     # because $ac_f cannot contain `:'.
14956     test -f "$ac_f" ||
14957     case $ac_f in
14958     [\\/$]*) false;;
14959     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14960     esac ||
14961 michael 967 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14962 michael 912 esac
14963 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14964 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
14965 michael 912 done
14966    
14967     # Let's still pretend it is `configure' which instantiates (i.e., don't
14968     # use $as_me), people would be surprised to read:
14969     # /* config.h. Generated by config.status. */
14970 db 941 configure_input='Generated from '`
14971     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14972     `' by configure.'
14973 michael 912 if test x"$ac_file" != x-; then
14974     configure_input="$ac_file. $configure_input"
14975 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14976 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
14977 michael 912 fi
14978 db 941 # Neutralize special characters interpreted by sed in replacement strings.
14979     case $configure_input in #(
14980     *\&* | *\|* | *\\* )
14981     ac_sed_conf_input=`$as_echo "$configure_input" |
14982     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14983     *) ac_sed_conf_input=$configure_input;;
14984     esac
14985 michael 912
14986     case $ac_tag in
14987 db 941 *:-:* | *:-) cat >"$tmp/stdin" \
14988 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14989 michael 912 esac
14990     ;;
14991     esac
14992    
14993     ac_dir=`$as_dirname -- "$ac_file" ||
14994     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14995     X"$ac_file" : 'X\(//\)[^/]' \| \
14996     X"$ac_file" : 'X\(//\)$' \| \
14997     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14998 db 941 $as_echo X"$ac_file" |
14999 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15000     s//\1/
15001     q
15002     }
15003     /^X\(\/\/\)[^/].*/{
15004     s//\1/
15005     q
15006     }
15007     /^X\(\/\/\)$/{
15008     s//\1/
15009     q
15010     }
15011     /^X\(\/\).*/{
15012     s//\1/
15013     q
15014     }
15015     s/.*/./; q'`
15016 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15017 michael 912 ac_builddir=.
15018    
15019     case "$ac_dir" in
15020     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15021     *)
15022 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15023 michael 912 # A ".." for each directory in $ac_dir_suffix.
15024 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15025 michael 912 case $ac_top_builddir_sub in
15026     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15027     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15028     esac ;;
15029     esac
15030     ac_abs_top_builddir=$ac_pwd
15031     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15032     # for backward compatibility:
15033     ac_top_builddir=$ac_top_build_prefix
15034    
15035     case $srcdir in
15036     .) # We are building in place.
15037     ac_srcdir=.
15038     ac_top_srcdir=$ac_top_builddir_sub
15039     ac_abs_top_srcdir=$ac_pwd ;;
15040     [\\/]* | ?:[\\/]* ) # Absolute name.
15041     ac_srcdir=$srcdir$ac_dir_suffix;
15042     ac_top_srcdir=$srcdir
15043     ac_abs_top_srcdir=$srcdir ;;
15044     *) # Relative name.
15045     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15046     ac_top_srcdir=$ac_top_build_prefix$srcdir
15047     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15048     esac
15049     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15050    
15051    
15052     case $ac_mode in
15053     :F)
15054     #
15055     # CONFIG_FILE
15056     #
15057    
15058     case $INSTALL in
15059     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15060     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15061     esac
15062     ac_MKDIR_P=$MKDIR_P
15063     case $MKDIR_P in
15064     [\\/$]* | ?:[\\/]* ) ;;
15065     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15066     esac
15067     _ACEOF
15068    
15069 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070 michael 912 # If the template does not know about datarootdir, expand it.
15071     # FIXME: This hack should be removed a few years after 2.60.
15072     ac_datarootdir_hack=; ac_datarootdir_seen=
15073 db 941 ac_sed_dataroot='
15074     /datarootdir/ {
15075 michael 912 p
15076     q
15077     }
15078     /@datadir@/p
15079     /@docdir@/p
15080     /@infodir@/p
15081     /@localedir@/p
15082 michael 967 /@mandir@/p'
15083 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15084 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
15085     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15086 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15087 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15088 michael 912 _ACEOF
15089 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15090 michael 912 ac_datarootdir_hack='
15091     s&@datadir@&$datadir&g
15092     s&@docdir@&$docdir&g
15093     s&@infodir@&$infodir&g
15094     s&@localedir@&$localedir&g
15095     s&@mandir@&$mandir&g
15096 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
15097 michael 912 esac
15098     _ACEOF
15099    
15100     # Neutralize VPATH when `$srcdir' = `.'.
15101     # Shell code in configure.ac might set extrasub.
15102     # FIXME: do we really want to maintain this feature?
15103 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15104     ac_sed_extra="$ac_vpsub
15105 michael 912 $extrasub
15106     _ACEOF
15107 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15108 michael 912 :t
15109     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15110 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
15111 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
15112 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15113 michael 912 s&@srcdir@&$ac_srcdir&;t t
15114     s&@abs_srcdir@&$ac_abs_srcdir&;t t
15115     s&@top_srcdir@&$ac_top_srcdir&;t t
15116     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15117     s&@builddir@&$ac_builddir&;t t
15118     s&@abs_builddir@&$ac_abs_builddir&;t t
15119     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15120     s&@INSTALL@&$ac_INSTALL&;t t
15121     s&@MKDIR_P@&$ac_MKDIR_P&;t t
15122     $ac_datarootdir_hack
15123 db 941 "
15124     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15125 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15126 michael 912
15127     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15128     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15129     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15130 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15131 michael 912 which seems to be undefined. Please make sure it is defined." >&5
15132 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15133 michael 912 which seems to be undefined. Please make sure it is defined." >&2;}
15134    
15135     rm -f "$tmp/stdin"
15136     case $ac_file in
15137 db 941 -) cat "$tmp/out" && rm -f "$tmp/out";;
15138     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15139     esac \
15140 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15141 michael 912 ;;
15142     :H)
15143     #
15144     # CONFIG_HEADER
15145     #
15146     if test x"$ac_file" != x-; then
15147 db 941 {
15148     $as_echo "/* $configure_input */" \
15149     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15150     } >"$tmp/config.h" \
15151 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15152 db 941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15153 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15154 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15155 michael 912 else
15156 db 941 rm -f "$ac_file"
15157     mv "$tmp/config.h" "$ac_file" \
15158 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15159 michael 912 fi
15160     else
15161 db 941 $as_echo "/* $configure_input */" \
15162     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15163 michael 967 || as_fn_error "could not create -" "$LINENO" 5
15164 michael 912 fi
15165 db 941 # Compute "$ac_file"'s index in $config_headers.
15166     _am_arg="$ac_file"
15167 michael 912 _am_stamp_count=1
15168     for _am_header in $config_headers :; do
15169     case $_am_header in
15170 db 941 $_am_arg | $_am_arg:* )
15171 michael 912 break ;;
15172     * )
15173     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15174     esac
15175     done
15176 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15177     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15178     X"$_am_arg" : 'X\(//\)[^/]' \| \
15179     X"$_am_arg" : 'X\(//\)$' \| \
15180     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15181     $as_echo X"$_am_arg" |
15182 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15183     s//\1/
15184     q
15185     }
15186     /^X\(\/\/\)[^/].*/{
15187     s//\1/
15188     q
15189     }
15190     /^X\(\/\/\)$/{
15191     s//\1/
15192     q
15193     }
15194     /^X\(\/\).*/{
15195     s//\1/
15196     q
15197     }
15198     s/.*/./; q'`/stamp-h$_am_stamp_count
15199     ;;
15200    
15201 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15202 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
15203 michael 912 ;;
15204     esac
15205    
15206    
15207     case $ac_file$ac_mode in
15208 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15209     # Autoconf 2.62 quotes --file arguments for eval, but not when files
15210     # are listed without --file. Let's play safe and only enable the eval
15211     # if we detect the quoting.
15212     case $CONFIG_FILES in
15213     *\'*) eval set x "$CONFIG_FILES" ;;
15214     *) set x $CONFIG_FILES ;;
15215     esac
15216     shift
15217     for mf
15218     do
15219     # Strip MF so we end up with the name of the file.
15220     mf=`echo "$mf" | sed -e 's/:.*$//'`
15221     # Check whether this is an Automake generated Makefile or not.
15222     # We used to match only the files named `Makefile.in', but
15223     # some people rename them; so instead we look at the file content.
15224     # Grep'ing the first line is not enough: some people post-process
15225     # each Makefile.in and add a new line on top of each file to say so.
15226     # Grep'ing the whole file is not good either: AIX grep has a line
15227     # limit of 2048, but all sed's we know have understand at least 4000.
15228     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15229     dirpart=`$as_dirname -- "$mf" ||
15230 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15231     X"$mf" : 'X\(//\)[^/]' \| \
15232     X"$mf" : 'X\(//\)$' \| \
15233     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15234 db 941 $as_echo X"$mf" |
15235 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15236     s//\1/
15237     q
15238     }
15239     /^X\(\/\/\)[^/].*/{
15240     s//\1/
15241     q
15242     }
15243     /^X\(\/\/\)$/{
15244     s//\1/
15245     q
15246     }
15247     /^X\(\/\).*/{
15248     s//\1/
15249     q
15250     }
15251     s/.*/./; q'`
15252 michael 945 else
15253     continue
15254     fi
15255     # Extract the definition of DEPDIR, am__include, and am__quote
15256     # from the Makefile without running `make'.
15257     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15258     test -z "$DEPDIR" && continue
15259     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15260     test -z "am__include" && continue
15261     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15262     # When using ansi2knr, U may be empty or an underscore; expand it
15263     U=`sed -n 's/^U = //p' < "$mf"`
15264     # Find all dependency output files, they are included files with
15265     # $(DEPDIR) in their names. We invoke sed twice because it is the
15266     # simplest approach to changing $(DEPDIR) to its actual value in the
15267     # expansion.
15268     for file in `sed -n "
15269     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15270     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15271     # Make sure the directory exists.
15272     test -f "$dirpart/$file" && continue
15273     fdir=`$as_dirname -- "$file" ||
15274 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15275     X"$file" : 'X\(//\)[^/]' \| \
15276     X"$file" : 'X\(//\)$' \| \
15277     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15278 db 941 $as_echo X"$file" |
15279 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15280     s//\1/
15281     q
15282     }
15283     /^X\(\/\/\)[^/].*/{
15284     s//\1/
15285     q
15286     }
15287     /^X\(\/\/\)$/{
15288     s//\1/
15289     q
15290     }
15291     /^X\(\/\).*/{
15292     s//\1/
15293     q
15294     }
15295     s/.*/./; q'`
15296 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15297 michael 945 # echo "creating $dirpart/$file"
15298     echo '# dummy' > "$dirpart/$file"
15299     done
15300 michael 912 done
15301 michael 945 }
15302 michael 912 ;;
15303 michael 945 "libtool":C)
15304 michael 912
15305 michael 945 # See if we are running on zsh, and set the options which allow our
15306     # commands through without removal of \ escapes.
15307     if test -n "${ZSH_VERSION+set}" ; then
15308     setopt NO_GLOB_SUBST
15309     fi
15310    
15311     cfgfile="${ofile}T"
15312     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15313     $RM "$cfgfile"
15314    
15315     cat <<_LT_EOF >> "$cfgfile"
15316     #! $SHELL
15317    
15318     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15319     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15320     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15321     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15322     #
15323     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15324     # 2006, 2007, 2008 Free Software Foundation, Inc.
15325     # Written by Gordon Matzigkeit, 1996
15326     #
15327     # This file is part of GNU Libtool.
15328     #
15329     # GNU Libtool is free software; you can redistribute it and/or
15330     # modify it under the terms of the GNU General Public License as
15331     # published by the Free Software Foundation; either version 2 of
15332     # the License, or (at your option) any later version.
15333     #
15334     # As a special exception to the GNU General Public License,
15335     # if you distribute this file as part of a program or library that
15336     # is built using GNU Libtool, you may include this file under the
15337     # same distribution terms that you use for the rest of that program.
15338     #
15339     # GNU Libtool is distributed in the hope that it will be useful,
15340     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15341     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15342     # GNU General Public License for more details.
15343     #
15344     # You should have received a copy of the GNU General Public License
15345     # along with GNU Libtool; see the file COPYING. If not, a copy
15346     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15347     # obtained by writing to the Free Software Foundation, Inc.,
15348     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15349    
15350    
15351     # The names of the tagged configurations supported by this script.
15352     available_tags=""
15353    
15354     # ### BEGIN LIBTOOL CONFIG
15355    
15356     # Which release of libtool.m4 was used?
15357     macro_version=$macro_version
15358     macro_revision=$macro_revision
15359    
15360 michael 977 # Whether or not to build static libraries.
15361     build_old_libs=$enable_static
15362    
15363 michael 945 # Whether or not to build shared libraries.
15364     build_libtool_libs=$enable_shared
15365    
15366     # What type of objects to build.
15367     pic_mode=$pic_mode
15368    
15369     # Whether or not to optimize for fast installation.
15370     fast_install=$enable_fast_install
15371    
15372     # The host system.
15373     host_alias=$host_alias
15374     host=$host
15375     host_os=$host_os
15376    
15377     # The build system.
15378     build_alias=$build_alias
15379     build=$build
15380     build_os=$build_os
15381    
15382     # A sed program that does not truncate output.
15383     SED=$lt_SED
15384    
15385     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15386     Xsed="\$SED -e 1s/^X//"
15387    
15388     # A grep program that handles long lines.
15389     GREP=$lt_GREP
15390    
15391     # An ERE matcher.
15392     EGREP=$lt_EGREP
15393    
15394     # A literal string matcher.
15395     FGREP=$lt_FGREP
15396    
15397     # A BSD- or MS-compatible name lister.
15398     NM=$lt_NM
15399    
15400     # Whether we need soft or hard links.
15401     LN_S=$lt_LN_S
15402    
15403     # What is the maximum length of a command?
15404     max_cmd_len=$max_cmd_len
15405    
15406     # Object file suffix (normally "o").
15407     objext=$ac_objext
15408    
15409     # Executable file suffix (normally "").
15410     exeext=$exeext
15411    
15412     # whether the shell understands "unset".
15413     lt_unset=$lt_unset
15414    
15415     # turn spaces into newlines.
15416     SP2NL=$lt_lt_SP2NL
15417    
15418     # turn newlines into spaces.
15419     NL2SP=$lt_lt_NL2SP
15420    
15421     # How to create reloadable object files.
15422     reload_flag=$lt_reload_flag
15423     reload_cmds=$lt_reload_cmds
15424    
15425     # An object symbol dumper.
15426     OBJDUMP=$lt_OBJDUMP
15427    
15428     # Method to check whether dependent libraries are shared objects.
15429     deplibs_check_method=$lt_deplibs_check_method
15430    
15431     # Command to use when deplibs_check_method == "file_magic".
15432     file_magic_cmd=$lt_file_magic_cmd
15433    
15434     # The archiver.
15435     AR=$lt_AR
15436     AR_FLAGS=$lt_AR_FLAGS
15437    
15438     # A symbol stripping program.
15439     STRIP=$lt_STRIP
15440    
15441     # Commands used to install an old-style archive.
15442     RANLIB=$lt_RANLIB
15443     old_postinstall_cmds=$lt_old_postinstall_cmds
15444     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15445    
15446     # A C compiler.
15447     LTCC=$lt_CC
15448    
15449     # LTCC compiler flags.
15450     LTCFLAGS=$lt_CFLAGS
15451    
15452     # Take the output of nm and produce a listing of raw symbols and C names.
15453     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15454    
15455     # Transform the output of nm in a proper C declaration.
15456     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15457    
15458     # Transform the output of nm in a C name address pair.
15459     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15460    
15461     # Transform the output of nm in a C name address pair when lib prefix is needed.
15462     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15463    
15464     # The name of the directory that contains temporary libtool files.
15465     objdir=$objdir
15466    
15467     # Shell to use when invoking shell scripts.
15468     SHELL=$lt_SHELL
15469    
15470     # An echo program that does not interpret backslashes.
15471     ECHO=$lt_ECHO
15472    
15473     # Used to examine libraries when file_magic_cmd begins with "file".
15474     MAGIC_CMD=$MAGIC_CMD
15475    
15476     # Must we lock files when doing compilation?
15477     need_locks=$lt_need_locks
15478    
15479     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15480     DSYMUTIL=$lt_DSYMUTIL
15481    
15482     # Tool to change global to local symbols on Mac OS X.
15483     NMEDIT=$lt_NMEDIT
15484    
15485     # Tool to manipulate fat objects and archives on Mac OS X.
15486     LIPO=$lt_LIPO
15487    
15488     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15489     OTOOL=$lt_OTOOL
15490    
15491     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15492     OTOOL64=$lt_OTOOL64
15493    
15494     # Old archive suffix (normally "a").
15495     libext=$libext
15496    
15497     # Shared library suffix (normally ".so").
15498     shrext_cmds=$lt_shrext_cmds
15499    
15500     # The commands to extract the exported symbol list from a shared archive.
15501     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15502    
15503     # Variables whose values should be saved in libtool wrapper scripts and
15504     # restored at link time.
15505     variables_saved_for_relink=$lt_variables_saved_for_relink
15506    
15507     # Do we need the "lib" prefix for modules?
15508     need_lib_prefix=$need_lib_prefix
15509    
15510     # Do we need a version for libraries?
15511     need_version=$need_version
15512    
15513     # Library versioning type.
15514     version_type=$version_type
15515    
15516     # Shared library runtime path variable.
15517     runpath_var=$runpath_var
15518    
15519     # Shared library path variable.
15520     shlibpath_var=$shlibpath_var
15521    
15522     # Is shlibpath searched before the hard-coded library search path?
15523     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15524    
15525     # Format of library name prefix.
15526     libname_spec=$lt_libname_spec
15527    
15528     # List of archive names. First name is the real one, the rest are links.
15529     # The last name is the one that the linker finds with -lNAME
15530     library_names_spec=$lt_library_names_spec
15531    
15532     # The coded name of the library, if different from the real name.
15533     soname_spec=$lt_soname_spec
15534    
15535     # Command to use after installation of a shared archive.
15536     postinstall_cmds=$lt_postinstall_cmds
15537    
15538     # Command to use after uninstallation of a shared archive.
15539     postuninstall_cmds=$lt_postuninstall_cmds
15540    
15541     # Commands used to finish a libtool library installation in a directory.
15542     finish_cmds=$lt_finish_cmds
15543    
15544     # As "finish_cmds", except a single script fragment to be evaled but
15545     # not shown.
15546     finish_eval=$lt_finish_eval
15547    
15548     # Whether we should hardcode library paths into libraries.
15549     hardcode_into_libs=$hardcode_into_libs
15550    
15551     # Compile-time system search path for libraries.
15552     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15553    
15554     # Run-time system search path for libraries.
15555     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15556    
15557     # Whether dlopen is supported.
15558     dlopen_support=$enable_dlopen
15559    
15560     # Whether dlopen of programs is supported.
15561     dlopen_self=$enable_dlopen_self
15562    
15563     # Whether dlopen of statically linked programs is supported.
15564     dlopen_self_static=$enable_dlopen_self_static
15565    
15566     # Commands to strip libraries.
15567     old_striplib=$lt_old_striplib
15568     striplib=$lt_striplib
15569    
15570    
15571     # The linker used to build libraries.
15572     LD=$lt_LD
15573    
15574     # Commands used to build an old-style archive.
15575     old_archive_cmds=$lt_old_archive_cmds
15576    
15577     # A language specific compiler.
15578     CC=$lt_compiler
15579    
15580     # Is the compiler the GNU compiler?
15581     with_gcc=$GCC
15582    
15583     # Compiler flag to turn off builtin functions.
15584     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15585    
15586     # How to pass a linker flag through the compiler.
15587     wl=$lt_lt_prog_compiler_wl
15588    
15589     # Additional compiler flags for building library objects.
15590     pic_flag=$lt_lt_prog_compiler_pic
15591    
15592     # Compiler flag to prevent dynamic linking.
15593     link_static_flag=$lt_lt_prog_compiler_static
15594    
15595     # Does compiler simultaneously support -c and -o options?
15596     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15597    
15598     # Whether or not to add -lc for building shared libraries.
15599     build_libtool_need_lc=$archive_cmds_need_lc
15600    
15601     # Whether or not to disallow shared libs when runtime libs are static.
15602     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15603    
15604     # Compiler flag to allow reflexive dlopens.
15605     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15606    
15607     # Compiler flag to generate shared objects directly from archives.
15608     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15609    
15610     # Whether the compiler copes with passing no objects directly.
15611     compiler_needs_object=$lt_compiler_needs_object
15612    
15613     # Create an old-style archive from a shared archive.
15614     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15615    
15616     # Create a temporary old-style archive to link instead of a shared archive.
15617     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15618    
15619     # Commands used to build a shared archive.
15620     archive_cmds=$lt_archive_cmds
15621     archive_expsym_cmds=$lt_archive_expsym_cmds
15622    
15623     # Commands used to build a loadable module if different from building
15624     # a shared archive.
15625     module_cmds=$lt_module_cmds
15626     module_expsym_cmds=$lt_module_expsym_cmds
15627    
15628     # Whether we are building with GNU ld or not.
15629     with_gnu_ld=$lt_with_gnu_ld
15630    
15631     # Flag that allows shared libraries with undefined symbols to be built.
15632     allow_undefined_flag=$lt_allow_undefined_flag
15633    
15634     # Flag that enforces no undefined symbols.
15635     no_undefined_flag=$lt_no_undefined_flag
15636    
15637     # Flag to hardcode \$libdir into a binary during linking.
15638     # This must work even if \$libdir does not exist
15639     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15640    
15641     # If ld is used when linking, flag to hardcode \$libdir into a binary
15642     # during linking. This must work even if \$libdir does not exist.
15643     hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15644    
15645     # Whether we need a single "-rpath" flag with a separated argument.
15646     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15647    
15648     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15649     # DIR into the resulting binary.
15650     hardcode_direct=$hardcode_direct
15651    
15652     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15653     # DIR into the resulting binary and the resulting library dependency is
15654     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15655     # library is relocated.
15656     hardcode_direct_absolute=$hardcode_direct_absolute
15657    
15658     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15659     # into the resulting binary.
15660     hardcode_minus_L=$hardcode_minus_L
15661    
15662     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15663     # into the resulting binary.
15664     hardcode_shlibpath_var=$hardcode_shlibpath_var
15665    
15666     # Set to "yes" if building a shared library automatically hardcodes DIR
15667     # into the library and all subsequent libraries and executables linked
15668     # against it.
15669     hardcode_automatic=$hardcode_automatic
15670    
15671     # Set to yes if linker adds runtime paths of dependent libraries
15672     # to runtime path list.
15673     inherit_rpath=$inherit_rpath
15674    
15675     # Whether libtool must link a program against all its dependency libraries.
15676     link_all_deplibs=$link_all_deplibs
15677    
15678     # Fix the shell variable \$srcfile for the compiler.
15679     fix_srcfile_path=$lt_fix_srcfile_path
15680    
15681     # Set to "yes" if exported symbols are required.
15682     always_export_symbols=$always_export_symbols
15683    
15684     # The commands to list exported symbols.
15685     export_symbols_cmds=$lt_export_symbols_cmds
15686    
15687     # Symbols that should not be listed in the preloaded symbols.
15688     exclude_expsyms=$lt_exclude_expsyms
15689    
15690     # Symbols that must always be exported.
15691     include_expsyms=$lt_include_expsyms
15692    
15693     # Commands necessary for linking programs (against libraries) with templates.
15694     prelink_cmds=$lt_prelink_cmds
15695    
15696     # Specify filename containing input files.
15697     file_list_spec=$lt_file_list_spec
15698    
15699     # How to hardcode a shared library path into an executable.
15700     hardcode_action=$hardcode_action
15701    
15702     # ### END LIBTOOL CONFIG
15703    
15704     _LT_EOF
15705    
15706     case $host_os in
15707     aix3*)
15708     cat <<\_LT_EOF >> "$cfgfile"
15709     # AIX sometimes has problems with the GCC collect2 program. For some
15710     # reason, if we set the COLLECT_NAMES environment variable, the problems
15711     # vanish in a puff of smoke.
15712     if test "X${COLLECT_NAMES+set}" != Xset; then
15713     COLLECT_NAMES=
15714     export COLLECT_NAMES
15715     fi
15716     _LT_EOF
15717     ;;
15718 michael 912 esac
15719 michael 945
15720    
15721     ltmain="$ac_aux_dir/ltmain.sh"
15722    
15723    
15724     # We use sed instead of cat because bash on DJGPP gets confused if
15725     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15726     # text mode, it properly converts lines to CR/LF. This bash problem
15727     # is reportedly fixed, but why not run on old versions too?
15728     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15729     || (rm -f "$cfgfile"; exit 1)
15730    
15731     case $xsi_shell in
15732     yes)
15733     cat << \_LT_EOF >> "$cfgfile"
15734    
15735     # func_dirname file append nondir_replacement
15736     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15737     # otherwise set result to NONDIR_REPLACEMENT.
15738     func_dirname ()
15739     {
15740     case ${1} in
15741     */*) func_dirname_result="${1%/*}${2}" ;;
15742     * ) func_dirname_result="${3}" ;;
15743     esac
15744     }
15745    
15746     # func_basename file
15747     func_basename ()
15748     {
15749     func_basename_result="${1##*/}"
15750     }
15751    
15752     # func_dirname_and_basename file append nondir_replacement
15753     # perform func_basename and func_dirname in a single function
15754     # call:
15755     # dirname: Compute the dirname of FILE. If nonempty,
15756     # add APPEND to the result, otherwise set result
15757     # to NONDIR_REPLACEMENT.
15758     # value returned in "$func_dirname_result"
15759     # basename: Compute filename of FILE.
15760     # value retuned in "$func_basename_result"
15761     # Implementation must be kept synchronized with func_dirname
15762     # and func_basename. For efficiency, we do not delegate to
15763     # those functions but instead duplicate the functionality here.
15764     func_dirname_and_basename ()
15765     {
15766     case ${1} in
15767     */*) func_dirname_result="${1%/*}${2}" ;;
15768     * ) func_dirname_result="${3}" ;;
15769     esac
15770     func_basename_result="${1##*/}"
15771     }
15772    
15773     # func_stripname prefix suffix name
15774     # strip PREFIX and SUFFIX off of NAME.
15775     # PREFIX and SUFFIX must not contain globbing or regex special
15776     # characters, hashes, percent signs, but SUFFIX may contain a leading
15777     # dot (in which case that matches only a dot).
15778     func_stripname ()
15779     {
15780     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15781     # positional parameters, so assign one to ordinary parameter first.
15782     func_stripname_result=${3}
15783     func_stripname_result=${func_stripname_result#"${1}"}
15784     func_stripname_result=${func_stripname_result%"${2}"}
15785     }
15786    
15787     # func_opt_split
15788     func_opt_split ()
15789     {
15790     func_opt_split_opt=${1%%=*}
15791     func_opt_split_arg=${1#*=}
15792     }
15793    
15794     # func_lo2o object
15795     func_lo2o ()
15796     {
15797     case ${1} in
15798     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15799     *) func_lo2o_result=${1} ;;
15800     esac
15801     }
15802    
15803     # func_xform libobj-or-source
15804     func_xform ()
15805     {
15806     func_xform_result=${1%.*}.lo
15807     }
15808    
15809     # func_arith arithmetic-term...
15810     func_arith ()
15811     {
15812     func_arith_result=$(( $* ))
15813     }
15814    
15815     # func_len string
15816     # STRING may not start with a hyphen.
15817     func_len ()
15818     {
15819     func_len_result=${#1}
15820     }
15821    
15822     _LT_EOF
15823     ;;
15824     *) # Bourne compatible functions.
15825     cat << \_LT_EOF >> "$cfgfile"
15826    
15827     # func_dirname file append nondir_replacement
15828     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15829     # otherwise set result to NONDIR_REPLACEMENT.
15830     func_dirname ()
15831     {
15832     # Extract subdirectory from the argument.
15833     func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15834     if test "X$func_dirname_result" = "X${1}"; then
15835     func_dirname_result="${3}"
15836     else
15837     func_dirname_result="$func_dirname_result${2}"
15838     fi
15839     }
15840    
15841     # func_basename file
15842     func_basename ()
15843     {
15844     func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15845     }
15846    
15847    
15848     # func_stripname prefix suffix name
15849     # strip PREFIX and SUFFIX off of NAME.
15850     # PREFIX and SUFFIX must not contain globbing or regex special
15851     # characters, hashes, percent signs, but SUFFIX may contain a leading
15852     # dot (in which case that matches only a dot).
15853     # func_strip_suffix prefix name
15854     func_stripname ()
15855     {
15856     case ${2} in
15857     .*) func_stripname_result=`$ECHO "X${3}" \
15858     | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15859     *) func_stripname_result=`$ECHO "X${3}" \
15860     | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15861     esac
15862     }
15863    
15864     # sed scripts:
15865     my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15866     my_sed_long_arg='1s/^-[^=]*=//'
15867    
15868     # func_opt_split
15869     func_opt_split ()
15870     {
15871     func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15872     func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15873     }
15874    
15875     # func_lo2o object
15876     func_lo2o ()
15877     {
15878     func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15879     }
15880    
15881     # func_xform libobj-or-source
15882     func_xform ()
15883     {
15884     func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15885     }
15886    
15887     # func_arith arithmetic-term...
15888     func_arith ()
15889     {
15890     func_arith_result=`expr "$@"`
15891     }
15892    
15893     # func_len string
15894     # STRING may not start with a hyphen.
15895     func_len ()
15896     {
15897     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15898     }
15899    
15900     _LT_EOF
15901     esac
15902    
15903     case $lt_shell_append in
15904     yes)
15905     cat << \_LT_EOF >> "$cfgfile"
15906    
15907     # func_append var value
15908     # Append VALUE to the end of shell variable VAR.
15909     func_append ()
15910     {
15911     eval "$1+=\$2"
15912     }
15913     _LT_EOF
15914     ;;
15915     *)
15916     cat << \_LT_EOF >> "$cfgfile"
15917    
15918     # func_append var value
15919     # Append VALUE to the end of shell variable VAR.
15920     func_append ()
15921     {
15922     eval "$1=\$$1\$2"
15923     }
15924    
15925     _LT_EOF
15926     ;;
15927     esac
15928    
15929    
15930     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15931     || (rm -f "$cfgfile"; exit 1)
15932    
15933     mv -f "$cfgfile" "$ofile" ||
15934     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15935     chmod +x "$ofile"
15936    
15937     ;;
15938    
15939     esac
15940 michael 912 done # for ac_tag
15941    
15942    
15943 michael 967 as_fn_exit 0
15944 michael 912 _ACEOF
15945     ac_clean_files=$ac_clean_files_save
15946    
15947 db 941 test $ac_write_fail = 0 ||
15948 michael 967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15949 michael 912
15950 db 941
15951 michael 912 # configure is writing to config.log, and then calls config.status.
15952     # config.status does its own redirection, appending to config.log.
15953     # Unfortunately, on DOS this fails, as config.log is still kept open
15954     # by configure, so config.status won't be able to write to it; its
15955     # output is simply discarded. So we exec the FD to /dev/null,
15956     # effectively closing config.log, so it can be properly (re)opened and
15957     # appended to by config.status. When coming back to configure, we
15958     # need to make the FD available again.
15959     if test "$no_create" != yes; then
15960     ac_cs_success=:
15961     ac_config_status_args=
15962     test "$silent" = yes &&
15963     ac_config_status_args="$ac_config_status_args --quiet"
15964     exec 5>/dev/null
15965     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15966     exec 5>>config.log
15967     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15968     # would make configure fail if this is the last instruction.
15969 michael 967 $ac_cs_success || as_fn_exit $?
15970 michael 912 fi
15971    
15972     #
15973     # CONFIG_SUBDIRS section.
15974     #
15975     if test "$no_recursion" != yes; then
15976    
15977 db 941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15978     # so they do not pile up.
15979 michael 912 ac_sub_configure_args=
15980     ac_prev=
15981     eval "set x $ac_configure_args"
15982     shift
15983     for ac_arg
15984     do
15985     if test -n "$ac_prev"; then
15986     ac_prev=
15987     continue
15988     fi
15989     case $ac_arg in
15990     -cache-file | --cache-file | --cache-fil | --cache-fi \
15991     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15992     ac_prev=cache_file ;;
15993     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15994     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15995     | --c=*)
15996     ;;
15997     --config-cache | -C)
15998     ;;
15999     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16000     ac_prev=srcdir ;;
16001     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16002     ;;
16003     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16004     ac_prev=prefix ;;
16005     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16006     ;;
16007 db 941 --disable-option-checking)
16008     ;;
16009 michael 912 *)
16010     case $ac_arg in
16011 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16012 michael 912 esac
16013 michael 967 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16014 michael 912 esac
16015     done
16016    
16017     # Always prepend --prefix to ensure using the same prefix
16018     # in subdir configurations.
16019     ac_arg="--prefix=$prefix"
16020     case $ac_arg in
16021 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16022 michael 912 esac
16023     ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16024    
16025     # Pass --silent
16026     if test "$silent" = yes; then
16027     ac_sub_configure_args="--silent $ac_sub_configure_args"
16028     fi
16029    
16030 db 941 # Always prepend --disable-option-checking to silence warnings, since
16031     # different subdirs can have different --enable and --with options.
16032     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16033    
16034 michael 912 ac_popdir=`pwd`
16035     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16036    
16037     # Do not complain, so a configure script can configure whichever
16038     # parts of a large source tree are present.
16039     test -d "$srcdir/$ac_dir" || continue
16040    
16041     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16042 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16043 db 941 $as_echo "$ac_msg" >&6
16044 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
16045 michael 912 ac_builddir=.
16046    
16047     case "$ac_dir" in
16048     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16049     *)
16050 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16051 michael 912 # A ".." for each directory in $ac_dir_suffix.
16052 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16053 michael 912 case $ac_top_builddir_sub in
16054     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16055     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16056     esac ;;
16057     esac
16058     ac_abs_top_builddir=$ac_pwd
16059     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16060     # for backward compatibility:
16061     ac_top_builddir=$ac_top_build_prefix
16062    
16063     case $srcdir in
16064     .) # We are building in place.
16065     ac_srcdir=.
16066     ac_top_srcdir=$ac_top_builddir_sub
16067     ac_abs_top_srcdir=$ac_pwd ;;
16068     [\\/]* | ?:[\\/]* ) # Absolute name.
16069     ac_srcdir=$srcdir$ac_dir_suffix;
16070     ac_top_srcdir=$srcdir
16071     ac_abs_top_srcdir=$srcdir ;;
16072     *) # Relative name.
16073     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16074     ac_top_srcdir=$ac_top_build_prefix$srcdir
16075     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16076     esac
16077     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16078    
16079    
16080     cd "$ac_dir"
16081    
16082     # Check for guested configure; otherwise get Cygnus style configure.
16083     if test -f "$ac_srcdir/configure.gnu"; then
16084     ac_sub_configure=$ac_srcdir/configure.gnu
16085     elif test -f "$ac_srcdir/configure"; then
16086     ac_sub_configure=$ac_srcdir/configure
16087     elif test -f "$ac_srcdir/configure.in"; then
16088     # This should be Cygnus configure.
16089     ac_sub_configure=$ac_aux_dir/configure
16090     else
16091 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16092 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16093 michael 912 ac_sub_configure=
16094     fi
16095    
16096     # The recursion is here.
16097     if test -n "$ac_sub_configure"; then
16098     # Make the cache file name correct relative to the subdirectory.
16099     case $cache_file in
16100     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16101     *) # Relative name.
16102     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16103     esac
16104    
16105 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
16106 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;}
16107 michael 912 # The eval makes quoting arguments work.
16108     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16109     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16110 michael 967 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16111 michael 912 fi
16112    
16113     cd "$ac_popdir"
16114     done
16115     fi
16116 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16117 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16118 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16119 db 941 fi
16120 michael 912

Properties

Name Value
svn:executable *