ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/configure
Revision: 6228
Committed: Thu Jul 2 13:10:18 2015 UTC (10 years, 1 month ago) by michael
File size: 495917 byte(s)
Log Message:
- Create 1.1.x branch

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2 michael 6223 # From configure.ac Id: configure.ac 6222 2015-07-01 18:09:27Z michael .
3 michael 5052 # Guess values for system-dependent variables and create Makefiles.
4 michael 5266 # Generated by GNU Autoconf 2.69 for hopm TRUNK.
5 michael 5052 #
6 michael 5266 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 5059 #
8 michael 5266 #
9 michael 5059 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10     #
11     #
12 michael 5052 # This configure script is free software; the Free Software Foundation
13     # gives unlimited permission to copy, distribute and modify it.
14 michael 5059 ## -------------------- ##
15     ## M4sh Initialization. ##
16     ## -------------------- ##
17 michael 5052
18 michael 5059 # Be more Bourne compatible
19     DUALCASE=1; export DUALCASE # for MKS sh
20     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 michael 5052 emulate sh
22     NULLCMD=:
23 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 michael 5052 # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27     else
28 michael 5059 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33     esac
34 michael 5052 fi
35    
36    
37 michael 5059 as_nl='
38     '
39     export as_nl
40     # Printing a long string crashes Solaris 7 /usr/bin/printf.
41     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44     # Prefer a ksh shell builtin over an external printf program on Solaris,
45     # but without wasting forks for bash or zsh.
46     if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='print -r --'
49     as_echo_n='print -rn --'
50     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51     as_echo='printf %s\n'
52     as_echo_n='printf %s'
53     else
54     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57 michael 5052 else
58 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60     arg=$1;
61     case $arg in #(
62     *"$as_nl"*)
63     expr "X$arg" : "X\\(.*\\)$as_nl";
64     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65     esac;
66     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70 michael 5052 fi
71 michael 5059 export as_echo_body
72     as_echo='sh -c $as_echo_body as_echo'
73 michael 5052 fi
74    
75 michael 5059 # The user is always right.
76     if test "${PATH_SEPARATOR+set}" != set; then
77     PATH_SEPARATOR=:
78     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80     PATH_SEPARATOR=';'
81     }
82 michael 5052 fi
83    
84    
85     # IFS
86     # We need space, tab and new line, in precisely that order. Quoting is
87     # there to prevent editors from complaining about space-tab.
88     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89     # splitting by setting IFS to empty value.)
90     IFS=" "" $as_nl"
91    
92     # Find who we are. Look in the path if we contain no directory separator.
93 michael 5059 as_myself=
94     case $0 in #((
95 michael 5052 *[\\/]* ) as_myself=$0 ;;
96     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97     for as_dir in $PATH
98     do
99     IFS=$as_save_IFS
100     test -z "$as_dir" && as_dir=.
101 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102     done
103 michael 5052 IFS=$as_save_IFS
104    
105     ;;
106     esac
107     # We did not find ourselves, most probably we were run as `sh COMMAND'
108     # in which case we are not to be found in the path.
109     if test "x$as_myself" = x; then
110     as_myself=$0
111     fi
112     if test ! -f "$as_myself"; then
113 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114     exit 1
115 michael 5052 fi
116    
117 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
118     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119     # suppresses any "Segmentation fault" message there. '((' could
120     # trigger a bug in pdksh 5.2.14.
121     for as_var in BASH_ENV ENV MAIL MAILPATH
122     do eval test x\${$as_var+set} = xset \
123     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 michael 5052 done
125     PS1='$ '
126     PS2='> '
127     PS4='+ '
128    
129     # NLS nuisances.
130 michael 5059 LC_ALL=C
131     export LC_ALL
132     LANGUAGE=C
133     export LANGUAGE
134 michael 5052
135     # CDPATH.
136 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 michael 5052
138 michael 5059 # Use a proper internal environment variable to ensure we don't fall
139     # into an infinite loop, continuously re-executing ourselves.
140     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143     # neutralization value for shells without unset; and this also
144     # works around shells that cannot unset nonexistent variables.
145     # Preserve -v and -x to the replacement shell.
146     BASH_ENV=/dev/null
147     ENV=/dev/null
148     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149     case $- in # ((((
150     *v*x* | *x*v* ) as_opts=-vx ;;
151     *v* ) as_opts=-v ;;
152     *x* ) as_opts=-x ;;
153     * ) as_opts= ;;
154     esac
155     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156     # Admittedly, this is quite paranoid, since all the known shells bail
157     # out after a failed `exec'.
158     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159     as_fn_exit 255
160     fi
161     # We don't want this to propagate to other subprocesses.
162     { _as_can_reexec=; unset _as_can_reexec;}
163 michael 5052 if test "x$CONFIG_SHELL" = x; then
164 michael 5059 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165     emulate sh
166     NULLCMD=:
167     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168     # is contrary to our usage. Disable this feature.
169     alias -g '\${1+\"\$@\"}'='\"\$@\"'
170     setopt NO_GLOB_SUBST
171 michael 5052 else
172 michael 5059 case \`(set -o) 2>/dev/null\` in #(
173     *posix*) :
174     set -o posix ;; #(
175     *) :
176     ;;
177     esac
178 michael 5052 fi
179 michael 5059 "
180     as_required="as_fn_return () { (exit \$1); }
181     as_fn_success () { as_fn_return 0; }
182     as_fn_failure () { as_fn_return 1; }
183     as_fn_ret_success () { return 0; }
184     as_fn_ret_failure () { return 1; }
185 michael 5052
186     exitcode=0
187 michael 5059 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 michael 5052
193     else
194 michael 5059 exitcode=1; echo positional parameters were not saved.
195 michael 5052 fi
196 michael 5059 test x\$exitcode = x0 || exit 1
197     test -x / || exit 1"
198     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 michael 5052
203 michael 5059 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210     test \$(( 1 + 1 )) = 2 || exit 1"
211     if (eval "$as_required") 2>/dev/null; then :
212     as_have_required=yes
213 michael 5052 else
214 michael 5059 as_have_required=no
215 michael 5052 fi
216 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 michael 5052
218     else
219 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220     as_found=false
221     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 michael 5052 do
223     IFS=$as_save_IFS
224     test -z "$as_dir" && as_dir=.
225 michael 5059 as_found=:
226     case $as_dir in #(
227 michael 5052 /*)
228     for as_base in sh bash ksh sh5; do
229 michael 5059 # Try only shells that exist, to save several forks.
230     as_shell=$as_dir/$as_base
231     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233     CONFIG_SHELL=$as_shell as_have_required=yes
234     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235     break 2
236     fi
237     fi
238 michael 5052 done;;
239     esac
240 michael 5059 as_found=false
241 michael 5052 done
242 michael 5059 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244     CONFIG_SHELL=$SHELL as_have_required=yes
245     fi; }
246 michael 5052 IFS=$as_save_IFS
247    
248    
249 michael 5059 if test "x$CONFIG_SHELL" != x; then :
250     export CONFIG_SHELL
251     # We cannot yet assume a decent shell, so we have to provide a
252     # neutralization value for shells without unset; and this also
253     # works around shells that cannot unset nonexistent variables.
254     # Preserve -v and -x to the replacement shell.
255     BASH_ENV=/dev/null
256     ENV=/dev/null
257     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258     case $- in # ((((
259     *v*x* | *x*v* ) as_opts=-vx ;;
260     *v* ) as_opts=-v ;;
261     *x* ) as_opts=-x ;;
262     * ) as_opts= ;;
263     esac
264     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265     # Admittedly, this is quite paranoid, since all the known shells bail
266     # out after a failed `exec'.
267     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268     exit 255
269 michael 5052 fi
270    
271 michael 5059 if test x$as_have_required = xno; then :
272     $as_echo "$0: This script requires a shell more modern than all"
273     $as_echo "$0: the shells that I found on your system."
274     if test x${ZSH_VERSION+set} = xset ; then
275     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277     else
278 michael 5266 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279     $0: bugs@ircd-hybrid.org about your system, including any
280     $0: error possibly output before this message. Then install
281     $0: a modern shell, or manually run the script under such a
282     $0: shell if you do have one."
283 michael 5059 fi
284     exit 1
285 michael 5052 fi
286     fi
287     fi
288 michael 5059 SHELL=${CONFIG_SHELL-/bin/sh}
289     export SHELL
290     # Unset more variables known to interfere with behavior of common tools.
291     CLICOLOR_FORCE= GREP_OPTIONS=
292     unset CLICOLOR_FORCE GREP_OPTIONS
293 michael 5052
294 michael 5059 ## --------------------- ##
295     ## M4sh Shell Functions. ##
296     ## --------------------- ##
297     # as_fn_unset VAR
298     # ---------------
299     # Portably unset VAR.
300     as_fn_unset ()
301     {
302     { eval $1=; unset $1;}
303     }
304     as_unset=as_fn_unset
305 michael 5052
306 michael 5059 # as_fn_set_status STATUS
307     # -----------------------
308     # Set $? to STATUS, without forking.
309     as_fn_set_status ()
310     {
311     return $1
312     } # as_fn_set_status
313 michael 5052
314 michael 5059 # as_fn_exit STATUS
315     # -----------------
316     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317     as_fn_exit ()
318     {
319     set +e
320     as_fn_set_status $1
321     exit $1
322     } # as_fn_exit
323 michael 5052
324 michael 5059 # as_fn_mkdir_p
325     # -------------
326     # Create "$as_dir" as a directory, including parents if necessary.
327     as_fn_mkdir_p ()
328     {
329 michael 5052
330 michael 5059 case $as_dir in #(
331     -*) as_dir=./$as_dir;;
332     esac
333     test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336     case $as_dir in #(
337     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338     *) as_qdir=$as_dir;;
339     esac
340     as_dirs="'$as_qdir' $as_dirs"
341     as_dir=`$as_dirname -- "$as_dir" ||
342     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343     X"$as_dir" : 'X\(//\)[^/]' \| \
344     X"$as_dir" : 'X\(//\)$' \| \
345     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346     $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)[^/].*/{
352     s//\1/
353     q
354     }
355     /^X\(\/\/\)$/{
356     s//\1/
357     q
358     }
359     /^X\(\/\).*/{
360     s//\1/
361     q
362     }
363     s/.*/./; q'`
364     test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 michael 5052
369    
370 michael 5059 } # as_fn_mkdir_p
371 michael 5052
372 michael 5059 # as_fn_executable_p FILE
373     # -----------------------
374     # Test if FILE is an executable regular file.
375     as_fn_executable_p ()
376     {
377     test -f "$1" && test -x "$1"
378     } # as_fn_executable_p
379     # as_fn_append VAR VALUE
380     # ----------------------
381     # Append the text in VALUE to the end of the definition contained in VAR. Take
382     # advantage of any shell optimizations that allow amortized linear growth over
383     # repeated appends, instead of the typical quadratic growth present in naive
384     # implementations.
385     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386     eval 'as_fn_append ()
387     {
388     eval $1+=\$2
389     }'
390     else
391     as_fn_append ()
392     {
393     eval $1=\$$1\$2
394     }
395     fi # as_fn_append
396 michael 5052
397 michael 5059 # as_fn_arith ARG...
398     # ------------------
399     # Perform arithmetic evaluation on the ARGs, and store the result in the
400     # global $as_val. Take advantage of shells that can avoid forks. The arguments
401     # must be portable across $(()) and expr.
402     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403     eval 'as_fn_arith ()
404     {
405     as_val=$(( $* ))
406     }'
407     else
408     as_fn_arith ()
409     {
410     as_val=`expr "$@" || test $? -eq 1`
411     }
412     fi # as_fn_arith
413 michael 5052
414    
415 michael 5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416     # ----------------------------------------
417     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419     # script with STATUS, using 1 if that was 0.
420     as_fn_error ()
421     {
422     as_status=$1; test $as_status -eq 0 && as_status=1
423     if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426     fi
427     $as_echo "$as_me: error: $2" >&2
428     as_fn_exit $as_status
429     } # as_fn_error
430 michael 5052
431 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
432     test "X`expr 00001 : '.*\(...\)'`" = X001; then
433     as_expr=expr
434 michael 5052 else
435 michael 5059 as_expr=false
436 michael 5052 fi
437    
438 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439     as_basename=basename
440 michael 5052 else
441 michael 5059 as_basename=false
442 michael 5052 fi
443    
444 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445     as_dirname=dirname
446 michael 5052 else
447 michael 5059 as_dirname=false
448 michael 5052 fi
449    
450 michael 5059 as_me=`$as_basename -- "$0" ||
451     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452     X"$0" : 'X\(//\)$' \| \
453     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454     $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456     s//\1/
457     q
458     }
459     /^X\/\(\/\/\)$/{
460     s//\1/
461     q
462     }
463     /^X\/\(\/\).*/{
464     s//\1/
465     q
466     }
467     s/.*/./; q'`
468 michael 5052
469 michael 5059 # Avoid depending upon Character Ranges.
470     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473     as_cr_digits='0123456789'
474     as_cr_alnum=$as_cr_Letters$as_cr_digits
475 michael 5052
476    
477 michael 5059 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478     as_lineno_2=$LINENO as_lineno_2a=$LINENO
479     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 michael 5052 sed -n '
483     p
484     /[$]LINENO/=
485     ' <$as_myself |
486     sed '
487     s/[$]LINENO.*/&-/
488     t lineno
489     b
490     :lineno
491     N
492     :loop
493     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494     t loop
495     s/-\n.*//
496     ' >$as_me.lineno &&
497     chmod +x "$as_me.lineno" ||
498 michael 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 michael 5052
500 michael 5059 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501     # already done that, so ensure we don't try to do so again and fall
502     # in an infinite loop. This has already happened in practice.
503     _as_can_reexec=no; export _as_can_reexec
504 michael 5052 # Don't try to exec as it changes $[0], causing all sort of problems
505     # (the dirname of $[0] is not the place where we might find the
506     # original and so on. Autoconf is especially sensitive to this).
507     . "./$as_me.lineno"
508     # Exit status is that of the last command.
509     exit
510     }
511    
512     ECHO_C= ECHO_N= ECHO_T=
513 michael 5059 case `echo -n x` in #(((((
514 michael 5052 -n*)
515 michael 5059 case `echo 'xy\c'` in
516 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 michael 5059 xy) ECHO_C='\c';;
518     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519     ECHO_T=' ';;
520 michael 5052 esac;;
521     *)
522     ECHO_N='-n';;
523     esac
524    
525     rm -f conf$$ conf$$.exe conf$$.file
526     if test -d conf$$.dir; then
527     rm -f conf$$.dir/conf$$.file
528     else
529     rm -f conf$$.dir
530 michael 5059 mkdir conf$$.dir 2>/dev/null
531 michael 5052 fi
532 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
533     if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540     as_ln_s='cp -pR'
541     elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543     else
544     as_ln_s='cp -pR'
545     fi
546 michael 5052 else
547 michael 5059 as_ln_s='cp -pR'
548 michael 5052 fi
549     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550     rmdir conf$$.dir 2>/dev/null
551    
552     if mkdir -p . 2>/dev/null; then
553 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
554 michael 5052 else
555     test -d ./-p && rmdir ./-p
556     as_mkdir_p=false
557     fi
558    
559 michael 5059 as_test_x='test -x'
560     as_executable_p=as_fn_executable_p
561 michael 5052
562     # Sed expression to map a string onto a valid CPP name.
563     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564    
565     # Sed expression to map a string onto a valid variable name.
566     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567    
568     SHELL=${CONFIG_SHELL-/bin/sh}
569    
570    
571 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
572     exec 6>&1
573 michael 5052
574     # Name of the host.
575 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 michael 5052 # so uname gets run too.
577     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578    
579     #
580     # Initializations.
581     #
582     ac_default_prefix=/usr/local
583     ac_clean_files=
584     ac_config_libobj_dir=.
585     LIBOBJS=
586     cross_compiling=no
587     subdirs=
588     MFLAGS=
589     MAKEFLAGS=
590    
591     # Identity of this package.
592 michael 5061 PACKAGE_NAME='hopm'
593     PACKAGE_TARNAME='hopm'
594 michael 5266 PACKAGE_VERSION='TRUNK'
595     PACKAGE_STRING='hopm TRUNK'
596     PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 michael 5059 PACKAGE_URL=''
598 michael 5052
599     ac_unique_file="src/opercmd.h"
600 michael 5061 ac_default_prefix=\${HOME}/hopm
601 michael 5052 # Factoring default headers for most tests.
602     ac_includes_default="\
603     #include <stdio.h>
604 michael 5059 #ifdef HAVE_SYS_TYPES_H
605 michael 5052 # include <sys/types.h>
606     #endif
607 michael 5059 #ifdef HAVE_SYS_STAT_H
608 michael 5052 # include <sys/stat.h>
609     #endif
610 michael 5059 #ifdef STDC_HEADERS
611 michael 5052 # include <stdlib.h>
612     # include <stddef.h>
613     #else
614 michael 5059 # ifdef HAVE_STDLIB_H
615 michael 5052 # include <stdlib.h>
616     # endif
617     #endif
618 michael 5059 #ifdef HAVE_STRING_H
619     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 michael 5052 # include <memory.h>
621     # endif
622     # include <string.h>
623     #endif
624 michael 5059 #ifdef HAVE_STRINGS_H
625 michael 5052 # include <strings.h>
626     #endif
627 michael 5059 #ifdef HAVE_INTTYPES_H
628 michael 5052 # include <inttypes.h>
629     #endif
630 michael 5059 #ifdef HAVE_STDINT_H
631 michael 5052 # include <stdint.h>
632     #endif
633 michael 5059 #ifdef HAVE_UNISTD_H
634 michael 5052 # include <unistd.h>
635     #endif"
636    
637 michael 5059 ac_subst_vars='am__EXEEXT_FALSE
638     am__EXEEXT_TRUE
639     LTLIBOBJS
640 michael 5052 LIBOBJS
641 michael 6223 ENABLE_SSL_FALSE
642     ENABLE_SSL_TRUE
643 michael 5052 LEXLIB
644     LEX_OUTPUT_ROOT
645 michael 5059 LEX
646     YFLAGS
647     YACC
648     CPP
649 michael 5433 LT_SYS_LIBRARY_PATH
650 michael 5059 OTOOL64
651     OTOOL
652     LIPO
653     NMEDIT
654     DSYMUTIL
655     MANIFEST_TOOL
656     RANLIB
657     ac_ct_AR
658     AR
659     DLLTOOL
660     OBJDUMP
661     LN_S
662     NM
663     ac_ct_DUMPBIN
664     DUMPBIN
665     LD
666     FGREP
667     EGREP
668     GREP
669     SED
670     host_os
671     host_vendor
672     host_cpu
673     host
674     build_os
675     build_vendor
676     build_cpu
677     build
678     LIBTOOL
679     am__fastdepCC_FALSE
680     am__fastdepCC_TRUE
681     CCDEPMODE
682     am__nodep
683     AMDEPBACKSLASH
684     AMDEP_FALSE
685     AMDEP_TRUE
686     am__quote
687     am__include
688     DEPDIR
689     OBJEXT
690     EXEEXT
691     ac_ct_CC
692     CPPFLAGS
693     LDFLAGS
694     CFLAGS
695     CC
696     MAINT
697     MAINTAINER_MODE_FALSE
698     MAINTAINER_MODE_TRUE
699     AM_BACKSLASH
700     AM_DEFAULT_VERBOSITY
701     AM_DEFAULT_V
702     AM_V
703     am__untar
704     am__tar
705     AMTAR
706     am__leading_dot
707     SET_MAKE
708     AWK
709     mkdir_p
710     MKDIR_P
711     INSTALL_STRIP_PROGRAM
712     STRIP
713     install_sh
714     MAKEINFO
715     AUTOHEADER
716     AUTOMAKE
717     AUTOCONF
718     ACLOCAL
719     VERSION
720     PACKAGE
721     CYGPATH_W
722     am__isrc
723     INSTALL_DATA
724     INSTALL_SCRIPT
725     INSTALL_PROGRAM
726     target_alias
727     host_alias
728     build_alias
729     LIBS
730     ECHO_T
731     ECHO_N
732     ECHO_C
733     DEFS
734     mandir
735     localedir
736     libdir
737     psdir
738     pdfdir
739     dvidir
740     htmldir
741     infodir
742     docdir
743     oldincludedir
744     includedir
745     localstatedir
746     sharedstatedir
747     sysconfdir
748     datadir
749     datarootdir
750     libexecdir
751     sbindir
752     bindir
753     program_transform_name
754     prefix
755     exec_prefix
756     PACKAGE_URL
757     PACKAGE_BUGREPORT
758     PACKAGE_STRING
759     PACKAGE_VERSION
760     PACKAGE_TARNAME
761     PACKAGE_NAME
762     PATH_SEPARATOR
763     SHELL'
764 michael 5052 ac_subst_files=''
765 michael 5059 ac_user_opts='
766     enable_option_checking
767     enable_silent_rules
768     enable_maintainer_mode
769     enable_dependency_tracking
770     enable_shared
771     enable_static
772     with_pic
773     enable_fast_install
774     with_aix_soname
775     with_gnu_ld
776     with_sysroot
777     enable_libtool_lock
778 michael 6223 enable_openssl
779 michael 6105 enable_assert
780 michael 6183 enable_warnings
781 michael 5059 '
782 michael 5052 ac_precious_vars='build_alias
783     host_alias
784     target_alias
785     CC
786     CFLAGS
787     LDFLAGS
788 michael 5059 LIBS
789 michael 5052 CPPFLAGS
790 michael 5433 LT_SYS_LIBRARY_PATH
791 michael 5052 CPP
792     YACC
793     YFLAGS'
794    
795 michael 5260
796 michael 5052 # Initialize some variables set by options.
797     ac_init_help=
798     ac_init_version=false
799 michael 5059 ac_unrecognized_opts=
800     ac_unrecognized_sep=
801 michael 5052 # The variables have the same names as the options, with
802     # dashes changed to underlines.
803     cache_file=/dev/null
804     exec_prefix=NONE
805     no_create=
806     no_recursion=
807     prefix=NONE
808     program_prefix=NONE
809     program_suffix=NONE
810     program_transform_name=s,x,x,
811     silent=
812     site=
813     srcdir=
814     verbose=
815     x_includes=NONE
816     x_libraries=NONE
817    
818     # Installation directory options.
819     # These are left unexpanded so users can "make install exec_prefix=/foo"
820     # and all the variables that are supposed to be based on exec_prefix
821     # by default will actually change.
822     # Use braces instead of parens because sh, perl, etc. also accept them.
823     # (The list follows the same order as the GNU Coding Standards.)
824     bindir='${exec_prefix}/bin'
825     sbindir='${exec_prefix}/sbin'
826     libexecdir='${exec_prefix}/libexec'
827     datarootdir='${prefix}/share'
828     datadir='${datarootdir}'
829     sysconfdir='${prefix}/etc'
830     sharedstatedir='${prefix}/com'
831     localstatedir='${prefix}/var'
832     includedir='${prefix}/include'
833     oldincludedir='/usr/include'
834     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
835     infodir='${datarootdir}/info'
836     htmldir='${docdir}'
837     dvidir='${docdir}'
838     pdfdir='${docdir}'
839     psdir='${docdir}'
840     libdir='${exec_prefix}/lib'
841     localedir='${datarootdir}/locale'
842     mandir='${datarootdir}/man'
843    
844     ac_prev=
845     ac_dashdash=
846     for ac_option
847     do
848     # If the previous option needs an argument, assign it.
849     if test -n "$ac_prev"; then
850     eval $ac_prev=\$ac_option
851     ac_prev=
852     continue
853     fi
854    
855     case $ac_option in
856 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857     *=) ac_optarg= ;;
858     *) ac_optarg=yes ;;
859 michael 5052 esac
860    
861     # Accept the important Cygnus configure options, so we can diagnose typos.
862    
863     case $ac_dashdash$ac_option in
864     --)
865     ac_dashdash=yes ;;
866    
867     -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871    
872     -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876    
877     -cache-file | --cache-file | --cache-fil | --cache-fi \
878     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883    
884     --config-cache | -C)
885     cache_file=config.cache ;;
886    
887     -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889     -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891    
892     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893     | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898    
899     -disable-* | --disable-*)
900 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901 michael 5052 # Reject names that are not valid shell variable names.
902 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903     as_fn_error $? "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907     *"
908     "enable_$ac_useropt"
909     "*) ;;
910     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911     ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914 michael 5052
915     -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919    
920     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924    
925     -enable-* | --enable-*)
926 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927 michael 5052 # Reject names that are not valid shell variable names.
928 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929     as_fn_error $? "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933     *"
934     "enable_$ac_useropt"
935     "*) ;;
936     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937     ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940 michael 5052
941     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943     | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947     | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949    
950     -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953    
954     -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960    
961     -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963     -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965    
966     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969     | --ht=*)
970     htmldir=$ac_optarg ;;
971    
972     -includedir | --includedir | --includedi | --included | --include \
973     | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976     | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978    
979     -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983    
984     -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986     -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988    
989     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990     | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993     | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995    
996     -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000    
1001     -localstatedir | --localstatedir | --localstatedi | --localstated \
1002     | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007    
1008     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012    
1013     -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016    
1017     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018     | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020    
1021     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024    
1025     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027     | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033    
1034     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038    
1039     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040     | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045    
1046     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047     | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052    
1053     -program-transform-name | --program-transform-name \
1054     | --program-transform-nam | --program-transform-na \
1055     | --program-transform-n | --program-transform- \
1056     | --program-transform | --program-transfor \
1057     | --program-transfo | --program-transf \
1058     | --program-trans | --program-tran \
1059     | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061     -program-transform-name=* | --program-transform-name=* \
1062     | --program-transform-nam=* | --program-transform-na=* \
1063     | --program-transform-n=* | --program-transform-=* \
1064     | --program-transform=* | --program-transfor=* \
1065     | --program-transfo=* | --program-transf=* \
1066     | --program-trans=* | --program-tran=* \
1067     | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069    
1070     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074    
1075     -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079    
1080     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081     | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083    
1084     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087     | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089    
1090     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092     | --sharedst | --shareds | --shared | --share | --shar \
1093     | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098     | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100    
1101     -site | --site | --sit)
1102     ac_prev=site ;;
1103     -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105    
1106     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110    
1111     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112     | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117    
1118     -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122    
1123     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125    
1126     -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128    
1129     -with-* | --with-*)
1130 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131 michael 5052 # Reject names that are not valid shell variable names.
1132 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133     as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137     *"
1138     "with_$ac_useropt"
1139     "*) ;;
1140     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141     ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144 michael 5052
1145     -without-* | --without-*)
1146 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147 michael 5052 # Reject names that are not valid shell variable names.
1148 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149     as_fn_error $? "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153     *"
1154     "with_$ac_useropt"
1155     "*) ;;
1156     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157     ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160 michael 5052
1161     --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164    
1165     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166     | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171    
1172     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178    
1179 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1180     Try \`$0 --help' for more information"
1181 michael 5052 ;;
1182    
1183     *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186 michael 5059 case $ac_envvar in #(
1187     '' | [0-9]* | *[!_$as_cr_alnum]* )
1188     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190 michael 5052 eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192    
1193     *)
1194     # FIXME: should be removed in autoconf 3.0.
1195 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199 michael 5052 ;;
1200    
1201     esac
1202     done
1203    
1204     if test -n "$ac_prev"; then
1205     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206 michael 5059 as_fn_error $? "missing argument to $ac_option"
1207 michael 5052 fi
1208    
1209 michael 5059 if test -n "$ac_unrecognized_opts"; then
1210     case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1213     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214     esac
1215     fi
1216    
1217     # Check all directory arguments for consistency.
1218 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219     datadir sysconfdir sharedstatedir localstatedir includedir \
1220     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221     libdir localedir mandir
1222     do
1223     eval ac_val=\$$ac_var
1224 michael 5059 # Remove trailing slashes.
1225 michael 5052 case $ac_val in
1226 michael 5059 */ )
1227     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228     eval $ac_var=\$ac_val;;
1229     esac
1230     # Be sure to have absolute directory names.
1231     case $ac_val in
1232 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234     esac
1235 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 michael 5052 done
1237    
1238     # There might be people who depend on the old broken behavior: `$host'
1239     # used to hold the argument of --host etc.
1240     # FIXME: To remove some day.
1241     build=$build_alias
1242     host=$host_alias
1243     target=$target_alias
1244    
1245     # FIXME: To remove some day.
1246     if test "x$host_alias" != x; then
1247     if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249     elif test "x$build_alias" != "x$host_alias"; then
1250     cross_compiling=yes
1251     fi
1252     fi
1253    
1254     ac_tool_prefix=
1255     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256    
1257     test "$silent" = yes && exec 6>/dev/null
1258    
1259    
1260     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261     ac_ls_di=`ls -di .` &&
1262     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 michael 5059 as_fn_error $? "working directory cannot be determined"
1264 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1266 michael 5052
1267    
1268     # Find the source files, if location was not specified.
1269     if test -z "$srcdir"; then
1270     ac_srcdir_defaulted=yes
1271     # Try the directory containing this script, then the parent directory.
1272 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1273     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274     X"$as_myself" : 'X\(//\)[^/]' \| \
1275     X"$as_myself" : 'X\(//\)$' \| \
1276     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277     $as_echo X"$as_myself" |
1278 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279     s//\1/
1280     q
1281     }
1282     /^X\(\/\/\)[^/].*/{
1283     s//\1/
1284     q
1285     }
1286     /^X\(\/\/\)$/{
1287     s//\1/
1288     q
1289     }
1290     /^X\(\/\).*/{
1291     s//\1/
1292     q
1293     }
1294     s/.*/./; q'`
1295     srcdir=$ac_confdir
1296     if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298     fi
1299     else
1300     ac_srcdir_defaulted=no
1301     fi
1302     if test ! -r "$srcdir/$ac_unique_file"; then
1303     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 michael 5052 fi
1306     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307     ac_abs_confdir=`(
1308 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309 michael 5052 pwd)`
1310     # When building in place, set srcdir=.
1311     if test "$ac_abs_confdir" = "$ac_pwd"; then
1312     srcdir=.
1313     fi
1314     # Remove unnecessary trailing slashes from srcdir.
1315     # Double slashes in file names in object file debugging info
1316     # mess up M-x gdb in Emacs.
1317     case $srcdir in
1318     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319     esac
1320     for ac_var in $ac_precious_vars; do
1321     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322     eval ac_env_${ac_var}_value=\$${ac_var}
1323     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325     done
1326    
1327     #
1328     # Report the --help message.
1329     #
1330     if test "$ac_init_help" = "long"; then
1331     # Omit some internal or obsolete options to make the list less imposing.
1332     # This message is too long to be a string in the A/UX 3.1 sh.
1333     cat <<_ACEOF
1334 michael 5266 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1335 michael 5052
1336     Usage: $0 [OPTION]... [VAR=VALUE]...
1337    
1338     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339     VAR=VALUE. See below for descriptions of some of the useful variables.
1340    
1341     Defaults for the options are specified in brackets.
1342    
1343     Configuration:
1344     -h, --help display this help and exit
1345     --help=short display options specific to this package
1346     --help=recursive display the short help of all the included packages
1347     -V, --version display version information and exit
1348 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1349 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1350     -C, --config-cache alias for \`--cache-file=config.cache'
1351     -n, --no-create do not create output files
1352     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353    
1354     Installation directories:
1355     --prefix=PREFIX install architecture-independent files in PREFIX
1356 michael 5059 [$ac_default_prefix]
1357 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 michael 5059 [PREFIX]
1359 michael 5052
1360     By default, \`make install' will install all the files in
1361     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363     for instance \`--prefix=\$HOME'.
1364    
1365     For better control, use the options below.
1366    
1367     Fine tuning of the installation directories:
1368 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1369     --sbindir=DIR system admin executables [EPREFIX/sbin]
1370     --libexecdir=DIR program executables [EPREFIX/libexec]
1371     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374     --libdir=DIR object code libraries [EPREFIX/lib]
1375     --includedir=DIR C header files [PREFIX/include]
1376     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379     --infodir=DIR info documentation [DATAROOTDIR/info]
1380     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381     --mandir=DIR man documentation [DATAROOTDIR/man]
1382 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1383 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1384     --dvidir=DIR dvi documentation [DOCDIR]
1385     --pdfdir=DIR pdf documentation [DOCDIR]
1386     --psdir=DIR ps documentation [DOCDIR]
1387 michael 5052 _ACEOF
1388    
1389     cat <<\_ACEOF
1390    
1391     Program names:
1392     --program-prefix=PREFIX prepend PREFIX to installed program names
1393     --program-suffix=SUFFIX append SUFFIX to installed program names
1394     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1395    
1396     System types:
1397     --build=BUILD configure for building on BUILD [guessed]
1398     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399     _ACEOF
1400     fi
1401    
1402     if test -n "$ac_init_help"; then
1403     case $ac_init_help in
1404 michael 5266 short | recursive ) echo "Configuration of hopm TRUNK:";;
1405 michael 5052 esac
1406     cat <<\_ACEOF
1407    
1408     Optional Features:
1409 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1410 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1411     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1412 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1413     --disable-silent-rules verbose build output (undo: "make V=0")
1414     --enable-maintainer-mode
1415     enable make rules and dependencies not useful (and
1416     sometimes confusing) to the casual installer
1417     --enable-dependency-tracking
1418     do not reject slow dependency extractors
1419     --disable-dependency-tracking
1420     speeds up one-time build
1421 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1422     --enable-static[=PKGS] build static libraries [default=yes]
1423     --enable-fast-install[=PKGS]
1424     optimize for fast installation [default=yes]
1425     --disable-libtool-lock avoid locking (might break parallel builds)
1426 michael 6223 --enable-openssl=DIR Enable LibreSSL/OpenSSL support (DIR optional).
1427     --disable-openssl Disable LibreSSL/OpenSSL support.
1428 michael 6105 --enable-assert Enable assert() statements
1429 michael 6183 --enable-warnings Enable compiler warnings.
1430 michael 5052
1431     Optional Packages:
1432     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1435     both]
1436     --with-aix-soname=aix|svr4|both
1437     shared library versioning (aka "SONAME") variant to
1438     provide on AIX, [default=aix].
1439 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1441     compiler's sysroot if not specified).
1442 michael 5052
1443     Some influential environment variables:
1444     CC C compiler command
1445     CFLAGS C compiler flags
1446     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447     nonstandard directory <lib dir>
1448 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1449     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 michael 5052 you have headers in a nonstandard directory <include dir>
1451 michael 5433 LT_SYS_LIBRARY_PATH
1452     User-defined run-time library search path.
1453 michael 5052 CPP C preprocessor
1454 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1455     Defaults to the first program found out of: `bison -y', `byacc',
1456     `yacc'.
1457 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1458     This script will default YFLAGS to the empty string to avoid a
1459     default value of `-d' given by some make applications.
1460    
1461     Use these variables to override the choices made by `configure' or to help
1462     it to find libraries and programs with nonstandard names/locations.
1463    
1464 michael 5266 Report bugs to <bugs@ircd-hybrid.org>.
1465 michael 5052 _ACEOF
1466     ac_status=$?
1467     fi
1468    
1469     if test "$ac_init_help" = "recursive"; then
1470     # If there are subdirs, report their specific --help.
1471     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 michael 5059 test -d "$ac_dir" ||
1473     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474     continue
1475 michael 5052 ac_builddir=.
1476    
1477     case "$ac_dir" in
1478     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479     *)
1480 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1482 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 michael 5052 case $ac_top_builddir_sub in
1484     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486     esac ;;
1487     esac
1488     ac_abs_top_builddir=$ac_pwd
1489     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490     # for backward compatibility:
1491     ac_top_builddir=$ac_top_build_prefix
1492    
1493     case $srcdir in
1494     .) # We are building in place.
1495     ac_srcdir=.
1496     ac_top_srcdir=$ac_top_builddir_sub
1497     ac_abs_top_srcdir=$ac_pwd ;;
1498     [\\/]* | ?:[\\/]* ) # Absolute name.
1499     ac_srcdir=$srcdir$ac_dir_suffix;
1500     ac_top_srcdir=$srcdir
1501     ac_abs_top_srcdir=$srcdir ;;
1502     *) # Relative name.
1503     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504     ac_top_srcdir=$ac_top_build_prefix$srcdir
1505     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506     esac
1507     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508    
1509     cd "$ac_dir" || { ac_status=$?; continue; }
1510     # Check for guested configure.
1511     if test -f "$ac_srcdir/configure.gnu"; then
1512     echo &&
1513     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514     elif test -f "$ac_srcdir/configure"; then
1515     echo &&
1516     $SHELL "$ac_srcdir/configure" --help=recursive
1517     else
1518 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519 michael 5052 fi || ac_status=$?
1520     cd "$ac_pwd" || { ac_status=$?; break; }
1521     done
1522     fi
1523    
1524     test -n "$ac_init_help" && exit $ac_status
1525     if $ac_init_version; then
1526     cat <<\_ACEOF
1527 michael 5266 hopm configure TRUNK
1528 michael 5059 generated by GNU Autoconf 2.69
1529 michael 5052
1530 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1531 michael 5052 This configure script is free software; the Free Software Foundation
1532     gives unlimited permission to copy, distribute and modify it.
1533     _ACEOF
1534     exit
1535     fi
1536 michael 5059
1537     ## ------------------------ ##
1538     ## Autoconf initialization. ##
1539     ## ------------------------ ##
1540    
1541     # ac_fn_c_try_compile LINENO
1542     # --------------------------
1543     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1544     ac_fn_c_try_compile ()
1545     {
1546     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547     rm -f conftest.$ac_objext
1548     if { { ac_try="$ac_compile"
1549     case "(($ac_try" in
1550     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551     *) ac_try_echo=$ac_try;;
1552     esac
1553     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554     $as_echo "$ac_try_echo"; } >&5
1555     (eval "$ac_compile") 2>conftest.err
1556     ac_status=$?
1557     if test -s conftest.err; then
1558     grep -v '^ *+' conftest.err >conftest.er1
1559     cat conftest.er1 >&5
1560     mv -f conftest.er1 conftest.err
1561     fi
1562     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563     test $ac_status = 0; } && {
1564     test -z "$ac_c_werror_flag" ||
1565     test ! -s conftest.err
1566     } && test -s conftest.$ac_objext; then :
1567     ac_retval=0
1568     else
1569     $as_echo "$as_me: failed program was:" >&5
1570     sed 's/^/| /' conftest.$ac_ext >&5
1571    
1572     ac_retval=1
1573     fi
1574     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575     as_fn_set_status $ac_retval
1576    
1577     } # ac_fn_c_try_compile
1578    
1579     # ac_fn_c_try_link LINENO
1580     # -----------------------
1581     # Try to link conftest.$ac_ext, and return whether this succeeded.
1582     ac_fn_c_try_link ()
1583     {
1584     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585     rm -f conftest.$ac_objext conftest$ac_exeext
1586     if { { ac_try="$ac_link"
1587     case "(($ac_try" in
1588     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589     *) ac_try_echo=$ac_try;;
1590     esac
1591     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592     $as_echo "$ac_try_echo"; } >&5
1593     (eval "$ac_link") 2>conftest.err
1594     ac_status=$?
1595     if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599     fi
1600     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601     test $ac_status = 0; } && {
1602     test -z "$ac_c_werror_flag" ||
1603     test ! -s conftest.err
1604     } && test -s conftest$ac_exeext && {
1605     test "$cross_compiling" = yes ||
1606     test -x conftest$ac_exeext
1607     }; then :
1608     ac_retval=0
1609     else
1610     $as_echo "$as_me: failed program was:" >&5
1611     sed 's/^/| /' conftest.$ac_ext >&5
1612    
1613     ac_retval=1
1614     fi
1615     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1616     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1617     # interfere with the next link command; also delete a directory that is
1618     # left behind by Apple's compiler. We do this before executing the actions.
1619     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1620     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621     as_fn_set_status $ac_retval
1622    
1623     } # ac_fn_c_try_link
1624    
1625     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626     # -------------------------------------------------------
1627     # Tests whether HEADER exists and can be compiled using the include files in
1628     # INCLUDES, setting the cache variable VAR accordingly.
1629     ac_fn_c_check_header_compile ()
1630     {
1631     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633     $as_echo_n "checking for $2... " >&6; }
1634     if eval \${$3+:} false; then :
1635     $as_echo_n "(cached) " >&6
1636     else
1637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638     /* end confdefs.h. */
1639     $4
1640     #include <$2>
1641     _ACEOF
1642     if ac_fn_c_try_compile "$LINENO"; then :
1643     eval "$3=yes"
1644     else
1645     eval "$3=no"
1646     fi
1647     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648     fi
1649     eval ac_res=\$$3
1650     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651     $as_echo "$ac_res" >&6; }
1652     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653    
1654     } # ac_fn_c_check_header_compile
1655    
1656     # ac_fn_c_try_cpp LINENO
1657     # ----------------------
1658     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1659     ac_fn_c_try_cpp ()
1660     {
1661     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662     if { { ac_try="$ac_cpp conftest.$ac_ext"
1663     case "(($ac_try" in
1664     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665     *) ac_try_echo=$ac_try;;
1666     esac
1667     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668     $as_echo "$ac_try_echo"; } >&5
1669     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1670     ac_status=$?
1671     if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675     fi
1676     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677     test $ac_status = 0; } > conftest.i && {
1678     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1679     test ! -s conftest.err
1680     }; then :
1681     ac_retval=0
1682     else
1683     $as_echo "$as_me: failed program was:" >&5
1684     sed 's/^/| /' conftest.$ac_ext >&5
1685    
1686     ac_retval=1
1687     fi
1688     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689     as_fn_set_status $ac_retval
1690    
1691     } # ac_fn_c_try_cpp
1692    
1693     # ac_fn_c_try_run LINENO
1694     # ----------------------
1695     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696     # that executables *can* be run.
1697     ac_fn_c_try_run ()
1698     {
1699     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700     if { { ac_try="$ac_link"
1701     case "(($ac_try" in
1702     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703     *) ac_try_echo=$ac_try;;
1704     esac
1705     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706     $as_echo "$ac_try_echo"; } >&5
1707     (eval "$ac_link") 2>&5
1708     ac_status=$?
1709     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711     { { case "(($ac_try" in
1712     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713     *) ac_try_echo=$ac_try;;
1714     esac
1715     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716     $as_echo "$ac_try_echo"; } >&5
1717     (eval "$ac_try") 2>&5
1718     ac_status=$?
1719     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720     test $ac_status = 0; }; }; then :
1721     ac_retval=0
1722     else
1723     $as_echo "$as_me: program exited with status $ac_status" >&5
1724     $as_echo "$as_me: failed program was:" >&5
1725     sed 's/^/| /' conftest.$ac_ext >&5
1726    
1727     ac_retval=$ac_status
1728     fi
1729     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731     as_fn_set_status $ac_retval
1732    
1733     } # ac_fn_c_try_run
1734    
1735     # ac_fn_c_check_func LINENO FUNC VAR
1736     # ----------------------------------
1737     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1738     ac_fn_c_check_func ()
1739     {
1740     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742     $as_echo_n "checking for $2... " >&6; }
1743     if eval \${$3+:} false; then :
1744     $as_echo_n "(cached) " >&6
1745     else
1746     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747     /* end confdefs.h. */
1748     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750     #define $2 innocuous_$2
1751    
1752     /* System header to define __stub macros and hopefully few prototypes,
1753     which can conflict with char $2 (); below.
1754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755     <limits.h> exists even on freestanding compilers. */
1756    
1757     #ifdef __STDC__
1758     # include <limits.h>
1759     #else
1760     # include <assert.h>
1761     #endif
1762    
1763     #undef $2
1764    
1765     /* Override any GCC internal prototype to avoid an error.
1766     Use char because int might match the return type of a GCC
1767     builtin and then its argument prototype would still apply. */
1768     #ifdef __cplusplus
1769     extern "C"
1770     #endif
1771     char $2 ();
1772     /* The GNU C library defines this for functions which it implements
1773     to always fail with ENOSYS. Some functions are actually named
1774     something starting with __ and the normal name is an alias. */
1775     #if defined __stub_$2 || defined __stub___$2
1776     choke me
1777     #endif
1778    
1779     int
1780     main ()
1781     {
1782     return $2 ();
1783     ;
1784     return 0;
1785     }
1786     _ACEOF
1787     if ac_fn_c_try_link "$LINENO"; then :
1788     eval "$3=yes"
1789     else
1790     eval "$3=no"
1791     fi
1792     rm -f core conftest.err conftest.$ac_objext \
1793     conftest$ac_exeext conftest.$ac_ext
1794     fi
1795     eval ac_res=\$$3
1796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797     $as_echo "$ac_res" >&6; }
1798     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799    
1800     } # ac_fn_c_check_func
1801 michael 5052 cat >config.log <<_ACEOF
1802     This file contains any messages produced by compilers while
1803     running configure, to aid debugging if configure makes a mistake.
1804    
1805 michael 5266 It was created by hopm $as_me TRUNK, which was
1806 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1807 michael 5052
1808     $ $0 $@
1809    
1810     _ACEOF
1811     exec 5>>config.log
1812     {
1813     cat <<_ASUNAME
1814     ## --------- ##
1815     ## Platform. ##
1816     ## --------- ##
1817    
1818     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823    
1824     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826    
1827     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834    
1835     _ASUNAME
1836    
1837     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838     for as_dir in $PATH
1839     do
1840     IFS=$as_save_IFS
1841     test -z "$as_dir" && as_dir=.
1842 michael 5059 $as_echo "PATH: $as_dir"
1843     done
1844 michael 5052 IFS=$as_save_IFS
1845    
1846     } >&5
1847    
1848     cat >&5 <<_ACEOF
1849    
1850    
1851     ## ----------- ##
1852     ## Core tests. ##
1853     ## ----------- ##
1854    
1855     _ACEOF
1856    
1857    
1858     # Keep a trace of the command line.
1859     # Strip out --no-create and --no-recursion so they do not pile up.
1860     # Strip out --silent because we don't want to record it for future runs.
1861     # Also quote any args containing shell meta-characters.
1862     # Make two passes to allow for proper duplicate-argument suppression.
1863     ac_configure_args=
1864     ac_configure_args0=
1865     ac_configure_args1=
1866     ac_must_keep_next=false
1867     for ac_pass in 1 2
1868     do
1869     for ac_arg
1870     do
1871     case $ac_arg in
1872     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874     | -silent | --silent | --silen | --sile | --sil)
1875     continue ;;
1876     *\'*)
1877 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 michael 5052 esac
1879     case $ac_pass in
1880 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1881 michael 5052 2)
1882 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 michael 5052 if test $ac_must_keep_next = true; then
1884     ac_must_keep_next=false # Got value, back to normal.
1885     else
1886     case $ac_arg in
1887     *=* | --config-cache | -C | -disable-* | --disable-* \
1888     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890     | -with-* | --with-* | -without-* | --without-* | --x)
1891     case "$ac_configure_args0 " in
1892     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893     esac
1894     ;;
1895     -* ) ac_must_keep_next=true ;;
1896     esac
1897     fi
1898 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1899 michael 5052 ;;
1900     esac
1901     done
1902     done
1903 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1904     { ac_configure_args1=; unset ac_configure_args1;}
1905 michael 5052
1906     # When interrupted or exit'd, cleanup temporary files, and complete
1907     # config.log. We remove comments because anyway the quotes in there
1908     # would cause problems or look ugly.
1909     # WARNING: Use '\'' to represent an apostrophe within the trap.
1910     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911     trap 'exit_status=$?
1912     # Save into config.log some information that might help in debugging.
1913     {
1914     echo
1915    
1916 michael 5059 $as_echo "## ---------------- ##
1917 michael 5052 ## Cache variables. ##
1918 michael 5059 ## ---------------- ##"
1919 michael 5052 echo
1920     # The following way of writing the cache mishandles newlines in values,
1921     (
1922     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923     eval ac_val=\$$ac_var
1924     case $ac_val in #(
1925     *${as_nl}*)
1926     case $ac_var in #(
1927 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 michael 5052 esac
1930     case $ac_var in #(
1931     _ | IFS | as_nl) ;; #(
1932 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933     *) { eval $ac_var=; unset $ac_var;} ;;
1934 michael 5052 esac ;;
1935     esac
1936     done
1937     (set) 2>&1 |
1938     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939     *${as_nl}ac_space=\ *)
1940     sed -n \
1941     "s/'\''/'\''\\\\'\'''\''/g;
1942     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943     ;; #(
1944     *)
1945     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946     ;;
1947     esac |
1948     sort
1949     )
1950     echo
1951    
1952 michael 5059 $as_echo "## ----------------- ##
1953 michael 5052 ## Output variables. ##
1954 michael 5059 ## ----------------- ##"
1955 michael 5052 echo
1956     for ac_var in $ac_subst_vars
1957     do
1958     eval ac_val=\$$ac_var
1959     case $ac_val in
1960 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 michael 5052 esac
1962 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1963 michael 5052 done | sort
1964     echo
1965    
1966     if test -n "$ac_subst_files"; then
1967 michael 5059 $as_echo "## ------------------- ##
1968 michael 5052 ## File substitutions. ##
1969 michael 5059 ## ------------------- ##"
1970 michael 5052 echo
1971     for ac_var in $ac_subst_files
1972     do
1973     eval ac_val=\$$ac_var
1974     case $ac_val in
1975 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 michael 5052 esac
1977 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1978 michael 5052 done | sort
1979     echo
1980     fi
1981    
1982     if test -s confdefs.h; then
1983 michael 5059 $as_echo "## ----------- ##
1984 michael 5052 ## confdefs.h. ##
1985 michael 5059 ## ----------- ##"
1986 michael 5052 echo
1987     cat confdefs.h
1988     echo
1989     fi
1990     test "$ac_signal" != 0 &&
1991 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
1992     $as_echo "$as_me: exit $exit_status"
1993 michael 5052 } >&5
1994     rm -f core *.core core.conftest.* &&
1995     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996     exit $exit_status
1997     ' 0
1998     for ac_signal in 1 2 13 15; do
1999 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 michael 5052 done
2001     ac_signal=0
2002    
2003     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004     rm -f -r conftest* confdefs.h
2005    
2006 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2007    
2008 michael 5052 # Predefined preprocessor variables.
2009    
2010     cat >>confdefs.h <<_ACEOF
2011     #define PACKAGE_NAME "$PACKAGE_NAME"
2012     _ACEOF
2013    
2014     cat >>confdefs.h <<_ACEOF
2015     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2016     _ACEOF
2017    
2018     cat >>confdefs.h <<_ACEOF
2019     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2020     _ACEOF
2021    
2022     cat >>confdefs.h <<_ACEOF
2023     #define PACKAGE_STRING "$PACKAGE_STRING"
2024     _ACEOF
2025    
2026     cat >>confdefs.h <<_ACEOF
2027     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2028     _ACEOF
2029    
2030 michael 5059 cat >>confdefs.h <<_ACEOF
2031     #define PACKAGE_URL "$PACKAGE_URL"
2032     _ACEOF
2033 michael 5052
2034 michael 5059
2035 michael 5052 # Let the site file select an alternate cache file if it wants to.
2036 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2037     ac_site_file1=NONE
2038     ac_site_file2=NONE
2039 michael 5052 if test -n "$CONFIG_SITE"; then
2040 michael 5059 # We do not want a PATH search for config.site.
2041     case $CONFIG_SITE in #((
2042     -*) ac_site_file1=./$CONFIG_SITE;;
2043     */*) ac_site_file1=$CONFIG_SITE;;
2044     *) ac_site_file1=./$CONFIG_SITE;;
2045     esac
2046 michael 5052 elif test "x$prefix" != xNONE; then
2047 michael 5059 ac_site_file1=$prefix/share/config.site
2048     ac_site_file2=$prefix/etc/config.site
2049 michael 5052 else
2050 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2051     ac_site_file2=$ac_default_prefix/etc/config.site
2052 michael 5052 fi
2053 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2054 michael 5052 do
2055 michael 5059 test "x$ac_site_file" = xNONE && continue
2056     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2060 michael 5059 . "$ac_site_file" \
2061     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063     as_fn_error $? "failed to load site script $ac_site_file
2064     See \`config.log' for more details" "$LINENO" 5; }
2065 michael 5052 fi
2066     done
2067    
2068     if test -r "$cache_file"; then
2069 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2070     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073     $as_echo "$as_me: loading cache $cache_file" >&6;}
2074 michael 5052 case $cache_file in
2075     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076     *) . "./$cache_file";;
2077     esac
2078     fi
2079     else
2080 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081     $as_echo "$as_me: creating cache $cache_file" >&6;}
2082 michael 5052 >$cache_file
2083     fi
2084    
2085     # Check that the precious variables saved in the cache have kept the same
2086     # value.
2087     ac_cache_corrupted=false
2088     for ac_var in $ac_precious_vars; do
2089     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090     eval ac_new_set=\$ac_env_${ac_var}_set
2091     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092     eval ac_new_val=\$ac_env_${ac_var}_value
2093     case $ac_old_set,$ac_new_set in
2094     set,)
2095 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 michael 5052 ac_cache_corrupted=: ;;
2098     ,set)
2099 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 michael 5052 ac_cache_corrupted=: ;;
2102     ,);;
2103     *)
2104     if test "x$ac_old_val" != "x$ac_new_val"; then
2105 michael 5059 # differences in whitespace do not lead to failure.
2106     ac_old_val_w=`echo x $ac_old_val`
2107     ac_new_val_w=`echo x $ac_new_val`
2108     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111     ac_cache_corrupted=:
2112     else
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115     eval $ac_var=\$ac_old_val
2116     fi
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2121 michael 5052 fi;;
2122     esac
2123     # Pass precious variables to config.status.
2124     if test "$ac_new_set" = set; then
2125     case $ac_new_val in
2126 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2128     esac
2129     case " $ac_configure_args " in
2130     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2132 michael 5052 esac
2133     fi
2134     done
2135     if $ac_cache_corrupted; then
2136 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2141 michael 5052 fi
2142 michael 5059 ## -------------------- ##
2143     ## Main body of script. ##
2144     ## -------------------- ##
2145 michael 5052
2146     ac_ext=c
2147     ac_cpp='$CPP $CPPFLAGS'
2148     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2151    
2152    
2153 michael 5352 am__api_version='1.15'
2154 michael 5059
2155 michael 5052 ac_aux_dir=
2156     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157     if test -f "$ac_dir/install-sh"; then
2158     ac_aux_dir=$ac_dir
2159     ac_install_sh="$ac_aux_dir/install-sh -c"
2160     break
2161     elif test -f "$ac_dir/install.sh"; then
2162     ac_aux_dir=$ac_dir
2163     ac_install_sh="$ac_aux_dir/install.sh -c"
2164     break
2165     elif test -f "$ac_dir/shtool"; then
2166     ac_aux_dir=$ac_dir
2167     ac_install_sh="$ac_aux_dir/shtool install -c"
2168     break
2169     fi
2170     done
2171     if test -z "$ac_aux_dir"; then
2172 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2173 michael 5052 fi
2174    
2175     # These three variables are undocumented and unsupported,
2176     # and are intended to be withdrawn in a future Autoconf release.
2177     # They can cause serious problems if a builder's source tree is in a directory
2178     # whose full name contains unusual characters.
2179     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2180     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2181     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2182    
2183    
2184     # Find a good install program. We prefer a C program (faster),
2185     # so one script is as good as another. But avoid the broken or
2186     # incompatible versions:
2187     # SysV /etc/install, /usr/sbin/install
2188     # SunOS /usr/etc/install
2189     # IRIX /sbin/install
2190     # AIX /bin/install
2191     # AmigaOS /C/install, which installs bootblocks on floppy discs
2192     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2193     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2194     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2195     # OS/2's system install, which has a completely different semantic
2196     # ./install, which can be erroneously created by make from ./install.sh.
2197 michael 5059 # Reject install programs that cannot install multiple files.
2198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2199     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2200 michael 5052 if test -z "$INSTALL"; then
2201 michael 5059 if ${ac_cv_path_install+:} false; then :
2202     $as_echo_n "(cached) " >&6
2203 michael 5052 else
2204     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205     for as_dir in $PATH
2206     do
2207     IFS=$as_save_IFS
2208     test -z "$as_dir" && as_dir=.
2209 michael 5059 # Account for people who put trailing slashes in PATH elements.
2210     case $as_dir/ in #((
2211     ./ | .// | /[cC]/* | \
2212 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2213 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2214 michael 5052 /usr/ucb/* ) ;;
2215     *)
2216     # OSF1 and SCO ODT 3.0 have their own names for install.
2217     # Don't use installbsd from OSF since it installs stuff as root
2218     # by default.
2219     for ac_prog in ginstall scoinst install; do
2220     for ac_exec_ext in '' $ac_executable_extensions; do
2221 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2222 michael 5052 if test $ac_prog = install &&
2223     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2224     # AIX install. It has an incompatible calling convention.
2225     :
2226     elif test $ac_prog = install &&
2227     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2228     # program-specific install script used by HP pwplus--don't use.
2229     :
2230     else
2231 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2232     echo one > conftest.one
2233     echo two > conftest.two
2234     mkdir conftest.dir
2235     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2236     test -s conftest.one && test -s conftest.two &&
2237     test -s conftest.dir/conftest.one &&
2238     test -s conftest.dir/conftest.two
2239     then
2240     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2241     break 3
2242     fi
2243 michael 5052 fi
2244     fi
2245     done
2246     done
2247     ;;
2248     esac
2249 michael 5059
2250     done
2251 michael 5052 IFS=$as_save_IFS
2252    
2253 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2254 michael 5052
2255     fi
2256     if test "${ac_cv_path_install+set}" = set; then
2257     INSTALL=$ac_cv_path_install
2258     else
2259     # As a last resort, use the slow shell script. Don't cache a
2260     # value for INSTALL within a source directory, because that will
2261     # break other packages using the cache if that directory is
2262     # removed, or if the value is a relative name.
2263     INSTALL=$ac_install_sh
2264     fi
2265     fi
2266 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2267     $as_echo "$INSTALL" >&6; }
2268 michael 5052
2269     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2270     # It thinks the first close brace ends the variable substitution.
2271     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2272    
2273     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2274    
2275     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2276    
2277 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2278     $as_echo_n "checking whether build environment is sane... " >&6; }
2279     # Reject unsafe characters in $srcdir or the absolute working directory
2280     # name. Accept space and tab only in the latter.
2281     am_lf='
2282     '
2283     case `pwd` in
2284     *[\\\"\#\$\&\'\`$am_lf]*)
2285     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286     esac
2287     case $srcdir in
2288     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2289     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2290     esac
2291    
2292     # Do 'set' in a subshell so we don't clobber the current shell's
2293 michael 5052 # arguments. Must try -L first in case configure is actually a
2294     # symlink; some systems play weird games with the mod time of symlinks
2295     # (eg FreeBSD returns the mod time of the symlink's containing
2296     # directory).
2297     if (
2298 michael 5059 am_has_slept=no
2299     for am_try in 1 2; do
2300     echo "timestamp, slept: $am_has_slept" > conftest.file
2301     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2302     if test "$*" = "X"; then
2303     # -L didn't work.
2304     set X `ls -t "$srcdir/configure" conftest.file`
2305     fi
2306     if test "$*" != "X $srcdir/configure conftest.file" \
2307     && test "$*" != "X conftest.file $srcdir/configure"; then
2308 michael 5052
2309 michael 5059 # If neither matched, then we have a broken ls. This can happen
2310     # if, for instance, CONFIG_SHELL is bash and it inherits a
2311     # broken ls alias from the environment. This has actually
2312     # happened. Such a system could not be considered "sane".
2313     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2314     alias in your environment" "$LINENO" 5
2315     fi
2316     if test "$2" = conftest.file || test $am_try -eq 2; then
2317     break
2318     fi
2319     # Just in case.
2320     sleep 1
2321     am_has_slept=yes
2322     done
2323 michael 5052 test "$2" = conftest.file
2324     )
2325     then
2326     # Ok.
2327     :
2328     else
2329 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2330     Check your system clock" "$LINENO" 5
2331 michael 5052 fi
2332 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2333     $as_echo "yes" >&6; }
2334     # If we didn't sleep, we still need to ensure time stamps of config.status and
2335     # generated files are strictly newer.
2336     am_sleep_pid=
2337     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2338     ( sleep 1 ) &
2339     am_sleep_pid=$!
2340     fi
2341    
2342     rm -f conftest.file
2343    
2344 michael 5052 test "$program_prefix" != NONE &&
2345     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346     # Use a double $ so make ignores it.
2347     test "$program_suffix" != NONE &&
2348     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349 michael 5059 # Double any \ or $.
2350 michael 5052 # By default was `s,x,x', remove it if useless.
2351 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2353 michael 5052
2354 michael 5352 # Expand $ac_aux_dir to an absolute path.
2355     am_aux_dir=`cd "$ac_aux_dir" && pwd`
2356 michael 5052
2357 michael 5059 if test x"${MISSING+set}" != xset; then
2358     case $am_aux_dir in
2359     *\ * | *\ *)
2360     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2361     *)
2362     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2363     esac
2364     fi
2365 michael 5052 # Use eval to expand $SHELL
2366 michael 5059 if eval "$MISSING --is-lightweight"; then
2367     am_missing_run="$MISSING "
2368 michael 5052 else
2369     am_missing_run=
2370 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2371     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2372 michael 5052 fi
2373    
2374 michael 5352 if test x"${install_sh+set}" != xset; then
2375 michael 5059 case $am_aux_dir in
2376     *\ * | *\ *)
2377     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2378     *)
2379     install_sh="\${SHELL} $am_aux_dir/install-sh"
2380     esac
2381     fi
2382    
2383     # Installed binaries are usually stripped using 'strip' when the user
2384     # run "make install-strip". However 'strip' might not be the right
2385     # tool to use in cross-compilation environments, therefore Automake
2386     # will honor the 'STRIP' environment variable to overrule this program.
2387     if test "$cross_compiling" != no; then
2388     if test -n "$ac_tool_prefix"; then
2389     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2390     set dummy ${ac_tool_prefix}strip; ac_word=$2
2391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2392     $as_echo_n "checking for $ac_word... " >&6; }
2393     if ${ac_cv_prog_STRIP+:} false; then :
2394     $as_echo_n "(cached) " >&6
2395 michael 5052 else
2396 michael 5059 if test -n "$STRIP"; then
2397     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398     else
2399     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400     for as_dir in $PATH
2401     do
2402     IFS=$as_save_IFS
2403     test -z "$as_dir" && as_dir=.
2404     for ac_exec_ext in '' $ac_executable_extensions; do
2405     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408     break 2
2409     fi
2410     done
2411 michael 5052 done
2412 michael 5059 IFS=$as_save_IFS
2413    
2414     fi
2415     fi
2416     STRIP=$ac_cv_prog_STRIP
2417     if test -n "$STRIP"; then
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2419     $as_echo "$STRIP" >&6; }
2420     else
2421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422     $as_echo "no" >&6; }
2423     fi
2424    
2425    
2426     fi
2427     if test -z "$ac_cv_prog_STRIP"; then
2428     ac_ct_STRIP=$STRIP
2429     # Extract the first word of "strip", so it can be a program name with args.
2430     set dummy strip; ac_word=$2
2431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2432     $as_echo_n "checking for $ac_word... " >&6; }
2433     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2434     $as_echo_n "(cached) " >&6
2435     else
2436     if test -n "$ac_ct_STRIP"; then
2437     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438     else
2439     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440     for as_dir in $PATH
2441     do
2442     IFS=$as_save_IFS
2443     test -z "$as_dir" && as_dir=.
2444     for ac_exec_ext in '' $ac_executable_extensions; do
2445     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446     ac_cv_prog_ac_ct_STRIP="strip"
2447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448     break 2
2449     fi
2450     done
2451     done
2452     IFS=$as_save_IFS
2453    
2454     fi
2455     fi
2456     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2457     if test -n "$ac_ct_STRIP"; then
2458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2459     $as_echo "$ac_ct_STRIP" >&6; }
2460     else
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462     $as_echo "no" >&6; }
2463     fi
2464    
2465     if test "x$ac_ct_STRIP" = x; then
2466     STRIP=":"
2467 michael 5052 else
2468 michael 5059 case $cross_compiling:$ac_tool_warned in
2469     yes:)
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2471     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472     ac_tool_warned=yes ;;
2473     esac
2474     STRIP=$ac_ct_STRIP
2475 michael 5052 fi
2476 michael 5059 else
2477     STRIP="$ac_cv_prog_STRIP"
2478 michael 5052 fi
2479    
2480 michael 5059 fi
2481     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482    
2483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2484     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2485     if test -z "$MKDIR_P"; then
2486     if ${ac_cv_path_mkdir+:} false; then :
2487     $as_echo_n "(cached) " >&6
2488     else
2489     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2491     do
2492     IFS=$as_save_IFS
2493     test -z "$as_dir" && as_dir=.
2494     for ac_prog in mkdir gmkdir; do
2495     for ac_exec_ext in '' $ac_executable_extensions; do
2496     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2497     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2498     'mkdir (GNU coreutils) '* | \
2499     'mkdir (coreutils) '* | \
2500     'mkdir (fileutils) '4.1*)
2501     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2502     break 3;;
2503     esac
2504     done
2505     done
2506     done
2507     IFS=$as_save_IFS
2508    
2509     fi
2510    
2511     test -d ./--version && rmdir ./--version
2512     if test "${ac_cv_path_mkdir+set}" = set; then
2513     MKDIR_P="$ac_cv_path_mkdir -p"
2514     else
2515     # As a last resort, use the slow shell script. Don't cache a
2516     # value for MKDIR_P within a source directory, because that will
2517     # break other packages using the cache if that directory is
2518     # removed, or if the value is a relative name.
2519     MKDIR_P="$ac_install_sh -d"
2520     fi
2521     fi
2522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2523     $as_echo "$MKDIR_P" >&6; }
2524    
2525 michael 5052 for ac_prog in gawk mawk nawk awk
2526     do
2527     # Extract the first word of "$ac_prog", so it can be a program name with args.
2528     set dummy $ac_prog; ac_word=$2
2529 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530     $as_echo_n "checking for $ac_word... " >&6; }
2531     if ${ac_cv_prog_AWK+:} false; then :
2532     $as_echo_n "(cached) " >&6
2533 michael 5052 else
2534     if test -n "$AWK"; then
2535     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2536     else
2537     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538     for as_dir in $PATH
2539     do
2540     IFS=$as_save_IFS
2541     test -z "$as_dir" && as_dir=.
2542 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2543     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2544 michael 5052 ac_cv_prog_AWK="$ac_prog"
2545 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 michael 5052 break 2
2547     fi
2548     done
2549 michael 5059 done
2550 michael 5052 IFS=$as_save_IFS
2551    
2552     fi
2553     fi
2554     AWK=$ac_cv_prog_AWK
2555     if test -n "$AWK"; then
2556 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2557     $as_echo "$AWK" >&6; }
2558 michael 5052 else
2559 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560     $as_echo "no" >&6; }
2561 michael 5052 fi
2562    
2563    
2564     test -n "$AWK" && break
2565     done
2566    
2567 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2568     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2569     set x ${MAKE-make}
2570     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2571     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2572     $as_echo_n "(cached) " >&6
2573 michael 5052 else
2574     cat >conftest.make <<\_ACEOF
2575     SHELL = /bin/sh
2576     all:
2577     @echo '@@@%%%=$(MAKE)=@@@%%%'
2578     _ACEOF
2579 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2580 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2581     *@@@%%%=?*=@@@%%%*)
2582     eval ac_cv_prog_make_${ac_make}_set=yes;;
2583     *)
2584     eval ac_cv_prog_make_${ac_make}_set=no;;
2585     esac
2586     rm -f conftest.make
2587     fi
2588     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2589 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590     $as_echo "yes" >&6; }
2591 michael 5052 SET_MAKE=
2592     else
2593 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594     $as_echo "no" >&6; }
2595 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2596     fi
2597    
2598     rm -rf .tst 2>/dev/null
2599     mkdir .tst 2>/dev/null
2600     if test -d .tst; then
2601     am__leading_dot=.
2602     else
2603     am__leading_dot=_
2604     fi
2605     rmdir .tst 2>/dev/null
2606    
2607 michael 5059 # Check whether --enable-silent-rules was given.
2608     if test "${enable_silent_rules+set}" = set; then :
2609     enableval=$enable_silent_rules;
2610 michael 5052 fi
2611    
2612 michael 5059 case $enable_silent_rules in # (((
2613     yes) AM_DEFAULT_VERBOSITY=0;;
2614     no) AM_DEFAULT_VERBOSITY=1;;
2615     *) AM_DEFAULT_VERBOSITY=1;;
2616     esac
2617     am_make=${MAKE-make}
2618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2619     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2620     if ${am_cv_make_support_nested_variables+:} false; then :
2621     $as_echo_n "(cached) " >&6
2622     else
2623     if $as_echo 'TRUE=$(BAR$(V))
2624     BAR0=false
2625     BAR1=true
2626     V=1
2627     am__doit:
2628     @$(TRUE)
2629     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2630     am_cv_make_support_nested_variables=yes
2631     else
2632     am_cv_make_support_nested_variables=no
2633     fi
2634     fi
2635     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2636     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2637     if test $am_cv_make_support_nested_variables = yes; then
2638     AM_V='$(V)'
2639     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2640     else
2641     AM_V=$AM_DEFAULT_VERBOSITY
2642     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2643     fi
2644     AM_BACKSLASH='\'
2645    
2646     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2647     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2648     # is not polluted with repeated "-I."
2649     am__isrc=' -I$(srcdir)'
2650     # test to see if srcdir already configured
2651     if test -f $srcdir/config.status; then
2652     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2653     fi
2654     fi
2655    
2656 michael 5052 # test whether we have cygpath
2657     if test -z "$CYGPATH_W"; then
2658     if (cygpath --version) >/dev/null 2>/dev/null; then
2659     CYGPATH_W='cygpath -w'
2660     else
2661     CYGPATH_W=echo
2662     fi
2663     fi
2664    
2665    
2666     # Define the identity of the package.
2667 michael 5061 PACKAGE='hopm'
2668 michael 5266 VERSION='TRUNK'
2669 michael 5052
2670    
2671     cat >>confdefs.h <<_ACEOF
2672     #define PACKAGE "$PACKAGE"
2673     _ACEOF
2674    
2675    
2676     cat >>confdefs.h <<_ACEOF
2677     #define VERSION "$VERSION"
2678     _ACEOF
2679    
2680     # Some tools Automake needs.
2681    
2682     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2683    
2684    
2685     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2686    
2687    
2688     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2689    
2690    
2691     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2692    
2693    
2694     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2695    
2696 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2697     # dies out for good. For more background, see:
2698     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2699     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2700     mkdir_p='$(MKDIR_P)'
2701 michael 5052
2702 michael 5352 # We need awk for the "check" target (and possibly the TAP driver). The
2703     # system "awk" is bad on some platforms.
2704 michael 5059 # Always define AMTAR for backward compatibility. Yes, it's still used
2705     # in the wild :-( We should find a proper way to deprecate it ...
2706     AMTAR='$${TAR-tar}'
2707 michael 5052
2708    
2709 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2710     _am_tools='gnutar pax cpio none'
2711 michael 5052
2712 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2713 michael 5052
2714    
2715    
2716    
2717    
2718    
2719 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2720     # is OK; and we want to be able to make that assumption in our Makefile
2721     # recipes. So use an aggressive probe to check that the usage we want is
2722     # actually supported "in the wild" to an acceptable degree.
2723     # See automake bug#10828.
2724     # To make any issue more visible, cause the running configure to be aborted
2725     # by default if the 'rm' program in use doesn't match our expectations; the
2726     # user can still override this though.
2727     if rm -f && rm -fr && rm -rf; then : OK; else
2728     cat >&2 <<'END'
2729     Oops!
2730 michael 5052
2731 michael 5059 Your 'rm' program seems unable to run without file operands specified
2732     on the command line, even when the '-f' option is present. This is contrary
2733     to the behaviour of most rm programs out there, and not conforming with
2734     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2735 michael 5052
2736 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2737     of your $PATH and any error possibly output before this message. This
2738     can help us improve future automake versions.
2739 michael 5052
2740 michael 5059 END
2741     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2742     echo 'Configuration will proceed anyway, since you have set the' >&2
2743     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2744     echo >&2
2745     else
2746     cat >&2 <<'END'
2747     Aborting the configuration process, to ensure you take notice of the issue.
2748 michael 5052
2749 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2750     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2751 michael 5052
2752 michael 5059 If you want to complete the configuration process using your problematic
2753     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2754     to "yes", and re-run configure.
2755 michael 5052
2756 michael 5059 END
2757     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2758     fi
2759     fi
2760    
2761 michael 5352
2762 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2763     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2764 michael 5052 # Check whether --enable-maintainer-mode was given.
2765 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2766 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2767     else
2768     USE_MAINTAINER_MODE=no
2769     fi
2770    
2771 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2772     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2773     if test $USE_MAINTAINER_MODE = yes; then
2774 michael 5052 MAINTAINER_MODE_TRUE=
2775     MAINTAINER_MODE_FALSE='#'
2776     else
2777     MAINTAINER_MODE_TRUE='#'
2778     MAINTAINER_MODE_FALSE=
2779     fi
2780    
2781     MAINT=$MAINTAINER_MODE_TRUE
2782    
2783    
2784    
2785 michael 5314 ac_config_headers="$ac_config_headers src/setup.h"
2786    
2787    
2788    
2789 michael 6099
2790 michael 5059 DEPDIR="${am__leading_dot}deps"
2791    
2792     ac_config_commands="$ac_config_commands depfiles"
2793    
2794    
2795     am_make=${MAKE-make}
2796     cat > confinc << 'END'
2797     am__doit:
2798     @echo this is the am__doit target
2799     .PHONY: am__doit
2800     END
2801     # If we don't find an include directive, just comment out the code.
2802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2803     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2804     am__include="#"
2805     am__quote=
2806     _am_result=none
2807     # First try GNU make style include.
2808     echo "include confinc" > confmf
2809     # Ignore all kinds of additional output from 'make'.
2810     case `$am_make -s -f confmf 2> /dev/null` in #(
2811     *the\ am__doit\ target*)
2812     am__include=include
2813     am__quote=
2814     _am_result=GNU
2815     ;;
2816     esac
2817     # Now try BSD make style include.
2818     if test "$am__include" = "#"; then
2819     echo '.include "confinc"' > confmf
2820     case `$am_make -s -f confmf 2> /dev/null` in #(
2821     *the\ am__doit\ target*)
2822     am__include=.include
2823     am__quote="\""
2824     _am_result=BSD
2825     ;;
2826     esac
2827     fi
2828    
2829    
2830     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2831     $as_echo "$_am_result" >&6; }
2832     rm -f confinc confmf
2833    
2834     # Check whether --enable-dependency-tracking was given.
2835     if test "${enable_dependency_tracking+set}" = set; then :
2836     enableval=$enable_dependency_tracking;
2837     fi
2838    
2839     if test "x$enable_dependency_tracking" != xno; then
2840     am_depcomp="$ac_aux_dir/depcomp"
2841     AMDEPBACKSLASH='\'
2842     am__nodep='_no'
2843     fi
2844     if test "x$enable_dependency_tracking" != xno; then
2845     AMDEP_TRUE=
2846     AMDEP_FALSE='#'
2847     else
2848     AMDEP_TRUE='#'
2849     AMDEP_FALSE=
2850     fi
2851    
2852    
2853 michael 5052 ac_ext=c
2854     ac_cpp='$CPP $CPPFLAGS'
2855     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2856     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2857     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2858     if test -n "$ac_tool_prefix"; then
2859     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2860     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2861 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862     $as_echo_n "checking for $ac_word... " >&6; }
2863     if ${ac_cv_prog_CC+:} false; then :
2864     $as_echo_n "(cached) " >&6
2865 michael 5052 else
2866     if test -n "$CC"; then
2867     ac_cv_prog_CC="$CC" # Let the user override the test.
2868     else
2869     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870     for as_dir in $PATH
2871     do
2872     IFS=$as_save_IFS
2873     test -z "$as_dir" && as_dir=.
2874 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2875     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2877 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 michael 5052 break 2
2879     fi
2880     done
2881 michael 5059 done
2882 michael 5052 IFS=$as_save_IFS
2883    
2884     fi
2885     fi
2886     CC=$ac_cv_prog_CC
2887     if test -n "$CC"; then
2888 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889     $as_echo "$CC" >&6; }
2890 michael 5052 else
2891 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892     $as_echo "no" >&6; }
2893 michael 5052 fi
2894    
2895    
2896     fi
2897     if test -z "$ac_cv_prog_CC"; then
2898     ac_ct_CC=$CC
2899     # Extract the first word of "gcc", so it can be a program name with args.
2900     set dummy gcc; ac_word=$2
2901 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902     $as_echo_n "checking for $ac_word... " >&6; }
2903     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2904     $as_echo_n "(cached) " >&6
2905 michael 5052 else
2906     if test -n "$ac_ct_CC"; then
2907     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908     else
2909     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910     for as_dir in $PATH
2911     do
2912     IFS=$as_save_IFS
2913     test -z "$as_dir" && as_dir=.
2914 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2915     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2916 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2917 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 michael 5052 break 2
2919     fi
2920     done
2921 michael 5059 done
2922 michael 5052 IFS=$as_save_IFS
2923    
2924     fi
2925     fi
2926     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927     if test -n "$ac_ct_CC"; then
2928 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929     $as_echo "$ac_ct_CC" >&6; }
2930 michael 5052 else
2931 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932     $as_echo "no" >&6; }
2933 michael 5052 fi
2934    
2935     if test "x$ac_ct_CC" = x; then
2936     CC=""
2937     else
2938     case $cross_compiling:$ac_tool_warned in
2939     yes:)
2940 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942 michael 5052 ac_tool_warned=yes ;;
2943     esac
2944     CC=$ac_ct_CC
2945     fi
2946     else
2947     CC="$ac_cv_prog_CC"
2948     fi
2949    
2950     if test -z "$CC"; then
2951     if test -n "$ac_tool_prefix"; then
2952     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2953     set dummy ${ac_tool_prefix}cc; ac_word=$2
2954 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955     $as_echo_n "checking for $ac_word... " >&6; }
2956     if ${ac_cv_prog_CC+:} false; then :
2957     $as_echo_n "(cached) " >&6
2958 michael 5052 else
2959     if test -n "$CC"; then
2960     ac_cv_prog_CC="$CC" # Let the user override the test.
2961     else
2962     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963     for as_dir in $PATH
2964     do
2965     IFS=$as_save_IFS
2966     test -z "$as_dir" && as_dir=.
2967 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2968     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
2970 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 michael 5052 break 2
2972     fi
2973     done
2974 michael 5059 done
2975 michael 5052 IFS=$as_save_IFS
2976    
2977     fi
2978     fi
2979     CC=$ac_cv_prog_CC
2980     if test -n "$CC"; then
2981 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982     $as_echo "$CC" >&6; }
2983 michael 5052 else
2984 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985     $as_echo "no" >&6; }
2986 michael 5052 fi
2987    
2988    
2989     fi
2990     fi
2991     if test -z "$CC"; then
2992     # Extract the first word of "cc", so it can be a program name with args.
2993     set dummy cc; ac_word=$2
2994 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995     $as_echo_n "checking for $ac_word... " >&6; }
2996     if ${ac_cv_prog_CC+:} false; then :
2997     $as_echo_n "(cached) " >&6
2998 michael 5052 else
2999     if test -n "$CC"; then
3000     ac_cv_prog_CC="$CC" # Let the user override the test.
3001     else
3002     ac_prog_rejected=no
3003     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004     for as_dir in $PATH
3005     do
3006     IFS=$as_save_IFS
3007     test -z "$as_dir" && as_dir=.
3008 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3009     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3011     ac_prog_rejected=yes
3012     continue
3013     fi
3014     ac_cv_prog_CC="cc"
3015 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 michael 5052 break 2
3017     fi
3018     done
3019 michael 5059 done
3020 michael 5052 IFS=$as_save_IFS
3021    
3022     if test $ac_prog_rejected = yes; then
3023     # We found a bogon in the path, so make sure we never use it.
3024     set dummy $ac_cv_prog_CC
3025     shift
3026     if test $# != 0; then
3027     # We chose a different compiler from the bogus one.
3028     # However, it has the same basename, so the bogon will be chosen
3029     # first if we set CC to just the basename; use the full file name.
3030     shift
3031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3032     fi
3033     fi
3034     fi
3035     fi
3036     CC=$ac_cv_prog_CC
3037     if test -n "$CC"; then
3038 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039     $as_echo "$CC" >&6; }
3040 michael 5052 else
3041 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042     $as_echo "no" >&6; }
3043 michael 5052 fi
3044    
3045    
3046     fi
3047     if test -z "$CC"; then
3048     if test -n "$ac_tool_prefix"; then
3049     for ac_prog in cl.exe
3050     do
3051     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3052     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3053 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054     $as_echo_n "checking for $ac_word... " >&6; }
3055     if ${ac_cv_prog_CC+:} false; then :
3056     $as_echo_n "(cached) " >&6
3057 michael 5052 else
3058     if test -n "$CC"; then
3059     ac_cv_prog_CC="$CC" # Let the user override the test.
3060     else
3061     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062     for as_dir in $PATH
3063     do
3064     IFS=$as_save_IFS
3065     test -z "$as_dir" && as_dir=.
3066 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3067     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3069 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 michael 5052 break 2
3071     fi
3072     done
3073 michael 5059 done
3074 michael 5052 IFS=$as_save_IFS
3075    
3076     fi
3077     fi
3078     CC=$ac_cv_prog_CC
3079     if test -n "$CC"; then
3080 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081     $as_echo "$CC" >&6; }
3082 michael 5052 else
3083 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084     $as_echo "no" >&6; }
3085 michael 5052 fi
3086    
3087    
3088     test -n "$CC" && break
3089     done
3090     fi
3091     if test -z "$CC"; then
3092     ac_ct_CC=$CC
3093     for ac_prog in cl.exe
3094     do
3095     # Extract the first word of "$ac_prog", so it can be a program name with args.
3096     set dummy $ac_prog; ac_word=$2
3097 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098     $as_echo_n "checking for $ac_word... " >&6; }
3099     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3100     $as_echo_n "(cached) " >&6
3101 michael 5052 else
3102     if test -n "$ac_ct_CC"; then
3103     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3104     else
3105     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106     for as_dir in $PATH
3107     do
3108     IFS=$as_save_IFS
3109     test -z "$as_dir" && as_dir=.
3110 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3111     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3113 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 michael 5052 break 2
3115     fi
3116     done
3117 michael 5059 done
3118 michael 5052 IFS=$as_save_IFS
3119    
3120     fi
3121     fi
3122     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3123     if test -n "$ac_ct_CC"; then
3124 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3125     $as_echo "$ac_ct_CC" >&6; }
3126 michael 5052 else
3127 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128     $as_echo "no" >&6; }
3129 michael 5052 fi
3130    
3131    
3132     test -n "$ac_ct_CC" && break
3133     done
3134    
3135     if test "x$ac_ct_CC" = x; then
3136     CC=""
3137     else
3138     case $cross_compiling:$ac_tool_warned in
3139     yes:)
3140 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3141     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3142 michael 5052 ac_tool_warned=yes ;;
3143     esac
3144     CC=$ac_ct_CC
3145     fi
3146     fi
3147    
3148     fi
3149    
3150    
3151 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153     as_fn_error $? "no acceptable C compiler found in \$PATH
3154     See \`config.log' for more details" "$LINENO" 5; }
3155 michael 5052
3156     # Provide some information about the compiler.
3157 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3158     set X $ac_compile
3159     ac_compiler=$2
3160     for ac_option in --version -v -V -qversion; do
3161     { { ac_try="$ac_compiler $ac_option >&5"
3162 michael 5052 case "(($ac_try" in
3163     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164     *) ac_try_echo=$ac_try;;
3165     esac
3166 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167     $as_echo "$ac_try_echo"; } >&5
3168     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3169 michael 5052 ac_status=$?
3170 michael 5059 if test -s conftest.err; then
3171     sed '10a\
3172     ... rest of stderr output deleted ...
3173     10q' conftest.err >conftest.er1
3174     cat conftest.er1 >&5
3175     fi
3176     rm -f conftest.er1 conftest.err
3177     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3178     test $ac_status = 0; }
3179     done
3180 michael 5052
3181 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 michael 5052 /* end confdefs.h. */
3183    
3184     int
3185     main ()
3186     {
3187    
3188     ;
3189     return 0;
3190     }
3191     _ACEOF
3192     ac_clean_files_save=$ac_clean_files
3193 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3194 michael 5052 # Try to create an executable without -o first, disregard a.out.
3195     # It will help us diagnose broken compilers, and finding out an intuition
3196     # of exeext.
3197 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3198     $as_echo_n "checking whether the C compiler works... " >&6; }
3199     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200    
3201     # The possible output files:
3202     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3203    
3204 michael 5052 ac_rmfiles=
3205     for ac_file in $ac_files
3206     do
3207     case $ac_file in
3208 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210     esac
3211     done
3212     rm -f $ac_rmfiles
3213    
3214 michael 5059 if { { ac_try="$ac_link_default"
3215 michael 5052 case "(($ac_try" in
3216     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217     *) ac_try_echo=$ac_try;;
3218     esac
3219 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3220     $as_echo "$ac_try_echo"; } >&5
3221 michael 5052 (eval "$ac_link_default") 2>&5
3222     ac_status=$?
3223 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3224     test $ac_status = 0; }; then :
3225 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3226     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3227     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3228     # so that the user can short-circuit this test for compilers unknown to
3229     # Autoconf.
3230 michael 5059 for ac_file in $ac_files ''
3231 michael 5052 do
3232     test -f "$ac_file" || continue
3233     case $ac_file in
3234 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3235 michael 5052 ;;
3236     [ab].out )
3237     # We found the default executable, but exeext='' is most
3238     # certainly right.
3239     break;;
3240     *.* )
3241 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3242 michael 5052 then :; else
3243     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3244     fi
3245     # We set ac_cv_exeext here because the later test for it is not
3246     # safe: cross compilers may not add the suffix if given an `-o'
3247     # argument, so we may need to know it at that point already.
3248     # Even if this section looks crufty: it has the advantage of
3249     # actually working.
3250     break;;
3251     * )
3252     break;;
3253     esac
3254     done
3255     test "$ac_cv_exeext" = no && ac_cv_exeext=
3256    
3257     else
3258 michael 5059 ac_file=''
3259     fi
3260     if test -z "$ac_file"; then :
3261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262     $as_echo "no" >&6; }
3263     $as_echo "$as_me: failed program was:" >&5
3264 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3265    
3266 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268     as_fn_error 77 "C compiler cannot create executables
3269     See \`config.log' for more details" "$LINENO" 5; }
3270     else
3271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272     $as_echo "yes" >&6; }
3273 michael 5052 fi
3274 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3275     $as_echo_n "checking for C compiler default output file name... " >&6; }
3276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3277     $as_echo "$ac_file" >&6; }
3278 michael 5052 ac_exeext=$ac_cv_exeext
3279    
3280 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3281 michael 5052 ac_clean_files=$ac_clean_files_save
3282 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3283     $as_echo_n "checking for suffix of executables... " >&6; }
3284     if { { ac_try="$ac_link"
3285 michael 5052 case "(($ac_try" in
3286     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287     *) ac_try_echo=$ac_try;;
3288     esac
3289 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290     $as_echo "$ac_try_echo"; } >&5
3291 michael 5052 (eval "$ac_link") 2>&5
3292     ac_status=$?
3293 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294     test $ac_status = 0; }; then :
3295 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3296     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3297     # work properly (i.e., refer to `conftest.exe'), while it won't with
3298     # `rm'.
3299     for ac_file in conftest.exe conftest conftest.*; do
3300     test -f "$ac_file" || continue
3301     case $ac_file in
3302 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3303 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304     break;;
3305     * ) break;;
3306     esac
3307     done
3308     else
3309 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3312     See \`config.log' for more details" "$LINENO" 5; }
3313 michael 5052 fi
3314 michael 5059 rm -f conftest conftest$ac_cv_exeext
3315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3316     $as_echo "$ac_cv_exeext" >&6; }
3317 michael 5052
3318     rm -f conftest.$ac_ext
3319     EXEEXT=$ac_cv_exeext
3320     ac_exeext=$EXEEXT
3321 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322     /* end confdefs.h. */
3323     #include <stdio.h>
3324     int
3325     main ()
3326     {
3327     FILE *f = fopen ("conftest.out", "w");
3328     return ferror (f) || fclose (f) != 0;
3329    
3330     ;
3331     return 0;
3332     }
3333     _ACEOF
3334     ac_clean_files="$ac_clean_files conftest.out"
3335     # Check that the compiler produces executables we can run. If not, either
3336     # the compiler is broken, or we cross compile.
3337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3338     $as_echo_n "checking whether we are cross compiling... " >&6; }
3339     if test "$cross_compiling" != yes; then
3340     { { ac_try="$ac_link"
3341     case "(($ac_try" in
3342     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343     *) ac_try_echo=$ac_try;;
3344     esac
3345     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346     $as_echo "$ac_try_echo"; } >&5
3347     (eval "$ac_link") 2>&5
3348     ac_status=$?
3349     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350     test $ac_status = 0; }
3351     if { ac_try='./conftest$ac_cv_exeext'
3352     { { case "(($ac_try" in
3353     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354     *) ac_try_echo=$ac_try;;
3355     esac
3356     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357     $as_echo "$ac_try_echo"; } >&5
3358     (eval "$ac_try") 2>&5
3359     ac_status=$?
3360     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361     test $ac_status = 0; }; }; then
3362     cross_compiling=no
3363     else
3364     if test "$cross_compiling" = maybe; then
3365     cross_compiling=yes
3366     else
3367     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369     as_fn_error $? "cannot run C compiled programs.
3370     If you meant to cross compile, use \`--host'.
3371     See \`config.log' for more details" "$LINENO" 5; }
3372     fi
3373     fi
3374     fi
3375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3376     $as_echo "$cross_compiling" >&6; }
3377    
3378     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3379     ac_clean_files=$ac_clean_files_save
3380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3381     $as_echo_n "checking for suffix of object files... " >&6; }
3382     if ${ac_cv_objext+:} false; then :
3383     $as_echo_n "(cached) " >&6
3384 michael 5052 else
3385 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 michael 5052 /* end confdefs.h. */
3387    
3388     int
3389     main ()
3390     {
3391    
3392     ;
3393     return 0;
3394     }
3395     _ACEOF
3396     rm -f conftest.o conftest.obj
3397 michael 5059 if { { ac_try="$ac_compile"
3398 michael 5052 case "(($ac_try" in
3399     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400     *) ac_try_echo=$ac_try;;
3401     esac
3402 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3403     $as_echo "$ac_try_echo"; } >&5
3404 michael 5052 (eval "$ac_compile") 2>&5
3405     ac_status=$?
3406 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3407     test $ac_status = 0; }; then :
3408 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3409     test -f "$ac_file" || continue;
3410     case $ac_file in
3411 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3412 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413     break;;
3414     esac
3415     done
3416     else
3417 michael 5059 $as_echo "$as_me: failed program was:" >&5
3418 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3419    
3420 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422     as_fn_error $? "cannot compute suffix of object files: cannot compile
3423     See \`config.log' for more details" "$LINENO" 5; }
3424 michael 5052 fi
3425     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3426     fi
3427 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3428     $as_echo "$ac_cv_objext" >&6; }
3429 michael 5052 OBJEXT=$ac_cv_objext
3430     ac_objext=$OBJEXT
3431 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3432     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3433     if ${ac_cv_c_compiler_gnu+:} false; then :
3434     $as_echo_n "(cached) " >&6
3435 michael 5052 else
3436 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 michael 5052 /* end confdefs.h. */
3438    
3439     int
3440     main ()
3441     {
3442     #ifndef __GNUC__
3443     choke me
3444     #endif
3445    
3446     ;
3447     return 0;
3448     }
3449     _ACEOF
3450 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3451 michael 5052 ac_compiler_gnu=yes
3452     else
3453 michael 5059 ac_compiler_gnu=no
3454 michael 5052 fi
3455     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457    
3458     fi
3459 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3460     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3461     if test $ac_compiler_gnu = yes; then
3462     GCC=yes
3463     else
3464     GCC=
3465     fi
3466 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3467     ac_save_CFLAGS=$CFLAGS
3468 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3469     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3470     if ${ac_cv_prog_cc_g+:} false; then :
3471     $as_echo_n "(cached) " >&6
3472 michael 5052 else
3473     ac_save_c_werror_flag=$ac_c_werror_flag
3474     ac_c_werror_flag=yes
3475     ac_cv_prog_cc_g=no
3476     CFLAGS="-g"
3477 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 michael 5052 /* end confdefs.h. */
3479    
3480     int
3481     main ()
3482     {
3483    
3484     ;
3485     return 0;
3486     }
3487     _ACEOF
3488 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3489 michael 5052 ac_cv_prog_cc_g=yes
3490     else
3491 michael 5059 CFLAGS=""
3492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 michael 5052 /* end confdefs.h. */
3494    
3495     int
3496     main ()
3497     {
3498    
3499     ;
3500     return 0;
3501     }
3502     _ACEOF
3503 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3504    
3505 michael 5052 else
3506 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3507 michael 5052 CFLAGS="-g"
3508 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 michael 5052 /* end confdefs.h. */
3510    
3511     int
3512     main ()
3513     {
3514    
3515     ;
3516     return 0;
3517     }
3518     _ACEOF
3519 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3520 michael 5052 ac_cv_prog_cc_g=yes
3521     fi
3522     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523     fi
3524     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525     fi
3526     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527     ac_c_werror_flag=$ac_save_c_werror_flag
3528     fi
3529 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3530     $as_echo "$ac_cv_prog_cc_g" >&6; }
3531 michael 5052 if test "$ac_test_CFLAGS" = set; then
3532     CFLAGS=$ac_save_CFLAGS
3533     elif test $ac_cv_prog_cc_g = yes; then
3534     if test "$GCC" = yes; then
3535     CFLAGS="-g -O2"
3536     else
3537     CFLAGS="-g"
3538     fi
3539     else
3540     if test "$GCC" = yes; then
3541     CFLAGS="-O2"
3542     else
3543     CFLAGS=
3544     fi
3545     fi
3546 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3547     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3548     if ${ac_cv_prog_cc_c89+:} false; then :
3549     $as_echo_n "(cached) " >&6
3550 michael 5052 else
3551     ac_cv_prog_cc_c89=no
3552     ac_save_CC=$CC
3553 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 michael 5052 /* end confdefs.h. */
3555     #include <stdarg.h>
3556     #include <stdio.h>
3557 michael 5059 struct stat;
3558 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3559     struct buf { int x; };
3560     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3561     static char *e (p, i)
3562     char **p;
3563     int i;
3564     {
3565     return p[i];
3566     }
3567     static char *f (char * (*g) (char **, int), char **p, ...)
3568     {
3569     char *s;
3570     va_list v;
3571     va_start (v,p);
3572     s = g (p, va_arg (v,int));
3573     va_end (v);
3574     return s;
3575     }
3576    
3577     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3578     function prototypes and stuff, but not '\xHH' hex character constants.
3579     These don't provoke an error unfortunately, instead are silently treated
3580     as 'x'. The following induces an error, until -std is added to get
3581     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3582     array size at least. It's necessary to write '\x00'==0 to get something
3583     that's true only with -std. */
3584     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3585    
3586     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3587     inside strings and character constants. */
3588     #define FOO(x) 'x'
3589     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3590    
3591     int test (int i, double x);
3592     struct s1 {int (*f) (int a);};
3593     struct s2 {int (*f) (double a);};
3594     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3595     int argc;
3596     char **argv;
3597     int
3598     main ()
3599     {
3600     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3601     ;
3602     return 0;
3603     }
3604     _ACEOF
3605     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3606     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607     do
3608     CC="$ac_save_CC $ac_arg"
3609 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3610 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3611     fi
3612     rm -f core conftest.err conftest.$ac_objext
3613     test "x$ac_cv_prog_cc_c89" != "xno" && break
3614     done
3615     rm -f conftest.$ac_ext
3616     CC=$ac_save_CC
3617    
3618     fi
3619     # AC_CACHE_VAL
3620     case "x$ac_cv_prog_cc_c89" in
3621     x)
3622 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623     $as_echo "none needed" >&6; } ;;
3624 michael 5052 xno)
3625 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626     $as_echo "unsupported" >&6; } ;;
3627 michael 5052 *)
3628     CC="$CC $ac_cv_prog_cc_c89"
3629 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3630     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3631 michael 5052 esac
3632 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633 michael 5052
3634 michael 5059 fi
3635 michael 5052
3636     ac_ext=c
3637     ac_cpp='$CPP $CPPFLAGS'
3638     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641    
3642 michael 5059 ac_ext=c
3643     ac_cpp='$CPP $CPPFLAGS'
3644     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3648     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3649     if ${am_cv_prog_cc_c_o+:} false; then :
3650     $as_echo_n "(cached) " >&6
3651     else
3652     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653     /* end confdefs.h. */
3654 michael 5052
3655 michael 5059 int
3656     main ()
3657     {
3658 michael 5052
3659 michael 5059 ;
3660     return 0;
3661     }
3662     _ACEOF
3663     # Make sure it works both with $CC and with simple cc.
3664     # Following AC_PROG_CC_C_O, we do the test twice because some
3665     # compilers refuse to overwrite an existing .o file with -o,
3666     # though they will create one.
3667     am_cv_prog_cc_c_o=yes
3668     for am_i in 1 2; do
3669     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3670     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3671     ac_status=$?
3672     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673     (exit $ac_status); } \
3674     && test -f conftest2.$ac_objext; then
3675     : OK
3676     else
3677     am_cv_prog_cc_c_o=no
3678     break
3679     fi
3680     done
3681     rm -f core conftest*
3682     unset am_i
3683 michael 5052 fi
3684 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3685     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3686     if test "$am_cv_prog_cc_c_o" != yes; then
3687     # Losing compiler, so override with the script.
3688     # FIXME: It is wrong to rewrite CC.
3689     # But if we don't then we get into trouble of one sort or another.
3690     # A longer-term fix would be to have automake use am__CC in this case,
3691     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3692     CC="$am_aux_dir/compile $CC"
3693 michael 5052 fi
3694 michael 5059 ac_ext=c
3695     ac_cpp='$CPP $CPPFLAGS'
3696     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3697     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3698     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3699 michael 5052
3700    
3701     depcc="$CC" am_compiler_list=
3702    
3703 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3704     $as_echo_n "checking dependency style of $depcc... " >&6; }
3705     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3706     $as_echo_n "(cached) " >&6
3707 michael 5052 else
3708     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709     # We make a subdir and do the tests there. Otherwise we can end up
3710     # making bogus files that we don't know about and never remove. For
3711     # instance it was reported that on HP-UX the gcc test will end up
3712 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3713     # in D".
3714     rm -rf conftest.dir
3715 michael 5052 mkdir conftest.dir
3716     # Copy depcomp to subdir because otherwise we won't find it if we're
3717     # using a relative directory.
3718     cp "$am_depcomp" conftest.dir
3719     cd conftest.dir
3720     # We will build objects and dependencies in a subdirectory because
3721     # it helps to detect inapplicable dependency modes. For instance
3722     # both Tru64's cc and ICC support -MD to output dependencies as a
3723     # side effect of compilation, but ICC will put the dependencies in
3724     # the current directory while Tru64 will put them in the object
3725     # directory.
3726     mkdir sub
3727    
3728     am_cv_CC_dependencies_compiler_type=none
3729     if test "$am_compiler_list" = ""; then
3730     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3731     fi
3732 michael 5059 am__universal=false
3733     case " $depcc " in #(
3734     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3735     esac
3736    
3737 michael 5052 for depmode in $am_compiler_list; do
3738     # Setup a source with many dependencies, because some compilers
3739     # like to wrap large dependency lists on column 80 (with \), and
3740     # we should not choose a depcomp mode which is confused by this.
3741     #
3742     # We need to recreate these files for each test, as the compiler may
3743     # overwrite some of them when testing with obscure command lines.
3744     # This happens at least with the AIX C compiler.
3745     : > sub/conftest.c
3746     for i in 1 2 3 4 5 6; do
3747     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3749     # Solaris 10 /bin/sh.
3750     echo '/* dummy */' > sub/conftst$i.h
3751 michael 5052 done
3752     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3753    
3754 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3755     # mode. It turns out that the SunPro C++ compiler does not properly
3756     # handle '-M -o', and we need to detect this. Also, some Intel
3757     # versions had trouble with output in subdirs.
3758     am__obj=sub/conftest.${OBJEXT-o}
3759     am__minus_obj="-o $am__obj"
3760 michael 5052 case $depmode in
3761 michael 5059 gcc)
3762     # This depmode causes a compiler race in universal mode.
3763     test "$am__universal" = false || continue
3764     ;;
3765 michael 5052 nosideeffect)
3766 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3767     # only be used when explicitly requested.
3768 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3769     continue
3770     else
3771     break
3772     fi
3773     ;;
3774 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3775     # This compiler won't grok '-c -o', but also, the minuso test has
3776     # not run yet. These depmodes are late enough in the game, and
3777     # so weak that their functioning should not be impacted.
3778     am__obj=conftest.${OBJEXT-o}
3779     am__minus_obj=
3780     ;;
3781 michael 5052 none) break ;;
3782     esac
3783     if depmode=$depmode \
3784 michael 5059 source=sub/conftest.c object=$am__obj \
3785 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3786 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3787 michael 5052 >/dev/null 2>conftest.err &&
3788 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3789 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3790 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3791 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3792     # icc doesn't choke on unknown options, it will just issue warnings
3793     # or remarks (even with -Werror). So we grep stderr for any message
3794     # that says an option was ignored or not supported.
3795     # When given -MP, icc 7.0 and 7.1 complain thusly:
3796     # icc: Command line warning: ignoring option '-M'; no argument required
3797     # The diagnosis changed in icc 8.0:
3798     # icc: Command line remark: option '-MP' not supported
3799     if (grep 'ignoring option' conftest.err ||
3800     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3801     am_cv_CC_dependencies_compiler_type=$depmode
3802     break
3803     fi
3804     fi
3805     done
3806    
3807     cd ..
3808     rm -rf conftest.dir
3809     else
3810     am_cv_CC_dependencies_compiler_type=none
3811     fi
3812    
3813     fi
3814 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3815     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3816 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817    
3818 michael 5059 if
3819 michael 5052 test "x$enable_dependency_tracking" != xno \
3820     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3821     am__fastdepCC_TRUE=
3822     am__fastdepCC_FALSE='#'
3823     else
3824     am__fastdepCC_TRUE='#'
3825     am__fastdepCC_FALSE=
3826     fi
3827    
3828    
3829 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3830     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3831     if ${ac_cv_prog_cc_c99+:} false; then :
3832     $as_echo_n "(cached) " >&6
3833 michael 5052 else
3834 michael 5059 ac_cv_prog_cc_c99=no
3835     ac_save_CC=$CC
3836     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837     /* end confdefs.h. */
3838     #include <stdarg.h>
3839     #include <stdbool.h>
3840     #include <stdlib.h>
3841     #include <wchar.h>
3842     #include <stdio.h>
3843    
3844     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3845     #define debug(...) fprintf (stderr, __VA_ARGS__)
3846     #define showlist(...) puts (#__VA_ARGS__)
3847     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3848     static void
3849     test_varargs_macros (void)
3850     {
3851     int x = 1234;
3852     int y = 5678;
3853     debug ("Flag");
3854     debug ("X = %d\n", x);
3855     showlist (The first, second, and third items.);
3856     report (x>y, "x is %d but y is %d", x, y);
3857     }
3858    
3859     // Check long long types.
3860     #define BIG64 18446744073709551615ull
3861     #define BIG32 4294967295ul
3862     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3863     #if !BIG_OK
3864     your preprocessor is broken;
3865     #endif
3866     #if BIG_OK
3867     #else
3868     your preprocessor is broken;
3869     #endif
3870     static long long int bignum = -9223372036854775807LL;
3871     static unsigned long long int ubignum = BIG64;
3872    
3873     struct incomplete_array
3874     {
3875     int datasize;
3876     double data[];
3877     };
3878    
3879     struct named_init {
3880     int number;
3881     const wchar_t *name;
3882     double average;
3883     };
3884    
3885     typedef const char *ccp;
3886    
3887     static inline int
3888     test_restrict (ccp restrict text)
3889     {
3890     // See if C++-style comments work.
3891     // Iterate through items via the restricted pointer.
3892     // Also check for declarations in for loops.
3893     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3894     continue;
3895     return 0;
3896     }
3897    
3898     // Check varargs and va_copy.
3899     static void
3900     test_varargs (const char *format, ...)
3901     {
3902     va_list args;
3903     va_start (args, format);
3904     va_list args_copy;
3905     va_copy (args_copy, args);
3906    
3907     const char *str;
3908     int number;
3909     float fnumber;
3910    
3911     while (*format)
3912     {
3913     switch (*format++)
3914     {
3915     case 's': // string
3916     str = va_arg (args_copy, const char *);
3917     break;
3918     case 'd': // int
3919     number = va_arg (args_copy, int);
3920     break;
3921     case 'f': // float
3922     fnumber = va_arg (args_copy, double);
3923     break;
3924     default:
3925     break;
3926     }
3927     }
3928     va_end (args_copy);
3929     va_end (args);
3930     }
3931    
3932     int
3933     main ()
3934     {
3935    
3936     // Check bool.
3937     _Bool success = false;
3938    
3939     // Check restrict.
3940     if (test_restrict ("String literal") == 0)
3941     success = true;
3942     char *restrict newvar = "Another string";
3943    
3944     // Check varargs.
3945     test_varargs ("s, d' f .", "string", 65, 34.234);
3946     test_varargs_macros ();
3947    
3948     // Check flexible array members.
3949     struct incomplete_array *ia =
3950     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3951     ia->datasize = 10;
3952     for (int i = 0; i < ia->datasize; ++i)
3953     ia->data[i] = i * 1.234;
3954    
3955     // Check named initializers.
3956     struct named_init ni = {
3957     .number = 34,
3958     .name = L"Test wide string",
3959     .average = 543.34343,
3960     };
3961    
3962     ni.number = 58;
3963    
3964     int dynamic_array[ni.number];
3965     dynamic_array[ni.number - 1] = 543;
3966    
3967     // work around unused variable warnings
3968     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3969     || dynamic_array[ni.number - 1] != 543);
3970    
3971     ;
3972     return 0;
3973     }
3974     _ACEOF
3975     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3976     do
3977     CC="$ac_save_CC $ac_arg"
3978     if ac_fn_c_try_compile "$LINENO"; then :
3979     ac_cv_prog_cc_c99=$ac_arg
3980 michael 5052 fi
3981 michael 5059 rm -f core conftest.err conftest.$ac_objext
3982     test "x$ac_cv_prog_cc_c99" != "xno" && break
3983     done
3984     rm -f conftest.$ac_ext
3985     CC=$ac_save_CC
3986 michael 5052
3987 michael 5059 fi
3988     # AC_CACHE_VAL
3989     case "x$ac_cv_prog_cc_c99" in
3990     x)
3991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3992     $as_echo "none needed" >&6; } ;;
3993     xno)
3994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3995     $as_echo "unsupported" >&6; } ;;
3996     *)
3997     CC="$CC $ac_cv_prog_cc_c99"
3998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3999     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4000     esac
4001     if test "x$ac_cv_prog_cc_c99" != xno; then :
4002 michael 5052
4003     fi
4004    
4005    
4006 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4007     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4008 michael 5052 fi
4009 michael 5059 case `pwd` in
4010     *\ * | *\ *)
4011     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4012     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4013     esac
4014 michael 5052
4015    
4016 michael 5059
4017 michael 5860 macro_version='2.4.6'
4018     macro_revision='2.4.6'
4019 michael 5059
4020    
4021    
4022    
4023    
4024    
4025    
4026    
4027    
4028    
4029    
4030    
4031    
4032     ltmain=$ac_aux_dir/ltmain.sh
4033    
4034 michael 5052 # Make sure we can run config.sub.
4035     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4036 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4037 michael 5052
4038 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4039     $as_echo_n "checking build system type... " >&6; }
4040     if ${ac_cv_build+:} false; then :
4041     $as_echo_n "(cached) " >&6
4042 michael 5052 else
4043     ac_build_alias=$build_alias
4044     test "x$ac_build_alias" = x &&
4045     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4046     test "x$ac_build_alias" = x &&
4047 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4048 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4049 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4050 michael 5052
4051     fi
4052 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4053     $as_echo "$ac_cv_build" >&6; }
4054 michael 5052 case $ac_cv_build in
4055     *-*-*) ;;
4056 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4057 michael 5052 esac
4058     build=$ac_cv_build
4059     ac_save_IFS=$IFS; IFS='-'
4060     set x $ac_cv_build
4061     shift
4062     build_cpu=$1
4063     build_vendor=$2
4064     shift; shift
4065     # Remember, the first character of IFS is used to create $*,
4066     # except with old shells:
4067     build_os=$*
4068     IFS=$ac_save_IFS
4069     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4070    
4071    
4072 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4073     $as_echo_n "checking host system type... " >&6; }
4074     if ${ac_cv_host+:} false; then :
4075     $as_echo_n "(cached) " >&6
4076 michael 5052 else
4077     if test "x$host_alias" = x; then
4078     ac_cv_host=$ac_cv_build
4079     else
4080     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4081 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4082 michael 5052 fi
4083    
4084     fi
4085 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4086     $as_echo "$ac_cv_host" >&6; }
4087 michael 5052 case $ac_cv_host in
4088     *-*-*) ;;
4089 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4090 michael 5052 esac
4091     host=$ac_cv_host
4092     ac_save_IFS=$IFS; IFS='-'
4093     set x $ac_cv_host
4094     shift
4095     host_cpu=$1
4096     host_vendor=$2
4097     shift; shift
4098     # Remember, the first character of IFS is used to create $*,
4099     # except with old shells:
4100     host_os=$*
4101     IFS=$ac_save_IFS
4102     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4103    
4104    
4105 michael 5059 # Backslashify metacharacters that are still active within
4106     # double-quoted strings.
4107     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4108    
4109     # Same as above, but do not quote variable references.
4110     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4111    
4112     # Sed substitution to delay expansion of an escaped shell variable in a
4113     # double_quote_subst'ed string.
4114     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4115    
4116     # Sed substitution to delay expansion of an escaped single quote.
4117     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4118    
4119     # Sed substitution to avoid accidental globbing in evaled expressions
4120     no_glob_subst='s/\*/\\\*/g'
4121    
4122     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4123     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4124     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4125    
4126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4127     $as_echo_n "checking how to print strings... " >&6; }
4128     # Test print first, because it will be a builtin if present.
4129     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4130     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4131     ECHO='print -r --'
4132     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4133     ECHO='printf %s\n'
4134 michael 5052 else
4135 michael 5059 # Use this function as a fallback that always works.
4136     func_fallback_echo ()
4137     {
4138     eval 'cat <<_LTECHO_EOF
4139     $1
4140     _LTECHO_EOF'
4141     }
4142     ECHO='func_fallback_echo'
4143     fi
4144    
4145     # func_echo_all arg...
4146     # Invoke $ECHO with all args, space-separated.
4147     func_echo_all ()
4148     {
4149     $ECHO ""
4150     }
4151    
4152     case $ECHO in
4153     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4154     $as_echo "printf" >&6; } ;;
4155     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4156     $as_echo "print -r" >&6; } ;;
4157     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4158     $as_echo "cat" >&6; } ;;
4159     esac
4160    
4161    
4162    
4163    
4164    
4165    
4166    
4167    
4168    
4169    
4170    
4171    
4172    
4173    
4174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4175     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4176     if ${ac_cv_path_SED+:} false; then :
4177     $as_echo_n "(cached) " >&6
4178     else
4179     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4180     for ac_i in 1 2 3 4 5 6 7; do
4181     ac_script="$ac_script$as_nl$ac_script"
4182     done
4183     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4184     { ac_script=; unset ac_script;}
4185     if test -z "$SED"; then
4186     ac_path_SED_found=false
4187     # Loop through the user's path and test for each of PROGNAME-LIST
4188     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 michael 5052 for as_dir in $PATH
4190     do
4191     IFS=$as_save_IFS
4192     test -z "$as_dir" && as_dir=.
4193 michael 5059 for ac_prog in sed gsed; do
4194 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4195 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4196     as_fn_executable_p "$ac_path_SED" || continue
4197     # Check for GNU ac_path_SED and select it if it is found.
4198     # Check for GNU $ac_path_SED
4199     case `"$ac_path_SED" --version 2>&1` in
4200     *GNU*)
4201     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4202     *)
4203     ac_count=0
4204     $as_echo_n 0123456789 >"conftest.in"
4205     while :
4206     do
4207     cat "conftest.in" "conftest.in" >"conftest.tmp"
4208     mv "conftest.tmp" "conftest.in"
4209     cp "conftest.in" "conftest.nl"
4210     $as_echo '' >> "conftest.nl"
4211     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4212     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4213     as_fn_arith $ac_count + 1 && ac_count=$as_val
4214     if test $ac_count -gt ${ac_path_SED_max-0}; then
4215     # Best one so far, save it but keep looking for a better one
4216     ac_cv_path_SED="$ac_path_SED"
4217     ac_path_SED_max=$ac_count
4218     fi
4219     # 10*(2^10) chars as input seems more than enough
4220     test $ac_count -gt 10 && break
4221     done
4222     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223     esac
4224    
4225     $ac_path_SED_found && break 3
4226 michael 5052 done
4227     done
4228 michael 5059 done
4229     IFS=$as_save_IFS
4230     if test -z "$ac_cv_path_SED"; then
4231     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4232 michael 5052 fi
4233 michael 5059 else
4234     ac_cv_path_SED=$SED
4235     fi
4236 michael 5052
4237     fi
4238 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4239     $as_echo "$ac_cv_path_SED" >&6; }
4240     SED="$ac_cv_path_SED"
4241     rm -f conftest.sed
4242 michael 5052
4243 michael 5059 test -z "$SED" && SED=sed
4244     Xsed="$SED -e 1s/^X//"
4245 michael 5052
4246 michael 5059
4247    
4248    
4249    
4250    
4251    
4252    
4253    
4254    
4255    
4256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4257     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4258     if ${ac_cv_path_GREP+:} false; then :
4259     $as_echo_n "(cached) " >&6
4260 michael 5052 else
4261 michael 5059 if test -z "$GREP"; then
4262 michael 5052 ac_path_GREP_found=false
4263 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4264     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266     do
4267     IFS=$as_save_IFS
4268     test -z "$as_dir" && as_dir=.
4269 michael 5059 for ac_prog in grep ggrep; do
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4272     as_fn_executable_p "$ac_path_GREP" || continue
4273     # Check for GNU ac_path_GREP and select it if it is found.
4274 michael 5052 # Check for GNU $ac_path_GREP
4275     case `"$ac_path_GREP" --version 2>&1` in
4276     *GNU*)
4277     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4278     *)
4279     ac_count=0
4280 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4281 michael 5052 while :
4282     do
4283     cat "conftest.in" "conftest.in" >"conftest.tmp"
4284     mv "conftest.tmp" "conftest.in"
4285     cp "conftest.in" "conftest.nl"
4286 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4287 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4288     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4289 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4290 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4291     # Best one so far, save it but keep looking for a better one
4292     ac_cv_path_GREP="$ac_path_GREP"
4293     ac_path_GREP_max=$ac_count
4294     fi
4295     # 10*(2^10) chars as input seems more than enough
4296     test $ac_count -gt 10 && break
4297     done
4298     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299     esac
4300    
4301 michael 5059 $ac_path_GREP_found && break 3
4302     done
4303 michael 5052 done
4304 michael 5059 done
4305 michael 5052 IFS=$as_save_IFS
4306 michael 5059 if test -z "$ac_cv_path_GREP"; then
4307     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4308     fi
4309 michael 5052 else
4310     ac_cv_path_GREP=$GREP
4311     fi
4312    
4313     fi
4314 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4315     $as_echo "$ac_cv_path_GREP" >&6; }
4316 michael 5052 GREP="$ac_cv_path_GREP"
4317    
4318    
4319 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4320     $as_echo_n "checking for egrep... " >&6; }
4321     if ${ac_cv_path_EGREP+:} false; then :
4322     $as_echo_n "(cached) " >&6
4323 michael 5052 else
4324     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4325     then ac_cv_path_EGREP="$GREP -E"
4326     else
4327 michael 5059 if test -z "$EGREP"; then
4328 michael 5052 ac_path_EGREP_found=false
4329 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4330     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332     do
4333     IFS=$as_save_IFS
4334     test -z "$as_dir" && as_dir=.
4335 michael 5059 for ac_prog in egrep; do
4336     for ac_exec_ext in '' $ac_executable_extensions; do
4337     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4338     as_fn_executable_p "$ac_path_EGREP" || continue
4339     # Check for GNU ac_path_EGREP and select it if it is found.
4340 michael 5052 # Check for GNU $ac_path_EGREP
4341     case `"$ac_path_EGREP" --version 2>&1` in
4342     *GNU*)
4343     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4344     *)
4345     ac_count=0
4346 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4347 michael 5052 while :
4348     do
4349     cat "conftest.in" "conftest.in" >"conftest.tmp"
4350     mv "conftest.tmp" "conftest.in"
4351     cp "conftest.in" "conftest.nl"
4352 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4353 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4354     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4355 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4356 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4357     # Best one so far, save it but keep looking for a better one
4358     ac_cv_path_EGREP="$ac_path_EGREP"
4359     ac_path_EGREP_max=$ac_count
4360     fi
4361     # 10*(2^10) chars as input seems more than enough
4362     test $ac_count -gt 10 && break
4363     done
4364     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365     esac
4366    
4367 michael 5059 $ac_path_EGREP_found && break 3
4368     done
4369 michael 5052 done
4370 michael 5059 done
4371 michael 5052 IFS=$as_save_IFS
4372 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4373     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4374     fi
4375     else
4376     ac_cv_path_EGREP=$EGREP
4377 michael 5052 fi
4378    
4379 michael 5059 fi
4380 michael 5052 fi
4381 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4382     $as_echo "$ac_cv_path_EGREP" >&6; }
4383     EGREP="$ac_cv_path_EGREP"
4384 michael 5052
4385 michael 5059
4386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4387     $as_echo_n "checking for fgrep... " >&6; }
4388     if ${ac_cv_path_FGREP+:} false; then :
4389     $as_echo_n "(cached) " >&6
4390 michael 5052 else
4391 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4392     then ac_cv_path_FGREP="$GREP -F"
4393     else
4394     if test -z "$FGREP"; then
4395     ac_path_FGREP_found=false
4396     # Loop through the user's path and test for each of PROGNAME-LIST
4397     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4399     do
4400     IFS=$as_save_IFS
4401     test -z "$as_dir" && as_dir=.
4402     for ac_prog in fgrep; do
4403     for ac_exec_ext in '' $ac_executable_extensions; do
4404     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4405     as_fn_executable_p "$ac_path_FGREP" || continue
4406     # Check for GNU ac_path_FGREP and select it if it is found.
4407     # Check for GNU $ac_path_FGREP
4408     case `"$ac_path_FGREP" --version 2>&1` in
4409     *GNU*)
4410     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4411     *)
4412     ac_count=0
4413     $as_echo_n 0123456789 >"conftest.in"
4414     while :
4415     do
4416     cat "conftest.in" "conftest.in" >"conftest.tmp"
4417     mv "conftest.tmp" "conftest.in"
4418     cp "conftest.in" "conftest.nl"
4419     $as_echo 'FGREP' >> "conftest.nl"
4420     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422     as_fn_arith $ac_count + 1 && ac_count=$as_val
4423     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4424     # Best one so far, save it but keep looking for a better one
4425     ac_cv_path_FGREP="$ac_path_FGREP"
4426     ac_path_FGREP_max=$ac_count
4427     fi
4428     # 10*(2^10) chars as input seems more than enough
4429     test $ac_count -gt 10 && break
4430     done
4431     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432     esac
4433    
4434     $ac_path_FGREP_found && break 3
4435     done
4436     done
4437     done
4438     IFS=$as_save_IFS
4439     if test -z "$ac_cv_path_FGREP"; then
4440     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4441     fi
4442     else
4443     ac_cv_path_FGREP=$FGREP
4444 michael 5052 fi
4445    
4446     fi
4447     fi
4448 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4449     $as_echo "$ac_cv_path_FGREP" >&6; }
4450     FGREP="$ac_cv_path_FGREP"
4451 michael 5052
4452    
4453 michael 5059 test -z "$GREP" && GREP=grep
4454 michael 5052
4455 michael 5059
4456    
4457    
4458    
4459    
4460    
4461    
4462    
4463    
4464    
4465    
4466    
4467    
4468    
4469    
4470    
4471    
4472    
4473 michael 5052 # Check whether --with-gnu-ld was given.
4474 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4475     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4476 michael 5052 else
4477     with_gnu_ld=no
4478     fi
4479    
4480     ac_prog=ld
4481 michael 5059 if test yes = "$GCC"; then
4482 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4483 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4484     $as_echo_n "checking for ld used by $CC... " >&6; }
4485 michael 5052 case $host in
4486     *-*-mingw*)
4487 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4488 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4489     *)
4490     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4491     esac
4492     case $ac_prog in
4493     # Accept absolute paths.
4494     [\\/]* | ?:[\\/]*)
4495     re_direlt='/[^/][^/]*/\.\./'
4496     # Canonicalize the pathname of ld
4497 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4498     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4499     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4500 michael 5052 done
4501 michael 5059 test -z "$LD" && LD=$ac_prog
4502 michael 5052 ;;
4503     "")
4504     # If it fails, then pretend we aren't using GCC.
4505     ac_prog=ld
4506     ;;
4507     *)
4508     # If it is relative, then search for the first ld in PATH.
4509     with_gnu_ld=unknown
4510     ;;
4511     esac
4512 michael 5059 elif test yes = "$with_gnu_ld"; then
4513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4514     $as_echo_n "checking for GNU ld... " >&6; }
4515 michael 5052 else
4516 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4517     $as_echo_n "checking for non-GNU ld... " >&6; }
4518 michael 5052 fi
4519 michael 5059 if ${lt_cv_path_LD+:} false; then :
4520     $as_echo_n "(cached) " >&6
4521 michael 5052 else
4522     if test -z "$LD"; then
4523 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4524 michael 5052 for ac_dir in $PATH; do
4525 michael 5059 IFS=$lt_save_ifs
4526 michael 5052 test -z "$ac_dir" && ac_dir=.
4527     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4528 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4529 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4530     # but apparently some variants of GNU ld only accept -v.
4531     # Break only if it was the GNU/non-GNU ld that we prefer.
4532     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4533     *GNU* | *'with BFD'*)
4534 michael 5059 test no != "$with_gnu_ld" && break
4535 michael 5052 ;;
4536     *)
4537 michael 5059 test yes != "$with_gnu_ld" && break
4538 michael 5052 ;;
4539     esac
4540     fi
4541     done
4542 michael 5059 IFS=$lt_save_ifs
4543 michael 5052 else
4544 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4545 michael 5052 fi
4546     fi
4547    
4548 michael 5059 LD=$lt_cv_path_LD
4549 michael 5052 if test -n "$LD"; then
4550 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4551     $as_echo "$LD" >&6; }
4552 michael 5052 else
4553 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554     $as_echo "no" >&6; }
4555 michael 5052 fi
4556 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4558     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4559     if ${lt_cv_prog_gnu_ld+:} false; then :
4560     $as_echo_n "(cached) " >&6
4561 michael 5052 else
4562     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4563     case `$LD -v 2>&1 </dev/null` in
4564     *GNU* | *'with BFD'*)
4565     lt_cv_prog_gnu_ld=yes
4566     ;;
4567     *)
4568     lt_cv_prog_gnu_ld=no
4569     ;;
4570     esac
4571     fi
4572 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4573     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4574 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4575    
4576    
4577    
4578 michael 5059
4579    
4580    
4581    
4582    
4583    
4584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4585     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4586     if ${lt_cv_path_NM+:} false; then :
4587     $as_echo_n "(cached) " >&6
4588 michael 5052 else
4589     if test -n "$NM"; then
4590     # Let the user override the test.
4591 michael 5059 lt_cv_path_NM=$NM
4592 michael 5052 else
4593 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4594 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4595     lt_nm_to_check="$lt_nm_to_check nm"
4596     fi
4597     for lt_tmp_nm in $lt_nm_to_check; do
4598 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4599 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4600 michael 5059 IFS=$lt_save_ifs
4601 michael 5052 test -z "$ac_dir" && ac_dir=.
4602 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4603     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4604 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4605 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4606 michael 5052 # nm: unknown option "B" ignored
4607     # Tru64's nm complains that /dev/null is an invalid object file
4608 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4609     case $build_os in
4610     mingw*) lt_bad_file=conftest.nm/nofile ;;
4611     *) lt_bad_file=/dev/null ;;
4612     esac
4613     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4614     *$lt_bad_file* | *'Invalid file or object type'*)
4615 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4616 michael 5059 break 2
4617 michael 5052 ;;
4618     *)
4619     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4620     */dev/null*)
4621     lt_cv_path_NM="$tmp_nm -p"
4622 michael 5059 break 2
4623 michael 5052 ;;
4624     *)
4625     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4626     continue # so that we can try to find one that supports BSD flags
4627     ;;
4628     esac
4629     ;;
4630     esac
4631     fi
4632     done
4633 michael 5059 IFS=$lt_save_ifs
4634 michael 5052 done
4635 michael 5059 : ${lt_cv_path_NM=no}
4636 michael 5052 fi
4637     fi
4638 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4639     $as_echo "$lt_cv_path_NM" >&6; }
4640     if test no != "$lt_cv_path_NM"; then
4641     NM=$lt_cv_path_NM
4642     else
4643     # Didn't find any BSD compatible name lister, look for dumpbin.
4644     if test -n "$DUMPBIN"; then :
4645     # Let the user override the test.
4646     else
4647     if test -n "$ac_tool_prefix"; then
4648     for ac_prog in dumpbin "link -dump"
4649     do
4650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4651     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653     $as_echo_n "checking for $ac_word... " >&6; }
4654     if ${ac_cv_prog_DUMPBIN+:} false; then :
4655     $as_echo_n "(cached) " >&6
4656     else
4657     if test -n "$DUMPBIN"; then
4658     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4659     else
4660     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661     for as_dir in $PATH
4662     do
4663     IFS=$as_save_IFS
4664     test -z "$as_dir" && as_dir=.
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670     fi
4671     done
4672     done
4673     IFS=$as_save_IFS
4674 michael 5052
4675 michael 5059 fi
4676     fi
4677     DUMPBIN=$ac_cv_prog_DUMPBIN
4678     if test -n "$DUMPBIN"; then
4679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4680     $as_echo "$DUMPBIN" >&6; }
4681     else
4682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683     $as_echo "no" >&6; }
4684     fi
4685    
4686    
4687     test -n "$DUMPBIN" && break
4688     done
4689     fi
4690     if test -z "$DUMPBIN"; then
4691     ac_ct_DUMPBIN=$DUMPBIN
4692     for ac_prog in dumpbin "link -dump"
4693     do
4694     # Extract the first word of "$ac_prog", so it can be a program name with args.
4695     set dummy $ac_prog; ac_word=$2
4696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4697     $as_echo_n "checking for $ac_word... " >&6; }
4698     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4699     $as_echo_n "(cached) " >&6
4700     else
4701     if test -n "$ac_ct_DUMPBIN"; then
4702     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4703     else
4704     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705     for as_dir in $PATH
4706     do
4707     IFS=$as_save_IFS
4708     test -z "$as_dir" && as_dir=.
4709     for ac_exec_ext in '' $ac_executable_extensions; do
4710     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4711     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714     fi
4715     done
4716     done
4717     IFS=$as_save_IFS
4718    
4719     fi
4720     fi
4721     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4722     if test -n "$ac_ct_DUMPBIN"; then
4723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4724     $as_echo "$ac_ct_DUMPBIN" >&6; }
4725     else
4726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727     $as_echo "no" >&6; }
4728     fi
4729    
4730    
4731     test -n "$ac_ct_DUMPBIN" && break
4732     done
4733    
4734     if test "x$ac_ct_DUMPBIN" = x; then
4735     DUMPBIN=":"
4736     else
4737     case $cross_compiling:$ac_tool_warned in
4738     yes:)
4739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4740     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4741     ac_tool_warned=yes ;;
4742     esac
4743     DUMPBIN=$ac_ct_DUMPBIN
4744     fi
4745     fi
4746    
4747     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4748     *COFF*)
4749     DUMPBIN="$DUMPBIN -symbols -headers"
4750     ;;
4751     *)
4752     DUMPBIN=:
4753     ;;
4754     esac
4755     fi
4756    
4757     if test : != "$DUMPBIN"; then
4758     NM=$DUMPBIN
4759     fi
4760     fi
4761     test -z "$NM" && NM=nm
4762    
4763    
4764    
4765    
4766    
4767    
4768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4769     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4770     if ${lt_cv_nm_interface+:} false; then :
4771     $as_echo_n "(cached) " >&6
4772     else
4773     lt_cv_nm_interface="BSD nm"
4774     echo "int some_variable = 0;" > conftest.$ac_ext
4775     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4776     (eval "$ac_compile" 2>conftest.err)
4777     cat conftest.err >&5
4778     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4779     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4780     cat conftest.err >&5
4781     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4782     cat conftest.out >&5
4783     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4784     lt_cv_nm_interface="MS dumpbin"
4785     fi
4786     rm -f conftest*
4787     fi
4788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4789     $as_echo "$lt_cv_nm_interface" >&6; }
4790    
4791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4792     $as_echo_n "checking whether ln -s works... " >&6; }
4793 michael 5052 LN_S=$as_ln_s
4794     if test "$LN_S" = "ln -s"; then
4795 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4796     $as_echo "yes" >&6; }
4797 michael 5052 else
4798 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4799     $as_echo "no, using $LN_S" >&6; }
4800 michael 5052 fi
4801    
4802 michael 5059 # find the maximum length of command line arguments
4803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4804     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4805     if ${lt_cv_sys_max_cmd_len+:} false; then :
4806     $as_echo_n "(cached) " >&6
4807 michael 5052 else
4808 michael 5059 i=0
4809     teststring=ABCD
4810    
4811     case $build_os in
4812     msdosdjgpp*)
4813     # On DJGPP, this test can blow up pretty badly due to problems in libc
4814     # (any single argument exceeding 2000 bytes causes a buffer overrun
4815     # during glob expansion). Even if it were fixed, the result of this
4816     # check would be larger than it should be.
4817     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4818     ;;
4819    
4820     gnu*)
4821     # Under GNU Hurd, this test is not required because there is
4822     # no limit to the length of command line arguments.
4823     # Libtool will interpret -1 as no limit whatsoever
4824     lt_cv_sys_max_cmd_len=-1;
4825     ;;
4826    
4827     cygwin* | mingw* | cegcc*)
4828     # On Win9x/ME, this test blows up -- it succeeds, but takes
4829     # about 5 minutes as the teststring grows exponentially.
4830     # Worse, since 9x/ME are not pre-emptively multitasking,
4831     # you end up with a "frozen" computer, even though with patience
4832     # the test eventually succeeds (with a max line length of 256k).
4833     # Instead, let's just punt: use the minimum linelength reported by
4834     # all of the supported platforms: 8192 (on NT/2K/XP).
4835     lt_cv_sys_max_cmd_len=8192;
4836     ;;
4837    
4838     mint*)
4839     # On MiNT this can take a long time and run out of memory.
4840     lt_cv_sys_max_cmd_len=8192;
4841     ;;
4842    
4843     amigaos*)
4844     # On AmigaOS with pdksh, this test takes hours, literally.
4845     # So we just punt and use a minimum line length of 8192.
4846     lt_cv_sys_max_cmd_len=8192;
4847     ;;
4848    
4849     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4850     # This has been around since 386BSD, at least. Likely further.
4851     if test -x /sbin/sysctl; then
4852     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4853     elif test -x /usr/sbin/sysctl; then
4854     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4855     else
4856     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4857     fi
4858     # And add a safety zone
4859     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4860     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4861     ;;
4862    
4863     interix*)
4864     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4865     lt_cv_sys_max_cmd_len=196608
4866     ;;
4867    
4868     os2*)
4869     # The test takes a long time on OS/2.
4870     lt_cv_sys_max_cmd_len=8192
4871     ;;
4872    
4873     osf*)
4874     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4875     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4876     # nice to cause kernel panics so lets avoid the loop below.
4877     # First set a reasonable default.
4878     lt_cv_sys_max_cmd_len=16384
4879     #
4880     if test -x /sbin/sysconfig; then
4881     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4882     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4883     esac
4884     fi
4885     ;;
4886     sco3.2v5*)
4887     lt_cv_sys_max_cmd_len=102400
4888     ;;
4889     sysv5* | sco5v6* | sysv4.2uw2*)
4890     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4891     if test -n "$kargmax"; then
4892     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4893     else
4894     lt_cv_sys_max_cmd_len=32768
4895     fi
4896     ;;
4897     *)
4898     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4899     if test -n "$lt_cv_sys_max_cmd_len" && \
4900     test undefined != "$lt_cv_sys_max_cmd_len"; then
4901     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4902     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4903     else
4904     # Make teststring a little bigger before we do anything with it.
4905     # a 1K string should be a reasonable start.
4906     for i in 1 2 3 4 5 6 7 8; do
4907     teststring=$teststring$teststring
4908     done
4909     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4910     # If test is not a shell built-in, we'll probably end up computing a
4911     # maximum length that is only half of the actual maximum length, but
4912     # we can't tell.
4913     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4914     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4915     test 17 != "$i" # 1/2 MB should be enough
4916     do
4917     i=`expr $i + 1`
4918     teststring=$teststring$teststring
4919     done
4920     # Only check the string length outside the loop.
4921     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4922     teststring=
4923     # Add a significant safety factor because C++ compilers can tack on
4924     # massive amounts of additional arguments before passing them to the
4925     # linker. It appears as though 1/2 is a usable value.
4926     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4927     fi
4928     ;;
4929     esac
4930    
4931     fi
4932    
4933     if test -n "$lt_cv_sys_max_cmd_len"; then
4934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4935     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4936     else
4937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4938     $as_echo "none" >&6; }
4939     fi
4940     max_cmd_len=$lt_cv_sys_max_cmd_len
4941    
4942    
4943    
4944    
4945    
4946    
4947     : ${CP="cp -f"}
4948     : ${MV="mv -f"}
4949     : ${RM="rm -f"}
4950    
4951     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4952     lt_unset=unset
4953     else
4954     lt_unset=false
4955     fi
4956    
4957    
4958    
4959    
4960    
4961     # test EBCDIC or ASCII
4962     case `echo X|tr X '\101'` in
4963     A) # ASCII based system
4964     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4965     lt_SP2NL='tr \040 \012'
4966     lt_NL2SP='tr \015\012 \040\040'
4967     ;;
4968     *) # EBCDIC based system
4969     lt_SP2NL='tr \100 \n'
4970     lt_NL2SP='tr \r\n \100\100'
4971     ;;
4972     esac
4973    
4974    
4975    
4976    
4977    
4978    
4979    
4980    
4981    
4982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4983     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4984     if ${lt_cv_to_host_file_cmd+:} false; then :
4985     $as_echo_n "(cached) " >&6
4986     else
4987     case $host in
4988     *-*-mingw* )
4989     case $build in
4990     *-*-mingw* ) # actually msys
4991     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4992     ;;
4993     *-*-cygwin* )
4994     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4995     ;;
4996     * ) # otherwise, assume *nix
4997     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4998     ;;
4999     esac
5000     ;;
5001     *-*-cygwin* )
5002     case $build in
5003     *-*-mingw* ) # actually msys
5004     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5005     ;;
5006     *-*-cygwin* )
5007     lt_cv_to_host_file_cmd=func_convert_file_noop
5008     ;;
5009     * ) # otherwise, assume *nix
5010     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5011     ;;
5012     esac
5013     ;;
5014     * ) # unhandled hosts (and "normal" native builds)
5015     lt_cv_to_host_file_cmd=func_convert_file_noop
5016     ;;
5017     esac
5018    
5019     fi
5020    
5021     to_host_file_cmd=$lt_cv_to_host_file_cmd
5022     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5023     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5024    
5025    
5026    
5027    
5028    
5029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5030     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5031     if ${lt_cv_to_tool_file_cmd+:} false; then :
5032     $as_echo_n "(cached) " >&6
5033     else
5034     #assume ordinary cross tools, or native build.
5035     lt_cv_to_tool_file_cmd=func_convert_file_noop
5036     case $host in
5037     *-*-mingw* )
5038     case $build in
5039     *-*-mingw* ) # actually msys
5040     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5041     ;;
5042     esac
5043     ;;
5044     esac
5045    
5046     fi
5047    
5048     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5050     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5051    
5052    
5053    
5054    
5055    
5056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5057     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5058     if ${lt_cv_ld_reload_flag+:} false; then :
5059     $as_echo_n "(cached) " >&6
5060     else
5061     lt_cv_ld_reload_flag='-r'
5062     fi
5063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5064     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5065     reload_flag=$lt_cv_ld_reload_flag
5066     case $reload_flag in
5067     "" | " "*) ;;
5068     *) reload_flag=" $reload_flag" ;;
5069     esac
5070     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5071     case $host_os in
5072     cygwin* | mingw* | pw32* | cegcc*)
5073     if test yes != "$GCC"; then
5074     reload_cmds=false
5075     fi
5076     ;;
5077     darwin*)
5078     if test yes = "$GCC"; then
5079     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5080     else
5081     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5082     fi
5083     ;;
5084     esac
5085    
5086    
5087    
5088    
5089    
5090    
5091    
5092    
5093    
5094     if test -n "$ac_tool_prefix"; then
5095     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5096     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098     $as_echo_n "checking for $ac_word... " >&6; }
5099     if ${ac_cv_prog_OBJDUMP+:} false; then :
5100     $as_echo_n "(cached) " >&6
5101     else
5102     if test -n "$OBJDUMP"; then
5103     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5104     else
5105     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106     for as_dir in $PATH
5107     do
5108     IFS=$as_save_IFS
5109     test -z "$as_dir" && as_dir=.
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114     break 2
5115     fi
5116     done
5117     done
5118     IFS=$as_save_IFS
5119    
5120     fi
5121     fi
5122     OBJDUMP=$ac_cv_prog_OBJDUMP
5123     if test -n "$OBJDUMP"; then
5124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5125     $as_echo "$OBJDUMP" >&6; }
5126     else
5127     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128     $as_echo "no" >&6; }
5129     fi
5130    
5131    
5132     fi
5133     if test -z "$ac_cv_prog_OBJDUMP"; then
5134     ac_ct_OBJDUMP=$OBJDUMP
5135     # Extract the first word of "objdump", so it can be a program name with args.
5136     set dummy objdump; ac_word=$2
5137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138     $as_echo_n "checking for $ac_word... " >&6; }
5139     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5140     $as_echo_n "(cached) " >&6
5141     else
5142     if test -n "$ac_ct_OBJDUMP"; then
5143     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5144     else
5145     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146     for as_dir in $PATH
5147     do
5148     IFS=$as_save_IFS
5149     test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155     fi
5156     done
5157     done
5158     IFS=$as_save_IFS
5159    
5160     fi
5161     fi
5162     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5163     if test -n "$ac_ct_OBJDUMP"; then
5164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5165     $as_echo "$ac_ct_OBJDUMP" >&6; }
5166     else
5167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168     $as_echo "no" >&6; }
5169     fi
5170    
5171     if test "x$ac_ct_OBJDUMP" = x; then
5172     OBJDUMP="false"
5173     else
5174     case $cross_compiling:$ac_tool_warned in
5175     yes:)
5176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178     ac_tool_warned=yes ;;
5179     esac
5180     OBJDUMP=$ac_ct_OBJDUMP
5181     fi
5182     else
5183     OBJDUMP="$ac_cv_prog_OBJDUMP"
5184     fi
5185    
5186     test -z "$OBJDUMP" && OBJDUMP=objdump
5187    
5188    
5189    
5190    
5191    
5192    
5193    
5194    
5195    
5196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5197     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5198     if ${lt_cv_deplibs_check_method+:} false; then :
5199     $as_echo_n "(cached) " >&6
5200     else
5201 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5202     lt_cv_file_magic_test_file=
5203     lt_cv_deplibs_check_method='unknown'
5204     # Need to set the preceding variable on all platforms that support
5205     # interlibrary dependencies.
5206     # 'none' -- dependencies not supported.
5207 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5208 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5209     # 'test_compile' -- check by making test program.
5210     # 'file_magic [[regex]]' -- check by looking for files in library path
5211 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5212     # If you have 'file' or equivalent on your system and you're not sure
5213     # whether 'pass_all' will *always* work, you probably want this one.
5214 michael 5052
5215     case $host_os in
5216 michael 5059 aix[4-9]*)
5217 michael 5052 lt_cv_deplibs_check_method=pass_all
5218     ;;
5219    
5220     beos*)
5221     lt_cv_deplibs_check_method=pass_all
5222     ;;
5223    
5224     bsdi[45]*)
5225     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5226     lt_cv_file_magic_cmd='/usr/bin/file -L'
5227     lt_cv_file_magic_test_file=/shlib/libc.so
5228     ;;
5229    
5230     cygwin*)
5231     # func_win32_libid is a shell function defined in ltmain.sh
5232     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233     lt_cv_file_magic_cmd='func_win32_libid'
5234     ;;
5235    
5236     mingw* | pw32*)
5237     # Base MSYS/MinGW do not provide the 'file' command needed by
5238 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5239     # unless we find 'file', for example because we are cross-compiling.
5240     if ( file / ) >/dev/null 2>&1; then
5241     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5242     lt_cv_file_magic_cmd='func_win32_libid'
5243     else
5244     # Keep this pattern in sync with the one in func_win32_libid.
5245     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5246     lt_cv_file_magic_cmd='$OBJDUMP -f'
5247     fi
5248     ;;
5249    
5250     cegcc*)
5251     # use the weaker test based on 'objdump'. See mingw*.
5252     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5253 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5254     ;;
5255    
5256     darwin* | rhapsody*)
5257     lt_cv_deplibs_check_method=pass_all
5258     ;;
5259    
5260     freebsd* | dragonfly*)
5261 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5262 michael 5052 case $host_cpu in
5263     i*86 )
5264     # Not sure whether the presence of OpenBSD here was a mistake.
5265     # Let's accept both of them until this is cleared up.
5266     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5267     lt_cv_file_magic_cmd=/usr/bin/file
5268     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5269     ;;
5270     esac
5271     else
5272     lt_cv_deplibs_check_method=pass_all
5273     fi
5274     ;;
5275    
5276 michael 5059 haiku*)
5277 michael 5052 lt_cv_deplibs_check_method=pass_all
5278     ;;
5279    
5280     hpux10.20* | hpux11*)
5281     lt_cv_file_magic_cmd=/usr/bin/file
5282     case $host_cpu in
5283     ia64*)
5284     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5285     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5286     ;;
5287     hppa*64*)
5288 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5289 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5290     ;;
5291     *)
5292 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5293 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5294     ;;
5295     esac
5296     ;;
5297    
5298 michael 5059 interix[3-9]*)
5299 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5300     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5301     ;;
5302    
5303     irix5* | irix6* | nonstopux*)
5304     case $LD in
5305     *-32|*"-32 ") libmagic=32-bit;;
5306     *-n32|*"-n32 ") libmagic=N32;;
5307     *-64|*"-64 ") libmagic=64-bit;;
5308     *) libmagic=never-match;;
5309     esac
5310     lt_cv_deplibs_check_method=pass_all
5311     ;;
5312    
5313 michael 5059 # This must be glibc/ELF.
5314     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5315 michael 5052 lt_cv_deplibs_check_method=pass_all
5316     ;;
5317    
5318 michael 5059 netbsd*)
5319     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5321     else
5322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5323     fi
5324     ;;
5325    
5326     newos6*)
5327     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5328     lt_cv_file_magic_cmd=/usr/bin/file
5329     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5330     ;;
5331    
5332 michael 5059 *nto* | *qnx*)
5333     lt_cv_deplibs_check_method=pass_all
5334 michael 5052 ;;
5335    
5336 michael 5059 openbsd* | bitrig*)
5337     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5338 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5339     else
5340     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5341     fi
5342     ;;
5343    
5344     osf3* | osf4* | osf5*)
5345     lt_cv_deplibs_check_method=pass_all
5346     ;;
5347    
5348 michael 5059 rdos*)
5349     lt_cv_deplibs_check_method=pass_all
5350     ;;
5351    
5352 michael 5052 solaris*)
5353     lt_cv_deplibs_check_method=pass_all
5354     ;;
5355    
5356 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5357     lt_cv_deplibs_check_method=pass_all
5358     ;;
5359    
5360 michael 5052 sysv4 | sysv4.3*)
5361     case $host_vendor in
5362     motorola)
5363     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]'
5364     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5365     ;;
5366     ncr)
5367     lt_cv_deplibs_check_method=pass_all
5368     ;;
5369     sequent)
5370     lt_cv_file_magic_cmd='/bin/file'
5371     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5372     ;;
5373     sni)
5374     lt_cv_file_magic_cmd='/bin/file'
5375     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5376     lt_cv_file_magic_test_file=/lib/libc.so
5377     ;;
5378     siemens)
5379     lt_cv_deplibs_check_method=pass_all
5380     ;;
5381     pc)
5382     lt_cv_deplibs_check_method=pass_all
5383     ;;
5384     esac
5385     ;;
5386    
5387 michael 5059 tpf*)
5388 michael 5052 lt_cv_deplibs_check_method=pass_all
5389     ;;
5390 michael 5059 os2*)
5391     lt_cv_deplibs_check_method=pass_all
5392     ;;
5393 michael 5052 esac
5394    
5395     fi
5396 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5397     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5398    
5399     file_magic_glob=
5400     want_nocaseglob=no
5401     if test "$build" = "$host"; then
5402     case $host_os in
5403     mingw* | pw32*)
5404     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5405     want_nocaseglob=yes
5406     else
5407     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5408     fi
5409     ;;
5410     esac
5411     fi
5412    
5413 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5414     deplibs_check_method=$lt_cv_deplibs_check_method
5415     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5416    
5417    
5418    
5419    
5420    
5421    
5422    
5423    
5424    
5425    
5426    
5427    
5428    
5429    
5430    
5431    
5432    
5433    
5434    
5435    
5436    
5437    
5438 michael 5059 if test -n "$ac_tool_prefix"; then
5439     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5440     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5441     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442     $as_echo_n "checking for $ac_word... " >&6; }
5443     if ${ac_cv_prog_DLLTOOL+:} false; then :
5444     $as_echo_n "(cached) " >&6
5445 michael 5052 else
5446 michael 5059 if test -n "$DLLTOOL"; then
5447     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5448     else
5449     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450     for as_dir in $PATH
5451 michael 5052 do
5452 michael 5059 IFS=$as_save_IFS
5453     test -z "$as_dir" && as_dir=.
5454     for ac_exec_ext in '' $ac_executable_extensions; do
5455     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5456     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458     break 2
5459 michael 5052 fi
5460 michael 5059 done
5461     done
5462     IFS=$as_save_IFS
5463 michael 5052
5464     fi
5465     fi
5466 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5467     if test -n "$DLLTOOL"; then
5468     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5469     $as_echo "$DLLTOOL" >&6; }
5470 michael 5052 else
5471 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5472     $as_echo "no" >&6; }
5473 michael 5052 fi
5474    
5475    
5476     fi
5477 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5478     ac_ct_DLLTOOL=$DLLTOOL
5479     # Extract the first word of "dlltool", so it can be a program name with args.
5480     set dummy dlltool; ac_word=$2
5481     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482     $as_echo_n "checking for $ac_word... " >&6; }
5483     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5484     $as_echo_n "(cached) " >&6
5485 michael 5052 else
5486 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5487     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5488     else
5489     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490     for as_dir in $PATH
5491 michael 5052 do
5492 michael 5059 IFS=$as_save_IFS
5493     test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499 michael 5052 fi
5500     done
5501 michael 5059 done
5502     IFS=$as_save_IFS
5503 michael 5052
5504     fi
5505     fi
5506 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5507     if test -n "$ac_ct_DLLTOOL"; then
5508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5509     $as_echo "$ac_ct_DLLTOOL" >&6; }
5510 michael 5052 else
5511 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512     $as_echo "no" >&6; }
5513 michael 5052 fi
5514    
5515 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5516     DLLTOOL="false"
5517     else
5518     case $cross_compiling:$ac_tool_warned in
5519     yes:)
5520     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522     ac_tool_warned=yes ;;
5523 michael 5052 esac
5524 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5525     fi
5526 michael 5052 else
5527 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5528 michael 5052 fi
5529    
5530 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5531 michael 5052
5532    
5533    
5534    
5535    
5536    
5537    
5538    
5539    
5540    
5541 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5542     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5543     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5544     $as_echo_n "(cached) " >&6
5545 michael 5052 else
5546 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5547 michael 5052
5548 michael 5059 case $host_os in
5549     cygwin* | mingw* | pw32* | cegcc*)
5550     # two different shell functions defined in ltmain.sh;
5551     # decide which one to use based on capabilities of $DLLTOOL
5552     case `$DLLTOOL --help 2>&1` in
5553     *--identify-strict*)
5554     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5555     ;;
5556     *)
5557     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5558     ;;
5559     esac
5560     ;;
5561     *)
5562     # fallback: assume linklib IS sharedlib
5563     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5564     ;;
5565 michael 5052 esac
5566    
5567     fi
5568 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5569     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5570     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5571     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5572 michael 5052
5573    
5574    
5575    
5576    
5577    
5578    
5579    
5580 michael 5059 if test -n "$ac_tool_prefix"; then
5581     for ac_prog in ar
5582 michael 5052 do
5583     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5584     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5585 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586     $as_echo_n "checking for $ac_word... " >&6; }
5587     if ${ac_cv_prog_AR+:} false; then :
5588     $as_echo_n "(cached) " >&6
5589 michael 5052 else
5590 michael 5059 if test -n "$AR"; then
5591     ac_cv_prog_AR="$AR" # Let the user override the test.
5592 michael 5052 else
5593     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594     for as_dir in $PATH
5595     do
5596     IFS=$as_save_IFS
5597     test -z "$as_dir" && as_dir=.
5598 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5599     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 michael 5052 break 2
5603     fi
5604     done
5605 michael 5059 done
5606 michael 5052 IFS=$as_save_IFS
5607    
5608     fi
5609     fi
5610 michael 5059 AR=$ac_cv_prog_AR
5611     if test -n "$AR"; then
5612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5613     $as_echo "$AR" >&6; }
5614 michael 5052 else
5615 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616     $as_echo "no" >&6; }
5617 michael 5052 fi
5618    
5619    
5620 michael 5059 test -n "$AR" && break
5621 michael 5052 done
5622     fi
5623 michael 5059 if test -z "$AR"; then
5624     ac_ct_AR=$AR
5625     for ac_prog in ar
5626 michael 5052 do
5627     # Extract the first word of "$ac_prog", so it can be a program name with args.
5628     set dummy $ac_prog; ac_word=$2
5629 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630     $as_echo_n "checking for $ac_word... " >&6; }
5631     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5632     $as_echo_n "(cached) " >&6
5633 michael 5052 else
5634 michael 5059 if test -n "$ac_ct_AR"; then
5635     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5636 michael 5052 else
5637     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638     for as_dir in $PATH
5639     do
5640     IFS=$as_save_IFS
5641     test -z "$as_dir" && as_dir=.
5642 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5643     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644     ac_cv_prog_ac_ct_AR="$ac_prog"
5645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 michael 5052 break 2
5647     fi
5648     done
5649 michael 5059 done
5650 michael 5052 IFS=$as_save_IFS
5651    
5652     fi
5653     fi
5654 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5655     if test -n "$ac_ct_AR"; then
5656     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5657     $as_echo "$ac_ct_AR" >&6; }
5658 michael 5052 else
5659 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660     $as_echo "no" >&6; }
5661 michael 5052 fi
5662    
5663    
5664 michael 5059 test -n "$ac_ct_AR" && break
5665 michael 5052 done
5666    
5667 michael 5059 if test "x$ac_ct_AR" = x; then
5668     AR="false"
5669 michael 5052 else
5670     case $cross_compiling:$ac_tool_warned in
5671     yes:)
5672 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 michael 5052 ac_tool_warned=yes ;;
5675     esac
5676 michael 5059 AR=$ac_ct_AR
5677 michael 5052 fi
5678     fi
5679    
5680 michael 5059 : ${AR=ar}
5681     : ${AR_FLAGS=cru}
5682 michael 5052
5683    
5684    
5685    
5686    
5687    
5688    
5689    
5690    
5691    
5692    
5693 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5694     $as_echo_n "checking for archiver @FILE support... " >&6; }
5695     if ${lt_cv_ar_at_file+:} false; then :
5696     $as_echo_n "(cached) " >&6
5697 michael 5052 else
5698 michael 5059 lt_cv_ar_at_file=no
5699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 michael 5052 /* end confdefs.h. */
5701    
5702     int
5703     main ()
5704     {
5705    
5706     ;
5707     return 0;
5708     }
5709     _ACEOF
5710 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5711     echo conftest.$ac_objext > conftest.lst
5712     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5713     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5714     (eval $lt_ar_try) 2>&5
5715 michael 5052 ac_status=$?
5716 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5717     test $ac_status = 0; }
5718     if test 0 -eq "$ac_status"; then
5719     # Ensure the archiver fails upon bogus file names.
5720     rm -f conftest.$ac_objext libconftest.a
5721     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5722     (eval $lt_ar_try) 2>&5
5723 michael 5052 ac_status=$?
5724 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5725     test $ac_status = 0; }
5726     if test 0 -ne "$ac_status"; then
5727     lt_cv_ar_at_file=@
5728     fi
5729     fi
5730     rm -f conftest.* libconftest.a
5731 michael 5052
5732     fi
5733     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734    
5735     fi
5736 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5737     $as_echo "$lt_cv_ar_at_file" >&6; }
5738 michael 5052
5739 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5740     archiver_list_spec=
5741 michael 5052 else
5742 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5743 michael 5052 fi
5744    
5745    
5746    
5747    
5748    
5749    
5750    
5751 michael 5059 if test -n "$ac_tool_prefix"; then
5752     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5753     set dummy ${ac_tool_prefix}strip; ac_word=$2
5754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755     $as_echo_n "checking for $ac_word... " >&6; }
5756     if ${ac_cv_prog_STRIP+:} false; then :
5757     $as_echo_n "(cached) " >&6
5758 michael 5052 else
5759 michael 5059 if test -n "$STRIP"; then
5760     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5761 michael 5052 else
5762 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763     for as_dir in $PATH
5764 michael 5052 do
5765 michael 5059 IFS=$as_save_IFS
5766     test -z "$as_dir" && as_dir=.
5767     for ac_exec_ext in '' $ac_executable_extensions; do
5768     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771     break 2
5772 michael 5052 fi
5773 michael 5059 done
5774     done
5775     IFS=$as_save_IFS
5776 michael 5052
5777     fi
5778     fi
5779 michael 5059 STRIP=$ac_cv_prog_STRIP
5780     if test -n "$STRIP"; then
5781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5782     $as_echo "$STRIP" >&6; }
5783 michael 5052 else
5784 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785     $as_echo "no" >&6; }
5786 michael 5052 fi
5787    
5788    
5789     fi
5790 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5791     ac_ct_STRIP=$STRIP
5792     # Extract the first word of "strip", so it can be a program name with args.
5793     set dummy strip; ac_word=$2
5794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795     $as_echo_n "checking for $ac_word... " >&6; }
5796     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5797     $as_echo_n "(cached) " >&6
5798 michael 5052 else
5799 michael 5059 if test -n "$ac_ct_STRIP"; then
5800     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5801     else
5802     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803     for as_dir in $PATH
5804 michael 5052 do
5805 michael 5059 IFS=$as_save_IFS
5806     test -z "$as_dir" && as_dir=.
5807     for ac_exec_ext in '' $ac_executable_extensions; do
5808     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_STRIP="strip"
5810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812 michael 5052 fi
5813 michael 5059 done
5814     done
5815     IFS=$as_save_IFS
5816    
5817 michael 5052 fi
5818 michael 5059 fi
5819     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5820     if test -n "$ac_ct_STRIP"; then
5821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5822     $as_echo "$ac_ct_STRIP" >&6; }
5823 michael 5052 else
5824 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825     $as_echo "no" >&6; }
5826 michael 5052 fi
5827    
5828 michael 5059 if test "x$ac_ct_STRIP" = x; then
5829     STRIP=":"
5830     else
5831     case $cross_compiling:$ac_tool_warned in
5832     yes:)
5833     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5834     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5835     ac_tool_warned=yes ;;
5836 michael 5052 esac
5837 michael 5059 STRIP=$ac_ct_STRIP
5838 michael 5052 fi
5839     else
5840 michael 5059 STRIP="$ac_cv_prog_STRIP"
5841 michael 5052 fi
5842    
5843 michael 5059 test -z "$STRIP" && STRIP=:
5844 michael 5052
5845    
5846    
5847    
5848    
5849    
5850     if test -n "$ac_tool_prefix"; then
5851 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5852     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854     $as_echo_n "checking for $ac_word... " >&6; }
5855     if ${ac_cv_prog_RANLIB+:} false; then :
5856     $as_echo_n "(cached) " >&6
5857 michael 5052 else
5858 michael 5059 if test -n "$RANLIB"; then
5859     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5860 michael 5052 else
5861     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862     for as_dir in $PATH
5863     do
5864     IFS=$as_save_IFS
5865     test -z "$as_dir" && as_dir=.
5866 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5867     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 michael 5052 break 2
5871     fi
5872     done
5873 michael 5059 done
5874 michael 5052 IFS=$as_save_IFS
5875    
5876     fi
5877     fi
5878 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5879     if test -n "$RANLIB"; then
5880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5881     $as_echo "$RANLIB" >&6; }
5882 michael 5052 else
5883 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884     $as_echo "no" >&6; }
5885 michael 5052 fi
5886    
5887    
5888     fi
5889 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5890     ac_ct_RANLIB=$RANLIB
5891     # Extract the first word of "ranlib", so it can be a program name with args.
5892     set dummy ranlib; ac_word=$2
5893     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894     $as_echo_n "checking for $ac_word... " >&6; }
5895     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5896     $as_echo_n "(cached) " >&6
5897 michael 5052 else
5898 michael 5059 if test -n "$ac_ct_RANLIB"; then
5899     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5900 michael 5052 else
5901     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902     for as_dir in $PATH
5903     do
5904     IFS=$as_save_IFS
5905     test -z "$as_dir" && as_dir=.
5906 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5907     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_ac_ct_RANLIB="ranlib"
5909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 michael 5052 break 2
5911     fi
5912     done
5913 michael 5059 done
5914 michael 5052 IFS=$as_save_IFS
5915    
5916     fi
5917     fi
5918 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5919     if test -n "$ac_ct_RANLIB"; then
5920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5921     $as_echo "$ac_ct_RANLIB" >&6; }
5922 michael 5052 else
5923 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924     $as_echo "no" >&6; }
5925 michael 5052 fi
5926    
5927 michael 5059 if test "x$ac_ct_RANLIB" = x; then
5928     RANLIB=":"
5929 michael 5052 else
5930     case $cross_compiling:$ac_tool_warned in
5931     yes:)
5932 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 michael 5052 ac_tool_warned=yes ;;
5935     esac
5936 michael 5059 RANLIB=$ac_ct_RANLIB
5937 michael 5052 fi
5938 michael 5059 else
5939     RANLIB="$ac_cv_prog_RANLIB"
5940 michael 5052 fi
5941    
5942 michael 5059 test -z "$RANLIB" && RANLIB=:
5943 michael 5052
5944    
5945    
5946    
5947    
5948    
5949 michael 5059 # Determine commands to create old-style static archives.
5950     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5951     old_postinstall_cmds='chmod 644 $oldlib'
5952     old_postuninstall_cmds=
5953    
5954     if test -n "$RANLIB"; then
5955     case $host_os in
5956     bitrig* | openbsd*)
5957     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5958     ;;
5959     *)
5960     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5961     ;;
5962     esac
5963     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5964 michael 5052 fi
5965    
5966 michael 5059 case $host_os in
5967     darwin*)
5968     lock_old_archive_extraction=yes ;;
5969     *)
5970     lock_old_archive_extraction=no ;;
5971 michael 5052 esac
5972    
5973    
5974    
5975    
5976    
5977    
5978    
5979    
5980    
5981    
5982    
5983    
5984    
5985    
5986    
5987    
5988    
5989    
5990    
5991    
5992    
5993 michael 5059
5994    
5995    
5996    
5997    
5998    
5999    
6000    
6001    
6002    
6003    
6004    
6005    
6006    
6007    
6008    
6009    
6010    
6011     # If no C compiler was specified, use CC.
6012     LTCC=${LTCC-"$CC"}
6013    
6014     # If no C compiler flags were specified, use CFLAGS.
6015     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6016    
6017     # Allow CC to be a program name with arguments.
6018     compiler=$CC
6019    
6020    
6021 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6022 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6023     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6024     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6025     $as_echo_n "(cached) " >&6
6026 michael 5052 else
6027    
6028     # These are sane defaults that work on at least a few old systems.
6029     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6030    
6031     # Character class describing NM global symbol codes.
6032     symcode='[BCDEGRST]'
6033    
6034     # Regexp to match symbols that can be accessed directly from C.
6035     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6036    
6037     # Define system-specific variables.
6038     case $host_os in
6039     aix*)
6040     symcode='[BCDT]'
6041     ;;
6042 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6043 michael 5052 symcode='[ABCDGISTW]'
6044     ;;
6045 michael 5059 hpux*)
6046     if test ia64 = "$host_cpu"; then
6047 michael 5052 symcode='[ABCDEGRST]'
6048     fi
6049     ;;
6050     irix* | nonstopux*)
6051     symcode='[BCDEGRST]'
6052     ;;
6053     osf*)
6054     symcode='[BCDEGQRST]'
6055     ;;
6056     solaris*)
6057     symcode='[BDRT]'
6058     ;;
6059     sco3.2v5*)
6060     symcode='[DT]'
6061     ;;
6062     sysv4.2uw2*)
6063     symcode='[DT]'
6064     ;;
6065     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6066     symcode='[ABDT]'
6067     ;;
6068     sysv4)
6069     symcode='[DFNSTU]'
6070     ;;
6071     esac
6072    
6073 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6074     case `$NM -V 2>&1` in
6075     *GNU* | *'with BFD'*)
6076     symcode='[ABCDGIRSTW]' ;;
6077     esac
6078    
6079     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6080     # Gets list of data symbols to import.
6081     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6082     # Adjust the below global symbol transforms to fixup imported variables.
6083     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6084     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6085     lt_c_name_lib_hook="\
6086     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6087     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6088     else
6089     # Disable hooks by default.
6090     lt_cv_sys_global_symbol_to_import=
6091     lt_cdecl_hook=
6092     lt_c_name_hook=
6093     lt_c_name_lib_hook=
6094     fi
6095    
6096     # Transform an extracted symbol line into a proper C declaration.
6097     # Some systems (esp. on ia64) link data and code symbols differently,
6098     # so use this general approach.
6099     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6100     $lt_cdecl_hook\
6101     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6102     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6103    
6104     # Transform an extracted symbol line into symbol name and symbol address
6105     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6106     $lt_c_name_hook\
6107     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6108     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6109    
6110     # Transform an extracted symbol line into symbol name with lib prefix and
6111     # symbol address.
6112     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6113     $lt_c_name_lib_hook\
6114     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6115     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6116     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6117    
6118 michael 5052 # Handle CRLF in mingw tool chain
6119     opt_cr=
6120     case $build_os in
6121     mingw*)
6122 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6123 michael 5052 ;;
6124     esac
6125    
6126 michael 5059 # Try without a prefix underscore, then with it.
6127 michael 5052 for ac_symprfx in "" "_"; do
6128    
6129     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6130     symxfrm="\\1 $ac_symprfx\\2 \\2"
6131    
6132     # Write the raw and C identifiers.
6133 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6134     # Fake it for dumpbin and say T for any non-static function,
6135     # D for any global variable and I for any imported variable.
6136     # Also find C++ and __fastcall symbols from MSVC++,
6137     # which start with @ or ?.
6138     lt_cv_sys_global_symbol_pipe="$AWK '"\
6139     " {last_section=section; section=\$ 3};"\
6140     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6141     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6142     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6143     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6144     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6145     " \$ 0!~/External *\|/{next};"\
6146     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6147     " {if(hide[section]) next};"\
6148     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6149     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6150     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6151     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6152     " ' prfx=^$ac_symprfx"
6153     else
6154     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6155     fi
6156     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6157 michael 5052
6158     # Check to see that the pipe works correctly.
6159     pipe_works=no
6160    
6161     rm -f conftest*
6162 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6163 michael 5052 #ifdef __cplusplus
6164     extern "C" {
6165     #endif
6166     char nm_test_var;
6167 michael 5059 void nm_test_func(void);
6168     void nm_test_func(void){}
6169 michael 5052 #ifdef __cplusplus
6170     }
6171     #endif
6172     int main(){nm_test_var='a';nm_test_func();return(0);}
6173 michael 5059 _LT_EOF
6174 michael 5052
6175 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6176 michael 5052 (eval $ac_compile) 2>&5
6177     ac_status=$?
6178 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179     test $ac_status = 0; }; then
6180 michael 5052 # Now try to grab the symbols.
6181     nlist=conftest.nm
6182 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6183     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6184 michael 5052 ac_status=$?
6185 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186     test $ac_status = 0; } && test -s "$nlist"; then
6187 michael 5052 # 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 michael 5059 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     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6199     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6200     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6201     relocations are performed -- see ld's documentation on pseudo-relocs. */
6202     # define LT_DLSYM_CONST
6203     #elif defined __osf__
6204     /* This system does not cope well with relocations in const data. */
6205     # define LT_DLSYM_CONST
6206     #else
6207     # define LT_DLSYM_CONST const
6208     #endif
6209    
6210 michael 5052 #ifdef __cplusplus
6211     extern "C" {
6212     #endif
6213    
6214 michael 5059 _LT_EOF
6215 michael 5052 # Now generate the symbol file.
6216 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6217 michael 5052
6218 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6219 michael 5052
6220 michael 5059 /* The mapping between symbol names and symbols. */
6221     LT_DLSYM_CONST struct {
6222 michael 5052 const char *name;
6223 michael 5059 void *address;
6224 michael 5052 }
6225 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6226 michael 5052 {
6227 michael 5059 { "@PROGRAM@", (void *) 0 },
6228     _LT_EOF
6229     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6230     cat <<\_LT_EOF >> conftest.$ac_ext
6231     {0, (void *) 0}
6232 michael 5052 };
6233    
6234 michael 5059 /* This works around a problem in FreeBSD linker */
6235     #ifdef FREEBSD_WORKAROUND
6236     static const void *lt_preloaded_setup() {
6237     return lt__PROGRAM__LTX_preloaded_symbols;
6238     }
6239     #endif
6240    
6241 michael 5052 #ifdef __cplusplus
6242     }
6243     #endif
6244 michael 5059 _LT_EOF
6245 michael 5052 # Now try linking the two files.
6246     mv conftest.$ac_objext conftstm.$ac_objext
6247 michael 5059 lt_globsym_save_LIBS=$LIBS
6248     lt_globsym_save_CFLAGS=$CFLAGS
6249     LIBS=conftstm.$ac_objext
6250 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6251 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6252 michael 5052 (eval $ac_link) 2>&5
6253     ac_status=$?
6254 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6256 michael 5052 pipe_works=yes
6257     fi
6258 michael 5059 LIBS=$lt_globsym_save_LIBS
6259     CFLAGS=$lt_globsym_save_CFLAGS
6260 michael 5052 else
6261     echo "cannot find nm_test_func in $nlist" >&5
6262     fi
6263     else
6264     echo "cannot find nm_test_var in $nlist" >&5
6265     fi
6266     else
6267     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6268     fi
6269     else
6270     echo "$progname: failed program was:" >&5
6271     cat conftest.$ac_ext >&5
6272     fi
6273 michael 5059 rm -rf conftest* conftst*
6274 michael 5052
6275     # Do not use the global_symbol_pipe unless it works.
6276 michael 5059 if test yes = "$pipe_works"; then
6277 michael 5052 break
6278     else
6279     lt_cv_sys_global_symbol_pipe=
6280     fi
6281     done
6282    
6283     fi
6284    
6285     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6286     lt_cv_sys_global_symbol_to_cdecl=
6287     fi
6288     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6289 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6290     $as_echo "failed" >&6; }
6291 michael 5052 else
6292 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6293     $as_echo "ok" >&6; }
6294 michael 5052 fi
6295    
6296 michael 5059 # Response file support.
6297     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6298     nm_file_list_spec='@'
6299     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6300     nm_file_list_spec='@'
6301     fi
6302    
6303    
6304    
6305    
6306    
6307    
6308    
6309    
6310    
6311    
6312    
6313    
6314    
6315    
6316    
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324    
6325    
6326    
6327    
6328    
6329    
6330    
6331    
6332    
6333    
6334    
6335    
6336    
6337    
6338    
6339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6340     $as_echo_n "checking for sysroot... " >&6; }
6341    
6342     # Check whether --with-sysroot was given.
6343     if test "${with_sysroot+set}" = set; then :
6344     withval=$with_sysroot;
6345 michael 5052 else
6346 michael 5059 with_sysroot=no
6347     fi
6348    
6349    
6350     lt_sysroot=
6351     case $with_sysroot in #(
6352     yes)
6353     if test yes = "$GCC"; then
6354     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6355     fi
6356     ;; #(
6357     /*)
6358     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6359     ;; #(
6360     no|'')
6361     ;; #(
6362     *)
6363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6364     $as_echo "$with_sysroot" >&6; }
6365     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6366     ;;
6367     esac
6368    
6369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6370     $as_echo "${lt_sysroot:-no}" >&6; }
6371    
6372    
6373    
6374    
6375    
6376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6377     $as_echo_n "checking for a working dd... " >&6; }
6378     if ${ac_cv_path_lt_DD+:} false; then :
6379     $as_echo_n "(cached) " >&6
6380 michael 5052 else
6381 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6382     cat conftest.i conftest.i >conftest2.i
6383     : ${lt_DD:=$DD}
6384     if test -z "$lt_DD"; then
6385     ac_path_lt_DD_found=false
6386     # Loop through the user's path and test for each of PROGNAME-LIST
6387     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388     for as_dir in $PATH
6389     do
6390     IFS=$as_save_IFS
6391     test -z "$as_dir" && as_dir=.
6392     for ac_prog in dd; do
6393     for ac_exec_ext in '' $ac_executable_extensions; do
6394     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6395     as_fn_executable_p "$ac_path_lt_DD" || continue
6396     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6397     cmp -s conftest.i conftest.out \
6398     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6399 michael 5052 fi
6400 michael 5059 $ac_path_lt_DD_found && break 3
6401     done
6402     done
6403     done
6404     IFS=$as_save_IFS
6405     if test -z "$ac_cv_path_lt_DD"; then
6406     :
6407     fi
6408     else
6409     ac_cv_path_lt_DD=$lt_DD
6410 michael 5052 fi
6411    
6412 michael 5059 rm -f conftest.i conftest2.i conftest.out
6413     fi
6414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6415     $as_echo "$ac_cv_path_lt_DD" >&6; }
6416 michael 5052
6417    
6418 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6419     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6420     if ${lt_cv_truncate_bin+:} false; then :
6421     $as_echo_n "(cached) " >&6
6422     else
6423     printf 0123456789abcdef0123456789abcdef >conftest.i
6424     cat conftest.i conftest.i >conftest2.i
6425     lt_cv_truncate_bin=
6426     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6427     cmp -s conftest.i conftest.out \
6428     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6429     fi
6430     rm -f conftest.i conftest2.i conftest.out
6431     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6432     fi
6433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6434     $as_echo "$lt_cv_truncate_bin" >&6; }
6435 michael 5052
6436    
6437 michael 5059
6438    
6439    
6440    
6441 michael 5433
6442     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6443     func_cc_basename ()
6444     {
6445     for cc_temp in $*""; do
6446     case $cc_temp in
6447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6449     \-*) ;;
6450     *) break;;
6451     esac
6452     done
6453     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6454     }
6455    
6456 michael 5059 # Check whether --enable-libtool-lock was given.
6457     if test "${enable_libtool_lock+set}" = set; then :
6458     enableval=$enable_libtool_lock;
6459     fi
6460    
6461     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6462    
6463     # Some flags need to be propagated to the compiler or linker for good
6464     # libtool support.
6465     case $host in
6466     ia64-*-hpux*)
6467     # Find out what ABI is being produced by ac_compile, and set mode
6468     # options accordingly.
6469     echo 'int i;' > conftest.$ac_ext
6470     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471     (eval $ac_compile) 2>&5
6472     ac_status=$?
6473     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474     test $ac_status = 0; }; then
6475     case `/usr/bin/file conftest.$ac_objext` in
6476     *ELF-32*)
6477     HPUX_IA64_MODE=32
6478     ;;
6479     *ELF-64*)
6480     HPUX_IA64_MODE=64
6481     ;;
6482     esac
6483 michael 5052 fi
6484 michael 5059 rm -rf conftest*
6485 michael 5052 ;;
6486 michael 5059 *-*-irix6*)
6487     # Find out what ABI is being produced by ac_compile, and set linker
6488     # options accordingly.
6489     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6490     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6491     (eval $ac_compile) 2>&5
6492     ac_status=$?
6493     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6494     test $ac_status = 0; }; then
6495     if test yes = "$lt_cv_prog_gnu_ld"; then
6496     case `/usr/bin/file conftest.$ac_objext` in
6497     *32-bit*)
6498     LD="${LD-ld} -melf32bsmip"
6499     ;;
6500     *N32*)
6501     LD="${LD-ld} -melf32bmipn32"
6502     ;;
6503     *64-bit*)
6504     LD="${LD-ld} -melf64bmip"
6505     ;;
6506     esac
6507     else
6508     case `/usr/bin/file conftest.$ac_objext` in
6509     *32-bit*)
6510     LD="${LD-ld} -32"
6511     ;;
6512     *N32*)
6513     LD="${LD-ld} -n32"
6514     ;;
6515     *64-bit*)
6516     LD="${LD-ld} -64"
6517     ;;
6518     esac
6519     fi
6520     fi
6521     rm -rf conftest*
6522     ;;
6523 michael 5052
6524 michael 5059 mips64*-*linux*)
6525     # Find out what ABI is being produced by ac_compile, and set linker
6526     # options accordingly.
6527     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6528     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529     (eval $ac_compile) 2>&5
6530     ac_status=$?
6531     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532     test $ac_status = 0; }; then
6533     emul=elf
6534     case `/usr/bin/file conftest.$ac_objext` in
6535     *32-bit*)
6536     emul="${emul}32"
6537     ;;
6538     *64-bit*)
6539     emul="${emul}64"
6540     ;;
6541     esac
6542     case `/usr/bin/file conftest.$ac_objext` in
6543     *MSB*)
6544     emul="${emul}btsmip"
6545     ;;
6546     *LSB*)
6547     emul="${emul}ltsmip"
6548     ;;
6549     esac
6550     case `/usr/bin/file conftest.$ac_objext` in
6551     *N32*)
6552     emul="${emul}n32"
6553     ;;
6554     esac
6555     LD="${LD-ld} -m $emul"
6556     fi
6557     rm -rf conftest*
6558     ;;
6559 michael 5052
6560 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6561     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6562     # Find out what ABI is being produced by ac_compile, and set linker
6563     # options accordingly. Note that the listed cases only cover the
6564     # situations where additional linker options are needed (such as when
6565     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6566     # vice versa); the common cases where no linker options are needed do
6567     # not appear in the list.
6568     echo 'int i;' > conftest.$ac_ext
6569     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6570     (eval $ac_compile) 2>&5
6571     ac_status=$?
6572     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6573     test $ac_status = 0; }; then
6574     case `/usr/bin/file conftest.o` in
6575     *32-bit*)
6576     case $host in
6577     x86_64-*kfreebsd*-gnu)
6578     LD="${LD-ld} -m elf_i386_fbsd"
6579     ;;
6580     x86_64-*linux*)
6581     case `/usr/bin/file conftest.o` in
6582     *x86-64*)
6583     LD="${LD-ld} -m elf32_x86_64"
6584     ;;
6585     *)
6586     LD="${LD-ld} -m elf_i386"
6587     ;;
6588     esac
6589     ;;
6590     powerpc64le-*linux*)
6591     LD="${LD-ld} -m elf32lppclinux"
6592     ;;
6593     powerpc64-*linux*)
6594     LD="${LD-ld} -m elf32ppclinux"
6595     ;;
6596     s390x-*linux*)
6597     LD="${LD-ld} -m elf_s390"
6598     ;;
6599     sparc64-*linux*)
6600     LD="${LD-ld} -m elf32_sparc"
6601     ;;
6602     esac
6603     ;;
6604     *64-bit*)
6605     case $host in
6606     x86_64-*kfreebsd*-gnu)
6607     LD="${LD-ld} -m elf_x86_64_fbsd"
6608     ;;
6609     x86_64-*linux*)
6610     LD="${LD-ld} -m elf_x86_64"
6611     ;;
6612     powerpcle-*linux*)
6613     LD="${LD-ld} -m elf64lppc"
6614     ;;
6615     powerpc-*linux*)
6616     LD="${LD-ld} -m elf64ppc"
6617     ;;
6618     s390*-*linux*|s390*-*tpf*)
6619     LD="${LD-ld} -m elf64_s390"
6620     ;;
6621     sparc*-*linux*)
6622     LD="${LD-ld} -m elf64_sparc"
6623     ;;
6624     esac
6625     ;;
6626     esac
6627     fi
6628     rm -rf conftest*
6629     ;;
6630 michael 5052
6631 michael 5059 *-*-sco3.2v5*)
6632     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6633     SAVE_CFLAGS=$CFLAGS
6634     CFLAGS="$CFLAGS -belf"
6635     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6636     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6637     if ${lt_cv_cc_needs_belf+:} false; then :
6638     $as_echo_n "(cached) " >&6
6639     else
6640     ac_ext=c
6641     ac_cpp='$CPP $CPPFLAGS'
6642     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6643     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6644     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6645 michael 5052
6646 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647     /* end confdefs.h. */
6648 michael 5052
6649 michael 5059 int
6650     main ()
6651     {
6652 michael 5052
6653 michael 5059 ;
6654     return 0;
6655     }
6656     _ACEOF
6657     if ac_fn_c_try_link "$LINENO"; then :
6658     lt_cv_cc_needs_belf=yes
6659     else
6660     lt_cv_cc_needs_belf=no
6661     fi
6662     rm -f core conftest.err conftest.$ac_objext \
6663     conftest$ac_exeext conftest.$ac_ext
6664     ac_ext=c
6665     ac_cpp='$CPP $CPPFLAGS'
6666     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6669 michael 5052
6670 michael 5059 fi
6671     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6672     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6673     if test yes != "$lt_cv_cc_needs_belf"; then
6674     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6675     CFLAGS=$SAVE_CFLAGS
6676     fi
6677     ;;
6678     *-*solaris*)
6679     # Find out what ABI is being produced by ac_compile, and set linker
6680     # options accordingly.
6681     echo 'int i;' > conftest.$ac_ext
6682     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683     (eval $ac_compile) 2>&5
6684     ac_status=$?
6685     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686     test $ac_status = 0; }; then
6687     case `/usr/bin/file conftest.o` in
6688     *64-bit*)
6689     case $lt_cv_prog_gnu_ld in
6690     yes*)
6691     case $host in
6692     i?86-*-solaris*|x86_64-*-solaris*)
6693     LD="${LD-ld} -m elf_x86_64"
6694     ;;
6695     sparc*-*-solaris*)
6696     LD="${LD-ld} -m elf64_sparc"
6697     ;;
6698     esac
6699     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6700     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6701     LD=${LD-ld}_sol2
6702     fi
6703     ;;
6704     *)
6705     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6706     LD="${LD-ld} -64"
6707     fi
6708     ;;
6709     esac
6710     ;;
6711     esac
6712     fi
6713     rm -rf conftest*
6714     ;;
6715     esac
6716 michael 5052
6717 michael 5059 need_locks=$enable_libtool_lock
6718    
6719 michael 5052 if test -n "$ac_tool_prefix"; then
6720 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6721     set dummy ${ac_tool_prefix}mt; ac_word=$2
6722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723     $as_echo_n "checking for $ac_word... " >&6; }
6724     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6725     $as_echo_n "(cached) " >&6
6726 michael 5052 else
6727 michael 5059 if test -n "$MANIFEST_TOOL"; then
6728     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6729 michael 5052 else
6730     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731     for as_dir in $PATH
6732     do
6733     IFS=$as_save_IFS
6734     test -z "$as_dir" && as_dir=.
6735 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6736     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 michael 5052 break 2
6740     fi
6741     done
6742 michael 5059 done
6743     IFS=$as_save_IFS
6744    
6745     fi
6746     fi
6747     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6748     if test -n "$MANIFEST_TOOL"; then
6749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6750     $as_echo "$MANIFEST_TOOL" >&6; }
6751     else
6752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753     $as_echo "no" >&6; }
6754     fi
6755    
6756    
6757     fi
6758     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6759     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6760     # Extract the first word of "mt", so it can be a program name with args.
6761     set dummy mt; ac_word=$2
6762     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763     $as_echo_n "checking for $ac_word... " >&6; }
6764     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6765     $as_echo_n "(cached) " >&6
6766     else
6767     if test -n "$ac_ct_MANIFEST_TOOL"; then
6768     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6769     else
6770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771     for as_dir in $PATH
6772     do
6773     IFS=$as_save_IFS
6774     test -z "$as_dir" && as_dir=.
6775     for ac_exec_ext in '' $ac_executable_extensions; do
6776     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6777     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780     fi
6781 michael 5052 done
6782 michael 5059 done
6783 michael 5052 IFS=$as_save_IFS
6784    
6785     fi
6786     fi
6787 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6788     if test -n "$ac_ct_MANIFEST_TOOL"; then
6789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6790     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6791 michael 5052 else
6792 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793     $as_echo "no" >&6; }
6794 michael 5052 fi
6795    
6796 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6797     MANIFEST_TOOL=":"
6798     else
6799     case $cross_compiling:$ac_tool_warned in
6800     yes:)
6801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803     ac_tool_warned=yes ;;
6804     esac
6805     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6806     fi
6807     else
6808     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6809     fi
6810 michael 5052
6811 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6813     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6814     if ${lt_cv_path_mainfest_tool+:} false; then :
6815     $as_echo_n "(cached) " >&6
6816     else
6817     lt_cv_path_mainfest_tool=no
6818     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6819     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6820     cat conftest.err >&5
6821     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6822     lt_cv_path_mainfest_tool=yes
6823     fi
6824     rm -f conftest*
6825 michael 5052 fi
6826 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6827     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6828     if test yes != "$lt_cv_path_mainfest_tool"; then
6829     MANIFEST_TOOL=:
6830     fi
6831    
6832    
6833    
6834    
6835    
6836    
6837     case $host_os in
6838     rhapsody* | darwin*)
6839     if test -n "$ac_tool_prefix"; then
6840     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6841     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843     $as_echo_n "checking for $ac_word... " >&6; }
6844     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6845     $as_echo_n "(cached) " >&6
6846 michael 5052 else
6847 michael 5059 if test -n "$DSYMUTIL"; then
6848     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6849 michael 5052 else
6850     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851     for as_dir in $PATH
6852     do
6853     IFS=$as_save_IFS
6854     test -z "$as_dir" && as_dir=.
6855 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6856     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 michael 5052 break 2
6860     fi
6861     done
6862 michael 5059 done
6863     IFS=$as_save_IFS
6864    
6865     fi
6866     fi
6867     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6868     if test -n "$DSYMUTIL"; then
6869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6870     $as_echo "$DSYMUTIL" >&6; }
6871     else
6872     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873     $as_echo "no" >&6; }
6874     fi
6875    
6876    
6877     fi
6878     if test -z "$ac_cv_prog_DSYMUTIL"; then
6879     ac_ct_DSYMUTIL=$DSYMUTIL
6880     # Extract the first word of "dsymutil", so it can be a program name with args.
6881     set dummy dsymutil; ac_word=$2
6882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883     $as_echo_n "checking for $ac_word... " >&6; }
6884     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6885     $as_echo_n "(cached) " >&6
6886     else
6887     if test -n "$ac_ct_DSYMUTIL"; then
6888     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6889     else
6890     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891     for as_dir in $PATH
6892     do
6893     IFS=$as_save_IFS
6894     test -z "$as_dir" && as_dir=.
6895     for ac_exec_ext in '' $ac_executable_extensions; do
6896     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899     break 2
6900     fi
6901 michael 5052 done
6902 michael 5059 done
6903 michael 5052 IFS=$as_save_IFS
6904    
6905     fi
6906     fi
6907 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6908     if test -n "$ac_ct_DSYMUTIL"; then
6909     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6910     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6911 michael 5052 else
6912 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913     $as_echo "no" >&6; }
6914 michael 5052 fi
6915    
6916 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6917     DSYMUTIL=":"
6918 michael 5052 else
6919     case $cross_compiling:$ac_tool_warned in
6920     yes:)
6921 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 michael 5052 ac_tool_warned=yes ;;
6924     esac
6925 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6926 michael 5052 fi
6927     else
6928 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6929 michael 5052 fi
6930    
6931 michael 5059 if test -n "$ac_tool_prefix"; then
6932     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6933     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935     $as_echo_n "checking for $ac_word... " >&6; }
6936     if ${ac_cv_prog_NMEDIT+:} false; then :
6937     $as_echo_n "(cached) " >&6
6938 michael 5052 else
6939 michael 5059 if test -n "$NMEDIT"; then
6940     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6941 michael 5052 else
6942     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943     for as_dir in $PATH
6944     do
6945     IFS=$as_save_IFS
6946     test -z "$as_dir" && as_dir=.
6947 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6948     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 michael 5052 break 2
6952     fi
6953     done
6954 michael 5059 done
6955 michael 5052 IFS=$as_save_IFS
6956    
6957     fi
6958     fi
6959 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
6960     if test -n "$NMEDIT"; then
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6962     $as_echo "$NMEDIT" >&6; }
6963 michael 5052 else
6964 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965     $as_echo "no" >&6; }
6966 michael 5052 fi
6967    
6968    
6969     fi
6970 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
6971     ac_ct_NMEDIT=$NMEDIT
6972     # Extract the first word of "nmedit", so it can be a program name with args.
6973     set dummy nmedit; ac_word=$2
6974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975     $as_echo_n "checking for $ac_word... " >&6; }
6976     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6977     $as_echo_n "(cached) " >&6
6978 michael 5052 else
6979 michael 5059 if test -n "$ac_ct_NMEDIT"; then
6980     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6981 michael 5052 else
6982     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983     for as_dir in $PATH
6984     do
6985     IFS=$as_save_IFS
6986     test -z "$as_dir" && as_dir=.
6987 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6988     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 michael 5052 break 2
6992     fi
6993     done
6994 michael 5059 done
6995 michael 5052 IFS=$as_save_IFS
6996    
6997     fi
6998     fi
6999 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7000     if test -n "$ac_ct_NMEDIT"; then
7001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7002     $as_echo "$ac_ct_NMEDIT" >&6; }
7003 michael 5052 else
7004 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005     $as_echo "no" >&6; }
7006 michael 5052 fi
7007    
7008 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7009     NMEDIT=":"
7010 michael 5052 else
7011     case $cross_compiling:$ac_tool_warned in
7012     yes:)
7013 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 michael 5052 ac_tool_warned=yes ;;
7016     esac
7017 michael 5059 NMEDIT=$ac_ct_NMEDIT
7018 michael 5052 fi
7019     else
7020 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7021 michael 5052 fi
7022    
7023 michael 5059 if test -n "$ac_tool_prefix"; then
7024     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7025     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027     $as_echo_n "checking for $ac_word... " >&6; }
7028     if ${ac_cv_prog_LIPO+:} false; then :
7029     $as_echo_n "(cached) " >&6
7030 michael 5052 else
7031 michael 5059 if test -n "$LIPO"; then
7032     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7033 michael 5052 else
7034     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035     for as_dir in $PATH
7036     do
7037     IFS=$as_save_IFS
7038     test -z "$as_dir" && as_dir=.
7039 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7040     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 michael 5052 break 2
7044     fi
7045     done
7046 michael 5059 done
7047     IFS=$as_save_IFS
7048    
7049     fi
7050     fi
7051     LIPO=$ac_cv_prog_LIPO
7052     if test -n "$LIPO"; then
7053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7054     $as_echo "$LIPO" >&6; }
7055     else
7056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057     $as_echo "no" >&6; }
7058     fi
7059    
7060    
7061     fi
7062     if test -z "$ac_cv_prog_LIPO"; then
7063     ac_ct_LIPO=$LIPO
7064     # Extract the first word of "lipo", so it can be a program name with args.
7065     set dummy lipo; ac_word=$2
7066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067     $as_echo_n "checking for $ac_word... " >&6; }
7068     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7069     $as_echo_n "(cached) " >&6
7070     else
7071     if test -n "$ac_ct_LIPO"; then
7072     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7073     else
7074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075     for as_dir in $PATH
7076     do
7077     IFS=$as_save_IFS
7078     test -z "$as_dir" && as_dir=.
7079     for ac_exec_ext in '' $ac_executable_extensions; do
7080     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7081     ac_cv_prog_ac_ct_LIPO="lipo"
7082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083     break 2
7084     fi
7085 michael 5052 done
7086 michael 5059 done
7087 michael 5052 IFS=$as_save_IFS
7088    
7089     fi
7090     fi
7091 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7092     if test -n "$ac_ct_LIPO"; then
7093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7094     $as_echo "$ac_ct_LIPO" >&6; }
7095 michael 5052 else
7096 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097     $as_echo "no" >&6; }
7098 michael 5052 fi
7099    
7100 michael 5059 if test "x$ac_ct_LIPO" = x; then
7101     LIPO=":"
7102     else
7103     case $cross_compiling:$ac_tool_warned in
7104     yes:)
7105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7106     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7107     ac_tool_warned=yes ;;
7108     esac
7109     LIPO=$ac_ct_LIPO
7110     fi
7111     else
7112     LIPO="$ac_cv_prog_LIPO"
7113     fi
7114 michael 5052
7115 michael 5059 if test -n "$ac_tool_prefix"; then
7116     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7117     set dummy ${ac_tool_prefix}otool; ac_word=$2
7118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119     $as_echo_n "checking for $ac_word... " >&6; }
7120     if ${ac_cv_prog_OTOOL+:} false; then :
7121     $as_echo_n "(cached) " >&6
7122     else
7123     if test -n "$OTOOL"; then
7124     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7125     else
7126     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127     for as_dir in $PATH
7128     do
7129     IFS=$as_save_IFS
7130     test -z "$as_dir" && as_dir=.
7131     for ac_exec_ext in '' $ac_executable_extensions; do
7132     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7133     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136     fi
7137     done
7138     done
7139     IFS=$as_save_IFS
7140    
7141 michael 5052 fi
7142 michael 5059 fi
7143     OTOOL=$ac_cv_prog_OTOOL
7144     if test -n "$OTOOL"; then
7145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7146     $as_echo "$OTOOL" >&6; }
7147 michael 5052 else
7148 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149     $as_echo "no" >&6; }
7150     fi
7151    
7152    
7153     fi
7154     if test -z "$ac_cv_prog_OTOOL"; then
7155     ac_ct_OTOOL=$OTOOL
7156     # Extract the first word of "otool", so it can be a program name with args.
7157     set dummy otool; ac_word=$2
7158     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159     $as_echo_n "checking for $ac_word... " >&6; }
7160     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7161     $as_echo_n "(cached) " >&6
7162 michael 5052 else
7163 michael 5059 if test -n "$ac_ct_OTOOL"; then
7164     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7165     else
7166 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167     for as_dir in $PATH
7168     do
7169     IFS=$as_save_IFS
7170     test -z "$as_dir" && as_dir=.
7171 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7172     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7173     ac_cv_prog_ac_ct_OTOOL="otool"
7174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 michael 5052 break 2
7176     fi
7177     done
7178 michael 5059 done
7179     IFS=$as_save_IFS
7180    
7181     fi
7182     fi
7183     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7184     if test -n "$ac_ct_OTOOL"; then
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7186     $as_echo "$ac_ct_OTOOL" >&6; }
7187     else
7188     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189     $as_echo "no" >&6; }
7190     fi
7191    
7192     if test "x$ac_ct_OTOOL" = x; then
7193     OTOOL=":"
7194     else
7195     case $cross_compiling:$ac_tool_warned in
7196     yes:)
7197     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7198     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7199     ac_tool_warned=yes ;;
7200     esac
7201     OTOOL=$ac_ct_OTOOL
7202     fi
7203     else
7204     OTOOL="$ac_cv_prog_OTOOL"
7205     fi
7206    
7207     if test -n "$ac_tool_prefix"; then
7208     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7209     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211     $as_echo_n "checking for $ac_word... " >&6; }
7212     if ${ac_cv_prog_OTOOL64+:} false; then :
7213     $as_echo_n "(cached) " >&6
7214     else
7215     if test -n "$OTOOL64"; then
7216     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7217     else
7218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219     for as_dir in $PATH
7220     do
7221     IFS=$as_save_IFS
7222     test -z "$as_dir" && as_dir=.
7223     for ac_exec_ext in '' $ac_executable_extensions; do
7224     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7225     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227     break 2
7228     fi
7229 michael 5052 done
7230 michael 5059 done
7231 michael 5052 IFS=$as_save_IFS
7232    
7233     fi
7234     fi
7235 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7236     if test -n "$OTOOL64"; then
7237     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7238     $as_echo "$OTOOL64" >&6; }
7239 michael 5052 else
7240 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241     $as_echo "no" >&6; }
7242 michael 5052 fi
7243    
7244 michael 5059
7245     fi
7246     if test -z "$ac_cv_prog_OTOOL64"; then
7247     ac_ct_OTOOL64=$OTOOL64
7248     # Extract the first word of "otool64", so it can be a program name with args.
7249     set dummy otool64; ac_word=$2
7250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251     $as_echo_n "checking for $ac_word... " >&6; }
7252     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7253     $as_echo_n "(cached) " >&6
7254     else
7255     if test -n "$ac_ct_OTOOL64"; then
7256     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7257     else
7258     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259     for as_dir in $PATH
7260     do
7261     IFS=$as_save_IFS
7262     test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_prog_ac_ct_OTOOL64="otool64"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268     fi
7269     done
7270     done
7271     IFS=$as_save_IFS
7272    
7273     fi
7274     fi
7275     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7276     if test -n "$ac_ct_OTOOL64"; then
7277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7278     $as_echo "$ac_ct_OTOOL64" >&6; }
7279     else
7280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281     $as_echo "no" >&6; }
7282     fi
7283    
7284     if test "x$ac_ct_OTOOL64" = x; then
7285     OTOOL64=":"
7286 michael 5052 else
7287     case $cross_compiling:$ac_tool_warned in
7288     yes:)
7289 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7290     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7291 michael 5052 ac_tool_warned=yes ;;
7292     esac
7293 michael 5059 OTOOL64=$ac_ct_OTOOL64
7294 michael 5052 fi
7295     else
7296 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7297 michael 5052 fi
7298    
7299    
7300    
7301 michael 5059
7302    
7303    
7304    
7305    
7306    
7307    
7308    
7309    
7310    
7311    
7312    
7313    
7314    
7315    
7316    
7317    
7318    
7319    
7320    
7321    
7322    
7323    
7324    
7325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7326     $as_echo_n "checking for -single_module linker flag... " >&6; }
7327     if ${lt_cv_apple_cc_single_mod+:} false; then :
7328     $as_echo_n "(cached) " >&6
7329     else
7330     lt_cv_apple_cc_single_mod=no
7331     if test -z "$LT_MULTI_MODULE"; then
7332     # By default we will add the -single_module flag. You can override
7333     # by either setting the environment variable LT_MULTI_MODULE
7334     # non-empty at configure time, or by adding -multi_module to the
7335     # link flags.
7336     rm -rf libconftest.dylib*
7337     echo "int foo(void){return 1;}" > conftest.c
7338     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7339     -dynamiclib -Wl,-single_module conftest.c" >&5
7340     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7341     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7342     _lt_result=$?
7343     # If there is a non-empty error log, and "single_module"
7344     # appears in it, assume the flag caused a linker warning
7345     if test -s conftest.err && $GREP single_module conftest.err; then
7346     cat conftest.err >&5
7347     # Otherwise, if the output was created with a 0 exit code from
7348     # the compiler, it worked.
7349     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7350     lt_cv_apple_cc_single_mod=yes
7351     else
7352     cat conftest.err >&5
7353     fi
7354     rm -rf libconftest.dylib*
7355     rm -f conftest.*
7356     fi
7357     fi
7358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7359     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7360    
7361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7362     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7363     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7364     $as_echo_n "(cached) " >&6
7365     else
7366     lt_cv_ld_exported_symbols_list=no
7367     save_LDFLAGS=$LDFLAGS
7368     echo "_main" > conftest.sym
7369     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371     /* end confdefs.h. */
7372    
7373     int
7374     main ()
7375     {
7376    
7377     ;
7378     return 0;
7379     }
7380     _ACEOF
7381     if ac_fn_c_try_link "$LINENO"; then :
7382     lt_cv_ld_exported_symbols_list=yes
7383     else
7384     lt_cv_ld_exported_symbols_list=no
7385     fi
7386     rm -f core conftest.err conftest.$ac_objext \
7387     conftest$ac_exeext conftest.$ac_ext
7388     LDFLAGS=$save_LDFLAGS
7389    
7390     fi
7391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7392     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7393    
7394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7395     $as_echo_n "checking for -force_load linker flag... " >&6; }
7396     if ${lt_cv_ld_force_load+:} false; then :
7397     $as_echo_n "(cached) " >&6
7398     else
7399     lt_cv_ld_force_load=no
7400     cat > conftest.c << _LT_EOF
7401     int forced_loaded() { return 2;}
7402     _LT_EOF
7403     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7404     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7405     echo "$AR cru libconftest.a conftest.o" >&5
7406     $AR cru libconftest.a conftest.o 2>&5
7407     echo "$RANLIB libconftest.a" >&5
7408     $RANLIB libconftest.a 2>&5
7409     cat > conftest.c << _LT_EOF
7410     int main() { return 0;}
7411     _LT_EOF
7412     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7413     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7414     _lt_result=$?
7415     if test -s conftest.err && $GREP force_load conftest.err; then
7416     cat conftest.err >&5
7417     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7418     lt_cv_ld_force_load=yes
7419     else
7420     cat conftest.err >&5
7421     fi
7422     rm -f conftest.err libconftest.a conftest conftest.c
7423     rm -rf conftest.dSYM
7424    
7425     fi
7426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7427     $as_echo "$lt_cv_ld_force_load" >&6; }
7428     case $host_os in
7429     rhapsody* | darwin1.[012])
7430     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7431     darwin1.*)
7432     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7433     darwin*) # darwin 5.x on
7434     # if running on 10.5 or later, the deployment target defaults
7435     # to the OS version, if on x86, and 10.4, the deployment
7436     # target defaults to 10.4. Don't you love it?
7437     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7438     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7439     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7440     10.[012][,.]*)
7441     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7442     10.*)
7443     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7444     esac
7445     ;;
7446     esac
7447     if test yes = "$lt_cv_apple_cc_single_mod"; then
7448     _lt_dar_single_mod='$single_module'
7449     fi
7450     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7451     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7452     else
7453     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7454     fi
7455     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7456     _lt_dsymutil='~$DSYMUTIL $lib || :'
7457     else
7458     _lt_dsymutil=
7459     fi
7460     ;;
7461     esac
7462    
7463 michael 5433 # func_munge_path_list VARIABLE PATH
7464     # -----------------------------------
7465     # VARIABLE is name of variable containing _space_ separated list of
7466     # directories to be munged by the contents of PATH, which is string
7467     # having a format:
7468     # "DIR[:DIR]:"
7469     # string "DIR[ DIR]" will be prepended to VARIABLE
7470     # ":DIR[:DIR]"
7471     # string "DIR[ DIR]" will be appended to VARIABLE
7472     # "DIRP[:DIRP]::[DIRA:]DIRA"
7473     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7474     # "DIRA[ DIRA]" will be appended to VARIABLE
7475     # "DIR[:DIR]"
7476     # VARIABLE will be replaced by "DIR[ DIR]"
7477     func_munge_path_list ()
7478     {
7479     case x$2 in
7480     x)
7481     ;;
7482     *:)
7483 michael 5860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7484 michael 5433 ;;
7485     x:*)
7486     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7487     ;;
7488     *::*)
7489     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7490     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7491     ;;
7492     *)
7493     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7494     ;;
7495     esac
7496     }
7497    
7498 michael 5059 ac_ext=c
7499     ac_cpp='$CPP $CPPFLAGS'
7500     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7504     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7505     # On Suns, sometimes $CPP names a directory.
7506     if test -n "$CPP" && test -d "$CPP"; then
7507     CPP=
7508     fi
7509     if test -z "$CPP"; then
7510     if ${ac_cv_prog_CPP+:} false; then :
7511     $as_echo_n "(cached) " >&6
7512     else
7513     # Double quotes because CPP needs to be expanded
7514     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7515     do
7516     ac_preproc_ok=false
7517     for ac_c_preproc_warn_flag in '' yes
7518     do
7519     # Use a header file that comes with gcc, so configuring glibc
7520     # with a fresh cross-compiler works.
7521     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7522     # <limits.h> exists even on freestanding compilers.
7523     # On the NeXT, cc -E runs the code through the compiler's parser,
7524     # not just through cpp. "Syntax error" is here to catch this case.
7525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526     /* end confdefs.h. */
7527     #ifdef __STDC__
7528     # include <limits.h>
7529     #else
7530     # include <assert.h>
7531     #endif
7532     Syntax error
7533     _ACEOF
7534     if ac_fn_c_try_cpp "$LINENO"; then :
7535    
7536     else
7537     # Broken: fails on valid input.
7538     continue
7539     fi
7540     rm -f conftest.err conftest.i conftest.$ac_ext
7541    
7542     # OK, works on sane cases. Now check whether nonexistent headers
7543     # can be detected and how.
7544     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545     /* end confdefs.h. */
7546     #include <ac_nonexistent.h>
7547     _ACEOF
7548     if ac_fn_c_try_cpp "$LINENO"; then :
7549     # Broken: success on invalid input.
7550     continue
7551     else
7552     # Passes both tests.
7553     ac_preproc_ok=:
7554     break
7555     fi
7556     rm -f conftest.err conftest.i conftest.$ac_ext
7557    
7558     done
7559     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7560     rm -f conftest.i conftest.err conftest.$ac_ext
7561     if $ac_preproc_ok; then :
7562     break
7563     fi
7564    
7565     done
7566     ac_cv_prog_CPP=$CPP
7567    
7568     fi
7569     CPP=$ac_cv_prog_CPP
7570     else
7571     ac_cv_prog_CPP=$CPP
7572     fi
7573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7574     $as_echo "$CPP" >&6; }
7575     ac_preproc_ok=false
7576     for ac_c_preproc_warn_flag in '' yes
7577     do
7578     # Use a header file that comes with gcc, so configuring glibc
7579     # with a fresh cross-compiler works.
7580     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581     # <limits.h> exists even on freestanding compilers.
7582     # On the NeXT, cc -E runs the code through the compiler's parser,
7583     # not just through cpp. "Syntax error" is here to catch this case.
7584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585     /* end confdefs.h. */
7586     #ifdef __STDC__
7587     # include <limits.h>
7588     #else
7589     # include <assert.h>
7590     #endif
7591     Syntax error
7592     _ACEOF
7593     if ac_fn_c_try_cpp "$LINENO"; then :
7594    
7595     else
7596     # Broken: fails on valid input.
7597     continue
7598     fi
7599     rm -f conftest.err conftest.i conftest.$ac_ext
7600    
7601     # OK, works on sane cases. Now check whether nonexistent headers
7602     # can be detected and how.
7603     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604     /* end confdefs.h. */
7605     #include <ac_nonexistent.h>
7606     _ACEOF
7607     if ac_fn_c_try_cpp "$LINENO"; then :
7608     # Broken: success on invalid input.
7609     continue
7610     else
7611     # Passes both tests.
7612     ac_preproc_ok=:
7613     break
7614     fi
7615     rm -f conftest.err conftest.i conftest.$ac_ext
7616    
7617     done
7618     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7619     rm -f conftest.i conftest.err conftest.$ac_ext
7620     if $ac_preproc_ok; then :
7621    
7622     else
7623     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7624     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7625     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7626     See \`config.log' for more details" "$LINENO" 5; }
7627     fi
7628    
7629     ac_ext=c
7630     ac_cpp='$CPP $CPPFLAGS'
7631     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634    
7635    
7636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7637     $as_echo_n "checking for ANSI C header files... " >&6; }
7638     if ${ac_cv_header_stdc+:} false; then :
7639     $as_echo_n "(cached) " >&6
7640     else
7641     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642     /* end confdefs.h. */
7643     #include <stdlib.h>
7644     #include <stdarg.h>
7645     #include <string.h>
7646     #include <float.h>
7647    
7648     int
7649     main ()
7650     {
7651    
7652     ;
7653     return 0;
7654     }
7655     _ACEOF
7656     if ac_fn_c_try_compile "$LINENO"; then :
7657     ac_cv_header_stdc=yes
7658     else
7659     ac_cv_header_stdc=no
7660     fi
7661     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662    
7663     if test $ac_cv_header_stdc = yes; then
7664     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666     /* end confdefs.h. */
7667     #include <string.h>
7668    
7669     _ACEOF
7670     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7671     $EGREP "memchr" >/dev/null 2>&1; then :
7672    
7673     else
7674     ac_cv_header_stdc=no
7675     fi
7676     rm -f conftest*
7677    
7678     fi
7679    
7680     if test $ac_cv_header_stdc = yes; then
7681     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683     /* end confdefs.h. */
7684     #include <stdlib.h>
7685    
7686     _ACEOF
7687     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7688     $EGREP "free" >/dev/null 2>&1; then :
7689    
7690     else
7691     ac_cv_header_stdc=no
7692     fi
7693     rm -f conftest*
7694    
7695     fi
7696    
7697     if test $ac_cv_header_stdc = yes; then
7698     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7699     if test "$cross_compiling" = yes; then :
7700     :
7701     else
7702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703     /* end confdefs.h. */
7704     #include <ctype.h>
7705     #include <stdlib.h>
7706     #if ((' ' & 0x0FF) == 0x020)
7707     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7708     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7709     #else
7710     # define ISLOWER(c) \
7711     (('a' <= (c) && (c) <= 'i') \
7712     || ('j' <= (c) && (c) <= 'r') \
7713     || ('s' <= (c) && (c) <= 'z'))
7714     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7715     #endif
7716    
7717     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7718     int
7719     main ()
7720     {
7721     int i;
7722     for (i = 0; i < 256; i++)
7723     if (XOR (islower (i), ISLOWER (i))
7724     || toupper (i) != TOUPPER (i))
7725     return 2;
7726     return 0;
7727     }
7728     _ACEOF
7729     if ac_fn_c_try_run "$LINENO"; then :
7730    
7731     else
7732     ac_cv_header_stdc=no
7733     fi
7734     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7735     conftest.$ac_objext conftest.beam conftest.$ac_ext
7736     fi
7737    
7738     fi
7739     fi
7740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7741     $as_echo "$ac_cv_header_stdc" >&6; }
7742     if test $ac_cv_header_stdc = yes; then
7743    
7744     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7745    
7746     fi
7747    
7748     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7749     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7750     inttypes.h stdint.h unistd.h
7751     do :
7752     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7753     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7754     "
7755     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7756     cat >>confdefs.h <<_ACEOF
7757     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7758     _ACEOF
7759    
7760     fi
7761    
7762     done
7763    
7764    
7765     for ac_header in dlfcn.h
7766     do :
7767     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7768     "
7769     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7770     cat >>confdefs.h <<_ACEOF
7771     #define HAVE_DLFCN_H 1
7772     _ACEOF
7773    
7774     fi
7775    
7776     done
7777    
7778    
7779    
7780    
7781    
7782     # Set options
7783    
7784    
7785    
7786     enable_dlopen=no
7787    
7788    
7789     enable_win32_dll=no
7790    
7791    
7792     # Check whether --enable-shared was given.
7793     if test "${enable_shared+set}" = set; then :
7794     enableval=$enable_shared; p=${PACKAGE-default}
7795     case $enableval in
7796     yes) enable_shared=yes ;;
7797     no) enable_shared=no ;;
7798     *)
7799     enable_shared=no
7800     # Look at the argument we got. We use all the common list separators.
7801     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7802     for pkg in $enableval; do
7803     IFS=$lt_save_ifs
7804     if test "X$pkg" = "X$p"; then
7805     enable_shared=yes
7806     fi
7807     done
7808     IFS=$lt_save_ifs
7809     ;;
7810     esac
7811     else
7812     enable_shared=yes
7813     fi
7814    
7815    
7816    
7817    
7818    
7819    
7820    
7821    
7822    
7823     # Check whether --enable-static was given.
7824     if test "${enable_static+set}" = set; then :
7825     enableval=$enable_static; p=${PACKAGE-default}
7826     case $enableval in
7827     yes) enable_static=yes ;;
7828     no) enable_static=no ;;
7829     *)
7830     enable_static=no
7831     # Look at the argument we got. We use all the common list separators.
7832     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7833     for pkg in $enableval; do
7834     IFS=$lt_save_ifs
7835     if test "X$pkg" = "X$p"; then
7836     enable_static=yes
7837     fi
7838     done
7839     IFS=$lt_save_ifs
7840     ;;
7841     esac
7842     else
7843     enable_static=yes
7844     fi
7845    
7846    
7847    
7848    
7849    
7850    
7851    
7852    
7853    
7854    
7855     # Check whether --with-pic was given.
7856     if test "${with_pic+set}" = set; then :
7857     withval=$with_pic; lt_p=${PACKAGE-default}
7858     case $withval in
7859     yes|no) pic_mode=$withval ;;
7860     *)
7861     pic_mode=default
7862     # Look at the argument we got. We use all the common list separators.
7863     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7864     for lt_pkg in $withval; do
7865     IFS=$lt_save_ifs
7866     if test "X$lt_pkg" = "X$lt_p"; then
7867     pic_mode=yes
7868     fi
7869     done
7870     IFS=$lt_save_ifs
7871     ;;
7872     esac
7873     else
7874     pic_mode=default
7875     fi
7876    
7877    
7878    
7879    
7880    
7881    
7882    
7883    
7884     # Check whether --enable-fast-install was given.
7885     if test "${enable_fast_install+set}" = set; then :
7886     enableval=$enable_fast_install; p=${PACKAGE-default}
7887     case $enableval in
7888     yes) enable_fast_install=yes ;;
7889     no) enable_fast_install=no ;;
7890     *)
7891     enable_fast_install=no
7892     # Look at the argument we got. We use all the common list separators.
7893     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7894     for pkg in $enableval; do
7895     IFS=$lt_save_ifs
7896     if test "X$pkg" = "X$p"; then
7897     enable_fast_install=yes
7898     fi
7899     done
7900     IFS=$lt_save_ifs
7901     ;;
7902     esac
7903     else
7904     enable_fast_install=yes
7905     fi
7906    
7907    
7908    
7909    
7910    
7911    
7912    
7913    
7914     shared_archive_member_spec=
7915     case $host,$enable_shared in
7916     power*-*-aix[5-9]*,yes)
7917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7918     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7919    
7920     # Check whether --with-aix-soname was given.
7921     if test "${with_aix_soname+set}" = set; then :
7922     withval=$with_aix_soname; case $withval in
7923     aix|svr4|both)
7924     ;;
7925     *)
7926     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7927     ;;
7928     esac
7929     lt_cv_with_aix_soname=$with_aix_soname
7930     else
7931     if ${lt_cv_with_aix_soname+:} false; then :
7932     $as_echo_n "(cached) " >&6
7933     else
7934     lt_cv_with_aix_soname=aix
7935     fi
7936    
7937     with_aix_soname=$lt_cv_with_aix_soname
7938     fi
7939    
7940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7941     $as_echo "$with_aix_soname" >&6; }
7942     if test aix != "$with_aix_soname"; then
7943     # For the AIX way of multilib, we name the shared archive member
7944     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7945     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7946     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7947     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7948     if test 64 = "${OBJECT_MODE-32}"; then
7949     shared_archive_member_spec=shr_64
7950     else
7951     shared_archive_member_spec=shr
7952     fi
7953     fi
7954     ;;
7955     *)
7956     with_aix_soname=aix
7957     ;;
7958     esac
7959    
7960    
7961    
7962    
7963    
7964    
7965    
7966    
7967    
7968    
7969     # This can be used to rebuild libtool when needed
7970     LIBTOOL_DEPS=$ltmain
7971    
7972     # Always use our own libtool.
7973     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7974    
7975    
7976    
7977    
7978    
7979    
7980    
7981    
7982    
7983    
7984    
7985    
7986    
7987    
7988    
7989    
7990    
7991    
7992    
7993    
7994    
7995    
7996    
7997    
7998    
7999    
8000    
8001    
8002    
8003    
8004     test -z "$LN_S" && LN_S="ln -s"
8005    
8006    
8007    
8008    
8009    
8010    
8011    
8012    
8013    
8014    
8015    
8016    
8017    
8018    
8019     if test -n "${ZSH_VERSION+set}"; then
8020     setopt NO_GLOB_SUBST
8021     fi
8022    
8023     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8024     $as_echo_n "checking for objdir... " >&6; }
8025     if ${lt_cv_objdir+:} false; then :
8026     $as_echo_n "(cached) " >&6
8027     else
8028     rm -f .libs 2>/dev/null
8029     mkdir .libs 2>/dev/null
8030     if test -d .libs; then
8031     lt_cv_objdir=.libs
8032     else
8033     # MS-DOS does not allow filenames that begin with a dot.
8034     lt_cv_objdir=_libs
8035     fi
8036     rmdir .libs 2>/dev/null
8037     fi
8038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8039     $as_echo "$lt_cv_objdir" >&6; }
8040     objdir=$lt_cv_objdir
8041    
8042    
8043    
8044    
8045    
8046     cat >>confdefs.h <<_ACEOF
8047     #define LT_OBJDIR "$lt_cv_objdir/"
8048     _ACEOF
8049    
8050    
8051    
8052    
8053     case $host_os in
8054     aix3*)
8055     # AIX sometimes has problems with the GCC collect2 program. For some
8056     # reason, if we set the COLLECT_NAMES environment variable, the problems
8057     # vanish in a puff of smoke.
8058     if test set != "${COLLECT_NAMES+set}"; then
8059     COLLECT_NAMES=
8060     export COLLECT_NAMES
8061     fi
8062     ;;
8063     esac
8064    
8065     # Global variables:
8066     ofile=libtool
8067     can_build_shared=yes
8068    
8069     # All known linkers require a '.a' archive for static linking (except MSVC,
8070     # which needs '.lib').
8071     libext=a
8072    
8073     with_gnu_ld=$lt_cv_prog_gnu_ld
8074    
8075     old_CC=$CC
8076     old_CFLAGS=$CFLAGS
8077    
8078 michael 5052 # Set sane defaults for various variables
8079     test -z "$CC" && CC=cc
8080     test -z "$LTCC" && LTCC=$CC
8081     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8082     test -z "$LD" && LD=ld
8083     test -z "$ac_objext" && ac_objext=o
8084    
8085 michael 5433 func_cc_basename $compiler
8086     cc_basename=$func_cc_basename_result
8087 michael 5052
8088    
8089     # Only perform the check for file, if the check method requires it
8090 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8091 michael 5052 case $deplibs_check_method in
8092     file_magic*)
8093     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8094 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8095     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8096     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8097     $as_echo_n "(cached) " >&6
8098 michael 5052 else
8099     case $MAGIC_CMD in
8100     [\\/*] | ?:[\\/]*)
8101 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8102 michael 5052 ;;
8103     *)
8104 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8105     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8106 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8107     for ac_dir in $ac_dummy; do
8108 michael 5059 IFS=$lt_save_ifs
8109 michael 5052 test -z "$ac_dir" && ac_dir=.
8110 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8111     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8112 michael 5052 if test -n "$file_magic_test_file"; then
8113     case $deplibs_check_method in
8114     "file_magic "*)
8115     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8116 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8117 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8118     $EGREP "$file_magic_regex" > /dev/null; then
8119     :
8120     else
8121 michael 5059 cat <<_LT_EOF 1>&2
8122 michael 5052
8123     *** Warning: the command libtool uses to detect shared libraries,
8124     *** $file_magic_cmd, produces output that libtool cannot recognize.
8125     *** The result is that libtool may fail to recognize shared libraries
8126     *** as such. This will affect the creation of libtool libraries that
8127     *** depend on shared libraries, but programs linked with such libtool
8128     *** libraries will work regardless of this problem. Nevertheless, you
8129     *** may want to report the problem to your system manager and/or to
8130     *** bug-libtool@gnu.org
8131    
8132 michael 5059 _LT_EOF
8133 michael 5052 fi ;;
8134     esac
8135     fi
8136     break
8137     fi
8138     done
8139 michael 5059 IFS=$lt_save_ifs
8140     MAGIC_CMD=$lt_save_MAGIC_CMD
8141 michael 5052 ;;
8142     esac
8143     fi
8144    
8145 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8146 michael 5052 if test -n "$MAGIC_CMD"; then
8147 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8148     $as_echo "$MAGIC_CMD" >&6; }
8149 michael 5052 else
8150 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151     $as_echo "no" >&6; }
8152 michael 5052 fi
8153    
8154 michael 5059
8155    
8156    
8157    
8158 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8159     if test -n "$ac_tool_prefix"; then
8160 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8161     $as_echo_n "checking for file... " >&6; }
8162     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8163     $as_echo_n "(cached) " >&6
8164 michael 5052 else
8165     case $MAGIC_CMD in
8166     [\\/*] | ?:[\\/]*)
8167 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8168 michael 5052 ;;
8169     *)
8170 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8171     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8172 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173     for ac_dir in $ac_dummy; do
8174 michael 5059 IFS=$lt_save_ifs
8175 michael 5052 test -z "$ac_dir" && ac_dir=.
8176 michael 5059 if test -f "$ac_dir/file"; then
8177     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8178 michael 5052 if test -n "$file_magic_test_file"; then
8179     case $deplibs_check_method in
8180     "file_magic "*)
8181     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8183 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184     $EGREP "$file_magic_regex" > /dev/null; then
8185     :
8186     else
8187 michael 5059 cat <<_LT_EOF 1>&2
8188 michael 5052
8189     *** Warning: the command libtool uses to detect shared libraries,
8190     *** $file_magic_cmd, produces output that libtool cannot recognize.
8191     *** The result is that libtool may fail to recognize shared libraries
8192     *** as such. This will affect the creation of libtool libraries that
8193     *** depend on shared libraries, but programs linked with such libtool
8194     *** libraries will work regardless of this problem. Nevertheless, you
8195     *** may want to report the problem to your system manager and/or to
8196     *** bug-libtool@gnu.org
8197    
8198 michael 5059 _LT_EOF
8199 michael 5052 fi ;;
8200     esac
8201     fi
8202     break
8203     fi
8204     done
8205 michael 5059 IFS=$lt_save_ifs
8206     MAGIC_CMD=$lt_save_MAGIC_CMD
8207 michael 5052 ;;
8208     esac
8209     fi
8210    
8211 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8212 michael 5052 if test -n "$MAGIC_CMD"; then
8213 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8214     $as_echo "$MAGIC_CMD" >&6; }
8215 michael 5052 else
8216 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217     $as_echo "no" >&6; }
8218 michael 5052 fi
8219    
8220 michael 5059
8221 michael 5052 else
8222     MAGIC_CMD=:
8223     fi
8224     fi
8225    
8226     fi
8227     ;;
8228     esac
8229    
8230 michael 5059 # Use C for the default configuration in the libtool script
8231 michael 5052
8232 michael 5059 lt_save_CC=$CC
8233 michael 5052 ac_ext=c
8234     ac_cpp='$CPP $CPPFLAGS'
8235     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8238    
8239    
8240     # Source file extension for C test sources.
8241     ac_ext=c
8242    
8243     # Object file extension for compiled C test sources.
8244     objext=o
8245     objext=$objext
8246    
8247     # Code to be used in simple compile tests
8248 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8249 michael 5052
8250     # Code to be used in simple link tests
8251 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8252 michael 5052
8253    
8254 michael 5059
8255    
8256    
8257    
8258    
8259 michael 5052 # If no C compiler was specified, use CC.
8260     LTCC=${LTCC-"$CC"}
8261    
8262     # If no C compiler flags were specified, use CFLAGS.
8263     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8264    
8265     # Allow CC to be a program name with arguments.
8266     compiler=$CC
8267    
8268 michael 5059 # Save the default compiler, since it gets overwritten when the other
8269     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8270     compiler_DEFAULT=$CC
8271 michael 5052
8272     # save warnings/boilerplate of simple test code
8273     ac_outfile=conftest.$ac_objext
8274 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8275 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8276     _lt_compiler_boilerplate=`cat conftest.err`
8277 michael 5059 $RM conftest*
8278 michael 5052
8279     ac_outfile=conftest.$ac_objext
8280 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8281 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8282     _lt_linker_boilerplate=`cat conftest.err`
8283 michael 5059 $RM -r conftest*
8284 michael 5052
8285    
8286 michael 6099 ## CAVEAT EMPTOR:
8287     ## There is no encapsulation within the following macros, do not change
8288     ## the running order or otherwise move them around unless you know exactly
8289     ## what you are doing...
8290 michael 5059 if test -n "$compiler"; then
8291 michael 5052
8292     lt_prog_compiler_no_builtin_flag=
8293    
8294 michael 5059 if test yes = "$GCC"; then
8295     case $cc_basename in
8296     nvcc*)
8297     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8298     *)
8299     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8300     esac
8301 michael 5052
8302 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8303     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8304     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8305     $as_echo_n "(cached) " >&6
8306 michael 5052 else
8307     lt_cv_prog_compiler_rtti_exceptions=no
8308 michael 5059 ac_outfile=conftest.$ac_objext
8309     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8310     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8311 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8312     # (2) before a word containing "conftest.", or (3) at the end.
8313     # Note that $ac_compile itself does not contain backslashes and begins
8314     # with a dollar sign (not a hyphen), so the echo should work correctly.
8315     # The option is referenced via a variable to avoid confusing sed.
8316     lt_compile=`echo "$ac_compile" | $SED \
8317     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319     -e 's:$: $lt_compiler_flag:'`
8320 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8321 michael 5052 (eval "$lt_compile" 2>conftest.err)
8322     ac_status=$?
8323     cat conftest.err >&5
8324 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8326     # The compiler can only warn and ignore the option if not recognized
8327     # So say no if there are warnings other than the usual output.
8328 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8329 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8331     lt_cv_prog_compiler_rtti_exceptions=yes
8332     fi
8333     fi
8334 michael 5059 $RM conftest*
8335 michael 5052
8336     fi
8337 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8338     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8339 michael 5052
8340 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8341 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8342     else
8343     :
8344     fi
8345    
8346     fi
8347    
8348 michael 5059
8349    
8350    
8351    
8352    
8353     lt_prog_compiler_wl=
8354 michael 5052 lt_prog_compiler_pic=
8355     lt_prog_compiler_static=
8356    
8357    
8358 michael 5059 if test yes = "$GCC"; then
8359 michael 5052 lt_prog_compiler_wl='-Wl,'
8360     lt_prog_compiler_static='-static'
8361    
8362     case $host_os in
8363     aix*)
8364     # All AIX code is PIC.
8365 michael 5059 if test ia64 = "$host_cpu"; then
8366 michael 5052 # AIX 5 now supports IA64 processor
8367     lt_prog_compiler_static='-Bstatic'
8368     fi
8369 michael 5059 lt_prog_compiler_pic='-fPIC'
8370 michael 5052 ;;
8371    
8372     amigaos*)
8373 michael 5059 case $host_cpu in
8374     powerpc)
8375     # see comment about AmigaOS4 .so support
8376     lt_prog_compiler_pic='-fPIC'
8377     ;;
8378     m68k)
8379     # FIXME: we need at least 68020 code to build shared libraries, but
8380     # adding the '-m68020' flag to GCC prevents building anything better,
8381     # like '-m68040'.
8382     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8383     ;;
8384     esac
8385 michael 5052 ;;
8386    
8387 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8388 michael 5052 # PIC is the default for these OSes.
8389     ;;
8390    
8391 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8392 michael 5052 # This hack is so that the source file can tell whether it is being
8393     # built for inclusion in a dll (and should export symbols for example).
8394 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8395     # (--disable-auto-import) libraries
8396 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8397 michael 5059 case $host_os in
8398     os2*)
8399     lt_prog_compiler_static='$wl-static'
8400     ;;
8401     esac
8402 michael 5052 ;;
8403    
8404     darwin* | rhapsody*)
8405     # PIC is the default on this platform
8406     # Common symbols not allowed in MH_DYLIB files
8407     lt_prog_compiler_pic='-fno-common'
8408     ;;
8409    
8410 michael 5059 haiku*)
8411     # PIC is the default for Haiku.
8412     # The "-static" flag exists, but is broken.
8413     lt_prog_compiler_static=
8414     ;;
8415    
8416     hpux*)
8417     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8418     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8419     # sets the default TLS model and affects inlining.
8420     case $host_cpu in
8421     hppa*64*)
8422     # +Z the default
8423     ;;
8424     *)
8425     lt_prog_compiler_pic='-fPIC'
8426     ;;
8427     esac
8428     ;;
8429    
8430     interix[3-9]*)
8431 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8432     # Instead, we relocate shared libraries at runtime.
8433     ;;
8434    
8435     msdosdjgpp*)
8436     # Just because we use GCC doesn't mean we suddenly get shared libraries
8437     # on systems that don't support them.
8438     lt_prog_compiler_can_build_shared=no
8439     enable_shared=no
8440     ;;
8441    
8442 michael 5059 *nto* | *qnx*)
8443     # QNX uses GNU C++, but need to define -shared option too, otherwise
8444     # it will coredump.
8445     lt_prog_compiler_pic='-fPIC -shared'
8446     ;;
8447    
8448 michael 5052 sysv4*MP*)
8449     if test -d /usr/nec; then
8450     lt_prog_compiler_pic=-Kconform_pic
8451     fi
8452     ;;
8453    
8454     *)
8455     lt_prog_compiler_pic='-fPIC'
8456     ;;
8457     esac
8458 michael 5059
8459     case $cc_basename in
8460     nvcc*) # Cuda Compiler Driver 2.2
8461     lt_prog_compiler_wl='-Xlinker '
8462     if test -n "$lt_prog_compiler_pic"; then
8463     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8464     fi
8465     ;;
8466     esac
8467 michael 5052 else
8468     # PORTME Check for flag to pass linker flags through the system compiler.
8469     case $host_os in
8470     aix*)
8471     lt_prog_compiler_wl='-Wl,'
8472 michael 5059 if test ia64 = "$host_cpu"; then
8473 michael 5052 # AIX 5 now supports IA64 processor
8474     lt_prog_compiler_static='-Bstatic'
8475     else
8476     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8477     fi
8478     ;;
8479    
8480 michael 5059 darwin* | rhapsody*)
8481     # PIC is the default on this platform
8482     # Common symbols not allowed in MH_DYLIB files
8483     lt_prog_compiler_pic='-fno-common'
8484     case $cc_basename in
8485     nagfor*)
8486     # NAG Fortran compiler
8487     lt_prog_compiler_wl='-Wl,-Wl,,'
8488     lt_prog_compiler_pic='-PIC'
8489     lt_prog_compiler_static='-Bstatic'
8490     ;;
8491     esac
8492     ;;
8493    
8494     mingw* | cygwin* | pw32* | os2* | cegcc*)
8495 michael 5052 # This hack is so that the source file can tell whether it is being
8496     # built for inclusion in a dll (and should export symbols for example).
8497     lt_prog_compiler_pic='-DDLL_EXPORT'
8498 michael 5059 case $host_os in
8499     os2*)
8500     lt_prog_compiler_static='$wl-static'
8501     ;;
8502     esac
8503 michael 5052 ;;
8504    
8505     hpux9* | hpux10* | hpux11*)
8506     lt_prog_compiler_wl='-Wl,'
8507     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8508     # not for PA HP-UX.
8509     case $host_cpu in
8510     hppa*64*|ia64*)
8511     # +Z the default
8512     ;;
8513     *)
8514     lt_prog_compiler_pic='+Z'
8515     ;;
8516     esac
8517     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8518 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8519 michael 5052 ;;
8520    
8521     irix5* | irix6* | nonstopux*)
8522     lt_prog_compiler_wl='-Wl,'
8523     # PIC (with -KPIC) is the default.
8524     lt_prog_compiler_static='-non_shared'
8525     ;;
8526    
8527 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8528 michael 5052 case $cc_basename in
8529 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8530     ecc*)
8531 michael 5052 lt_prog_compiler_wl='-Wl,'
8532     lt_prog_compiler_pic='-KPIC'
8533     lt_prog_compiler_static='-static'
8534     ;;
8535 michael 5059 # icc used to be incompatible with GCC.
8536     # ICC 10 doesn't accept -KPIC any more.
8537     icc* | ifort*)
8538     lt_prog_compiler_wl='-Wl,'
8539     lt_prog_compiler_pic='-fPIC'
8540     lt_prog_compiler_static='-static'
8541     ;;
8542     # Lahey Fortran 8.1.
8543     lf95*)
8544     lt_prog_compiler_wl='-Wl,'
8545     lt_prog_compiler_pic='--shared'
8546     lt_prog_compiler_static='--static'
8547     ;;
8548     nagfor*)
8549     # NAG Fortran compiler
8550     lt_prog_compiler_wl='-Wl,-Wl,,'
8551     lt_prog_compiler_pic='-PIC'
8552     lt_prog_compiler_static='-Bstatic'
8553     ;;
8554     tcc*)
8555     # Fabrice Bellard et al's Tiny C Compiler
8556     lt_prog_compiler_wl='-Wl,'
8557     lt_prog_compiler_pic='-fPIC'
8558     lt_prog_compiler_static='-static'
8559     ;;
8560     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8561 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8562     # which looks to be a dead project)
8563     lt_prog_compiler_wl='-Wl,'
8564     lt_prog_compiler_pic='-fpic'
8565     lt_prog_compiler_static='-Bstatic'
8566     ;;
8567     ccc*)
8568     lt_prog_compiler_wl='-Wl,'
8569     # All Alpha code is PIC.
8570     lt_prog_compiler_static='-non_shared'
8571     ;;
8572 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8573     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8574     lt_prog_compiler_wl='-Wl,'
8575     lt_prog_compiler_pic='-qpic'
8576     lt_prog_compiler_static='-qstaticlink'
8577     ;;
8578     *)
8579     case `$CC -V 2>&1 | sed 5q` in
8580     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8581     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8582     lt_prog_compiler_pic='-KPIC'
8583     lt_prog_compiler_static='-Bstatic'
8584     lt_prog_compiler_wl=''
8585     ;;
8586     *Sun\ F* | *Sun*Fortran*)
8587     lt_prog_compiler_pic='-KPIC'
8588     lt_prog_compiler_static='-Bstatic'
8589     lt_prog_compiler_wl='-Qoption ld '
8590     ;;
8591     *Sun\ C*)
8592     # Sun C 5.9
8593     lt_prog_compiler_pic='-KPIC'
8594     lt_prog_compiler_static='-Bstatic'
8595     lt_prog_compiler_wl='-Wl,'
8596     ;;
8597     *Intel*\ [CF]*Compiler*)
8598     lt_prog_compiler_wl='-Wl,'
8599     lt_prog_compiler_pic='-fPIC'
8600     lt_prog_compiler_static='-static'
8601     ;;
8602     *Portland\ Group*)
8603     lt_prog_compiler_wl='-Wl,'
8604     lt_prog_compiler_pic='-fpic'
8605     lt_prog_compiler_static='-Bstatic'
8606     ;;
8607     esac
8608     ;;
8609 michael 5052 esac
8610     ;;
8611    
8612 michael 5059 newsos6)
8613     lt_prog_compiler_pic='-KPIC'
8614     lt_prog_compiler_static='-Bstatic'
8615     ;;
8616    
8617     *nto* | *qnx*)
8618     # QNX uses GNU C++, but need to define -shared option too, otherwise
8619     # it will coredump.
8620     lt_prog_compiler_pic='-fPIC -shared'
8621     ;;
8622    
8623 michael 5052 osf3* | osf4* | osf5*)
8624     lt_prog_compiler_wl='-Wl,'
8625     # All OSF/1 code is PIC.
8626     lt_prog_compiler_static='-non_shared'
8627     ;;
8628    
8629 michael 5059 rdos*)
8630     lt_prog_compiler_static='-non_shared'
8631     ;;
8632    
8633 michael 5052 solaris*)
8634     lt_prog_compiler_pic='-KPIC'
8635     lt_prog_compiler_static='-Bstatic'
8636     case $cc_basename in
8637 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8638 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8639     *)
8640     lt_prog_compiler_wl='-Wl,';;
8641     esac
8642     ;;
8643    
8644     sunos4*)
8645     lt_prog_compiler_wl='-Qoption ld '
8646     lt_prog_compiler_pic='-PIC'
8647     lt_prog_compiler_static='-Bstatic'
8648     ;;
8649    
8650     sysv4 | sysv4.2uw2* | sysv4.3*)
8651     lt_prog_compiler_wl='-Wl,'
8652     lt_prog_compiler_pic='-KPIC'
8653     lt_prog_compiler_static='-Bstatic'
8654     ;;
8655    
8656     sysv4*MP*)
8657 michael 5059 if test -d /usr/nec; then
8658 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8659     lt_prog_compiler_static='-Bstatic'
8660     fi
8661     ;;
8662    
8663     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8664     lt_prog_compiler_wl='-Wl,'
8665     lt_prog_compiler_pic='-KPIC'
8666     lt_prog_compiler_static='-Bstatic'
8667     ;;
8668    
8669     unicos*)
8670     lt_prog_compiler_wl='-Wl,'
8671     lt_prog_compiler_can_build_shared=no
8672     ;;
8673    
8674     uts4*)
8675     lt_prog_compiler_pic='-pic'
8676     lt_prog_compiler_static='-Bstatic'
8677     ;;
8678    
8679     *)
8680     lt_prog_compiler_can_build_shared=no
8681     ;;
8682     esac
8683     fi
8684    
8685 michael 5059 case $host_os in
8686     # For platforms that do not support PIC, -DPIC is meaningless:
8687     *djgpp*)
8688     lt_prog_compiler_pic=
8689     ;;
8690     *)
8691     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8692     ;;
8693     esac
8694 michael 5052
8695 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8696     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8697     if ${lt_cv_prog_compiler_pic+:} false; then :
8698     $as_echo_n "(cached) " >&6
8699     else
8700     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8701     fi
8702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8703     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8704     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8705    
8706 michael 5052 #
8707     # Check to make sure the PIC flag actually works.
8708     #
8709     if test -n "$lt_prog_compiler_pic"; then
8710 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8711     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8712     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8713     $as_echo_n "(cached) " >&6
8714 michael 5052 else
8715 michael 5059 lt_cv_prog_compiler_pic_works=no
8716     ac_outfile=conftest.$ac_objext
8717     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8718     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8719 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8720     # (2) before a word containing "conftest.", or (3) at the end.
8721     # Note that $ac_compile itself does not contain backslashes and begins
8722     # with a dollar sign (not a hyphen), so the echo should work correctly.
8723     # The option is referenced via a variable to avoid confusing sed.
8724     lt_compile=`echo "$ac_compile" | $SED \
8725     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8726     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8727     -e 's:$: $lt_compiler_flag:'`
8728 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8729 michael 5052 (eval "$lt_compile" 2>conftest.err)
8730     ac_status=$?
8731     cat conftest.err >&5
8732 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8734     # The compiler can only warn and ignore the option if not recognized
8735     # So say no if there are warnings other than the usual output.
8736 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8737 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8738     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8739 michael 5059 lt_cv_prog_compiler_pic_works=yes
8740 michael 5052 fi
8741     fi
8742 michael 5059 $RM conftest*
8743 michael 5052
8744     fi
8745 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8746     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8747 michael 5052
8748 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8749 michael 5052 case $lt_prog_compiler_pic in
8750     "" | " "*) ;;
8751     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8752     esac
8753     else
8754     lt_prog_compiler_pic=
8755     lt_prog_compiler_can_build_shared=no
8756     fi
8757    
8758     fi
8759    
8760 michael 5059
8761    
8762    
8763    
8764    
8765    
8766    
8767    
8768    
8769    
8770 michael 5052 #
8771     # Check to make sure the static flag actually works.
8772     #
8773     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8774 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8775     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8776     if ${lt_cv_prog_compiler_static_works+:} false; then :
8777     $as_echo_n "(cached) " >&6
8778 michael 5052 else
8779 michael 5059 lt_cv_prog_compiler_static_works=no
8780     save_LDFLAGS=$LDFLAGS
8781 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8782 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8783 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8784     # The linker can only warn and ignore the option if not recognized
8785     # So say no if there are warnings
8786     if test -s conftest.err; then
8787     # Append any errors to the config.log.
8788     cat conftest.err 1>&5
8789 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8790 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8791     if diff conftest.exp conftest.er2 >/dev/null; then
8792 michael 5059 lt_cv_prog_compiler_static_works=yes
8793 michael 5052 fi
8794     else
8795 michael 5059 lt_cv_prog_compiler_static_works=yes
8796 michael 5052 fi
8797     fi
8798 michael 5059 $RM -r conftest*
8799     LDFLAGS=$save_LDFLAGS
8800 michael 5052
8801     fi
8802 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8803     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8804 michael 5052
8805 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8806 michael 5052 :
8807     else
8808     lt_prog_compiler_static=
8809     fi
8810    
8811    
8812 michael 5059
8813    
8814    
8815    
8816    
8817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8818     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8819     if ${lt_cv_prog_compiler_c_o+:} false; then :
8820     $as_echo_n "(cached) " >&6
8821 michael 5052 else
8822     lt_cv_prog_compiler_c_o=no
8823 michael 5059 $RM -r conftest 2>/dev/null
8824 michael 5052 mkdir conftest
8825     cd conftest
8826     mkdir out
8827 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828 michael 5052
8829     lt_compiler_flag="-o out/conftest2.$ac_objext"
8830     # Insert the option either (1) after the last *FLAGS variable, or
8831     # (2) before a word containing "conftest.", or (3) at the end.
8832     # Note that $ac_compile itself does not contain backslashes and begins
8833     # with a dollar sign (not a hyphen), so the echo should work correctly.
8834     lt_compile=`echo "$ac_compile" | $SED \
8835     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837     -e 's:$: $lt_compiler_flag:'`
8838 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8839 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8840     ac_status=$?
8841     cat out/conftest.err >&5
8842 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8844     then
8845     # The compiler can only warn and ignore the option if not recognized
8846     # So say no if there are warnings
8847 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8848 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8849     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8850     lt_cv_prog_compiler_c_o=yes
8851     fi
8852     fi
8853     chmod u+w . 2>&5
8854 michael 5059 $RM conftest*
8855 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8856     # template instantiation
8857 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8858     $RM out/* && rmdir out
8859 michael 5052 cd ..
8860 michael 5059 $RM -r conftest
8861     $RM conftest*
8862 michael 5052
8863     fi
8864 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8865     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8866 michael 5052
8867    
8868 michael 5059
8869    
8870    
8871    
8872     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874     if ${lt_cv_prog_compiler_c_o+:} false; then :
8875     $as_echo_n "(cached) " >&6
8876     else
8877     lt_cv_prog_compiler_c_o=no
8878     $RM -r conftest 2>/dev/null
8879     mkdir conftest
8880     cd conftest
8881     mkdir out
8882     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883    
8884     lt_compiler_flag="-o out/conftest2.$ac_objext"
8885     # Insert the option either (1) after the last *FLAGS variable, or
8886     # (2) before a word containing "conftest.", or (3) at the end.
8887     # Note that $ac_compile itself does not contain backslashes and begins
8888     # with a dollar sign (not a hyphen), so the echo should work correctly.
8889     lt_compile=`echo "$ac_compile" | $SED \
8890     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892     -e 's:$: $lt_compiler_flag:'`
8893     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894     (eval "$lt_compile" 2>out/conftest.err)
8895     ac_status=$?
8896     cat out/conftest.err >&5
8897     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899     then
8900     # The compiler can only warn and ignore the option if not recognized
8901     # So say no if there are warnings
8902     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8903     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905     lt_cv_prog_compiler_c_o=yes
8906     fi
8907     fi
8908     chmod u+w . 2>&5
8909     $RM conftest*
8910     # SGI C++ compiler will create directory out/ii_files/ for
8911     # template instantiation
8912     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913     $RM out/* && rmdir out
8914     cd ..
8915     $RM -r conftest
8916     $RM conftest*
8917    
8918     fi
8919     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8921    
8922    
8923    
8924    
8925     hard_links=nottested
8926     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8927 michael 5052 # do not overwrite the value of need_locks provided by the user
8928 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8929     $as_echo_n "checking if we can lock with hard links... " >&6; }
8930 michael 5052 hard_links=yes
8931 michael 5059 $RM conftest*
8932 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8933     touch conftest.a
8934     ln conftest.a conftest.b 2>&5 || hard_links=no
8935     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8936 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8937     $as_echo "$hard_links" >&6; }
8938     if test no = "$hard_links"; then
8939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8940     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8941 michael 5052 need_locks=warn
8942     fi
8943     else
8944     need_locks=no
8945     fi
8946    
8947    
8948 michael 5059
8949    
8950    
8951    
8952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8953     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8954    
8955 michael 5052 runpath_var=
8956     allow_undefined_flag=
8957 michael 5059 always_export_symbols=no
8958 michael 5052 archive_cmds=
8959     archive_expsym_cmds=
8960 michael 5059 compiler_needs_object=no
8961     enable_shared_with_static_runtimes=no
8962 michael 5052 export_dynamic_flag_spec=
8963 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8964     hardcode_automatic=no
8965     hardcode_direct=no
8966     hardcode_direct_absolute=no
8967 michael 5052 hardcode_libdir_flag_spec=
8968     hardcode_libdir_separator=
8969     hardcode_minus_L=no
8970     hardcode_shlibpath_var=unsupported
8971 michael 5059 inherit_rpath=no
8972 michael 5052 link_all_deplibs=unknown
8973     module_cmds=
8974     module_expsym_cmds=
8975 michael 5059 old_archive_from_new_cmds=
8976     old_archive_from_expsyms_cmds=
8977     thread_safe_flag_spec=
8978     whole_archive_flag_spec=
8979 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
8980     # included in the symbol list
8981     include_expsyms=
8982     # exclude_expsyms can be an extended regexp of symbols to exclude
8983 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8984     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8985     # as well as any symbol that contains 'd'.
8986     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8987 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8988     # platforms (ab)use it in PIC code, but their linkers get confused if
8989     # the symbol is explicitly referenced. Since portable code cannot
8990     # rely on this symbol name, it's probably fine to never include it in
8991     # preloaded symbol tables.
8992 michael 5059 # Exclude shared library initialization/finalization symbols.
8993 michael 5052 extract_expsyms_cmds=
8994    
8995     case $host_os in
8996 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
8997 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8998     # When not using gcc, we currently assume that we are using
8999     # Microsoft Visual C++.
9000 michael 5059 if test yes != "$GCC"; then
9001 michael 5052 with_gnu_ld=no
9002     fi
9003     ;;
9004     interix*)
9005     # we just hope/assume this is gcc and not c89 (= MSVC++)
9006     with_gnu_ld=yes
9007     ;;
9008 michael 5059 openbsd* | bitrig*)
9009 michael 5052 with_gnu_ld=no
9010     ;;
9011     esac
9012    
9013     ld_shlibs=yes
9014 michael 5059
9015     # On some targets, GNU ld is compatible enough with the native linker
9016     # that we're better off using the native interface for both.
9017     lt_use_gnu_ld_interface=no
9018     if test yes = "$with_gnu_ld"; then
9019     case $host_os in
9020     aix*)
9021     # The AIX port of GNU ld has always aspired to compatibility
9022     # with the native linker. However, as the warning in the GNU ld
9023     # block says, versions before 2.19.5* couldn't really create working
9024     # shared libraries, regardless of the interface used.
9025     case `$LD -v 2>&1` in
9026     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9027     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9028     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9029     *)
9030     lt_use_gnu_ld_interface=yes
9031     ;;
9032     esac
9033     ;;
9034     *)
9035     lt_use_gnu_ld_interface=yes
9036     ;;
9037     esac
9038     fi
9039    
9040     if test yes = "$lt_use_gnu_ld_interface"; then
9041 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9042 michael 5059 wlarc='$wl'
9043 michael 5052
9044     # Set some defaults for GNU ld with shared library support. These
9045     # are reset later if shared libraries are not supported. Putting them
9046     # here allows them to be overridden if necessary.
9047     runpath_var=LD_RUN_PATH
9048 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9049     export_dynamic_flag_spec='$wl--export-dynamic'
9050 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9051 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9052     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9053     else
9054     whole_archive_flag_spec=
9055 michael 5052 fi
9056     supports_anon_versioning=no
9057 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9058     *GNU\ gold*) supports_anon_versioning=yes ;;
9059 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9060     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9061     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9062     *\ 2.11.*) ;; # other 2.11 versions
9063     *) supports_anon_versioning=yes ;;
9064     esac
9065    
9066     # See if GNU ld supports shared libraries.
9067     case $host_os in
9068 michael 5059 aix[3-9]*)
9069 michael 5052 # On AIX/PPC, the GNU linker is very broken
9070 michael 5059 if test ia64 != "$host_cpu"; then
9071 michael 5052 ld_shlibs=no
9072 michael 5059 cat <<_LT_EOF 1>&2
9073 michael 5052
9074 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9075 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9076     *** Therefore, libtool is disabling shared libraries support. If you
9077 michael 5059 *** really care for shared libraries, you may want to install binutils
9078     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9079     *** You will then need to restart the configuration process.
9080 michael 5052
9081 michael 5059 _LT_EOF
9082 michael 5052 fi
9083     ;;
9084    
9085     amigaos*)
9086 michael 5059 case $host_cpu in
9087     powerpc)
9088     # see comment about AmigaOS4 .so support
9089     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9090     archive_expsym_cmds=''
9091     ;;
9092     m68k)
9093     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)'
9094     hardcode_libdir_flag_spec='-L$libdir'
9095     hardcode_minus_L=yes
9096     ;;
9097     esac
9098 michael 5052 ;;
9099    
9100     beos*)
9101 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9102 michael 5052 allow_undefined_flag=unsupported
9103     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9104     # support --undefined. This deserves some investigation. FIXME
9105 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9106 michael 5052 else
9107     ld_shlibs=no
9108     fi
9109     ;;
9110    
9111 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9112     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9113 michael 5052 # as there is no search path for DLLs.
9114     hardcode_libdir_flag_spec='-L$libdir'
9115 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9116 michael 5052 allow_undefined_flag=unsupported
9117     always_export_symbols=no
9118     enable_shared_with_static_runtimes=yes
9119 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9120     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9121 michael 5052
9122 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9123     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124     # If the export-symbols file already is a .def file, use it as
9125     # is; otherwise, prepend EXPORTS...
9126     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9127     cp $export_symbols $output_objdir/$soname.def;
9128     else
9129     echo EXPORTS > $output_objdir/$soname.def;
9130     cat $export_symbols >> $output_objdir/$soname.def;
9131     fi~
9132     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9133 michael 5052 else
9134     ld_shlibs=no
9135     fi
9136     ;;
9137    
9138 michael 5059 haiku*)
9139     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9140     link_all_deplibs=yes
9141     ;;
9142    
9143     os2*)
9144     hardcode_libdir_flag_spec='-L$libdir'
9145     hardcode_minus_L=yes
9146     allow_undefined_flag=unsupported
9147     shrext_cmds=.dll
9148     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9149     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9150     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9151     $ECHO EXPORTS >> $output_objdir/$libname.def~
9152     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9153     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9154     emximp -o $lib $output_objdir/$libname.def'
9155     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9156     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9157     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9158     $ECHO EXPORTS >> $output_objdir/$libname.def~
9159     prefix_cmds="$SED"~
9160     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9161     prefix_cmds="$prefix_cmds -e 1d";
9162     fi~
9163     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9164     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9165     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9166     emximp -o $lib $output_objdir/$libname.def'
9167     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9168     enable_shared_with_static_runtimes=yes
9169     ;;
9170    
9171     interix[3-9]*)
9172 michael 5052 hardcode_direct=no
9173     hardcode_shlibpath_var=no
9174 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9175     export_dynamic_flag_spec='$wl-E'
9176 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9177     # Instead, shared libraries are loaded at an image base (0x10000000 by
9178     # default) and relocated if they conflict, which is a slow very memory
9179     # consuming and fragmenting process. To avoid this, we pick a random,
9180     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9181     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9182 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9183     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'
9184 michael 5052 ;;
9185    
9186 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9187     tmp_diet=no
9188     if test linux-dietlibc = "$host_os"; then
9189     case $cc_basename in
9190     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9191     esac
9192     fi
9193     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9194     && test no = "$tmp_diet"
9195     then
9196     tmp_addflag=' $pic_flag'
9197     tmp_sharedflag='-shared'
9198 michael 5052 case $cc_basename,$host_cpu in
9199 michael 5059 pgcc*) # Portland Group C compiler
9200     whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9201 michael 5052 tmp_addflag=' $pic_flag'
9202     ;;
9203 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9204     # Portland Group f77 and f90 compilers
9205     whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9206 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9207 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9208 michael 5052 tmp_addflag=' -i_dynamic' ;;
9209     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9210     tmp_addflag=' -i_dynamic -nofor_main' ;;
9211     ifc* | ifort*) # Intel Fortran compiler
9212     tmp_addflag=' -nofor_main' ;;
9213 michael 5059 lf95*) # Lahey Fortran 8.1
9214     whole_archive_flag_spec=
9215     tmp_sharedflag='--shared' ;;
9216     nagfor*) # NAGFOR 5.3
9217     tmp_sharedflag='-Wl,-shared' ;;
9218     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9219     tmp_sharedflag='-qmkshrobj'
9220     tmp_addflag= ;;
9221     nvcc*) # Cuda Compiler Driver 2.2
9222     whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9223     compiler_needs_object=yes
9224     ;;
9225 michael 5052 esac
9226 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9227     *Sun\ C*) # Sun C 5.9
9228     whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9229     compiler_needs_object=yes
9230     tmp_sharedflag='-G' ;;
9231     *Sun\ F*) # Sun Fortran 8.3
9232     tmp_sharedflag='-G' ;;
9233     esac
9234     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9235 michael 5052
9236 michael 5059 if test yes = "$supports_anon_versioning"; then
9237     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9238     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9239     echo "local: *; };" >> $output_objdir/$libname.ver~
9240     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9241     fi
9242    
9243     case $cc_basename in
9244     tcc*)
9245     export_dynamic_flag_spec='-rdynamic'
9246     ;;
9247     xlf* | bgf* | bgxlf* | mpixlf*)
9248     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9249     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9250     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9251     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9252     if test yes = "$supports_anon_versioning"; then
9253     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9254     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9255     echo "local: *; };" >> $output_objdir/$libname.ver~
9256     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9257     fi
9258     ;;
9259     esac
9260 michael 5052 else
9261 michael 5059 ld_shlibs=no
9262 michael 5052 fi
9263     ;;
9264    
9265 michael 5059 netbsd*)
9266     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9267 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9268     wlarc=
9269     else
9270 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9271     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9272 michael 5052 fi
9273     ;;
9274    
9275     solaris*)
9276 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9277 michael 5052 ld_shlibs=no
9278 michael 5059 cat <<_LT_EOF 1>&2
9279 michael 5052
9280     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9281     *** create shared libraries on Solaris systems. Therefore, libtool
9282     *** is disabling shared libraries support. We urge you to upgrade GNU
9283     *** binutils to release 2.9.1 or newer. Another option is to modify
9284     *** your PATH or compiler configuration so that the native linker is
9285     *** used, and then restart.
9286    
9287 michael 5059 _LT_EOF
9288     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9289     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9290     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9291 michael 5052 else
9292     ld_shlibs=no
9293     fi
9294     ;;
9295    
9296     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9297     case `$LD -v 2>&1` in
9298     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9299     ld_shlibs=no
9300     cat <<_LT_EOF 1>&2
9301    
9302 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9303 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9304     *** is disabling shared libraries support. We urge you to upgrade GNU
9305     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9306     *** your PATH or compiler configuration so that the native linker is
9307     *** used, and then restart.
9308    
9309     _LT_EOF
9310     ;;
9311     *)
9312 michael 5059 # For security reasons, it is highly recommended that you always
9313     # use absolute paths for naming shared libraries, and exclude the
9314     # DT_RUNPATH tag from executables and libraries. But doing so
9315     # requires that you compile everything twice, which is a pain.
9316     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9317     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9318     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9319     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9320 michael 5052 else
9321     ld_shlibs=no
9322     fi
9323     ;;
9324     esac
9325     ;;
9326    
9327     sunos4*)
9328     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9329     wlarc=
9330     hardcode_direct=yes
9331     hardcode_shlibpath_var=no
9332     ;;
9333    
9334     *)
9335 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9337     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9338 michael 5052 else
9339     ld_shlibs=no
9340     fi
9341     ;;
9342     esac
9343    
9344 michael 5059 if test no = "$ld_shlibs"; then
9345 michael 5052 runpath_var=
9346     hardcode_libdir_flag_spec=
9347     export_dynamic_flag_spec=
9348     whole_archive_flag_spec=
9349     fi
9350     else
9351     # PORTME fill in a description of your system's linker (not GNU ld)
9352     case $host_os in
9353     aix3*)
9354     allow_undefined_flag=unsupported
9355     always_export_symbols=yes
9356     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'
9357     # Note: this linker hardcodes the directories in LIBPATH if there
9358     # are no directories specified by -L.
9359     hardcode_minus_L=yes
9360 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9361 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9362     # broken collect2.
9363     hardcode_direct=unsupported
9364     fi
9365     ;;
9366    
9367 michael 5059 aix[4-9]*)
9368     if test ia64 = "$host_cpu"; then
9369 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9370     # have to do anything special.
9371     aix_use_runtimelinking=no
9372     exp_sym_flag='-Bexport'
9373 michael 5059 no_entry_flag=
9374 michael 5052 else
9375     # If we're using GNU nm, then we don't want the "-C" option.
9376 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9377     # Without the "-l" option, or with the "-B" option, AIX nm treats
9378     # weak defined symbols like other global defined symbols, whereas
9379     # GNU nm marks them as "W".
9380     # While the 'weak' keyword is ignored in the Export File, we need
9381     # it in the Import File for the 'aix-soname' feature, so we have
9382     # to replace the "-B" option with "-P" for AIX nm.
9383     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9384     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9385 michael 5052 else
9386 michael 5059 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9387 michael 5052 fi
9388     aix_use_runtimelinking=no
9389    
9390     # Test if we are trying to use run time linking or normal
9391     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9392 michael 5059 # have runtime linking enabled, and use it for executables.
9393     # For shared libraries, we enable/disable runtime linking
9394     # depending on the kind of the shared library created -
9395     # when "with_aix_soname,aix_use_runtimelinking" is:
9396     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9397     # "aix,yes" lib.so shared, rtl:yes, for executables
9398     # lib.a static archive
9399     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9400     # lib.a(lib.so.V) shared, rtl:no, for executables
9401     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9402     # lib.a(lib.so.V) shared, rtl:no
9403     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9404     # lib.a static archive
9405     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9406 michael 5052 for ld_flag in $LDFLAGS; do
9407 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9408     aix_use_runtimelinking=yes
9409     break
9410     fi
9411 michael 5052 done
9412 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9413     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9414     # so we don't have lib.a shared libs to link our executables.
9415     # We have to force runtime linking in this case.
9416     aix_use_runtimelinking=yes
9417     LDFLAGS="$LDFLAGS -Wl,-brtl"
9418     fi
9419 michael 5052 ;;
9420     esac
9421    
9422     exp_sym_flag='-bexport'
9423     no_entry_flag='-bnoentry'
9424     fi
9425    
9426     # When large executables or shared objects are built, AIX ld can
9427     # have problems creating the table of contents. If linking a library
9428     # or program results in "error TOC overflow" add -mminimal-toc to
9429     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9430     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9431    
9432     archive_cmds=''
9433     hardcode_direct=yes
9434 michael 5059 hardcode_direct_absolute=yes
9435 michael 5052 hardcode_libdir_separator=':'
9436     link_all_deplibs=yes
9437 michael 5059 file_list_spec='$wl-f,'
9438     case $with_aix_soname,$aix_use_runtimelinking in
9439     aix,*) ;; # traditional, no import file
9440     svr4,* | *,yes) # use import file
9441     # The Import File defines what to hardcode.
9442     hardcode_direct=no
9443     hardcode_direct_absolute=no
9444     ;;
9445     esac
9446 michael 5052
9447 michael 5059 if test yes = "$GCC"; then
9448 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9449     # We only want to do this on AIX 4.2 and lower, the check
9450     # below for broken collect2 doesn't work under 4.3+
9451 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9452     if test -f "$collect2name" &&
9453     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9454 michael 5052 then
9455 michael 5059 # We have reworked collect2
9456     :
9457 michael 5052 else
9458 michael 5059 # We have old collect2
9459     hardcode_direct=unsupported
9460     # It fails to find uninstalled libraries when the uninstalled
9461     # path is not listed in the libpath. Setting hardcode_minus_L
9462     # to unsupported forces relinking
9463     hardcode_minus_L=yes
9464     hardcode_libdir_flag_spec='-L$libdir'
9465     hardcode_libdir_separator=
9466 michael 5052 fi
9467     ;;
9468     esac
9469     shared_flag='-shared'
9470 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9471     shared_flag="$shared_flag "'$wl-G'
9472 michael 5052 fi
9473 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9474     # shared library, or the linker may eventually find shared libraries
9475     # /with/ Import File - we do not want to mix them.
9476     shared_flag_aix='-shared'
9477     shared_flag_svr4='-shared $wl-G'
9478 michael 5052 else
9479     # not using gcc
9480 michael 5059 if test ia64 = "$host_cpu"; then
9481     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9482     # chokes on -Wl,-G. The following line is correct:
9483 michael 5052 shared_flag='-G'
9484     else
9485 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9486     shared_flag='$wl-G'
9487 michael 5052 else
9488 michael 5059 shared_flag='$wl-bM:SRE'
9489 michael 5052 fi
9490 michael 5059 shared_flag_aix='$wl-bM:SRE'
9491     shared_flag_svr4='$wl-G'
9492 michael 5052 fi
9493     fi
9494    
9495 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9496 michael 5052 # It seems that -bexpall does not export symbols beginning with
9497     # underscore (_), so it is better to generate a list of symbols to export.
9498     always_export_symbols=yes
9499 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9500 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9501     # -berok will link without error, but may produce a broken library.
9502     allow_undefined_flag='-berok'
9503 michael 5059 # Determine the default libpath from the value encoded in an
9504     # empty executable.
9505     if test set = "${lt_cv_aix_libpath+set}"; then
9506     aix_libpath=$lt_cv_aix_libpath
9507     else
9508     if ${lt_cv_aix_libpath_+:} false; then :
9509     $as_echo_n "(cached) " >&6
9510     else
9511     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 michael 5052 /* end confdefs.h. */
9513    
9514     int
9515     main ()
9516     {
9517    
9518     ;
9519     return 0;
9520     }
9521     _ACEOF
9522 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9523 michael 5052
9524 michael 5059 lt_aix_libpath_sed='
9525     /Import File Strings/,/^$/ {
9526     /^0/ {
9527     s/^0 *\([^ ]*\) *$/\1/
9528     p
9529     }
9530     }'
9531     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9532     # Check for a 64-bit object if we didn't find anything.
9533     if test -z "$lt_cv_aix_libpath_"; then
9534     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9535     fi
9536     fi
9537     rm -f core conftest.err conftest.$ac_objext \
9538     conftest$ac_exeext conftest.$ac_ext
9539     if test -z "$lt_cv_aix_libpath_"; then
9540     lt_cv_aix_libpath_=/usr/lib:/lib
9541     fi
9542 michael 5052
9543 michael 5059 fi
9544 michael 5052
9545 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9546 michael 5052 fi
9547    
9548 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9549     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9550     else
9551     if test ia64 = "$host_cpu"; then
9552     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9553 michael 5052 allow_undefined_flag="-z nodefs"
9554 michael 5059 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"
9555 michael 5052 else
9556 michael 5059 # Determine the default libpath from the value encoded in an
9557     # empty executable.
9558     if test set = "${lt_cv_aix_libpath+set}"; then
9559     aix_libpath=$lt_cv_aix_libpath
9560     else
9561     if ${lt_cv_aix_libpath_+:} false; then :
9562     $as_echo_n "(cached) " >&6
9563     else
9564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565 michael 5052 /* end confdefs.h. */
9566    
9567     int
9568     main ()
9569     {
9570    
9571     ;
9572     return 0;
9573     }
9574     _ACEOF
9575 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9576 michael 5052
9577 michael 5059 lt_aix_libpath_sed='
9578     /Import File Strings/,/^$/ {
9579     /^0/ {
9580     s/^0 *\([^ ]*\) *$/\1/
9581     p
9582     }
9583     }'
9584     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9585     # Check for a 64-bit object if we didn't find anything.
9586     if test -z "$lt_cv_aix_libpath_"; then
9587     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9588     fi
9589     fi
9590     rm -f core conftest.err conftest.$ac_objext \
9591     conftest$ac_exeext conftest.$ac_ext
9592     if test -z "$lt_cv_aix_libpath_"; then
9593     lt_cv_aix_libpath_=/usr/lib:/lib
9594     fi
9595 michael 5052
9596 michael 5059 fi
9597 michael 5052
9598 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9599 michael 5052 fi
9600    
9601 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9602 michael 5052 # Warning - without using the other run time loading flags,
9603     # -berok will link without error, but may produce a broken library.
9604 michael 5059 no_undefined_flag=' $wl-bernotok'
9605     allow_undefined_flag=' $wl-berok'
9606     if test yes = "$with_gnu_ld"; then
9607     # We only use this code for GNU lds that support --whole-archive.
9608     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9609     else
9610     # Exported symbols can be pulled into shared objects from archives
9611     whole_archive_flag_spec='$convenience'
9612     fi
9613 michael 5052 archive_cmds_need_lc=yes
9614 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9615     # -brtl affects multiple linker settings, -berok does not and is overridden later
9616     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9617     if test svr4 != "$with_aix_soname"; then
9618     # This is similar to how AIX traditionally builds its shared libraries.
9619     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9620     fi
9621     if test aix != "$with_aix_soname"; then
9622     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9623     else
9624     # used by -dlpreopen to get the symbols
9625     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9626     fi
9627     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9628 michael 5052 fi
9629     fi
9630     ;;
9631    
9632     amigaos*)
9633 michael 5059 case $host_cpu in
9634     powerpc)
9635     # see comment about AmigaOS4 .so support
9636     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9637     archive_expsym_cmds=''
9638     ;;
9639     m68k)
9640     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)'
9641     hardcode_libdir_flag_spec='-L$libdir'
9642     hardcode_minus_L=yes
9643     ;;
9644     esac
9645 michael 5052 ;;
9646    
9647     bsdi[45]*)
9648     export_dynamic_flag_spec=-rdynamic
9649     ;;
9650    
9651 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9652 michael 5052 # When not using gcc, we currently assume that we are using
9653     # Microsoft Visual C++.
9654     # hardcode_libdir_flag_spec is actually meaningless, as there is
9655     # no search path for DLLs.
9656 michael 5059 case $cc_basename in
9657     cl*)
9658     # Native MSVC
9659     hardcode_libdir_flag_spec=' '
9660     allow_undefined_flag=unsupported
9661     always_export_symbols=yes
9662     file_list_spec='@'
9663     # Tell ltmain to make .lib files, not .a files.
9664     libext=lib
9665     # Tell ltmain to make .dll files, not .so files.
9666     shrext_cmds=.dll
9667     # FIXME: Setting linknames here is a bad hack.
9668     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9669     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9670     cp "$export_symbols" "$output_objdir/$soname.def";
9671     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9672     else
9673     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9674     fi~
9675     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9676     linknames='
9677     # The linker will not automatically build a static lib if we build a DLL.
9678     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9679     enable_shared_with_static_runtimes=yes
9680     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9681     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9682     # Don't use ranlib
9683     old_postinstall_cmds='chmod 644 $oldlib'
9684     postlink_cmds='lt_outputfile="@OUTPUT@"~
9685     lt_tool_outputfile="@TOOL_OUTPUT@"~
9686     case $lt_outputfile in
9687     *.exe|*.EXE) ;;
9688     *)
9689     lt_outputfile=$lt_outputfile.exe
9690     lt_tool_outputfile=$lt_tool_outputfile.exe
9691     ;;
9692     esac~
9693     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9694     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9695     $RM "$lt_outputfile.manifest";
9696     fi'
9697     ;;
9698     *)
9699     # Assume MSVC wrapper
9700     hardcode_libdir_flag_spec=' '
9701     allow_undefined_flag=unsupported
9702     # Tell ltmain to make .lib files, not .a files.
9703     libext=lib
9704     # Tell ltmain to make .dll files, not .so files.
9705     shrext_cmds=.dll
9706     # FIXME: Setting linknames here is a bad hack.
9707     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9708     # The linker will automatically build a .lib file if we build a DLL.
9709     old_archive_from_new_cmds='true'
9710     # FIXME: Should let the user specify the lib program.
9711     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9712     enable_shared_with_static_runtimes=yes
9713     ;;
9714     esac
9715 michael 5052 ;;
9716    
9717     darwin* | rhapsody*)
9718 michael 5059
9719    
9720     archive_cmds_need_lc=no
9721     hardcode_direct=no
9722     hardcode_automatic=yes
9723     hardcode_shlibpath_var=unsupported
9724     if test yes = "$lt_cv_ld_force_load"; then
9725     whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9726    
9727     else
9728     whole_archive_flag_spec=''
9729     fi
9730     link_all_deplibs=yes
9731     allow_undefined_flag=$_lt_dar_allow_undefined
9732     case $cc_basename in
9733     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9734     *) _lt_dar_can_shared=$GCC ;;
9735     esac
9736     if test yes = "$_lt_dar_can_shared"; then
9737     output_verbose_link_cmd=func_echo_all
9738     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9739     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9740     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"
9741     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"
9742    
9743     else
9744     ld_shlibs=no
9745     fi
9746    
9747 michael 5052 ;;
9748    
9749     dgux*)
9750     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751     hardcode_libdir_flag_spec='-L$libdir'
9752     hardcode_shlibpath_var=no
9753     ;;
9754    
9755     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9756     # support. Future versions do this automatically, but an explicit c++rt0.o
9757     # does not break anything, and helps significantly (at the cost of a little
9758     # extra space).
9759     freebsd2.2*)
9760     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9761     hardcode_libdir_flag_spec='-R$libdir'
9762     hardcode_direct=yes
9763     hardcode_shlibpath_var=no
9764     ;;
9765    
9766     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9767 michael 5059 freebsd2.*)
9768 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9769     hardcode_direct=yes
9770     hardcode_minus_L=yes
9771     hardcode_shlibpath_var=no
9772     ;;
9773    
9774     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9775     freebsd* | dragonfly*)
9776 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9777 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9778     hardcode_direct=yes
9779     hardcode_shlibpath_var=no
9780     ;;
9781    
9782     hpux9*)
9783 michael 5059 if test yes = "$GCC"; then
9784     archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9785 michael 5052 else
9786 michael 5059 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9787 michael 5052 fi
9788 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9789 michael 5052 hardcode_libdir_separator=:
9790     hardcode_direct=yes
9791    
9792     # hardcode_minus_L: Not really in the search PATH,
9793     # but as the default location of the library.
9794     hardcode_minus_L=yes
9795 michael 5059 export_dynamic_flag_spec='$wl-E'
9796 michael 5052 ;;
9797    
9798     hpux10*)
9799 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9800     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9801 michael 5052 else
9802     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9803     fi
9804 michael 5059 if test no = "$with_gnu_ld"; then
9805     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9806 michael 5052 hardcode_libdir_separator=:
9807     hardcode_direct=yes
9808 michael 5059 hardcode_direct_absolute=yes
9809     export_dynamic_flag_spec='$wl-E'
9810 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9811     # but as the default location of the library.
9812     hardcode_minus_L=yes
9813     fi
9814     ;;
9815    
9816     hpux11*)
9817 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9818 michael 5052 case $host_cpu in
9819     hppa*64*)
9820 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 michael 5052 ;;
9822     ia64*)
9823 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9824 michael 5052 ;;
9825     *)
9826 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827 michael 5052 ;;
9828     esac
9829     else
9830     case $host_cpu in
9831     hppa*64*)
9832 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 michael 5052 ;;
9834     ia64*)
9835 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9836 michael 5052 ;;
9837     *)
9838 michael 5059
9839     # Older versions of the 11.00 compiler do not understand -b yet
9840     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9841     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9842     $as_echo_n "checking if $CC understands -b... " >&6; }
9843     if ${lt_cv_prog_compiler__b+:} false; then :
9844     $as_echo_n "(cached) " >&6
9845     else
9846     lt_cv_prog_compiler__b=no
9847     save_LDFLAGS=$LDFLAGS
9848     LDFLAGS="$LDFLAGS -b"
9849     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9850     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9851     # The linker can only warn and ignore the option if not recognized
9852     # So say no if there are warnings
9853     if test -s conftest.err; then
9854     # Append any errors to the config.log.
9855     cat conftest.err 1>&5
9856     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9858     if diff conftest.exp conftest.er2 >/dev/null; then
9859     lt_cv_prog_compiler__b=yes
9860     fi
9861     else
9862     lt_cv_prog_compiler__b=yes
9863     fi
9864     fi
9865     $RM -r conftest*
9866     LDFLAGS=$save_LDFLAGS
9867    
9868     fi
9869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9870     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9871    
9872     if test yes = "$lt_cv_prog_compiler__b"; then
9873     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9874     else
9875     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9876     fi
9877    
9878 michael 5052 ;;
9879     esac
9880     fi
9881 michael 5059 if test no = "$with_gnu_ld"; then
9882     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9883 michael 5052 hardcode_libdir_separator=:
9884    
9885     case $host_cpu in
9886     hppa*64*|ia64*)
9887     hardcode_direct=no
9888     hardcode_shlibpath_var=no
9889     ;;
9890     *)
9891     hardcode_direct=yes
9892 michael 5059 hardcode_direct_absolute=yes
9893     export_dynamic_flag_spec='$wl-E'
9894 michael 5052
9895     # hardcode_minus_L: Not really in the search PATH,
9896     # but as the default location of the library.
9897     hardcode_minus_L=yes
9898     ;;
9899     esac
9900     fi
9901     ;;
9902    
9903     irix5* | irix6* | nonstopux*)
9904 michael 5059 if test yes = "$GCC"; then
9905     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9906     # Try to use the -exported_symbol ld option, if it does not
9907     # work, assume that -exports_file does not work either and
9908     # implicitly export all symbols.
9909     # This should be the same for all languages, so no per-tag cache variable.
9910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9911     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9912     if ${lt_cv_irix_exported_symbol+:} false; then :
9913     $as_echo_n "(cached) " >&6
9914     else
9915     save_LDFLAGS=$LDFLAGS
9916     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918     /* end confdefs.h. */
9919     int foo (void) { return 0; }
9920     _ACEOF
9921     if ac_fn_c_try_link "$LINENO"; then :
9922     lt_cv_irix_exported_symbol=yes
9923     else
9924     lt_cv_irix_exported_symbol=no
9925     fi
9926     rm -f core conftest.err conftest.$ac_objext \
9927     conftest$ac_exeext conftest.$ac_ext
9928     LDFLAGS=$save_LDFLAGS
9929     fi
9930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9931     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9932     if test yes = "$lt_cv_irix_exported_symbol"; then
9933     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9934     fi
9935 michael 5052 else
9936 michael 5059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9937     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9938 michael 5052 fi
9939 michael 5059 archive_cmds_need_lc='no'
9940     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9941 michael 5052 hardcode_libdir_separator=:
9942 michael 5059 inherit_rpath=yes
9943 michael 5052 link_all_deplibs=yes
9944     ;;
9945    
9946 michael 5059 linux*)
9947     case $cc_basename in
9948     tcc*)
9949     # Fabrice Bellard et al's Tiny C Compiler
9950     ld_shlibs=yes
9951     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9952     ;;
9953     esac
9954     ;;
9955    
9956     netbsd*)
9957     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9958 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9959     else
9960     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9961     fi
9962     hardcode_libdir_flag_spec='-R$libdir'
9963     hardcode_direct=yes
9964     hardcode_shlibpath_var=no
9965     ;;
9966    
9967     newsos6)
9968     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9969     hardcode_direct=yes
9970 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9971 michael 5052 hardcode_libdir_separator=:
9972     hardcode_shlibpath_var=no
9973     ;;
9974    
9975 michael 5059 *nto* | *qnx*)
9976     ;;
9977    
9978     openbsd* | bitrig*)
9979     if test -f /usr/libexec/ld.so; then
9980     hardcode_direct=yes
9981     hardcode_shlibpath_var=no
9982     hardcode_direct_absolute=yes
9983     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9984     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9986     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9987     export_dynamic_flag_spec='$wl-E'
9988     else
9989     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9991     fi
9992 michael 5052 else
9993 michael 5059 ld_shlibs=no
9994 michael 5052 fi
9995     ;;
9996    
9997     os2*)
9998     hardcode_libdir_flag_spec='-L$libdir'
9999     hardcode_minus_L=yes
10000     allow_undefined_flag=unsupported
10001 michael 5059 shrext_cmds=.dll
10002     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10003     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10004     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10005     $ECHO EXPORTS >> $output_objdir/$libname.def~
10006     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10007     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10008     emximp -o $lib $output_objdir/$libname.def'
10009     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10010     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10011     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10012     $ECHO EXPORTS >> $output_objdir/$libname.def~
10013     prefix_cmds="$SED"~
10014     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10015     prefix_cmds="$prefix_cmds -e 1d";
10016     fi~
10017     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10018     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10019     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10020     emximp -o $lib $output_objdir/$libname.def'
10021     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10022     enable_shared_with_static_runtimes=yes
10023 michael 5052 ;;
10024    
10025     osf3*)
10026 michael 5059 if test yes = "$GCC"; then
10027     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10028     archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10029 michael 5052 else
10030     allow_undefined_flag=' -expect_unresolved \*'
10031 michael 5059 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10032 michael 5052 fi
10033 michael 5059 archive_cmds_need_lc='no'
10034     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10035 michael 5052 hardcode_libdir_separator=:
10036     ;;
10037    
10038     osf4* | osf5*) # as osf3* with the addition of -msym flag
10039 michael 5059 if test yes = "$GCC"; then
10040     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10041     archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10042     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10043 michael 5052 else
10044     allow_undefined_flag=' -expect_unresolved \*'
10045 michael 5059 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10046     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~
10047     $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10048 michael 5052
10049     # Both c and cxx compiler support -rpath directly
10050     hardcode_libdir_flag_spec='-rpath $libdir'
10051     fi
10052 michael 5059 archive_cmds_need_lc='no'
10053 michael 5052 hardcode_libdir_separator=:
10054     ;;
10055    
10056     solaris*)
10057 michael 5059 no_undefined_flag=' -z defs'
10058     if test yes = "$GCC"; then
10059     wlarc='$wl'
10060     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10061     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062     $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10063 michael 5052 else
10064 michael 5059 case `$CC -V 2>&1` in
10065     *"Compilers 5.0"*)
10066     wlarc=''
10067     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10069     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10070     ;;
10071     *)
10072     wlarc='$wl'
10073     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10075     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10076     ;;
10077     esac
10078 michael 5052 fi
10079     hardcode_libdir_flag_spec='-R$libdir'
10080     hardcode_shlibpath_var=no
10081     case $host_os in
10082     solaris2.[0-5] | solaris2.[0-5].*) ;;
10083     *)
10084 michael 5059 # The compiler driver will combine and reorder linker options,
10085     # but understands '-z linker_flag'. GCC discards it without '$wl',
10086     # but is careful enough not to reorder.
10087     # Supported since Solaris 2.6 (maybe 2.5.1?)
10088     if test yes = "$GCC"; then
10089     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10090     else
10091     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10092     fi
10093     ;;
10094 michael 5052 esac
10095     link_all_deplibs=yes
10096     ;;
10097    
10098     sunos4*)
10099 michael 5059 if test sequent = "$host_vendor"; then
10100 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10101     # files that make .init and .fini sections work.
10102 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10103 michael 5052 else
10104     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10105     fi
10106     hardcode_libdir_flag_spec='-L$libdir'
10107     hardcode_direct=yes
10108     hardcode_minus_L=yes
10109     hardcode_shlibpath_var=no
10110     ;;
10111    
10112     sysv4)
10113     case $host_vendor in
10114     sni)
10115     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116     hardcode_direct=yes # is this really true???
10117     ;;
10118     siemens)
10119     ## LD is ld it makes a PLAMLIB
10120     ## CC just makes a GrossModule.
10121     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10122     reload_cmds='$CC -r -o $output$reload_objs'
10123     hardcode_direct=no
10124     ;;
10125     motorola)
10126     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10128     ;;
10129     esac
10130     runpath_var='LD_RUN_PATH'
10131     hardcode_shlibpath_var=no
10132     ;;
10133    
10134     sysv4.3*)
10135     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136     hardcode_shlibpath_var=no
10137     export_dynamic_flag_spec='-Bexport'
10138     ;;
10139    
10140     sysv4*MP*)
10141     if test -d /usr/nec; then
10142     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10143     hardcode_shlibpath_var=no
10144     runpath_var=LD_RUN_PATH
10145     hardcode_runpath_var=yes
10146     ld_shlibs=yes
10147     fi
10148     ;;
10149    
10150 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10151     no_undefined_flag='$wl-z,text'
10152 michael 5052 archive_cmds_need_lc=no
10153     hardcode_shlibpath_var=no
10154     runpath_var='LD_RUN_PATH'
10155    
10156 michael 5059 if test yes = "$GCC"; then
10157     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 michael 5052 else
10160 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 michael 5052 fi
10163     ;;
10164    
10165     sysv5* | sco3.2v5* | sco5v6*)
10166 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10167 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10168     # always be unresolved, which means just about no library would
10169     # ever link correctly. If we're not using GNU ld we use -z text
10170     # though, which does catch some bad symbols but isn't as heavy-handed
10171     # as -z defs.
10172 michael 5059 no_undefined_flag='$wl-z,text'
10173     allow_undefined_flag='$wl-z,nodefs'
10174 michael 5052 archive_cmds_need_lc=no
10175     hardcode_shlibpath_var=no
10176 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10177 michael 5052 hardcode_libdir_separator=':'
10178     link_all_deplibs=yes
10179 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10180 michael 5052 runpath_var='LD_RUN_PATH'
10181    
10182 michael 5059 if test yes = "$GCC"; then
10183     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 michael 5052 else
10186 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 michael 5052 fi
10189     ;;
10190    
10191     uts4*)
10192     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193     hardcode_libdir_flag_spec='-L$libdir'
10194     hardcode_shlibpath_var=no
10195     ;;
10196    
10197     *)
10198     ld_shlibs=no
10199     ;;
10200     esac
10201 michael 5059
10202     if test sni = "$host_vendor"; then
10203     case $host in
10204     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10205     export_dynamic_flag_spec='$wl-Blargedynsym'
10206     ;;
10207     esac
10208     fi
10209 michael 5052 fi
10210    
10211 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10212     $as_echo "$ld_shlibs" >&6; }
10213     test no = "$ld_shlibs" && can_build_shared=no
10214 michael 5052
10215 michael 5059 with_gnu_ld=$with_gnu_ld
10216    
10217    
10218    
10219    
10220    
10221    
10222    
10223    
10224    
10225    
10226    
10227    
10228    
10229    
10230    
10231 michael 5052 #
10232     # Do we need to explicitly link libc?
10233     #
10234     case "x$archive_cmds_need_lc" in
10235     x|xyes)
10236     # Assume -lc should be added
10237     archive_cmds_need_lc=yes
10238    
10239 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10240 michael 5052 case $archive_cmds in
10241     *'~'*)
10242     # FIXME: we may have to deal with multi-command sequences.
10243     ;;
10244     '$CC '*)
10245     # Test whether the compiler implicitly links with -lc since on some
10246     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10247     # to ld, don't add -lc before -lgcc.
10248 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10249     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10250     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10251     $as_echo_n "(cached) " >&6
10252     else
10253     $RM conftest*
10254     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10255 michael 5052
10256 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10257 michael 5052 (eval $ac_compile) 2>&5
10258     ac_status=$?
10259 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10260     test $ac_status = 0; } 2>conftest.err; then
10261     soname=conftest
10262     lib=conftest
10263     libobjs=conftest.$ac_objext
10264     deplibs=
10265     wl=$lt_prog_compiler_wl
10266     pic_flag=$lt_prog_compiler_pic
10267     compiler_flags=-v
10268     linker_flags=-v
10269     verstring=
10270     output_objdir=.
10271     libname=conftest
10272     lt_save_allow_undefined_flag=$allow_undefined_flag
10273     allow_undefined_flag=
10274     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10275     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10276 michael 5052 ac_status=$?
10277 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10278     test $ac_status = 0; }
10279     then
10280     lt_cv_archive_cmds_need_lc=no
10281     else
10282     lt_cv_archive_cmds_need_lc=yes
10283     fi
10284     allow_undefined_flag=$lt_save_allow_undefined_flag
10285     else
10286     cat conftest.err 1>&5
10287     fi
10288     $RM conftest*
10289    
10290     fi
10291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10292     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10293     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10294 michael 5052 ;;
10295     esac
10296     fi
10297     ;;
10298     esac
10299    
10300 michael 5059
10301    
10302    
10303    
10304    
10305    
10306    
10307    
10308    
10309    
10310    
10311    
10312    
10313    
10314    
10315    
10316    
10317    
10318    
10319    
10320    
10321    
10322    
10323    
10324    
10325    
10326    
10327    
10328    
10329    
10330    
10331    
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444    
10445    
10446    
10447    
10448    
10449    
10450    
10451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10452     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10453    
10454     if test yes = "$GCC"; then
10455     case $host_os in
10456     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10457     *) lt_awk_arg='/^libraries:/' ;;
10458     esac
10459     case $host_os in
10460     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10461     *) lt_sed_strip_eq='s|=/|/|g' ;;
10462     esac
10463     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10464     case $lt_search_path_spec in
10465     *\;*)
10466     # if the path contains ";" then we assume it to be the separator
10467     # otherwise default to the standard path separator (i.e. ":") - it is
10468     # assumed that no part of a normal pathname contains ";" but that should
10469     # okay in the real world where ";" in dirpaths is itself problematic.
10470     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10471     ;;
10472     *)
10473     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10474     ;;
10475     esac
10476     # Ok, now we have the path, separated by spaces, we can step through it
10477     # and add multilib dir if necessary...
10478     lt_tmp_lt_search_path_spec=
10479     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480     # ...but if some path component already ends with the multilib dir we assume
10481     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10482     case "$lt_multi_os_dir; $lt_search_path_spec " in
10483     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10484     lt_multi_os_dir=
10485     ;;
10486     esac
10487     for lt_sys_path in $lt_search_path_spec; do
10488     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10489     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10490     elif test -n "$lt_multi_os_dir"; then
10491     test -d "$lt_sys_path" && \
10492     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10493     fi
10494     done
10495     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10496     BEGIN {RS = " "; FS = "/|\n";} {
10497     lt_foo = "";
10498     lt_count = 0;
10499     for (lt_i = NF; lt_i > 0; lt_i--) {
10500     if ($lt_i != "" && $lt_i != ".") {
10501     if ($lt_i == "..") {
10502     lt_count++;
10503     } else {
10504     if (lt_count == 0) {
10505     lt_foo = "/" $lt_i lt_foo;
10506     } else {
10507     lt_count--;
10508     }
10509     }
10510     }
10511     }
10512     if (lt_foo != "") { lt_freq[lt_foo]++; }
10513     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10514     }'`
10515     # AWK program above erroneously prepends '/' to C:/dos/paths
10516     # for these hosts.
10517     case $host_os in
10518     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10519     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10520     esac
10521     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10522     else
10523     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10524     fi
10525 michael 5052 library_names_spec=
10526     libname_spec='lib$name'
10527     soname_spec=
10528 michael 5059 shrext_cmds=.so
10529 michael 5052 postinstall_cmds=
10530     postuninstall_cmds=
10531     finish_cmds=
10532     finish_eval=
10533     shlibpath_var=
10534     shlibpath_overrides_runpath=unknown
10535     version_type=none
10536     dynamic_linker="$host_os ld.so"
10537     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10538     need_lib_prefix=unknown
10539     hardcode_into_libs=no
10540    
10541     # when you set need_version to no, make sure it does not cause -set_version
10542     # flags to be left without arguments
10543     need_version=unknown
10544    
10545 michael 5433
10546    
10547 michael 5052 case $host_os in
10548     aix3*)
10549 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10550     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10551 michael 5052 shlibpath_var=LIBPATH
10552    
10553     # AIX 3 has no versioning support, so we append a major version to the name.
10554 michael 5059 soname_spec='$libname$release$shared_ext$major'
10555 michael 5052 ;;
10556    
10557 michael 5059 aix[4-9]*)
10558     version_type=linux # correct to gnu/linux during the next big refactor
10559 michael 5052 need_lib_prefix=no
10560     need_version=no
10561     hardcode_into_libs=yes
10562 michael 5059 if test ia64 = "$host_cpu"; then
10563 michael 5052 # AIX 5 supports IA64
10564 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10565 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10566     else
10567     # With GCC up to 2.95.x, collect2 would create an import file
10568     # for dependence libraries. The import file would start with
10569 michael 5059 # the line '#! .'. This would cause the generated library to
10570     # depend on '.', always an invalid library. This was fixed in
10571 michael 5052 # development snapshots of GCC prior to 3.0.
10572     case $host_os in
10573     aix4 | aix4.[01] | aix4.[01].*)
10574     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10575     echo ' yes '
10576 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10577 michael 5052 :
10578     else
10579     can_build_shared=no
10580     fi
10581     ;;
10582     esac
10583 michael 5059 # Using Import Files as archive members, it is possible to support
10584     # filename-based versioning of shared library archives on AIX. While
10585     # this would work for both with and without runtime linking, it will
10586     # prevent static linking of such archives. So we do filename-based
10587     # shared library versioning with .so extension only, which is used
10588     # when both runtime linking and shared linking is enabled.
10589     # Unfortunately, runtime linking may impact performance, so we do
10590     # not want this to be the default eventually. Also, we use the
10591     # versioned .so libs for executables only if there is the -brtl
10592     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10593     # To allow for filename-based versioning support, we need to create
10594     # libNAME.so.V as an archive file, containing:
10595     # *) an Import File, referring to the versioned filename of the
10596     # archive as well as the shared archive member, telling the
10597     # bitwidth (32 or 64) of that shared object, and providing the
10598     # list of exported symbols of that shared object, eventually
10599     # decorated with the 'weak' keyword
10600     # *) the shared object with the F_LOADONLY flag set, to really avoid
10601     # it being seen by the linker.
10602     # At run time we better use the real file rather than another symlink,
10603     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10604    
10605     case $with_aix_soname,$aix_use_runtimelinking in
10606     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10607 michael 5052 # soname into executable. Probably we can add versioning support to
10608     # collect2, so additional links can be useful in future.
10609 michael 5059 aix,yes) # traditional libtool
10610     dynamic_linker='AIX unversionable lib.so'
10611 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10612     # instead of lib<name>.a to let people know that these are not
10613     # typical AIX shared libraries.
10614 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10615     ;;
10616     aix,no) # traditional AIX only
10617     dynamic_linker='AIX lib.a(lib.so.V)'
10618 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10619     # and later when we are not doing run time linking.
10620 michael 5059 library_names_spec='$libname$release.a $libname.a'
10621     soname_spec='$libname$release$shared_ext$major'
10622     ;;
10623     svr4,*) # full svr4 only
10624     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10625     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10626     # We do not specify a path in Import Files, so LIBPATH fires.
10627     shlibpath_overrides_runpath=yes
10628     ;;
10629     *,yes) # both, prefer svr4
10630     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10631     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10632     # unpreferred sharedlib libNAME.a needs extra handling
10633     postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10634     postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10635     # We do not specify a path in Import Files, so LIBPATH fires.
10636     shlibpath_overrides_runpath=yes
10637     ;;
10638     *,no) # both, prefer aix
10639     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10640     library_names_spec='$libname$release.a $libname.a'
10641     soname_spec='$libname$release$shared_ext$major'
10642     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10643     postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10644     postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10645     ;;
10646     esac
10647 michael 5052 shlibpath_var=LIBPATH
10648     fi
10649     ;;
10650    
10651     amigaos*)
10652 michael 5059 case $host_cpu in
10653     powerpc)
10654     # Since July 2007 AmigaOS4 officially supports .so libraries.
10655     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10656     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10657     ;;
10658     m68k)
10659     library_names_spec='$libname.ixlibrary $libname.a'
10660     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10661     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10662     ;;
10663     esac
10664 michael 5052 ;;
10665    
10666     beos*)
10667 michael 5059 library_names_spec='$libname$shared_ext'
10668 michael 5052 dynamic_linker="$host_os ld.so"
10669     shlibpath_var=LIBRARY_PATH
10670     ;;
10671    
10672     bsdi[45]*)
10673 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10674 michael 5052 need_version=no
10675 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10676     soname_spec='$libname$release$shared_ext$major'
10677 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10678     shlibpath_var=LD_LIBRARY_PATH
10679     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10680     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10681     # the default ld.so.conf also contains /usr/contrib/lib and
10682     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10683     # libtool to hard-code these into programs
10684     ;;
10685    
10686 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10687 michael 5052 version_type=windows
10688 michael 5059 shrext_cmds=.dll
10689 michael 5052 need_version=no
10690     need_lib_prefix=no
10691    
10692 michael 5059 case $GCC,$cc_basename in
10693     yes,*)
10694     # gcc
10695 michael 5052 library_names_spec='$libname.dll.a'
10696     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10697 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10698     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10699 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10700     test -d \$dldir || mkdir -p \$dldir~
10701     $install_prog $dir/$dlname \$dldir/$dlname~
10702 michael 5059 chmod a+x \$dldir/$dlname~
10703     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10704     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10705     fi'
10706 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10707     dlpath=$dir/\$dldll~
10708 michael 5059 $RM \$dlpath'
10709 michael 5052 shlibpath_overrides_runpath=yes
10710    
10711     case $host_os in
10712     cygwin*)
10713     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10714 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10715    
10716     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10717 michael 5052 ;;
10718 michael 5059 mingw* | cegcc*)
10719 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10720 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10721 michael 5052 ;;
10722     pw32*)
10723     # pw32 DLLs use 'pw' prefix rather than 'lib'
10724 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10725 michael 5052 ;;
10726     esac
10727 michael 5059 dynamic_linker='Win32 ld.exe'
10728 michael 5052 ;;
10729    
10730 michael 5059 *,cl*)
10731     # Native MSVC
10732     libname_spec='$name'
10733     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10734     library_names_spec='$libname.dll.lib'
10735    
10736     case $build_os in
10737     mingw*)
10738     sys_lib_search_path_spec=
10739     lt_save_ifs=$IFS
10740     IFS=';'
10741     for lt_path in $LIB
10742     do
10743     IFS=$lt_save_ifs
10744     # Let DOS variable expansion print the short 8.3 style file name.
10745     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10746     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10747     done
10748     IFS=$lt_save_ifs
10749     # Convert to MSYS style.
10750     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10751     ;;
10752     cygwin*)
10753     # Convert to unix form, then to dos form, then back to unix form
10754     # but this time dos style (no spaces!) so that the unix form looks
10755     # like /cygdrive/c/PROGRA~1:/cygdr...
10756     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10757     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10758     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10759     ;;
10760     *)
10761     sys_lib_search_path_spec=$LIB
10762     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10763     # It is most probably a Windows format PATH.
10764     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10765     else
10766     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10767     fi
10768     # FIXME: find the short name or the path components, as spaces are
10769     # common. (e.g. "Program Files" -> "PROGRA~1")
10770     ;;
10771     esac
10772    
10773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10774     postinstall_cmds='base_file=`basename \$file`~
10775     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10776     dldir=$destdir/`dirname \$dlpath`~
10777     test -d \$dldir || mkdir -p \$dldir~
10778     $install_prog $dir/$dlname \$dldir/$dlname'
10779     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10780     dlpath=$dir/\$dldll~
10781     $RM \$dlpath'
10782     shlibpath_overrides_runpath=yes
10783     dynamic_linker='Win32 link.exe'
10784     ;;
10785    
10786 michael 5052 *)
10787 michael 5059 # Assume MSVC wrapper
10788     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10789     dynamic_linker='Win32 ld.exe'
10790 michael 5052 ;;
10791     esac
10792     # FIXME: first we should search . and the directory the executable is in
10793     shlibpath_var=PATH
10794     ;;
10795    
10796     darwin* | rhapsody*)
10797     dynamic_linker="$host_os dyld"
10798     version_type=darwin
10799     need_lib_prefix=no
10800     need_version=no
10801 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10802     soname_spec='$libname$release$major$shared_ext'
10803 michael 5052 shlibpath_overrides_runpath=yes
10804     shlibpath_var=DYLD_LIBRARY_PATH
10805     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10806 michael 5059
10807     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10808 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10809     ;;
10810    
10811     dgux*)
10812 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10813 michael 5052 need_lib_prefix=no
10814     need_version=no
10815 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10816     soname_spec='$libname$release$shared_ext$major'
10817 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10818     ;;
10819    
10820     freebsd* | dragonfly*)
10821     # DragonFly does not have aout. When/if they implement a new
10822     # versioning mechanism, adjust this.
10823     if test -x /usr/bin/objformat; then
10824     objformat=`/usr/bin/objformat`
10825     else
10826     case $host_os in
10827 michael 5059 freebsd[23].*) objformat=aout ;;
10828 michael 5052 *) objformat=elf ;;
10829     esac
10830     fi
10831     version_type=freebsd-$objformat
10832     case $version_type in
10833     freebsd-elf*)
10834 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10835 michael 5433 soname_spec='$libname$release$shared_ext$major'
10836 michael 5052 need_version=no
10837     need_lib_prefix=no
10838     ;;
10839     freebsd-*)
10840 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10841 michael 5052 need_version=yes
10842     ;;
10843     esac
10844     shlibpath_var=LD_LIBRARY_PATH
10845     case $host_os in
10846 michael 5059 freebsd2.*)
10847 michael 5052 shlibpath_overrides_runpath=yes
10848     ;;
10849     freebsd3.[01]* | freebsdelf3.[01]*)
10850     shlibpath_overrides_runpath=yes
10851     hardcode_into_libs=yes
10852     ;;
10853     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10854     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10855     shlibpath_overrides_runpath=no
10856     hardcode_into_libs=yes
10857     ;;
10858 michael 5059 *) # from 4.6 on, and DragonFly
10859 michael 5052 shlibpath_overrides_runpath=yes
10860     hardcode_into_libs=yes
10861     ;;
10862     esac
10863     ;;
10864    
10865 michael 5059 haiku*)
10866     version_type=linux # correct to gnu/linux during the next big refactor
10867 michael 5052 need_lib_prefix=no
10868     need_version=no
10869 michael 5059 dynamic_linker="$host_os runtime_loader"
10870     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10871     soname_spec='$libname$release$shared_ext$major'
10872     shlibpath_var=LIBRARY_PATH
10873     shlibpath_overrides_runpath=no
10874     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10875 michael 5052 hardcode_into_libs=yes
10876     ;;
10877    
10878     hpux9* | hpux10* | hpux11*)
10879     # Give a soname corresponding to the major version so that dld.sl refuses to
10880     # link against other versions.
10881     version_type=sunos
10882     need_lib_prefix=no
10883     need_version=no
10884     case $host_cpu in
10885     ia64*)
10886     shrext_cmds='.so'
10887     hardcode_into_libs=yes
10888     dynamic_linker="$host_os dld.so"
10889     shlibpath_var=LD_LIBRARY_PATH
10890     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10892     soname_spec='$libname$release$shared_ext$major'
10893     if test 32 = "$HPUX_IA64_MODE"; then
10894 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10895 michael 5433 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10896 michael 5052 else
10897     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10898 michael 5433 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10899 michael 5052 fi
10900     ;;
10901 michael 5059 hppa*64*)
10902 michael 5052 shrext_cmds='.sl'
10903 michael 5059 hardcode_into_libs=yes
10904 michael 5052 dynamic_linker="$host_os dld.sl"
10905 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10906     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908     soname_spec='$libname$release$shared_ext$major'
10909     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10911     ;;
10912     *)
10913     shrext_cmds='.sl'
10914     dynamic_linker="$host_os dld.sl"
10915 michael 5052 shlibpath_var=SHLIB_PATH
10916     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10917 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10918     soname_spec='$libname$release$shared_ext$major'
10919 michael 5052 ;;
10920     esac
10921 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10922 michael 5052 postinstall_cmds='chmod 555 $lib'
10923 michael 5059 # or fails outright, so override atomically:
10924     install_override_mode=555
10925 michael 5052 ;;
10926    
10927 michael 5059 interix[3-9]*)
10928     version_type=linux # correct to gnu/linux during the next big refactor
10929 michael 5052 need_lib_prefix=no
10930     need_version=no
10931 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10932     soname_spec='$libname$release$shared_ext$major'
10933 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10934     shlibpath_var=LD_LIBRARY_PATH
10935     shlibpath_overrides_runpath=no
10936     hardcode_into_libs=yes
10937     ;;
10938    
10939     irix5* | irix6* | nonstopux*)
10940     case $host_os in
10941     nonstopux*) version_type=nonstopux ;;
10942     *)
10943 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10944     version_type=linux # correct to gnu/linux during the next big refactor
10945 michael 5052 else
10946     version_type=irix
10947     fi ;;
10948     esac
10949     need_lib_prefix=no
10950     need_version=no
10951 michael 5059 soname_spec='$libname$release$shared_ext$major'
10952     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10953 michael 5052 case $host_os in
10954     irix5* | nonstopux*)
10955     libsuff= shlibsuff=
10956     ;;
10957     *)
10958     case $LD in # libtool.m4 will add one of these switches to LD
10959     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10960     libsuff= shlibsuff= libmagic=32-bit;;
10961     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10962     libsuff=32 shlibsuff=N32 libmagic=N32;;
10963     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10964     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10965     *) libsuff= shlibsuff= libmagic=never-match;;
10966     esac
10967     ;;
10968     esac
10969     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10970     shlibpath_overrides_runpath=no
10971 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10972     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10973 michael 5052 hardcode_into_libs=yes
10974     ;;
10975    
10976     # No shared lib support for Linux oldld, aout, or coff.
10977     linux*oldld* | linux*aout* | linux*coff*)
10978     dynamic_linker=no
10979     ;;
10980    
10981 michael 5059 linux*android*)
10982     version_type=none # Android doesn't support versioned libraries.
10983 michael 5052 need_lib_prefix=no
10984     need_version=no
10985 michael 5059 library_names_spec='$libname$release$shared_ext'
10986     soname_spec='$libname$release$shared_ext'
10987     finish_cmds=
10988     shlibpath_var=LD_LIBRARY_PATH
10989     shlibpath_overrides_runpath=yes
10990    
10991     # This implies no fast_install, which is unacceptable.
10992     # Some rework will be needed to allow for fast_install
10993     # before this can be enabled.
10994     hardcode_into_libs=yes
10995    
10996     dynamic_linker='Android linker'
10997     # Don't embed -rpath directories since the linker doesn't support them.
10998     hardcode_libdir_flag_spec='-L$libdir'
10999     ;;
11000    
11001     # This must be glibc/ELF.
11002     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11003     version_type=linux # correct to gnu/linux during the next big refactor
11004     need_lib_prefix=no
11005     need_version=no
11006     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11007     soname_spec='$libname$release$shared_ext$major'
11008 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11009     shlibpath_var=LD_LIBRARY_PATH
11010     shlibpath_overrides_runpath=no
11011 michael 5059
11012     # Some binutils ld are patched to set DT_RUNPATH
11013     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11014     $as_echo_n "(cached) " >&6
11015     else
11016     lt_cv_shlibpath_overrides_runpath=no
11017     save_LDFLAGS=$LDFLAGS
11018     save_libdir=$libdir
11019     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11020     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022     /* end confdefs.h. */
11023    
11024     int
11025     main ()
11026     {
11027    
11028     ;
11029     return 0;
11030     }
11031     _ACEOF
11032     if ac_fn_c_try_link "$LINENO"; then :
11033     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11034     lt_cv_shlibpath_overrides_runpath=yes
11035     fi
11036     fi
11037     rm -f core conftest.err conftest.$ac_objext \
11038     conftest$ac_exeext conftest.$ac_ext
11039     LDFLAGS=$save_LDFLAGS
11040     libdir=$save_libdir
11041    
11042     fi
11043    
11044     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11045    
11046 michael 5052 # This implies no fast_install, which is unacceptable.
11047     # Some rework will be needed to allow for fast_install
11048     # before this can be enabled.
11049     hardcode_into_libs=yes
11050    
11051 michael 5433 # Ideally, we could use ldconfig to report *all* directores which are
11052     # searched for libraries, however this is still not possible. Aside from not
11053     # being certain /sbin/ldconfig is available, command
11054     # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11055     # even though it is searched at run-time. Try to do the best guess by
11056     # appending ld.so.conf contents (and includes) to the search path.
11057 michael 5052 if test -f /etc/ld.so.conf; then
11058 michael 5059 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11059 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11060     fi
11061    
11062     # We used to test for /lib/ld.so.1 and disable shared libraries on
11063     # powerpc, because MkLinux only supported shared libraries with the
11064     # GNU dynamic linker. Since this was broken with cross compilers,
11065     # most powerpc-linux boxes support dynamic linking these days and
11066     # people can always --disable-shared, the test was removed, and we
11067     # assume the GNU/Linux dynamic linker is in use.
11068     dynamic_linker='GNU/Linux ld.so'
11069     ;;
11070    
11071     netbsd*)
11072     version_type=sunos
11073     need_lib_prefix=no
11074     need_version=no
11075 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11076     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11077 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11078     dynamic_linker='NetBSD (a.out) ld.so'
11079     else
11080 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11081     soname_spec='$libname$release$shared_ext$major'
11082 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11083     fi
11084     shlibpath_var=LD_LIBRARY_PATH
11085     shlibpath_overrides_runpath=yes
11086     hardcode_into_libs=yes
11087     ;;
11088    
11089     newsos6)
11090 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11091     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11093     shlibpath_overrides_runpath=yes
11094     ;;
11095    
11096 michael 5059 *nto* | *qnx*)
11097     version_type=qnx
11098 michael 5052 need_lib_prefix=no
11099     need_version=no
11100 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101     soname_spec='$libname$release$shared_ext$major'
11102 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11103 michael 5059 shlibpath_overrides_runpath=no
11104     hardcode_into_libs=yes
11105     dynamic_linker='ldqnx.so'
11106 michael 5052 ;;
11107    
11108 michael 5059 openbsd* | bitrig*)
11109 michael 5052 version_type=sunos
11110 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11111 michael 5052 need_lib_prefix=no
11112 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11113     need_version=no
11114     else
11115     need_version=yes
11116     fi
11117     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11118 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11119     shlibpath_var=LD_LIBRARY_PATH
11120 michael 5059 shlibpath_overrides_runpath=yes
11121 michael 5052 ;;
11122    
11123     os2*)
11124     libname_spec='$name'
11125 michael 5059 version_type=windows
11126     shrext_cmds=.dll
11127     need_version=no
11128 michael 5052 need_lib_prefix=no
11129 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11130     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11131     v=$($ECHO $release$versuffix | tr -d .-);
11132     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11133     $ECHO $n$v`$shared_ext'
11134     library_names_spec='${libname}_dll.$libext'
11135 michael 5052 dynamic_linker='OS/2 ld.exe'
11136 michael 5059 shlibpath_var=BEGINLIBPATH
11137     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11138     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11139     postinstall_cmds='base_file=`basename \$file`~
11140     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11141     dldir=$destdir/`dirname \$dlpath`~
11142     test -d \$dldir || mkdir -p \$dldir~
11143     $install_prog $dir/$dlname \$dldir/$dlname~
11144     chmod a+x \$dldir/$dlname~
11145     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11146     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11147     fi'
11148     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11149     dlpath=$dir/\$dldll~
11150     $RM \$dlpath'
11151 michael 5052 ;;
11152    
11153     osf3* | osf4* | osf5*)
11154     version_type=osf
11155     need_lib_prefix=no
11156     need_version=no
11157 michael 5059 soname_spec='$libname$release$shared_ext$major'
11158     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11160     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11161 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11162 michael 5052 ;;
11163    
11164 michael 5059 rdos*)
11165     dynamic_linker=no
11166     ;;
11167    
11168 michael 5052 solaris*)
11169 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11170 michael 5052 need_lib_prefix=no
11171     need_version=no
11172 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11173     soname_spec='$libname$release$shared_ext$major'
11174 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11175     shlibpath_overrides_runpath=yes
11176     hardcode_into_libs=yes
11177     # ldd complains unless libraries are executable
11178     postinstall_cmds='chmod +x $lib'
11179     ;;
11180    
11181     sunos4*)
11182     version_type=sunos
11183 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11184 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11185     shlibpath_var=LD_LIBRARY_PATH
11186     shlibpath_overrides_runpath=yes
11187 michael 5059 if test yes = "$with_gnu_ld"; then
11188 michael 5052 need_lib_prefix=no
11189     fi
11190     need_version=yes
11191     ;;
11192    
11193     sysv4 | sysv4.3*)
11194 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11195     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196     soname_spec='$libname$release$shared_ext$major'
11197 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11198     case $host_vendor in
11199     sni)
11200     shlibpath_overrides_runpath=no
11201     need_lib_prefix=no
11202     runpath_var=LD_RUN_PATH
11203     ;;
11204     siemens)
11205     need_lib_prefix=no
11206     ;;
11207     motorola)
11208     need_lib_prefix=no
11209     need_version=no
11210     shlibpath_overrides_runpath=no
11211     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11212     ;;
11213     esac
11214     ;;
11215    
11216     sysv4*MP*)
11217 michael 5059 if test -d /usr/nec; then
11218     version_type=linux # correct to gnu/linux during the next big refactor
11219     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11220     soname_spec='$libname$shared_ext.$major'
11221 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11222     fi
11223     ;;
11224    
11225     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11226 michael 5059 version_type=sco
11227 michael 5052 need_lib_prefix=no
11228     need_version=no
11229 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11230     soname_spec='$libname$release$shared_ext$major'
11231 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11232 michael 5059 shlibpath_overrides_runpath=yes
11233 michael 5052 hardcode_into_libs=yes
11234 michael 5059 if test yes = "$with_gnu_ld"; then
11235 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11236     else
11237     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11238     case $host_os in
11239     sco3.2v5*)
11240     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11241     ;;
11242     esac
11243     fi
11244     sys_lib_dlsearch_path_spec='/usr/lib'
11245     ;;
11246    
11247 michael 5059 tpf*)
11248     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11249     version_type=linux # correct to gnu/linux during the next big refactor
11250     need_lib_prefix=no
11251     need_version=no
11252     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11253     shlibpath_var=LD_LIBRARY_PATH
11254     shlibpath_overrides_runpath=no
11255     hardcode_into_libs=yes
11256     ;;
11257    
11258 michael 5052 uts4*)
11259 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11260     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11261     soname_spec='$libname$release$shared_ext$major'
11262 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11263     ;;
11264    
11265     *)
11266     dynamic_linker=no
11267     ;;
11268     esac
11269 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11270     $as_echo "$dynamic_linker" >&6; }
11271     test no = "$dynamic_linker" && can_build_shared=no
11272 michael 5052
11273     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11274 michael 5059 if test yes = "$GCC"; then
11275 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11276     fi
11277    
11278 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11279     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11280     fi
11281 michael 5433
11282 michael 5059 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11283     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11284     fi
11285    
11286 michael 5860 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11287     configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11288 michael 5059
11289 michael 5860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11290 michael 5433 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11291 michael 5059
11292 michael 5860 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11293     configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11294 michael 5059
11295    
11296    
11297    
11298    
11299    
11300    
11301    
11302    
11303    
11304    
11305    
11306    
11307    
11308    
11309    
11310    
11311    
11312    
11313    
11314    
11315    
11316    
11317    
11318    
11319    
11320    
11321    
11322    
11323    
11324    
11325    
11326    
11327    
11328    
11329    
11330    
11331    
11332    
11333    
11334    
11335    
11336    
11337    
11338    
11339    
11340    
11341    
11342    
11343    
11344    
11345    
11346    
11347    
11348    
11349    
11350    
11351    
11352    
11353    
11354    
11355    
11356    
11357    
11358    
11359    
11360    
11361    
11362    
11363    
11364    
11365    
11366    
11367    
11368    
11369    
11370    
11371    
11372    
11373    
11374    
11375    
11376    
11377    
11378    
11379    
11380    
11381    
11382    
11383 michael 5433
11384    
11385 michael 5860
11386    
11387    
11388    
11389    
11390    
11391 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11392     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11393 michael 5052 hardcode_action=
11394 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11395     test -n "$runpath_var" ||
11396     test yes = "$hardcode_automatic"; then
11397 michael 5052
11398 michael 5059 # We can hardcode non-existent directories.
11399     if test no != "$hardcode_direct" &&
11400 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11401     # have to relink, otherwise we might link with an installed library
11402     # when we should be linking with a yet-to-be-installed one
11403 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11404     test no != "$hardcode_minus_L"; then
11405 michael 5052 # Linking always hardcodes the temporary library directory.
11406     hardcode_action=relink
11407     else
11408     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11409     hardcode_action=immediate
11410     fi
11411     else
11412     # We cannot hardcode anything, or else we can only hardcode existing
11413     # directories.
11414     hardcode_action=unsupported
11415     fi
11416 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11417     $as_echo "$hardcode_action" >&6; }
11418 michael 5052
11419 michael 5059 if test relink = "$hardcode_action" ||
11420     test yes = "$inherit_rpath"; then
11421 michael 5052 # Fast installation is not supported
11422     enable_fast_install=no
11423 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11424     test no = "$enable_shared"; then
11425 michael 5052 # Fast installation is not necessary
11426     enable_fast_install=needless
11427     fi
11428    
11429    
11430 michael 5059
11431    
11432    
11433    
11434     if test yes != "$enable_dlopen"; then
11435 michael 5052 enable_dlopen=unknown
11436     enable_dlopen_self=unknown
11437     enable_dlopen_self_static=unknown
11438     else
11439     lt_cv_dlopen=no
11440     lt_cv_dlopen_libs=
11441    
11442     case $host_os in
11443     beos*)
11444 michael 5059 lt_cv_dlopen=load_add_on
11445 michael 5052 lt_cv_dlopen_libs=
11446     lt_cv_dlopen_self=yes
11447     ;;
11448    
11449 michael 5059 mingw* | pw32* | cegcc*)
11450     lt_cv_dlopen=LoadLibrary
11451 michael 5052 lt_cv_dlopen_libs=
11452 michael 5059 ;;
11453 michael 5052
11454     cygwin*)
11455 michael 5059 lt_cv_dlopen=dlopen
11456 michael 5052 lt_cv_dlopen_libs=
11457 michael 5059 ;;
11458 michael 5052
11459     darwin*)
11460 michael 5059 # if libdl is installed we need to link against it
11461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11462     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11463     if ${ac_cv_lib_dl_dlopen+:} false; then :
11464     $as_echo_n "(cached) " >&6
11465 michael 5052 else
11466     ac_check_lib_save_LIBS=$LIBS
11467     LIBS="-ldl $LIBS"
11468 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 michael 5052 /* end confdefs.h. */
11470    
11471     /* Override any GCC internal prototype to avoid an error.
11472     Use char because int might match the return type of a GCC
11473     builtin and then its argument prototype would still apply. */
11474     #ifdef __cplusplus
11475     extern "C"
11476     #endif
11477     char dlopen ();
11478     int
11479     main ()
11480     {
11481     return dlopen ();
11482     ;
11483     return 0;
11484     }
11485     _ACEOF
11486 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11487 michael 5052 ac_cv_lib_dl_dlopen=yes
11488     else
11489 michael 5059 ac_cv_lib_dl_dlopen=no
11490 michael 5052 fi
11491     rm -f core conftest.err conftest.$ac_objext \
11492 michael 5059 conftest$ac_exeext conftest.$ac_ext
11493 michael 5052 LIBS=$ac_check_lib_save_LIBS
11494     fi
11495 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11497     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11498     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11499 michael 5052 else
11500    
11501 michael 5059 lt_cv_dlopen=dyld
11502 michael 5052 lt_cv_dlopen_libs=
11503     lt_cv_dlopen_self=yes
11504    
11505     fi
11506    
11507 michael 5059 ;;
11508 michael 5052
11509 michael 5059 tpf*)
11510     # Don't try to run any link tests for TPF. We know it's impossible
11511     # because TPF is a cross-compiler, and we know how we open DSOs.
11512     lt_cv_dlopen=dlopen
11513     lt_cv_dlopen_libs=
11514     lt_cv_dlopen_self=no
11515     ;;
11516    
11517 michael 5052 *)
11518 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11519     if test "x$ac_cv_func_shl_load" = xyes; then :
11520     lt_cv_dlopen=shl_load
11521 michael 5052 else
11522 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11523     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11524     if ${ac_cv_lib_dld_shl_load+:} false; then :
11525     $as_echo_n "(cached) " >&6
11526 michael 5052 else
11527     ac_check_lib_save_LIBS=$LIBS
11528     LIBS="-ldld $LIBS"
11529 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 michael 5052 /* end confdefs.h. */
11531    
11532     /* Override any GCC internal prototype to avoid an error.
11533     Use char because int might match the return type of a GCC
11534     builtin and then its argument prototype would still apply. */
11535     #ifdef __cplusplus
11536     extern "C"
11537     #endif
11538     char shl_load ();
11539     int
11540     main ()
11541     {
11542     return shl_load ();
11543     ;
11544     return 0;
11545     }
11546     _ACEOF
11547 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11548 michael 5052 ac_cv_lib_dld_shl_load=yes
11549     else
11550 michael 5059 ac_cv_lib_dld_shl_load=no
11551 michael 5052 fi
11552     rm -f core conftest.err conftest.$ac_objext \
11553 michael 5059 conftest$ac_exeext conftest.$ac_ext
11554 michael 5052 LIBS=$ac_check_lib_save_LIBS
11555     fi
11556 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11557     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11558     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11559     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11560 michael 5052 else
11561 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11562     if test "x$ac_cv_func_dlopen" = xyes; then :
11563     lt_cv_dlopen=dlopen
11564 michael 5052 else
11565 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11566     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11567     if ${ac_cv_lib_dl_dlopen+:} false; then :
11568     $as_echo_n "(cached) " >&6
11569 michael 5052 else
11570     ac_check_lib_save_LIBS=$LIBS
11571     LIBS="-ldl $LIBS"
11572 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 michael 5052 /* end confdefs.h. */
11574    
11575     /* Override any GCC internal prototype to avoid an error.
11576     Use char because int might match the return type of a GCC
11577     builtin and then its argument prototype would still apply. */
11578     #ifdef __cplusplus
11579     extern "C"
11580     #endif
11581     char dlopen ();
11582     int
11583     main ()
11584     {
11585     return dlopen ();
11586     ;
11587     return 0;
11588     }
11589     _ACEOF
11590 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11591 michael 5052 ac_cv_lib_dl_dlopen=yes
11592     else
11593 michael 5059 ac_cv_lib_dl_dlopen=no
11594 michael 5052 fi
11595     rm -f core conftest.err conftest.$ac_objext \
11596 michael 5059 conftest$ac_exeext conftest.$ac_ext
11597 michael 5052 LIBS=$ac_check_lib_save_LIBS
11598     fi
11599 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11600     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11601     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11602     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11603 michael 5052 else
11604 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11605     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11606     if ${ac_cv_lib_svld_dlopen+:} false; then :
11607     $as_echo_n "(cached) " >&6
11608 michael 5052 else
11609     ac_check_lib_save_LIBS=$LIBS
11610     LIBS="-lsvld $LIBS"
11611 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 michael 5052 /* end confdefs.h. */
11613    
11614     /* Override any GCC internal prototype to avoid an error.
11615     Use char because int might match the return type of a GCC
11616     builtin and then its argument prototype would still apply. */
11617     #ifdef __cplusplus
11618     extern "C"
11619     #endif
11620     char dlopen ();
11621     int
11622     main ()
11623     {
11624     return dlopen ();
11625     ;
11626     return 0;
11627     }
11628     _ACEOF
11629 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11630 michael 5052 ac_cv_lib_svld_dlopen=yes
11631     else
11632 michael 5059 ac_cv_lib_svld_dlopen=no
11633 michael 5052 fi
11634     rm -f core conftest.err conftest.$ac_objext \
11635 michael 5059 conftest$ac_exeext conftest.$ac_ext
11636 michael 5052 LIBS=$ac_check_lib_save_LIBS
11637     fi
11638 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11639     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11640     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11641     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11642 michael 5052 else
11643 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11644     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11645     if ${ac_cv_lib_dld_dld_link+:} false; then :
11646     $as_echo_n "(cached) " >&6
11647 michael 5052 else
11648     ac_check_lib_save_LIBS=$LIBS
11649     LIBS="-ldld $LIBS"
11650 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651 michael 5052 /* end confdefs.h. */
11652    
11653     /* Override any GCC internal prototype to avoid an error.
11654     Use char because int might match the return type of a GCC
11655     builtin and then its argument prototype would still apply. */
11656     #ifdef __cplusplus
11657     extern "C"
11658     #endif
11659     char dld_link ();
11660     int
11661     main ()
11662     {
11663     return dld_link ();
11664     ;
11665     return 0;
11666     }
11667     _ACEOF
11668 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11669 michael 5052 ac_cv_lib_dld_dld_link=yes
11670     else
11671 michael 5059 ac_cv_lib_dld_dld_link=no
11672 michael 5052 fi
11673     rm -f core conftest.err conftest.$ac_objext \
11674 michael 5059 conftest$ac_exeext conftest.$ac_ext
11675 michael 5052 LIBS=$ac_check_lib_save_LIBS
11676     fi
11677 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11678     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11679     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11680     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11681 michael 5052 fi
11682    
11683    
11684     fi
11685    
11686    
11687     fi
11688    
11689    
11690     fi
11691    
11692    
11693     fi
11694    
11695    
11696     fi
11697    
11698     ;;
11699     esac
11700    
11701 michael 5059 if test no = "$lt_cv_dlopen"; then
11702     enable_dlopen=no
11703     else
11704 michael 5052 enable_dlopen=yes
11705     fi
11706    
11707     case $lt_cv_dlopen in
11708     dlopen)
11709 michael 5059 save_CPPFLAGS=$CPPFLAGS
11710     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711 michael 5052
11712 michael 5059 save_LDFLAGS=$LDFLAGS
11713 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11714    
11715 michael 5059 save_LIBS=$LIBS
11716 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11717    
11718 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11719     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11720     if ${lt_cv_dlopen_self+:} false; then :
11721     $as_echo_n "(cached) " >&6
11722 michael 5052 else
11723 michael 5059 if test yes = "$cross_compiling"; then :
11724 michael 5052 lt_cv_dlopen_self=cross
11725     else
11726     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727     lt_status=$lt_dlunknown
11728 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11729     #line $LINENO "configure"
11730 michael 5052 #include "confdefs.h"
11731    
11732     #if HAVE_DLFCN_H
11733     #include <dlfcn.h>
11734     #endif
11735    
11736     #include <stdio.h>
11737    
11738     #ifdef RTLD_GLOBAL
11739     # define LT_DLGLOBAL RTLD_GLOBAL
11740     #else
11741     # ifdef DL_GLOBAL
11742     # define LT_DLGLOBAL DL_GLOBAL
11743     # else
11744     # define LT_DLGLOBAL 0
11745     # endif
11746     #endif
11747    
11748     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749     find out it does not work in some platform. */
11750     #ifndef LT_DLLAZY_OR_NOW
11751     # ifdef RTLD_LAZY
11752     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11753     # else
11754     # ifdef DL_LAZY
11755     # define LT_DLLAZY_OR_NOW DL_LAZY
11756     # else
11757     # ifdef RTLD_NOW
11758     # define LT_DLLAZY_OR_NOW RTLD_NOW
11759     # else
11760     # ifdef DL_NOW
11761     # define LT_DLLAZY_OR_NOW DL_NOW
11762     # else
11763     # define LT_DLLAZY_OR_NOW 0
11764     # endif
11765     # endif
11766     # endif
11767     # endif
11768     #endif
11769    
11770 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11771     correspondingly for the symbols needed. */
11772     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11773     int fnord () __attribute__((visibility("default")));
11774 michael 5052 #endif
11775    
11776 michael 5059 int fnord () { return 42; }
11777 michael 5052 int main ()
11778     {
11779     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11780     int status = $lt_dlunknown;
11781    
11782     if (self)
11783     {
11784     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11785 michael 5059 else
11786     {
11787     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11788     else puts (dlerror ());
11789     }
11790 michael 5052 /* dlclose (self); */
11791     }
11792     else
11793     puts (dlerror ());
11794    
11795 michael 5059 return status;
11796 michael 5052 }
11797 michael 5059 _LT_EOF
11798     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11799 michael 5052 (eval $ac_link) 2>&5
11800     ac_status=$?
11801 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11802     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11803 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11804     lt_status=$?
11805     case x$lt_status in
11806     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11807     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11808     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11809     esac
11810     else :
11811     # compilation failed
11812     lt_cv_dlopen_self=no
11813     fi
11814     fi
11815     rm -fr conftest*
11816    
11817    
11818     fi
11819 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11820     $as_echo "$lt_cv_dlopen_self" >&6; }
11821 michael 5052
11822 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11823 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11824 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11825     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11826     if ${lt_cv_dlopen_self_static+:} false; then :
11827     $as_echo_n "(cached) " >&6
11828 michael 5052 else
11829 michael 5059 if test yes = "$cross_compiling"; then :
11830 michael 5052 lt_cv_dlopen_self_static=cross
11831     else
11832     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11833     lt_status=$lt_dlunknown
11834 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11835     #line $LINENO "configure"
11836 michael 5052 #include "confdefs.h"
11837    
11838     #if HAVE_DLFCN_H
11839     #include <dlfcn.h>
11840     #endif
11841    
11842     #include <stdio.h>
11843    
11844     #ifdef RTLD_GLOBAL
11845     # define LT_DLGLOBAL RTLD_GLOBAL
11846     #else
11847     # ifdef DL_GLOBAL
11848     # define LT_DLGLOBAL DL_GLOBAL
11849     # else
11850     # define LT_DLGLOBAL 0
11851     # endif
11852     #endif
11853    
11854     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11855     find out it does not work in some platform. */
11856     #ifndef LT_DLLAZY_OR_NOW
11857     # ifdef RTLD_LAZY
11858     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11859     # else
11860     # ifdef DL_LAZY
11861     # define LT_DLLAZY_OR_NOW DL_LAZY
11862     # else
11863     # ifdef RTLD_NOW
11864     # define LT_DLLAZY_OR_NOW RTLD_NOW
11865     # else
11866     # ifdef DL_NOW
11867     # define LT_DLLAZY_OR_NOW DL_NOW
11868     # else
11869     # define LT_DLLAZY_OR_NOW 0
11870     # endif
11871     # endif
11872     # endif
11873     # endif
11874     #endif
11875    
11876 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11877     correspondingly for the symbols needed. */
11878     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11879     int fnord () __attribute__((visibility("default")));
11880 michael 5052 #endif
11881    
11882 michael 5059 int fnord () { return 42; }
11883 michael 5052 int main ()
11884     {
11885     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11886     int status = $lt_dlunknown;
11887    
11888     if (self)
11889     {
11890     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11891 michael 5059 else
11892     {
11893     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11894     else puts (dlerror ());
11895     }
11896 michael 5052 /* dlclose (self); */
11897     }
11898     else
11899     puts (dlerror ());
11900    
11901 michael 5059 return status;
11902 michael 5052 }
11903 michael 5059 _LT_EOF
11904     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11905 michael 5052 (eval $ac_link) 2>&5
11906     ac_status=$?
11907 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11909 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11910     lt_status=$?
11911     case x$lt_status in
11912     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11913     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11914     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11915     esac
11916     else :
11917     # compilation failed
11918     lt_cv_dlopen_self_static=no
11919     fi
11920     fi
11921     rm -fr conftest*
11922    
11923    
11924     fi
11925 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11926     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11927 michael 5052 fi
11928    
11929 michael 5059 CPPFLAGS=$save_CPPFLAGS
11930     LDFLAGS=$save_LDFLAGS
11931     LIBS=$save_LIBS
11932 michael 5052 ;;
11933     esac
11934    
11935     case $lt_cv_dlopen_self in
11936     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11937     *) enable_dlopen_self=unknown ;;
11938     esac
11939    
11940     case $lt_cv_dlopen_self_static in
11941     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11942     *) enable_dlopen_self_static=unknown ;;
11943     esac
11944     fi
11945    
11946    
11947    
11948    
11949    
11950    
11951    
11952    
11953    
11954    
11955    
11956    
11957    
11958    
11959    
11960    
11961    
11962 michael 5059 striplib=
11963     old_striplib=
11964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11965     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11966     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11967     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11968     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970     $as_echo "yes" >&6; }
11971 michael 5052 else
11972 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11973 michael 5052 case $host_os in
11974 michael 5059 darwin*)
11975     if test -n "$STRIP"; then
11976     striplib="$STRIP -x"
11977     old_striplib="$STRIP -S"
11978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979     $as_echo "yes" >&6; }
11980 michael 5052 else
11981 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982     $as_echo "no" >&6; }
11983 michael 5052 fi
11984     ;;
11985     *)
11986 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987     $as_echo "no" >&6; }
11988 michael 5052 ;;
11989     esac
11990     fi
11991    
11992    
11993    
11994    
11995    
11996    
11997    
11998    
11999    
12000    
12001    
12002    
12003 michael 5059 # Report what library types will actually be built
12004     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12005     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12007     $as_echo "$can_build_shared" >&6; }
12008 michael 5052
12009 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12010     $as_echo_n "checking whether to build shared libraries... " >&6; }
12011     test no = "$can_build_shared" && enable_shared=no
12012 michael 5052
12013 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12014     # are all built from PIC.
12015 michael 5052 case $host_os in
12016 michael 5059 aix3*)
12017     test yes = "$enable_shared" && enable_static=no
12018     if test -n "$RANLIB"; then
12019     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12020     postinstall_cmds='$RANLIB $lib'
12021 michael 5052 fi
12022     ;;
12023    
12024 michael 5059 aix[4-9]*)
12025     if test ia64 != "$host_cpu"; then
12026     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12027     yes,aix,yes) ;; # shared object as lib.so file only
12028     yes,svr4,*) ;; # shared object as lib.so archive member only
12029     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12030 michael 5052 esac
12031     fi
12032     ;;
12033     esac
12034 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12035     $as_echo "$enable_shared" >&6; }
12036 michael 5052
12037 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12038     $as_echo_n "checking whether to build static libraries... " >&6; }
12039     # Make sure either enable_shared or enable_static is yes.
12040     test yes = "$enable_shared" || enable_static=yes
12041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12042     $as_echo "$enable_static" >&6; }
12043 michael 5052
12044    
12045    
12046    
12047     fi
12048     ac_ext=c
12049     ac_cpp='$CPP $CPPFLAGS'
12050     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12051     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12052     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12053    
12054 michael 5059 CC=$lt_save_CC
12055 michael 5052
12056    
12057    
12058    
12059    
12060    
12061    
12062    
12063    
12064    
12065    
12066    
12067    
12068    
12069    
12070 michael 5059 ac_config_commands="$ac_config_commands libtool"
12071 michael 5052
12072    
12073    
12074    
12075 michael 5059 # Only expand once:
12076 michael 5052
12077    
12078    
12079    
12080     for ac_prog in 'bison -y' byacc
12081     do
12082     # Extract the first word of "$ac_prog", so it can be a program name with args.
12083     set dummy $ac_prog; ac_word=$2
12084 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085     $as_echo_n "checking for $ac_word... " >&6; }
12086     if ${ac_cv_prog_YACC+:} false; then :
12087     $as_echo_n "(cached) " >&6
12088 michael 5052 else
12089     if test -n "$YACC"; then
12090     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12091     else
12092     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093     for as_dir in $PATH
12094     do
12095     IFS=$as_save_IFS
12096     test -z "$as_dir" && as_dir=.
12097 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12098     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 michael 5052 ac_cv_prog_YACC="$ac_prog"
12100 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 michael 5052 break 2
12102     fi
12103     done
12104 michael 5059 done
12105 michael 5052 IFS=$as_save_IFS
12106    
12107     fi
12108     fi
12109     YACC=$ac_cv_prog_YACC
12110     if test -n "$YACC"; then
12111 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12112     $as_echo "$YACC" >&6; }
12113 michael 5052 else
12114 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115     $as_echo "no" >&6; }
12116 michael 5052 fi
12117    
12118    
12119     test -n "$YACC" && break
12120     done
12121     test -n "$YACC" || YACC="yacc"
12122    
12123    
12124     for ac_prog in flex lex
12125     do
12126     # Extract the first word of "$ac_prog", so it can be a program name with args.
12127     set dummy $ac_prog; ac_word=$2
12128 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129     $as_echo_n "checking for $ac_word... " >&6; }
12130     if ${ac_cv_prog_LEX+:} false; then :
12131     $as_echo_n "(cached) " >&6
12132 michael 5052 else
12133     if test -n "$LEX"; then
12134     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12135     else
12136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137     for as_dir in $PATH
12138     do
12139     IFS=$as_save_IFS
12140     test -z "$as_dir" && as_dir=.
12141 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12142     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 michael 5052 ac_cv_prog_LEX="$ac_prog"
12144 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 michael 5052 break 2
12146     fi
12147     done
12148 michael 5059 done
12149 michael 5052 IFS=$as_save_IFS
12150    
12151     fi
12152     fi
12153     LEX=$ac_cv_prog_LEX
12154     if test -n "$LEX"; then
12155 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12156     $as_echo "$LEX" >&6; }
12157 michael 5052 else
12158 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159     $as_echo "no" >&6; }
12160 michael 5052 fi
12161    
12162    
12163     test -n "$LEX" && break
12164     done
12165     test -n "$LEX" || LEX=":"
12166    
12167 michael 5059 if test "x$LEX" != "x:"; then
12168     cat >conftest.l <<_ACEOF
12169     %%
12170     a { ECHO; }
12171     b { REJECT; }
12172     c { yymore (); }
12173     d { yyless (1); }
12174     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12175     yyless ((input () != 0)); }
12176     f { unput (yytext[0]); }
12177     . { BEGIN INITIAL; }
12178     %%
12179     #ifdef YYTEXT_POINTER
12180     extern char *yytext;
12181 michael 5052 #endif
12182     int
12183 michael 5059 main (void)
12184 michael 5052 {
12185 michael 5059 return ! yylex () + ! yywrap ();
12186 michael 5052 }
12187     _ACEOF
12188 michael 5059 { { ac_try="$LEX conftest.l"
12189 michael 5052 case "(($ac_try" in
12190     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191     *) ac_try_echo=$ac_try;;
12192     esac
12193 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12194     $as_echo "$ac_try_echo"; } >&5
12195     (eval "$LEX conftest.l") 2>&5
12196 michael 5052 ac_status=$?
12197 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12198     test $ac_status = 0; }
12199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12200     $as_echo_n "checking lex output file root... " >&6; }
12201     if ${ac_cv_prog_lex_root+:} false; then :
12202     $as_echo_n "(cached) " >&6
12203 michael 5052 else
12204    
12205 michael 5059 if test -f lex.yy.c; then
12206     ac_cv_prog_lex_root=lex.yy
12207     elif test -f lexyy.c; then
12208     ac_cv_prog_lex_root=lexyy
12209     else
12210     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12211 michael 5052 fi
12212 michael 5059 fi
12213     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12214     $as_echo "$ac_cv_prog_lex_root" >&6; }
12215     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12216 michael 5052
12217 michael 5059 if test -z "${LEXLIB+set}"; then
12218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12219     $as_echo_n "checking lex library... " >&6; }
12220     if ${ac_cv_lib_lex+:} false; then :
12221     $as_echo_n "(cached) " >&6
12222 michael 5052 else
12223 michael 5059
12224     ac_save_LIBS=$LIBS
12225     ac_cv_lib_lex='none needed'
12226     for ac_lib in '' -lfl -ll; do
12227     LIBS="$ac_lib $ac_save_LIBS"
12228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229 michael 5052 /* end confdefs.h. */
12230 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12231 michael 5052 _ACEOF
12232 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12233     ac_cv_lib_lex=$ac_lib
12234 michael 5052 fi
12235     rm -f core conftest.err conftest.$ac_objext \
12236 michael 5059 conftest$ac_exeext conftest.$ac_ext
12237     test "$ac_cv_lib_lex" != 'none needed' && break
12238     done
12239     LIBS=$ac_save_LIBS
12240 michael 5052
12241     fi
12242 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12243     $as_echo "$ac_cv_lib_lex" >&6; }
12244     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12245 michael 5052 fi
12246    
12247    
12248 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12249     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12250     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12251     $as_echo_n "(cached) " >&6
12252 michael 5052 else
12253     # POSIX says lex can declare yytext either as a pointer or an array; the
12254 michael 5059 # default is implementation-dependent. Figure out which it is, since
12255 michael 5052 # not all implementations provide the %pointer and %array declarations.
12256     ac_cv_prog_lex_yytext_pointer=no
12257     ac_save_LIBS=$LIBS
12258 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12259     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260     /* end confdefs.h. */
12261    
12262     #define YYTEXT_POINTER 1
12263 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12264     _ACEOF
12265 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12266 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12267     fi
12268     rm -f core conftest.err conftest.$ac_objext \
12269 michael 5059 conftest$ac_exeext conftest.$ac_ext
12270 michael 5052 LIBS=$ac_save_LIBS
12271    
12272     fi
12273 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12274     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12275 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12276    
12277 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12278 michael 5052
12279     fi
12280 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12281 michael 5052
12282     fi
12283     if test "$LEX" = :; then
12284     LEX=${am_missing_run}flex
12285     fi
12286    
12287 michael 6105
12288    
12289     if test "X$CC" != "X"; then
12290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12291     $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12292     if ${ssp_cv_cc+:} false; then :
12293 michael 5062 $as_echo_n "(cached) " >&6
12294     else
12295 michael 6105 ssp_old_cflags="$CFLAGS"
12296     CFLAGS="$CFLAGS -fstack-protector-strong"
12297     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 michael 5062 /* end confdefs.h. */
12299 michael 5052
12300 michael 5062 int
12301     main ()
12302     {
12303 michael 6105
12304 michael 5062 ;
12305     return 0;
12306     }
12307     _ACEOF
12308 michael 6105 if ac_fn_c_try_compile "$LINENO"; then :
12309     ssp_cv_cc=yes
12310     else
12311     ssp_cv_cc=no
12312 michael 5062 fi
12313 michael 6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314     CFLAGS="$ssp_old_cflags"
12315    
12316 michael 5062 fi
12317 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12318     $as_echo "$ssp_cv_cc" >&6; }
12319     if test $ssp_cv_cc = yes; then
12320     CFLAGS="$CFLAGS -fstack-protector-strong"
12321 michael 5062
12322 michael 6105 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12323    
12324     else
12325     unset ssp_cv_cc
12326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12327     $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12328     if ${ssp_cv_cc+:} false; then :
12329     $as_echo_n "(cached) " >&6
12330 michael 5062 else
12331 michael 6105 ssp_old_cflags="$CFLAGS"
12332     CFLAGS="$CFLAGS -fstack-protector"
12333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334     /* end confdefs.h. */
12335    
12336     int
12337     main ()
12338     {
12339    
12340     ;
12341     return 0;
12342     }
12343     _ACEOF
12344     if ac_fn_c_try_compile "$LINENO"; then :
12345     ssp_cv_cc=yes
12346     else
12347     ssp_cv_cc=no
12348 michael 5062 fi
12349 michael 6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350     CFLAGS="$ssp_old_cflags"
12351    
12352 michael 5062 fi
12353 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12354     $as_echo "$ssp_cv_cc" >&6; }
12355     if test $ssp_cv_cc = yes; then
12356     CFLAGS="$CFLAGS -fstack-protector"
12357 michael 5062
12358 michael 6105 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12359    
12360     fi
12361     fi
12362     fi
12363    
12364    
12365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12366     $as_echo_n "checking whether libssp exists... " >&6; }
12367     if ${ssp_cv_lib+:} false; then :
12368     $as_echo_n "(cached) " >&6
12369 michael 5062 else
12370 michael 6105 ssp_old_libs="$LIBS"
12371     LIBS="$LIBS -lssp"
12372     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373     /* end confdefs.h. */
12374    
12375     int
12376     main ()
12377     {
12378    
12379     ;
12380     return 0;
12381     }
12382     _ACEOF
12383     if ac_fn_c_try_link "$LINENO"; then :
12384     ssp_cv_lib=yes
12385     else
12386     ssp_cv_lib=no
12387 michael 5062 fi
12388 michael 6105 rm -f core conftest.err conftest.$ac_objext \
12389     conftest$ac_exeext conftest.$ac_ext
12390     LIBS="$ssp_old_libs"
12391 michael 5062
12392 michael 6105 fi
12393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12394     $as_echo "$ssp_cv_lib" >&6; }
12395     if test $ssp_cv_lib = yes; then
12396     LIBS="$LIBS -lssp"
12397     fi
12398    
12399    
12400    
12401     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12402 michael 5062 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12403    
12404     else
12405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12406     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12407     if ${ac_cv_search_getaddrinfo+:} false; then :
12408     $as_echo_n "(cached) " >&6
12409     else
12410     ac_func_search_save_LIBS=$LIBS
12411     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412     /* end confdefs.h. */
12413    
12414     /* Override any GCC internal prototype to avoid an error.
12415     Use char because int might match the return type of a GCC
12416     builtin and then its argument prototype would still apply. */
12417     #ifdef __cplusplus
12418     extern "C"
12419     #endif
12420     char getaddrinfo ();
12421     int
12422     main ()
12423     {
12424     return getaddrinfo ();
12425     ;
12426     return 0;
12427     }
12428     _ACEOF
12429     for ac_lib in '' nsl; do
12430     if test -z "$ac_lib"; then
12431     ac_res="none required"
12432     else
12433     ac_res=-l$ac_lib
12434     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12435     fi
12436     if ac_fn_c_try_link "$LINENO"; then :
12437     ac_cv_search_getaddrinfo=$ac_res
12438     fi
12439     rm -f core conftest.err conftest.$ac_objext \
12440     conftest$ac_exeext
12441     if ${ac_cv_search_getaddrinfo+:} false; then :
12442     break
12443     fi
12444     done
12445     if ${ac_cv_search_getaddrinfo+:} false; then :
12446    
12447     else
12448     ac_cv_search_getaddrinfo=no
12449     fi
12450     rm conftest.$ac_ext
12451     LIBS=$ac_func_search_save_LIBS
12452     fi
12453     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12454     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12455     ac_res=$ac_cv_search_getaddrinfo
12456     if test "$ac_res" != no; then :
12457     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12458    
12459     fi
12460    
12461     fi
12462    
12463 michael 6105 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12464 michael 5062 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12465    
12466     else
12467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12468     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12469     if ${ac_cv_search_getnameinfo+:} false; then :
12470     $as_echo_n "(cached) " >&6
12471     else
12472     ac_func_search_save_LIBS=$LIBS
12473     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474     /* end confdefs.h. */
12475    
12476     /* Override any GCC internal prototype to avoid an error.
12477     Use char because int might match the return type of a GCC
12478     builtin and then its argument prototype would still apply. */
12479     #ifdef __cplusplus
12480     extern "C"
12481     #endif
12482     char getnameinfo ();
12483     int
12484     main ()
12485     {
12486     return getnameinfo ();
12487     ;
12488     return 0;
12489     }
12490     _ACEOF
12491     for ac_lib in '' nsl; do
12492     if test -z "$ac_lib"; then
12493     ac_res="none required"
12494     else
12495     ac_res=-l$ac_lib
12496     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12497     fi
12498     if ac_fn_c_try_link "$LINENO"; then :
12499     ac_cv_search_getnameinfo=$ac_res
12500     fi
12501     rm -f core conftest.err conftest.$ac_objext \
12502     conftest$ac_exeext
12503     if ${ac_cv_search_getnameinfo+:} false; then :
12504     break
12505     fi
12506     done
12507     if ${ac_cv_search_getnameinfo+:} false; then :
12508    
12509     else
12510     ac_cv_search_getnameinfo=no
12511     fi
12512     rm conftest.$ac_ext
12513     LIBS=$ac_func_search_save_LIBS
12514     fi
12515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12516     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12517     ac_res=$ac_cv_search_getnameinfo
12518     if test "$ac_res" != no; then :
12519     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12520    
12521     fi
12522    
12523     fi
12524    
12525 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12526     $as_echo_n "checking for library containing socket... " >&6; }
12527     if ${ac_cv_search_socket+:} false; then :
12528     $as_echo_n "(cached) " >&6
12529     else
12530     ac_func_search_save_LIBS=$LIBS
12531     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532     /* end confdefs.h. */
12533 michael 5062
12534 michael 6105 /* Override any GCC internal prototype to avoid an error.
12535     Use char because int might match the return type of a GCC
12536     builtin and then its argument prototype would still apply. */
12537     #ifdef __cplusplus
12538     extern "C"
12539     #endif
12540     char socket ();
12541     int
12542     main ()
12543     {
12544     return socket ();
12545     ;
12546     return 0;
12547     }
12548     _ACEOF
12549     for ac_lib in '' socket; do
12550     if test -z "$ac_lib"; then
12551     ac_res="none required"
12552     else
12553     ac_res=-l$ac_lib
12554     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12555     fi
12556     if ac_fn_c_try_link "$LINENO"; then :
12557     ac_cv_search_socket=$ac_res
12558     fi
12559     rm -f core conftest.err conftest.$ac_objext \
12560     conftest$ac_exeext
12561     if ${ac_cv_search_socket+:} false; then :
12562     break
12563     fi
12564     done
12565     if ${ac_cv_search_socket+:} false; then :
12566    
12567     else
12568     ac_cv_search_socket=no
12569     fi
12570     rm conftest.$ac_ext
12571     LIBS=$ac_func_search_save_LIBS
12572     fi
12573     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12574     $as_echo "$ac_cv_search_socket" >&6; }
12575     ac_res=$ac_cv_search_socket
12576     if test "$ac_res" != no; then :
12577     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12578    
12579     else
12580     as_fn_error $? "socket library not found" "$LINENO" 5
12581     fi
12582    
12583    
12584    
12585 michael 6223 # Check whether --enable-openssl was given.
12586     if test "${enable_openssl+set}" = set; then :
12587     enableval=$enable_openssl; cf_enable_openssl=$enableval
12588     else
12589     cf_enable_openssl="auto"
12590     fi
12591    
12592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL/OpenSSL" >&5
12593     $as_echo_n "checking for LibreSSL/OpenSSL... " >&6; }
12594     if test "$cf_enable_openssl" != "no"; then
12595     cf_openssl_basedir=""
12596     if test "$cf_enable_openssl" != "auto" &&
12597     test "$cf_enable_openssl" != "yes"; then
12598     cf_openssl_basedir="${cf_enable_openssl}"
12599     else
12600     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12601     /opt /opt/openssl /usr/local/openssl; do
12602     if test -f "${dirs}/include/openssl/opensslv.h"; then
12603     cf_openssl_basedir="${dirs}"
12604     break
12605     fi
12606     done
12607     unset dirs
12608     fi
12609    
12610     if test ! -z "$cf_openssl_basedir"; then
12611     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12612     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12613     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12614     else
12615     cf_openssl_basedir=""
12616     fi
12617     else
12618     if test -f "/usr/include/openssl/opensslv.h"; then
12619     cf_openssl_basedir="/usr"
12620     fi
12621     fi
12622    
12623     if test ! -z "$cf_openssl_basedir"; then
12624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12625     $as_echo "$cf_openssl_basedir" >&6; }
12626     cf_enable_openssl="yes"
12627     else
12628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12629     $as_echo "not found. Please check your path." >&6; }
12630     cf_enable_openssl="no"
12631     fi
12632     unset cf_openssl_basedir
12633     else
12634     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12635     $as_echo "disabled" >&6; }
12636     fi
12637    
12638     if test "$cf_enable_openssl" != "no"; then :
12639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibreSSL or OpenSSL 0.9.8o and above" >&5
12640     $as_echo_n "checking for LibreSSL or OpenSSL 0.9.8o and above... " >&6; }
12641     if test "$cross_compiling" = yes; then :
12642     cf_openssl_version_ok=no
12643     else
12644     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645     /* end confdefs.h. */
12646    
12647    
12648     #include <openssl/opensslv.h>
12649     #include <stdlib.h>
12650     int
12651     main ()
12652     {
12653     exit(!(OPENSSL_VERSION_NUMBER >= 0x009080ffL));
12654     ;
12655     return 0;
12656     }
12657     _ACEOF
12658     if ac_fn_c_try_run "$LINENO"; then :
12659     cf_openssl_version_ok=yes
12660     else
12661     cf_openssl_version_ok=no
12662     fi
12663     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12664     conftest.$ac_objext conftest.beam conftest.$ac_ext
12665     fi
12666    
12667    
12668     if test "$cf_openssl_version_ok" = "yes"; then :
12669     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12670     $as_echo "found" >&6; }
12671    
12672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12673     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12674     if ${ac_cv_lib_crypto_RSA_free+:} false; then :
12675     $as_echo_n "(cached) " >&6
12676     else
12677     ac_check_lib_save_LIBS=$LIBS
12678     LIBS="-lcrypto $LIBS"
12679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680     /* end confdefs.h. */
12681    
12682     /* Override any GCC internal prototype to avoid an error.
12683     Use char because int might match the return type of a GCC
12684     builtin and then its argument prototype would still apply. */
12685     #ifdef __cplusplus
12686     extern "C"
12687     #endif
12688     char RSA_free ();
12689     int
12690     main ()
12691     {
12692     return RSA_free ();
12693     ;
12694     return 0;
12695     }
12696     _ACEOF
12697     if ac_fn_c_try_link "$LINENO"; then :
12698     ac_cv_lib_crypto_RSA_free=yes
12699     else
12700     ac_cv_lib_crypto_RSA_free=no
12701     fi
12702     rm -f core conftest.err conftest.$ac_objext \
12703     conftest$ac_exeext conftest.$ac_ext
12704     LIBS=$ac_check_lib_save_LIBS
12705     fi
12706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12707     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12708     if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
12709     cat >>confdefs.h <<_ACEOF
12710     #define HAVE_LIBCRYPTO 1
12711     _ACEOF
12712    
12713     LIBS="-lcrypto $LIBS"
12714    
12715     fi
12716    
12717     if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12718     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
12719     $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
12720     if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
12721     $as_echo_n "(cached) " >&6
12722     else
12723     ac_check_lib_save_LIBS=$LIBS
12724     LIBS="-lssl $LIBS"
12725     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12726     /* end confdefs.h. */
12727    
12728     /* Override any GCC internal prototype to avoid an error.
12729     Use char because int might match the return type of a GCC
12730     builtin and then its argument prototype would still apply. */
12731     #ifdef __cplusplus
12732     extern "C"
12733     #endif
12734     char SSL_connect ();
12735     int
12736     main ()
12737     {
12738     return SSL_connect ();
12739     ;
12740     return 0;
12741     }
12742     _ACEOF
12743     if ac_fn_c_try_link "$LINENO"; then :
12744     ac_cv_lib_ssl_SSL_connect=yes
12745     else
12746     ac_cv_lib_ssl_SSL_connect=no
12747     fi
12748     rm -f core conftest.err conftest.$ac_objext \
12749     conftest$ac_exeext conftest.$ac_ext
12750     LIBS=$ac_check_lib_save_LIBS
12751     fi
12752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
12753     $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
12754     if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
12755     cat >>confdefs.h <<_ACEOF
12756     #define HAVE_LIBSSL 1
12757     _ACEOF
12758    
12759     LIBS="-lssl $LIBS"
12760    
12761     fi
12762    
12763     fi
12764    
12765     else
12766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - LibreSSL/OpenSSL support disabled" >&5
12767     $as_echo "no - LibreSSL/OpenSSL support disabled" >&6; }
12768     cf_enable_openssl="no"
12769     fi
12770     fi
12771    
12772     if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
12773     ENABLE_SSL_TRUE=
12774     ENABLE_SSL_FALSE='#'
12775     else
12776     ENABLE_SSL_TRUE='#'
12777     ENABLE_SSL_FALSE=
12778     fi
12779    
12780    
12781    
12782 michael 6105 # Check whether --enable-assert was given.
12783     if test "${enable_assert+set}" = set; then :
12784     enableval=$enable_assert; assert=$enableval
12785     else
12786     assert=no
12787     fi
12788    
12789    
12790     if test "$assert" = "no"; then :
12791    
12792     $as_echo "#define NDEBUG 1" >>confdefs.h
12793    
12794     fi
12795    
12796    
12797 michael 6183 # Check whether --enable-warnings was given.
12798     if test "${enable_warnings+set}" = set; then :
12799     enableval=$enable_warnings; warnings="$enableval"
12800     else
12801     warnings="no"
12802     fi
12803    
12804    
12805     if test "$warnings" = "yes"; then :
12806    
12807    
12808    
12809    
12810    
12811     for flag in -Wall; do
12812     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12813     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12814     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12815     if eval \${$as_CACHEVAR+:} false; then :
12816     $as_echo_n "(cached) " >&6
12817     else
12818    
12819     ax_check_save_flags=$CFLAGS
12820     CFLAGS="$CFLAGS $flag"
12821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822     /* end confdefs.h. */
12823    
12824     int
12825     main ()
12826     {
12827    
12828     ;
12829     return 0;
12830     }
12831     _ACEOF
12832     if ac_fn_c_try_compile "$LINENO"; then :
12833     eval "$as_CACHEVAR=yes"
12834     else
12835     eval "$as_CACHEVAR=no"
12836     fi
12837     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838     CFLAGS=$ax_check_save_flags
12839     fi
12840     eval ac_res=\$$as_CACHEVAR
12841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12842     $as_echo "$ac_res" >&6; }
12843     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12844    
12845     if ${CFLAGS+:} false; then :
12846    
12847     case " $CFLAGS " in #(
12848     *" $flag "*) :
12849     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12850     (: CFLAGS already contains $flag) 2>&5
12851     ac_status=$?
12852     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12853     test $ac_status = 0; } ;; #(
12854     *) :
12855    
12856     as_fn_append CFLAGS " $flag"
12857     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12858     (: CFLAGS="$CFLAGS") 2>&5
12859     ac_status=$?
12860     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12861     test $ac_status = 0; }
12862     ;;
12863     esac
12864    
12865     else
12866    
12867     CFLAGS=$flag
12868     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12869     (: CFLAGS="$CFLAGS") 2>&5
12870     ac_status=$?
12871     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872     test $ac_status = 0; }
12873    
12874     fi
12875    
12876     else
12877     :
12878     fi
12879    
12880     done
12881    
12882    
12883    
12884    
12885    
12886     for flag in -Wbad-function-cast; do
12887     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12889     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12890     if eval \${$as_CACHEVAR+:} false; then :
12891     $as_echo_n "(cached) " >&6
12892     else
12893    
12894     ax_check_save_flags=$CFLAGS
12895     CFLAGS="$CFLAGS $flag"
12896     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897     /* end confdefs.h. */
12898    
12899     int
12900     main ()
12901     {
12902    
12903     ;
12904     return 0;
12905     }
12906     _ACEOF
12907     if ac_fn_c_try_compile "$LINENO"; then :
12908     eval "$as_CACHEVAR=yes"
12909     else
12910     eval "$as_CACHEVAR=no"
12911     fi
12912     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12913     CFLAGS=$ax_check_save_flags
12914     fi
12915     eval ac_res=\$$as_CACHEVAR
12916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12917     $as_echo "$ac_res" >&6; }
12918     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12919    
12920     if ${CFLAGS+:} false; then :
12921    
12922     case " $CFLAGS " in #(
12923     *" $flag "*) :
12924     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
12925     (: CFLAGS already contains $flag) 2>&5
12926     ac_status=$?
12927     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928     test $ac_status = 0; } ;; #(
12929     *) :
12930    
12931     as_fn_append CFLAGS " $flag"
12932     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12933     (: CFLAGS="$CFLAGS") 2>&5
12934     ac_status=$?
12935     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936     test $ac_status = 0; }
12937     ;;
12938     esac
12939    
12940     else
12941    
12942     CFLAGS=$flag
12943     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
12944     (: CFLAGS="$CFLAGS") 2>&5
12945     ac_status=$?
12946     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947     test $ac_status = 0; }
12948    
12949     fi
12950    
12951     else
12952     :
12953     fi
12954    
12955     done
12956    
12957    
12958    
12959    
12960    
12961     for flag in -Wcast-align; do
12962     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12964     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12965     if eval \${$as_CACHEVAR+:} false; then :
12966     $as_echo_n "(cached) " >&6
12967     else
12968    
12969     ax_check_save_flags=$CFLAGS
12970     CFLAGS="$CFLAGS $flag"
12971     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972     /* end confdefs.h. */
12973    
12974     int
12975     main ()
12976     {
12977    
12978     ;
12979     return 0;
12980     }
12981     _ACEOF
12982     if ac_fn_c_try_compile "$LINENO"; then :
12983     eval "$as_CACHEVAR=yes"
12984     else
12985     eval "$as_CACHEVAR=no"
12986     fi
12987     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988     CFLAGS=$ax_check_save_flags
12989     fi
12990     eval ac_res=\$$as_CACHEVAR
12991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12992     $as_echo "$ac_res" >&6; }
12993     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
12994    
12995     if ${CFLAGS+:} false; then :
12996    
12997     case " $CFLAGS " in #(
12998     *" $flag "*) :
12999     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13000     (: CFLAGS already contains $flag) 2>&5
13001     ac_status=$?
13002     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13003     test $ac_status = 0; } ;; #(
13004     *) :
13005    
13006     as_fn_append CFLAGS " $flag"
13007     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13008     (: CFLAGS="$CFLAGS") 2>&5
13009     ac_status=$?
13010     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13011     test $ac_status = 0; }
13012     ;;
13013     esac
13014    
13015     else
13016    
13017     CFLAGS=$flag
13018     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13019     (: CFLAGS="$CFLAGS") 2>&5
13020     ac_status=$?
13021     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022     test $ac_status = 0; }
13023    
13024     fi
13025    
13026     else
13027     :
13028     fi
13029    
13030     done
13031    
13032    
13033    
13034    
13035    
13036     for flag in -Wcast-qual; do
13037     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13039     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13040     if eval \${$as_CACHEVAR+:} false; then :
13041     $as_echo_n "(cached) " >&6
13042     else
13043    
13044     ax_check_save_flags=$CFLAGS
13045     CFLAGS="$CFLAGS $flag"
13046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047     /* end confdefs.h. */
13048    
13049     int
13050     main ()
13051     {
13052    
13053     ;
13054     return 0;
13055     }
13056     _ACEOF
13057     if ac_fn_c_try_compile "$LINENO"; then :
13058     eval "$as_CACHEVAR=yes"
13059     else
13060     eval "$as_CACHEVAR=no"
13061     fi
13062     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063     CFLAGS=$ax_check_save_flags
13064     fi
13065     eval ac_res=\$$as_CACHEVAR
13066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13067     $as_echo "$ac_res" >&6; }
13068     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13069    
13070     if ${CFLAGS+:} false; then :
13071    
13072     case " $CFLAGS " in #(
13073     *" $flag "*) :
13074     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13075     (: CFLAGS already contains $flag) 2>&5
13076     ac_status=$?
13077     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13078     test $ac_status = 0; } ;; #(
13079     *) :
13080    
13081     as_fn_append CFLAGS " $flag"
13082     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13083     (: CFLAGS="$CFLAGS") 2>&5
13084     ac_status=$?
13085     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086     test $ac_status = 0; }
13087     ;;
13088     esac
13089    
13090     else
13091    
13092     CFLAGS=$flag
13093     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13094     (: CFLAGS="$CFLAGS") 2>&5
13095     ac_status=$?
13096     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13097     test $ac_status = 0; }
13098    
13099     fi
13100    
13101     else
13102     :
13103     fi
13104    
13105     done
13106    
13107    
13108    
13109    
13110    
13111     for flag in -Wclobbered; do
13112     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13114     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13115     if eval \${$as_CACHEVAR+:} false; then :
13116     $as_echo_n "(cached) " >&6
13117     else
13118    
13119     ax_check_save_flags=$CFLAGS
13120     CFLAGS="$CFLAGS $flag"
13121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122     /* end confdefs.h. */
13123    
13124     int
13125     main ()
13126     {
13127    
13128     ;
13129     return 0;
13130     }
13131     _ACEOF
13132     if ac_fn_c_try_compile "$LINENO"; then :
13133     eval "$as_CACHEVAR=yes"
13134     else
13135     eval "$as_CACHEVAR=no"
13136     fi
13137     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138     CFLAGS=$ax_check_save_flags
13139     fi
13140     eval ac_res=\$$as_CACHEVAR
13141     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13142     $as_echo "$ac_res" >&6; }
13143     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13144    
13145     if ${CFLAGS+:} false; then :
13146    
13147     case " $CFLAGS " in #(
13148     *" $flag "*) :
13149     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13150     (: CFLAGS already contains $flag) 2>&5
13151     ac_status=$?
13152     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13153     test $ac_status = 0; } ;; #(
13154     *) :
13155    
13156     as_fn_append CFLAGS " $flag"
13157     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13158     (: CFLAGS="$CFLAGS") 2>&5
13159     ac_status=$?
13160     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13161     test $ac_status = 0; }
13162     ;;
13163     esac
13164    
13165     else
13166    
13167     CFLAGS=$flag
13168     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13169     (: CFLAGS="$CFLAGS") 2>&5
13170     ac_status=$?
13171     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13172     test $ac_status = 0; }
13173    
13174     fi
13175    
13176     else
13177     :
13178     fi
13179    
13180     done
13181    
13182    
13183    
13184    
13185    
13186     for flag in -Wempty-body; do
13187     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13188     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13189     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13190     if eval \${$as_CACHEVAR+:} false; then :
13191     $as_echo_n "(cached) " >&6
13192     else
13193    
13194     ax_check_save_flags=$CFLAGS
13195     CFLAGS="$CFLAGS $flag"
13196     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13197     /* end confdefs.h. */
13198    
13199     int
13200     main ()
13201     {
13202    
13203     ;
13204     return 0;
13205     }
13206     _ACEOF
13207     if ac_fn_c_try_compile "$LINENO"; then :
13208     eval "$as_CACHEVAR=yes"
13209     else
13210     eval "$as_CACHEVAR=no"
13211     fi
13212     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213     CFLAGS=$ax_check_save_flags
13214     fi
13215     eval ac_res=\$$as_CACHEVAR
13216     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13217     $as_echo "$ac_res" >&6; }
13218     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13219    
13220     if ${CFLAGS+:} false; then :
13221    
13222     case " $CFLAGS " in #(
13223     *" $flag "*) :
13224     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13225     (: CFLAGS already contains $flag) 2>&5
13226     ac_status=$?
13227     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13228     test $ac_status = 0; } ;; #(
13229     *) :
13230    
13231     as_fn_append CFLAGS " $flag"
13232     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13233     (: CFLAGS="$CFLAGS") 2>&5
13234     ac_status=$?
13235     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236     test $ac_status = 0; }
13237     ;;
13238     esac
13239    
13240     else
13241    
13242     CFLAGS=$flag
13243     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13244     (: CFLAGS="$CFLAGS") 2>&5
13245     ac_status=$?
13246     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13247     test $ac_status = 0; }
13248    
13249     fi
13250    
13251     else
13252     :
13253     fi
13254    
13255     done
13256    
13257    
13258    
13259    
13260    
13261     for flag in -Wignored-qualifiers; do
13262     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13264     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13265     if eval \${$as_CACHEVAR+:} false; then :
13266     $as_echo_n "(cached) " >&6
13267     else
13268    
13269     ax_check_save_flags=$CFLAGS
13270     CFLAGS="$CFLAGS $flag"
13271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272     /* end confdefs.h. */
13273    
13274     int
13275     main ()
13276     {
13277    
13278     ;
13279     return 0;
13280     }
13281     _ACEOF
13282     if ac_fn_c_try_compile "$LINENO"; then :
13283     eval "$as_CACHEVAR=yes"
13284     else
13285     eval "$as_CACHEVAR=no"
13286     fi
13287     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13288     CFLAGS=$ax_check_save_flags
13289     fi
13290     eval ac_res=\$$as_CACHEVAR
13291     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13292     $as_echo "$ac_res" >&6; }
13293     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13294    
13295     if ${CFLAGS+:} false; then :
13296    
13297     case " $CFLAGS " in #(
13298     *" $flag "*) :
13299     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13300     (: CFLAGS already contains $flag) 2>&5
13301     ac_status=$?
13302     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13303     test $ac_status = 0; } ;; #(
13304     *) :
13305    
13306     as_fn_append CFLAGS " $flag"
13307     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13308     (: CFLAGS="$CFLAGS") 2>&5
13309     ac_status=$?
13310     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13311     test $ac_status = 0; }
13312     ;;
13313     esac
13314    
13315     else
13316    
13317     CFLAGS=$flag
13318     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13319     (: CFLAGS="$CFLAGS") 2>&5
13320     ac_status=$?
13321     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322     test $ac_status = 0; }
13323    
13324     fi
13325    
13326     else
13327     :
13328     fi
13329    
13330     done
13331    
13332    
13333    
13334    
13335    
13336     for flag in -Wlogical-op; do
13337     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13339     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13340     if eval \${$as_CACHEVAR+:} false; then :
13341     $as_echo_n "(cached) " >&6
13342     else
13343    
13344     ax_check_save_flags=$CFLAGS
13345     CFLAGS="$CFLAGS $flag"
13346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347     /* end confdefs.h. */
13348    
13349     int
13350     main ()
13351     {
13352    
13353     ;
13354     return 0;
13355     }
13356     _ACEOF
13357     if ac_fn_c_try_compile "$LINENO"; then :
13358     eval "$as_CACHEVAR=yes"
13359     else
13360     eval "$as_CACHEVAR=no"
13361     fi
13362     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363     CFLAGS=$ax_check_save_flags
13364     fi
13365     eval ac_res=\$$as_CACHEVAR
13366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13367     $as_echo "$ac_res" >&6; }
13368     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13369    
13370     if ${CFLAGS+:} false; then :
13371    
13372     case " $CFLAGS " in #(
13373     *" $flag "*) :
13374     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13375     (: CFLAGS already contains $flag) 2>&5
13376     ac_status=$?
13377     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378     test $ac_status = 0; } ;; #(
13379     *) :
13380    
13381     as_fn_append CFLAGS " $flag"
13382     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13383     (: CFLAGS="$CFLAGS") 2>&5
13384     ac_status=$?
13385     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13386     test $ac_status = 0; }
13387     ;;
13388     esac
13389    
13390     else
13391    
13392     CFLAGS=$flag
13393     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13394     (: CFLAGS="$CFLAGS") 2>&5
13395     ac_status=$?
13396     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397     test $ac_status = 0; }
13398    
13399     fi
13400    
13401     else
13402     :
13403     fi
13404    
13405     done
13406    
13407    
13408    
13409    
13410    
13411     for flag in -Wmissing-declarations; do
13412     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13414     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13415     if eval \${$as_CACHEVAR+:} false; then :
13416     $as_echo_n "(cached) " >&6
13417     else
13418    
13419     ax_check_save_flags=$CFLAGS
13420     CFLAGS="$CFLAGS $flag"
13421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422     /* end confdefs.h. */
13423    
13424     int
13425     main ()
13426     {
13427    
13428     ;
13429     return 0;
13430     }
13431     _ACEOF
13432     if ac_fn_c_try_compile "$LINENO"; then :
13433     eval "$as_CACHEVAR=yes"
13434     else
13435     eval "$as_CACHEVAR=no"
13436     fi
13437     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438     CFLAGS=$ax_check_save_flags
13439     fi
13440     eval ac_res=\$$as_CACHEVAR
13441     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13442     $as_echo "$ac_res" >&6; }
13443     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13444    
13445     if ${CFLAGS+:} false; then :
13446    
13447     case " $CFLAGS " in #(
13448     *" $flag "*) :
13449     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13450     (: CFLAGS already contains $flag) 2>&5
13451     ac_status=$?
13452     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453     test $ac_status = 0; } ;; #(
13454     *) :
13455    
13456     as_fn_append CFLAGS " $flag"
13457     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13458     (: CFLAGS="$CFLAGS") 2>&5
13459     ac_status=$?
13460     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13461     test $ac_status = 0; }
13462     ;;
13463     esac
13464    
13465     else
13466    
13467     CFLAGS=$flag
13468     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13469     (: CFLAGS="$CFLAGS") 2>&5
13470     ac_status=$?
13471     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13472     test $ac_status = 0; }
13473    
13474     fi
13475    
13476     else
13477     :
13478     fi
13479    
13480     done
13481    
13482    
13483    
13484    
13485    
13486     for flag in -Wmissing-field-initializers; do
13487     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13489     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13490     if eval \${$as_CACHEVAR+:} false; then :
13491     $as_echo_n "(cached) " >&6
13492     else
13493    
13494     ax_check_save_flags=$CFLAGS
13495     CFLAGS="$CFLAGS $flag"
13496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497     /* end confdefs.h. */
13498    
13499     int
13500     main ()
13501     {
13502    
13503     ;
13504     return 0;
13505     }
13506     _ACEOF
13507     if ac_fn_c_try_compile "$LINENO"; then :
13508     eval "$as_CACHEVAR=yes"
13509     else
13510     eval "$as_CACHEVAR=no"
13511     fi
13512     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13513     CFLAGS=$ax_check_save_flags
13514     fi
13515     eval ac_res=\$$as_CACHEVAR
13516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13517     $as_echo "$ac_res" >&6; }
13518     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13519    
13520     if ${CFLAGS+:} false; then :
13521    
13522     case " $CFLAGS " in #(
13523     *" $flag "*) :
13524     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13525     (: CFLAGS already contains $flag) 2>&5
13526     ac_status=$?
13527     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13528     test $ac_status = 0; } ;; #(
13529     *) :
13530    
13531     as_fn_append CFLAGS " $flag"
13532     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13533     (: CFLAGS="$CFLAGS") 2>&5
13534     ac_status=$?
13535     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536     test $ac_status = 0; }
13537     ;;
13538     esac
13539    
13540     else
13541    
13542     CFLAGS=$flag
13543     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13544     (: CFLAGS="$CFLAGS") 2>&5
13545     ac_status=$?
13546     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13547     test $ac_status = 0; }
13548    
13549     fi
13550    
13551     else
13552     :
13553     fi
13554    
13555     done
13556    
13557    
13558    
13559    
13560    
13561     for flag in -Wmissing-include-dirs; do
13562     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13564     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13565     if eval \${$as_CACHEVAR+:} false; then :
13566     $as_echo_n "(cached) " >&6
13567     else
13568    
13569     ax_check_save_flags=$CFLAGS
13570     CFLAGS="$CFLAGS $flag"
13571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572     /* end confdefs.h. */
13573    
13574     int
13575     main ()
13576     {
13577    
13578     ;
13579     return 0;
13580     }
13581     _ACEOF
13582     if ac_fn_c_try_compile "$LINENO"; then :
13583     eval "$as_CACHEVAR=yes"
13584     else
13585     eval "$as_CACHEVAR=no"
13586     fi
13587     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588     CFLAGS=$ax_check_save_flags
13589     fi
13590     eval ac_res=\$$as_CACHEVAR
13591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13592     $as_echo "$ac_res" >&6; }
13593     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13594    
13595     if ${CFLAGS+:} false; then :
13596    
13597     case " $CFLAGS " in #(
13598     *" $flag "*) :
13599     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13600     (: CFLAGS already contains $flag) 2>&5
13601     ac_status=$?
13602     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13603     test $ac_status = 0; } ;; #(
13604     *) :
13605    
13606     as_fn_append CFLAGS " $flag"
13607     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13608     (: CFLAGS="$CFLAGS") 2>&5
13609     ac_status=$?
13610     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611     test $ac_status = 0; }
13612     ;;
13613     esac
13614    
13615     else
13616    
13617     CFLAGS=$flag
13618     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13619     (: CFLAGS="$CFLAGS") 2>&5
13620     ac_status=$?
13621     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622     test $ac_status = 0; }
13623    
13624     fi
13625    
13626     else
13627     :
13628     fi
13629    
13630     done
13631    
13632    
13633    
13634    
13635    
13636     for flag in -Wmissing-parameter-type; do
13637     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13639     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13640     if eval \${$as_CACHEVAR+:} false; then :
13641     $as_echo_n "(cached) " >&6
13642     else
13643    
13644     ax_check_save_flags=$CFLAGS
13645     CFLAGS="$CFLAGS $flag"
13646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647     /* end confdefs.h. */
13648    
13649     int
13650     main ()
13651     {
13652    
13653     ;
13654     return 0;
13655     }
13656     _ACEOF
13657     if ac_fn_c_try_compile "$LINENO"; then :
13658     eval "$as_CACHEVAR=yes"
13659     else
13660     eval "$as_CACHEVAR=no"
13661     fi
13662     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663     CFLAGS=$ax_check_save_flags
13664     fi
13665     eval ac_res=\$$as_CACHEVAR
13666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13667     $as_echo "$ac_res" >&6; }
13668     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13669    
13670     if ${CFLAGS+:} false; then :
13671    
13672     case " $CFLAGS " in #(
13673     *" $flag "*) :
13674     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13675     (: CFLAGS already contains $flag) 2>&5
13676     ac_status=$?
13677     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13678     test $ac_status = 0; } ;; #(
13679     *) :
13680    
13681     as_fn_append CFLAGS " $flag"
13682     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13683     (: CFLAGS="$CFLAGS") 2>&5
13684     ac_status=$?
13685     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13686     test $ac_status = 0; }
13687     ;;
13688     esac
13689    
13690     else
13691    
13692     CFLAGS=$flag
13693     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13694     (: CFLAGS="$CFLAGS") 2>&5
13695     ac_status=$?
13696     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13697     test $ac_status = 0; }
13698    
13699     fi
13700    
13701     else
13702     :
13703     fi
13704    
13705     done
13706    
13707    
13708    
13709    
13710    
13711     for flag in -Wmissing-prototypes; do
13712     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13714     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13715     if eval \${$as_CACHEVAR+:} false; then :
13716     $as_echo_n "(cached) " >&6
13717     else
13718    
13719     ax_check_save_flags=$CFLAGS
13720     CFLAGS="$CFLAGS $flag"
13721     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13722     /* end confdefs.h. */
13723    
13724     int
13725     main ()
13726     {
13727    
13728     ;
13729     return 0;
13730     }
13731     _ACEOF
13732     if ac_fn_c_try_compile "$LINENO"; then :
13733     eval "$as_CACHEVAR=yes"
13734     else
13735     eval "$as_CACHEVAR=no"
13736     fi
13737     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13738     CFLAGS=$ax_check_save_flags
13739     fi
13740     eval ac_res=\$$as_CACHEVAR
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13742     $as_echo "$ac_res" >&6; }
13743     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13744    
13745     if ${CFLAGS+:} false; then :
13746    
13747     case " $CFLAGS " in #(
13748     *" $flag "*) :
13749     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13750     (: CFLAGS already contains $flag) 2>&5
13751     ac_status=$?
13752     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753     test $ac_status = 0; } ;; #(
13754     *) :
13755    
13756     as_fn_append CFLAGS " $flag"
13757     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13758     (: CFLAGS="$CFLAGS") 2>&5
13759     ac_status=$?
13760     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761     test $ac_status = 0; }
13762     ;;
13763     esac
13764    
13765     else
13766    
13767     CFLAGS=$flag
13768     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13769     (: CFLAGS="$CFLAGS") 2>&5
13770     ac_status=$?
13771     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13772     test $ac_status = 0; }
13773    
13774     fi
13775    
13776     else
13777     :
13778     fi
13779    
13780     done
13781    
13782    
13783    
13784    
13785    
13786     for flag in -Wnested-externs; do
13787     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13789     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13790     if eval \${$as_CACHEVAR+:} false; then :
13791     $as_echo_n "(cached) " >&6
13792     else
13793    
13794     ax_check_save_flags=$CFLAGS
13795     CFLAGS="$CFLAGS $flag"
13796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797     /* end confdefs.h. */
13798    
13799     int
13800     main ()
13801     {
13802    
13803     ;
13804     return 0;
13805     }
13806     _ACEOF
13807     if ac_fn_c_try_compile "$LINENO"; then :
13808     eval "$as_CACHEVAR=yes"
13809     else
13810     eval "$as_CACHEVAR=no"
13811     fi
13812     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13813     CFLAGS=$ax_check_save_flags
13814     fi
13815     eval ac_res=\$$as_CACHEVAR
13816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13817     $as_echo "$ac_res" >&6; }
13818     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13819    
13820     if ${CFLAGS+:} false; then :
13821    
13822     case " $CFLAGS " in #(
13823     *" $flag "*) :
13824     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13825     (: CFLAGS already contains $flag) 2>&5
13826     ac_status=$?
13827     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828     test $ac_status = 0; } ;; #(
13829     *) :
13830    
13831     as_fn_append CFLAGS " $flag"
13832     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13833     (: CFLAGS="$CFLAGS") 2>&5
13834     ac_status=$?
13835     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13836     test $ac_status = 0; }
13837     ;;
13838     esac
13839    
13840     else
13841    
13842     CFLAGS=$flag
13843     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13844     (: CFLAGS="$CFLAGS") 2>&5
13845     ac_status=$?
13846     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847     test $ac_status = 0; }
13848    
13849     fi
13850    
13851     else
13852     :
13853     fi
13854    
13855     done
13856    
13857    
13858    
13859    
13860    
13861     for flag in -Wold-style-declaration; do
13862     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13864     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13865     if eval \${$as_CACHEVAR+:} false; then :
13866     $as_echo_n "(cached) " >&6
13867     else
13868    
13869     ax_check_save_flags=$CFLAGS
13870     CFLAGS="$CFLAGS $flag"
13871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872     /* end confdefs.h. */
13873    
13874     int
13875     main ()
13876     {
13877    
13878     ;
13879     return 0;
13880     }
13881     _ACEOF
13882     if ac_fn_c_try_compile "$LINENO"; then :
13883     eval "$as_CACHEVAR=yes"
13884     else
13885     eval "$as_CACHEVAR=no"
13886     fi
13887     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888     CFLAGS=$ax_check_save_flags
13889     fi
13890     eval ac_res=\$$as_CACHEVAR
13891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13892     $as_echo "$ac_res" >&6; }
13893     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13894    
13895     if ${CFLAGS+:} false; then :
13896    
13897     case " $CFLAGS " in #(
13898     *" $flag "*) :
13899     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13900     (: CFLAGS already contains $flag) 2>&5
13901     ac_status=$?
13902     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903     test $ac_status = 0; } ;; #(
13904     *) :
13905    
13906     as_fn_append CFLAGS " $flag"
13907     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13908     (: CFLAGS="$CFLAGS") 2>&5
13909     ac_status=$?
13910     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911     test $ac_status = 0; }
13912     ;;
13913     esac
13914    
13915     else
13916    
13917     CFLAGS=$flag
13918     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13919     (: CFLAGS="$CFLAGS") 2>&5
13920     ac_status=$?
13921     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922     test $ac_status = 0; }
13923    
13924     fi
13925    
13926     else
13927     :
13928     fi
13929    
13930     done
13931    
13932    
13933    
13934    
13935    
13936     for flag in -Woverride-init; do
13937     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13939     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13940     if eval \${$as_CACHEVAR+:} false; then :
13941     $as_echo_n "(cached) " >&6
13942     else
13943    
13944     ax_check_save_flags=$CFLAGS
13945     CFLAGS="$CFLAGS $flag"
13946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947     /* end confdefs.h. */
13948    
13949     int
13950     main ()
13951     {
13952    
13953     ;
13954     return 0;
13955     }
13956     _ACEOF
13957     if ac_fn_c_try_compile "$LINENO"; then :
13958     eval "$as_CACHEVAR=yes"
13959     else
13960     eval "$as_CACHEVAR=no"
13961     fi
13962     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963     CFLAGS=$ax_check_save_flags
13964     fi
13965     eval ac_res=\$$as_CACHEVAR
13966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13967     $as_echo "$ac_res" >&6; }
13968     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
13969    
13970     if ${CFLAGS+:} false; then :
13971    
13972     case " $CFLAGS " in #(
13973     *" $flag "*) :
13974     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13975     (: CFLAGS already contains $flag) 2>&5
13976     ac_status=$?
13977     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13978     test $ac_status = 0; } ;; #(
13979     *) :
13980    
13981     as_fn_append CFLAGS " $flag"
13982     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13983     (: CFLAGS="$CFLAGS") 2>&5
13984     ac_status=$?
13985     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986     test $ac_status = 0; }
13987     ;;
13988     esac
13989    
13990     else
13991    
13992     CFLAGS=$flag
13993     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
13994     (: CFLAGS="$CFLAGS") 2>&5
13995     ac_status=$?
13996     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13997     test $ac_status = 0; }
13998    
13999     fi
14000    
14001     else
14002     :
14003     fi
14004    
14005     done
14006    
14007    
14008    
14009    
14010    
14011     for flag in -Wpointer-arith; do
14012     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14013     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14014     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14015     if eval \${$as_CACHEVAR+:} false; then :
14016     $as_echo_n "(cached) " >&6
14017     else
14018    
14019     ax_check_save_flags=$CFLAGS
14020     CFLAGS="$CFLAGS $flag"
14021     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022     /* end confdefs.h. */
14023    
14024     int
14025     main ()
14026     {
14027    
14028     ;
14029     return 0;
14030     }
14031     _ACEOF
14032     if ac_fn_c_try_compile "$LINENO"; then :
14033     eval "$as_CACHEVAR=yes"
14034     else
14035     eval "$as_CACHEVAR=no"
14036     fi
14037     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14038     CFLAGS=$ax_check_save_flags
14039     fi
14040     eval ac_res=\$$as_CACHEVAR
14041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14042     $as_echo "$ac_res" >&6; }
14043     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14044    
14045     if ${CFLAGS+:} false; then :
14046    
14047     case " $CFLAGS " in #(
14048     *" $flag "*) :
14049     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14050     (: CFLAGS already contains $flag) 2>&5
14051     ac_status=$?
14052     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14053     test $ac_status = 0; } ;; #(
14054     *) :
14055    
14056     as_fn_append CFLAGS " $flag"
14057     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14058     (: CFLAGS="$CFLAGS") 2>&5
14059     ac_status=$?
14060     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14061     test $ac_status = 0; }
14062     ;;
14063     esac
14064    
14065     else
14066    
14067     CFLAGS=$flag
14068     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14069     (: CFLAGS="$CFLAGS") 2>&5
14070     ac_status=$?
14071     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14072     test $ac_status = 0; }
14073    
14074     fi
14075    
14076     else
14077     :
14078     fi
14079    
14080     done
14081    
14082    
14083    
14084    
14085    
14086     for flag in -Wredundant-decls; do
14087     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14089     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14090     if eval \${$as_CACHEVAR+:} false; then :
14091     $as_echo_n "(cached) " >&6
14092     else
14093    
14094     ax_check_save_flags=$CFLAGS
14095     CFLAGS="$CFLAGS $flag"
14096     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097     /* end confdefs.h. */
14098    
14099     int
14100     main ()
14101     {
14102    
14103     ;
14104     return 0;
14105     }
14106     _ACEOF
14107     if ac_fn_c_try_compile "$LINENO"; then :
14108     eval "$as_CACHEVAR=yes"
14109     else
14110     eval "$as_CACHEVAR=no"
14111     fi
14112     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113     CFLAGS=$ax_check_save_flags
14114     fi
14115     eval ac_res=\$$as_CACHEVAR
14116     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14117     $as_echo "$ac_res" >&6; }
14118     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14119    
14120     if ${CFLAGS+:} false; then :
14121    
14122     case " $CFLAGS " in #(
14123     *" $flag "*) :
14124     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14125     (: CFLAGS already contains $flag) 2>&5
14126     ac_status=$?
14127     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128     test $ac_status = 0; } ;; #(
14129     *) :
14130    
14131     as_fn_append CFLAGS " $flag"
14132     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14133     (: CFLAGS="$CFLAGS") 2>&5
14134     ac_status=$?
14135     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14136     test $ac_status = 0; }
14137     ;;
14138     esac
14139    
14140     else
14141    
14142     CFLAGS=$flag
14143     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14144     (: CFLAGS="$CFLAGS") 2>&5
14145     ac_status=$?
14146     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147     test $ac_status = 0; }
14148    
14149     fi
14150    
14151     else
14152     :
14153     fi
14154    
14155     done
14156    
14157    
14158    
14159    
14160    
14161     for flag in -Wshadow; do
14162     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14164     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14165     if eval \${$as_CACHEVAR+:} false; then :
14166     $as_echo_n "(cached) " >&6
14167     else
14168    
14169     ax_check_save_flags=$CFLAGS
14170     CFLAGS="$CFLAGS $flag"
14171     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172     /* end confdefs.h. */
14173    
14174     int
14175     main ()
14176     {
14177    
14178     ;
14179     return 0;
14180     }
14181     _ACEOF
14182     if ac_fn_c_try_compile "$LINENO"; then :
14183     eval "$as_CACHEVAR=yes"
14184     else
14185     eval "$as_CACHEVAR=no"
14186     fi
14187     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14188     CFLAGS=$ax_check_save_flags
14189     fi
14190     eval ac_res=\$$as_CACHEVAR
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14192     $as_echo "$ac_res" >&6; }
14193     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14194    
14195     if ${CFLAGS+:} false; then :
14196    
14197     case " $CFLAGS " in #(
14198     *" $flag "*) :
14199     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14200     (: CFLAGS already contains $flag) 2>&5
14201     ac_status=$?
14202     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14203     test $ac_status = 0; } ;; #(
14204     *) :
14205    
14206     as_fn_append CFLAGS " $flag"
14207     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14208     (: CFLAGS="$CFLAGS") 2>&5
14209     ac_status=$?
14210     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14211     test $ac_status = 0; }
14212     ;;
14213     esac
14214    
14215     else
14216    
14217     CFLAGS=$flag
14218     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14219     (: CFLAGS="$CFLAGS") 2>&5
14220     ac_status=$?
14221     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14222     test $ac_status = 0; }
14223    
14224     fi
14225    
14226     else
14227     :
14228     fi
14229    
14230     done
14231    
14232    
14233    
14234    
14235    
14236     for flag in -Wsign-compare; do
14237     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14239     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14240     if eval \${$as_CACHEVAR+:} false; then :
14241     $as_echo_n "(cached) " >&6
14242     else
14243    
14244     ax_check_save_flags=$CFLAGS
14245     CFLAGS="$CFLAGS $flag"
14246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247     /* end confdefs.h. */
14248    
14249     int
14250     main ()
14251     {
14252    
14253     ;
14254     return 0;
14255     }
14256     _ACEOF
14257     if ac_fn_c_try_compile "$LINENO"; then :
14258     eval "$as_CACHEVAR=yes"
14259     else
14260     eval "$as_CACHEVAR=no"
14261     fi
14262     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14263     CFLAGS=$ax_check_save_flags
14264     fi
14265     eval ac_res=\$$as_CACHEVAR
14266     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14267     $as_echo "$ac_res" >&6; }
14268     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14269    
14270     if ${CFLAGS+:} false; then :
14271    
14272     case " $CFLAGS " in #(
14273     *" $flag "*) :
14274     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14275     (: CFLAGS already contains $flag) 2>&5
14276     ac_status=$?
14277     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14278     test $ac_status = 0; } ;; #(
14279     *) :
14280    
14281     as_fn_append CFLAGS " $flag"
14282     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14283     (: CFLAGS="$CFLAGS") 2>&5
14284     ac_status=$?
14285     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286     test $ac_status = 0; }
14287     ;;
14288     esac
14289    
14290     else
14291    
14292     CFLAGS=$flag
14293     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14294     (: CFLAGS="$CFLAGS") 2>&5
14295     ac_status=$?
14296     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297     test $ac_status = 0; }
14298    
14299     fi
14300    
14301     else
14302     :
14303     fi
14304    
14305     done
14306    
14307    
14308    
14309    
14310    
14311     for flag in -Wtype-limits; do
14312     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14314     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14315     if eval \${$as_CACHEVAR+:} false; then :
14316     $as_echo_n "(cached) " >&6
14317     else
14318    
14319     ax_check_save_flags=$CFLAGS
14320     CFLAGS="$CFLAGS $flag"
14321     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322     /* end confdefs.h. */
14323    
14324     int
14325     main ()
14326     {
14327    
14328     ;
14329     return 0;
14330     }
14331     _ACEOF
14332     if ac_fn_c_try_compile "$LINENO"; then :
14333     eval "$as_CACHEVAR=yes"
14334     else
14335     eval "$as_CACHEVAR=no"
14336     fi
14337     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338     CFLAGS=$ax_check_save_flags
14339     fi
14340     eval ac_res=\$$as_CACHEVAR
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14342     $as_echo "$ac_res" >&6; }
14343     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14344    
14345     if ${CFLAGS+:} false; then :
14346    
14347     case " $CFLAGS " in #(
14348     *" $flag "*) :
14349     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14350     (: CFLAGS already contains $flag) 2>&5
14351     ac_status=$?
14352     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14353     test $ac_status = 0; } ;; #(
14354     *) :
14355    
14356     as_fn_append CFLAGS " $flag"
14357     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14358     (: CFLAGS="$CFLAGS") 2>&5
14359     ac_status=$?
14360     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361     test $ac_status = 0; }
14362     ;;
14363     esac
14364    
14365     else
14366    
14367     CFLAGS=$flag
14368     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14369     (: CFLAGS="$CFLAGS") 2>&5
14370     ac_status=$?
14371     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14372     test $ac_status = 0; }
14373    
14374     fi
14375    
14376     else
14377     :
14378     fi
14379    
14380     done
14381    
14382    
14383    
14384    
14385    
14386     for flag in -Wundef; do
14387     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14389     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14390     if eval \${$as_CACHEVAR+:} false; then :
14391     $as_echo_n "(cached) " >&6
14392     else
14393    
14394     ax_check_save_flags=$CFLAGS
14395     CFLAGS="$CFLAGS $flag"
14396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397     /* end confdefs.h. */
14398    
14399     int
14400     main ()
14401     {
14402    
14403     ;
14404     return 0;
14405     }
14406     _ACEOF
14407     if ac_fn_c_try_compile "$LINENO"; then :
14408     eval "$as_CACHEVAR=yes"
14409     else
14410     eval "$as_CACHEVAR=no"
14411     fi
14412     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413     CFLAGS=$ax_check_save_flags
14414     fi
14415     eval ac_res=\$$as_CACHEVAR
14416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14417     $as_echo "$ac_res" >&6; }
14418     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14419    
14420     if ${CFLAGS+:} false; then :
14421    
14422     case " $CFLAGS " in #(
14423     *" $flag "*) :
14424     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14425     (: CFLAGS already contains $flag) 2>&5
14426     ac_status=$?
14427     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428     test $ac_status = 0; } ;; #(
14429     *) :
14430    
14431     as_fn_append CFLAGS " $flag"
14432     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14433     (: CFLAGS="$CFLAGS") 2>&5
14434     ac_status=$?
14435     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14436     test $ac_status = 0; }
14437     ;;
14438     esac
14439    
14440     else
14441    
14442     CFLAGS=$flag
14443     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14444     (: CFLAGS="$CFLAGS") 2>&5
14445     ac_status=$?
14446     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14447     test $ac_status = 0; }
14448    
14449     fi
14450    
14451     else
14452     :
14453     fi
14454    
14455     done
14456    
14457    
14458    
14459    
14460    
14461     for flag in -Wuninitialized; do
14462     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14464     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14465     if eval \${$as_CACHEVAR+:} false; then :
14466     $as_echo_n "(cached) " >&6
14467     else
14468    
14469     ax_check_save_flags=$CFLAGS
14470     CFLAGS="$CFLAGS $flag"
14471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472     /* end confdefs.h. */
14473    
14474     int
14475     main ()
14476     {
14477    
14478     ;
14479     return 0;
14480     }
14481     _ACEOF
14482     if ac_fn_c_try_compile "$LINENO"; then :
14483     eval "$as_CACHEVAR=yes"
14484     else
14485     eval "$as_CACHEVAR=no"
14486     fi
14487     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488     CFLAGS=$ax_check_save_flags
14489     fi
14490     eval ac_res=\$$as_CACHEVAR
14491     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14492     $as_echo "$ac_res" >&6; }
14493     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14494    
14495     if ${CFLAGS+:} false; then :
14496    
14497     case " $CFLAGS " in #(
14498     *" $flag "*) :
14499     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14500     (: CFLAGS already contains $flag) 2>&5
14501     ac_status=$?
14502     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14503     test $ac_status = 0; } ;; #(
14504     *) :
14505    
14506     as_fn_append CFLAGS " $flag"
14507     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14508     (: CFLAGS="$CFLAGS") 2>&5
14509     ac_status=$?
14510     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14511     test $ac_status = 0; }
14512     ;;
14513     esac
14514    
14515     else
14516    
14517     CFLAGS=$flag
14518     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14519     (: CFLAGS="$CFLAGS") 2>&5
14520     ac_status=$?
14521     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14522     test $ac_status = 0; }
14523    
14524     fi
14525    
14526     else
14527     :
14528     fi
14529    
14530     done
14531    
14532    
14533    
14534    
14535    
14536     for flag in -Wwrite-strings; do
14537     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14538     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14539     $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14540     if eval \${$as_CACHEVAR+:} false; then :
14541     $as_echo_n "(cached) " >&6
14542     else
14543    
14544     ax_check_save_flags=$CFLAGS
14545     CFLAGS="$CFLAGS $flag"
14546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547     /* end confdefs.h. */
14548    
14549     int
14550     main ()
14551     {
14552    
14553     ;
14554     return 0;
14555     }
14556     _ACEOF
14557     if ac_fn_c_try_compile "$LINENO"; then :
14558     eval "$as_CACHEVAR=yes"
14559     else
14560     eval "$as_CACHEVAR=no"
14561     fi
14562     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563     CFLAGS=$ax_check_save_flags
14564     fi
14565     eval ac_res=\$$as_CACHEVAR
14566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14567     $as_echo "$ac_res" >&6; }
14568     if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14569    
14570     if ${CFLAGS+:} false; then :
14571    
14572     case " $CFLAGS " in #(
14573     *" $flag "*) :
14574     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14575     (: CFLAGS already contains $flag) 2>&5
14576     ac_status=$?
14577     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14578     test $ac_status = 0; } ;; #(
14579     *) :
14580    
14581     as_fn_append CFLAGS " $flag"
14582     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14583     (: CFLAGS="$CFLAGS") 2>&5
14584     ac_status=$?
14585     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586     test $ac_status = 0; }
14587     ;;
14588     esac
14589    
14590     else
14591    
14592     CFLAGS=$flag
14593     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
14594     (: CFLAGS="$CFLAGS") 2>&5
14595     ac_status=$?
14596     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14597     test $ac_status = 0; }
14598    
14599     fi
14600    
14601     else
14602     :
14603     fi
14604    
14605     done
14606    
14607    
14608     fi
14609    
14610    
14611 michael 5264 for ac_func in strlcpy strlcat
14612 michael 5059 do :
14613     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14614     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14615     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14616     cat >>confdefs.h <<_ACEOF
14617     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14618 michael 5052 _ACEOF
14619    
14620     fi
14621 michael 5059 done
14622 michael 5052
14623    
14624 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14625     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14626     if ${ac_cv_c_bigendian+:} false; then :
14627     $as_echo_n "(cached) " >&6
14628 michael 5052 else
14629 michael 5059 ac_cv_c_bigendian=unknown
14630     # See if we're dealing with a universal compiler.
14631     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 michael 5052 /* end confdefs.h. */
14633 michael 5059 #ifndef __APPLE_CC__
14634     not a universal capable compiler
14635     #endif
14636     typedef int dummy;
14637 michael 5052
14638     _ACEOF
14639 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14640 michael 5052
14641 michael 5059 # Check for potential -arch flags. It is not universal unless
14642     # there are at least two -arch flags with different values.
14643     ac_arch=
14644     ac_prev=
14645     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14646     if test -n "$ac_prev"; then
14647     case $ac_word in
14648     i?86 | x86_64 | ppc | ppc64)
14649     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14650     ac_arch=$ac_word
14651     else
14652     ac_cv_c_bigendian=universal
14653     break
14654     fi
14655     ;;
14656     esac
14657     ac_prev=
14658     elif test "x$ac_word" = "x-arch"; then
14659     ac_prev=arch
14660     fi
14661     done
14662 michael 5052 fi
14663 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14664     if test $ac_cv_c_bigendian = unknown; then
14665     # See if sys/param.h defines the BYTE_ORDER macro.
14666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 michael 5052 /* end confdefs.h. */
14668     #include <sys/types.h>
14669 michael 5059 #include <sys/param.h>
14670 michael 5052
14671     int
14672     main ()
14673     {
14674 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14675     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14676     && LITTLE_ENDIAN)
14677     bogus endian macros
14678     #endif
14679 michael 5052
14680     ;
14681     return 0;
14682     }
14683     _ACEOF
14684 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14685 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
14686 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 michael 5052 /* end confdefs.h. */
14688     #include <sys/types.h>
14689 michael 5059 #include <sys/param.h>
14690 michael 5052
14691     int
14692     main ()
14693     {
14694     #if BYTE_ORDER != BIG_ENDIAN
14695 michael 5059 not big endian
14696     #endif
14697 michael 5052
14698     ;
14699     return 0;
14700     }
14701     _ACEOF
14702 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14703 michael 5052 ac_cv_c_bigendian=yes
14704     else
14705     ac_cv_c_bigendian=no
14706     fi
14707     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708     fi
14709     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710 michael 5059 fi
14711     if test $ac_cv_c_bigendian = unknown; then
14712     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14713     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 michael 5052 /* end confdefs.h. */
14715 michael 5059 #include <limits.h>
14716 michael 5052
14717     int
14718     main ()
14719     {
14720 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14721     bogus endian macros
14722     #endif
14723 michael 5052
14724     ;
14725     return 0;
14726     }
14727     _ACEOF
14728 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14729     # It does; now see whether it defined to _BIG_ENDIAN or not.
14730     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 michael 5052 /* end confdefs.h. */
14732 michael 5059 #include <limits.h>
14733 michael 5052
14734     int
14735     main ()
14736     {
14737 michael 5059 #ifndef _BIG_ENDIAN
14738     not big endian
14739     #endif
14740 michael 5052
14741     ;
14742     return 0;
14743     }
14744     _ACEOF
14745 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14746     ac_cv_c_bigendian=yes
14747 michael 5052 else
14748 michael 5059 ac_cv_c_bigendian=no
14749 michael 5052 fi
14750     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751     fi
14752     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 michael 5059 fi
14754     if test $ac_cv_c_bigendian = unknown; then
14755     # Compile a test program.
14756     if test "$cross_compiling" = yes; then :
14757     # Try to guess by grepping values from an object file.
14758     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759     /* end confdefs.h. */
14760     short int ascii_mm[] =
14761     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14762     short int ascii_ii[] =
14763     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14764     int use_ascii (int i) {
14765     return ascii_mm[i] + ascii_ii[i];
14766     }
14767     short int ebcdic_ii[] =
14768     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14769     short int ebcdic_mm[] =
14770     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14771     int use_ebcdic (int i) {
14772     return ebcdic_mm[i] + ebcdic_ii[i];
14773     }
14774     extern int foo;
14775 michael 5052
14776     int
14777     main ()
14778     {
14779 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
14780 michael 5052 ;
14781     return 0;
14782     }
14783     _ACEOF
14784 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
14785     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14786     ac_cv_c_bigendian=yes
14787     fi
14788     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14789     if test "$ac_cv_c_bigendian" = unknown; then
14790     ac_cv_c_bigendian=no
14791     else
14792     # finding both strings is unlikely to happen, but who knows?
14793     ac_cv_c_bigendian=unknown
14794     fi
14795     fi
14796 michael 5052 fi
14797     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798     else
14799 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 michael 5052 /* end confdefs.h. */
14801     $ac_includes_default
14802     int
14803     main ()
14804     {
14805    
14806 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
14807     union
14808     {
14809     long int l;
14810     char c[sizeof (long int)];
14811     } u;
14812     u.l = 1;
14813     return u.c[sizeof (long int) - 1] == 1;
14814 michael 5052
14815     ;
14816     return 0;
14817     }
14818     _ACEOF
14819 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
14820     ac_cv_c_bigendian=no
14821 michael 5052 else
14822 michael 5059 ac_cv_c_bigendian=yes
14823 michael 5052 fi
14824 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14825     conftest.$ac_objext conftest.beam conftest.$ac_ext
14826 michael 5052 fi
14827 michael 5059
14828     fi
14829 michael 5052 fi
14830 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14831     $as_echo "$ac_cv_c_bigendian" >&6; }
14832     case $ac_cv_c_bigendian in #(
14833     yes)
14834     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14835     ;; #(
14836     no)
14837     ;; #(
14838     universal)
14839 michael 5052
14840 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14841 michael 5052
14842 michael 5059 ;; #(
14843     *)
14844     as_fn_error $? "unknown endianness
14845     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14846     esac
14847 michael 5052
14848    
14849 michael 5260 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
14850 michael 5052
14851     cat >confcache <<\_ACEOF
14852     # This file is a shell script that caches the results of configure
14853     # tests run on this system so they can be shared between configure
14854     # scripts and configure runs, see configure's option --config-cache.
14855     # It is not useful on other systems. If it contains results you don't
14856     # want to keep, you may remove or edit it.
14857     #
14858     # config.status only pays attention to the cache file if you give it
14859     # the --recheck option to rerun configure.
14860     #
14861     # `ac_cv_env_foo' variables (set or unset) will be overridden when
14862     # loading this file, other *unset* `ac_cv_foo' will be assigned the
14863     # following values.
14864    
14865     _ACEOF
14866    
14867     # The following way of writing the cache mishandles newlines in values,
14868     # but we know of no workaround that is simple, portable, and efficient.
14869     # So, we kill variables containing newlines.
14870     # Ultrix sh set writes to stderr and can't be redirected directly,
14871     # and sets the high bit in the cache file unless we assign to the vars.
14872     (
14873     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14874     eval ac_val=\$$ac_var
14875     case $ac_val in #(
14876     *${as_nl}*)
14877     case $ac_var in #(
14878 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14879     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14880 michael 5052 esac
14881     case $ac_var in #(
14882     _ | IFS | as_nl) ;; #(
14883 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14884     *) { eval $ac_var=; unset $ac_var;} ;;
14885 michael 5052 esac ;;
14886     esac
14887     done
14888    
14889     (set) 2>&1 |
14890     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14891     *${as_nl}ac_space=\ *)
14892 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
14893     # substitution turns \\\\ into \\, and sed turns \\ into \.
14894 michael 5052 sed -n \
14895     "s/'/'\\\\''/g;
14896     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14897     ;; #(
14898     *)
14899     # `set' quotes correctly as required by POSIX, so do not add quotes.
14900     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14901     ;;
14902     esac |
14903     sort
14904     ) |
14905     sed '
14906     /^ac_cv_env_/b end
14907     t clear
14908     :clear
14909     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14910     t end
14911     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14912     :end' >>confcache
14913     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14914     if test -w "$cache_file"; then
14915 michael 5059 if test "x$cache_file" != "x/dev/null"; then
14916     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14917     $as_echo "$as_me: updating cache $cache_file" >&6;}
14918     if test ! -f "$cache_file" || test -h "$cache_file"; then
14919     cat confcache >"$cache_file"
14920     else
14921     case $cache_file in #(
14922     */* | ?:*)
14923     mv -f confcache "$cache_file"$$ &&
14924     mv -f "$cache_file"$$ "$cache_file" ;; #(
14925     *)
14926     mv -f confcache "$cache_file" ;;
14927     esac
14928     fi
14929     fi
14930 michael 5052 else
14931 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14932     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14933 michael 5052 fi
14934     fi
14935     rm -f confcache
14936    
14937     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14938     # Let make expand exec_prefix.
14939     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14940    
14941     DEFS=-DHAVE_CONFIG_H
14942    
14943     ac_libobjs=
14944     ac_ltlibobjs=
14945 michael 5145 U=
14946 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14947     # 1. Remove the extension, and $U if already installed.
14948     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14949 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14950 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14951     # will be set to the directory where LIBOBJS objects are built.
14952 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14953     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14954 michael 5052 done
14955     LIBOBJS=$ac_libobjs
14956    
14957     LTLIBOBJS=$ac_ltlibobjs
14958    
14959    
14960 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14961     $as_echo_n "checking that generated files are newer than configure... " >&6; }
14962     if test -n "$am_sleep_pid"; then
14963     # Hide warnings about reused PIDs.
14964     wait $am_sleep_pid 2>/dev/null
14965     fi
14966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14967     $as_echo "done" >&6; }
14968     if test -n "$EXEEXT"; then
14969     am__EXEEXT_TRUE=
14970     am__EXEEXT_FALSE='#'
14971     else
14972     am__EXEEXT_TRUE='#'
14973     am__EXEEXT_FALSE=
14974     fi
14975    
14976 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14977 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14978     Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 michael 5052 fi
14980     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14981 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
14982     Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 michael 5052 fi
14984     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14985 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14986     Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 michael 5052 fi
14988 michael 6223 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14989     as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14990     Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991     fi
14992 michael 5052
14993 michael 5059
14994     : "${CONFIG_STATUS=./config.status}"
14995     ac_write_fail=0
14996 michael 5052 ac_clean_files_save=$ac_clean_files
14997     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14998 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14999     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15000     as_write_fail=0
15001     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15002 michael 5052 #! $SHELL
15003     # Generated by $as_me.
15004     # Run this file to recreate the current configuration.
15005     # Compiler output produced by configure, useful for debugging
15006     # configure, is in config.log if it exists.
15007    
15008     debug=false
15009     ac_cs_recheck=false
15010     ac_cs_silent=false
15011 michael 5059
15012 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
15013 michael 5059 export SHELL
15014     _ASEOF
15015     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15016     ## -------------------- ##
15017     ## M4sh Initialization. ##
15018     ## -------------------- ##
15019 michael 5052
15020 michael 5059 # Be more Bourne compatible
15021     DUALCASE=1; export DUALCASE # for MKS sh
15022     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15023 michael 5052 emulate sh
15024     NULLCMD=:
15025 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15026 michael 5052 # is contrary to our usage. Disable this feature.
15027     alias -g '${1+"$@"}'='"$@"'
15028     setopt NO_GLOB_SUBST
15029     else
15030 michael 5059 case `(set -o) 2>/dev/null` in #(
15031     *posix*) :
15032     set -o posix ;; #(
15033     *) :
15034     ;;
15035     esac
15036 michael 5052 fi
15037    
15038    
15039 michael 5059 as_nl='
15040     '
15041     export as_nl
15042     # Printing a long string crashes Solaris 7 /usr/bin/printf.
15043     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15044     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15045     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15046     # Prefer a ksh shell builtin over an external printf program on Solaris,
15047     # but without wasting forks for bash or zsh.
15048     if test -z "$BASH_VERSION$ZSH_VERSION" \
15049     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15050     as_echo='print -r --'
15051     as_echo_n='print -rn --'
15052     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15053     as_echo='printf %s\n'
15054     as_echo_n='printf %s'
15055     else
15056     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15057     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15058     as_echo_n='/usr/ucb/echo -n'
15059 michael 5052 else
15060 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15061     as_echo_n_body='eval
15062     arg=$1;
15063     case $arg in #(
15064     *"$as_nl"*)
15065     expr "X$arg" : "X\\(.*\\)$as_nl";
15066     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15067     esac;
15068     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15069     '
15070     export as_echo_n_body
15071     as_echo_n='sh -c $as_echo_n_body as_echo'
15072 michael 5052 fi
15073 michael 5059 export as_echo_body
15074     as_echo='sh -c $as_echo_body as_echo'
15075 michael 5052 fi
15076    
15077 michael 5059 # The user is always right.
15078     if test "${PATH_SEPARATOR+set}" != set; then
15079     PATH_SEPARATOR=:
15080     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15081     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15082     PATH_SEPARATOR=';'
15083     }
15084 michael 5052 fi
15085    
15086    
15087     # IFS
15088     # We need space, tab and new line, in precisely that order. Quoting is
15089     # there to prevent editors from complaining about space-tab.
15090     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15091     # splitting by setting IFS to empty value.)
15092     IFS=" "" $as_nl"
15093    
15094     # Find who we are. Look in the path if we contain no directory separator.
15095 michael 5059 as_myself=
15096     case $0 in #((
15097 michael 5052 *[\\/]* ) as_myself=$0 ;;
15098     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15099     for as_dir in $PATH
15100     do
15101     IFS=$as_save_IFS
15102     test -z "$as_dir" && as_dir=.
15103 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15104     done
15105 michael 5052 IFS=$as_save_IFS
15106    
15107     ;;
15108     esac
15109     # We did not find ourselves, most probably we were run as `sh COMMAND'
15110     # in which case we are not to be found in the path.
15111     if test "x$as_myself" = x; then
15112     as_myself=$0
15113     fi
15114     if test ! -f "$as_myself"; then
15115 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15116     exit 1
15117 michael 5052 fi
15118    
15119 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
15120     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15121     # suppresses any "Segmentation fault" message there. '((' could
15122     # trigger a bug in pdksh 5.2.14.
15123     for as_var in BASH_ENV ENV MAIL MAILPATH
15124     do eval test x\${$as_var+set} = xset \
15125     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15126 michael 5052 done
15127     PS1='$ '
15128     PS2='> '
15129     PS4='+ '
15130    
15131     # NLS nuisances.
15132 michael 5059 LC_ALL=C
15133     export LC_ALL
15134     LANGUAGE=C
15135     export LANGUAGE
15136    
15137     # CDPATH.
15138     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15139    
15140    
15141     # as_fn_error STATUS ERROR [LINENO LOG_FD]
15142     # ----------------------------------------
15143     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15144     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15145     # script with STATUS, using 1 if that was 0.
15146     as_fn_error ()
15147     {
15148     as_status=$1; test $as_status -eq 0 && as_status=1
15149     if test "$4"; then
15150     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15151     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15152 michael 5052 fi
15153 michael 5059 $as_echo "$as_me: error: $2" >&2
15154     as_fn_exit $as_status
15155     } # as_fn_error
15156 michael 5052
15157 michael 5059
15158     # as_fn_set_status STATUS
15159     # -----------------------
15160     # Set $? to STATUS, without forking.
15161     as_fn_set_status ()
15162     {
15163     return $1
15164     } # as_fn_set_status
15165    
15166     # as_fn_exit STATUS
15167     # -----------------
15168     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15169     as_fn_exit ()
15170     {
15171     set +e
15172     as_fn_set_status $1
15173     exit $1
15174     } # as_fn_exit
15175    
15176     # as_fn_unset VAR
15177     # ---------------
15178     # Portably unset VAR.
15179     as_fn_unset ()
15180     {
15181     { eval $1=; unset $1;}
15182     }
15183     as_unset=as_fn_unset
15184     # as_fn_append VAR VALUE
15185     # ----------------------
15186     # Append the text in VALUE to the end of the definition contained in VAR. Take
15187     # advantage of any shell optimizations that allow amortized linear growth over
15188     # repeated appends, instead of the typical quadratic growth present in naive
15189     # implementations.
15190     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15191     eval 'as_fn_append ()
15192     {
15193     eval $1+=\$2
15194     }'
15195     else
15196     as_fn_append ()
15197     {
15198     eval $1=\$$1\$2
15199     }
15200     fi # as_fn_append
15201    
15202     # as_fn_arith ARG...
15203     # ------------------
15204     # Perform arithmetic evaluation on the ARGs, and store the result in the
15205     # global $as_val. Take advantage of shells that can avoid forks. The arguments
15206     # must be portable across $(()) and expr.
15207     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15208     eval 'as_fn_arith ()
15209     {
15210     as_val=$(( $* ))
15211     }'
15212     else
15213     as_fn_arith ()
15214     {
15215     as_val=`expr "$@" || test $? -eq 1`
15216     }
15217     fi # as_fn_arith
15218    
15219    
15220 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
15221     test "X`expr 00001 : '.*\(...\)'`" = X001; then
15222     as_expr=expr
15223     else
15224     as_expr=false
15225     fi
15226    
15227     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15228     as_basename=basename
15229     else
15230     as_basename=false
15231     fi
15232    
15233 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15234     as_dirname=dirname
15235     else
15236     as_dirname=false
15237     fi
15238 michael 5052
15239     as_me=`$as_basename -- "$0" ||
15240     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15241     X"$0" : 'X\(//\)$' \| \
15242     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15243 michael 5059 $as_echo X/"$0" |
15244 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
15245     s//\1/
15246     q
15247     }
15248     /^X\/\(\/\/\)$/{
15249     s//\1/
15250     q
15251     }
15252     /^X\/\(\/\).*/{
15253     s//\1/
15254     q
15255     }
15256     s/.*/./; q'`
15257    
15258 michael 5059 # Avoid depending upon Character Ranges.
15259     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15260     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15261     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15262     as_cr_digits='0123456789'
15263     as_cr_alnum=$as_cr_Letters$as_cr_digits
15264 michael 5052
15265     ECHO_C= ECHO_N= ECHO_T=
15266 michael 5059 case `echo -n x` in #(((((
15267 michael 5052 -n*)
15268 michael 5059 case `echo 'xy\c'` in
15269 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15270 michael 5059 xy) ECHO_C='\c';;
15271     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15272     ECHO_T=' ';;
15273 michael 5052 esac;;
15274     *)
15275     ECHO_N='-n';;
15276     esac
15277    
15278     rm -f conf$$ conf$$.exe conf$$.file
15279     if test -d conf$$.dir; then
15280     rm -f conf$$.dir/conf$$.file
15281     else
15282     rm -f conf$$.dir
15283 michael 5059 mkdir conf$$.dir 2>/dev/null
15284 michael 5052 fi
15285 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
15286     if ln -s conf$$.file conf$$ 2>/dev/null; then
15287     as_ln_s='ln -s'
15288     # ... but there are two gotchas:
15289     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15290     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15291     # In both cases, we have to default to `cp -pR'.
15292     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15293     as_ln_s='cp -pR'
15294     elif ln conf$$.file conf$$ 2>/dev/null; then
15295     as_ln_s=ln
15296     else
15297     as_ln_s='cp -pR'
15298     fi
15299 michael 5052 else
15300 michael 5059 as_ln_s='cp -pR'
15301 michael 5052 fi
15302     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15303     rmdir conf$$.dir 2>/dev/null
15304    
15305 michael 5059
15306     # as_fn_mkdir_p
15307     # -------------
15308     # Create "$as_dir" as a directory, including parents if necessary.
15309     as_fn_mkdir_p ()
15310     {
15311    
15312     case $as_dir in #(
15313     -*) as_dir=./$as_dir;;
15314     esac
15315     test -d "$as_dir" || eval $as_mkdir_p || {
15316     as_dirs=
15317     while :; do
15318     case $as_dir in #(
15319     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15320     *) as_qdir=$as_dir;;
15321     esac
15322     as_dirs="'$as_qdir' $as_dirs"
15323     as_dir=`$as_dirname -- "$as_dir" ||
15324     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15325     X"$as_dir" : 'X\(//\)[^/]' \| \
15326     X"$as_dir" : 'X\(//\)$' \| \
15327     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15328     $as_echo X"$as_dir" |
15329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15330     s//\1/
15331     q
15332     }
15333     /^X\(\/\/\)[^/].*/{
15334     s//\1/
15335     q
15336     }
15337     /^X\(\/\/\)$/{
15338     s//\1/
15339     q
15340     }
15341     /^X\(\/\).*/{
15342     s//\1/
15343     q
15344     }
15345     s/.*/./; q'`
15346     test -d "$as_dir" && break
15347     done
15348     test -z "$as_dirs" || eval "mkdir $as_dirs"
15349     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15350    
15351    
15352     } # as_fn_mkdir_p
15353 michael 5052 if mkdir -p . 2>/dev/null; then
15354 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
15355 michael 5052 else
15356     test -d ./-p && rmdir ./-p
15357     as_mkdir_p=false
15358     fi
15359    
15360    
15361 michael 5059 # as_fn_executable_p FILE
15362     # -----------------------
15363     # Test if FILE is an executable regular file.
15364     as_fn_executable_p ()
15365     {
15366     test -f "$1" && test -x "$1"
15367     } # as_fn_executable_p
15368     as_test_x='test -x'
15369     as_executable_p=as_fn_executable_p
15370    
15371 michael 5052 # Sed expression to map a string onto a valid CPP name.
15372     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15373    
15374     # Sed expression to map a string onto a valid variable name.
15375     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15376    
15377    
15378     exec 6>&1
15379 michael 5059 ## ----------------------------------- ##
15380     ## Main body of $CONFIG_STATUS script. ##
15381     ## ----------------------------------- ##
15382     _ASEOF
15383     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15384 michael 5052
15385 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15386     # Save the log message, to keep $0 and so on meaningful, and to
15387 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
15388     # values after options handling.
15389     ac_log="
15390 michael 5266 This file was extended by hopm $as_me TRUNK, which was
15391 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
15392 michael 5052
15393     CONFIG_FILES = $CONFIG_FILES
15394     CONFIG_HEADERS = $CONFIG_HEADERS
15395     CONFIG_LINKS = $CONFIG_LINKS
15396     CONFIG_COMMANDS = $CONFIG_COMMANDS
15397     $ $0 $@
15398    
15399     on `(hostname || uname -n) 2>/dev/null | sed 1q`
15400     "
15401    
15402     _ACEOF
15403    
15404 michael 5059 case $ac_config_files in *"
15405     "*) set x $ac_config_files; shift; ac_config_files=$*;;
15406     esac
15407    
15408     case $ac_config_headers in *"
15409     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15410     esac
15411    
15412    
15413     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15414 michael 5052 # Files that config.status was made for.
15415     config_files="$ac_config_files"
15416     config_headers="$ac_config_headers"
15417     config_commands="$ac_config_commands"
15418    
15419     _ACEOF
15420    
15421 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15422 michael 5052 ac_cs_usage="\
15423 michael 5059 \`$as_me' instantiates files and other configuration actions
15424     from templates according to the current configuration. Unless the files
15425     and actions are specified as TAGs, all are instantiated by default.
15426 michael 5052
15427 michael 5059 Usage: $0 [OPTION]... [TAG]...
15428 michael 5052
15429     -h, --help print this help, then exit
15430 michael 5059 -V, --version print version number and configuration settings, then exit
15431     --config print configuration, then exit
15432     -q, --quiet, --silent
15433     do not print progress messages
15434 michael 5052 -d, --debug don't remove temporary files
15435     --recheck update $as_me by reconfiguring in the same conditions
15436 michael 5059 --file=FILE[:TEMPLATE]
15437     instantiate the configuration file FILE
15438     --header=FILE[:TEMPLATE]
15439     instantiate the configuration header FILE
15440 michael 5052
15441     Configuration files:
15442     $config_files
15443    
15444     Configuration headers:
15445     $config_headers
15446    
15447     Configuration commands:
15448     $config_commands
15449    
15450 michael 5266 Report bugs to <bugs@ircd-hybrid.org>."
15451 michael 5052
15452     _ACEOF
15453 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15455 michael 5052 ac_cs_version="\\
15456 michael 5266 hopm config.status TRUNK
15457 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
15458     with options \\"\$ac_cs_config\\"
15459 michael 5052
15460 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
15461 michael 5052 This config.status script is free software; the Free Software Foundation
15462     gives unlimited permission to copy, distribute and modify it."
15463    
15464     ac_pwd='$ac_pwd'
15465     srcdir='$srcdir'
15466     INSTALL='$INSTALL'
15467 michael 5059 MKDIR_P='$MKDIR_P'
15468     AWK='$AWK'
15469     test -n "\$AWK" || AWK=awk
15470 michael 5052 _ACEOF
15471    
15472 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473     # The default lists apply if the user does not specify any file.
15474 michael 5052 ac_need_defaults=:
15475     while test $# != 0
15476     do
15477     case $1 in
15478 michael 5059 --*=?*)
15479 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15480     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15481     ac_shift=:
15482     ;;
15483 michael 5059 --*=)
15484     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15485     ac_optarg=
15486     ac_shift=:
15487     ;;
15488 michael 5052 *)
15489     ac_option=$1
15490     ac_optarg=$2
15491     ac_shift=shift
15492     ;;
15493     esac
15494    
15495     case $ac_option in
15496     # Handling of the options.
15497     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15498     ac_cs_recheck=: ;;
15499     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15500 michael 5059 $as_echo "$ac_cs_version"; exit ;;
15501     --config | --confi | --conf | --con | --co | --c )
15502     $as_echo "$ac_cs_config"; exit ;;
15503 michael 5052 --debug | --debu | --deb | --de | --d | -d )
15504     debug=: ;;
15505     --file | --fil | --fi | --f )
15506     $ac_shift
15507 michael 5059 case $ac_optarg in
15508     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15509     '') as_fn_error $? "missing file argument" ;;
15510     esac
15511     as_fn_append CONFIG_FILES " '$ac_optarg'"
15512 michael 5052 ac_need_defaults=false;;
15513     --header | --heade | --head | --hea )
15514     $ac_shift
15515 michael 5059 case $ac_optarg in
15516     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15517     esac
15518     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15519 michael 5052 ac_need_defaults=false;;
15520     --he | --h)
15521     # Conflict between --help and --header
15522 michael 5059 as_fn_error $? "ambiguous option: \`$1'
15523     Try \`$0 --help' for more information.";;
15524 michael 5052 --help | --hel | -h )
15525 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
15526 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15527     | -silent | --silent | --silen | --sile | --sil | --si | --s)
15528     ac_cs_silent=: ;;
15529    
15530     # This is an error.
15531 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
15532     Try \`$0 --help' for more information." ;;
15533 michael 5052
15534 michael 5059 *) as_fn_append ac_config_targets " $1"
15535 michael 5052 ac_need_defaults=false ;;
15536    
15537     esac
15538     shift
15539     done
15540    
15541     ac_configure_extra_args=
15542    
15543     if $ac_cs_silent; then
15544     exec 6>/dev/null
15545     ac_configure_extra_args="$ac_configure_extra_args --silent"
15546     fi
15547    
15548     _ACEOF
15549 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15550 michael 5052 if \$ac_cs_recheck; then
15551 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15552     shift
15553     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15554     CONFIG_SHELL='$SHELL'
15555 michael 5052 export CONFIG_SHELL
15556 michael 5059 exec "\$@"
15557 michael 5052 fi
15558    
15559     _ACEOF
15560 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 michael 5052 exec 5>>config.log
15562     {
15563     echo
15564     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15565     ## Running $as_me. ##
15566     _ASBOX
15567 michael 5059 $as_echo "$ac_log"
15568 michael 5052 } >&5
15569    
15570     _ACEOF
15571 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15572 michael 5052 #
15573     # INIT-COMMANDS
15574     #
15575     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15576    
15577 michael 5059
15578     # The HP-UX ksh and POSIX shell print the target directory to stdout
15579     # if CDPATH is set.
15580     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15581    
15582     sed_quote_subst='$sed_quote_subst'
15583     double_quote_subst='$double_quote_subst'
15584     delay_variable_subst='$delay_variable_subst'
15585     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15586     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15587     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15588     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15589     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15590     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15591     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
15592     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15593     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15594     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15595     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15596     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15597     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15598     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15599     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15600     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15601     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15602     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15603     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15604     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15605     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15606     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15607     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15608     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15609     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15610     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15611     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15612     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15613     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15614     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15615     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15616     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15617     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15618     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15619     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15620     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15621     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15622     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15623     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15624     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15625     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15626     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15627     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15628     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15629     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15630     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15631     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15632     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15633     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15634     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15635     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15636     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15637     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15638     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15639     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15640     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15641     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
15642     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15643     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15644     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
15645     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15646     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15647     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
15648     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15649     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15650     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15651     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15652     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15653     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15654     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15655     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15656     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15657     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15658     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15659     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15660     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15661     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15662     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15663     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15664     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15665     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15666     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15667     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15668     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15669     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15670     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15671     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15672     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15673     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15674     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15675     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15676     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15677     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15678     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15679     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15680     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15681     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15682     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15683     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15684     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15685     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15686     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15687     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15688     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15689     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15690     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15691     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15692     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15693     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15694     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15695     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15696     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15697     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15698     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15699     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15700     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15701     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15702     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15703     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15704     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15705     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15706     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15707     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15708     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15709     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15710     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15711     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15712 michael 5860 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
15713     configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
15714 michael 5059 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15715     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15716     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15717     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15718     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15719     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15720    
15721     LTCC='$LTCC'
15722     LTCFLAGS='$LTCFLAGS'
15723     compiler='$compiler_DEFAULT'
15724    
15725     # A function that is used when there is no print builtin or printf.
15726     func_fallback_echo ()
15727     {
15728     eval 'cat <<_LTECHO_EOF
15729     \$1
15730     _LTECHO_EOF'
15731     }
15732    
15733     # Quote evaled strings.
15734     for var in SHELL \
15735     ECHO \
15736     PATH_SEPARATOR \
15737     SED \
15738     GREP \
15739     EGREP \
15740     FGREP \
15741     LD \
15742     NM \
15743     LN_S \
15744     lt_SP2NL \
15745     lt_NL2SP \
15746     reload_flag \
15747     OBJDUMP \
15748     deplibs_check_method \
15749     file_magic_cmd \
15750     file_magic_glob \
15751     want_nocaseglob \
15752     DLLTOOL \
15753     sharedlib_from_linklib_cmd \
15754     AR \
15755     AR_FLAGS \
15756     archiver_list_spec \
15757     STRIP \
15758     RANLIB \
15759     CC \
15760     CFLAGS \
15761     compiler \
15762     lt_cv_sys_global_symbol_pipe \
15763     lt_cv_sys_global_symbol_to_cdecl \
15764     lt_cv_sys_global_symbol_to_import \
15765     lt_cv_sys_global_symbol_to_c_name_address \
15766     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15767     lt_cv_nm_interface \
15768     nm_file_list_spec \
15769     lt_cv_truncate_bin \
15770     lt_prog_compiler_no_builtin_flag \
15771     lt_prog_compiler_pic \
15772     lt_prog_compiler_wl \
15773     lt_prog_compiler_static \
15774     lt_cv_prog_compiler_c_o \
15775     need_locks \
15776     MANIFEST_TOOL \
15777     DSYMUTIL \
15778     NMEDIT \
15779     LIPO \
15780     OTOOL \
15781     OTOOL64 \
15782     shrext_cmds \
15783     export_dynamic_flag_spec \
15784     whole_archive_flag_spec \
15785     compiler_needs_object \
15786     with_gnu_ld \
15787     allow_undefined_flag \
15788     no_undefined_flag \
15789     hardcode_libdir_flag_spec \
15790     hardcode_libdir_separator \
15791     exclude_expsyms \
15792     include_expsyms \
15793     file_list_spec \
15794     variables_saved_for_relink \
15795     libname_spec \
15796     library_names_spec \
15797     soname_spec \
15798     install_override_mode \
15799     finish_eval \
15800     old_striplib \
15801     striplib; do
15802     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15803     *[\\\\\\\`\\"\\\$]*)
15804     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15805     ;;
15806     *)
15807     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15808     ;;
15809     esac
15810     done
15811    
15812     # Double-quote double-evaled strings.
15813     for var in reload_cmds \
15814     old_postinstall_cmds \
15815     old_postuninstall_cmds \
15816     old_archive_cmds \
15817     extract_expsyms_cmds \
15818     old_archive_from_new_cmds \
15819     old_archive_from_expsyms_cmds \
15820     archive_cmds \
15821     archive_expsym_cmds \
15822     module_cmds \
15823     module_expsym_cmds \
15824     export_symbols_cmds \
15825     prelink_cmds \
15826     postlink_cmds \
15827     postinstall_cmds \
15828     postuninstall_cmds \
15829     finish_cmds \
15830     sys_lib_search_path_spec \
15831 michael 5860 configure_time_dlsearch_path \
15832     configure_time_lt_sys_library_path; do
15833 michael 5059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15834     *[\\\\\\\`\\"\\\$]*)
15835     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15836     ;;
15837     *)
15838     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15839     ;;
15840     esac
15841     done
15842    
15843     ac_aux_dir='$ac_aux_dir'
15844    
15845     # See if we are running on zsh, and set the options that allow our
15846     # commands through without removal of \ escapes INIT.
15847     if test -n "\${ZSH_VERSION+set}"; then
15848     setopt NO_GLOB_SUBST
15849     fi
15850    
15851    
15852     PACKAGE='$PACKAGE'
15853     VERSION='$VERSION'
15854     RM='$RM'
15855     ofile='$ofile'
15856    
15857    
15858    
15859    
15860 michael 5052 _ACEOF
15861    
15862 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15863 michael 5052
15864     # Handling of arguments.
15865     for ac_config_target in $ac_config_targets
15866     do
15867     case $ac_config_target in
15868     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
15869     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15870 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15871 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15872 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15873 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15874 michael 5260 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
15875     "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
15876 michael 5052
15877 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15878 michael 5052 esac
15879     done
15880    
15881    
15882     # If the user did not use the arguments to specify the items to instantiate,
15883     # then the envvar interface is used. Set only those that are not.
15884     # We use the long form for the default assignment because of an extremely
15885     # bizarre bug on SunOS 4.1.3.
15886     if $ac_need_defaults; then
15887     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15888     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15889     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15890     fi
15891    
15892     # Have a temporary directory for convenience. Make it in the build tree
15893     # simply because there is no reason against having it here, and in addition,
15894     # creating and moving files from /tmp can sometimes cause problems.
15895     # Hook for its removal unless debugging.
15896     # Note that there is a small window in which the directory will not be cleaned:
15897     # after its creation but before its name has been assigned to `$tmp'.
15898     $debug ||
15899     {
15900 michael 5059 tmp= ac_tmp=
15901 michael 5052 trap 'exit_status=$?
15902 michael 5059 : "${ac_tmp:=$tmp}"
15903     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15904 michael 5052 ' 0
15905 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
15906 michael 5052 }
15907     # Create a (secure) tmp directory for tmp files.
15908    
15909     {
15910     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15911 michael 5059 test -d "$tmp"
15912 michael 5052 } ||
15913     {
15914     tmp=./conf$$-$RANDOM
15915     (umask 077 && mkdir "$tmp")
15916 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15917     ac_tmp=$tmp
15918 michael 5052
15919 michael 5059 # Set up the scripts for CONFIG_FILES section.
15920     # No need to generate them if there are no CONFIG_FILES.
15921     # This happens for instance with `./config.status config.h'.
15922 michael 5052 if test -n "$CONFIG_FILES"; then
15923    
15924 michael 5059
15925     ac_cr=`echo X | tr X '\015'`
15926     # On cygwin, bash can eat \r inside `` if the user requested igncr.
15927     # But we know of no other shell where ac_cr would be empty at this
15928     # point, so we can use a bashism as a fallback.
15929     if test "x$ac_cr" = x; then
15930     eval ac_cr=\$\'\\r\'
15931     fi
15932     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15933     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15934     ac_cs_awk_cr='\\r'
15935     else
15936     ac_cs_awk_cr=$ac_cr
15937     fi
15938    
15939     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15940 michael 5052 _ACEOF
15941    
15942    
15943 michael 5059 {
15944     echo "cat >conf$$subs.awk <<_ACEOF" &&
15945     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15946     echo "_ACEOF"
15947     } >conf$$subs.sh ||
15948     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15949     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15950 michael 5052 ac_delim='%!_!# '
15951     for ac_last_try in false false false false false :; do
15952 michael 5059 . ./conf$$subs.sh ||
15953     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15954 michael 5052
15955 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15956     if test $ac_delim_n = $ac_delim_num; then
15957 michael 5052 break
15958     elif $ac_last_try; then
15959 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15960 michael 5052 else
15961     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15962     fi
15963     done
15964 michael 5059 rm -f conf$$subs.sh
15965 michael 5052
15966 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15967     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15968     _ACEOF
15969     sed -n '
15970     h
15971     s/^/S["/; s/!.*/"]=/
15972     p
15973     g
15974     s/^[^!]*!//
15975     :repl
15976     t repl
15977     s/'"$ac_delim"'$//
15978     t delim
15979     :nl
15980     h
15981     s/\(.\{148\}\)..*/\1/
15982     t more1
15983     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15984     p
15985     n
15986     b repl
15987     :more1
15988     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15989     p
15990     g
15991     s/.\{148\}//
15992     t nl
15993     :delim
15994     h
15995     s/\(.\{148\}\)..*/\1/
15996     t more2
15997     s/["\\]/\\&/g; s/^/"/; s/$/"/
15998     p
15999     b
16000     :more2
16001     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16002     p
16003     g
16004     s/.\{148\}//
16005     t delim
16006     ' <conf$$subs.awk | sed '
16007     /^[^""]/{
16008     N
16009     s/\n//
16010     }
16011     ' >>$CONFIG_STATUS || ac_write_fail=1
16012     rm -f conf$$subs.awk
16013     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014     _ACAWK
16015     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16016     for (key in S) S_is_set[key] = 1
16017     FS = ""
16018 michael 5052
16019 michael 5059 }
16020     {
16021     line = $ 0
16022     nfields = split(line, field, "@")
16023     substed = 0
16024     len = length(field[1])
16025     for (i = 2; i < nfields; i++) {
16026     key = field[i]
16027     keylen = length(key)
16028     if (S_is_set[key]) {
16029     value = S[key]
16030     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16031     len += length(value) + length(field[++i])
16032     substed = 1
16033     } else
16034     len += 1 + keylen
16035     }
16036    
16037     print line
16038     }
16039    
16040     _ACAWK
16041 michael 5052 _ACEOF
16042 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16043     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16044     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16045     else
16046     cat
16047     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16048     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16049 michael 5052 _ACEOF
16050    
16051 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16052     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16053     # trailing colons and then remove the whole line if VPATH becomes empty
16054     # (actually we leave an empty line to preserve line numbers).
16055     if test "x$srcdir" = x.; then
16056     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16057     h
16058     s///
16059     s/^/:/
16060     s/[ ]*$/:/
16061     s/:\$(srcdir):/:/g
16062     s/:\${srcdir}:/:/g
16063     s/:@srcdir@:/:/g
16064     s/^:*//
16065     s/:*$//
16066     x
16067     s/\(=[ ]*\).*/\1/
16068     G
16069     s/\n//
16070     s/^[^=]*=[ ]*$//
16071     }'
16072     fi
16073 michael 5052
16074 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16075     fi # test -n "$CONFIG_FILES"
16076    
16077     # Set up the scripts for CONFIG_HEADERS section.
16078     # No need to generate them if there are no CONFIG_HEADERS.
16079     # This happens for instance with `./config.status Makefile'.
16080     if test -n "$CONFIG_HEADERS"; then
16081     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16082     BEGIN {
16083 michael 5052 _ACEOF
16084    
16085 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
16086     # here-document in config.status, that substitutes the proper values into
16087     # config.h.in to produce config.h.
16088    
16089     # Create a delimiter string that does not exist in confdefs.h, to ease
16090     # handling of long lines.
16091     ac_delim='%!_!# '
16092     for ac_last_try in false false :; do
16093     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16094     if test -z "$ac_tt"; then
16095 michael 5052 break
16096     elif $ac_last_try; then
16097 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16098 michael 5052 else
16099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16100     fi
16101     done
16102    
16103 michael 5059 # For the awk script, D is an array of macro values keyed by name,
16104     # likewise P contains macro parameters if any. Preserve backslash
16105     # newline sequences.
16106 michael 5052
16107 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16108     sed -n '
16109     s/.\{148\}/&'"$ac_delim"'/g
16110     t rset
16111     :rset
16112     s/^[ ]*#[ ]*define[ ][ ]*/ /
16113     t def
16114     d
16115     :def
16116     s/\\$//
16117     t bsnl
16118     s/["\\]/\\&/g
16119     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16120     D["\1"]=" \3"/p
16121     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16122     d
16123     :bsnl
16124     s/["\\]/\\&/g
16125     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16126     D["\1"]=" \3\\\\\\n"\\/p
16127     t cont
16128     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16129     t cont
16130     d
16131     :cont
16132     n
16133     s/.\{148\}/&'"$ac_delim"'/g
16134     t clear
16135     :clear
16136     s/\\$//
16137     t bsnlc
16138     s/["\\]/\\&/g; s/^/"/; s/$/"/p
16139     d
16140     :bsnlc
16141     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16142     b cont
16143     ' <confdefs.h | sed '
16144     s/'"$ac_delim"'/"\\\
16145     "/g' >>$CONFIG_STATUS || ac_write_fail=1
16146    
16147     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148     for (key in D) D_is_set[key] = 1
16149     FS = ""
16150     }
16151     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16152     line = \$ 0
16153     split(line, arg, " ")
16154     if (arg[1] == "#") {
16155     defundef = arg[2]
16156     mac1 = arg[3]
16157     } else {
16158     defundef = substr(arg[1], 2)
16159     mac1 = arg[2]
16160     }
16161     split(mac1, mac2, "(") #)
16162     macro = mac2[1]
16163     prefix = substr(line, 1, index(line, defundef) - 1)
16164     if (D_is_set[macro]) {
16165     # Preserve the white space surrounding the "#".
16166     print prefix "define", macro P[macro] D[macro]
16167     next
16168     } else {
16169     # Replace #undef with comments. This is necessary, for example,
16170     # in the case of _POSIX_SOURCE, which is predefined and required
16171     # on some systems where configure will not decide to define it.
16172     if (defundef == "undef") {
16173     print "/*", prefix defundef, macro, "*/"
16174     next
16175     }
16176     }
16177     }
16178     { print }
16179     _ACAWK
16180 michael 5052 _ACEOF
16181 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16183     fi # test -n "$CONFIG_HEADERS"
16184 michael 5052
16185    
16186 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16187     shift
16188     for ac_tag
16189 michael 5052 do
16190     case $ac_tag in
16191     :[FHLC]) ac_mode=$ac_tag; continue;;
16192     esac
16193     case $ac_mode$ac_tag in
16194     :[FHL]*:*);;
16195 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16196 michael 5052 :[FH]-) ac_tag=-:-;;
16197     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16198     esac
16199     ac_save_IFS=$IFS
16200     IFS=:
16201     set x $ac_tag
16202     IFS=$ac_save_IFS
16203     shift
16204     ac_file=$1
16205     shift
16206    
16207     case $ac_mode in
16208     :L) ac_source=$1;;
16209     :[FH])
16210     ac_file_inputs=
16211     for ac_f
16212     do
16213     case $ac_f in
16214 michael 5059 -) ac_f="$ac_tmp/stdin";;
16215 michael 5052 *) # Look for the file first in the build tree, then in the source tree
16216     # (if the path is not absolute). The absolute path cannot be DOS-style,
16217     # because $ac_f cannot contain `:'.
16218     test -f "$ac_f" ||
16219     case $ac_f in
16220     [\\/$]*) false;;
16221     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16222     esac ||
16223 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16224 michael 5052 esac
16225 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16226     as_fn_append ac_file_inputs " '$ac_f'"
16227 michael 5052 done
16228    
16229     # Let's still pretend it is `configure' which instantiates (i.e., don't
16230     # use $as_me), people would be surprised to read:
16231     # /* config.h. Generated by config.status. */
16232 michael 5059 configure_input='Generated from '`
16233     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16234     `' by configure.'
16235 michael 5052 if test x"$ac_file" != x-; then
16236     configure_input="$ac_file. $configure_input"
16237 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16238     $as_echo "$as_me: creating $ac_file" >&6;}
16239 michael 5052 fi
16240 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
16241     case $configure_input in #(
16242     *\&* | *\|* | *\\* )
16243     ac_sed_conf_input=`$as_echo "$configure_input" |
16244     sed 's/[\\\\&|]/\\\\&/g'`;; #(
16245     *) ac_sed_conf_input=$configure_input;;
16246     esac
16247 michael 5052
16248     case $ac_tag in
16249 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16250     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16251 michael 5052 esac
16252     ;;
16253     esac
16254    
16255     ac_dir=`$as_dirname -- "$ac_file" ||
16256     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16257     X"$ac_file" : 'X\(//\)[^/]' \| \
16258     X"$ac_file" : 'X\(//\)$' \| \
16259     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16260 michael 5059 $as_echo X"$ac_file" |
16261 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16262     s//\1/
16263     q
16264     }
16265     /^X\(\/\/\)[^/].*/{
16266     s//\1/
16267     q
16268     }
16269     /^X\(\/\/\)$/{
16270     s//\1/
16271     q
16272     }
16273     /^X\(\/\).*/{
16274     s//\1/
16275     q
16276     }
16277     s/.*/./; q'`
16278 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
16279 michael 5052 ac_builddir=.
16280    
16281     case "$ac_dir" in
16282     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16283     *)
16284 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16285 michael 5052 # A ".." for each directory in $ac_dir_suffix.
16286 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16287 michael 5052 case $ac_top_builddir_sub in
16288     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16289     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16290     esac ;;
16291     esac
16292     ac_abs_top_builddir=$ac_pwd
16293     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16294     # for backward compatibility:
16295     ac_top_builddir=$ac_top_build_prefix
16296    
16297     case $srcdir in
16298     .) # We are building in place.
16299     ac_srcdir=.
16300     ac_top_srcdir=$ac_top_builddir_sub
16301     ac_abs_top_srcdir=$ac_pwd ;;
16302     [\\/]* | ?:[\\/]* ) # Absolute name.
16303     ac_srcdir=$srcdir$ac_dir_suffix;
16304     ac_top_srcdir=$srcdir
16305     ac_abs_top_srcdir=$srcdir ;;
16306     *) # Relative name.
16307     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16308     ac_top_srcdir=$ac_top_build_prefix$srcdir
16309     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16310     esac
16311     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16312    
16313    
16314     case $ac_mode in
16315     :F)
16316     #
16317     # CONFIG_FILE
16318     #
16319    
16320     case $INSTALL in
16321     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16322     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16323     esac
16324 michael 5059 ac_MKDIR_P=$MKDIR_P
16325     case $MKDIR_P in
16326     [\\/$]* | ?:[\\/]* ) ;;
16327     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16328     esac
16329 michael 5052 _ACEOF
16330    
16331 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 michael 5052 # If the template does not know about datarootdir, expand it.
16333     # FIXME: This hack should be removed a few years after 2.60.
16334     ac_datarootdir_hack=; ac_datarootdir_seen=
16335 michael 5059 ac_sed_dataroot='
16336     /datarootdir/ {
16337 michael 5052 p
16338     q
16339     }
16340     /@datadir@/p
16341     /@docdir@/p
16342     /@infodir@/p
16343     /@localedir@/p
16344 michael 5059 /@mandir@/p'
16345     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16346 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
16347     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16348 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16349     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16350 michael 5052 _ACEOF
16351 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16352 michael 5052 ac_datarootdir_hack='
16353     s&@datadir@&$datadir&g
16354     s&@docdir@&$docdir&g
16355     s&@infodir@&$infodir&g
16356     s&@localedir@&$localedir&g
16357     s&@mandir@&$mandir&g
16358 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
16359 michael 5052 esac
16360     _ACEOF
16361    
16362     # Neutralize VPATH when `$srcdir' = `.'.
16363     # Shell code in configure.ac might set extrasub.
16364     # FIXME: do we really want to maintain this feature?
16365 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366     ac_sed_extra="$ac_vpsub
16367 michael 5052 $extrasub
16368     _ACEOF
16369 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16370 michael 5052 :t
16371     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16372 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
16373 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
16374 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16375 michael 5052 s&@srcdir@&$ac_srcdir&;t t
16376     s&@abs_srcdir@&$ac_abs_srcdir&;t t
16377     s&@top_srcdir@&$ac_top_srcdir&;t t
16378     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16379     s&@builddir@&$ac_builddir&;t t
16380     s&@abs_builddir@&$ac_abs_builddir&;t t
16381     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16382     s&@INSTALL@&$ac_INSTALL&;t t
16383 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16384 michael 5052 $ac_datarootdir_hack
16385 michael 5059 "
16386     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16387     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16388 michael 5052
16389     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16390 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16391     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16392     "$ac_tmp/out"`; test -z "$ac_out"; } &&
16393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16394     which seems to be undefined. Please make sure it is defined" >&5
16395     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16396     which seems to be undefined. Please make sure it is defined" >&2;}
16397 michael 5052
16398 michael 5059 rm -f "$ac_tmp/stdin"
16399 michael 5052 case $ac_file in
16400 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16401     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16402     esac \
16403     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16404 michael 5052 ;;
16405     :H)
16406     #
16407     # CONFIG_HEADER
16408     #
16409     if test x"$ac_file" != x-; then
16410 michael 5059 {
16411     $as_echo "/* $configure_input */" \
16412     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16413     } >"$ac_tmp/config.h" \
16414     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16415     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16416     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16417     $as_echo "$as_me: $ac_file is unchanged" >&6;}
16418 michael 5052 else
16419 michael 5059 rm -f "$ac_file"
16420     mv "$ac_tmp/config.h" "$ac_file" \
16421     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16422 michael 5052 fi
16423     else
16424 michael 5059 $as_echo "/* $configure_input */" \
16425     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16426     || as_fn_error $? "could not create -" "$LINENO" 5
16427 michael 5052 fi
16428 michael 5059 # Compute "$ac_file"'s index in $config_headers.
16429     _am_arg="$ac_file"
16430 michael 5052 _am_stamp_count=1
16431     for _am_header in $config_headers :; do
16432     case $_am_header in
16433 michael 5059 $_am_arg | $_am_arg:* )
16434 michael 5052 break ;;
16435     * )
16436     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16437     esac
16438     done
16439 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16440     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16441     X"$_am_arg" : 'X\(//\)[^/]' \| \
16442     X"$_am_arg" : 'X\(//\)$' \| \
16443     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16444     $as_echo X"$_am_arg" |
16445 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16446     s//\1/
16447     q
16448     }
16449     /^X\(\/\/\)[^/].*/{
16450     s//\1/
16451     q
16452     }
16453     /^X\(\/\/\)$/{
16454     s//\1/
16455     q
16456     }
16457     /^X\(\/\).*/{
16458     s//\1/
16459     q
16460     }
16461     s/.*/./; q'`/stamp-h$_am_stamp_count
16462     ;;
16463    
16464 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16465     $as_echo "$as_me: executing $ac_file commands" >&6;}
16466 michael 5052 ;;
16467     esac
16468    
16469    
16470     case $ac_file$ac_mode in
16471 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16472     # Older Autoconf quotes --file arguments for eval, but not when files
16473     # are listed without --file. Let's play safe and only enable the eval
16474     # if we detect the quoting.
16475     case $CONFIG_FILES in
16476     *\'*) eval set x "$CONFIG_FILES" ;;
16477     *) set x $CONFIG_FILES ;;
16478     esac
16479     shift
16480     for mf
16481     do
16482     # Strip MF so we end up with the name of the file.
16483     mf=`echo "$mf" | sed -e 's/:.*$//'`
16484     # Check whether this is an Automake generated Makefile or not.
16485     # We used to match only the files named 'Makefile.in', but
16486     # some people rename them; so instead we look at the file content.
16487     # Grep'ing the first line is not enough: some people post-process
16488     # each Makefile.in and add a new line on top of each file to say so.
16489     # Grep'ing the whole file is not good either: AIX grep has a line
16490     # limit of 2048, but all sed's we know have understand at least 4000.
16491     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16492     dirpart=`$as_dirname -- "$mf" ||
16493 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16494     X"$mf" : 'X\(//\)[^/]' \| \
16495     X"$mf" : 'X\(//\)$' \| \
16496     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16497 michael 5059 $as_echo X"$mf" |
16498 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16499     s//\1/
16500     q
16501     }
16502     /^X\(\/\/\)[^/].*/{
16503     s//\1/
16504     q
16505     }
16506     /^X\(\/\/\)$/{
16507     s//\1/
16508     q
16509     }
16510     /^X\(\/\).*/{
16511     s//\1/
16512     q
16513     }
16514     s/.*/./; q'`
16515 michael 5059 else
16516     continue
16517     fi
16518     # Extract the definition of DEPDIR, am__include, and am__quote
16519     # from the Makefile without running 'make'.
16520     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16521     test -z "$DEPDIR" && continue
16522     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16523     test -z "$am__include" && continue
16524     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16525     # Find all dependency output files, they are included files with
16526     # $(DEPDIR) in their names. We invoke sed twice because it is the
16527     # simplest approach to changing $(DEPDIR) to its actual value in the
16528     # expansion.
16529     for file in `sed -n "
16530     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16531     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16532     # Make sure the directory exists.
16533     test -f "$dirpart/$file" && continue
16534     fdir=`$as_dirname -- "$file" ||
16535 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16536     X"$file" : 'X\(//\)[^/]' \| \
16537     X"$file" : 'X\(//\)$' \| \
16538     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16539 michael 5059 $as_echo X"$file" |
16540 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16541     s//\1/
16542     q
16543     }
16544     /^X\(\/\/\)[^/].*/{
16545     s//\1/
16546     q
16547     }
16548     /^X\(\/\/\)$/{
16549     s//\1/
16550     q
16551     }
16552     /^X\(\/\).*/{
16553     s//\1/
16554     q
16555     }
16556     s/.*/./; q'`
16557 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16558     # echo "creating $dirpart/$file"
16559     echo '# dummy' > "$dirpart/$file"
16560 michael 5052 done
16561     done
16562 michael 5059 }
16563 michael 5052 ;;
16564 michael 5059 "libtool":C)
16565 michael 5052
16566 michael 5059 # See if we are running on zsh, and set the options that allow our
16567     # commands through without removal of \ escapes.
16568     if test -n "${ZSH_VERSION+set}"; then
16569     setopt NO_GLOB_SUBST
16570     fi
16571    
16572     cfgfile=${ofile}T
16573     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16574     $RM "$cfgfile"
16575    
16576     cat <<_LT_EOF >> "$cfgfile"
16577     #! $SHELL
16578     # Generated automatically by $as_me ($PACKAGE) $VERSION
16579     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16580     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16581    
16582     # Provide generalized library-building support services.
16583     # Written by Gordon Matzigkeit, 1996
16584    
16585     # Copyright (C) 2014 Free Software Foundation, Inc.
16586     # This is free software; see the source for copying conditions. There is NO
16587     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16588    
16589     # GNU Libtool is free software; you can redistribute it and/or modify
16590     # it under the terms of the GNU General Public License as published by
16591     # the Free Software Foundation; either version 2 of of the License, or
16592     # (at your option) any later version.
16593     #
16594     # As a special exception to the GNU General Public License, if you
16595     # distribute this file as part of a program or library that is built
16596     # using GNU Libtool, you may include this file under the same
16597     # distribution terms that you use for the rest of that program.
16598     #
16599     # GNU Libtool is distributed in the hope that it will be useful, but
16600     # WITHOUT ANY WARRANTY; without even the implied warranty of
16601     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16602     # GNU General Public License for more details.
16603     #
16604     # You should have received a copy of the GNU General Public License
16605     # along with this program. If not, see <http://www.gnu.org/licenses/>.
16606    
16607    
16608     # The names of the tagged configurations supported by this script.
16609     available_tags=''
16610    
16611 michael 5433 # Configured defaults for sys_lib_dlsearch_path munging.
16612 michael 5860 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
16613 michael 5433
16614 michael 5059 # ### BEGIN LIBTOOL CONFIG
16615    
16616     # Which release of libtool.m4 was used?
16617     macro_version=$macro_version
16618     macro_revision=$macro_revision
16619    
16620     # Whether or not to build shared libraries.
16621     build_libtool_libs=$enable_shared
16622    
16623     # Whether or not to build static libraries.
16624     build_old_libs=$enable_static
16625    
16626     # What type of objects to build.
16627     pic_mode=$pic_mode
16628    
16629     # Whether or not to optimize for fast installation.
16630     fast_install=$enable_fast_install
16631    
16632     # Shared archive member basename,for filename based shared library versioning on AIX.
16633     shared_archive_member_spec=$shared_archive_member_spec
16634    
16635     # Shell to use when invoking shell scripts.
16636     SHELL=$lt_SHELL
16637    
16638     # An echo program that protects backslashes.
16639     ECHO=$lt_ECHO
16640    
16641     # The PATH separator for the build system.
16642     PATH_SEPARATOR=$lt_PATH_SEPARATOR
16643    
16644     # The host system.
16645     host_alias=$host_alias
16646     host=$host
16647     host_os=$host_os
16648    
16649     # The build system.
16650     build_alias=$build_alias
16651     build=$build
16652     build_os=$build_os
16653    
16654     # A sed program that does not truncate output.
16655     SED=$lt_SED
16656    
16657     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16658     Xsed="\$SED -e 1s/^X//"
16659    
16660     # A grep program that handles long lines.
16661     GREP=$lt_GREP
16662    
16663     # An ERE matcher.
16664     EGREP=$lt_EGREP
16665    
16666     # A literal string matcher.
16667     FGREP=$lt_FGREP
16668    
16669     # A BSD- or MS-compatible name lister.
16670     NM=$lt_NM
16671    
16672     # Whether we need soft or hard links.
16673     LN_S=$lt_LN_S
16674    
16675     # What is the maximum length of a command?
16676     max_cmd_len=$max_cmd_len
16677    
16678     # Object file suffix (normally "o").
16679     objext=$ac_objext
16680    
16681     # Executable file suffix (normally "").
16682     exeext=$exeext
16683    
16684     # whether the shell understands "unset".
16685     lt_unset=$lt_unset
16686    
16687     # turn spaces into newlines.
16688     SP2NL=$lt_lt_SP2NL
16689    
16690     # turn newlines into spaces.
16691     NL2SP=$lt_lt_NL2SP
16692    
16693     # convert \$build file names to \$host format.
16694     to_host_file_cmd=$lt_cv_to_host_file_cmd
16695    
16696     # convert \$build files to toolchain format.
16697     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16698    
16699     # An object symbol dumper.
16700     OBJDUMP=$lt_OBJDUMP
16701    
16702     # Method to check whether dependent libraries are shared objects.
16703     deplibs_check_method=$lt_deplibs_check_method
16704    
16705     # Command to use when deplibs_check_method = "file_magic".
16706     file_magic_cmd=$lt_file_magic_cmd
16707    
16708     # How to find potential files when deplibs_check_method = "file_magic".
16709     file_magic_glob=$lt_file_magic_glob
16710    
16711     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16712     want_nocaseglob=$lt_want_nocaseglob
16713    
16714     # DLL creation program.
16715     DLLTOOL=$lt_DLLTOOL
16716    
16717     # Command to associate shared and link libraries.
16718     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16719    
16720     # The archiver.
16721     AR=$lt_AR
16722    
16723     # Flags to create an archive.
16724     AR_FLAGS=$lt_AR_FLAGS
16725    
16726     # How to feed a file listing to the archiver.
16727     archiver_list_spec=$lt_archiver_list_spec
16728    
16729     # A symbol stripping program.
16730     STRIP=$lt_STRIP
16731    
16732     # Commands used to install an old-style archive.
16733     RANLIB=$lt_RANLIB
16734     old_postinstall_cmds=$lt_old_postinstall_cmds
16735     old_postuninstall_cmds=$lt_old_postuninstall_cmds
16736    
16737     # Whether to use a lock for old archive extraction.
16738     lock_old_archive_extraction=$lock_old_archive_extraction
16739    
16740     # A C compiler.
16741     LTCC=$lt_CC
16742    
16743     # LTCC compiler flags.
16744     LTCFLAGS=$lt_CFLAGS
16745    
16746     # Take the output of nm and produce a listing of raw symbols and C names.
16747     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16748    
16749     # Transform the output of nm in a proper C declaration.
16750     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16751    
16752     # Transform the output of nm into a list of symbols to manually relocate.
16753     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
16754    
16755     # Transform the output of nm in a C name address pair.
16756     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16757    
16758     # Transform the output of nm in a C name address pair when lib prefix is needed.
16759     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16760    
16761     # The name lister interface.
16762     nm_interface=$lt_lt_cv_nm_interface
16763    
16764     # Specify filename containing input files for \$NM.
16765     nm_file_list_spec=$lt_nm_file_list_spec
16766    
16767     # The root where to search for dependent libraries,and where our libraries should be installed.
16768     lt_sysroot=$lt_sysroot
16769    
16770     # Command to truncate a binary pipe.
16771     lt_truncate_bin=$lt_lt_cv_truncate_bin
16772    
16773     # The name of the directory that contains temporary libtool files.
16774     objdir=$objdir
16775    
16776     # Used to examine libraries when file_magic_cmd begins with "file".
16777     MAGIC_CMD=$MAGIC_CMD
16778    
16779     # Must we lock files when doing compilation?
16780     need_locks=$lt_need_locks
16781    
16782     # Manifest tool.
16783     MANIFEST_TOOL=$lt_MANIFEST_TOOL
16784    
16785     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16786     DSYMUTIL=$lt_DSYMUTIL
16787    
16788     # Tool to change global to local symbols on Mac OS X.
16789     NMEDIT=$lt_NMEDIT
16790    
16791     # Tool to manipulate fat objects and archives on Mac OS X.
16792     LIPO=$lt_LIPO
16793    
16794     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16795     OTOOL=$lt_OTOOL
16796    
16797     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16798     OTOOL64=$lt_OTOOL64
16799    
16800     # Old archive suffix (normally "a").
16801     libext=$libext
16802    
16803     # Shared library suffix (normally ".so").
16804     shrext_cmds=$lt_shrext_cmds
16805    
16806     # The commands to extract the exported symbol list from a shared archive.
16807     extract_expsyms_cmds=$lt_extract_expsyms_cmds
16808    
16809     # Variables whose values should be saved in libtool wrapper scripts and
16810     # restored at link time.
16811     variables_saved_for_relink=$lt_variables_saved_for_relink
16812    
16813     # Do we need the "lib" prefix for modules?
16814     need_lib_prefix=$need_lib_prefix
16815    
16816     # Do we need a version for libraries?
16817     need_version=$need_version
16818    
16819     # Library versioning type.
16820     version_type=$version_type
16821    
16822     # Shared library runtime path variable.
16823     runpath_var=$runpath_var
16824    
16825     # Shared library path variable.
16826     shlibpath_var=$shlibpath_var
16827    
16828     # Is shlibpath searched before the hard-coded library search path?
16829     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16830    
16831     # Format of library name prefix.
16832     libname_spec=$lt_libname_spec
16833    
16834     # List of archive names. First name is the real one, the rest are links.
16835     # The last name is the one that the linker finds with -lNAME
16836     library_names_spec=$lt_library_names_spec
16837    
16838     # The coded name of the library, if different from the real name.
16839     soname_spec=$lt_soname_spec
16840    
16841     # Permission mode override for installation of shared libraries.
16842     install_override_mode=$lt_install_override_mode
16843    
16844     # Command to use after installation of a shared archive.
16845     postinstall_cmds=$lt_postinstall_cmds
16846    
16847     # Command to use after uninstallation of a shared archive.
16848     postuninstall_cmds=$lt_postuninstall_cmds
16849    
16850     # Commands used to finish a libtool library installation in a directory.
16851     finish_cmds=$lt_finish_cmds
16852    
16853     # As "finish_cmds", except a single script fragment to be evaled but
16854     # not shown.
16855     finish_eval=$lt_finish_eval
16856    
16857     # Whether we should hardcode library paths into libraries.
16858     hardcode_into_libs=$hardcode_into_libs
16859    
16860     # Compile-time system search path for libraries.
16861     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16862    
16863 michael 5860 # Detected run-time system search path for libraries.
16864     sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16865 michael 5059
16866 michael 5860 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16867     configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16868    
16869 michael 5059 # Whether dlopen is supported.
16870     dlopen_support=$enable_dlopen
16871    
16872     # Whether dlopen of programs is supported.
16873     dlopen_self=$enable_dlopen_self
16874    
16875     # Whether dlopen of statically linked programs is supported.
16876     dlopen_self_static=$enable_dlopen_self_static
16877    
16878     # Commands to strip libraries.
16879     old_striplib=$lt_old_striplib
16880     striplib=$lt_striplib
16881    
16882    
16883     # The linker used to build libraries.
16884     LD=$lt_LD
16885    
16886     # How to create reloadable object files.
16887     reload_flag=$lt_reload_flag
16888     reload_cmds=$lt_reload_cmds
16889    
16890     # Commands used to build an old-style archive.
16891     old_archive_cmds=$lt_old_archive_cmds
16892    
16893     # A language specific compiler.
16894     CC=$lt_compiler
16895    
16896     # Is the compiler the GNU compiler?
16897     with_gcc=$GCC
16898    
16899     # Compiler flag to turn off builtin functions.
16900     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16901    
16902     # Additional compiler flags for building library objects.
16903     pic_flag=$lt_lt_prog_compiler_pic
16904    
16905     # How to pass a linker flag through the compiler.
16906     wl=$lt_lt_prog_compiler_wl
16907    
16908     # Compiler flag to prevent dynamic linking.
16909     link_static_flag=$lt_lt_prog_compiler_static
16910    
16911     # Does compiler simultaneously support -c and -o options?
16912     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16913    
16914     # Whether or not to add -lc for building shared libraries.
16915     build_libtool_need_lc=$archive_cmds_need_lc
16916    
16917     # Whether or not to disallow shared libs when runtime libs are static.
16918     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16919    
16920     # Compiler flag to allow reflexive dlopens.
16921     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16922    
16923     # Compiler flag to generate shared objects directly from archives.
16924     whole_archive_flag_spec=$lt_whole_archive_flag_spec
16925    
16926     # Whether the compiler copes with passing no objects directly.
16927     compiler_needs_object=$lt_compiler_needs_object
16928    
16929     # Create an old-style archive from a shared archive.
16930     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16931    
16932     # Create a temporary old-style archive to link instead of a shared archive.
16933     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16934    
16935     # Commands used to build a shared archive.
16936     archive_cmds=$lt_archive_cmds
16937     archive_expsym_cmds=$lt_archive_expsym_cmds
16938    
16939     # Commands used to build a loadable module if different from building
16940     # a shared archive.
16941     module_cmds=$lt_module_cmds
16942     module_expsym_cmds=$lt_module_expsym_cmds
16943    
16944     # Whether we are building with GNU ld or not.
16945     with_gnu_ld=$lt_with_gnu_ld
16946    
16947     # Flag that allows shared libraries with undefined symbols to be built.
16948     allow_undefined_flag=$lt_allow_undefined_flag
16949    
16950     # Flag that enforces no undefined symbols.
16951     no_undefined_flag=$lt_no_undefined_flag
16952    
16953     # Flag to hardcode \$libdir into a binary during linking.
16954     # This must work even if \$libdir does not exist
16955     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16956    
16957     # Whether we need a single "-rpath" flag with a separated argument.
16958     hardcode_libdir_separator=$lt_hardcode_libdir_separator
16959    
16960     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16961     # DIR into the resulting binary.
16962     hardcode_direct=$hardcode_direct
16963    
16964     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16965     # DIR into the resulting binary and the resulting library dependency is
16966     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
16967     # library is relocated.
16968     hardcode_direct_absolute=$hardcode_direct_absolute
16969    
16970     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16971     # into the resulting binary.
16972     hardcode_minus_L=$hardcode_minus_L
16973    
16974     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16975     # into the resulting binary.
16976     hardcode_shlibpath_var=$hardcode_shlibpath_var
16977    
16978     # Set to "yes" if building a shared library automatically hardcodes DIR
16979     # into the library and all subsequent libraries and executables linked
16980     # against it.
16981     hardcode_automatic=$hardcode_automatic
16982    
16983     # Set to yes if linker adds runtime paths of dependent libraries
16984     # to runtime path list.
16985     inherit_rpath=$inherit_rpath
16986    
16987     # Whether libtool must link a program against all its dependency libraries.
16988     link_all_deplibs=$link_all_deplibs
16989    
16990     # Set to "yes" if exported symbols are required.
16991     always_export_symbols=$always_export_symbols
16992    
16993     # The commands to list exported symbols.
16994     export_symbols_cmds=$lt_export_symbols_cmds
16995    
16996     # Symbols that should not be listed in the preloaded symbols.
16997     exclude_expsyms=$lt_exclude_expsyms
16998    
16999     # Symbols that must always be exported.
17000     include_expsyms=$lt_include_expsyms
17001    
17002     # Commands necessary for linking programs (against libraries) with templates.
17003     prelink_cmds=$lt_prelink_cmds
17004    
17005     # Commands necessary for finishing linking programs.
17006     postlink_cmds=$lt_postlink_cmds
17007    
17008     # Specify filename containing input files.
17009     file_list_spec=$lt_file_list_spec
17010    
17011     # How to hardcode a shared library path into an executable.
17012     hardcode_action=$hardcode_action
17013    
17014     # ### END LIBTOOL CONFIG
17015    
17016     _LT_EOF
17017    
17018 michael 5433 cat <<'_LT_EOF' >> "$cfgfile"
17019    
17020 michael 5860 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17021    
17022 michael 5433 # func_munge_path_list VARIABLE PATH
17023     # -----------------------------------
17024     # VARIABLE is name of variable containing _space_ separated list of
17025     # directories to be munged by the contents of PATH, which is string
17026     # having a format:
17027     # "DIR[:DIR]:"
17028     # string "DIR[ DIR]" will be prepended to VARIABLE
17029     # ":DIR[:DIR]"
17030     # string "DIR[ DIR]" will be appended to VARIABLE
17031     # "DIRP[:DIRP]::[DIRA:]DIRA"
17032     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17033     # "DIRA[ DIRA]" will be appended to VARIABLE
17034     # "DIR[:DIR]"
17035     # VARIABLE will be replaced by "DIR[ DIR]"
17036     func_munge_path_list ()
17037     {
17038     case x$2 in
17039     x)
17040     ;;
17041     *:)
17042 michael 5860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17043 michael 5433 ;;
17044     x:*)
17045     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17046     ;;
17047     *::*)
17048     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17049     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17050     ;;
17051     *)
17052     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17053     ;;
17054     esac
17055     }
17056    
17057    
17058     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17059     func_cc_basename ()
17060     {
17061     for cc_temp in $*""; do
17062     case $cc_temp in
17063     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17064     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17065     \-*) ;;
17066     *) break;;
17067     esac
17068     done
17069     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17070     }
17071    
17072    
17073 michael 5860 # ### END FUNCTIONS SHARED WITH CONFIGURE
17074    
17075 michael 5433 _LT_EOF
17076    
17077 michael 5059 case $host_os in
17078     aix3*)
17079     cat <<\_LT_EOF >> "$cfgfile"
17080     # AIX sometimes has problems with the GCC collect2 program. For some
17081     # reason, if we set the COLLECT_NAMES environment variable, the problems
17082     # vanish in a puff of smoke.
17083     if test set != "${COLLECT_NAMES+set}"; then
17084     COLLECT_NAMES=
17085     export COLLECT_NAMES
17086     fi
17087     _LT_EOF
17088     ;;
17089 michael 5052 esac
17090 michael 5059
17091    
17092     ltmain=$ac_aux_dir/ltmain.sh
17093    
17094    
17095     # We use sed instead of cat because bash on DJGPP gets confused if
17096     # if finds mixed CR/LF and LF-only lines. Since sed operates in
17097     # text mode, it properly converts lines to CR/LF. This bash problem
17098     # is reportedly fixed, but why not run on old versions too?
17099     sed '$q' "$ltmain" >> "$cfgfile" \
17100     || (rm -f "$cfgfile"; exit 1)
17101    
17102     mv -f "$cfgfile" "$ofile" ||
17103     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17104     chmod +x "$ofile"
17105    
17106     ;;
17107    
17108     esac
17109 michael 5052 done # for ac_tag
17110    
17111    
17112 michael 5059 as_fn_exit 0
17113 michael 5052 _ACEOF
17114     ac_clean_files=$ac_clean_files_save
17115    
17116 michael 5059 test $ac_write_fail = 0 ||
17117     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17118 michael 5052
17119 michael 5059
17120 michael 5052 # configure is writing to config.log, and then calls config.status.
17121     # config.status does its own redirection, appending to config.log.
17122     # Unfortunately, on DOS this fails, as config.log is still kept open
17123     # by configure, so config.status won't be able to write to it; its
17124     # output is simply discarded. So we exec the FD to /dev/null,
17125     # effectively closing config.log, so it can be properly (re)opened and
17126     # appended to by config.status. When coming back to configure, we
17127     # need to make the FD available again.
17128     if test "$no_create" != yes; then
17129     ac_cs_success=:
17130     ac_config_status_args=
17131     test "$silent" = yes &&
17132     ac_config_status_args="$ac_config_status_args --quiet"
17133     exec 5>/dev/null
17134     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17135     exec 5>>config.log
17136     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17137     # would make configure fail if this is the last instruction.
17138 michael 5059 $ac_cs_success || as_fn_exit 1
17139 michael 5052 fi
17140 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17141     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17142     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17143     fi
17144 michael 5052
17145    
17146    
17147 michael 5110 echo "###############################################################################"
17148     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
17149 michael 5052 echo
17150 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
17151 michael 5052 echo " ./configure --prefix=DIRECTORY"
17152 michael 5110 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id