ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.1.x/configure
Revision: 6105
Committed: Thu Jun 11 12:45:27 2015 UTC (11 years, 1 month ago) by michael
Original Path: hopm/trunk/configure
File size: 449293 byte(s)
Log Message:
- autoreconf

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2 michael 6105 # From configure.ac Id: configure.ac 6102 2015-06-11 12:38:55Z 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     LEXLIB
642     LEX_OUTPUT_ROOT
643 michael 5059 LEX
644     YFLAGS
645     YACC
646     CPP
647 michael 5433 LT_SYS_LIBRARY_PATH
648 michael 5059 OTOOL64
649     OTOOL
650     LIPO
651     NMEDIT
652     DSYMUTIL
653     MANIFEST_TOOL
654     RANLIB
655     ac_ct_AR
656     AR
657     DLLTOOL
658     OBJDUMP
659     LN_S
660     NM
661     ac_ct_DUMPBIN
662     DUMPBIN
663     LD
664     FGREP
665     EGREP
666     GREP
667     SED
668     host_os
669     host_vendor
670     host_cpu
671     host
672     build_os
673     build_vendor
674     build_cpu
675     build
676     LIBTOOL
677     am__fastdepCC_FALSE
678     am__fastdepCC_TRUE
679     CCDEPMODE
680     am__nodep
681     AMDEPBACKSLASH
682     AMDEP_FALSE
683     AMDEP_TRUE
684     am__quote
685     am__include
686     DEPDIR
687     OBJEXT
688     EXEEXT
689     ac_ct_CC
690     CPPFLAGS
691     LDFLAGS
692     CFLAGS
693     CC
694     MAINT
695     MAINTAINER_MODE_FALSE
696     MAINTAINER_MODE_TRUE
697     AM_BACKSLASH
698     AM_DEFAULT_VERBOSITY
699     AM_DEFAULT_V
700     AM_V
701     am__untar
702     am__tar
703     AMTAR
704     am__leading_dot
705     SET_MAKE
706     AWK
707     mkdir_p
708     MKDIR_P
709     INSTALL_STRIP_PROGRAM
710     STRIP
711     install_sh
712     MAKEINFO
713     AUTOHEADER
714     AUTOMAKE
715     AUTOCONF
716     ACLOCAL
717     VERSION
718     PACKAGE
719     CYGPATH_W
720     am__isrc
721     INSTALL_DATA
722     INSTALL_SCRIPT
723     INSTALL_PROGRAM
724     target_alias
725     host_alias
726     build_alias
727     LIBS
728     ECHO_T
729     ECHO_N
730     ECHO_C
731     DEFS
732     mandir
733     localedir
734     libdir
735     psdir
736     pdfdir
737     dvidir
738     htmldir
739     infodir
740     docdir
741     oldincludedir
742     includedir
743     localstatedir
744     sharedstatedir
745     sysconfdir
746     datadir
747     datarootdir
748     libexecdir
749     sbindir
750     bindir
751     program_transform_name
752     prefix
753     exec_prefix
754     PACKAGE_URL
755     PACKAGE_BUGREPORT
756     PACKAGE_STRING
757     PACKAGE_VERSION
758     PACKAGE_TARNAME
759     PACKAGE_NAME
760     PATH_SEPARATOR
761     SHELL'
762 michael 5052 ac_subst_files=''
763 michael 5059 ac_user_opts='
764     enable_option_checking
765     enable_silent_rules
766     enable_maintainer_mode
767     enable_dependency_tracking
768     enable_shared
769     enable_static
770     with_pic
771     enable_fast_install
772     with_aix_soname
773     with_gnu_ld
774     with_sysroot
775     enable_libtool_lock
776 michael 6105 enable_assert
777 michael 5059 '
778 michael 5052 ac_precious_vars='build_alias
779     host_alias
780     target_alias
781     CC
782     CFLAGS
783     LDFLAGS
784 michael 5059 LIBS
785 michael 5052 CPPFLAGS
786 michael 5433 LT_SYS_LIBRARY_PATH
787 michael 5052 CPP
788     YACC
789     YFLAGS'
790    
791 michael 5260
792 michael 5052 # Initialize some variables set by options.
793     ac_init_help=
794     ac_init_version=false
795 michael 5059 ac_unrecognized_opts=
796     ac_unrecognized_sep=
797 michael 5052 # The variables have the same names as the options, with
798     # dashes changed to underlines.
799     cache_file=/dev/null
800     exec_prefix=NONE
801     no_create=
802     no_recursion=
803     prefix=NONE
804     program_prefix=NONE
805     program_suffix=NONE
806     program_transform_name=s,x,x,
807     silent=
808     site=
809     srcdir=
810     verbose=
811     x_includes=NONE
812     x_libraries=NONE
813    
814     # Installation directory options.
815     # These are left unexpanded so users can "make install exec_prefix=/foo"
816     # and all the variables that are supposed to be based on exec_prefix
817     # by default will actually change.
818     # Use braces instead of parens because sh, perl, etc. also accept them.
819     # (The list follows the same order as the GNU Coding Standards.)
820     bindir='${exec_prefix}/bin'
821     sbindir='${exec_prefix}/sbin'
822     libexecdir='${exec_prefix}/libexec'
823     datarootdir='${prefix}/share'
824     datadir='${datarootdir}'
825     sysconfdir='${prefix}/etc'
826     sharedstatedir='${prefix}/com'
827     localstatedir='${prefix}/var'
828     includedir='${prefix}/include'
829     oldincludedir='/usr/include'
830     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831     infodir='${datarootdir}/info'
832     htmldir='${docdir}'
833     dvidir='${docdir}'
834     pdfdir='${docdir}'
835     psdir='${docdir}'
836     libdir='${exec_prefix}/lib'
837     localedir='${datarootdir}/locale'
838     mandir='${datarootdir}/man'
839    
840     ac_prev=
841     ac_dashdash=
842     for ac_option
843     do
844     # If the previous option needs an argument, assign it.
845     if test -n "$ac_prev"; then
846     eval $ac_prev=\$ac_option
847     ac_prev=
848     continue
849     fi
850    
851     case $ac_option in
852 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853     *=) ac_optarg= ;;
854     *) ac_optarg=yes ;;
855 michael 5052 esac
856    
857     # Accept the important Cygnus configure options, so we can diagnose typos.
858    
859     case $ac_dashdash$ac_option in
860     --)
861     ac_dashdash=yes ;;
862    
863     -bindir | --bindir | --bindi | --bind | --bin | --bi)
864     ac_prev=bindir ;;
865     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866     bindir=$ac_optarg ;;
867    
868     -build | --build | --buil | --bui | --bu)
869     ac_prev=build_alias ;;
870     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871     build_alias=$ac_optarg ;;
872    
873     -cache-file | --cache-file | --cache-fil | --cache-fi \
874     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875     ac_prev=cache_file ;;
876     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878     cache_file=$ac_optarg ;;
879    
880     --config-cache | -C)
881     cache_file=config.cache ;;
882    
883     -datadir | --datadir | --datadi | --datad)
884     ac_prev=datadir ;;
885     -datadir=* | --datadir=* | --datadi=* | --datad=*)
886     datadir=$ac_optarg ;;
887    
888     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889     | --dataroo | --dataro | --datar)
890     ac_prev=datarootdir ;;
891     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893     datarootdir=$ac_optarg ;;
894    
895     -disable-* | --disable-*)
896 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 michael 5052 # Reject names that are not valid shell variable names.
898 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899     as_fn_error $? "invalid feature name: $ac_useropt"
900     ac_useropt_orig=$ac_useropt
901     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902     case $ac_user_opts in
903     *"
904     "enable_$ac_useropt"
905     "*) ;;
906     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907     ac_unrecognized_sep=', ';;
908     esac
909     eval enable_$ac_useropt=no ;;
910 michael 5052
911     -docdir | --docdir | --docdi | --doc | --do)
912     ac_prev=docdir ;;
913     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914     docdir=$ac_optarg ;;
915    
916     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917     ac_prev=dvidir ;;
918     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919     dvidir=$ac_optarg ;;
920    
921     -enable-* | --enable-*)
922 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 michael 5052 # Reject names that are not valid shell variable names.
924 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925     as_fn_error $? "invalid feature name: $ac_useropt"
926     ac_useropt_orig=$ac_useropt
927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928     case $ac_user_opts in
929     *"
930     "enable_$ac_useropt"
931     "*) ;;
932     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933     ac_unrecognized_sep=', ';;
934     esac
935     eval enable_$ac_useropt=\$ac_optarg ;;
936 michael 5052
937     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939     | --exec | --exe | --ex)
940     ac_prev=exec_prefix ;;
941     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943     | --exec=* | --exe=* | --ex=*)
944     exec_prefix=$ac_optarg ;;
945    
946     -gas | --gas | --ga | --g)
947     # Obsolete; use --with-gas.
948     with_gas=yes ;;
949    
950     -help | --help | --hel | --he | -h)
951     ac_init_help=long ;;
952     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953     ac_init_help=recursive ;;
954     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955     ac_init_help=short ;;
956    
957     -host | --host | --hos | --ho)
958     ac_prev=host_alias ;;
959     -host=* | --host=* | --hos=* | --ho=*)
960     host_alias=$ac_optarg ;;
961    
962     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963     ac_prev=htmldir ;;
964     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965     | --ht=*)
966     htmldir=$ac_optarg ;;
967    
968     -includedir | --includedir | --includedi | --included | --include \
969     | --includ | --inclu | --incl | --inc)
970     ac_prev=includedir ;;
971     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972     | --includ=* | --inclu=* | --incl=* | --inc=*)
973     includedir=$ac_optarg ;;
974    
975     -infodir | --infodir | --infodi | --infod | --info | --inf)
976     ac_prev=infodir ;;
977     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978     infodir=$ac_optarg ;;
979    
980     -libdir | --libdir | --libdi | --libd)
981     ac_prev=libdir ;;
982     -libdir=* | --libdir=* | --libdi=* | --libd=*)
983     libdir=$ac_optarg ;;
984    
985     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986     | --libexe | --libex | --libe)
987     ac_prev=libexecdir ;;
988     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989     | --libexe=* | --libex=* | --libe=*)
990     libexecdir=$ac_optarg ;;
991    
992     -localedir | --localedir | --localedi | --localed | --locale)
993     ac_prev=localedir ;;
994     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995     localedir=$ac_optarg ;;
996    
997     -localstatedir | --localstatedir | --localstatedi | --localstated \
998     | --localstate | --localstat | --localsta | --localst | --locals)
999     ac_prev=localstatedir ;;
1000     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002     localstatedir=$ac_optarg ;;
1003    
1004     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005     ac_prev=mandir ;;
1006     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007     mandir=$ac_optarg ;;
1008    
1009     -nfp | --nfp | --nf)
1010     # Obsolete; use --without-fp.
1011     with_fp=no ;;
1012    
1013     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014     | --no-cr | --no-c | -n)
1015     no_create=yes ;;
1016    
1017     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019     no_recursion=yes ;;
1020    
1021     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023     | --oldin | --oldi | --old | --ol | --o)
1024     ac_prev=oldincludedir ;;
1025     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028     oldincludedir=$ac_optarg ;;
1029    
1030     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031     ac_prev=prefix ;;
1032     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033     prefix=$ac_optarg ;;
1034    
1035     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036     | --program-pre | --program-pr | --program-p)
1037     ac_prev=program_prefix ;;
1038     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040     program_prefix=$ac_optarg ;;
1041    
1042     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043     | --program-suf | --program-su | --program-s)
1044     ac_prev=program_suffix ;;
1045     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047     program_suffix=$ac_optarg ;;
1048    
1049     -program-transform-name | --program-transform-name \
1050     | --program-transform-nam | --program-transform-na \
1051     | --program-transform-n | --program-transform- \
1052     | --program-transform | --program-transfor \
1053     | --program-transfo | --program-transf \
1054     | --program-trans | --program-tran \
1055     | --progr-tra | --program-tr | --program-t)
1056     ac_prev=program_transform_name ;;
1057     -program-transform-name=* | --program-transform-name=* \
1058     | --program-transform-nam=* | --program-transform-na=* \
1059     | --program-transform-n=* | --program-transform-=* \
1060     | --program-transform=* | --program-transfor=* \
1061     | --program-transfo=* | --program-transf=* \
1062     | --program-trans=* | --program-tran=* \
1063     | --progr-tra=* | --program-tr=* | --program-t=*)
1064     program_transform_name=$ac_optarg ;;
1065    
1066     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067     ac_prev=pdfdir ;;
1068     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069     pdfdir=$ac_optarg ;;
1070    
1071     -psdir | --psdir | --psdi | --psd | --ps)
1072     ac_prev=psdir ;;
1073     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074     psdir=$ac_optarg ;;
1075    
1076     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077     | -silent | --silent | --silen | --sile | --sil)
1078     silent=yes ;;
1079    
1080     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081     ac_prev=sbindir ;;
1082     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083     | --sbi=* | --sb=*)
1084     sbindir=$ac_optarg ;;
1085    
1086     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088     | --sharedst | --shareds | --shared | --share | --shar \
1089     | --sha | --sh)
1090     ac_prev=sharedstatedir ;;
1091     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094     | --sha=* | --sh=*)
1095     sharedstatedir=$ac_optarg ;;
1096    
1097     -site | --site | --sit)
1098     ac_prev=site ;;
1099     -site=* | --site=* | --sit=*)
1100     site=$ac_optarg ;;
1101    
1102     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103     ac_prev=srcdir ;;
1104     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105     srcdir=$ac_optarg ;;
1106    
1107     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108     | --syscon | --sysco | --sysc | --sys | --sy)
1109     ac_prev=sysconfdir ;;
1110     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112     sysconfdir=$ac_optarg ;;
1113    
1114     -target | --target | --targe | --targ | --tar | --ta | --t)
1115     ac_prev=target_alias ;;
1116     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117     target_alias=$ac_optarg ;;
1118    
1119     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120     verbose=yes ;;
1121    
1122     -version | --version | --versio | --versi | --vers | -V)
1123     ac_init_version=: ;;
1124    
1125     -with-* | --with-*)
1126 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 michael 5052 # Reject names that are not valid shell variable names.
1128 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129     as_fn_error $? "invalid package name: $ac_useropt"
1130     ac_useropt_orig=$ac_useropt
1131     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132     case $ac_user_opts in
1133     *"
1134     "with_$ac_useropt"
1135     "*) ;;
1136     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137     ac_unrecognized_sep=', ';;
1138     esac
1139     eval with_$ac_useropt=\$ac_optarg ;;
1140 michael 5052
1141     -without-* | --without-*)
1142 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 michael 5052 # Reject names that are not valid shell variable names.
1144 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145     as_fn_error $? "invalid package name: $ac_useropt"
1146     ac_useropt_orig=$ac_useropt
1147     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148     case $ac_user_opts in
1149     *"
1150     "with_$ac_useropt"
1151     "*) ;;
1152     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153     ac_unrecognized_sep=', ';;
1154     esac
1155     eval with_$ac_useropt=no ;;
1156 michael 5052
1157     --x)
1158     # Obsolete; use --with-x.
1159     with_x=yes ;;
1160    
1161     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162     | --x-incl | --x-inc | --x-in | --x-i)
1163     ac_prev=x_includes ;;
1164     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166     x_includes=$ac_optarg ;;
1167    
1168     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170     ac_prev=x_libraries ;;
1171     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173     x_libraries=$ac_optarg ;;
1174    
1175 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176     Try \`$0 --help' for more information"
1177 michael 5052 ;;
1178    
1179     *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182 michael 5059 case $ac_envvar in #(
1183     '' | [0-9]* | *[!_$as_cr_alnum]* )
1184     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185     esac
1186 michael 5052 eval $ac_envvar=\$ac_optarg
1187     export $ac_envvar ;;
1188    
1189     *)
1190     # FIXME: should be removed in autoconf 3.0.
1191 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 michael 5052 ;;
1196    
1197     esac
1198     done
1199    
1200     if test -n "$ac_prev"; then
1201     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 michael 5059 as_fn_error $? "missing argument to $ac_option"
1203 michael 5052 fi
1204    
1205 michael 5059 if test -n "$ac_unrecognized_opts"; then
1206     case $enable_option_checking in
1207     no) ;;
1208     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210     esac
1211     fi
1212    
1213     # Check all directory arguments for consistency.
1214 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215     datadir sysconfdir sharedstatedir localstatedir includedir \
1216     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217     libdir localedir mandir
1218     do
1219     eval ac_val=\$$ac_var
1220 michael 5059 # Remove trailing slashes.
1221 michael 5052 case $ac_val in
1222 michael 5059 */ )
1223     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224     eval $ac_var=\$ac_val;;
1225     esac
1226     # Be sure to have absolute directory names.
1227     case $ac_val in
1228 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1229     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230     esac
1231 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 michael 5052 done
1233    
1234     # There might be people who depend on the old broken behavior: `$host'
1235     # used to hold the argument of --host etc.
1236     # FIXME: To remove some day.
1237     build=$build_alias
1238     host=$host_alias
1239     target=$target_alias
1240    
1241     # FIXME: To remove some day.
1242     if test "x$host_alias" != x; then
1243     if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245     elif test "x$build_alias" != "x$host_alias"; then
1246     cross_compiling=yes
1247     fi
1248     fi
1249    
1250     ac_tool_prefix=
1251     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252    
1253     test "$silent" = yes && exec 6>/dev/null
1254    
1255    
1256     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257     ac_ls_di=`ls -di .` &&
1258     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 michael 5059 as_fn_error $? "working directory cannot be determined"
1260 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1262 michael 5052
1263    
1264     # Find the source files, if location was not specified.
1265     if test -z "$srcdir"; then
1266     ac_srcdir_defaulted=yes
1267     # Try the directory containing this script, then the parent directory.
1268 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1269     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270     X"$as_myself" : 'X\(//\)[^/]' \| \
1271     X"$as_myself" : 'X\(//\)$' \| \
1272     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273     $as_echo X"$as_myself" |
1274 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275     s//\1/
1276     q
1277     }
1278     /^X\(\/\/\)[^/].*/{
1279     s//\1/
1280     q
1281     }
1282     /^X\(\/\/\)$/{
1283     s//\1/
1284     q
1285     }
1286     /^X\(\/\).*/{
1287     s//\1/
1288     q
1289     }
1290     s/.*/./; q'`
1291     srcdir=$ac_confdir
1292     if test ! -r "$srcdir/$ac_unique_file"; then
1293     srcdir=..
1294     fi
1295     else
1296     ac_srcdir_defaulted=no
1297     fi
1298     if test ! -r "$srcdir/$ac_unique_file"; then
1299     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301 michael 5052 fi
1302     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303     ac_abs_confdir=`(
1304 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 michael 5052 pwd)`
1306     # When building in place, set srcdir=.
1307     if test "$ac_abs_confdir" = "$ac_pwd"; then
1308     srcdir=.
1309     fi
1310     # Remove unnecessary trailing slashes from srcdir.
1311     # Double slashes in file names in object file debugging info
1312     # mess up M-x gdb in Emacs.
1313     case $srcdir in
1314     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315     esac
1316     for ac_var in $ac_precious_vars; do
1317     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318     eval ac_env_${ac_var}_value=\$${ac_var}
1319     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321     done
1322    
1323     #
1324     # Report the --help message.
1325     #
1326     if test "$ac_init_help" = "long"; then
1327     # Omit some internal or obsolete options to make the list less imposing.
1328     # This message is too long to be a string in the A/UX 3.1 sh.
1329     cat <<_ACEOF
1330 michael 5266 \`configure' configures hopm TRUNK to adapt to many kinds of systems.
1331 michael 5052
1332     Usage: $0 [OPTION]... [VAR=VALUE]...
1333    
1334     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335     VAR=VALUE. See below for descriptions of some of the useful variables.
1336    
1337     Defaults for the options are specified in brackets.
1338    
1339     Configuration:
1340     -h, --help display this help and exit
1341     --help=short display options specific to this package
1342     --help=recursive display the short help of all the included packages
1343     -V, --version display version information and exit
1344 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1345 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1346     -C, --config-cache alias for \`--cache-file=config.cache'
1347     -n, --no-create do not create output files
1348     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1349    
1350     Installation directories:
1351     --prefix=PREFIX install architecture-independent files in PREFIX
1352 michael 5059 [$ac_default_prefix]
1353 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 michael 5059 [PREFIX]
1355 michael 5052
1356     By default, \`make install' will install all the files in
1357     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359     for instance \`--prefix=\$HOME'.
1360    
1361     For better control, use the options below.
1362    
1363     Fine tuning of the installation directories:
1364 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1365     --sbindir=DIR system admin executables [EPREFIX/sbin]
1366     --libexecdir=DIR program executables [EPREFIX/libexec]
1367     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370     --libdir=DIR object code libraries [EPREFIX/lib]
1371     --includedir=DIR C header files [PREFIX/include]
1372     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375     --infodir=DIR info documentation [DATAROOTDIR/info]
1376     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377     --mandir=DIR man documentation [DATAROOTDIR/man]
1378 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1379 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1380     --dvidir=DIR dvi documentation [DOCDIR]
1381     --pdfdir=DIR pdf documentation [DOCDIR]
1382     --psdir=DIR ps documentation [DOCDIR]
1383 michael 5052 _ACEOF
1384    
1385     cat <<\_ACEOF
1386    
1387     Program names:
1388     --program-prefix=PREFIX prepend PREFIX to installed program names
1389     --program-suffix=SUFFIX append SUFFIX to installed program names
1390     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391    
1392     System types:
1393     --build=BUILD configure for building on BUILD [guessed]
1394     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395     _ACEOF
1396     fi
1397    
1398     if test -n "$ac_init_help"; then
1399     case $ac_init_help in
1400 michael 5266 short | recursive ) echo "Configuration of hopm TRUNK:";;
1401 michael 5052 esac
1402     cat <<\_ACEOF
1403    
1404     Optional Features:
1405 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1406 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1407     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1408 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1409     --disable-silent-rules verbose build output (undo: "make V=0")
1410     --enable-maintainer-mode
1411     enable make rules and dependencies not useful (and
1412     sometimes confusing) to the casual installer
1413     --enable-dependency-tracking
1414     do not reject slow dependency extractors
1415     --disable-dependency-tracking
1416     speeds up one-time build
1417 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1418     --enable-static[=PKGS] build static libraries [default=yes]
1419     --enable-fast-install[=PKGS]
1420     optimize for fast installation [default=yes]
1421     --disable-libtool-lock avoid locking (might break parallel builds)
1422 michael 6105 --enable-assert Enable assert() statements
1423 michael 5052
1424     Optional Packages:
1425     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1426     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1427 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1428     both]
1429     --with-aix-soname=aix|svr4|both
1430     shared library versioning (aka "SONAME") variant to
1431     provide on AIX, [default=aix].
1432 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1433 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1434     compiler's sysroot if not specified).
1435 michael 5052
1436     Some influential environment variables:
1437     CC C compiler command
1438     CFLAGS C compiler flags
1439     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440     nonstandard directory <lib dir>
1441 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1442     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443 michael 5052 you have headers in a nonstandard directory <include dir>
1444 michael 5433 LT_SYS_LIBRARY_PATH
1445     User-defined run-time library search path.
1446 michael 5052 CPP C preprocessor
1447 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1448     Defaults to the first program found out of: `bison -y', `byacc',
1449     `yacc'.
1450 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1451     This script will default YFLAGS to the empty string to avoid a
1452     default value of `-d' given by some make applications.
1453    
1454     Use these variables to override the choices made by `configure' or to help
1455     it to find libraries and programs with nonstandard names/locations.
1456    
1457 michael 5266 Report bugs to <bugs@ircd-hybrid.org>.
1458 michael 5052 _ACEOF
1459     ac_status=$?
1460     fi
1461    
1462     if test "$ac_init_help" = "recursive"; then
1463     # If there are subdirs, report their specific --help.
1464     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 michael 5059 test -d "$ac_dir" ||
1466     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467     continue
1468 michael 5052 ac_builddir=.
1469    
1470     case "$ac_dir" in
1471     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472     *)
1473 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1475 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 michael 5052 case $ac_top_builddir_sub in
1477     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479     esac ;;
1480     esac
1481     ac_abs_top_builddir=$ac_pwd
1482     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483     # for backward compatibility:
1484     ac_top_builddir=$ac_top_build_prefix
1485    
1486     case $srcdir in
1487     .) # We are building in place.
1488     ac_srcdir=.
1489     ac_top_srcdir=$ac_top_builddir_sub
1490     ac_abs_top_srcdir=$ac_pwd ;;
1491     [\\/]* | ?:[\\/]* ) # Absolute name.
1492     ac_srcdir=$srcdir$ac_dir_suffix;
1493     ac_top_srcdir=$srcdir
1494     ac_abs_top_srcdir=$srcdir ;;
1495     *) # Relative name.
1496     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497     ac_top_srcdir=$ac_top_build_prefix$srcdir
1498     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499     esac
1500     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501    
1502     cd "$ac_dir" || { ac_status=$?; continue; }
1503     # Check for guested configure.
1504     if test -f "$ac_srcdir/configure.gnu"; then
1505     echo &&
1506     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507     elif test -f "$ac_srcdir/configure"; then
1508     echo &&
1509     $SHELL "$ac_srcdir/configure" --help=recursive
1510     else
1511 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 michael 5052 fi || ac_status=$?
1513     cd "$ac_pwd" || { ac_status=$?; break; }
1514     done
1515     fi
1516    
1517     test -n "$ac_init_help" && exit $ac_status
1518     if $ac_init_version; then
1519     cat <<\_ACEOF
1520 michael 5266 hopm configure TRUNK
1521 michael 5059 generated by GNU Autoconf 2.69
1522 michael 5052
1523 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1524 michael 5052 This configure script is free software; the Free Software Foundation
1525     gives unlimited permission to copy, distribute and modify it.
1526     _ACEOF
1527     exit
1528     fi
1529 michael 5059
1530     ## ------------------------ ##
1531     ## Autoconf initialization. ##
1532     ## ------------------------ ##
1533    
1534     # ac_fn_c_try_compile LINENO
1535     # --------------------------
1536     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537     ac_fn_c_try_compile ()
1538     {
1539     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540     rm -f conftest.$ac_objext
1541     if { { ac_try="$ac_compile"
1542     case "(($ac_try" in
1543     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544     *) ac_try_echo=$ac_try;;
1545     esac
1546     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547     $as_echo "$ac_try_echo"; } >&5
1548     (eval "$ac_compile") 2>conftest.err
1549     ac_status=$?
1550     if test -s conftest.err; then
1551     grep -v '^ *+' conftest.err >conftest.er1
1552     cat conftest.er1 >&5
1553     mv -f conftest.er1 conftest.err
1554     fi
1555     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556     test $ac_status = 0; } && {
1557     test -z "$ac_c_werror_flag" ||
1558     test ! -s conftest.err
1559     } && test -s conftest.$ac_objext; then :
1560     ac_retval=0
1561     else
1562     $as_echo "$as_me: failed program was:" >&5
1563     sed 's/^/| /' conftest.$ac_ext >&5
1564    
1565     ac_retval=1
1566     fi
1567     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568     as_fn_set_status $ac_retval
1569    
1570     } # ac_fn_c_try_compile
1571    
1572     # ac_fn_c_try_link LINENO
1573     # -----------------------
1574     # Try to link conftest.$ac_ext, and return whether this succeeded.
1575     ac_fn_c_try_link ()
1576     {
1577     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578     rm -f conftest.$ac_objext conftest$ac_exeext
1579     if { { ac_try="$ac_link"
1580     case "(($ac_try" in
1581     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582     *) ac_try_echo=$ac_try;;
1583     esac
1584     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585     $as_echo "$ac_try_echo"; } >&5
1586     (eval "$ac_link") 2>conftest.err
1587     ac_status=$?
1588     if test -s conftest.err; then
1589     grep -v '^ *+' conftest.err >conftest.er1
1590     cat conftest.er1 >&5
1591     mv -f conftest.er1 conftest.err
1592     fi
1593     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594     test $ac_status = 0; } && {
1595     test -z "$ac_c_werror_flag" ||
1596     test ! -s conftest.err
1597     } && test -s conftest$ac_exeext && {
1598     test "$cross_compiling" = yes ||
1599     test -x conftest$ac_exeext
1600     }; then :
1601     ac_retval=0
1602     else
1603     $as_echo "$as_me: failed program was:" >&5
1604     sed 's/^/| /' conftest.$ac_ext >&5
1605    
1606     ac_retval=1
1607     fi
1608     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610     # interfere with the next link command; also delete a directory that is
1611     # left behind by Apple's compiler. We do this before executing the actions.
1612     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614     as_fn_set_status $ac_retval
1615    
1616     } # ac_fn_c_try_link
1617    
1618     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619     # -------------------------------------------------------
1620     # Tests whether HEADER exists and can be compiled using the include files in
1621     # INCLUDES, setting the cache variable VAR accordingly.
1622     ac_fn_c_check_header_compile ()
1623     {
1624     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626     $as_echo_n "checking for $2... " >&6; }
1627     if eval \${$3+:} false; then :
1628     $as_echo_n "(cached) " >&6
1629     else
1630     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631     /* end confdefs.h. */
1632     $4
1633     #include <$2>
1634     _ACEOF
1635     if ac_fn_c_try_compile "$LINENO"; then :
1636     eval "$3=yes"
1637     else
1638     eval "$3=no"
1639     fi
1640     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641     fi
1642     eval ac_res=\$$3
1643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644     $as_echo "$ac_res" >&6; }
1645     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646    
1647     } # ac_fn_c_check_header_compile
1648    
1649     # ac_fn_c_try_cpp LINENO
1650     # ----------------------
1651     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652     ac_fn_c_try_cpp ()
1653     {
1654     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655     if { { ac_try="$ac_cpp conftest.$ac_ext"
1656     case "(($ac_try" in
1657     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658     *) ac_try_echo=$ac_try;;
1659     esac
1660     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661     $as_echo "$ac_try_echo"; } >&5
1662     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663     ac_status=$?
1664     if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668     fi
1669     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670     test $ac_status = 0; } > conftest.i && {
1671     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672     test ! -s conftest.err
1673     }; then :
1674     ac_retval=0
1675     else
1676     $as_echo "$as_me: failed program was:" >&5
1677     sed 's/^/| /' conftest.$ac_ext >&5
1678    
1679     ac_retval=1
1680     fi
1681     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682     as_fn_set_status $ac_retval
1683    
1684     } # ac_fn_c_try_cpp
1685    
1686     # ac_fn_c_try_run LINENO
1687     # ----------------------
1688     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689     # that executables *can* be run.
1690     ac_fn_c_try_run ()
1691     {
1692     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693     if { { ac_try="$ac_link"
1694     case "(($ac_try" in
1695     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696     *) ac_try_echo=$ac_try;;
1697     esac
1698     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699     $as_echo "$ac_try_echo"; } >&5
1700     (eval "$ac_link") 2>&5
1701     ac_status=$?
1702     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704     { { case "(($ac_try" in
1705     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706     *) ac_try_echo=$ac_try;;
1707     esac
1708     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709     $as_echo "$ac_try_echo"; } >&5
1710     (eval "$ac_try") 2>&5
1711     ac_status=$?
1712     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713     test $ac_status = 0; }; }; then :
1714     ac_retval=0
1715     else
1716     $as_echo "$as_me: program exited with status $ac_status" >&5
1717     $as_echo "$as_me: failed program was:" >&5
1718     sed 's/^/| /' conftest.$ac_ext >&5
1719    
1720     ac_retval=$ac_status
1721     fi
1722     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724     as_fn_set_status $ac_retval
1725    
1726     } # ac_fn_c_try_run
1727    
1728     # ac_fn_c_check_func LINENO FUNC VAR
1729     # ----------------------------------
1730     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731     ac_fn_c_check_func ()
1732     {
1733     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735     $as_echo_n "checking for $2... " >&6; }
1736     if eval \${$3+:} false; then :
1737     $as_echo_n "(cached) " >&6
1738     else
1739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740     /* end confdefs.h. */
1741     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743     #define $2 innocuous_$2
1744    
1745     /* System header to define __stub macros and hopefully few prototypes,
1746     which can conflict with char $2 (); below.
1747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748     <limits.h> exists even on freestanding compilers. */
1749    
1750     #ifdef __STDC__
1751     # include <limits.h>
1752     #else
1753     # include <assert.h>
1754     #endif
1755    
1756     #undef $2
1757    
1758     /* Override any GCC internal prototype to avoid an error.
1759     Use char because int might match the return type of a GCC
1760     builtin and then its argument prototype would still apply. */
1761     #ifdef __cplusplus
1762     extern "C"
1763     #endif
1764     char $2 ();
1765     /* The GNU C library defines this for functions which it implements
1766     to always fail with ENOSYS. Some functions are actually named
1767     something starting with __ and the normal name is an alias. */
1768     #if defined __stub_$2 || defined __stub___$2
1769     choke me
1770     #endif
1771    
1772     int
1773     main ()
1774     {
1775     return $2 ();
1776     ;
1777     return 0;
1778     }
1779     _ACEOF
1780     if ac_fn_c_try_link "$LINENO"; then :
1781     eval "$3=yes"
1782     else
1783     eval "$3=no"
1784     fi
1785     rm -f core conftest.err conftest.$ac_objext \
1786     conftest$ac_exeext conftest.$ac_ext
1787     fi
1788     eval ac_res=\$$3
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790     $as_echo "$ac_res" >&6; }
1791     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792    
1793     } # ac_fn_c_check_func
1794 michael 5052 cat >config.log <<_ACEOF
1795     This file contains any messages produced by compilers while
1796     running configure, to aid debugging if configure makes a mistake.
1797    
1798 michael 5266 It was created by hopm $as_me TRUNK, which was
1799 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1800 michael 5052
1801     $ $0 $@
1802    
1803     _ACEOF
1804     exec 5>>config.log
1805     {
1806     cat <<_ASUNAME
1807     ## --------- ##
1808     ## Platform. ##
1809     ## --------- ##
1810    
1811     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816    
1817     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819    
1820     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827    
1828     _ASUNAME
1829    
1830     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831     for as_dir in $PATH
1832     do
1833     IFS=$as_save_IFS
1834     test -z "$as_dir" && as_dir=.
1835 michael 5059 $as_echo "PATH: $as_dir"
1836     done
1837 michael 5052 IFS=$as_save_IFS
1838    
1839     } >&5
1840    
1841     cat >&5 <<_ACEOF
1842    
1843    
1844     ## ----------- ##
1845     ## Core tests. ##
1846     ## ----------- ##
1847    
1848     _ACEOF
1849    
1850    
1851     # Keep a trace of the command line.
1852     # Strip out --no-create and --no-recursion so they do not pile up.
1853     # Strip out --silent because we don't want to record it for future runs.
1854     # Also quote any args containing shell meta-characters.
1855     # Make two passes to allow for proper duplicate-argument suppression.
1856     ac_configure_args=
1857     ac_configure_args0=
1858     ac_configure_args1=
1859     ac_must_keep_next=false
1860     for ac_pass in 1 2
1861     do
1862     for ac_arg
1863     do
1864     case $ac_arg in
1865     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867     | -silent | --silent | --silen | --sile | --sil)
1868     continue ;;
1869     *\'*)
1870 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 michael 5052 esac
1872     case $ac_pass in
1873 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874 michael 5052 2)
1875 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 michael 5052 if test $ac_must_keep_next = true; then
1877     ac_must_keep_next=false # Got value, back to normal.
1878     else
1879     case $ac_arg in
1880     *=* | --config-cache | -C | -disable-* | --disable-* \
1881     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883     | -with-* | --with-* | -without-* | --without-* | --x)
1884     case "$ac_configure_args0 " in
1885     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886     esac
1887     ;;
1888     -* ) ac_must_keep_next=true ;;
1889     esac
1890     fi
1891 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1892 michael 5052 ;;
1893     esac
1894     done
1895     done
1896 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1897     { ac_configure_args1=; unset ac_configure_args1;}
1898 michael 5052
1899     # When interrupted or exit'd, cleanup temporary files, and complete
1900     # config.log. We remove comments because anyway the quotes in there
1901     # would cause problems or look ugly.
1902     # WARNING: Use '\'' to represent an apostrophe within the trap.
1903     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904     trap 'exit_status=$?
1905     # Save into config.log some information that might help in debugging.
1906     {
1907     echo
1908    
1909 michael 5059 $as_echo "## ---------------- ##
1910 michael 5052 ## Cache variables. ##
1911 michael 5059 ## ---------------- ##"
1912 michael 5052 echo
1913     # The following way of writing the cache mishandles newlines in values,
1914     (
1915     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916     eval ac_val=\$$ac_var
1917     case $ac_val in #(
1918     *${as_nl}*)
1919     case $ac_var in #(
1920 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922 michael 5052 esac
1923     case $ac_var in #(
1924     _ | IFS | as_nl) ;; #(
1925 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926     *) { eval $ac_var=; unset $ac_var;} ;;
1927 michael 5052 esac ;;
1928     esac
1929     done
1930     (set) 2>&1 |
1931     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932     *${as_nl}ac_space=\ *)
1933     sed -n \
1934     "s/'\''/'\''\\\\'\'''\''/g;
1935     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936     ;; #(
1937     *)
1938     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939     ;;
1940     esac |
1941     sort
1942     )
1943     echo
1944    
1945 michael 5059 $as_echo "## ----------------- ##
1946 michael 5052 ## Output variables. ##
1947 michael 5059 ## ----------------- ##"
1948 michael 5052 echo
1949     for ac_var in $ac_subst_vars
1950     do
1951     eval ac_val=\$$ac_var
1952     case $ac_val in
1953 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 michael 5052 esac
1955 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1956 michael 5052 done | sort
1957     echo
1958    
1959     if test -n "$ac_subst_files"; then
1960 michael 5059 $as_echo "## ------------------- ##
1961 michael 5052 ## File substitutions. ##
1962 michael 5059 ## ------------------- ##"
1963 michael 5052 echo
1964     for ac_var in $ac_subst_files
1965     do
1966     eval ac_val=\$$ac_var
1967     case $ac_val in
1968 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969 michael 5052 esac
1970 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1971 michael 5052 done | sort
1972     echo
1973     fi
1974    
1975     if test -s confdefs.h; then
1976 michael 5059 $as_echo "## ----------- ##
1977 michael 5052 ## confdefs.h. ##
1978 michael 5059 ## ----------- ##"
1979 michael 5052 echo
1980     cat confdefs.h
1981     echo
1982     fi
1983     test "$ac_signal" != 0 &&
1984 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
1985     $as_echo "$as_me: exit $exit_status"
1986 michael 5052 } >&5
1987     rm -f core *.core core.conftest.* &&
1988     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989     exit $exit_status
1990     ' 0
1991     for ac_signal in 1 2 13 15; do
1992 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 michael 5052 done
1994     ac_signal=0
1995    
1996     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997     rm -f -r conftest* confdefs.h
1998    
1999 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2000    
2001 michael 5052 # Predefined preprocessor variables.
2002    
2003     cat >>confdefs.h <<_ACEOF
2004     #define PACKAGE_NAME "$PACKAGE_NAME"
2005     _ACEOF
2006    
2007     cat >>confdefs.h <<_ACEOF
2008     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2009     _ACEOF
2010    
2011     cat >>confdefs.h <<_ACEOF
2012     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2013     _ACEOF
2014    
2015     cat >>confdefs.h <<_ACEOF
2016     #define PACKAGE_STRING "$PACKAGE_STRING"
2017     _ACEOF
2018    
2019     cat >>confdefs.h <<_ACEOF
2020     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2021     _ACEOF
2022    
2023 michael 5059 cat >>confdefs.h <<_ACEOF
2024     #define PACKAGE_URL "$PACKAGE_URL"
2025     _ACEOF
2026 michael 5052
2027 michael 5059
2028 michael 5052 # Let the site file select an alternate cache file if it wants to.
2029 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2030     ac_site_file1=NONE
2031     ac_site_file2=NONE
2032 michael 5052 if test -n "$CONFIG_SITE"; then
2033 michael 5059 # We do not want a PATH search for config.site.
2034     case $CONFIG_SITE in #((
2035     -*) ac_site_file1=./$CONFIG_SITE;;
2036     */*) ac_site_file1=$CONFIG_SITE;;
2037     *) ac_site_file1=./$CONFIG_SITE;;
2038     esac
2039 michael 5052 elif test "x$prefix" != xNONE; then
2040 michael 5059 ac_site_file1=$prefix/share/config.site
2041     ac_site_file2=$prefix/etc/config.site
2042 michael 5052 else
2043 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2044     ac_site_file2=$ac_default_prefix/etc/config.site
2045 michael 5052 fi
2046 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047 michael 5052 do
2048 michael 5059 test "x$ac_site_file" = xNONE && continue
2049     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2050     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2053 michael 5059 . "$ac_site_file" \
2054     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056     as_fn_error $? "failed to load site script $ac_site_file
2057     See \`config.log' for more details" "$LINENO" 5; }
2058 michael 5052 fi
2059     done
2060    
2061     if test -r "$cache_file"; then
2062 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2063     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2064     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066     $as_echo "$as_me: loading cache $cache_file" >&6;}
2067 michael 5052 case $cache_file in
2068     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069     *) . "./$cache_file";;
2070     esac
2071     fi
2072     else
2073 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074     $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 michael 5052 >$cache_file
2076     fi
2077    
2078     # Check that the precious variables saved in the cache have kept the same
2079     # value.
2080     ac_cache_corrupted=false
2081     for ac_var in $ac_precious_vars; do
2082     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083     eval ac_new_set=\$ac_env_${ac_var}_set
2084     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085     eval ac_new_val=\$ac_env_${ac_var}_value
2086     case $ac_old_set,$ac_new_set in
2087     set,)
2088 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090 michael 5052 ac_cache_corrupted=: ;;
2091     ,set)
2092 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094 michael 5052 ac_cache_corrupted=: ;;
2095     ,);;
2096     *)
2097     if test "x$ac_old_val" != "x$ac_new_val"; then
2098 michael 5059 # differences in whitespace do not lead to failure.
2099     ac_old_val_w=`echo x $ac_old_val`
2100     ac_new_val_w=`echo x $ac_new_val`
2101     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104     ac_cache_corrupted=:
2105     else
2106     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108     eval $ac_var=\$ac_old_val
2109     fi
2110     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2111     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2113     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2114 michael 5052 fi;;
2115     esac
2116     # Pass precious variables to config.status.
2117     if test "$ac_new_set" = set; then
2118     case $ac_new_val in
2119 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2121     esac
2122     case " $ac_configure_args " in
2123     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2124 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 michael 5052 esac
2126     fi
2127     done
2128     if $ac_cache_corrupted; then
2129 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134 michael 5052 fi
2135 michael 5059 ## -------------------- ##
2136     ## Main body of script. ##
2137     ## -------------------- ##
2138 michael 5052
2139     ac_ext=c
2140     ac_cpp='$CPP $CPPFLAGS'
2141     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144    
2145    
2146 michael 5352 am__api_version='1.15'
2147 michael 5059
2148 michael 5052 ac_aux_dir=
2149     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2150     if test -f "$ac_dir/install-sh"; then
2151     ac_aux_dir=$ac_dir
2152     ac_install_sh="$ac_aux_dir/install-sh -c"
2153     break
2154     elif test -f "$ac_dir/install.sh"; then
2155     ac_aux_dir=$ac_dir
2156     ac_install_sh="$ac_aux_dir/install.sh -c"
2157     break
2158     elif test -f "$ac_dir/shtool"; then
2159     ac_aux_dir=$ac_dir
2160     ac_install_sh="$ac_aux_dir/shtool install -c"
2161     break
2162     fi
2163     done
2164     if test -z "$ac_aux_dir"; then
2165 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2166 michael 5052 fi
2167    
2168     # These three variables are undocumented and unsupported,
2169     # and are intended to be withdrawn in a future Autoconf release.
2170     # They can cause serious problems if a builder's source tree is in a directory
2171     # whose full name contains unusual characters.
2172     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2173     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2174     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2175    
2176    
2177     # Find a good install program. We prefer a C program (faster),
2178     # so one script is as good as another. But avoid the broken or
2179     # incompatible versions:
2180     # SysV /etc/install, /usr/sbin/install
2181     # SunOS /usr/etc/install
2182     # IRIX /sbin/install
2183     # AIX /bin/install
2184     # AmigaOS /C/install, which installs bootblocks on floppy discs
2185     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2186     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2187     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2188     # OS/2's system install, which has a completely different semantic
2189     # ./install, which can be erroneously created by make from ./install.sh.
2190 michael 5059 # Reject install programs that cannot install multiple files.
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2192     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2193 michael 5052 if test -z "$INSTALL"; then
2194 michael 5059 if ${ac_cv_path_install+:} false; then :
2195     $as_echo_n "(cached) " >&6
2196 michael 5052 else
2197     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198     for as_dir in $PATH
2199     do
2200     IFS=$as_save_IFS
2201     test -z "$as_dir" && as_dir=.
2202 michael 5059 # Account for people who put trailing slashes in PATH elements.
2203     case $as_dir/ in #((
2204     ./ | .// | /[cC]/* | \
2205 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2206 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2207 michael 5052 /usr/ucb/* ) ;;
2208     *)
2209     # OSF1 and SCO ODT 3.0 have their own names for install.
2210     # Don't use installbsd from OSF since it installs stuff as root
2211     # by default.
2212     for ac_prog in ginstall scoinst install; do
2213     for ac_exec_ext in '' $ac_executable_extensions; do
2214 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2215 michael 5052 if test $ac_prog = install &&
2216     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217     # AIX install. It has an incompatible calling convention.
2218     :
2219     elif test $ac_prog = install &&
2220     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221     # program-specific install script used by HP pwplus--don't use.
2222     :
2223     else
2224 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2225     echo one > conftest.one
2226     echo two > conftest.two
2227     mkdir conftest.dir
2228     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2229     test -s conftest.one && test -s conftest.two &&
2230     test -s conftest.dir/conftest.one &&
2231     test -s conftest.dir/conftest.two
2232     then
2233     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2234     break 3
2235     fi
2236 michael 5052 fi
2237     fi
2238     done
2239     done
2240     ;;
2241     esac
2242 michael 5059
2243     done
2244 michael 5052 IFS=$as_save_IFS
2245    
2246 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2247 michael 5052
2248     fi
2249     if test "${ac_cv_path_install+set}" = set; then
2250     INSTALL=$ac_cv_path_install
2251     else
2252     # As a last resort, use the slow shell script. Don't cache a
2253     # value for INSTALL within a source directory, because that will
2254     # break other packages using the cache if that directory is
2255     # removed, or if the value is a relative name.
2256     INSTALL=$ac_install_sh
2257     fi
2258     fi
2259 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2260     $as_echo "$INSTALL" >&6; }
2261 michael 5052
2262     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263     # It thinks the first close brace ends the variable substitution.
2264     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2265    
2266     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2267    
2268     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2269    
2270 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2271     $as_echo_n "checking whether build environment is sane... " >&6; }
2272     # Reject unsafe characters in $srcdir or the absolute working directory
2273     # name. Accept space and tab only in the latter.
2274     am_lf='
2275     '
2276     case `pwd` in
2277     *[\\\"\#\$\&\'\`$am_lf]*)
2278     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2279     esac
2280     case $srcdir in
2281     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2282     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2283     esac
2284    
2285     # Do 'set' in a subshell so we don't clobber the current shell's
2286 michael 5052 # arguments. Must try -L first in case configure is actually a
2287     # symlink; some systems play weird games with the mod time of symlinks
2288     # (eg FreeBSD returns the mod time of the symlink's containing
2289     # directory).
2290     if (
2291 michael 5059 am_has_slept=no
2292     for am_try in 1 2; do
2293     echo "timestamp, slept: $am_has_slept" > conftest.file
2294     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2295     if test "$*" = "X"; then
2296     # -L didn't work.
2297     set X `ls -t "$srcdir/configure" conftest.file`
2298     fi
2299     if test "$*" != "X $srcdir/configure conftest.file" \
2300     && test "$*" != "X conftest.file $srcdir/configure"; then
2301 michael 5052
2302 michael 5059 # If neither matched, then we have a broken ls. This can happen
2303     # if, for instance, CONFIG_SHELL is bash and it inherits a
2304     # broken ls alias from the environment. This has actually
2305     # happened. Such a system could not be considered "sane".
2306     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2307     alias in your environment" "$LINENO" 5
2308     fi
2309     if test "$2" = conftest.file || test $am_try -eq 2; then
2310     break
2311     fi
2312     # Just in case.
2313     sleep 1
2314     am_has_slept=yes
2315     done
2316 michael 5052 test "$2" = conftest.file
2317     )
2318     then
2319     # Ok.
2320     :
2321     else
2322 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2323     Check your system clock" "$LINENO" 5
2324 michael 5052 fi
2325 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2326     $as_echo "yes" >&6; }
2327     # If we didn't sleep, we still need to ensure time stamps of config.status and
2328     # generated files are strictly newer.
2329     am_sleep_pid=
2330     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2331     ( sleep 1 ) &
2332     am_sleep_pid=$!
2333     fi
2334    
2335     rm -f conftest.file
2336    
2337 michael 5052 test "$program_prefix" != NONE &&
2338     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2339     # Use a double $ so make ignores it.
2340     test "$program_suffix" != NONE &&
2341     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2342 michael 5059 # Double any \ or $.
2343 michael 5052 # By default was `s,x,x', remove it if useless.
2344 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2345     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2346 michael 5052
2347 michael 5352 # Expand $ac_aux_dir to an absolute path.
2348     am_aux_dir=`cd "$ac_aux_dir" && pwd`
2349 michael 5052
2350 michael 5059 if test x"${MISSING+set}" != xset; then
2351     case $am_aux_dir in
2352     *\ * | *\ *)
2353     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2354     *)
2355     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2356     esac
2357     fi
2358 michael 5052 # Use eval to expand $SHELL
2359 michael 5059 if eval "$MISSING --is-lightweight"; then
2360     am_missing_run="$MISSING "
2361 michael 5052 else
2362     am_missing_run=
2363 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2364     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2365 michael 5052 fi
2366    
2367 michael 5352 if test x"${install_sh+set}" != xset; then
2368 michael 5059 case $am_aux_dir in
2369     *\ * | *\ *)
2370     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2371     *)
2372     install_sh="\${SHELL} $am_aux_dir/install-sh"
2373     esac
2374     fi
2375    
2376     # Installed binaries are usually stripped using 'strip' when the user
2377     # run "make install-strip". However 'strip' might not be the right
2378     # tool to use in cross-compilation environments, therefore Automake
2379     # will honor the 'STRIP' environment variable to overrule this program.
2380     if test "$cross_compiling" != no; then
2381     if test -n "$ac_tool_prefix"; then
2382     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2383     set dummy ${ac_tool_prefix}strip; ac_word=$2
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385     $as_echo_n "checking for $ac_word... " >&6; }
2386     if ${ac_cv_prog_STRIP+:} false; then :
2387     $as_echo_n "(cached) " >&6
2388 michael 5052 else
2389 michael 5059 if test -n "$STRIP"; then
2390     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391     else
2392     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393     for as_dir in $PATH
2394     do
2395     IFS=$as_save_IFS
2396     test -z "$as_dir" && as_dir=.
2397     for ac_exec_ext in '' $ac_executable_extensions; do
2398     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401     break 2
2402     fi
2403     done
2404 michael 5052 done
2405 michael 5059 IFS=$as_save_IFS
2406    
2407     fi
2408     fi
2409     STRIP=$ac_cv_prog_STRIP
2410     if test -n "$STRIP"; then
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2412     $as_echo "$STRIP" >&6; }
2413     else
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415     $as_echo "no" >&6; }
2416     fi
2417    
2418    
2419     fi
2420     if test -z "$ac_cv_prog_STRIP"; then
2421     ac_ct_STRIP=$STRIP
2422     # Extract the first word of "strip", so it can be a program name with args.
2423     set dummy strip; ac_word=$2
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425     $as_echo_n "checking for $ac_word... " >&6; }
2426     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2427     $as_echo_n "(cached) " >&6
2428     else
2429     if test -n "$ac_ct_STRIP"; then
2430     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2431     else
2432     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433     for as_dir in $PATH
2434     do
2435     IFS=$as_save_IFS
2436     test -z "$as_dir" && as_dir=.
2437     for ac_exec_ext in '' $ac_executable_extensions; do
2438     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439     ac_cv_prog_ac_ct_STRIP="strip"
2440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442     fi
2443     done
2444     done
2445     IFS=$as_save_IFS
2446    
2447     fi
2448     fi
2449     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2450     if test -n "$ac_ct_STRIP"; then
2451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2452     $as_echo "$ac_ct_STRIP" >&6; }
2453     else
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455     $as_echo "no" >&6; }
2456     fi
2457    
2458     if test "x$ac_ct_STRIP" = x; then
2459     STRIP=":"
2460 michael 5052 else
2461 michael 5059 case $cross_compiling:$ac_tool_warned in
2462     yes:)
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2464     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2465     ac_tool_warned=yes ;;
2466     esac
2467     STRIP=$ac_ct_STRIP
2468 michael 5052 fi
2469 michael 5059 else
2470     STRIP="$ac_cv_prog_STRIP"
2471 michael 5052 fi
2472    
2473 michael 5059 fi
2474     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2475    
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2477     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2478     if test -z "$MKDIR_P"; then
2479     if ${ac_cv_path_mkdir+:} false; then :
2480     $as_echo_n "(cached) " >&6
2481     else
2482     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2484     do
2485     IFS=$as_save_IFS
2486     test -z "$as_dir" && as_dir=.
2487     for ac_prog in mkdir gmkdir; do
2488     for ac_exec_ext in '' $ac_executable_extensions; do
2489     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2490     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2491     'mkdir (GNU coreutils) '* | \
2492     'mkdir (coreutils) '* | \
2493     'mkdir (fileutils) '4.1*)
2494     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2495     break 3;;
2496     esac
2497     done
2498     done
2499     done
2500     IFS=$as_save_IFS
2501    
2502     fi
2503    
2504     test -d ./--version && rmdir ./--version
2505     if test "${ac_cv_path_mkdir+set}" = set; then
2506     MKDIR_P="$ac_cv_path_mkdir -p"
2507     else
2508     # As a last resort, use the slow shell script. Don't cache a
2509     # value for MKDIR_P within a source directory, because that will
2510     # break other packages using the cache if that directory is
2511     # removed, or if the value is a relative name.
2512     MKDIR_P="$ac_install_sh -d"
2513     fi
2514     fi
2515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2516     $as_echo "$MKDIR_P" >&6; }
2517    
2518 michael 5052 for ac_prog in gawk mawk nawk awk
2519     do
2520     # Extract the first word of "$ac_prog", so it can be a program name with args.
2521     set dummy $ac_prog; ac_word=$2
2522 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523     $as_echo_n "checking for $ac_word... " >&6; }
2524     if ${ac_cv_prog_AWK+:} false; then :
2525     $as_echo_n "(cached) " >&6
2526 michael 5052 else
2527     if test -n "$AWK"; then
2528     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529     else
2530     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531     for as_dir in $PATH
2532     do
2533     IFS=$as_save_IFS
2534     test -z "$as_dir" && as_dir=.
2535 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2536     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 michael 5052 ac_cv_prog_AWK="$ac_prog"
2538 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 michael 5052 break 2
2540     fi
2541     done
2542 michael 5059 done
2543 michael 5052 IFS=$as_save_IFS
2544    
2545     fi
2546     fi
2547     AWK=$ac_cv_prog_AWK
2548     if test -n "$AWK"; then
2549 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550     $as_echo "$AWK" >&6; }
2551 michael 5052 else
2552 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553     $as_echo "no" >&6; }
2554 michael 5052 fi
2555    
2556    
2557     test -n "$AWK" && break
2558     done
2559    
2560 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562     set x ${MAKE-make}
2563     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565     $as_echo_n "(cached) " >&6
2566 michael 5052 else
2567     cat >conftest.make <<\_ACEOF
2568     SHELL = /bin/sh
2569     all:
2570     @echo '@@@%%%=$(MAKE)=@@@%%%'
2571     _ACEOF
2572 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574     *@@@%%%=?*=@@@%%%*)
2575     eval ac_cv_prog_make_${ac_make}_set=yes;;
2576     *)
2577     eval ac_cv_prog_make_${ac_make}_set=no;;
2578     esac
2579     rm -f conftest.make
2580     fi
2581     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583     $as_echo "yes" >&6; }
2584 michael 5052 SET_MAKE=
2585     else
2586 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587     $as_echo "no" >&6; }
2588 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2589     fi
2590    
2591     rm -rf .tst 2>/dev/null
2592     mkdir .tst 2>/dev/null
2593     if test -d .tst; then
2594     am__leading_dot=.
2595     else
2596     am__leading_dot=_
2597     fi
2598     rmdir .tst 2>/dev/null
2599    
2600 michael 5059 # Check whether --enable-silent-rules was given.
2601     if test "${enable_silent_rules+set}" = set; then :
2602     enableval=$enable_silent_rules;
2603 michael 5052 fi
2604    
2605 michael 5059 case $enable_silent_rules in # (((
2606     yes) AM_DEFAULT_VERBOSITY=0;;
2607     no) AM_DEFAULT_VERBOSITY=1;;
2608     *) AM_DEFAULT_VERBOSITY=1;;
2609     esac
2610     am_make=${MAKE-make}
2611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2612     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2613     if ${am_cv_make_support_nested_variables+:} false; then :
2614     $as_echo_n "(cached) " >&6
2615     else
2616     if $as_echo 'TRUE=$(BAR$(V))
2617     BAR0=false
2618     BAR1=true
2619     V=1
2620     am__doit:
2621     @$(TRUE)
2622     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2623     am_cv_make_support_nested_variables=yes
2624     else
2625     am_cv_make_support_nested_variables=no
2626     fi
2627     fi
2628     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2629     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2630     if test $am_cv_make_support_nested_variables = yes; then
2631     AM_V='$(V)'
2632     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2633     else
2634     AM_V=$AM_DEFAULT_VERBOSITY
2635     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2636     fi
2637     AM_BACKSLASH='\'
2638    
2639     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2640     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2641     # is not polluted with repeated "-I."
2642     am__isrc=' -I$(srcdir)'
2643     # test to see if srcdir already configured
2644     if test -f $srcdir/config.status; then
2645     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2646     fi
2647     fi
2648    
2649 michael 5052 # test whether we have cygpath
2650     if test -z "$CYGPATH_W"; then
2651     if (cygpath --version) >/dev/null 2>/dev/null; then
2652     CYGPATH_W='cygpath -w'
2653     else
2654     CYGPATH_W=echo
2655     fi
2656     fi
2657    
2658    
2659     # Define the identity of the package.
2660 michael 5061 PACKAGE='hopm'
2661 michael 5266 VERSION='TRUNK'
2662 michael 5052
2663    
2664     cat >>confdefs.h <<_ACEOF
2665     #define PACKAGE "$PACKAGE"
2666     _ACEOF
2667    
2668    
2669     cat >>confdefs.h <<_ACEOF
2670     #define VERSION "$VERSION"
2671     _ACEOF
2672    
2673     # Some tools Automake needs.
2674    
2675     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2676    
2677    
2678     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2679    
2680    
2681     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2682    
2683    
2684     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2685    
2686    
2687     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2688    
2689 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2690     # dies out for good. For more background, see:
2691     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2692     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2693     mkdir_p='$(MKDIR_P)'
2694 michael 5052
2695 michael 5352 # We need awk for the "check" target (and possibly the TAP driver). The
2696     # system "awk" is bad on some platforms.
2697 michael 5059 # Always define AMTAR for backward compatibility. Yes, it's still used
2698     # in the wild :-( We should find a proper way to deprecate it ...
2699     AMTAR='$${TAR-tar}'
2700 michael 5052
2701    
2702 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2703     _am_tools='gnutar pax cpio none'
2704 michael 5052
2705 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2706 michael 5052
2707    
2708    
2709    
2710    
2711    
2712 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2713     # is OK; and we want to be able to make that assumption in our Makefile
2714     # recipes. So use an aggressive probe to check that the usage we want is
2715     # actually supported "in the wild" to an acceptable degree.
2716     # See automake bug#10828.
2717     # To make any issue more visible, cause the running configure to be aborted
2718     # by default if the 'rm' program in use doesn't match our expectations; the
2719     # user can still override this though.
2720     if rm -f && rm -fr && rm -rf; then : OK; else
2721     cat >&2 <<'END'
2722     Oops!
2723 michael 5052
2724 michael 5059 Your 'rm' program seems unable to run without file operands specified
2725     on the command line, even when the '-f' option is present. This is contrary
2726     to the behaviour of most rm programs out there, and not conforming with
2727     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2728 michael 5052
2729 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2730     of your $PATH and any error possibly output before this message. This
2731     can help us improve future automake versions.
2732 michael 5052
2733 michael 5059 END
2734     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2735     echo 'Configuration will proceed anyway, since you have set the' >&2
2736     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2737     echo >&2
2738     else
2739     cat >&2 <<'END'
2740     Aborting the configuration process, to ensure you take notice of the issue.
2741 michael 5052
2742 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2743     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2744 michael 5052
2745 michael 5059 If you want to complete the configuration process using your problematic
2746     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2747     to "yes", and re-run configure.
2748 michael 5052
2749 michael 5059 END
2750     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2751     fi
2752     fi
2753    
2754 michael 5352
2755 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2756     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2757 michael 5052 # Check whether --enable-maintainer-mode was given.
2758 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2759 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2760     else
2761     USE_MAINTAINER_MODE=no
2762     fi
2763    
2764 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2765     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2766     if test $USE_MAINTAINER_MODE = yes; then
2767 michael 5052 MAINTAINER_MODE_TRUE=
2768     MAINTAINER_MODE_FALSE='#'
2769     else
2770     MAINTAINER_MODE_TRUE='#'
2771     MAINTAINER_MODE_FALSE=
2772     fi
2773    
2774     MAINT=$MAINTAINER_MODE_TRUE
2775    
2776    
2777    
2778 michael 5314 ac_config_headers="$ac_config_headers src/setup.h"
2779    
2780    
2781    
2782 michael 6099
2783 michael 5059 DEPDIR="${am__leading_dot}deps"
2784    
2785     ac_config_commands="$ac_config_commands depfiles"
2786    
2787    
2788     am_make=${MAKE-make}
2789     cat > confinc << 'END'
2790     am__doit:
2791     @echo this is the am__doit target
2792     .PHONY: am__doit
2793     END
2794     # If we don't find an include directive, just comment out the code.
2795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2796     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2797     am__include="#"
2798     am__quote=
2799     _am_result=none
2800     # First try GNU make style include.
2801     echo "include confinc" > confmf
2802     # Ignore all kinds of additional output from 'make'.
2803     case `$am_make -s -f confmf 2> /dev/null` in #(
2804     *the\ am__doit\ target*)
2805     am__include=include
2806     am__quote=
2807     _am_result=GNU
2808     ;;
2809     esac
2810     # Now try BSD make style include.
2811     if test "$am__include" = "#"; then
2812     echo '.include "confinc"' > confmf
2813     case `$am_make -s -f confmf 2> /dev/null` in #(
2814     *the\ am__doit\ target*)
2815     am__include=.include
2816     am__quote="\""
2817     _am_result=BSD
2818     ;;
2819     esac
2820     fi
2821    
2822    
2823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2824     $as_echo "$_am_result" >&6; }
2825     rm -f confinc confmf
2826    
2827     # Check whether --enable-dependency-tracking was given.
2828     if test "${enable_dependency_tracking+set}" = set; then :
2829     enableval=$enable_dependency_tracking;
2830     fi
2831    
2832     if test "x$enable_dependency_tracking" != xno; then
2833     am_depcomp="$ac_aux_dir/depcomp"
2834     AMDEPBACKSLASH='\'
2835     am__nodep='_no'
2836     fi
2837     if test "x$enable_dependency_tracking" != xno; then
2838     AMDEP_TRUE=
2839     AMDEP_FALSE='#'
2840     else
2841     AMDEP_TRUE='#'
2842     AMDEP_FALSE=
2843     fi
2844    
2845    
2846 michael 5052 ac_ext=c
2847     ac_cpp='$CPP $CPPFLAGS'
2848     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2849     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2850     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851     if test -n "$ac_tool_prefix"; then
2852     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2853     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2854 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855     $as_echo_n "checking for $ac_word... " >&6; }
2856     if ${ac_cv_prog_CC+:} false; then :
2857     $as_echo_n "(cached) " >&6
2858 michael 5052 else
2859     if test -n "$CC"; then
2860     ac_cv_prog_CC="$CC" # Let the user override the test.
2861     else
2862     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863     for as_dir in $PATH
2864     do
2865     IFS=$as_save_IFS
2866     test -z "$as_dir" && as_dir=.
2867 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2868     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2870 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 michael 5052 break 2
2872     fi
2873     done
2874 michael 5059 done
2875 michael 5052 IFS=$as_save_IFS
2876    
2877     fi
2878     fi
2879     CC=$ac_cv_prog_CC
2880     if test -n "$CC"; then
2881 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882     $as_echo "$CC" >&6; }
2883 michael 5052 else
2884 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885     $as_echo "no" >&6; }
2886 michael 5052 fi
2887    
2888    
2889     fi
2890     if test -z "$ac_cv_prog_CC"; then
2891     ac_ct_CC=$CC
2892     # Extract the first word of "gcc", so it can be a program name with args.
2893     set dummy gcc; ac_word=$2
2894 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895     $as_echo_n "checking for $ac_word... " >&6; }
2896     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2897     $as_echo_n "(cached) " >&6
2898 michael 5052 else
2899     if test -n "$ac_ct_CC"; then
2900     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901     else
2902     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903     for as_dir in $PATH
2904     do
2905     IFS=$as_save_IFS
2906     test -z "$as_dir" && as_dir=.
2907 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2908     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2910 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 michael 5052 break 2
2912     fi
2913     done
2914 michael 5059 done
2915 michael 5052 IFS=$as_save_IFS
2916    
2917     fi
2918     fi
2919     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920     if test -n "$ac_ct_CC"; then
2921 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922     $as_echo "$ac_ct_CC" >&6; }
2923 michael 5052 else
2924 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925     $as_echo "no" >&6; }
2926 michael 5052 fi
2927    
2928     if test "x$ac_ct_CC" = x; then
2929     CC=""
2930     else
2931     case $cross_compiling:$ac_tool_warned in
2932     yes:)
2933 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 michael 5052 ac_tool_warned=yes ;;
2936     esac
2937     CC=$ac_ct_CC
2938     fi
2939     else
2940     CC="$ac_cv_prog_CC"
2941     fi
2942    
2943     if test -z "$CC"; then
2944     if test -n "$ac_tool_prefix"; then
2945     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946     set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948     $as_echo_n "checking for $ac_word... " >&6; }
2949     if ${ac_cv_prog_CC+:} false; then :
2950     $as_echo_n "(cached) " >&6
2951 michael 5052 else
2952     if test -n "$CC"; then
2953     ac_cv_prog_CC="$CC" # Let the user override the test.
2954     else
2955     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956     for as_dir in $PATH
2957     do
2958     IFS=$as_save_IFS
2959     test -z "$as_dir" && as_dir=.
2960 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2961     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
2963 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 michael 5052 break 2
2965     fi
2966     done
2967 michael 5059 done
2968 michael 5052 IFS=$as_save_IFS
2969    
2970     fi
2971     fi
2972     CC=$ac_cv_prog_CC
2973     if test -n "$CC"; then
2974 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975     $as_echo "$CC" >&6; }
2976 michael 5052 else
2977 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978     $as_echo "no" >&6; }
2979 michael 5052 fi
2980    
2981    
2982     fi
2983     fi
2984     if test -z "$CC"; then
2985     # Extract the first word of "cc", so it can be a program name with args.
2986     set dummy cc; ac_word=$2
2987 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988     $as_echo_n "checking for $ac_word... " >&6; }
2989     if ${ac_cv_prog_CC+:} false; then :
2990     $as_echo_n "(cached) " >&6
2991 michael 5052 else
2992     if test -n "$CC"; then
2993     ac_cv_prog_CC="$CC" # Let the user override the test.
2994     else
2995     ac_prog_rejected=no
2996     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997     for as_dir in $PATH
2998     do
2999     IFS=$as_save_IFS
3000     test -z "$as_dir" && as_dir=.
3001 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3002     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3004     ac_prog_rejected=yes
3005     continue
3006     fi
3007     ac_cv_prog_CC="cc"
3008 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 michael 5052 break 2
3010     fi
3011     done
3012 michael 5059 done
3013 michael 5052 IFS=$as_save_IFS
3014    
3015     if test $ac_prog_rejected = yes; then
3016     # We found a bogon in the path, so make sure we never use it.
3017     set dummy $ac_cv_prog_CC
3018     shift
3019     if test $# != 0; then
3020     # We chose a different compiler from the bogus one.
3021     # However, it has the same basename, so the bogon will be chosen
3022     # first if we set CC to just the basename; use the full file name.
3023     shift
3024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3025     fi
3026     fi
3027     fi
3028     fi
3029     CC=$ac_cv_prog_CC
3030     if test -n "$CC"; then
3031 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032     $as_echo "$CC" >&6; }
3033 michael 5052 else
3034 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035     $as_echo "no" >&6; }
3036 michael 5052 fi
3037    
3038    
3039     fi
3040     if test -z "$CC"; then
3041     if test -n "$ac_tool_prefix"; then
3042     for ac_prog in cl.exe
3043     do
3044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3045     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3046 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047     $as_echo_n "checking for $ac_word... " >&6; }
3048     if ${ac_cv_prog_CC+:} false; then :
3049     $as_echo_n "(cached) " >&6
3050 michael 5052 else
3051     if test -n "$CC"; then
3052     ac_cv_prog_CC="$CC" # Let the user override the test.
3053     else
3054     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055     for as_dir in $PATH
3056     do
3057     IFS=$as_save_IFS
3058     test -z "$as_dir" && as_dir=.
3059 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3060     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3062 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 michael 5052 break 2
3064     fi
3065     done
3066 michael 5059 done
3067 michael 5052 IFS=$as_save_IFS
3068    
3069     fi
3070     fi
3071     CC=$ac_cv_prog_CC
3072     if test -n "$CC"; then
3073 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074     $as_echo "$CC" >&6; }
3075 michael 5052 else
3076 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077     $as_echo "no" >&6; }
3078 michael 5052 fi
3079    
3080    
3081     test -n "$CC" && break
3082     done
3083     fi
3084     if test -z "$CC"; then
3085     ac_ct_CC=$CC
3086     for ac_prog in cl.exe
3087     do
3088     # Extract the first word of "$ac_prog", so it can be a program name with args.
3089     set dummy $ac_prog; ac_word=$2
3090 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091     $as_echo_n "checking for $ac_word... " >&6; }
3092     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093     $as_echo_n "(cached) " >&6
3094 michael 5052 else
3095     if test -n "$ac_ct_CC"; then
3096     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097     else
3098     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099     for as_dir in $PATH
3100     do
3101     IFS=$as_save_IFS
3102     test -z "$as_dir" && as_dir=.
3103 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3104     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3106 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 michael 5052 break 2
3108     fi
3109     done
3110 michael 5059 done
3111 michael 5052 IFS=$as_save_IFS
3112    
3113     fi
3114     fi
3115     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116     if test -n "$ac_ct_CC"; then
3117 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118     $as_echo "$ac_ct_CC" >&6; }
3119 michael 5052 else
3120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121     $as_echo "no" >&6; }
3122 michael 5052 fi
3123    
3124    
3125     test -n "$ac_ct_CC" && break
3126     done
3127    
3128     if test "x$ac_ct_CC" = x; then
3129     CC=""
3130     else
3131     case $cross_compiling:$ac_tool_warned in
3132     yes:)
3133 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3134     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3135 michael 5052 ac_tool_warned=yes ;;
3136     esac
3137     CC=$ac_ct_CC
3138     fi
3139     fi
3140    
3141     fi
3142    
3143    
3144 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146     as_fn_error $? "no acceptable C compiler found in \$PATH
3147     See \`config.log' for more details" "$LINENO" 5; }
3148 michael 5052
3149     # Provide some information about the compiler.
3150 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3151     set X $ac_compile
3152     ac_compiler=$2
3153     for ac_option in --version -v -V -qversion; do
3154     { { ac_try="$ac_compiler $ac_option >&5"
3155 michael 5052 case "(($ac_try" in
3156     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157     *) ac_try_echo=$ac_try;;
3158     esac
3159 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160     $as_echo "$ac_try_echo"; } >&5
3161     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3162 michael 5052 ac_status=$?
3163 michael 5059 if test -s conftest.err; then
3164     sed '10a\
3165     ... rest of stderr output deleted ...
3166     10q' conftest.err >conftest.er1
3167     cat conftest.er1 >&5
3168     fi
3169     rm -f conftest.er1 conftest.err
3170     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171     test $ac_status = 0; }
3172     done
3173 michael 5052
3174 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3175 michael 5052 /* end confdefs.h. */
3176    
3177     int
3178     main ()
3179     {
3180    
3181     ;
3182     return 0;
3183     }
3184     _ACEOF
3185     ac_clean_files_save=$ac_clean_files
3186 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3187 michael 5052 # Try to create an executable without -o first, disregard a.out.
3188     # It will help us diagnose broken compilers, and finding out an intuition
3189     # of exeext.
3190 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3191     $as_echo_n "checking whether the C compiler works... " >&6; }
3192     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3193    
3194     # The possible output files:
3195     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3196    
3197 michael 5052 ac_rmfiles=
3198     for ac_file in $ac_files
3199     do
3200     case $ac_file in
3201 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203     esac
3204     done
3205     rm -f $ac_rmfiles
3206    
3207 michael 5059 if { { ac_try="$ac_link_default"
3208 michael 5052 case "(($ac_try" in
3209     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210     *) ac_try_echo=$ac_try;;
3211     esac
3212 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213     $as_echo "$ac_try_echo"; } >&5
3214 michael 5052 (eval "$ac_link_default") 2>&5
3215     ac_status=$?
3216 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217     test $ac_status = 0; }; then :
3218 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221     # so that the user can short-circuit this test for compilers unknown to
3222     # Autoconf.
3223 michael 5059 for ac_file in $ac_files ''
3224 michael 5052 do
3225     test -f "$ac_file" || continue
3226     case $ac_file in
3227 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3228 michael 5052 ;;
3229     [ab].out )
3230     # We found the default executable, but exeext='' is most
3231     # certainly right.
3232     break;;
3233     *.* )
3234 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 michael 5052 then :; else
3236     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237     fi
3238     # We set ac_cv_exeext here because the later test for it is not
3239     # safe: cross compilers may not add the suffix if given an `-o'
3240     # argument, so we may need to know it at that point already.
3241     # Even if this section looks crufty: it has the advantage of
3242     # actually working.
3243     break;;
3244     * )
3245     break;;
3246     esac
3247     done
3248     test "$ac_cv_exeext" = no && ac_cv_exeext=
3249    
3250     else
3251 michael 5059 ac_file=''
3252     fi
3253     if test -z "$ac_file"; then :
3254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255     $as_echo "no" >&6; }
3256     $as_echo "$as_me: failed program was:" >&5
3257 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3258    
3259 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3260     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3261     as_fn_error 77 "C compiler cannot create executables
3262     See \`config.log' for more details" "$LINENO" 5; }
3263     else
3264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265     $as_echo "yes" >&6; }
3266 michael 5052 fi
3267 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3268     $as_echo_n "checking for C compiler default output file name... " >&6; }
3269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3270     $as_echo "$ac_file" >&6; }
3271 michael 5052 ac_exeext=$ac_cv_exeext
3272    
3273 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3274 michael 5052 ac_clean_files=$ac_clean_files_save
3275 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3276     $as_echo_n "checking for suffix of executables... " >&6; }
3277     if { { ac_try="$ac_link"
3278 michael 5052 case "(($ac_try" in
3279     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280     *) ac_try_echo=$ac_try;;
3281     esac
3282 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283     $as_echo "$ac_try_echo"; } >&5
3284 michael 5052 (eval "$ac_link") 2>&5
3285     ac_status=$?
3286 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287     test $ac_status = 0; }; then :
3288 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3289     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3290     # work properly (i.e., refer to `conftest.exe'), while it won't with
3291     # `rm'.
3292     for ac_file in conftest.exe conftest conftest.*; do
3293     test -f "$ac_file" || continue
3294     case $ac_file in
3295 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297     break;;
3298     * ) break;;
3299     esac
3300     done
3301     else
3302 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3305     See \`config.log' for more details" "$LINENO" 5; }
3306 michael 5052 fi
3307 michael 5059 rm -f conftest conftest$ac_cv_exeext
3308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3309     $as_echo "$ac_cv_exeext" >&6; }
3310 michael 5052
3311     rm -f conftest.$ac_ext
3312     EXEEXT=$ac_cv_exeext
3313     ac_exeext=$EXEEXT
3314 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315     /* end confdefs.h. */
3316     #include <stdio.h>
3317     int
3318     main ()
3319     {
3320     FILE *f = fopen ("conftest.out", "w");
3321     return ferror (f) || fclose (f) != 0;
3322    
3323     ;
3324     return 0;
3325     }
3326     _ACEOF
3327     ac_clean_files="$ac_clean_files conftest.out"
3328     # Check that the compiler produces executables we can run. If not, either
3329     # the compiler is broken, or we cross compile.
3330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3331     $as_echo_n "checking whether we are cross compiling... " >&6; }
3332     if test "$cross_compiling" != yes; then
3333     { { ac_try="$ac_link"
3334     case "(($ac_try" in
3335     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336     *) ac_try_echo=$ac_try;;
3337     esac
3338     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339     $as_echo "$ac_try_echo"; } >&5
3340     (eval "$ac_link") 2>&5
3341     ac_status=$?
3342     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343     test $ac_status = 0; }
3344     if { ac_try='./conftest$ac_cv_exeext'
3345     { { case "(($ac_try" in
3346     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347     *) ac_try_echo=$ac_try;;
3348     esac
3349     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350     $as_echo "$ac_try_echo"; } >&5
3351     (eval "$ac_try") 2>&5
3352     ac_status=$?
3353     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354     test $ac_status = 0; }; }; then
3355     cross_compiling=no
3356     else
3357     if test "$cross_compiling" = maybe; then
3358     cross_compiling=yes
3359     else
3360     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362     as_fn_error $? "cannot run C compiled programs.
3363     If you meant to cross compile, use \`--host'.
3364     See \`config.log' for more details" "$LINENO" 5; }
3365     fi
3366     fi
3367     fi
3368     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369     $as_echo "$cross_compiling" >&6; }
3370    
3371     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3372     ac_clean_files=$ac_clean_files_save
3373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3374     $as_echo_n "checking for suffix of object files... " >&6; }
3375     if ${ac_cv_objext+:} false; then :
3376     $as_echo_n "(cached) " >&6
3377 michael 5052 else
3378 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 michael 5052 /* end confdefs.h. */
3380    
3381     int
3382     main ()
3383     {
3384    
3385     ;
3386     return 0;
3387     }
3388     _ACEOF
3389     rm -f conftest.o conftest.obj
3390 michael 5059 if { { ac_try="$ac_compile"
3391 michael 5052 case "(($ac_try" in
3392     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393     *) ac_try_echo=$ac_try;;
3394     esac
3395 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396     $as_echo "$ac_try_echo"; } >&5
3397 michael 5052 (eval "$ac_compile") 2>&5
3398     ac_status=$?
3399 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400     test $ac_status = 0; }; then :
3401 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3402     test -f "$ac_file" || continue;
3403     case $ac_file in
3404 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3405 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3406     break;;
3407     esac
3408     done
3409     else
3410 michael 5059 $as_echo "$as_me: failed program was:" >&5
3411 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3412    
3413 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415     as_fn_error $? "cannot compute suffix of object files: cannot compile
3416     See \`config.log' for more details" "$LINENO" 5; }
3417 michael 5052 fi
3418     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3419     fi
3420 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3421     $as_echo "$ac_cv_objext" >&6; }
3422 michael 5052 OBJEXT=$ac_cv_objext
3423     ac_objext=$OBJEXT
3424 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3425     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3426     if ${ac_cv_c_compiler_gnu+:} false; then :
3427     $as_echo_n "(cached) " >&6
3428 michael 5052 else
3429 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 michael 5052 /* end confdefs.h. */
3431    
3432     int
3433     main ()
3434     {
3435     #ifndef __GNUC__
3436     choke me
3437     #endif
3438    
3439     ;
3440     return 0;
3441     }
3442     _ACEOF
3443 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3444 michael 5052 ac_compiler_gnu=yes
3445     else
3446 michael 5059 ac_compiler_gnu=no
3447 michael 5052 fi
3448     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3450    
3451     fi
3452 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3453     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3454     if test $ac_compiler_gnu = yes; then
3455     GCC=yes
3456     else
3457     GCC=
3458     fi
3459 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3460     ac_save_CFLAGS=$CFLAGS
3461 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3462     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3463     if ${ac_cv_prog_cc_g+:} false; then :
3464     $as_echo_n "(cached) " >&6
3465 michael 5052 else
3466     ac_save_c_werror_flag=$ac_c_werror_flag
3467     ac_c_werror_flag=yes
3468     ac_cv_prog_cc_g=no
3469     CFLAGS="-g"
3470 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 michael 5052 /* end confdefs.h. */
3472    
3473     int
3474     main ()
3475     {
3476    
3477     ;
3478     return 0;
3479     }
3480     _ACEOF
3481 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3482 michael 5052 ac_cv_prog_cc_g=yes
3483     else
3484 michael 5059 CFLAGS=""
3485     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 michael 5052 /* end confdefs.h. */
3487    
3488     int
3489     main ()
3490     {
3491    
3492     ;
3493     return 0;
3494     }
3495     _ACEOF
3496 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3497    
3498 michael 5052 else
3499 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3500 michael 5052 CFLAGS="-g"
3501 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 michael 5052 /* end confdefs.h. */
3503    
3504     int
3505     main ()
3506     {
3507    
3508     ;
3509     return 0;
3510     }
3511     _ACEOF
3512 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3513 michael 5052 ac_cv_prog_cc_g=yes
3514     fi
3515     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516     fi
3517     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518     fi
3519     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520     ac_c_werror_flag=$ac_save_c_werror_flag
3521     fi
3522 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3523     $as_echo "$ac_cv_prog_cc_g" >&6; }
3524 michael 5052 if test "$ac_test_CFLAGS" = set; then
3525     CFLAGS=$ac_save_CFLAGS
3526     elif test $ac_cv_prog_cc_g = yes; then
3527     if test "$GCC" = yes; then
3528     CFLAGS="-g -O2"
3529     else
3530     CFLAGS="-g"
3531     fi
3532     else
3533     if test "$GCC" = yes; then
3534     CFLAGS="-O2"
3535     else
3536     CFLAGS=
3537     fi
3538     fi
3539 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3540     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3541     if ${ac_cv_prog_cc_c89+:} false; then :
3542     $as_echo_n "(cached) " >&6
3543 michael 5052 else
3544     ac_cv_prog_cc_c89=no
3545     ac_save_CC=$CC
3546 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 michael 5052 /* end confdefs.h. */
3548     #include <stdarg.h>
3549     #include <stdio.h>
3550 michael 5059 struct stat;
3551 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3552     struct buf { int x; };
3553     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3554     static char *e (p, i)
3555     char **p;
3556     int i;
3557     {
3558     return p[i];
3559     }
3560     static char *f (char * (*g) (char **, int), char **p, ...)
3561     {
3562     char *s;
3563     va_list v;
3564     va_start (v,p);
3565     s = g (p, va_arg (v,int));
3566     va_end (v);
3567     return s;
3568     }
3569    
3570     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3571     function prototypes and stuff, but not '\xHH' hex character constants.
3572     These don't provoke an error unfortunately, instead are silently treated
3573     as 'x'. The following induces an error, until -std is added to get
3574     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3575     array size at least. It's necessary to write '\x00'==0 to get something
3576     that's true only with -std. */
3577     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578    
3579     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3580     inside strings and character constants. */
3581     #define FOO(x) 'x'
3582     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583    
3584     int test (int i, double x);
3585     struct s1 {int (*f) (int a);};
3586     struct s2 {int (*f) (double a);};
3587     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3588     int argc;
3589     char **argv;
3590     int
3591     main ()
3592     {
3593     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594     ;
3595     return 0;
3596     }
3597     _ACEOF
3598     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3599     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600     do
3601     CC="$ac_save_CC $ac_arg"
3602 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3603 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3604     fi
3605     rm -f core conftest.err conftest.$ac_objext
3606     test "x$ac_cv_prog_cc_c89" != "xno" && break
3607     done
3608     rm -f conftest.$ac_ext
3609     CC=$ac_save_CC
3610    
3611     fi
3612     # AC_CACHE_VAL
3613     case "x$ac_cv_prog_cc_c89" in
3614     x)
3615 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3616     $as_echo "none needed" >&6; } ;;
3617 michael 5052 xno)
3618 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3619     $as_echo "unsupported" >&6; } ;;
3620 michael 5052 *)
3621     CC="$CC $ac_cv_prog_cc_c89"
3622 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3623     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3624 michael 5052 esac
3625 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3626 michael 5052
3627 michael 5059 fi
3628 michael 5052
3629     ac_ext=c
3630     ac_cpp='$CPP $CPPFLAGS'
3631     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634    
3635 michael 5059 ac_ext=c
3636     ac_cpp='$CPP $CPPFLAGS'
3637     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3641     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3642     if ${am_cv_prog_cc_c_o+:} false; then :
3643     $as_echo_n "(cached) " >&6
3644     else
3645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646     /* end confdefs.h. */
3647 michael 5052
3648 michael 5059 int
3649     main ()
3650     {
3651 michael 5052
3652 michael 5059 ;
3653     return 0;
3654     }
3655     _ACEOF
3656     # Make sure it works both with $CC and with simple cc.
3657     # Following AC_PROG_CC_C_O, we do the test twice because some
3658     # compilers refuse to overwrite an existing .o file with -o,
3659     # though they will create one.
3660     am_cv_prog_cc_c_o=yes
3661     for am_i in 1 2; do
3662     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3663     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3664     ac_status=$?
3665     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666     (exit $ac_status); } \
3667     && test -f conftest2.$ac_objext; then
3668     : OK
3669     else
3670     am_cv_prog_cc_c_o=no
3671     break
3672     fi
3673     done
3674     rm -f core conftest*
3675     unset am_i
3676 michael 5052 fi
3677 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3678     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3679     if test "$am_cv_prog_cc_c_o" != yes; then
3680     # Losing compiler, so override with the script.
3681     # FIXME: It is wrong to rewrite CC.
3682     # But if we don't then we get into trouble of one sort or another.
3683     # A longer-term fix would be to have automake use am__CC in this case,
3684     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3685     CC="$am_aux_dir/compile $CC"
3686 michael 5052 fi
3687 michael 5059 ac_ext=c
3688     ac_cpp='$CPP $CPPFLAGS'
3689     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692 michael 5052
3693    
3694     depcc="$CC" am_compiler_list=
3695    
3696 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3697     $as_echo_n "checking dependency style of $depcc... " >&6; }
3698     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3699     $as_echo_n "(cached) " >&6
3700 michael 5052 else
3701     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3702     # We make a subdir and do the tests there. Otherwise we can end up
3703     # making bogus files that we don't know about and never remove. For
3704     # instance it was reported that on HP-UX the gcc test will end up
3705 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3706     # in D".
3707     rm -rf conftest.dir
3708 michael 5052 mkdir conftest.dir
3709     # Copy depcomp to subdir because otherwise we won't find it if we're
3710     # using a relative directory.
3711     cp "$am_depcomp" conftest.dir
3712     cd conftest.dir
3713     # We will build objects and dependencies in a subdirectory because
3714     # it helps to detect inapplicable dependency modes. For instance
3715     # both Tru64's cc and ICC support -MD to output dependencies as a
3716     # side effect of compilation, but ICC will put the dependencies in
3717     # the current directory while Tru64 will put them in the object
3718     # directory.
3719     mkdir sub
3720    
3721     am_cv_CC_dependencies_compiler_type=none
3722     if test "$am_compiler_list" = ""; then
3723     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3724     fi
3725 michael 5059 am__universal=false
3726     case " $depcc " in #(
3727     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728     esac
3729    
3730 michael 5052 for depmode in $am_compiler_list; do
3731     # Setup a source with many dependencies, because some compilers
3732     # like to wrap large dependency lists on column 80 (with \), and
3733     # we should not choose a depcomp mode which is confused by this.
3734     #
3735     # We need to recreate these files for each test, as the compiler may
3736     # overwrite some of them when testing with obscure command lines.
3737     # This happens at least with the AIX C compiler.
3738     : > sub/conftest.c
3739     for i in 1 2 3 4 5 6; do
3740     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3742     # Solaris 10 /bin/sh.
3743     echo '/* dummy */' > sub/conftst$i.h
3744 michael 5052 done
3745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3746    
3747 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3748     # mode. It turns out that the SunPro C++ compiler does not properly
3749     # handle '-M -o', and we need to detect this. Also, some Intel
3750     # versions had trouble with output in subdirs.
3751     am__obj=sub/conftest.${OBJEXT-o}
3752     am__minus_obj="-o $am__obj"
3753 michael 5052 case $depmode in
3754 michael 5059 gcc)
3755     # This depmode causes a compiler race in universal mode.
3756     test "$am__universal" = false || continue
3757     ;;
3758 michael 5052 nosideeffect)
3759 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3760     # only be used when explicitly requested.
3761 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3762     continue
3763     else
3764     break
3765     fi
3766     ;;
3767 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3768     # This compiler won't grok '-c -o', but also, the minuso test has
3769     # not run yet. These depmodes are late enough in the game, and
3770     # so weak that their functioning should not be impacted.
3771     am__obj=conftest.${OBJEXT-o}
3772     am__minus_obj=
3773     ;;
3774 michael 5052 none) break ;;
3775     esac
3776     if depmode=$depmode \
3777 michael 5059 source=sub/conftest.c object=$am__obj \
3778 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780 michael 5052 >/dev/null 2>conftest.err &&
3781 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785     # icc doesn't choke on unknown options, it will just issue warnings
3786     # or remarks (even with -Werror). So we grep stderr for any message
3787     # that says an option was ignored or not supported.
3788     # When given -MP, icc 7.0 and 7.1 complain thusly:
3789     # icc: Command line warning: ignoring option '-M'; no argument required
3790     # The diagnosis changed in icc 8.0:
3791     # icc: Command line remark: option '-MP' not supported
3792     if (grep 'ignoring option' conftest.err ||
3793     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794     am_cv_CC_dependencies_compiler_type=$depmode
3795     break
3796     fi
3797     fi
3798     done
3799    
3800     cd ..
3801     rm -rf conftest.dir
3802     else
3803     am_cv_CC_dependencies_compiler_type=none
3804     fi
3805    
3806     fi
3807 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3810    
3811 michael 5059 if
3812 michael 5052 test "x$enable_dependency_tracking" != xno \
3813     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814     am__fastdepCC_TRUE=
3815     am__fastdepCC_FALSE='#'
3816     else
3817     am__fastdepCC_TRUE='#'
3818     am__fastdepCC_FALSE=
3819     fi
3820    
3821    
3822 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3823     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3824     if ${ac_cv_prog_cc_c99+:} false; then :
3825     $as_echo_n "(cached) " >&6
3826 michael 5052 else
3827 michael 5059 ac_cv_prog_cc_c99=no
3828     ac_save_CC=$CC
3829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830     /* end confdefs.h. */
3831     #include <stdarg.h>
3832     #include <stdbool.h>
3833     #include <stdlib.h>
3834     #include <wchar.h>
3835     #include <stdio.h>
3836    
3837     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3838     #define debug(...) fprintf (stderr, __VA_ARGS__)
3839     #define showlist(...) puts (#__VA_ARGS__)
3840     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3841     static void
3842     test_varargs_macros (void)
3843     {
3844     int x = 1234;
3845     int y = 5678;
3846     debug ("Flag");
3847     debug ("X = %d\n", x);
3848     showlist (The first, second, and third items.);
3849     report (x>y, "x is %d but y is %d", x, y);
3850     }
3851    
3852     // Check long long types.
3853     #define BIG64 18446744073709551615ull
3854     #define BIG32 4294967295ul
3855     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3856     #if !BIG_OK
3857     your preprocessor is broken;
3858     #endif
3859     #if BIG_OK
3860     #else
3861     your preprocessor is broken;
3862     #endif
3863     static long long int bignum = -9223372036854775807LL;
3864     static unsigned long long int ubignum = BIG64;
3865    
3866     struct incomplete_array
3867     {
3868     int datasize;
3869     double data[];
3870     };
3871    
3872     struct named_init {
3873     int number;
3874     const wchar_t *name;
3875     double average;
3876     };
3877    
3878     typedef const char *ccp;
3879    
3880     static inline int
3881     test_restrict (ccp restrict text)
3882     {
3883     // See if C++-style comments work.
3884     // Iterate through items via the restricted pointer.
3885     // Also check for declarations in for loops.
3886     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3887     continue;
3888     return 0;
3889     }
3890    
3891     // Check varargs and va_copy.
3892     static void
3893     test_varargs (const char *format, ...)
3894     {
3895     va_list args;
3896     va_start (args, format);
3897     va_list args_copy;
3898     va_copy (args_copy, args);
3899    
3900     const char *str;
3901     int number;
3902     float fnumber;
3903    
3904     while (*format)
3905     {
3906     switch (*format++)
3907     {
3908     case 's': // string
3909     str = va_arg (args_copy, const char *);
3910     break;
3911     case 'd': // int
3912     number = va_arg (args_copy, int);
3913     break;
3914     case 'f': // float
3915     fnumber = va_arg (args_copy, double);
3916     break;
3917     default:
3918     break;
3919     }
3920     }
3921     va_end (args_copy);
3922     va_end (args);
3923     }
3924    
3925     int
3926     main ()
3927     {
3928    
3929     // Check bool.
3930     _Bool success = false;
3931    
3932     // Check restrict.
3933     if (test_restrict ("String literal") == 0)
3934     success = true;
3935     char *restrict newvar = "Another string";
3936    
3937     // Check varargs.
3938     test_varargs ("s, d' f .", "string", 65, 34.234);
3939     test_varargs_macros ();
3940    
3941     // Check flexible array members.
3942     struct incomplete_array *ia =
3943     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3944     ia->datasize = 10;
3945     for (int i = 0; i < ia->datasize; ++i)
3946     ia->data[i] = i * 1.234;
3947    
3948     // Check named initializers.
3949     struct named_init ni = {
3950     .number = 34,
3951     .name = L"Test wide string",
3952     .average = 543.34343,
3953     };
3954    
3955     ni.number = 58;
3956    
3957     int dynamic_array[ni.number];
3958     dynamic_array[ni.number - 1] = 543;
3959    
3960     // work around unused variable warnings
3961     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3962     || dynamic_array[ni.number - 1] != 543);
3963    
3964     ;
3965     return 0;
3966     }
3967     _ACEOF
3968     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3969     do
3970     CC="$ac_save_CC $ac_arg"
3971     if ac_fn_c_try_compile "$LINENO"; then :
3972     ac_cv_prog_cc_c99=$ac_arg
3973 michael 5052 fi
3974 michael 5059 rm -f core conftest.err conftest.$ac_objext
3975     test "x$ac_cv_prog_cc_c99" != "xno" && break
3976     done
3977     rm -f conftest.$ac_ext
3978     CC=$ac_save_CC
3979 michael 5052
3980 michael 5059 fi
3981     # AC_CACHE_VAL
3982     case "x$ac_cv_prog_cc_c99" in
3983     x)
3984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3985     $as_echo "none needed" >&6; } ;;
3986     xno)
3987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3988     $as_echo "unsupported" >&6; } ;;
3989     *)
3990     CC="$CC $ac_cv_prog_cc_c99"
3991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3992     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3993     esac
3994     if test "x$ac_cv_prog_cc_c99" != xno; then :
3995 michael 5052
3996     fi
3997    
3998    
3999 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4000     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4001 michael 5052 fi
4002 michael 5059 case `pwd` in
4003     *\ * | *\ *)
4004     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4005     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4006     esac
4007 michael 5052
4008    
4009 michael 5059
4010 michael 5860 macro_version='2.4.6'
4011     macro_revision='2.4.6'
4012 michael 5059
4013    
4014    
4015    
4016    
4017    
4018    
4019    
4020    
4021    
4022    
4023    
4024    
4025     ltmain=$ac_aux_dir/ltmain.sh
4026    
4027 michael 5052 # Make sure we can run config.sub.
4028     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4029 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4030 michael 5052
4031 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4032     $as_echo_n "checking build system type... " >&6; }
4033     if ${ac_cv_build+:} false; then :
4034     $as_echo_n "(cached) " >&6
4035 michael 5052 else
4036     ac_build_alias=$build_alias
4037     test "x$ac_build_alias" = x &&
4038     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4039     test "x$ac_build_alias" = x &&
4040 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4041 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4042 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4043 michael 5052
4044     fi
4045 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4046     $as_echo "$ac_cv_build" >&6; }
4047 michael 5052 case $ac_cv_build in
4048     *-*-*) ;;
4049 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4050 michael 5052 esac
4051     build=$ac_cv_build
4052     ac_save_IFS=$IFS; IFS='-'
4053     set x $ac_cv_build
4054     shift
4055     build_cpu=$1
4056     build_vendor=$2
4057     shift; shift
4058     # Remember, the first character of IFS is used to create $*,
4059     # except with old shells:
4060     build_os=$*
4061     IFS=$ac_save_IFS
4062     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4063    
4064    
4065 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4066     $as_echo_n "checking host system type... " >&6; }
4067     if ${ac_cv_host+:} false; then :
4068     $as_echo_n "(cached) " >&6
4069 michael 5052 else
4070     if test "x$host_alias" = x; then
4071     ac_cv_host=$ac_cv_build
4072     else
4073     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4074 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4075 michael 5052 fi
4076    
4077     fi
4078 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4079     $as_echo "$ac_cv_host" >&6; }
4080 michael 5052 case $ac_cv_host in
4081     *-*-*) ;;
4082 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4083 michael 5052 esac
4084     host=$ac_cv_host
4085     ac_save_IFS=$IFS; IFS='-'
4086     set x $ac_cv_host
4087     shift
4088     host_cpu=$1
4089     host_vendor=$2
4090     shift; shift
4091     # Remember, the first character of IFS is used to create $*,
4092     # except with old shells:
4093     host_os=$*
4094     IFS=$ac_save_IFS
4095     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4096    
4097    
4098 michael 5059 # Backslashify metacharacters that are still active within
4099     # double-quoted strings.
4100     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4101    
4102     # Same as above, but do not quote variable references.
4103     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4104    
4105     # Sed substitution to delay expansion of an escaped shell variable in a
4106     # double_quote_subst'ed string.
4107     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4108    
4109     # Sed substitution to delay expansion of an escaped single quote.
4110     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4111    
4112     # Sed substitution to avoid accidental globbing in evaled expressions
4113     no_glob_subst='s/\*/\\\*/g'
4114    
4115     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4116     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4117     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4118    
4119     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4120     $as_echo_n "checking how to print strings... " >&6; }
4121     # Test print first, because it will be a builtin if present.
4122     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4123     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4124     ECHO='print -r --'
4125     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4126     ECHO='printf %s\n'
4127 michael 5052 else
4128 michael 5059 # Use this function as a fallback that always works.
4129     func_fallback_echo ()
4130     {
4131     eval 'cat <<_LTECHO_EOF
4132     $1
4133     _LTECHO_EOF'
4134     }
4135     ECHO='func_fallback_echo'
4136     fi
4137    
4138     # func_echo_all arg...
4139     # Invoke $ECHO with all args, space-separated.
4140     func_echo_all ()
4141     {
4142     $ECHO ""
4143     }
4144    
4145     case $ECHO in
4146     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4147     $as_echo "printf" >&6; } ;;
4148     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4149     $as_echo "print -r" >&6; } ;;
4150     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4151     $as_echo "cat" >&6; } ;;
4152     esac
4153    
4154    
4155    
4156    
4157    
4158    
4159    
4160    
4161    
4162    
4163    
4164    
4165    
4166    
4167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4168     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4169     if ${ac_cv_path_SED+:} false; then :
4170     $as_echo_n "(cached) " >&6
4171     else
4172     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4173     for ac_i in 1 2 3 4 5 6 7; do
4174     ac_script="$ac_script$as_nl$ac_script"
4175     done
4176     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4177     { ac_script=; unset ac_script;}
4178     if test -z "$SED"; then
4179     ac_path_SED_found=false
4180     # Loop through the user's path and test for each of PROGNAME-LIST
4181     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 michael 5052 for as_dir in $PATH
4183     do
4184     IFS=$as_save_IFS
4185     test -z "$as_dir" && as_dir=.
4186 michael 5059 for ac_prog in sed gsed; do
4187 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4188 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4189     as_fn_executable_p "$ac_path_SED" || continue
4190     # Check for GNU ac_path_SED and select it if it is found.
4191     # Check for GNU $ac_path_SED
4192     case `"$ac_path_SED" --version 2>&1` in
4193     *GNU*)
4194     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4195     *)
4196     ac_count=0
4197     $as_echo_n 0123456789 >"conftest.in"
4198     while :
4199     do
4200     cat "conftest.in" "conftest.in" >"conftest.tmp"
4201     mv "conftest.tmp" "conftest.in"
4202     cp "conftest.in" "conftest.nl"
4203     $as_echo '' >> "conftest.nl"
4204     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4206     as_fn_arith $ac_count + 1 && ac_count=$as_val
4207     if test $ac_count -gt ${ac_path_SED_max-0}; then
4208     # Best one so far, save it but keep looking for a better one
4209     ac_cv_path_SED="$ac_path_SED"
4210     ac_path_SED_max=$ac_count
4211     fi
4212     # 10*(2^10) chars as input seems more than enough
4213     test $ac_count -gt 10 && break
4214     done
4215     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4216     esac
4217    
4218     $ac_path_SED_found && break 3
4219 michael 5052 done
4220     done
4221 michael 5059 done
4222     IFS=$as_save_IFS
4223     if test -z "$ac_cv_path_SED"; then
4224     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4225 michael 5052 fi
4226 michael 5059 else
4227     ac_cv_path_SED=$SED
4228     fi
4229 michael 5052
4230     fi
4231 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4232     $as_echo "$ac_cv_path_SED" >&6; }
4233     SED="$ac_cv_path_SED"
4234     rm -f conftest.sed
4235 michael 5052
4236 michael 5059 test -z "$SED" && SED=sed
4237     Xsed="$SED -e 1s/^X//"
4238 michael 5052
4239 michael 5059
4240    
4241    
4242    
4243    
4244    
4245    
4246    
4247    
4248    
4249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4250     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4251     if ${ac_cv_path_GREP+:} false; then :
4252     $as_echo_n "(cached) " >&6
4253 michael 5052 else
4254 michael 5059 if test -z "$GREP"; then
4255 michael 5052 ac_path_GREP_found=false
4256 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4257     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4259     do
4260     IFS=$as_save_IFS
4261     test -z "$as_dir" && as_dir=.
4262 michael 5059 for ac_prog in grep ggrep; do
4263     for ac_exec_ext in '' $ac_executable_extensions; do
4264     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4265     as_fn_executable_p "$ac_path_GREP" || continue
4266     # Check for GNU ac_path_GREP and select it if it is found.
4267 michael 5052 # Check for GNU $ac_path_GREP
4268     case `"$ac_path_GREP" --version 2>&1` in
4269     *GNU*)
4270     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4271     *)
4272     ac_count=0
4273 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4274 michael 5052 while :
4275     do
4276     cat "conftest.in" "conftest.in" >"conftest.tmp"
4277     mv "conftest.tmp" "conftest.in"
4278     cp "conftest.in" "conftest.nl"
4279 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4280 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4283 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4284     # Best one so far, save it but keep looking for a better one
4285     ac_cv_path_GREP="$ac_path_GREP"
4286     ac_path_GREP_max=$ac_count
4287     fi
4288     # 10*(2^10) chars as input seems more than enough
4289     test $ac_count -gt 10 && break
4290     done
4291     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292     esac
4293    
4294 michael 5059 $ac_path_GREP_found && break 3
4295     done
4296 michael 5052 done
4297 michael 5059 done
4298 michael 5052 IFS=$as_save_IFS
4299 michael 5059 if test -z "$ac_cv_path_GREP"; then
4300     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4301     fi
4302 michael 5052 else
4303     ac_cv_path_GREP=$GREP
4304     fi
4305    
4306     fi
4307 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4308     $as_echo "$ac_cv_path_GREP" >&6; }
4309 michael 5052 GREP="$ac_cv_path_GREP"
4310    
4311    
4312 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4313     $as_echo_n "checking for egrep... " >&6; }
4314     if ${ac_cv_path_EGREP+:} false; then :
4315     $as_echo_n "(cached) " >&6
4316 michael 5052 else
4317     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4318     then ac_cv_path_EGREP="$GREP -E"
4319     else
4320 michael 5059 if test -z "$EGREP"; then
4321 michael 5052 ac_path_EGREP_found=false
4322 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4323     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4325     do
4326     IFS=$as_save_IFS
4327     test -z "$as_dir" && as_dir=.
4328 michael 5059 for ac_prog in egrep; do
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4331     as_fn_executable_p "$ac_path_EGREP" || continue
4332     # Check for GNU ac_path_EGREP and select it if it is found.
4333 michael 5052 # Check for GNU $ac_path_EGREP
4334     case `"$ac_path_EGREP" --version 2>&1` in
4335     *GNU*)
4336     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4337     *)
4338     ac_count=0
4339 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4340 michael 5052 while :
4341     do
4342     cat "conftest.in" "conftest.in" >"conftest.tmp"
4343     mv "conftest.tmp" "conftest.in"
4344     cp "conftest.in" "conftest.nl"
4345 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4346 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4347     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4348 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4349 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4350     # Best one so far, save it but keep looking for a better one
4351     ac_cv_path_EGREP="$ac_path_EGREP"
4352     ac_path_EGREP_max=$ac_count
4353     fi
4354     # 10*(2^10) chars as input seems more than enough
4355     test $ac_count -gt 10 && break
4356     done
4357     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4358     esac
4359    
4360 michael 5059 $ac_path_EGREP_found && break 3
4361     done
4362 michael 5052 done
4363 michael 5059 done
4364 michael 5052 IFS=$as_save_IFS
4365 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4366     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4367     fi
4368     else
4369     ac_cv_path_EGREP=$EGREP
4370 michael 5052 fi
4371    
4372 michael 5059 fi
4373 michael 5052 fi
4374 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4375     $as_echo "$ac_cv_path_EGREP" >&6; }
4376     EGREP="$ac_cv_path_EGREP"
4377 michael 5052
4378 michael 5059
4379     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4380     $as_echo_n "checking for fgrep... " >&6; }
4381     if ${ac_cv_path_FGREP+:} false; then :
4382     $as_echo_n "(cached) " >&6
4383 michael 5052 else
4384 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4385     then ac_cv_path_FGREP="$GREP -F"
4386     else
4387     if test -z "$FGREP"; then
4388     ac_path_FGREP_found=false
4389     # Loop through the user's path and test for each of PROGNAME-LIST
4390     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392     do
4393     IFS=$as_save_IFS
4394     test -z "$as_dir" && as_dir=.
4395     for ac_prog in fgrep; do
4396     for ac_exec_ext in '' $ac_executable_extensions; do
4397     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4398     as_fn_executable_p "$ac_path_FGREP" || continue
4399     # Check for GNU ac_path_FGREP and select it if it is found.
4400     # Check for GNU $ac_path_FGREP
4401     case `"$ac_path_FGREP" --version 2>&1` in
4402     *GNU*)
4403     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4404     *)
4405     ac_count=0
4406     $as_echo_n 0123456789 >"conftest.in"
4407     while :
4408     do
4409     cat "conftest.in" "conftest.in" >"conftest.tmp"
4410     mv "conftest.tmp" "conftest.in"
4411     cp "conftest.in" "conftest.nl"
4412     $as_echo 'FGREP' >> "conftest.nl"
4413     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415     as_fn_arith $ac_count + 1 && ac_count=$as_val
4416     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4417     # Best one so far, save it but keep looking for a better one
4418     ac_cv_path_FGREP="$ac_path_FGREP"
4419     ac_path_FGREP_max=$ac_count
4420     fi
4421     # 10*(2^10) chars as input seems more than enough
4422     test $ac_count -gt 10 && break
4423     done
4424     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425     esac
4426    
4427     $ac_path_FGREP_found && break 3
4428     done
4429     done
4430     done
4431     IFS=$as_save_IFS
4432     if test -z "$ac_cv_path_FGREP"; then
4433     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434     fi
4435     else
4436     ac_cv_path_FGREP=$FGREP
4437 michael 5052 fi
4438    
4439     fi
4440     fi
4441 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4442     $as_echo "$ac_cv_path_FGREP" >&6; }
4443     FGREP="$ac_cv_path_FGREP"
4444 michael 5052
4445    
4446 michael 5059 test -z "$GREP" && GREP=grep
4447 michael 5052
4448 michael 5059
4449    
4450    
4451    
4452    
4453    
4454    
4455    
4456    
4457    
4458    
4459    
4460    
4461    
4462    
4463    
4464    
4465    
4466 michael 5052 # Check whether --with-gnu-ld was given.
4467 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4468     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4469 michael 5052 else
4470     with_gnu_ld=no
4471     fi
4472    
4473     ac_prog=ld
4474 michael 5059 if test yes = "$GCC"; then
4475 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4476 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4477     $as_echo_n "checking for ld used by $CC... " >&6; }
4478 michael 5052 case $host in
4479     *-*-mingw*)
4480 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4481 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4482     *)
4483     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4484     esac
4485     case $ac_prog in
4486     # Accept absolute paths.
4487     [\\/]* | ?:[\\/]*)
4488     re_direlt='/[^/][^/]*/\.\./'
4489     # Canonicalize the pathname of ld
4490 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4491     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4492     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4493 michael 5052 done
4494 michael 5059 test -z "$LD" && LD=$ac_prog
4495 michael 5052 ;;
4496     "")
4497     # If it fails, then pretend we aren't using GCC.
4498     ac_prog=ld
4499     ;;
4500     *)
4501     # If it is relative, then search for the first ld in PATH.
4502     with_gnu_ld=unknown
4503     ;;
4504     esac
4505 michael 5059 elif test yes = "$with_gnu_ld"; then
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4507     $as_echo_n "checking for GNU ld... " >&6; }
4508 michael 5052 else
4509 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4510     $as_echo_n "checking for non-GNU ld... " >&6; }
4511 michael 5052 fi
4512 michael 5059 if ${lt_cv_path_LD+:} false; then :
4513     $as_echo_n "(cached) " >&6
4514 michael 5052 else
4515     if test -z "$LD"; then
4516 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4517 michael 5052 for ac_dir in $PATH; do
4518 michael 5059 IFS=$lt_save_ifs
4519 michael 5052 test -z "$ac_dir" && ac_dir=.
4520     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4521 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4522 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4523     # but apparently some variants of GNU ld only accept -v.
4524     # Break only if it was the GNU/non-GNU ld that we prefer.
4525     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4526     *GNU* | *'with BFD'*)
4527 michael 5059 test no != "$with_gnu_ld" && break
4528 michael 5052 ;;
4529     *)
4530 michael 5059 test yes != "$with_gnu_ld" && break
4531 michael 5052 ;;
4532     esac
4533     fi
4534     done
4535 michael 5059 IFS=$lt_save_ifs
4536 michael 5052 else
4537 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4538 michael 5052 fi
4539     fi
4540    
4541 michael 5059 LD=$lt_cv_path_LD
4542 michael 5052 if test -n "$LD"; then
4543 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4544     $as_echo "$LD" >&6; }
4545 michael 5052 else
4546 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547     $as_echo "no" >&6; }
4548 michael 5052 fi
4549 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4551     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4552     if ${lt_cv_prog_gnu_ld+:} false; then :
4553     $as_echo_n "(cached) " >&6
4554 michael 5052 else
4555     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4556     case `$LD -v 2>&1 </dev/null` in
4557     *GNU* | *'with BFD'*)
4558     lt_cv_prog_gnu_ld=yes
4559     ;;
4560     *)
4561     lt_cv_prog_gnu_ld=no
4562     ;;
4563     esac
4564     fi
4565 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4566     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4567 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4568    
4569    
4570    
4571 michael 5059
4572    
4573    
4574    
4575    
4576    
4577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4578     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4579     if ${lt_cv_path_NM+:} false; then :
4580     $as_echo_n "(cached) " >&6
4581 michael 5052 else
4582     if test -n "$NM"; then
4583     # Let the user override the test.
4584 michael 5059 lt_cv_path_NM=$NM
4585 michael 5052 else
4586 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4587 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4588     lt_nm_to_check="$lt_nm_to_check nm"
4589     fi
4590     for lt_tmp_nm in $lt_nm_to_check; do
4591 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4592 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4593 michael 5059 IFS=$lt_save_ifs
4594 michael 5052 test -z "$ac_dir" && ac_dir=.
4595 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4596     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4597 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4598 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4599 michael 5052 # nm: unknown option "B" ignored
4600     # Tru64's nm complains that /dev/null is an invalid object file
4601 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4602     case $build_os in
4603     mingw*) lt_bad_file=conftest.nm/nofile ;;
4604     *) lt_bad_file=/dev/null ;;
4605     esac
4606     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4607     *$lt_bad_file* | *'Invalid file or object type'*)
4608 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4609 michael 5059 break 2
4610 michael 5052 ;;
4611     *)
4612     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4613     */dev/null*)
4614     lt_cv_path_NM="$tmp_nm -p"
4615 michael 5059 break 2
4616 michael 5052 ;;
4617     *)
4618     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4619     continue # so that we can try to find one that supports BSD flags
4620     ;;
4621     esac
4622     ;;
4623     esac
4624     fi
4625     done
4626 michael 5059 IFS=$lt_save_ifs
4627 michael 5052 done
4628 michael 5059 : ${lt_cv_path_NM=no}
4629 michael 5052 fi
4630     fi
4631 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4632     $as_echo "$lt_cv_path_NM" >&6; }
4633     if test no != "$lt_cv_path_NM"; then
4634     NM=$lt_cv_path_NM
4635     else
4636     # Didn't find any BSD compatible name lister, look for dumpbin.
4637     if test -n "$DUMPBIN"; then :
4638     # Let the user override the test.
4639     else
4640     if test -n "$ac_tool_prefix"; then
4641     for ac_prog in dumpbin "link -dump"
4642     do
4643     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646     $as_echo_n "checking for $ac_word... " >&6; }
4647     if ${ac_cv_prog_DUMPBIN+:} false; then :
4648     $as_echo_n "(cached) " >&6
4649     else
4650     if test -n "$DUMPBIN"; then
4651     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4652     else
4653     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654     for as_dir in $PATH
4655     do
4656     IFS=$as_save_IFS
4657     test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663     fi
4664     done
4665     done
4666     IFS=$as_save_IFS
4667 michael 5052
4668 michael 5059 fi
4669     fi
4670     DUMPBIN=$ac_cv_prog_DUMPBIN
4671     if test -n "$DUMPBIN"; then
4672     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4673     $as_echo "$DUMPBIN" >&6; }
4674     else
4675     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676     $as_echo "no" >&6; }
4677     fi
4678    
4679    
4680     test -n "$DUMPBIN" && break
4681     done
4682     fi
4683     if test -z "$DUMPBIN"; then
4684     ac_ct_DUMPBIN=$DUMPBIN
4685     for ac_prog in dumpbin "link -dump"
4686     do
4687     # Extract the first word of "$ac_prog", so it can be a program name with args.
4688     set dummy $ac_prog; ac_word=$2
4689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690     $as_echo_n "checking for $ac_word... " >&6; }
4691     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4692     $as_echo_n "(cached) " >&6
4693     else
4694     if test -n "$ac_ct_DUMPBIN"; then
4695     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4696     else
4697     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698     for as_dir in $PATH
4699     do
4700     IFS=$as_save_IFS
4701     test -z "$as_dir" && as_dir=.
4702     for ac_exec_ext in '' $ac_executable_extensions; do
4703     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707     fi
4708     done
4709     done
4710     IFS=$as_save_IFS
4711    
4712     fi
4713     fi
4714     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4715     if test -n "$ac_ct_DUMPBIN"; then
4716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4717     $as_echo "$ac_ct_DUMPBIN" >&6; }
4718     else
4719     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720     $as_echo "no" >&6; }
4721     fi
4722    
4723    
4724     test -n "$ac_ct_DUMPBIN" && break
4725     done
4726    
4727     if test "x$ac_ct_DUMPBIN" = x; then
4728     DUMPBIN=":"
4729     else
4730     case $cross_compiling:$ac_tool_warned in
4731     yes:)
4732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734     ac_tool_warned=yes ;;
4735     esac
4736     DUMPBIN=$ac_ct_DUMPBIN
4737     fi
4738     fi
4739    
4740     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4741     *COFF*)
4742     DUMPBIN="$DUMPBIN -symbols -headers"
4743     ;;
4744     *)
4745     DUMPBIN=:
4746     ;;
4747     esac
4748     fi
4749    
4750     if test : != "$DUMPBIN"; then
4751     NM=$DUMPBIN
4752     fi
4753     fi
4754     test -z "$NM" && NM=nm
4755    
4756    
4757    
4758    
4759    
4760    
4761     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4762     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4763     if ${lt_cv_nm_interface+:} false; then :
4764     $as_echo_n "(cached) " >&6
4765     else
4766     lt_cv_nm_interface="BSD nm"
4767     echo "int some_variable = 0;" > conftest.$ac_ext
4768     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4769     (eval "$ac_compile" 2>conftest.err)
4770     cat conftest.err >&5
4771     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4772     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4773     cat conftest.err >&5
4774     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4775     cat conftest.out >&5
4776     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4777     lt_cv_nm_interface="MS dumpbin"
4778     fi
4779     rm -f conftest*
4780     fi
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4782     $as_echo "$lt_cv_nm_interface" >&6; }
4783    
4784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4785     $as_echo_n "checking whether ln -s works... " >&6; }
4786 michael 5052 LN_S=$as_ln_s
4787     if test "$LN_S" = "ln -s"; then
4788 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789     $as_echo "yes" >&6; }
4790 michael 5052 else
4791 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4792     $as_echo "no, using $LN_S" >&6; }
4793 michael 5052 fi
4794    
4795 michael 5059 # find the maximum length of command line arguments
4796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4797     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4798     if ${lt_cv_sys_max_cmd_len+:} false; then :
4799     $as_echo_n "(cached) " >&6
4800 michael 5052 else
4801 michael 5059 i=0
4802     teststring=ABCD
4803    
4804     case $build_os in
4805     msdosdjgpp*)
4806     # On DJGPP, this test can blow up pretty badly due to problems in libc
4807     # (any single argument exceeding 2000 bytes causes a buffer overrun
4808     # during glob expansion). Even if it were fixed, the result of this
4809     # check would be larger than it should be.
4810     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4811     ;;
4812    
4813     gnu*)
4814     # Under GNU Hurd, this test is not required because there is
4815     # no limit to the length of command line arguments.
4816     # Libtool will interpret -1 as no limit whatsoever
4817     lt_cv_sys_max_cmd_len=-1;
4818     ;;
4819    
4820     cygwin* | mingw* | cegcc*)
4821     # On Win9x/ME, this test blows up -- it succeeds, but takes
4822     # about 5 minutes as the teststring grows exponentially.
4823     # Worse, since 9x/ME are not pre-emptively multitasking,
4824     # you end up with a "frozen" computer, even though with patience
4825     # the test eventually succeeds (with a max line length of 256k).
4826     # Instead, let's just punt: use the minimum linelength reported by
4827     # all of the supported platforms: 8192 (on NT/2K/XP).
4828     lt_cv_sys_max_cmd_len=8192;
4829     ;;
4830    
4831     mint*)
4832     # On MiNT this can take a long time and run out of memory.
4833     lt_cv_sys_max_cmd_len=8192;
4834     ;;
4835    
4836     amigaos*)
4837     # On AmigaOS with pdksh, this test takes hours, literally.
4838     # So we just punt and use a minimum line length of 8192.
4839     lt_cv_sys_max_cmd_len=8192;
4840     ;;
4841    
4842     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4843     # This has been around since 386BSD, at least. Likely further.
4844     if test -x /sbin/sysctl; then
4845     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4846     elif test -x /usr/sbin/sysctl; then
4847     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4848     else
4849     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4850     fi
4851     # And add a safety zone
4852     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4853     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4854     ;;
4855    
4856     interix*)
4857     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4858     lt_cv_sys_max_cmd_len=196608
4859     ;;
4860    
4861     os2*)
4862     # The test takes a long time on OS/2.
4863     lt_cv_sys_max_cmd_len=8192
4864     ;;
4865    
4866     osf*)
4867     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4868     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4869     # nice to cause kernel panics so lets avoid the loop below.
4870     # First set a reasonable default.
4871     lt_cv_sys_max_cmd_len=16384
4872     #
4873     if test -x /sbin/sysconfig; then
4874     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4875     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4876     esac
4877     fi
4878     ;;
4879     sco3.2v5*)
4880     lt_cv_sys_max_cmd_len=102400
4881     ;;
4882     sysv5* | sco5v6* | sysv4.2uw2*)
4883     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4884     if test -n "$kargmax"; then
4885     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4886     else
4887     lt_cv_sys_max_cmd_len=32768
4888     fi
4889     ;;
4890     *)
4891     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4892     if test -n "$lt_cv_sys_max_cmd_len" && \
4893     test undefined != "$lt_cv_sys_max_cmd_len"; then
4894     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4895     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896     else
4897     # Make teststring a little bigger before we do anything with it.
4898     # a 1K string should be a reasonable start.
4899     for i in 1 2 3 4 5 6 7 8; do
4900     teststring=$teststring$teststring
4901     done
4902     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4903     # If test is not a shell built-in, we'll probably end up computing a
4904     # maximum length that is only half of the actual maximum length, but
4905     # we can't tell.
4906     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4907     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4908     test 17 != "$i" # 1/2 MB should be enough
4909     do
4910     i=`expr $i + 1`
4911     teststring=$teststring$teststring
4912     done
4913     # Only check the string length outside the loop.
4914     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915     teststring=
4916     # Add a significant safety factor because C++ compilers can tack on
4917     # massive amounts of additional arguments before passing them to the
4918     # linker. It appears as though 1/2 is a usable value.
4919     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4920     fi
4921     ;;
4922     esac
4923    
4924     fi
4925    
4926     if test -n "$lt_cv_sys_max_cmd_len"; then
4927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4928     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929     else
4930     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4931     $as_echo "none" >&6; }
4932     fi
4933     max_cmd_len=$lt_cv_sys_max_cmd_len
4934    
4935    
4936    
4937    
4938    
4939    
4940     : ${CP="cp -f"}
4941     : ${MV="mv -f"}
4942     : ${RM="rm -f"}
4943    
4944     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4945     lt_unset=unset
4946     else
4947     lt_unset=false
4948     fi
4949    
4950    
4951    
4952    
4953    
4954     # test EBCDIC or ASCII
4955     case `echo X|tr X '\101'` in
4956     A) # ASCII based system
4957     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4958     lt_SP2NL='tr \040 \012'
4959     lt_NL2SP='tr \015\012 \040\040'
4960     ;;
4961     *) # EBCDIC based system
4962     lt_SP2NL='tr \100 \n'
4963     lt_NL2SP='tr \r\n \100\100'
4964     ;;
4965     esac
4966    
4967    
4968    
4969    
4970    
4971    
4972    
4973    
4974    
4975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4976     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4977     if ${lt_cv_to_host_file_cmd+:} false; then :
4978     $as_echo_n "(cached) " >&6
4979     else
4980     case $host in
4981     *-*-mingw* )
4982     case $build in
4983     *-*-mingw* ) # actually msys
4984     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4985     ;;
4986     *-*-cygwin* )
4987     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4988     ;;
4989     * ) # otherwise, assume *nix
4990     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4991     ;;
4992     esac
4993     ;;
4994     *-*-cygwin* )
4995     case $build in
4996     *-*-mingw* ) # actually msys
4997     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4998     ;;
4999     *-*-cygwin* )
5000     lt_cv_to_host_file_cmd=func_convert_file_noop
5001     ;;
5002     * ) # otherwise, assume *nix
5003     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5004     ;;
5005     esac
5006     ;;
5007     * ) # unhandled hosts (and "normal" native builds)
5008     lt_cv_to_host_file_cmd=func_convert_file_noop
5009     ;;
5010     esac
5011    
5012     fi
5013    
5014     to_host_file_cmd=$lt_cv_to_host_file_cmd
5015     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5016     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5017    
5018    
5019    
5020    
5021    
5022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5023     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5024     if ${lt_cv_to_tool_file_cmd+:} false; then :
5025     $as_echo_n "(cached) " >&6
5026     else
5027     #assume ordinary cross tools, or native build.
5028     lt_cv_to_tool_file_cmd=func_convert_file_noop
5029     case $host in
5030     *-*-mingw* )
5031     case $build in
5032     *-*-mingw* ) # actually msys
5033     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5034     ;;
5035     esac
5036     ;;
5037     esac
5038    
5039     fi
5040    
5041     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5043     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5044    
5045    
5046    
5047    
5048    
5049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5050     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5051     if ${lt_cv_ld_reload_flag+:} false; then :
5052     $as_echo_n "(cached) " >&6
5053     else
5054     lt_cv_ld_reload_flag='-r'
5055     fi
5056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5057     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5058     reload_flag=$lt_cv_ld_reload_flag
5059     case $reload_flag in
5060     "" | " "*) ;;
5061     *) reload_flag=" $reload_flag" ;;
5062     esac
5063     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064     case $host_os in
5065     cygwin* | mingw* | pw32* | cegcc*)
5066     if test yes != "$GCC"; then
5067     reload_cmds=false
5068     fi
5069     ;;
5070     darwin*)
5071     if test yes = "$GCC"; then
5072     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5073     else
5074     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5075     fi
5076     ;;
5077     esac
5078    
5079    
5080    
5081    
5082    
5083    
5084    
5085    
5086    
5087     if test -n "$ac_tool_prefix"; then
5088     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5089     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091     $as_echo_n "checking for $ac_word... " >&6; }
5092     if ${ac_cv_prog_OBJDUMP+:} false; then :
5093     $as_echo_n "(cached) " >&6
5094     else
5095     if test -n "$OBJDUMP"; then
5096     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5097     else
5098     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099     for as_dir in $PATH
5100     do
5101     IFS=$as_save_IFS
5102     test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108     fi
5109     done
5110     done
5111     IFS=$as_save_IFS
5112    
5113     fi
5114     fi
5115     OBJDUMP=$ac_cv_prog_OBJDUMP
5116     if test -n "$OBJDUMP"; then
5117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5118     $as_echo "$OBJDUMP" >&6; }
5119     else
5120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121     $as_echo "no" >&6; }
5122     fi
5123    
5124    
5125     fi
5126     if test -z "$ac_cv_prog_OBJDUMP"; then
5127     ac_ct_OBJDUMP=$OBJDUMP
5128     # Extract the first word of "objdump", so it can be a program name with args.
5129     set dummy objdump; ac_word=$2
5130     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131     $as_echo_n "checking for $ac_word... " >&6; }
5132     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5133     $as_echo_n "(cached) " >&6
5134     else
5135     if test -n "$ac_ct_OBJDUMP"; then
5136     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5137     else
5138     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139     for as_dir in $PATH
5140     do
5141     IFS=$as_save_IFS
5142     test -z "$as_dir" && as_dir=.
5143     for ac_exec_ext in '' $ac_executable_extensions; do
5144     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148     fi
5149     done
5150     done
5151     IFS=$as_save_IFS
5152    
5153     fi
5154     fi
5155     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5156     if test -n "$ac_ct_OBJDUMP"; then
5157     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5158     $as_echo "$ac_ct_OBJDUMP" >&6; }
5159     else
5160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161     $as_echo "no" >&6; }
5162     fi
5163    
5164     if test "x$ac_ct_OBJDUMP" = x; then
5165     OBJDUMP="false"
5166     else
5167     case $cross_compiling:$ac_tool_warned in
5168     yes:)
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5170     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5171     ac_tool_warned=yes ;;
5172     esac
5173     OBJDUMP=$ac_ct_OBJDUMP
5174     fi
5175     else
5176     OBJDUMP="$ac_cv_prog_OBJDUMP"
5177     fi
5178    
5179     test -z "$OBJDUMP" && OBJDUMP=objdump
5180    
5181    
5182    
5183    
5184    
5185    
5186    
5187    
5188    
5189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5190     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5191     if ${lt_cv_deplibs_check_method+:} false; then :
5192     $as_echo_n "(cached) " >&6
5193     else
5194 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5195     lt_cv_file_magic_test_file=
5196     lt_cv_deplibs_check_method='unknown'
5197     # Need to set the preceding variable on all platforms that support
5198     # interlibrary dependencies.
5199     # 'none' -- dependencies not supported.
5200 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5201 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5202     # 'test_compile' -- check by making test program.
5203     # 'file_magic [[regex]]' -- check by looking for files in library path
5204 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5205     # If you have 'file' or equivalent on your system and you're not sure
5206     # whether 'pass_all' will *always* work, you probably want this one.
5207 michael 5052
5208     case $host_os in
5209 michael 5059 aix[4-9]*)
5210 michael 5052 lt_cv_deplibs_check_method=pass_all
5211     ;;
5212    
5213     beos*)
5214     lt_cv_deplibs_check_method=pass_all
5215     ;;
5216    
5217     bsdi[45]*)
5218     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5219     lt_cv_file_magic_cmd='/usr/bin/file -L'
5220     lt_cv_file_magic_test_file=/shlib/libc.so
5221     ;;
5222    
5223     cygwin*)
5224     # func_win32_libid is a shell function defined in ltmain.sh
5225     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5226     lt_cv_file_magic_cmd='func_win32_libid'
5227     ;;
5228    
5229     mingw* | pw32*)
5230     # Base MSYS/MinGW do not provide the 'file' command needed by
5231 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5232     # unless we find 'file', for example because we are cross-compiling.
5233     if ( file / ) >/dev/null 2>&1; then
5234     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5235     lt_cv_file_magic_cmd='func_win32_libid'
5236     else
5237     # Keep this pattern in sync with the one in func_win32_libid.
5238     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5239     lt_cv_file_magic_cmd='$OBJDUMP -f'
5240     fi
5241     ;;
5242    
5243     cegcc*)
5244     # use the weaker test based on 'objdump'. See mingw*.
5245     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5246 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5247     ;;
5248    
5249     darwin* | rhapsody*)
5250     lt_cv_deplibs_check_method=pass_all
5251     ;;
5252    
5253     freebsd* | dragonfly*)
5254 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5255 michael 5052 case $host_cpu in
5256     i*86 )
5257     # Not sure whether the presence of OpenBSD here was a mistake.
5258     # Let's accept both of them until this is cleared up.
5259     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5260     lt_cv_file_magic_cmd=/usr/bin/file
5261     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5262     ;;
5263     esac
5264     else
5265     lt_cv_deplibs_check_method=pass_all
5266     fi
5267     ;;
5268    
5269 michael 5059 haiku*)
5270 michael 5052 lt_cv_deplibs_check_method=pass_all
5271     ;;
5272    
5273     hpux10.20* | hpux11*)
5274     lt_cv_file_magic_cmd=/usr/bin/file
5275     case $host_cpu in
5276     ia64*)
5277     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5278     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5279     ;;
5280     hppa*64*)
5281 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]'
5282 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5283     ;;
5284     *)
5285 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5286 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5287     ;;
5288     esac
5289     ;;
5290    
5291 michael 5059 interix[3-9]*)
5292 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5294     ;;
5295    
5296     irix5* | irix6* | nonstopux*)
5297     case $LD in
5298     *-32|*"-32 ") libmagic=32-bit;;
5299     *-n32|*"-n32 ") libmagic=N32;;
5300     *-64|*"-64 ") libmagic=64-bit;;
5301     *) libmagic=never-match;;
5302     esac
5303     lt_cv_deplibs_check_method=pass_all
5304     ;;
5305    
5306 michael 5059 # This must be glibc/ELF.
5307     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5308 michael 5052 lt_cv_deplibs_check_method=pass_all
5309     ;;
5310    
5311 michael 5059 netbsd*)
5312     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5313 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5314     else
5315     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5316     fi
5317     ;;
5318    
5319     newos6*)
5320     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5321     lt_cv_file_magic_cmd=/usr/bin/file
5322     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5323     ;;
5324    
5325 michael 5059 *nto* | *qnx*)
5326     lt_cv_deplibs_check_method=pass_all
5327 michael 5052 ;;
5328    
5329 michael 5059 openbsd* | bitrig*)
5330     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5331 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5332     else
5333     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5334     fi
5335     ;;
5336    
5337     osf3* | osf4* | osf5*)
5338     lt_cv_deplibs_check_method=pass_all
5339     ;;
5340    
5341 michael 5059 rdos*)
5342     lt_cv_deplibs_check_method=pass_all
5343     ;;
5344    
5345 michael 5052 solaris*)
5346     lt_cv_deplibs_check_method=pass_all
5347     ;;
5348    
5349 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5350     lt_cv_deplibs_check_method=pass_all
5351     ;;
5352    
5353 michael 5052 sysv4 | sysv4.3*)
5354     case $host_vendor in
5355     motorola)
5356     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]'
5357     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5358     ;;
5359     ncr)
5360     lt_cv_deplibs_check_method=pass_all
5361     ;;
5362     sequent)
5363     lt_cv_file_magic_cmd='/bin/file'
5364     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5365     ;;
5366     sni)
5367     lt_cv_file_magic_cmd='/bin/file'
5368     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5369     lt_cv_file_magic_test_file=/lib/libc.so
5370     ;;
5371     siemens)
5372     lt_cv_deplibs_check_method=pass_all
5373     ;;
5374     pc)
5375     lt_cv_deplibs_check_method=pass_all
5376     ;;
5377     esac
5378     ;;
5379    
5380 michael 5059 tpf*)
5381 michael 5052 lt_cv_deplibs_check_method=pass_all
5382     ;;
5383 michael 5059 os2*)
5384     lt_cv_deplibs_check_method=pass_all
5385     ;;
5386 michael 5052 esac
5387    
5388     fi
5389 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5390     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5391    
5392     file_magic_glob=
5393     want_nocaseglob=no
5394     if test "$build" = "$host"; then
5395     case $host_os in
5396     mingw* | pw32*)
5397     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5398     want_nocaseglob=yes
5399     else
5400     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5401     fi
5402     ;;
5403     esac
5404     fi
5405    
5406 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5407     deplibs_check_method=$lt_cv_deplibs_check_method
5408     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5409    
5410    
5411    
5412    
5413    
5414    
5415    
5416    
5417    
5418    
5419    
5420    
5421    
5422    
5423    
5424    
5425    
5426    
5427    
5428    
5429    
5430    
5431 michael 5059 if test -n "$ac_tool_prefix"; then
5432     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5433     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435     $as_echo_n "checking for $ac_word... " >&6; }
5436     if ${ac_cv_prog_DLLTOOL+:} false; then :
5437     $as_echo_n "(cached) " >&6
5438 michael 5052 else
5439 michael 5059 if test -n "$DLLTOOL"; then
5440     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5441     else
5442     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443     for as_dir in $PATH
5444 michael 5052 do
5445 michael 5059 IFS=$as_save_IFS
5446     test -z "$as_dir" && as_dir=.
5447     for ac_exec_ext in '' $ac_executable_extensions; do
5448     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451     break 2
5452 michael 5052 fi
5453 michael 5059 done
5454     done
5455     IFS=$as_save_IFS
5456 michael 5052
5457     fi
5458     fi
5459 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5460     if test -n "$DLLTOOL"; then
5461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5462     $as_echo "$DLLTOOL" >&6; }
5463 michael 5052 else
5464 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465     $as_echo "no" >&6; }
5466 michael 5052 fi
5467    
5468    
5469     fi
5470 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5471     ac_ct_DLLTOOL=$DLLTOOL
5472     # Extract the first word of "dlltool", so it can be a program name with args.
5473     set dummy dlltool; ac_word=$2
5474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475     $as_echo_n "checking for $ac_word... " >&6; }
5476     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5477     $as_echo_n "(cached) " >&6
5478 michael 5052 else
5479 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5480     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5481     else
5482     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483     for as_dir in $PATH
5484 michael 5052 do
5485 michael 5059 IFS=$as_save_IFS
5486     test -z "$as_dir" && as_dir=.
5487     for ac_exec_ext in '' $ac_executable_extensions; do
5488     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5489     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492 michael 5052 fi
5493     done
5494 michael 5059 done
5495     IFS=$as_save_IFS
5496 michael 5052
5497     fi
5498     fi
5499 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5500     if test -n "$ac_ct_DLLTOOL"; then
5501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5502     $as_echo "$ac_ct_DLLTOOL" >&6; }
5503 michael 5052 else
5504 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505     $as_echo "no" >&6; }
5506 michael 5052 fi
5507    
5508 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5509     DLLTOOL="false"
5510     else
5511     case $cross_compiling:$ac_tool_warned in
5512     yes:)
5513     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5514     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5515     ac_tool_warned=yes ;;
5516 michael 5052 esac
5517 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5518     fi
5519 michael 5052 else
5520 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5521 michael 5052 fi
5522    
5523 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5524 michael 5052
5525    
5526    
5527    
5528    
5529    
5530    
5531    
5532    
5533    
5534 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5535     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5536     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5537     $as_echo_n "(cached) " >&6
5538 michael 5052 else
5539 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5540 michael 5052
5541 michael 5059 case $host_os in
5542     cygwin* | mingw* | pw32* | cegcc*)
5543     # two different shell functions defined in ltmain.sh;
5544     # decide which one to use based on capabilities of $DLLTOOL
5545     case `$DLLTOOL --help 2>&1` in
5546     *--identify-strict*)
5547     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5548     ;;
5549     *)
5550     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5551     ;;
5552     esac
5553     ;;
5554     *)
5555     # fallback: assume linklib IS sharedlib
5556     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5557     ;;
5558 michael 5052 esac
5559    
5560     fi
5561 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5562     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5563     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5564     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5565 michael 5052
5566    
5567    
5568    
5569    
5570    
5571    
5572    
5573 michael 5059 if test -n "$ac_tool_prefix"; then
5574     for ac_prog in ar
5575 michael 5052 do
5576     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5577     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5578 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579     $as_echo_n "checking for $ac_word... " >&6; }
5580     if ${ac_cv_prog_AR+:} false; then :
5581     $as_echo_n "(cached) " >&6
5582 michael 5052 else
5583 michael 5059 if test -n "$AR"; then
5584     ac_cv_prog_AR="$AR" # Let the user override the test.
5585 michael 5052 else
5586     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587     for as_dir in $PATH
5588     do
5589     IFS=$as_save_IFS
5590     test -z "$as_dir" && as_dir=.
5591 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5592     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 michael 5052 break 2
5596     fi
5597     done
5598 michael 5059 done
5599 michael 5052 IFS=$as_save_IFS
5600    
5601     fi
5602     fi
5603 michael 5059 AR=$ac_cv_prog_AR
5604     if test -n "$AR"; then
5605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5606     $as_echo "$AR" >&6; }
5607 michael 5052 else
5608 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609     $as_echo "no" >&6; }
5610 michael 5052 fi
5611    
5612    
5613 michael 5059 test -n "$AR" && break
5614 michael 5052 done
5615     fi
5616 michael 5059 if test -z "$AR"; then
5617     ac_ct_AR=$AR
5618     for ac_prog in ar
5619 michael 5052 do
5620     # Extract the first word of "$ac_prog", so it can be a program name with args.
5621     set dummy $ac_prog; ac_word=$2
5622 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623     $as_echo_n "checking for $ac_word... " >&6; }
5624     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5625     $as_echo_n "(cached) " >&6
5626 michael 5052 else
5627 michael 5059 if test -n "$ac_ct_AR"; then
5628     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5629 michael 5052 else
5630     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631     for as_dir in $PATH
5632     do
5633     IFS=$as_save_IFS
5634     test -z "$as_dir" && as_dir=.
5635 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5636     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637     ac_cv_prog_ac_ct_AR="$ac_prog"
5638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 michael 5052 break 2
5640     fi
5641     done
5642 michael 5059 done
5643 michael 5052 IFS=$as_save_IFS
5644    
5645     fi
5646     fi
5647 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5648     if test -n "$ac_ct_AR"; then
5649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5650     $as_echo "$ac_ct_AR" >&6; }
5651 michael 5052 else
5652 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653     $as_echo "no" >&6; }
5654 michael 5052 fi
5655    
5656    
5657 michael 5059 test -n "$ac_ct_AR" && break
5658 michael 5052 done
5659    
5660 michael 5059 if test "x$ac_ct_AR" = x; then
5661     AR="false"
5662 michael 5052 else
5663     case $cross_compiling:$ac_tool_warned in
5664     yes:)
5665 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5666     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5667 michael 5052 ac_tool_warned=yes ;;
5668     esac
5669 michael 5059 AR=$ac_ct_AR
5670 michael 5052 fi
5671     fi
5672    
5673 michael 5059 : ${AR=ar}
5674     : ${AR_FLAGS=cru}
5675 michael 5052
5676    
5677    
5678    
5679    
5680    
5681    
5682    
5683    
5684    
5685    
5686 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5687     $as_echo_n "checking for archiver @FILE support... " >&6; }
5688     if ${lt_cv_ar_at_file+:} false; then :
5689     $as_echo_n "(cached) " >&6
5690 michael 5052 else
5691 michael 5059 lt_cv_ar_at_file=no
5692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 michael 5052 /* end confdefs.h. */
5694    
5695     int
5696     main ()
5697     {
5698    
5699     ;
5700     return 0;
5701     }
5702     _ACEOF
5703 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5704     echo conftest.$ac_objext > conftest.lst
5705     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5706     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5707     (eval $lt_ar_try) 2>&5
5708 michael 5052 ac_status=$?
5709 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710     test $ac_status = 0; }
5711     if test 0 -eq "$ac_status"; then
5712     # Ensure the archiver fails upon bogus file names.
5713     rm -f conftest.$ac_objext libconftest.a
5714     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5715     (eval $lt_ar_try) 2>&5
5716 michael 5052 ac_status=$?
5717 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718     test $ac_status = 0; }
5719     if test 0 -ne "$ac_status"; then
5720     lt_cv_ar_at_file=@
5721     fi
5722     fi
5723     rm -f conftest.* libconftest.a
5724 michael 5052
5725     fi
5726     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727    
5728     fi
5729 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5730     $as_echo "$lt_cv_ar_at_file" >&6; }
5731 michael 5052
5732 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5733     archiver_list_spec=
5734 michael 5052 else
5735 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5736 michael 5052 fi
5737    
5738    
5739    
5740    
5741    
5742    
5743    
5744 michael 5059 if test -n "$ac_tool_prefix"; then
5745     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5746     set dummy ${ac_tool_prefix}strip; ac_word=$2
5747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748     $as_echo_n "checking for $ac_word... " >&6; }
5749     if ${ac_cv_prog_STRIP+:} false; then :
5750     $as_echo_n "(cached) " >&6
5751 michael 5052 else
5752 michael 5059 if test -n "$STRIP"; then
5753     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5754 michael 5052 else
5755 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756     for as_dir in $PATH
5757 michael 5052 do
5758 michael 5059 IFS=$as_save_IFS
5759     test -z "$as_dir" && as_dir=.
5760     for ac_exec_ext in '' $ac_executable_extensions; do
5761     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5763     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764     break 2
5765 michael 5052 fi
5766 michael 5059 done
5767     done
5768     IFS=$as_save_IFS
5769 michael 5052
5770     fi
5771     fi
5772 michael 5059 STRIP=$ac_cv_prog_STRIP
5773     if test -n "$STRIP"; then
5774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5775     $as_echo "$STRIP" >&6; }
5776 michael 5052 else
5777 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778     $as_echo "no" >&6; }
5779 michael 5052 fi
5780    
5781    
5782     fi
5783 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5784     ac_ct_STRIP=$STRIP
5785     # Extract the first word of "strip", so it can be a program name with args.
5786     set dummy strip; ac_word=$2
5787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788     $as_echo_n "checking for $ac_word... " >&6; }
5789     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5790     $as_echo_n "(cached) " >&6
5791 michael 5052 else
5792 michael 5059 if test -n "$ac_ct_STRIP"; then
5793     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5794     else
5795     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796     for as_dir in $PATH
5797 michael 5052 do
5798 michael 5059 IFS=$as_save_IFS
5799     test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802     ac_cv_prog_ac_ct_STRIP="strip"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805 michael 5052 fi
5806 michael 5059 done
5807     done
5808     IFS=$as_save_IFS
5809    
5810 michael 5052 fi
5811 michael 5059 fi
5812     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5813     if test -n "$ac_ct_STRIP"; then
5814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5815     $as_echo "$ac_ct_STRIP" >&6; }
5816 michael 5052 else
5817 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818     $as_echo "no" >&6; }
5819 michael 5052 fi
5820    
5821 michael 5059 if test "x$ac_ct_STRIP" = x; then
5822     STRIP=":"
5823     else
5824     case $cross_compiling:$ac_tool_warned in
5825     yes:)
5826     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828     ac_tool_warned=yes ;;
5829 michael 5052 esac
5830 michael 5059 STRIP=$ac_ct_STRIP
5831 michael 5052 fi
5832     else
5833 michael 5059 STRIP="$ac_cv_prog_STRIP"
5834 michael 5052 fi
5835    
5836 michael 5059 test -z "$STRIP" && STRIP=:
5837 michael 5052
5838    
5839    
5840    
5841    
5842    
5843     if test -n "$ac_tool_prefix"; then
5844 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5847     $as_echo_n "checking for $ac_word... " >&6; }
5848     if ${ac_cv_prog_RANLIB+:} false; then :
5849     $as_echo_n "(cached) " >&6
5850 michael 5052 else
5851 michael 5059 if test -n "$RANLIB"; then
5852     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 michael 5052 else
5854     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855     for as_dir in $PATH
5856     do
5857     IFS=$as_save_IFS
5858     test -z "$as_dir" && as_dir=.
5859 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5860     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5863 michael 5052 break 2
5864     fi
5865     done
5866 michael 5059 done
5867 michael 5052 IFS=$as_save_IFS
5868    
5869     fi
5870     fi
5871 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5872     if test -n "$RANLIB"; then
5873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5874     $as_echo "$RANLIB" >&6; }
5875 michael 5052 else
5876 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877     $as_echo "no" >&6; }
5878 michael 5052 fi
5879    
5880    
5881     fi
5882 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5883     ac_ct_RANLIB=$RANLIB
5884     # Extract the first word of "ranlib", so it can be a program name with args.
5885     set dummy ranlib; ac_word=$2
5886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887     $as_echo_n "checking for $ac_word... " >&6; }
5888     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5889     $as_echo_n "(cached) " >&6
5890 michael 5052 else
5891 michael 5059 if test -n "$ac_ct_RANLIB"; then
5892     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5893 michael 5052 else
5894     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895     for as_dir in $PATH
5896     do
5897     IFS=$as_save_IFS
5898     test -z "$as_dir" && as_dir=.
5899 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5900     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901     ac_cv_prog_ac_ct_RANLIB="ranlib"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 michael 5052 break 2
5904     fi
5905     done
5906 michael 5059 done
5907 michael 5052 IFS=$as_save_IFS
5908    
5909     fi
5910     fi
5911 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5912     if test -n "$ac_ct_RANLIB"; then
5913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5914     $as_echo "$ac_ct_RANLIB" >&6; }
5915 michael 5052 else
5916 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917     $as_echo "no" >&6; }
5918 michael 5052 fi
5919    
5920 michael 5059 if test "x$ac_ct_RANLIB" = x; then
5921     RANLIB=":"
5922 michael 5052 else
5923     case $cross_compiling:$ac_tool_warned in
5924     yes:)
5925 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 michael 5052 ac_tool_warned=yes ;;
5928     esac
5929 michael 5059 RANLIB=$ac_ct_RANLIB
5930 michael 5052 fi
5931 michael 5059 else
5932     RANLIB="$ac_cv_prog_RANLIB"
5933 michael 5052 fi
5934    
5935 michael 5059 test -z "$RANLIB" && RANLIB=:
5936 michael 5052
5937    
5938    
5939    
5940    
5941    
5942 michael 5059 # Determine commands to create old-style static archives.
5943     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5944     old_postinstall_cmds='chmod 644 $oldlib'
5945     old_postuninstall_cmds=
5946    
5947     if test -n "$RANLIB"; then
5948     case $host_os in
5949     bitrig* | openbsd*)
5950     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5951     ;;
5952     *)
5953     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5954     ;;
5955     esac
5956     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5957 michael 5052 fi
5958    
5959 michael 5059 case $host_os in
5960     darwin*)
5961     lock_old_archive_extraction=yes ;;
5962     *)
5963     lock_old_archive_extraction=no ;;
5964 michael 5052 esac
5965    
5966    
5967    
5968    
5969    
5970    
5971    
5972    
5973    
5974    
5975    
5976    
5977    
5978    
5979    
5980    
5981    
5982    
5983    
5984    
5985    
5986 michael 5059
5987    
5988    
5989    
5990    
5991    
5992    
5993    
5994    
5995    
5996    
5997    
5998    
5999    
6000    
6001    
6002    
6003    
6004     # If no C compiler was specified, use CC.
6005     LTCC=${LTCC-"$CC"}
6006    
6007     # If no C compiler flags were specified, use CFLAGS.
6008     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6009    
6010     # Allow CC to be a program name with arguments.
6011     compiler=$CC
6012    
6013    
6014 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6015 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6016     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6017     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6018     $as_echo_n "(cached) " >&6
6019 michael 5052 else
6020    
6021     # These are sane defaults that work on at least a few old systems.
6022     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6023    
6024     # Character class describing NM global symbol codes.
6025     symcode='[BCDEGRST]'
6026    
6027     # Regexp to match symbols that can be accessed directly from C.
6028     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6029    
6030     # Define system-specific variables.
6031     case $host_os in
6032     aix*)
6033     symcode='[BCDT]'
6034     ;;
6035 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6036 michael 5052 symcode='[ABCDGISTW]'
6037     ;;
6038 michael 5059 hpux*)
6039     if test ia64 = "$host_cpu"; then
6040 michael 5052 symcode='[ABCDEGRST]'
6041     fi
6042     ;;
6043     irix* | nonstopux*)
6044     symcode='[BCDEGRST]'
6045     ;;
6046     osf*)
6047     symcode='[BCDEGQRST]'
6048     ;;
6049     solaris*)
6050     symcode='[BDRT]'
6051     ;;
6052     sco3.2v5*)
6053     symcode='[DT]'
6054     ;;
6055     sysv4.2uw2*)
6056     symcode='[DT]'
6057     ;;
6058     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6059     symcode='[ABDT]'
6060     ;;
6061     sysv4)
6062     symcode='[DFNSTU]'
6063     ;;
6064     esac
6065    
6066 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6067     case `$NM -V 2>&1` in
6068     *GNU* | *'with BFD'*)
6069     symcode='[ABCDGIRSTW]' ;;
6070     esac
6071    
6072     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6073     # Gets list of data symbols to import.
6074     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6075     # Adjust the below global symbol transforms to fixup imported variables.
6076     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6077     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6078     lt_c_name_lib_hook="\
6079     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6080     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6081     else
6082     # Disable hooks by default.
6083     lt_cv_sys_global_symbol_to_import=
6084     lt_cdecl_hook=
6085     lt_c_name_hook=
6086     lt_c_name_lib_hook=
6087     fi
6088    
6089     # Transform an extracted symbol line into a proper C declaration.
6090     # Some systems (esp. on ia64) link data and code symbols differently,
6091     # so use this general approach.
6092     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6093     $lt_cdecl_hook\
6094     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6095     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6096    
6097     # Transform an extracted symbol line into symbol name and symbol address
6098     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6099     $lt_c_name_hook\
6100     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6101     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6102    
6103     # Transform an extracted symbol line into symbol name with lib prefix and
6104     # symbol address.
6105     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6106     $lt_c_name_lib_hook\
6107     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6108     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6109     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6110    
6111 michael 5052 # Handle CRLF in mingw tool chain
6112     opt_cr=
6113     case $build_os in
6114     mingw*)
6115 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6116 michael 5052 ;;
6117     esac
6118    
6119 michael 5059 # Try without a prefix underscore, then with it.
6120 michael 5052 for ac_symprfx in "" "_"; do
6121    
6122     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6123     symxfrm="\\1 $ac_symprfx\\2 \\2"
6124    
6125     # Write the raw and C identifiers.
6126 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6127     # Fake it for dumpbin and say T for any non-static function,
6128     # D for any global variable and I for any imported variable.
6129     # Also find C++ and __fastcall symbols from MSVC++,
6130     # which start with @ or ?.
6131     lt_cv_sys_global_symbol_pipe="$AWK '"\
6132     " {last_section=section; section=\$ 3};"\
6133     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6134     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6135     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6136     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6137     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6138     " \$ 0!~/External *\|/{next};"\
6139     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6140     " {if(hide[section]) next};"\
6141     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6142     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6143     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6144     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6145     " ' prfx=^$ac_symprfx"
6146     else
6147     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6148     fi
6149     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6150 michael 5052
6151     # Check to see that the pipe works correctly.
6152     pipe_works=no
6153    
6154     rm -f conftest*
6155 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6156 michael 5052 #ifdef __cplusplus
6157     extern "C" {
6158     #endif
6159     char nm_test_var;
6160 michael 5059 void nm_test_func(void);
6161     void nm_test_func(void){}
6162 michael 5052 #ifdef __cplusplus
6163     }
6164     #endif
6165     int main(){nm_test_var='a';nm_test_func();return(0);}
6166 michael 5059 _LT_EOF
6167 michael 5052
6168 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6169 michael 5052 (eval $ac_compile) 2>&5
6170     ac_status=$?
6171 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172     test $ac_status = 0; }; then
6173 michael 5052 # Now try to grab the symbols.
6174     nlist=conftest.nm
6175 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6176     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6177 michael 5052 ac_status=$?
6178 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179     test $ac_status = 0; } && test -s "$nlist"; then
6180 michael 5052 # Try sorting and uniquifying the output.
6181     if sort "$nlist" | uniq > "$nlist"T; then
6182     mv -f "$nlist"T "$nlist"
6183     else
6184     rm -f "$nlist"T
6185     fi
6186    
6187     # Make sure that we snagged all the symbols we need.
6188 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6189     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6190     cat <<_LT_EOF > conftest.$ac_ext
6191     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6192     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6193     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6194     relocations are performed -- see ld's documentation on pseudo-relocs. */
6195     # define LT_DLSYM_CONST
6196     #elif defined __osf__
6197     /* This system does not cope well with relocations in const data. */
6198     # define LT_DLSYM_CONST
6199     #else
6200     # define LT_DLSYM_CONST const
6201     #endif
6202    
6203 michael 5052 #ifdef __cplusplus
6204     extern "C" {
6205     #endif
6206    
6207 michael 5059 _LT_EOF
6208 michael 5052 # Now generate the symbol file.
6209 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6210 michael 5052
6211 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6212 michael 5052
6213 michael 5059 /* The mapping between symbol names and symbols. */
6214     LT_DLSYM_CONST struct {
6215 michael 5052 const char *name;
6216 michael 5059 void *address;
6217 michael 5052 }
6218 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6219 michael 5052 {
6220 michael 5059 { "@PROGRAM@", (void *) 0 },
6221     _LT_EOF
6222     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6223     cat <<\_LT_EOF >> conftest.$ac_ext
6224     {0, (void *) 0}
6225 michael 5052 };
6226    
6227 michael 5059 /* This works around a problem in FreeBSD linker */
6228     #ifdef FREEBSD_WORKAROUND
6229     static const void *lt_preloaded_setup() {
6230     return lt__PROGRAM__LTX_preloaded_symbols;
6231     }
6232     #endif
6233    
6234 michael 5052 #ifdef __cplusplus
6235     }
6236     #endif
6237 michael 5059 _LT_EOF
6238 michael 5052 # Now try linking the two files.
6239     mv conftest.$ac_objext conftstm.$ac_objext
6240 michael 5059 lt_globsym_save_LIBS=$LIBS
6241     lt_globsym_save_CFLAGS=$CFLAGS
6242     LIBS=conftstm.$ac_objext
6243 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6244 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6245 michael 5052 (eval $ac_link) 2>&5
6246     ac_status=$?
6247 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6249 michael 5052 pipe_works=yes
6250     fi
6251 michael 5059 LIBS=$lt_globsym_save_LIBS
6252     CFLAGS=$lt_globsym_save_CFLAGS
6253 michael 5052 else
6254     echo "cannot find nm_test_func in $nlist" >&5
6255     fi
6256     else
6257     echo "cannot find nm_test_var in $nlist" >&5
6258     fi
6259     else
6260     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6261     fi
6262     else
6263     echo "$progname: failed program was:" >&5
6264     cat conftest.$ac_ext >&5
6265     fi
6266 michael 5059 rm -rf conftest* conftst*
6267 michael 5052
6268     # Do not use the global_symbol_pipe unless it works.
6269 michael 5059 if test yes = "$pipe_works"; then
6270 michael 5052 break
6271     else
6272     lt_cv_sys_global_symbol_pipe=
6273     fi
6274     done
6275    
6276     fi
6277    
6278     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6279     lt_cv_sys_global_symbol_to_cdecl=
6280     fi
6281     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6282 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6283     $as_echo "failed" >&6; }
6284 michael 5052 else
6285 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6286     $as_echo "ok" >&6; }
6287 michael 5052 fi
6288    
6289 michael 5059 # Response file support.
6290     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6291     nm_file_list_spec='@'
6292     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6293     nm_file_list_spec='@'
6294     fi
6295    
6296    
6297    
6298    
6299    
6300    
6301    
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6333     $as_echo_n "checking for sysroot... " >&6; }
6334    
6335     # Check whether --with-sysroot was given.
6336     if test "${with_sysroot+set}" = set; then :
6337     withval=$with_sysroot;
6338 michael 5052 else
6339 michael 5059 with_sysroot=no
6340     fi
6341    
6342    
6343     lt_sysroot=
6344     case $with_sysroot in #(
6345     yes)
6346     if test yes = "$GCC"; then
6347     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6348     fi
6349     ;; #(
6350     /*)
6351     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6352     ;; #(
6353     no|'')
6354     ;; #(
6355     *)
6356     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6357     $as_echo "$with_sysroot" >&6; }
6358     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6359     ;;
6360     esac
6361    
6362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6363     $as_echo "${lt_sysroot:-no}" >&6; }
6364    
6365    
6366    
6367    
6368    
6369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6370     $as_echo_n "checking for a working dd... " >&6; }
6371     if ${ac_cv_path_lt_DD+:} false; then :
6372     $as_echo_n "(cached) " >&6
6373 michael 5052 else
6374 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6375     cat conftest.i conftest.i >conftest2.i
6376     : ${lt_DD:=$DD}
6377     if test -z "$lt_DD"; then
6378     ac_path_lt_DD_found=false
6379     # Loop through the user's path and test for each of PROGNAME-LIST
6380     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381     for as_dir in $PATH
6382     do
6383     IFS=$as_save_IFS
6384     test -z "$as_dir" && as_dir=.
6385     for ac_prog in dd; do
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6388     as_fn_executable_p "$ac_path_lt_DD" || continue
6389     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6390     cmp -s conftest.i conftest.out \
6391     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6392 michael 5052 fi
6393 michael 5059 $ac_path_lt_DD_found && break 3
6394     done
6395     done
6396     done
6397     IFS=$as_save_IFS
6398     if test -z "$ac_cv_path_lt_DD"; then
6399     :
6400     fi
6401     else
6402     ac_cv_path_lt_DD=$lt_DD
6403 michael 5052 fi
6404    
6405 michael 5059 rm -f conftest.i conftest2.i conftest.out
6406     fi
6407     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6408     $as_echo "$ac_cv_path_lt_DD" >&6; }
6409 michael 5052
6410    
6411 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6412     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6413     if ${lt_cv_truncate_bin+:} false; then :
6414     $as_echo_n "(cached) " >&6
6415     else
6416     printf 0123456789abcdef0123456789abcdef >conftest.i
6417     cat conftest.i conftest.i >conftest2.i
6418     lt_cv_truncate_bin=
6419     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6420     cmp -s conftest.i conftest.out \
6421     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6422     fi
6423     rm -f conftest.i conftest2.i conftest.out
6424     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6425     fi
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6427     $as_echo "$lt_cv_truncate_bin" >&6; }
6428 michael 5052
6429    
6430 michael 5059
6431    
6432    
6433    
6434 michael 5433
6435     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6436     func_cc_basename ()
6437     {
6438     for cc_temp in $*""; do
6439     case $cc_temp in
6440     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6441     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6442     \-*) ;;
6443     *) break;;
6444     esac
6445     done
6446     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6447     }
6448    
6449 michael 5059 # Check whether --enable-libtool-lock was given.
6450     if test "${enable_libtool_lock+set}" = set; then :
6451     enableval=$enable_libtool_lock;
6452     fi
6453    
6454     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6455    
6456     # Some flags need to be propagated to the compiler or linker for good
6457     # libtool support.
6458     case $host in
6459     ia64-*-hpux*)
6460     # Find out what ABI is being produced by ac_compile, and set mode
6461     # options accordingly.
6462     echo 'int i;' > conftest.$ac_ext
6463     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464     (eval $ac_compile) 2>&5
6465     ac_status=$?
6466     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467     test $ac_status = 0; }; then
6468     case `/usr/bin/file conftest.$ac_objext` in
6469     *ELF-32*)
6470     HPUX_IA64_MODE=32
6471     ;;
6472     *ELF-64*)
6473     HPUX_IA64_MODE=64
6474     ;;
6475     esac
6476 michael 5052 fi
6477 michael 5059 rm -rf conftest*
6478 michael 5052 ;;
6479 michael 5059 *-*-irix6*)
6480     # Find out what ABI is being produced by ac_compile, and set linker
6481     # options accordingly.
6482     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6483     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6484     (eval $ac_compile) 2>&5
6485     ac_status=$?
6486     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487     test $ac_status = 0; }; then
6488     if test yes = "$lt_cv_prog_gnu_ld"; then
6489     case `/usr/bin/file conftest.$ac_objext` in
6490     *32-bit*)
6491     LD="${LD-ld} -melf32bsmip"
6492     ;;
6493     *N32*)
6494     LD="${LD-ld} -melf32bmipn32"
6495     ;;
6496     *64-bit*)
6497     LD="${LD-ld} -melf64bmip"
6498     ;;
6499     esac
6500     else
6501     case `/usr/bin/file conftest.$ac_objext` in
6502     *32-bit*)
6503     LD="${LD-ld} -32"
6504     ;;
6505     *N32*)
6506     LD="${LD-ld} -n32"
6507     ;;
6508     *64-bit*)
6509     LD="${LD-ld} -64"
6510     ;;
6511     esac
6512     fi
6513     fi
6514     rm -rf conftest*
6515     ;;
6516 michael 5052
6517 michael 5059 mips64*-*linux*)
6518     # Find out what ABI is being produced by ac_compile, and set linker
6519     # options accordingly.
6520     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6521     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6522     (eval $ac_compile) 2>&5
6523     ac_status=$?
6524     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6525     test $ac_status = 0; }; then
6526     emul=elf
6527     case `/usr/bin/file conftest.$ac_objext` in
6528     *32-bit*)
6529     emul="${emul}32"
6530     ;;
6531     *64-bit*)
6532     emul="${emul}64"
6533     ;;
6534     esac
6535     case `/usr/bin/file conftest.$ac_objext` in
6536     *MSB*)
6537     emul="${emul}btsmip"
6538     ;;
6539     *LSB*)
6540     emul="${emul}ltsmip"
6541     ;;
6542     esac
6543     case `/usr/bin/file conftest.$ac_objext` in
6544     *N32*)
6545     emul="${emul}n32"
6546     ;;
6547     esac
6548     LD="${LD-ld} -m $emul"
6549     fi
6550     rm -rf conftest*
6551     ;;
6552 michael 5052
6553 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6554     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6555     # Find out what ABI is being produced by ac_compile, and set linker
6556     # options accordingly. Note that the listed cases only cover the
6557     # situations where additional linker options are needed (such as when
6558     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6559     # vice versa); the common cases where no linker options are needed do
6560     # not appear in the list.
6561     echo 'int i;' > conftest.$ac_ext
6562     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563     (eval $ac_compile) 2>&5
6564     ac_status=$?
6565     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566     test $ac_status = 0; }; then
6567     case `/usr/bin/file conftest.o` in
6568     *32-bit*)
6569     case $host in
6570     x86_64-*kfreebsd*-gnu)
6571     LD="${LD-ld} -m elf_i386_fbsd"
6572     ;;
6573     x86_64-*linux*)
6574     case `/usr/bin/file conftest.o` in
6575     *x86-64*)
6576     LD="${LD-ld} -m elf32_x86_64"
6577     ;;
6578     *)
6579     LD="${LD-ld} -m elf_i386"
6580     ;;
6581     esac
6582     ;;
6583     powerpc64le-*linux*)
6584     LD="${LD-ld} -m elf32lppclinux"
6585     ;;
6586     powerpc64-*linux*)
6587     LD="${LD-ld} -m elf32ppclinux"
6588     ;;
6589     s390x-*linux*)
6590     LD="${LD-ld} -m elf_s390"
6591     ;;
6592     sparc64-*linux*)
6593     LD="${LD-ld} -m elf32_sparc"
6594     ;;
6595     esac
6596     ;;
6597     *64-bit*)
6598     case $host in
6599     x86_64-*kfreebsd*-gnu)
6600     LD="${LD-ld} -m elf_x86_64_fbsd"
6601     ;;
6602     x86_64-*linux*)
6603     LD="${LD-ld} -m elf_x86_64"
6604     ;;
6605     powerpcle-*linux*)
6606     LD="${LD-ld} -m elf64lppc"
6607     ;;
6608     powerpc-*linux*)
6609     LD="${LD-ld} -m elf64ppc"
6610     ;;
6611     s390*-*linux*|s390*-*tpf*)
6612     LD="${LD-ld} -m elf64_s390"
6613     ;;
6614     sparc*-*linux*)
6615     LD="${LD-ld} -m elf64_sparc"
6616     ;;
6617     esac
6618     ;;
6619     esac
6620     fi
6621     rm -rf conftest*
6622     ;;
6623 michael 5052
6624 michael 5059 *-*-sco3.2v5*)
6625     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6626     SAVE_CFLAGS=$CFLAGS
6627     CFLAGS="$CFLAGS -belf"
6628     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6629     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6630     if ${lt_cv_cc_needs_belf+:} false; then :
6631     $as_echo_n "(cached) " >&6
6632     else
6633     ac_ext=c
6634     ac_cpp='$CPP $CPPFLAGS'
6635     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6638 michael 5052
6639 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6640     /* end confdefs.h. */
6641 michael 5052
6642 michael 5059 int
6643     main ()
6644     {
6645 michael 5052
6646 michael 5059 ;
6647     return 0;
6648     }
6649     _ACEOF
6650     if ac_fn_c_try_link "$LINENO"; then :
6651     lt_cv_cc_needs_belf=yes
6652     else
6653     lt_cv_cc_needs_belf=no
6654     fi
6655     rm -f core conftest.err conftest.$ac_objext \
6656     conftest$ac_exeext conftest.$ac_ext
6657     ac_ext=c
6658     ac_cpp='$CPP $CPPFLAGS'
6659     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6660     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6661     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662 michael 5052
6663 michael 5059 fi
6664     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6665     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6666     if test yes != "$lt_cv_cc_needs_belf"; then
6667     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6668     CFLAGS=$SAVE_CFLAGS
6669     fi
6670     ;;
6671     *-*solaris*)
6672     # Find out what ABI is being produced by ac_compile, and set linker
6673     # options accordingly.
6674     echo 'int i;' > conftest.$ac_ext
6675     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676     (eval $ac_compile) 2>&5
6677     ac_status=$?
6678     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679     test $ac_status = 0; }; then
6680     case `/usr/bin/file conftest.o` in
6681     *64-bit*)
6682     case $lt_cv_prog_gnu_ld in
6683     yes*)
6684     case $host in
6685     i?86-*-solaris*|x86_64-*-solaris*)
6686     LD="${LD-ld} -m elf_x86_64"
6687     ;;
6688     sparc*-*-solaris*)
6689     LD="${LD-ld} -m elf64_sparc"
6690     ;;
6691     esac
6692     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6693     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6694     LD=${LD-ld}_sol2
6695     fi
6696     ;;
6697     *)
6698     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6699     LD="${LD-ld} -64"
6700     fi
6701     ;;
6702     esac
6703     ;;
6704     esac
6705     fi
6706     rm -rf conftest*
6707     ;;
6708     esac
6709 michael 5052
6710 michael 5059 need_locks=$enable_libtool_lock
6711    
6712 michael 5052 if test -n "$ac_tool_prefix"; then
6713 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6714     set dummy ${ac_tool_prefix}mt; ac_word=$2
6715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716     $as_echo_n "checking for $ac_word... " >&6; }
6717     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6718     $as_echo_n "(cached) " >&6
6719 michael 5052 else
6720 michael 5059 if test -n "$MANIFEST_TOOL"; then
6721     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6722 michael 5052 else
6723     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724     for as_dir in $PATH
6725     do
6726     IFS=$as_save_IFS
6727     test -z "$as_dir" && as_dir=.
6728 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6729     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 michael 5052 break 2
6733     fi
6734     done
6735 michael 5059 done
6736     IFS=$as_save_IFS
6737    
6738     fi
6739     fi
6740     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6741     if test -n "$MANIFEST_TOOL"; then
6742     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6743     $as_echo "$MANIFEST_TOOL" >&6; }
6744     else
6745     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746     $as_echo "no" >&6; }
6747     fi
6748    
6749    
6750     fi
6751     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6752     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6753     # Extract the first word of "mt", so it can be a program name with args.
6754     set dummy mt; ac_word=$2
6755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756     $as_echo_n "checking for $ac_word... " >&6; }
6757     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6758     $as_echo_n "(cached) " >&6
6759     else
6760     if test -n "$ac_ct_MANIFEST_TOOL"; then
6761     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6762     else
6763     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764     for as_dir in $PATH
6765     do
6766     IFS=$as_save_IFS
6767     test -z "$as_dir" && as_dir=.
6768     for ac_exec_ext in '' $ac_executable_extensions; do
6769     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6770     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772     break 2
6773     fi
6774 michael 5052 done
6775 michael 5059 done
6776 michael 5052 IFS=$as_save_IFS
6777    
6778     fi
6779     fi
6780 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6781     if test -n "$ac_ct_MANIFEST_TOOL"; then
6782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6783     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6784 michael 5052 else
6785 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786     $as_echo "no" >&6; }
6787 michael 5052 fi
6788    
6789 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6790     MANIFEST_TOOL=":"
6791     else
6792     case $cross_compiling:$ac_tool_warned in
6793     yes:)
6794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6795     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6796     ac_tool_warned=yes ;;
6797     esac
6798     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6799     fi
6800     else
6801     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6802     fi
6803 michael 5052
6804 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6806     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6807     if ${lt_cv_path_mainfest_tool+:} false; then :
6808     $as_echo_n "(cached) " >&6
6809     else
6810     lt_cv_path_mainfest_tool=no
6811     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6812     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6813     cat conftest.err >&5
6814     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6815     lt_cv_path_mainfest_tool=yes
6816     fi
6817     rm -f conftest*
6818 michael 5052 fi
6819 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6820     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6821     if test yes != "$lt_cv_path_mainfest_tool"; then
6822     MANIFEST_TOOL=:
6823     fi
6824    
6825    
6826    
6827    
6828    
6829    
6830     case $host_os in
6831     rhapsody* | darwin*)
6832     if test -n "$ac_tool_prefix"; then
6833     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6834     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836     $as_echo_n "checking for $ac_word... " >&6; }
6837     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6838     $as_echo_n "(cached) " >&6
6839 michael 5052 else
6840 michael 5059 if test -n "$DSYMUTIL"; then
6841     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6842 michael 5052 else
6843     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844     for as_dir in $PATH
6845     do
6846     IFS=$as_save_IFS
6847     test -z "$as_dir" && as_dir=.
6848 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6849     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 michael 5052 break 2
6853     fi
6854     done
6855 michael 5059 done
6856     IFS=$as_save_IFS
6857    
6858     fi
6859     fi
6860     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6861     if test -n "$DSYMUTIL"; then
6862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6863     $as_echo "$DSYMUTIL" >&6; }
6864     else
6865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866     $as_echo "no" >&6; }
6867     fi
6868    
6869    
6870     fi
6871     if test -z "$ac_cv_prog_DSYMUTIL"; then
6872     ac_ct_DSYMUTIL=$DSYMUTIL
6873     # Extract the first word of "dsymutil", so it can be a program name with args.
6874     set dummy dsymutil; ac_word=$2
6875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876     $as_echo_n "checking for $ac_word... " >&6; }
6877     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6878     $as_echo_n "(cached) " >&6
6879     else
6880     if test -n "$ac_ct_DSYMUTIL"; then
6881     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6882     else
6883     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884     for as_dir in $PATH
6885     do
6886     IFS=$as_save_IFS
6887     test -z "$as_dir" && as_dir=.
6888     for ac_exec_ext in '' $ac_executable_extensions; do
6889     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892     break 2
6893     fi
6894 michael 5052 done
6895 michael 5059 done
6896 michael 5052 IFS=$as_save_IFS
6897    
6898     fi
6899     fi
6900 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6901     if test -n "$ac_ct_DSYMUTIL"; then
6902     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6903     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6904 michael 5052 else
6905 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906     $as_echo "no" >&6; }
6907 michael 5052 fi
6908    
6909 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6910     DSYMUTIL=":"
6911 michael 5052 else
6912     case $cross_compiling:$ac_tool_warned in
6913     yes:)
6914 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 michael 5052 ac_tool_warned=yes ;;
6917     esac
6918 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6919 michael 5052 fi
6920     else
6921 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6922 michael 5052 fi
6923    
6924 michael 5059 if test -n "$ac_tool_prefix"; then
6925     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6926     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928     $as_echo_n "checking for $ac_word... " >&6; }
6929     if ${ac_cv_prog_NMEDIT+:} false; then :
6930     $as_echo_n "(cached) " >&6
6931 michael 5052 else
6932 michael 5059 if test -n "$NMEDIT"; then
6933     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6934 michael 5052 else
6935     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936     for as_dir in $PATH
6937     do
6938     IFS=$as_save_IFS
6939     test -z "$as_dir" && as_dir=.
6940 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6941     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6942     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 michael 5052 break 2
6945     fi
6946     done
6947 michael 5059 done
6948 michael 5052 IFS=$as_save_IFS
6949    
6950     fi
6951     fi
6952 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
6953     if test -n "$NMEDIT"; then
6954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6955     $as_echo "$NMEDIT" >&6; }
6956 michael 5052 else
6957 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958     $as_echo "no" >&6; }
6959 michael 5052 fi
6960    
6961    
6962     fi
6963 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
6964     ac_ct_NMEDIT=$NMEDIT
6965     # Extract the first word of "nmedit", so it can be a program name with args.
6966     set dummy nmedit; ac_word=$2
6967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968     $as_echo_n "checking for $ac_word... " >&6; }
6969     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6970     $as_echo_n "(cached) " >&6
6971 michael 5052 else
6972 michael 5059 if test -n "$ac_ct_NMEDIT"; then
6973     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6974 michael 5052 else
6975     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976     for as_dir in $PATH
6977     do
6978     IFS=$as_save_IFS
6979     test -z "$as_dir" && as_dir=.
6980 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6981     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6982     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 michael 5052 break 2
6985     fi
6986     done
6987 michael 5059 done
6988 michael 5052 IFS=$as_save_IFS
6989    
6990     fi
6991     fi
6992 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6993     if test -n "$ac_ct_NMEDIT"; then
6994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6995     $as_echo "$ac_ct_NMEDIT" >&6; }
6996 michael 5052 else
6997 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998     $as_echo "no" >&6; }
6999 michael 5052 fi
7000    
7001 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7002     NMEDIT=":"
7003 michael 5052 else
7004     case $cross_compiling:$ac_tool_warned in
7005     yes:)
7006 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 michael 5052 ac_tool_warned=yes ;;
7009     esac
7010 michael 5059 NMEDIT=$ac_ct_NMEDIT
7011 michael 5052 fi
7012     else
7013 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7014 michael 5052 fi
7015    
7016 michael 5059 if test -n "$ac_tool_prefix"; then
7017     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7018     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020     $as_echo_n "checking for $ac_word... " >&6; }
7021     if ${ac_cv_prog_LIPO+:} false; then :
7022     $as_echo_n "(cached) " >&6
7023 michael 5052 else
7024 michael 5059 if test -n "$LIPO"; then
7025     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7026 michael 5052 else
7027     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028     for as_dir in $PATH
7029     do
7030     IFS=$as_save_IFS
7031     test -z "$as_dir" && as_dir=.
7032 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7033     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 michael 5052 break 2
7037     fi
7038     done
7039 michael 5059 done
7040     IFS=$as_save_IFS
7041    
7042     fi
7043     fi
7044     LIPO=$ac_cv_prog_LIPO
7045     if test -n "$LIPO"; then
7046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7047     $as_echo "$LIPO" >&6; }
7048     else
7049     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050     $as_echo "no" >&6; }
7051     fi
7052    
7053    
7054     fi
7055     if test -z "$ac_cv_prog_LIPO"; then
7056     ac_ct_LIPO=$LIPO
7057     # Extract the first word of "lipo", so it can be a program name with args.
7058     set dummy lipo; ac_word=$2
7059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060     $as_echo_n "checking for $ac_word... " >&6; }
7061     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7062     $as_echo_n "(cached) " >&6
7063     else
7064     if test -n "$ac_ct_LIPO"; then
7065     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7066     else
7067     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068     for as_dir in $PATH
7069     do
7070     IFS=$as_save_IFS
7071     test -z "$as_dir" && as_dir=.
7072     for ac_exec_ext in '' $ac_executable_extensions; do
7073     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074     ac_cv_prog_ac_ct_LIPO="lipo"
7075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077     fi
7078 michael 5052 done
7079 michael 5059 done
7080 michael 5052 IFS=$as_save_IFS
7081    
7082     fi
7083     fi
7084 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7085     if test -n "$ac_ct_LIPO"; then
7086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7087     $as_echo "$ac_ct_LIPO" >&6; }
7088 michael 5052 else
7089 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090     $as_echo "no" >&6; }
7091 michael 5052 fi
7092    
7093 michael 5059 if test "x$ac_ct_LIPO" = x; then
7094     LIPO=":"
7095     else
7096     case $cross_compiling:$ac_tool_warned in
7097     yes:)
7098     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100     ac_tool_warned=yes ;;
7101     esac
7102     LIPO=$ac_ct_LIPO
7103     fi
7104     else
7105     LIPO="$ac_cv_prog_LIPO"
7106     fi
7107 michael 5052
7108 michael 5059 if test -n "$ac_tool_prefix"; then
7109     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7110     set dummy ${ac_tool_prefix}otool; ac_word=$2
7111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112     $as_echo_n "checking for $ac_word... " >&6; }
7113     if ${ac_cv_prog_OTOOL+:} false; then :
7114     $as_echo_n "(cached) " >&6
7115     else
7116     if test -n "$OTOOL"; then
7117     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7118     else
7119     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120     for as_dir in $PATH
7121     do
7122     IFS=$as_save_IFS
7123     test -z "$as_dir" && as_dir=.
7124     for ac_exec_ext in '' $ac_executable_extensions; do
7125     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7126     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129     fi
7130     done
7131     done
7132     IFS=$as_save_IFS
7133    
7134 michael 5052 fi
7135 michael 5059 fi
7136     OTOOL=$ac_cv_prog_OTOOL
7137     if test -n "$OTOOL"; then
7138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7139     $as_echo "$OTOOL" >&6; }
7140 michael 5052 else
7141 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142     $as_echo "no" >&6; }
7143     fi
7144    
7145    
7146     fi
7147     if test -z "$ac_cv_prog_OTOOL"; then
7148     ac_ct_OTOOL=$OTOOL
7149     # Extract the first word of "otool", so it can be a program name with args.
7150     set dummy otool; ac_word=$2
7151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152     $as_echo_n "checking for $ac_word... " >&6; }
7153     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7154     $as_echo_n "(cached) " >&6
7155 michael 5052 else
7156 michael 5059 if test -n "$ac_ct_OTOOL"; then
7157     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7158     else
7159 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160     for as_dir in $PATH
7161     do
7162     IFS=$as_save_IFS
7163     test -z "$as_dir" && as_dir=.
7164 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7165     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166     ac_cv_prog_ac_ct_OTOOL="otool"
7167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 michael 5052 break 2
7169     fi
7170     done
7171 michael 5059 done
7172     IFS=$as_save_IFS
7173    
7174     fi
7175     fi
7176     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7177     if test -n "$ac_ct_OTOOL"; then
7178     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7179     $as_echo "$ac_ct_OTOOL" >&6; }
7180     else
7181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182     $as_echo "no" >&6; }
7183     fi
7184    
7185     if test "x$ac_ct_OTOOL" = x; then
7186     OTOOL=":"
7187     else
7188     case $cross_compiling:$ac_tool_warned in
7189     yes:)
7190     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192     ac_tool_warned=yes ;;
7193     esac
7194     OTOOL=$ac_ct_OTOOL
7195     fi
7196     else
7197     OTOOL="$ac_cv_prog_OTOOL"
7198     fi
7199    
7200     if test -n "$ac_tool_prefix"; then
7201     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7202     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204     $as_echo_n "checking for $ac_word... " >&6; }
7205     if ${ac_cv_prog_OTOOL64+:} false; then :
7206     $as_echo_n "(cached) " >&6
7207     else
7208     if test -n "$OTOOL64"; then
7209     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7210     else
7211     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212     for as_dir in $PATH
7213     do
7214     IFS=$as_save_IFS
7215     test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7218     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221     fi
7222 michael 5052 done
7223 michael 5059 done
7224 michael 5052 IFS=$as_save_IFS
7225    
7226     fi
7227     fi
7228 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7229     if test -n "$OTOOL64"; then
7230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7231     $as_echo "$OTOOL64" >&6; }
7232 michael 5052 else
7233 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234     $as_echo "no" >&6; }
7235 michael 5052 fi
7236    
7237 michael 5059
7238     fi
7239     if test -z "$ac_cv_prog_OTOOL64"; then
7240     ac_ct_OTOOL64=$OTOOL64
7241     # Extract the first word of "otool64", so it can be a program name with args.
7242     set dummy otool64; ac_word=$2
7243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244     $as_echo_n "checking for $ac_word... " >&6; }
7245     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7246     $as_echo_n "(cached) " >&6
7247     else
7248     if test -n "$ac_ct_OTOOL64"; then
7249     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7250     else
7251     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252     for as_dir in $PATH
7253     do
7254     IFS=$as_save_IFS
7255     test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7258     ac_cv_prog_ac_ct_OTOOL64="otool64"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261     fi
7262     done
7263     done
7264     IFS=$as_save_IFS
7265    
7266     fi
7267     fi
7268     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7269     if test -n "$ac_ct_OTOOL64"; then
7270     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7271     $as_echo "$ac_ct_OTOOL64" >&6; }
7272     else
7273     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274     $as_echo "no" >&6; }
7275     fi
7276    
7277     if test "x$ac_ct_OTOOL64" = x; then
7278     OTOOL64=":"
7279 michael 5052 else
7280     case $cross_compiling:$ac_tool_warned in
7281     yes:)
7282 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 michael 5052 ac_tool_warned=yes ;;
7285     esac
7286 michael 5059 OTOOL64=$ac_ct_OTOOL64
7287 michael 5052 fi
7288     else
7289 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7290 michael 5052 fi
7291    
7292    
7293    
7294 michael 5059
7295    
7296    
7297    
7298    
7299    
7300    
7301    
7302    
7303    
7304    
7305    
7306    
7307    
7308    
7309    
7310    
7311    
7312    
7313    
7314    
7315    
7316    
7317    
7318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7319     $as_echo_n "checking for -single_module linker flag... " >&6; }
7320     if ${lt_cv_apple_cc_single_mod+:} false; then :
7321     $as_echo_n "(cached) " >&6
7322     else
7323     lt_cv_apple_cc_single_mod=no
7324     if test -z "$LT_MULTI_MODULE"; then
7325     # By default we will add the -single_module flag. You can override
7326     # by either setting the environment variable LT_MULTI_MODULE
7327     # non-empty at configure time, or by adding -multi_module to the
7328     # link flags.
7329     rm -rf libconftest.dylib*
7330     echo "int foo(void){return 1;}" > conftest.c
7331     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7332     -dynamiclib -Wl,-single_module conftest.c" >&5
7333     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7334     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7335     _lt_result=$?
7336     # If there is a non-empty error log, and "single_module"
7337     # appears in it, assume the flag caused a linker warning
7338     if test -s conftest.err && $GREP single_module conftest.err; then
7339     cat conftest.err >&5
7340     # Otherwise, if the output was created with a 0 exit code from
7341     # the compiler, it worked.
7342     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7343     lt_cv_apple_cc_single_mod=yes
7344     else
7345     cat conftest.err >&5
7346     fi
7347     rm -rf libconftest.dylib*
7348     rm -f conftest.*
7349     fi
7350     fi
7351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7352     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7353    
7354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7355     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7356     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7357     $as_echo_n "(cached) " >&6
7358     else
7359     lt_cv_ld_exported_symbols_list=no
7360     save_LDFLAGS=$LDFLAGS
7361     echo "_main" > conftest.sym
7362     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364     /* end confdefs.h. */
7365    
7366     int
7367     main ()
7368     {
7369    
7370     ;
7371     return 0;
7372     }
7373     _ACEOF
7374     if ac_fn_c_try_link "$LINENO"; then :
7375     lt_cv_ld_exported_symbols_list=yes
7376     else
7377     lt_cv_ld_exported_symbols_list=no
7378     fi
7379     rm -f core conftest.err conftest.$ac_objext \
7380     conftest$ac_exeext conftest.$ac_ext
7381     LDFLAGS=$save_LDFLAGS
7382    
7383     fi
7384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7385     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7386    
7387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7388     $as_echo_n "checking for -force_load linker flag... " >&6; }
7389     if ${lt_cv_ld_force_load+:} false; then :
7390     $as_echo_n "(cached) " >&6
7391     else
7392     lt_cv_ld_force_load=no
7393     cat > conftest.c << _LT_EOF
7394     int forced_loaded() { return 2;}
7395     _LT_EOF
7396     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7397     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7398     echo "$AR cru libconftest.a conftest.o" >&5
7399     $AR cru libconftest.a conftest.o 2>&5
7400     echo "$RANLIB libconftest.a" >&5
7401     $RANLIB libconftest.a 2>&5
7402     cat > conftest.c << _LT_EOF
7403     int main() { return 0;}
7404     _LT_EOF
7405     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7406     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7407     _lt_result=$?
7408     if test -s conftest.err && $GREP force_load conftest.err; then
7409     cat conftest.err >&5
7410     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7411     lt_cv_ld_force_load=yes
7412     else
7413     cat conftest.err >&5
7414     fi
7415     rm -f conftest.err libconftest.a conftest conftest.c
7416     rm -rf conftest.dSYM
7417    
7418     fi
7419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7420     $as_echo "$lt_cv_ld_force_load" >&6; }
7421     case $host_os in
7422     rhapsody* | darwin1.[012])
7423     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7424     darwin1.*)
7425     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7426     darwin*) # darwin 5.x on
7427     # if running on 10.5 or later, the deployment target defaults
7428     # to the OS version, if on x86, and 10.4, the deployment
7429     # target defaults to 10.4. Don't you love it?
7430     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7431     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7432     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7433     10.[012][,.]*)
7434     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7435     10.*)
7436     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7437     esac
7438     ;;
7439     esac
7440     if test yes = "$lt_cv_apple_cc_single_mod"; then
7441     _lt_dar_single_mod='$single_module'
7442     fi
7443     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7444     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7445     else
7446     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7447     fi
7448     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7449     _lt_dsymutil='~$DSYMUTIL $lib || :'
7450     else
7451     _lt_dsymutil=
7452     fi
7453     ;;
7454     esac
7455    
7456 michael 5433 # func_munge_path_list VARIABLE PATH
7457     # -----------------------------------
7458     # VARIABLE is name of variable containing _space_ separated list of
7459     # directories to be munged by the contents of PATH, which is string
7460     # having a format:
7461     # "DIR[:DIR]:"
7462     # string "DIR[ DIR]" will be prepended to VARIABLE
7463     # ":DIR[:DIR]"
7464     # string "DIR[ DIR]" will be appended to VARIABLE
7465     # "DIRP[:DIRP]::[DIRA:]DIRA"
7466     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7467     # "DIRA[ DIRA]" will be appended to VARIABLE
7468     # "DIR[:DIR]"
7469     # VARIABLE will be replaced by "DIR[ DIR]"
7470     func_munge_path_list ()
7471     {
7472     case x$2 in
7473     x)
7474     ;;
7475     *:)
7476 michael 5860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7477 michael 5433 ;;
7478     x:*)
7479     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7480     ;;
7481     *::*)
7482     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7483     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7484     ;;
7485     *)
7486     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7487     ;;
7488     esac
7489     }
7490    
7491 michael 5059 ac_ext=c
7492     ac_cpp='$CPP $CPPFLAGS'
7493     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7497     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7498     # On Suns, sometimes $CPP names a directory.
7499     if test -n "$CPP" && test -d "$CPP"; then
7500     CPP=
7501     fi
7502     if test -z "$CPP"; then
7503     if ${ac_cv_prog_CPP+:} false; then :
7504     $as_echo_n "(cached) " >&6
7505     else
7506     # Double quotes because CPP needs to be expanded
7507     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7508     do
7509     ac_preproc_ok=false
7510     for ac_c_preproc_warn_flag in '' yes
7511     do
7512     # Use a header file that comes with gcc, so configuring glibc
7513     # with a fresh cross-compiler works.
7514     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515     # <limits.h> exists even on freestanding compilers.
7516     # On the NeXT, cc -E runs the code through the compiler's parser,
7517     # not just through cpp. "Syntax error" is here to catch this case.
7518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519     /* end confdefs.h. */
7520     #ifdef __STDC__
7521     # include <limits.h>
7522     #else
7523     # include <assert.h>
7524     #endif
7525     Syntax error
7526     _ACEOF
7527     if ac_fn_c_try_cpp "$LINENO"; then :
7528    
7529     else
7530     # Broken: fails on valid input.
7531     continue
7532     fi
7533     rm -f conftest.err conftest.i conftest.$ac_ext
7534    
7535     # OK, works on sane cases. Now check whether nonexistent headers
7536     # can be detected and how.
7537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538     /* end confdefs.h. */
7539     #include <ac_nonexistent.h>
7540     _ACEOF
7541     if ac_fn_c_try_cpp "$LINENO"; then :
7542     # Broken: success on invalid input.
7543     continue
7544     else
7545     # Passes both tests.
7546     ac_preproc_ok=:
7547     break
7548     fi
7549     rm -f conftest.err conftest.i conftest.$ac_ext
7550    
7551     done
7552     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7553     rm -f conftest.i conftest.err conftest.$ac_ext
7554     if $ac_preproc_ok; then :
7555     break
7556     fi
7557    
7558     done
7559     ac_cv_prog_CPP=$CPP
7560    
7561     fi
7562     CPP=$ac_cv_prog_CPP
7563     else
7564     ac_cv_prog_CPP=$CPP
7565     fi
7566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7567     $as_echo "$CPP" >&6; }
7568     ac_preproc_ok=false
7569     for ac_c_preproc_warn_flag in '' yes
7570     do
7571     # Use a header file that comes with gcc, so configuring glibc
7572     # with a fresh cross-compiler works.
7573     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574     # <limits.h> exists even on freestanding compilers.
7575     # On the NeXT, cc -E runs the code through the compiler's parser,
7576     # not just through cpp. "Syntax error" is here to catch this case.
7577     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578     /* end confdefs.h. */
7579     #ifdef __STDC__
7580     # include <limits.h>
7581     #else
7582     # include <assert.h>
7583     #endif
7584     Syntax error
7585     _ACEOF
7586     if ac_fn_c_try_cpp "$LINENO"; then :
7587    
7588     else
7589     # Broken: fails on valid input.
7590     continue
7591     fi
7592     rm -f conftest.err conftest.i conftest.$ac_ext
7593    
7594     # OK, works on sane cases. Now check whether nonexistent headers
7595     # can be detected and how.
7596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597     /* end confdefs.h. */
7598     #include <ac_nonexistent.h>
7599     _ACEOF
7600     if ac_fn_c_try_cpp "$LINENO"; then :
7601     # Broken: success on invalid input.
7602     continue
7603     else
7604     # Passes both tests.
7605     ac_preproc_ok=:
7606     break
7607     fi
7608     rm -f conftest.err conftest.i conftest.$ac_ext
7609    
7610     done
7611     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7612     rm -f conftest.i conftest.err conftest.$ac_ext
7613     if $ac_preproc_ok; then :
7614    
7615     else
7616     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7617     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7618     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7619     See \`config.log' for more details" "$LINENO" 5; }
7620     fi
7621    
7622     ac_ext=c
7623     ac_cpp='$CPP $CPPFLAGS'
7624     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627    
7628    
7629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7630     $as_echo_n "checking for ANSI C header files... " >&6; }
7631     if ${ac_cv_header_stdc+:} false; then :
7632     $as_echo_n "(cached) " >&6
7633     else
7634     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635     /* end confdefs.h. */
7636     #include <stdlib.h>
7637     #include <stdarg.h>
7638     #include <string.h>
7639     #include <float.h>
7640    
7641     int
7642     main ()
7643     {
7644    
7645     ;
7646     return 0;
7647     }
7648     _ACEOF
7649     if ac_fn_c_try_compile "$LINENO"; then :
7650     ac_cv_header_stdc=yes
7651     else
7652     ac_cv_header_stdc=no
7653     fi
7654     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655    
7656     if test $ac_cv_header_stdc = yes; then
7657     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7658     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659     /* end confdefs.h. */
7660     #include <string.h>
7661    
7662     _ACEOF
7663     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7664     $EGREP "memchr" >/dev/null 2>&1; then :
7665    
7666     else
7667     ac_cv_header_stdc=no
7668     fi
7669     rm -f conftest*
7670    
7671     fi
7672    
7673     if test $ac_cv_header_stdc = yes; then
7674     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7675     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676     /* end confdefs.h. */
7677     #include <stdlib.h>
7678    
7679     _ACEOF
7680     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681     $EGREP "free" >/dev/null 2>&1; then :
7682    
7683     else
7684     ac_cv_header_stdc=no
7685     fi
7686     rm -f conftest*
7687    
7688     fi
7689    
7690     if test $ac_cv_header_stdc = yes; then
7691     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7692     if test "$cross_compiling" = yes; then :
7693     :
7694     else
7695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696     /* end confdefs.h. */
7697     #include <ctype.h>
7698     #include <stdlib.h>
7699     #if ((' ' & 0x0FF) == 0x020)
7700     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7701     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7702     #else
7703     # define ISLOWER(c) \
7704     (('a' <= (c) && (c) <= 'i') \
7705     || ('j' <= (c) && (c) <= 'r') \
7706     || ('s' <= (c) && (c) <= 'z'))
7707     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7708     #endif
7709    
7710     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7711     int
7712     main ()
7713     {
7714     int i;
7715     for (i = 0; i < 256; i++)
7716     if (XOR (islower (i), ISLOWER (i))
7717     || toupper (i) != TOUPPER (i))
7718     return 2;
7719     return 0;
7720     }
7721     _ACEOF
7722     if ac_fn_c_try_run "$LINENO"; then :
7723    
7724     else
7725     ac_cv_header_stdc=no
7726     fi
7727     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7728     conftest.$ac_objext conftest.beam conftest.$ac_ext
7729     fi
7730    
7731     fi
7732     fi
7733     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7734     $as_echo "$ac_cv_header_stdc" >&6; }
7735     if test $ac_cv_header_stdc = yes; then
7736    
7737     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7738    
7739     fi
7740    
7741     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7742     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7743     inttypes.h stdint.h unistd.h
7744     do :
7745     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7746     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7747     "
7748     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7749     cat >>confdefs.h <<_ACEOF
7750     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751     _ACEOF
7752    
7753     fi
7754    
7755     done
7756    
7757    
7758     for ac_header in dlfcn.h
7759     do :
7760     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7761     "
7762     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7763     cat >>confdefs.h <<_ACEOF
7764     #define HAVE_DLFCN_H 1
7765     _ACEOF
7766    
7767     fi
7768    
7769     done
7770    
7771    
7772    
7773    
7774    
7775     # Set options
7776    
7777    
7778    
7779     enable_dlopen=no
7780    
7781    
7782     enable_win32_dll=no
7783    
7784    
7785     # Check whether --enable-shared was given.
7786     if test "${enable_shared+set}" = set; then :
7787     enableval=$enable_shared; p=${PACKAGE-default}
7788     case $enableval in
7789     yes) enable_shared=yes ;;
7790     no) enable_shared=no ;;
7791     *)
7792     enable_shared=no
7793     # Look at the argument we got. We use all the common list separators.
7794     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7795     for pkg in $enableval; do
7796     IFS=$lt_save_ifs
7797     if test "X$pkg" = "X$p"; then
7798     enable_shared=yes
7799     fi
7800     done
7801     IFS=$lt_save_ifs
7802     ;;
7803     esac
7804     else
7805     enable_shared=yes
7806     fi
7807    
7808    
7809    
7810    
7811    
7812    
7813    
7814    
7815    
7816     # Check whether --enable-static was given.
7817     if test "${enable_static+set}" = set; then :
7818     enableval=$enable_static; p=${PACKAGE-default}
7819     case $enableval in
7820     yes) enable_static=yes ;;
7821     no) enable_static=no ;;
7822     *)
7823     enable_static=no
7824     # Look at the argument we got. We use all the common list separators.
7825     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7826     for pkg in $enableval; do
7827     IFS=$lt_save_ifs
7828     if test "X$pkg" = "X$p"; then
7829     enable_static=yes
7830     fi
7831     done
7832     IFS=$lt_save_ifs
7833     ;;
7834     esac
7835     else
7836     enable_static=yes
7837     fi
7838    
7839    
7840    
7841    
7842    
7843    
7844    
7845    
7846    
7847    
7848     # Check whether --with-pic was given.
7849     if test "${with_pic+set}" = set; then :
7850     withval=$with_pic; lt_p=${PACKAGE-default}
7851     case $withval in
7852     yes|no) pic_mode=$withval ;;
7853     *)
7854     pic_mode=default
7855     # Look at the argument we got. We use all the common list separators.
7856     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7857     for lt_pkg in $withval; do
7858     IFS=$lt_save_ifs
7859     if test "X$lt_pkg" = "X$lt_p"; then
7860     pic_mode=yes
7861     fi
7862     done
7863     IFS=$lt_save_ifs
7864     ;;
7865     esac
7866     else
7867     pic_mode=default
7868     fi
7869    
7870    
7871    
7872    
7873    
7874    
7875    
7876    
7877     # Check whether --enable-fast-install was given.
7878     if test "${enable_fast_install+set}" = set; then :
7879     enableval=$enable_fast_install; p=${PACKAGE-default}
7880     case $enableval in
7881     yes) enable_fast_install=yes ;;
7882     no) enable_fast_install=no ;;
7883     *)
7884     enable_fast_install=no
7885     # Look at the argument we got. We use all the common list separators.
7886     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7887     for pkg in $enableval; do
7888     IFS=$lt_save_ifs
7889     if test "X$pkg" = "X$p"; then
7890     enable_fast_install=yes
7891     fi
7892     done
7893     IFS=$lt_save_ifs
7894     ;;
7895     esac
7896     else
7897     enable_fast_install=yes
7898     fi
7899    
7900    
7901    
7902    
7903    
7904    
7905    
7906    
7907     shared_archive_member_spec=
7908     case $host,$enable_shared in
7909     power*-*-aix[5-9]*,yes)
7910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7911     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7912    
7913     # Check whether --with-aix-soname was given.
7914     if test "${with_aix_soname+set}" = set; then :
7915     withval=$with_aix_soname; case $withval in
7916     aix|svr4|both)
7917     ;;
7918     *)
7919     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7920     ;;
7921     esac
7922     lt_cv_with_aix_soname=$with_aix_soname
7923     else
7924     if ${lt_cv_with_aix_soname+:} false; then :
7925     $as_echo_n "(cached) " >&6
7926     else
7927     lt_cv_with_aix_soname=aix
7928     fi
7929    
7930     with_aix_soname=$lt_cv_with_aix_soname
7931     fi
7932    
7933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7934     $as_echo "$with_aix_soname" >&6; }
7935     if test aix != "$with_aix_soname"; then
7936     # For the AIX way of multilib, we name the shared archive member
7937     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7938     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7939     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7940     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7941     if test 64 = "${OBJECT_MODE-32}"; then
7942     shared_archive_member_spec=shr_64
7943     else
7944     shared_archive_member_spec=shr
7945     fi
7946     fi
7947     ;;
7948     *)
7949     with_aix_soname=aix
7950     ;;
7951     esac
7952    
7953    
7954    
7955    
7956    
7957    
7958    
7959    
7960    
7961    
7962     # This can be used to rebuild libtool when needed
7963     LIBTOOL_DEPS=$ltmain
7964    
7965     # Always use our own libtool.
7966     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7967    
7968    
7969    
7970    
7971    
7972    
7973    
7974    
7975    
7976    
7977    
7978    
7979    
7980    
7981    
7982    
7983    
7984    
7985    
7986    
7987    
7988    
7989    
7990    
7991    
7992    
7993    
7994    
7995    
7996    
7997     test -z "$LN_S" && LN_S="ln -s"
7998    
7999    
8000    
8001    
8002    
8003    
8004    
8005    
8006    
8007    
8008    
8009    
8010    
8011    
8012     if test -n "${ZSH_VERSION+set}"; then
8013     setopt NO_GLOB_SUBST
8014     fi
8015    
8016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8017     $as_echo_n "checking for objdir... " >&6; }
8018     if ${lt_cv_objdir+:} false; then :
8019     $as_echo_n "(cached) " >&6
8020     else
8021     rm -f .libs 2>/dev/null
8022     mkdir .libs 2>/dev/null
8023     if test -d .libs; then
8024     lt_cv_objdir=.libs
8025     else
8026     # MS-DOS does not allow filenames that begin with a dot.
8027     lt_cv_objdir=_libs
8028     fi
8029     rmdir .libs 2>/dev/null
8030     fi
8031     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8032     $as_echo "$lt_cv_objdir" >&6; }
8033     objdir=$lt_cv_objdir
8034    
8035    
8036    
8037    
8038    
8039     cat >>confdefs.h <<_ACEOF
8040     #define LT_OBJDIR "$lt_cv_objdir/"
8041     _ACEOF
8042    
8043    
8044    
8045    
8046     case $host_os in
8047     aix3*)
8048     # AIX sometimes has problems with the GCC collect2 program. For some
8049     # reason, if we set the COLLECT_NAMES environment variable, the problems
8050     # vanish in a puff of smoke.
8051     if test set != "${COLLECT_NAMES+set}"; then
8052     COLLECT_NAMES=
8053     export COLLECT_NAMES
8054     fi
8055     ;;
8056     esac
8057    
8058     # Global variables:
8059     ofile=libtool
8060     can_build_shared=yes
8061    
8062     # All known linkers require a '.a' archive for static linking (except MSVC,
8063     # which needs '.lib').
8064     libext=a
8065    
8066     with_gnu_ld=$lt_cv_prog_gnu_ld
8067    
8068     old_CC=$CC
8069     old_CFLAGS=$CFLAGS
8070    
8071 michael 5052 # Set sane defaults for various variables
8072     test -z "$CC" && CC=cc
8073     test -z "$LTCC" && LTCC=$CC
8074     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8075     test -z "$LD" && LD=ld
8076     test -z "$ac_objext" && ac_objext=o
8077    
8078 michael 5433 func_cc_basename $compiler
8079     cc_basename=$func_cc_basename_result
8080 michael 5052
8081    
8082     # Only perform the check for file, if the check method requires it
8083 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8084 michael 5052 case $deplibs_check_method in
8085     file_magic*)
8086     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8087 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8088     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8089     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8090     $as_echo_n "(cached) " >&6
8091 michael 5052 else
8092     case $MAGIC_CMD in
8093     [\\/*] | ?:[\\/]*)
8094 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8095 michael 5052 ;;
8096     *)
8097 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8098     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8099 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8100     for ac_dir in $ac_dummy; do
8101 michael 5059 IFS=$lt_save_ifs
8102 michael 5052 test -z "$ac_dir" && ac_dir=.
8103 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8104     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8105 michael 5052 if test -n "$file_magic_test_file"; then
8106     case $deplibs_check_method in
8107     "file_magic "*)
8108     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8109 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8110 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8111     $EGREP "$file_magic_regex" > /dev/null; then
8112     :
8113     else
8114 michael 5059 cat <<_LT_EOF 1>&2
8115 michael 5052
8116     *** Warning: the command libtool uses to detect shared libraries,
8117     *** $file_magic_cmd, produces output that libtool cannot recognize.
8118     *** The result is that libtool may fail to recognize shared libraries
8119     *** as such. This will affect the creation of libtool libraries that
8120     *** depend on shared libraries, but programs linked with such libtool
8121     *** libraries will work regardless of this problem. Nevertheless, you
8122     *** may want to report the problem to your system manager and/or to
8123     *** bug-libtool@gnu.org
8124    
8125 michael 5059 _LT_EOF
8126 michael 5052 fi ;;
8127     esac
8128     fi
8129     break
8130     fi
8131     done
8132 michael 5059 IFS=$lt_save_ifs
8133     MAGIC_CMD=$lt_save_MAGIC_CMD
8134 michael 5052 ;;
8135     esac
8136     fi
8137    
8138 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8139 michael 5052 if test -n "$MAGIC_CMD"; then
8140 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8141     $as_echo "$MAGIC_CMD" >&6; }
8142 michael 5052 else
8143 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144     $as_echo "no" >&6; }
8145 michael 5052 fi
8146    
8147 michael 5059
8148    
8149    
8150    
8151 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8152     if test -n "$ac_tool_prefix"; then
8153 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8154     $as_echo_n "checking for file... " >&6; }
8155     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8156     $as_echo_n "(cached) " >&6
8157 michael 5052 else
8158     case $MAGIC_CMD in
8159     [\\/*] | ?:[\\/]*)
8160 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8161 michael 5052 ;;
8162     *)
8163 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8164     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8165 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8166     for ac_dir in $ac_dummy; do
8167 michael 5059 IFS=$lt_save_ifs
8168 michael 5052 test -z "$ac_dir" && ac_dir=.
8169 michael 5059 if test -f "$ac_dir/file"; then
8170     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8171 michael 5052 if test -n "$file_magic_test_file"; then
8172     case $deplibs_check_method in
8173     "file_magic "*)
8174     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8175 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8176 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8177     $EGREP "$file_magic_regex" > /dev/null; then
8178     :
8179     else
8180 michael 5059 cat <<_LT_EOF 1>&2
8181 michael 5052
8182     *** Warning: the command libtool uses to detect shared libraries,
8183     *** $file_magic_cmd, produces output that libtool cannot recognize.
8184     *** The result is that libtool may fail to recognize shared libraries
8185     *** as such. This will affect the creation of libtool libraries that
8186     *** depend on shared libraries, but programs linked with such libtool
8187     *** libraries will work regardless of this problem. Nevertheless, you
8188     *** may want to report the problem to your system manager and/or to
8189     *** bug-libtool@gnu.org
8190    
8191 michael 5059 _LT_EOF
8192 michael 5052 fi ;;
8193     esac
8194     fi
8195     break
8196     fi
8197     done
8198 michael 5059 IFS=$lt_save_ifs
8199     MAGIC_CMD=$lt_save_MAGIC_CMD
8200 michael 5052 ;;
8201     esac
8202     fi
8203    
8204 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8205 michael 5052 if test -n "$MAGIC_CMD"; then
8206 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8207     $as_echo "$MAGIC_CMD" >&6; }
8208 michael 5052 else
8209 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210     $as_echo "no" >&6; }
8211 michael 5052 fi
8212    
8213 michael 5059
8214 michael 5052 else
8215     MAGIC_CMD=:
8216     fi
8217     fi
8218    
8219     fi
8220     ;;
8221     esac
8222    
8223 michael 5059 # Use C for the default configuration in the libtool script
8224 michael 5052
8225 michael 5059 lt_save_CC=$CC
8226 michael 5052 ac_ext=c
8227     ac_cpp='$CPP $CPPFLAGS'
8228     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8229     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8230     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8231    
8232    
8233     # Source file extension for C test sources.
8234     ac_ext=c
8235    
8236     # Object file extension for compiled C test sources.
8237     objext=o
8238     objext=$objext
8239    
8240     # Code to be used in simple compile tests
8241 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8242 michael 5052
8243     # Code to be used in simple link tests
8244 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8245 michael 5052
8246    
8247 michael 5059
8248    
8249    
8250    
8251    
8252 michael 5052 # If no C compiler was specified, use CC.
8253     LTCC=${LTCC-"$CC"}
8254    
8255     # If no C compiler flags were specified, use CFLAGS.
8256     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8257    
8258     # Allow CC to be a program name with arguments.
8259     compiler=$CC
8260    
8261 michael 5059 # Save the default compiler, since it gets overwritten when the other
8262     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8263     compiler_DEFAULT=$CC
8264 michael 5052
8265     # save warnings/boilerplate of simple test code
8266     ac_outfile=conftest.$ac_objext
8267 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8268 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8269     _lt_compiler_boilerplate=`cat conftest.err`
8270 michael 5059 $RM conftest*
8271 michael 5052
8272     ac_outfile=conftest.$ac_objext
8273 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8274 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8275     _lt_linker_boilerplate=`cat conftest.err`
8276 michael 5059 $RM -r conftest*
8277 michael 5052
8278    
8279 michael 6099 ## CAVEAT EMPTOR:
8280     ## There is no encapsulation within the following macros, do not change
8281     ## the running order or otherwise move them around unless you know exactly
8282     ## what you are doing...
8283 michael 5059 if test -n "$compiler"; then
8284 michael 5052
8285     lt_prog_compiler_no_builtin_flag=
8286    
8287 michael 5059 if test yes = "$GCC"; then
8288     case $cc_basename in
8289     nvcc*)
8290     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8291     *)
8292     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8293     esac
8294 michael 5052
8295 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8296     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8297     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8298     $as_echo_n "(cached) " >&6
8299 michael 5052 else
8300     lt_cv_prog_compiler_rtti_exceptions=no
8301 michael 5059 ac_outfile=conftest.$ac_objext
8302     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8303     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8304 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8305     # (2) before a word containing "conftest.", or (3) at the end.
8306     # Note that $ac_compile itself does not contain backslashes and begins
8307     # with a dollar sign (not a hyphen), so the echo should work correctly.
8308     # The option is referenced via a variable to avoid confusing sed.
8309     lt_compile=`echo "$ac_compile" | $SED \
8310     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8311     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8312     -e 's:$: $lt_compiler_flag:'`
8313 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8314 michael 5052 (eval "$lt_compile" 2>conftest.err)
8315     ac_status=$?
8316     cat conftest.err >&5
8317 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8319     # The compiler can only warn and ignore the option if not recognized
8320     # So say no if there are warnings other than the usual output.
8321 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8322 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8323     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8324     lt_cv_prog_compiler_rtti_exceptions=yes
8325     fi
8326     fi
8327 michael 5059 $RM conftest*
8328 michael 5052
8329     fi
8330 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8331     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8332 michael 5052
8333 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8334 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8335     else
8336     :
8337     fi
8338    
8339     fi
8340    
8341 michael 5059
8342    
8343    
8344    
8345    
8346     lt_prog_compiler_wl=
8347 michael 5052 lt_prog_compiler_pic=
8348     lt_prog_compiler_static=
8349    
8350    
8351 michael 5059 if test yes = "$GCC"; then
8352 michael 5052 lt_prog_compiler_wl='-Wl,'
8353     lt_prog_compiler_static='-static'
8354    
8355     case $host_os in
8356     aix*)
8357     # All AIX code is PIC.
8358 michael 5059 if test ia64 = "$host_cpu"; then
8359 michael 5052 # AIX 5 now supports IA64 processor
8360     lt_prog_compiler_static='-Bstatic'
8361     fi
8362 michael 5059 lt_prog_compiler_pic='-fPIC'
8363 michael 5052 ;;
8364    
8365     amigaos*)
8366 michael 5059 case $host_cpu in
8367     powerpc)
8368     # see comment about AmigaOS4 .so support
8369     lt_prog_compiler_pic='-fPIC'
8370     ;;
8371     m68k)
8372     # FIXME: we need at least 68020 code to build shared libraries, but
8373     # adding the '-m68020' flag to GCC prevents building anything better,
8374     # like '-m68040'.
8375     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8376     ;;
8377     esac
8378 michael 5052 ;;
8379    
8380 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8381 michael 5052 # PIC is the default for these OSes.
8382     ;;
8383    
8384 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8385 michael 5052 # This hack is so that the source file can tell whether it is being
8386     # built for inclusion in a dll (and should export symbols for example).
8387 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8388     # (--disable-auto-import) libraries
8389 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8390 michael 5059 case $host_os in
8391     os2*)
8392     lt_prog_compiler_static='$wl-static'
8393     ;;
8394     esac
8395 michael 5052 ;;
8396    
8397     darwin* | rhapsody*)
8398     # PIC is the default on this platform
8399     # Common symbols not allowed in MH_DYLIB files
8400     lt_prog_compiler_pic='-fno-common'
8401     ;;
8402    
8403 michael 5059 haiku*)
8404     # PIC is the default for Haiku.
8405     # The "-static" flag exists, but is broken.
8406     lt_prog_compiler_static=
8407     ;;
8408    
8409     hpux*)
8410     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8411     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8412     # sets the default TLS model and affects inlining.
8413     case $host_cpu in
8414     hppa*64*)
8415     # +Z the default
8416     ;;
8417     *)
8418     lt_prog_compiler_pic='-fPIC'
8419     ;;
8420     esac
8421     ;;
8422    
8423     interix[3-9]*)
8424 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8425     # Instead, we relocate shared libraries at runtime.
8426     ;;
8427    
8428     msdosdjgpp*)
8429     # Just because we use GCC doesn't mean we suddenly get shared libraries
8430     # on systems that don't support them.
8431     lt_prog_compiler_can_build_shared=no
8432     enable_shared=no
8433     ;;
8434    
8435 michael 5059 *nto* | *qnx*)
8436     # QNX uses GNU C++, but need to define -shared option too, otherwise
8437     # it will coredump.
8438     lt_prog_compiler_pic='-fPIC -shared'
8439     ;;
8440    
8441 michael 5052 sysv4*MP*)
8442     if test -d /usr/nec; then
8443     lt_prog_compiler_pic=-Kconform_pic
8444     fi
8445     ;;
8446    
8447     *)
8448     lt_prog_compiler_pic='-fPIC'
8449     ;;
8450     esac
8451 michael 5059
8452     case $cc_basename in
8453     nvcc*) # Cuda Compiler Driver 2.2
8454     lt_prog_compiler_wl='-Xlinker '
8455     if test -n "$lt_prog_compiler_pic"; then
8456     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8457     fi
8458     ;;
8459     esac
8460 michael 5052 else
8461     # PORTME Check for flag to pass linker flags through the system compiler.
8462     case $host_os in
8463     aix*)
8464     lt_prog_compiler_wl='-Wl,'
8465 michael 5059 if test ia64 = "$host_cpu"; then
8466 michael 5052 # AIX 5 now supports IA64 processor
8467     lt_prog_compiler_static='-Bstatic'
8468     else
8469     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8470     fi
8471     ;;
8472    
8473 michael 5059 darwin* | rhapsody*)
8474     # PIC is the default on this platform
8475     # Common symbols not allowed in MH_DYLIB files
8476     lt_prog_compiler_pic='-fno-common'
8477     case $cc_basename in
8478     nagfor*)
8479     # NAG Fortran compiler
8480     lt_prog_compiler_wl='-Wl,-Wl,,'
8481     lt_prog_compiler_pic='-PIC'
8482     lt_prog_compiler_static='-Bstatic'
8483     ;;
8484     esac
8485     ;;
8486    
8487     mingw* | cygwin* | pw32* | os2* | cegcc*)
8488 michael 5052 # This hack is so that the source file can tell whether it is being
8489     # built for inclusion in a dll (and should export symbols for example).
8490     lt_prog_compiler_pic='-DDLL_EXPORT'
8491 michael 5059 case $host_os in
8492     os2*)
8493     lt_prog_compiler_static='$wl-static'
8494     ;;
8495     esac
8496 michael 5052 ;;
8497    
8498     hpux9* | hpux10* | hpux11*)
8499     lt_prog_compiler_wl='-Wl,'
8500     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8501     # not for PA HP-UX.
8502     case $host_cpu in
8503     hppa*64*|ia64*)
8504     # +Z the default
8505     ;;
8506     *)
8507     lt_prog_compiler_pic='+Z'
8508     ;;
8509     esac
8510     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8511 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8512 michael 5052 ;;
8513    
8514     irix5* | irix6* | nonstopux*)
8515     lt_prog_compiler_wl='-Wl,'
8516     # PIC (with -KPIC) is the default.
8517     lt_prog_compiler_static='-non_shared'
8518     ;;
8519    
8520 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8521 michael 5052 case $cc_basename in
8522 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8523     ecc*)
8524 michael 5052 lt_prog_compiler_wl='-Wl,'
8525     lt_prog_compiler_pic='-KPIC'
8526     lt_prog_compiler_static='-static'
8527     ;;
8528 michael 5059 # icc used to be incompatible with GCC.
8529     # ICC 10 doesn't accept -KPIC any more.
8530     icc* | ifort*)
8531     lt_prog_compiler_wl='-Wl,'
8532     lt_prog_compiler_pic='-fPIC'
8533     lt_prog_compiler_static='-static'
8534     ;;
8535     # Lahey Fortran 8.1.
8536     lf95*)
8537     lt_prog_compiler_wl='-Wl,'
8538     lt_prog_compiler_pic='--shared'
8539     lt_prog_compiler_static='--static'
8540     ;;
8541     nagfor*)
8542     # NAG Fortran compiler
8543     lt_prog_compiler_wl='-Wl,-Wl,,'
8544     lt_prog_compiler_pic='-PIC'
8545     lt_prog_compiler_static='-Bstatic'
8546     ;;
8547     tcc*)
8548     # Fabrice Bellard et al's Tiny C Compiler
8549     lt_prog_compiler_wl='-Wl,'
8550     lt_prog_compiler_pic='-fPIC'
8551     lt_prog_compiler_static='-static'
8552     ;;
8553     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8554 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8555     # which looks to be a dead project)
8556     lt_prog_compiler_wl='-Wl,'
8557     lt_prog_compiler_pic='-fpic'
8558     lt_prog_compiler_static='-Bstatic'
8559     ;;
8560     ccc*)
8561     lt_prog_compiler_wl='-Wl,'
8562     # All Alpha code is PIC.
8563     lt_prog_compiler_static='-non_shared'
8564     ;;
8565 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8566     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8567     lt_prog_compiler_wl='-Wl,'
8568     lt_prog_compiler_pic='-qpic'
8569     lt_prog_compiler_static='-qstaticlink'
8570     ;;
8571     *)
8572     case `$CC -V 2>&1 | sed 5q` in
8573     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8574     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8575     lt_prog_compiler_pic='-KPIC'
8576     lt_prog_compiler_static='-Bstatic'
8577     lt_prog_compiler_wl=''
8578     ;;
8579     *Sun\ F* | *Sun*Fortran*)
8580     lt_prog_compiler_pic='-KPIC'
8581     lt_prog_compiler_static='-Bstatic'
8582     lt_prog_compiler_wl='-Qoption ld '
8583     ;;
8584     *Sun\ C*)
8585     # Sun C 5.9
8586     lt_prog_compiler_pic='-KPIC'
8587     lt_prog_compiler_static='-Bstatic'
8588     lt_prog_compiler_wl='-Wl,'
8589     ;;
8590     *Intel*\ [CF]*Compiler*)
8591     lt_prog_compiler_wl='-Wl,'
8592     lt_prog_compiler_pic='-fPIC'
8593     lt_prog_compiler_static='-static'
8594     ;;
8595     *Portland\ Group*)
8596     lt_prog_compiler_wl='-Wl,'
8597     lt_prog_compiler_pic='-fpic'
8598     lt_prog_compiler_static='-Bstatic'
8599     ;;
8600     esac
8601     ;;
8602 michael 5052 esac
8603     ;;
8604    
8605 michael 5059 newsos6)
8606     lt_prog_compiler_pic='-KPIC'
8607     lt_prog_compiler_static='-Bstatic'
8608     ;;
8609    
8610     *nto* | *qnx*)
8611     # QNX uses GNU C++, but need to define -shared option too, otherwise
8612     # it will coredump.
8613     lt_prog_compiler_pic='-fPIC -shared'
8614     ;;
8615    
8616 michael 5052 osf3* | osf4* | osf5*)
8617     lt_prog_compiler_wl='-Wl,'
8618     # All OSF/1 code is PIC.
8619     lt_prog_compiler_static='-non_shared'
8620     ;;
8621    
8622 michael 5059 rdos*)
8623     lt_prog_compiler_static='-non_shared'
8624     ;;
8625    
8626 michael 5052 solaris*)
8627     lt_prog_compiler_pic='-KPIC'
8628     lt_prog_compiler_static='-Bstatic'
8629     case $cc_basename in
8630 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8631 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8632     *)
8633     lt_prog_compiler_wl='-Wl,';;
8634     esac
8635     ;;
8636    
8637     sunos4*)
8638     lt_prog_compiler_wl='-Qoption ld '
8639     lt_prog_compiler_pic='-PIC'
8640     lt_prog_compiler_static='-Bstatic'
8641     ;;
8642    
8643     sysv4 | sysv4.2uw2* | sysv4.3*)
8644     lt_prog_compiler_wl='-Wl,'
8645     lt_prog_compiler_pic='-KPIC'
8646     lt_prog_compiler_static='-Bstatic'
8647     ;;
8648    
8649     sysv4*MP*)
8650 michael 5059 if test -d /usr/nec; then
8651 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8652     lt_prog_compiler_static='-Bstatic'
8653     fi
8654     ;;
8655    
8656     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8657     lt_prog_compiler_wl='-Wl,'
8658     lt_prog_compiler_pic='-KPIC'
8659     lt_prog_compiler_static='-Bstatic'
8660     ;;
8661    
8662     unicos*)
8663     lt_prog_compiler_wl='-Wl,'
8664     lt_prog_compiler_can_build_shared=no
8665     ;;
8666    
8667     uts4*)
8668     lt_prog_compiler_pic='-pic'
8669     lt_prog_compiler_static='-Bstatic'
8670     ;;
8671    
8672     *)
8673     lt_prog_compiler_can_build_shared=no
8674     ;;
8675     esac
8676     fi
8677    
8678 michael 5059 case $host_os in
8679     # For platforms that do not support PIC, -DPIC is meaningless:
8680     *djgpp*)
8681     lt_prog_compiler_pic=
8682     ;;
8683     *)
8684     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8685     ;;
8686     esac
8687 michael 5052
8688 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8689     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8690     if ${lt_cv_prog_compiler_pic+:} false; then :
8691     $as_echo_n "(cached) " >&6
8692     else
8693     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8694     fi
8695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8696     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8697     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8698    
8699 michael 5052 #
8700     # Check to make sure the PIC flag actually works.
8701     #
8702     if test -n "$lt_prog_compiler_pic"; then
8703 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8704     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8705     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8706     $as_echo_n "(cached) " >&6
8707 michael 5052 else
8708 michael 5059 lt_cv_prog_compiler_pic_works=no
8709     ac_outfile=conftest.$ac_objext
8710     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8711     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8712 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8713     # (2) before a word containing "conftest.", or (3) at the end.
8714     # Note that $ac_compile itself does not contain backslashes and begins
8715     # with a dollar sign (not a hyphen), so the echo should work correctly.
8716     # The option is referenced via a variable to avoid confusing sed.
8717     lt_compile=`echo "$ac_compile" | $SED \
8718     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8719     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8720     -e 's:$: $lt_compiler_flag:'`
8721 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8722 michael 5052 (eval "$lt_compile" 2>conftest.err)
8723     ac_status=$?
8724     cat conftest.err >&5
8725 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8727     # The compiler can only warn and ignore the option if not recognized
8728     # So say no if there are warnings other than the usual output.
8729 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8730 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8731     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8732 michael 5059 lt_cv_prog_compiler_pic_works=yes
8733 michael 5052 fi
8734     fi
8735 michael 5059 $RM conftest*
8736 michael 5052
8737     fi
8738 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8739     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8740 michael 5052
8741 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8742 michael 5052 case $lt_prog_compiler_pic in
8743     "" | " "*) ;;
8744     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8745     esac
8746     else
8747     lt_prog_compiler_pic=
8748     lt_prog_compiler_can_build_shared=no
8749     fi
8750    
8751     fi
8752    
8753 michael 5059
8754    
8755    
8756    
8757    
8758    
8759    
8760    
8761    
8762    
8763 michael 5052 #
8764     # Check to make sure the static flag actually works.
8765     #
8766     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8767 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8768     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8769     if ${lt_cv_prog_compiler_static_works+:} false; then :
8770     $as_echo_n "(cached) " >&6
8771 michael 5052 else
8772 michael 5059 lt_cv_prog_compiler_static_works=no
8773     save_LDFLAGS=$LDFLAGS
8774 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8775 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8776 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8777     # The linker can only warn and ignore the option if not recognized
8778     # So say no if there are warnings
8779     if test -s conftest.err; then
8780     # Append any errors to the config.log.
8781     cat conftest.err 1>&5
8782 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8783 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8784     if diff conftest.exp conftest.er2 >/dev/null; then
8785 michael 5059 lt_cv_prog_compiler_static_works=yes
8786 michael 5052 fi
8787     else
8788 michael 5059 lt_cv_prog_compiler_static_works=yes
8789 michael 5052 fi
8790     fi
8791 michael 5059 $RM -r conftest*
8792     LDFLAGS=$save_LDFLAGS
8793 michael 5052
8794     fi
8795 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8796     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8797 michael 5052
8798 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8799 michael 5052 :
8800     else
8801     lt_prog_compiler_static=
8802     fi
8803    
8804    
8805 michael 5059
8806    
8807    
8808    
8809    
8810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8811     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8812     if ${lt_cv_prog_compiler_c_o+:} false; then :
8813     $as_echo_n "(cached) " >&6
8814 michael 5052 else
8815     lt_cv_prog_compiler_c_o=no
8816 michael 5059 $RM -r conftest 2>/dev/null
8817 michael 5052 mkdir conftest
8818     cd conftest
8819     mkdir out
8820 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8821 michael 5052
8822     lt_compiler_flag="-o out/conftest2.$ac_objext"
8823     # Insert the option either (1) after the last *FLAGS variable, or
8824     # (2) before a word containing "conftest.", or (3) at the end.
8825     # Note that $ac_compile itself does not contain backslashes and begins
8826     # with a dollar sign (not a hyphen), so the echo should work correctly.
8827     lt_compile=`echo "$ac_compile" | $SED \
8828     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8829     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8830     -e 's:$: $lt_compiler_flag:'`
8831 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8832 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8833     ac_status=$?
8834     cat out/conftest.err >&5
8835 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8837     then
8838     # The compiler can only warn and ignore the option if not recognized
8839     # So say no if there are warnings
8840 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8841 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8842     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8843     lt_cv_prog_compiler_c_o=yes
8844     fi
8845     fi
8846     chmod u+w . 2>&5
8847 michael 5059 $RM conftest*
8848 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8849     # template instantiation
8850 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8851     $RM out/* && rmdir out
8852 michael 5052 cd ..
8853 michael 5059 $RM -r conftest
8854     $RM conftest*
8855 michael 5052
8856     fi
8857 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8858     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8859 michael 5052
8860    
8861 michael 5059
8862    
8863    
8864    
8865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8866     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8867     if ${lt_cv_prog_compiler_c_o+:} false; then :
8868     $as_echo_n "(cached) " >&6
8869     else
8870     lt_cv_prog_compiler_c_o=no
8871     $RM -r conftest 2>/dev/null
8872     mkdir conftest
8873     cd conftest
8874     mkdir out
8875     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8876    
8877     lt_compiler_flag="-o out/conftest2.$ac_objext"
8878     # Insert the option either (1) after the last *FLAGS variable, or
8879     # (2) before a word containing "conftest.", or (3) at the end.
8880     # Note that $ac_compile itself does not contain backslashes and begins
8881     # with a dollar sign (not a hyphen), so the echo should work correctly.
8882     lt_compile=`echo "$ac_compile" | $SED \
8883     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8884     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8885     -e 's:$: $lt_compiler_flag:'`
8886     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8887     (eval "$lt_compile" 2>out/conftest.err)
8888     ac_status=$?
8889     cat out/conftest.err >&5
8890     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8892     then
8893     # The compiler can only warn and ignore the option if not recognized
8894     # So say no if there are warnings
8895     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8896     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8897     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8898     lt_cv_prog_compiler_c_o=yes
8899     fi
8900     fi
8901     chmod u+w . 2>&5
8902     $RM conftest*
8903     # SGI C++ compiler will create directory out/ii_files/ for
8904     # template instantiation
8905     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8906     $RM out/* && rmdir out
8907     cd ..
8908     $RM -r conftest
8909     $RM conftest*
8910    
8911     fi
8912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8913     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914    
8915    
8916    
8917    
8918     hard_links=nottested
8919     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8920 michael 5052 # do not overwrite the value of need_locks provided by the user
8921 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8922     $as_echo_n "checking if we can lock with hard links... " >&6; }
8923 michael 5052 hard_links=yes
8924 michael 5059 $RM conftest*
8925 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8926     touch conftest.a
8927     ln conftest.a conftest.b 2>&5 || hard_links=no
8928     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8929 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8930     $as_echo "$hard_links" >&6; }
8931     if test no = "$hard_links"; then
8932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8933     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8934 michael 5052 need_locks=warn
8935     fi
8936     else
8937     need_locks=no
8938     fi
8939    
8940    
8941 michael 5059
8942    
8943    
8944    
8945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8946     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8947    
8948 michael 5052 runpath_var=
8949     allow_undefined_flag=
8950 michael 5059 always_export_symbols=no
8951 michael 5052 archive_cmds=
8952     archive_expsym_cmds=
8953 michael 5059 compiler_needs_object=no
8954     enable_shared_with_static_runtimes=no
8955 michael 5052 export_dynamic_flag_spec=
8956 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8957     hardcode_automatic=no
8958     hardcode_direct=no
8959     hardcode_direct_absolute=no
8960 michael 5052 hardcode_libdir_flag_spec=
8961     hardcode_libdir_separator=
8962     hardcode_minus_L=no
8963     hardcode_shlibpath_var=unsupported
8964 michael 5059 inherit_rpath=no
8965 michael 5052 link_all_deplibs=unknown
8966     module_cmds=
8967     module_expsym_cmds=
8968 michael 5059 old_archive_from_new_cmds=
8969     old_archive_from_expsyms_cmds=
8970     thread_safe_flag_spec=
8971     whole_archive_flag_spec=
8972 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
8973     # included in the symbol list
8974     include_expsyms=
8975     # exclude_expsyms can be an extended regexp of symbols to exclude
8976 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8977     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8978     # as well as any symbol that contains 'd'.
8979     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8980 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8981     # platforms (ab)use it in PIC code, but their linkers get confused if
8982     # the symbol is explicitly referenced. Since portable code cannot
8983     # rely on this symbol name, it's probably fine to never include it in
8984     # preloaded symbol tables.
8985 michael 5059 # Exclude shared library initialization/finalization symbols.
8986 michael 5052 extract_expsyms_cmds=
8987    
8988     case $host_os in
8989 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
8990 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8991     # When not using gcc, we currently assume that we are using
8992     # Microsoft Visual C++.
8993 michael 5059 if test yes != "$GCC"; then
8994 michael 5052 with_gnu_ld=no
8995     fi
8996     ;;
8997     interix*)
8998     # we just hope/assume this is gcc and not c89 (= MSVC++)
8999     with_gnu_ld=yes
9000     ;;
9001 michael 5059 openbsd* | bitrig*)
9002 michael 5052 with_gnu_ld=no
9003     ;;
9004     esac
9005    
9006     ld_shlibs=yes
9007 michael 5059
9008     # On some targets, GNU ld is compatible enough with the native linker
9009     # that we're better off using the native interface for both.
9010     lt_use_gnu_ld_interface=no
9011     if test yes = "$with_gnu_ld"; then
9012     case $host_os in
9013     aix*)
9014     # The AIX port of GNU ld has always aspired to compatibility
9015     # with the native linker. However, as the warning in the GNU ld
9016     # block says, versions before 2.19.5* couldn't really create working
9017     # shared libraries, regardless of the interface used.
9018     case `$LD -v 2>&1` in
9019     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9020     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9021     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9022     *)
9023     lt_use_gnu_ld_interface=yes
9024     ;;
9025     esac
9026     ;;
9027     *)
9028     lt_use_gnu_ld_interface=yes
9029     ;;
9030     esac
9031     fi
9032    
9033     if test yes = "$lt_use_gnu_ld_interface"; then
9034 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9035 michael 5059 wlarc='$wl'
9036 michael 5052
9037     # Set some defaults for GNU ld with shared library support. These
9038     # are reset later if shared libraries are not supported. Putting them
9039     # here allows them to be overridden if necessary.
9040     runpath_var=LD_RUN_PATH
9041 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9042     export_dynamic_flag_spec='$wl--export-dynamic'
9043 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9044 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9045     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9046     else
9047     whole_archive_flag_spec=
9048 michael 5052 fi
9049     supports_anon_versioning=no
9050 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9051     *GNU\ gold*) supports_anon_versioning=yes ;;
9052 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9053     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9054     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9055     *\ 2.11.*) ;; # other 2.11 versions
9056     *) supports_anon_versioning=yes ;;
9057     esac
9058    
9059     # See if GNU ld supports shared libraries.
9060     case $host_os in
9061 michael 5059 aix[3-9]*)
9062 michael 5052 # On AIX/PPC, the GNU linker is very broken
9063 michael 5059 if test ia64 != "$host_cpu"; then
9064 michael 5052 ld_shlibs=no
9065 michael 5059 cat <<_LT_EOF 1>&2
9066 michael 5052
9067 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9068 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9069     *** Therefore, libtool is disabling shared libraries support. If you
9070 michael 5059 *** really care for shared libraries, you may want to install binutils
9071     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9072     *** You will then need to restart the configuration process.
9073 michael 5052
9074 michael 5059 _LT_EOF
9075 michael 5052 fi
9076     ;;
9077    
9078     amigaos*)
9079 michael 5059 case $host_cpu in
9080     powerpc)
9081     # see comment about AmigaOS4 .so support
9082     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9083     archive_expsym_cmds=''
9084     ;;
9085     m68k)
9086     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)'
9087     hardcode_libdir_flag_spec='-L$libdir'
9088     hardcode_minus_L=yes
9089     ;;
9090     esac
9091 michael 5052 ;;
9092    
9093     beos*)
9094 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9095 michael 5052 allow_undefined_flag=unsupported
9096     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9097     # support --undefined. This deserves some investigation. FIXME
9098 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9099 michael 5052 else
9100     ld_shlibs=no
9101     fi
9102     ;;
9103    
9104 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9105     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9106 michael 5052 # as there is no search path for DLLs.
9107     hardcode_libdir_flag_spec='-L$libdir'
9108 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9109 michael 5052 allow_undefined_flag=unsupported
9110     always_export_symbols=no
9111     enable_shared_with_static_runtimes=yes
9112 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'
9113     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9114 michael 5052
9115 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9116     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9117     # If the export-symbols file already is a .def file, use it as
9118     # is; otherwise, prepend EXPORTS...
9119     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9120     cp $export_symbols $output_objdir/$soname.def;
9121     else
9122     echo EXPORTS > $output_objdir/$soname.def;
9123     cat $export_symbols >> $output_objdir/$soname.def;
9124     fi~
9125     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126 michael 5052 else
9127     ld_shlibs=no
9128     fi
9129     ;;
9130    
9131 michael 5059 haiku*)
9132     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9133     link_all_deplibs=yes
9134     ;;
9135    
9136     os2*)
9137     hardcode_libdir_flag_spec='-L$libdir'
9138     hardcode_minus_L=yes
9139     allow_undefined_flag=unsupported
9140     shrext_cmds=.dll
9141     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9142     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9143     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9144     $ECHO EXPORTS >> $output_objdir/$libname.def~
9145     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9146     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9147     emximp -o $lib $output_objdir/$libname.def'
9148     archive_expsym_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     prefix_cmds="$SED"~
9153     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9154     prefix_cmds="$prefix_cmds -e 1d";
9155     fi~
9156     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9157     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9158     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9159     emximp -o $lib $output_objdir/$libname.def'
9160     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9161     enable_shared_with_static_runtimes=yes
9162     ;;
9163    
9164     interix[3-9]*)
9165 michael 5052 hardcode_direct=no
9166     hardcode_shlibpath_var=no
9167 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9168     export_dynamic_flag_spec='$wl-E'
9169 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9170     # Instead, shared libraries are loaded at an image base (0x10000000 by
9171     # default) and relocated if they conflict, which is a slow very memory
9172     # consuming and fragmenting process. To avoid this, we pick a random,
9173     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9174     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9175 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'
9176     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'
9177 michael 5052 ;;
9178    
9179 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9180     tmp_diet=no
9181     if test linux-dietlibc = "$host_os"; then
9182     case $cc_basename in
9183     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9184     esac
9185     fi
9186     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9187     && test no = "$tmp_diet"
9188     then
9189     tmp_addflag=' $pic_flag'
9190     tmp_sharedflag='-shared'
9191 michael 5052 case $cc_basename,$host_cpu in
9192 michael 5059 pgcc*) # Portland Group C compiler
9193     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'
9194 michael 5052 tmp_addflag=' $pic_flag'
9195     ;;
9196 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9197     # Portland Group f77 and f90 compilers
9198     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'
9199 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9200 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9201 michael 5052 tmp_addflag=' -i_dynamic' ;;
9202     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9203     tmp_addflag=' -i_dynamic -nofor_main' ;;
9204     ifc* | ifort*) # Intel Fortran compiler
9205     tmp_addflag=' -nofor_main' ;;
9206 michael 5059 lf95*) # Lahey Fortran 8.1
9207     whole_archive_flag_spec=
9208     tmp_sharedflag='--shared' ;;
9209     nagfor*) # NAGFOR 5.3
9210     tmp_sharedflag='-Wl,-shared' ;;
9211     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9212     tmp_sharedflag='-qmkshrobj'
9213     tmp_addflag= ;;
9214     nvcc*) # Cuda Compiler Driver 2.2
9215     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'
9216     compiler_needs_object=yes
9217     ;;
9218 michael 5052 esac
9219 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9220     *Sun\ C*) # Sun C 5.9
9221     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'
9222     compiler_needs_object=yes
9223     tmp_sharedflag='-G' ;;
9224     *Sun\ F*) # Sun Fortran 8.3
9225     tmp_sharedflag='-G' ;;
9226     esac
9227     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9228 michael 5052
9229 michael 5059 if test yes = "$supports_anon_versioning"; then
9230     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232     echo "local: *; };" >> $output_objdir/$libname.ver~
9233     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9234     fi
9235    
9236     case $cc_basename in
9237     tcc*)
9238     export_dynamic_flag_spec='-rdynamic'
9239     ;;
9240     xlf* | bgf* | bgxlf* | mpixlf*)
9241     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9242     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9243     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9244     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9245     if test yes = "$supports_anon_versioning"; then
9246     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9247     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9248     echo "local: *; };" >> $output_objdir/$libname.ver~
9249     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9250     fi
9251     ;;
9252     esac
9253 michael 5052 else
9254 michael 5059 ld_shlibs=no
9255 michael 5052 fi
9256     ;;
9257    
9258 michael 5059 netbsd*)
9259     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9260 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9261     wlarc=
9262     else
9263 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9264     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9265 michael 5052 fi
9266     ;;
9267    
9268     solaris*)
9269 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9270 michael 5052 ld_shlibs=no
9271 michael 5059 cat <<_LT_EOF 1>&2
9272 michael 5052
9273     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9274     *** create shared libraries on Solaris systems. Therefore, libtool
9275     *** is disabling shared libraries support. We urge you to upgrade GNU
9276     *** binutils to release 2.9.1 or newer. Another option is to modify
9277     *** your PATH or compiler configuration so that the native linker is
9278     *** used, and then restart.
9279    
9280 michael 5059 _LT_EOF
9281     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9283     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9284 michael 5052 else
9285     ld_shlibs=no
9286     fi
9287     ;;
9288    
9289     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9290     case `$LD -v 2>&1` in
9291     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9292     ld_shlibs=no
9293     cat <<_LT_EOF 1>&2
9294    
9295 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9296 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9297     *** is disabling shared libraries support. We urge you to upgrade GNU
9298     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9299     *** your PATH or compiler configuration so that the native linker is
9300     *** used, and then restart.
9301    
9302     _LT_EOF
9303     ;;
9304     *)
9305 michael 5059 # For security reasons, it is highly recommended that you always
9306     # use absolute paths for naming shared libraries, and exclude the
9307     # DT_RUNPATH tag from executables and libraries. But doing so
9308     # requires that you compile everything twice, which is a pain.
9309     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9310     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9311     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9313 michael 5052 else
9314     ld_shlibs=no
9315     fi
9316     ;;
9317     esac
9318     ;;
9319    
9320     sunos4*)
9321     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322     wlarc=
9323     hardcode_direct=yes
9324     hardcode_shlibpath_var=no
9325     ;;
9326    
9327     *)
9328 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9331 michael 5052 else
9332     ld_shlibs=no
9333     fi
9334     ;;
9335     esac
9336    
9337 michael 5059 if test no = "$ld_shlibs"; then
9338 michael 5052 runpath_var=
9339     hardcode_libdir_flag_spec=
9340     export_dynamic_flag_spec=
9341     whole_archive_flag_spec=
9342     fi
9343     else
9344     # PORTME fill in a description of your system's linker (not GNU ld)
9345     case $host_os in
9346     aix3*)
9347     allow_undefined_flag=unsupported
9348     always_export_symbols=yes
9349     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'
9350     # Note: this linker hardcodes the directories in LIBPATH if there
9351     # are no directories specified by -L.
9352     hardcode_minus_L=yes
9353 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9354 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9355     # broken collect2.
9356     hardcode_direct=unsupported
9357     fi
9358     ;;
9359    
9360 michael 5059 aix[4-9]*)
9361     if test ia64 = "$host_cpu"; then
9362 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9363     # have to do anything special.
9364     aix_use_runtimelinking=no
9365     exp_sym_flag='-Bexport'
9366 michael 5059 no_entry_flag=
9367 michael 5052 else
9368     # If we're using GNU nm, then we don't want the "-C" option.
9369 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9370     # Without the "-l" option, or with the "-B" option, AIX nm treats
9371     # weak defined symbols like other global defined symbols, whereas
9372     # GNU nm marks them as "W".
9373     # While the 'weak' keyword is ignored in the Export File, we need
9374     # it in the Import File for the 'aix-soname' feature, so we have
9375     # to replace the "-B" option with "-P" for AIX nm.
9376     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9377     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'
9378 michael 5052 else
9379 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'
9380 michael 5052 fi
9381     aix_use_runtimelinking=no
9382    
9383     # Test if we are trying to use run time linking or normal
9384     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9385 michael 5059 # have runtime linking enabled, and use it for executables.
9386     # For shared libraries, we enable/disable runtime linking
9387     # depending on the kind of the shared library created -
9388     # when "with_aix_soname,aix_use_runtimelinking" is:
9389     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9390     # "aix,yes" lib.so shared, rtl:yes, for executables
9391     # lib.a static archive
9392     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9393     # lib.a(lib.so.V) shared, rtl:no, for executables
9394     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9395     # lib.a(lib.so.V) shared, rtl:no
9396     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9397     # lib.a static archive
9398     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9399 michael 5052 for ld_flag in $LDFLAGS; do
9400 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9401     aix_use_runtimelinking=yes
9402     break
9403     fi
9404 michael 5052 done
9405 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9406     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9407     # so we don't have lib.a shared libs to link our executables.
9408     # We have to force runtime linking in this case.
9409     aix_use_runtimelinking=yes
9410     LDFLAGS="$LDFLAGS -Wl,-brtl"
9411     fi
9412 michael 5052 ;;
9413     esac
9414    
9415     exp_sym_flag='-bexport'
9416     no_entry_flag='-bnoentry'
9417     fi
9418    
9419     # When large executables or shared objects are built, AIX ld can
9420     # have problems creating the table of contents. If linking a library
9421     # or program results in "error TOC overflow" add -mminimal-toc to
9422     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9423     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9424    
9425     archive_cmds=''
9426     hardcode_direct=yes
9427 michael 5059 hardcode_direct_absolute=yes
9428 michael 5052 hardcode_libdir_separator=':'
9429     link_all_deplibs=yes
9430 michael 5059 file_list_spec='$wl-f,'
9431     case $with_aix_soname,$aix_use_runtimelinking in
9432     aix,*) ;; # traditional, no import file
9433     svr4,* | *,yes) # use import file
9434     # The Import File defines what to hardcode.
9435     hardcode_direct=no
9436     hardcode_direct_absolute=no
9437     ;;
9438     esac
9439 michael 5052
9440 michael 5059 if test yes = "$GCC"; then
9441 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9442     # We only want to do this on AIX 4.2 and lower, the check
9443     # below for broken collect2 doesn't work under 4.3+
9444 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9445     if test -f "$collect2name" &&
9446     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9447 michael 5052 then
9448 michael 5059 # We have reworked collect2
9449     :
9450 michael 5052 else
9451 michael 5059 # We have old collect2
9452     hardcode_direct=unsupported
9453     # It fails to find uninstalled libraries when the uninstalled
9454     # path is not listed in the libpath. Setting hardcode_minus_L
9455     # to unsupported forces relinking
9456     hardcode_minus_L=yes
9457     hardcode_libdir_flag_spec='-L$libdir'
9458     hardcode_libdir_separator=
9459 michael 5052 fi
9460     ;;
9461     esac
9462     shared_flag='-shared'
9463 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9464     shared_flag="$shared_flag "'$wl-G'
9465 michael 5052 fi
9466 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9467     # shared library, or the linker may eventually find shared libraries
9468     # /with/ Import File - we do not want to mix them.
9469     shared_flag_aix='-shared'
9470     shared_flag_svr4='-shared $wl-G'
9471 michael 5052 else
9472     # not using gcc
9473 michael 5059 if test ia64 = "$host_cpu"; then
9474     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9475     # chokes on -Wl,-G. The following line is correct:
9476 michael 5052 shared_flag='-G'
9477     else
9478 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9479     shared_flag='$wl-G'
9480 michael 5052 else
9481 michael 5059 shared_flag='$wl-bM:SRE'
9482 michael 5052 fi
9483 michael 5059 shared_flag_aix='$wl-bM:SRE'
9484     shared_flag_svr4='$wl-G'
9485 michael 5052 fi
9486     fi
9487    
9488 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9489 michael 5052 # It seems that -bexpall does not export symbols beginning with
9490     # underscore (_), so it is better to generate a list of symbols to export.
9491     always_export_symbols=yes
9492 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9493 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9494     # -berok will link without error, but may produce a broken library.
9495     allow_undefined_flag='-berok'
9496 michael 5059 # Determine the default libpath from the value encoded in an
9497     # empty executable.
9498     if test set = "${lt_cv_aix_libpath+set}"; then
9499     aix_libpath=$lt_cv_aix_libpath
9500     else
9501     if ${lt_cv_aix_libpath_+:} false; then :
9502     $as_echo_n "(cached) " >&6
9503     else
9504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505 michael 5052 /* end confdefs.h. */
9506    
9507     int
9508     main ()
9509     {
9510    
9511     ;
9512     return 0;
9513     }
9514     _ACEOF
9515 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9516 michael 5052
9517 michael 5059 lt_aix_libpath_sed='
9518     /Import File Strings/,/^$/ {
9519     /^0/ {
9520     s/^0 *\([^ ]*\) *$/\1/
9521     p
9522     }
9523     }'
9524     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525     # Check for a 64-bit object if we didn't find anything.
9526     if test -z "$lt_cv_aix_libpath_"; then
9527     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9528     fi
9529     fi
9530     rm -f core conftest.err conftest.$ac_objext \
9531     conftest$ac_exeext conftest.$ac_ext
9532     if test -z "$lt_cv_aix_libpath_"; then
9533     lt_cv_aix_libpath_=/usr/lib:/lib
9534     fi
9535 michael 5052
9536 michael 5059 fi
9537 michael 5052
9538 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9539 michael 5052 fi
9540    
9541 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9542     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
9543     else
9544     if test ia64 = "$host_cpu"; then
9545     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9546 michael 5052 allow_undefined_flag="-z nodefs"
9547 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"
9548 michael 5052 else
9549 michael 5059 # Determine the default libpath from the value encoded in an
9550     # empty executable.
9551     if test set = "${lt_cv_aix_libpath+set}"; then
9552     aix_libpath=$lt_cv_aix_libpath
9553     else
9554     if ${lt_cv_aix_libpath_+:} false; then :
9555     $as_echo_n "(cached) " >&6
9556     else
9557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 michael 5052 /* end confdefs.h. */
9559    
9560     int
9561     main ()
9562     {
9563    
9564     ;
9565     return 0;
9566     }
9567     _ACEOF
9568 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9569 michael 5052
9570 michael 5059 lt_aix_libpath_sed='
9571     /Import File Strings/,/^$/ {
9572     /^0/ {
9573     s/^0 *\([^ ]*\) *$/\1/
9574     p
9575     }
9576     }'
9577     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578     # Check for a 64-bit object if we didn't find anything.
9579     if test -z "$lt_cv_aix_libpath_"; then
9580     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581     fi
9582     fi
9583     rm -f core conftest.err conftest.$ac_objext \
9584     conftest$ac_exeext conftest.$ac_ext
9585     if test -z "$lt_cv_aix_libpath_"; then
9586     lt_cv_aix_libpath_=/usr/lib:/lib
9587     fi
9588 michael 5052
9589 michael 5059 fi
9590 michael 5052
9591 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9592 michael 5052 fi
9593    
9594 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9595 michael 5052 # Warning - without using the other run time loading flags,
9596     # -berok will link without error, but may produce a broken library.
9597 michael 5059 no_undefined_flag=' $wl-bernotok'
9598     allow_undefined_flag=' $wl-berok'
9599     if test yes = "$with_gnu_ld"; then
9600     # We only use this code for GNU lds that support --whole-archive.
9601     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9602     else
9603     # Exported symbols can be pulled into shared objects from archives
9604     whole_archive_flag_spec='$convenience'
9605     fi
9606 michael 5052 archive_cmds_need_lc=yes
9607 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9608     # -brtl affects multiple linker settings, -berok does not and is overridden later
9609     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9610     if test svr4 != "$with_aix_soname"; then
9611     # This is similar to how AIX traditionally builds its shared libraries.
9612     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'
9613     fi
9614     if test aix != "$with_aix_soname"; then
9615     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'
9616     else
9617     # used by -dlpreopen to get the symbols
9618     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9619     fi
9620     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9621 michael 5052 fi
9622     fi
9623     ;;
9624    
9625     amigaos*)
9626 michael 5059 case $host_cpu in
9627     powerpc)
9628     # see comment about AmigaOS4 .so support
9629     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9630     archive_expsym_cmds=''
9631     ;;
9632     m68k)
9633     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)'
9634     hardcode_libdir_flag_spec='-L$libdir'
9635     hardcode_minus_L=yes
9636     ;;
9637     esac
9638 michael 5052 ;;
9639    
9640     bsdi[45]*)
9641     export_dynamic_flag_spec=-rdynamic
9642     ;;
9643    
9644 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9645 michael 5052 # When not using gcc, we currently assume that we are using
9646     # Microsoft Visual C++.
9647     # hardcode_libdir_flag_spec is actually meaningless, as there is
9648     # no search path for DLLs.
9649 michael 5059 case $cc_basename in
9650     cl*)
9651     # Native MSVC
9652     hardcode_libdir_flag_spec=' '
9653     allow_undefined_flag=unsupported
9654     always_export_symbols=yes
9655     file_list_spec='@'
9656     # Tell ltmain to make .lib files, not .a files.
9657     libext=lib
9658     # Tell ltmain to make .dll files, not .so files.
9659     shrext_cmds=.dll
9660     # FIXME: Setting linknames here is a bad hack.
9661     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9662     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9663     cp "$export_symbols" "$output_objdir/$soname.def";
9664     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9665     else
9666     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9667     fi~
9668     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9669     linknames='
9670     # The linker will not automatically build a static lib if we build a DLL.
9671     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9672     enable_shared_with_static_runtimes=yes
9673     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9674     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9675     # Don't use ranlib
9676     old_postinstall_cmds='chmod 644 $oldlib'
9677     postlink_cmds='lt_outputfile="@OUTPUT@"~
9678     lt_tool_outputfile="@TOOL_OUTPUT@"~
9679     case $lt_outputfile in
9680     *.exe|*.EXE) ;;
9681     *)
9682     lt_outputfile=$lt_outputfile.exe
9683     lt_tool_outputfile=$lt_tool_outputfile.exe
9684     ;;
9685     esac~
9686     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9687     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9688     $RM "$lt_outputfile.manifest";
9689     fi'
9690     ;;
9691     *)
9692     # Assume MSVC wrapper
9693     hardcode_libdir_flag_spec=' '
9694     allow_undefined_flag=unsupported
9695     # Tell ltmain to make .lib files, not .a files.
9696     libext=lib
9697     # Tell ltmain to make .dll files, not .so files.
9698     shrext_cmds=.dll
9699     # FIXME: Setting linknames here is a bad hack.
9700     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9701     # The linker will automatically build a .lib file if we build a DLL.
9702     old_archive_from_new_cmds='true'
9703     # FIXME: Should let the user specify the lib program.
9704     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9705     enable_shared_with_static_runtimes=yes
9706     ;;
9707     esac
9708 michael 5052 ;;
9709    
9710     darwin* | rhapsody*)
9711 michael 5059
9712    
9713     archive_cmds_need_lc=no
9714     hardcode_direct=no
9715     hardcode_automatic=yes
9716     hardcode_shlibpath_var=unsupported
9717     if test yes = "$lt_cv_ld_force_load"; then
9718     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\"`'
9719    
9720     else
9721     whole_archive_flag_spec=''
9722     fi
9723     link_all_deplibs=yes
9724     allow_undefined_flag=$_lt_dar_allow_undefined
9725     case $cc_basename in
9726     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9727     *) _lt_dar_can_shared=$GCC ;;
9728     esac
9729     if test yes = "$_lt_dar_can_shared"; then
9730     output_verbose_link_cmd=func_echo_all
9731     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9732     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9733     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"
9734     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"
9735    
9736     else
9737     ld_shlibs=no
9738     fi
9739    
9740 michael 5052 ;;
9741    
9742     dgux*)
9743     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744     hardcode_libdir_flag_spec='-L$libdir'
9745     hardcode_shlibpath_var=no
9746     ;;
9747    
9748     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9749     # support. Future versions do this automatically, but an explicit c++rt0.o
9750     # does not break anything, and helps significantly (at the cost of a little
9751     # extra space).
9752     freebsd2.2*)
9753     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9754     hardcode_libdir_flag_spec='-R$libdir'
9755     hardcode_direct=yes
9756     hardcode_shlibpath_var=no
9757     ;;
9758    
9759     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9760 michael 5059 freebsd2.*)
9761 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9762     hardcode_direct=yes
9763     hardcode_minus_L=yes
9764     hardcode_shlibpath_var=no
9765     ;;
9766    
9767     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9768     freebsd* | dragonfly*)
9769 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9770 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9771     hardcode_direct=yes
9772     hardcode_shlibpath_var=no
9773     ;;
9774    
9775     hpux9*)
9776 michael 5059 if test yes = "$GCC"; then
9777     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'
9778 michael 5052 else
9779 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'
9780 michael 5052 fi
9781 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9782 michael 5052 hardcode_libdir_separator=:
9783     hardcode_direct=yes
9784    
9785     # hardcode_minus_L: Not really in the search PATH,
9786     # but as the default location of the library.
9787     hardcode_minus_L=yes
9788 michael 5059 export_dynamic_flag_spec='$wl-E'
9789 michael 5052 ;;
9790    
9791     hpux10*)
9792 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9793     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9794 michael 5052 else
9795     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9796     fi
9797 michael 5059 if test no = "$with_gnu_ld"; then
9798     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9799 michael 5052 hardcode_libdir_separator=:
9800     hardcode_direct=yes
9801 michael 5059 hardcode_direct_absolute=yes
9802     export_dynamic_flag_spec='$wl-E'
9803 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9804     # but as the default location of the library.
9805     hardcode_minus_L=yes
9806     fi
9807     ;;
9808    
9809     hpux11*)
9810 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9811 michael 5052 case $host_cpu in
9812     hppa*64*)
9813 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 michael 5052 ;;
9815     ia64*)
9816 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9817 michael 5052 ;;
9818     *)
9819 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 michael 5052 ;;
9821     esac
9822     else
9823     case $host_cpu in
9824     hppa*64*)
9825 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 michael 5052 ;;
9827     ia64*)
9828 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9829 michael 5052 ;;
9830     *)
9831 michael 5059
9832     # Older versions of the 11.00 compiler do not understand -b yet
9833     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9835     $as_echo_n "checking if $CC understands -b... " >&6; }
9836     if ${lt_cv_prog_compiler__b+:} false; then :
9837     $as_echo_n "(cached) " >&6
9838     else
9839     lt_cv_prog_compiler__b=no
9840     save_LDFLAGS=$LDFLAGS
9841     LDFLAGS="$LDFLAGS -b"
9842     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9843     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9844     # The linker can only warn and ignore the option if not recognized
9845     # So say no if there are warnings
9846     if test -s conftest.err; then
9847     # Append any errors to the config.log.
9848     cat conftest.err 1>&5
9849     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9850     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9851     if diff conftest.exp conftest.er2 >/dev/null; then
9852     lt_cv_prog_compiler__b=yes
9853     fi
9854     else
9855     lt_cv_prog_compiler__b=yes
9856     fi
9857     fi
9858     $RM -r conftest*
9859     LDFLAGS=$save_LDFLAGS
9860    
9861     fi
9862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9863     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9864    
9865     if test yes = "$lt_cv_prog_compiler__b"; then
9866     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867     else
9868     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869     fi
9870    
9871 michael 5052 ;;
9872     esac
9873     fi
9874 michael 5059 if test no = "$with_gnu_ld"; then
9875     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9876 michael 5052 hardcode_libdir_separator=:
9877    
9878     case $host_cpu in
9879     hppa*64*|ia64*)
9880     hardcode_direct=no
9881     hardcode_shlibpath_var=no
9882     ;;
9883     *)
9884     hardcode_direct=yes
9885 michael 5059 hardcode_direct_absolute=yes
9886     export_dynamic_flag_spec='$wl-E'
9887 michael 5052
9888     # hardcode_minus_L: Not really in the search PATH,
9889     # but as the default location of the library.
9890     hardcode_minus_L=yes
9891     ;;
9892     esac
9893     fi
9894     ;;
9895    
9896     irix5* | irix6* | nonstopux*)
9897 michael 5059 if test yes = "$GCC"; then
9898     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'
9899     # Try to use the -exported_symbol ld option, if it does not
9900     # work, assume that -exports_file does not work either and
9901     # implicitly export all symbols.
9902     # This should be the same for all languages, so no per-tag cache variable.
9903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9904     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9905     if ${lt_cv_irix_exported_symbol+:} false; then :
9906     $as_echo_n "(cached) " >&6
9907     else
9908     save_LDFLAGS=$LDFLAGS
9909     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911     /* end confdefs.h. */
9912     int foo (void) { return 0; }
9913     _ACEOF
9914     if ac_fn_c_try_link "$LINENO"; then :
9915     lt_cv_irix_exported_symbol=yes
9916     else
9917     lt_cv_irix_exported_symbol=no
9918     fi
9919     rm -f core conftest.err conftest.$ac_objext \
9920     conftest$ac_exeext conftest.$ac_ext
9921     LDFLAGS=$save_LDFLAGS
9922     fi
9923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9924     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9925     if test yes = "$lt_cv_irix_exported_symbol"; then
9926     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'
9927     fi
9928 michael 5052 else
9929 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'
9930     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'
9931 michael 5052 fi
9932 michael 5059 archive_cmds_need_lc='no'
9933     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9934 michael 5052 hardcode_libdir_separator=:
9935 michael 5059 inherit_rpath=yes
9936 michael 5052 link_all_deplibs=yes
9937     ;;
9938    
9939 michael 5059 linux*)
9940     case $cc_basename in
9941     tcc*)
9942     # Fabrice Bellard et al's Tiny C Compiler
9943     ld_shlibs=yes
9944     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9945     ;;
9946     esac
9947     ;;
9948    
9949     netbsd*)
9950     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9951 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9952     else
9953     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9954     fi
9955     hardcode_libdir_flag_spec='-R$libdir'
9956     hardcode_direct=yes
9957     hardcode_shlibpath_var=no
9958     ;;
9959    
9960     newsos6)
9961     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962     hardcode_direct=yes
9963 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9964 michael 5052 hardcode_libdir_separator=:
9965     hardcode_shlibpath_var=no
9966     ;;
9967    
9968 michael 5059 *nto* | *qnx*)
9969     ;;
9970    
9971     openbsd* | bitrig*)
9972     if test -f /usr/libexec/ld.so; then
9973     hardcode_direct=yes
9974     hardcode_shlibpath_var=no
9975     hardcode_direct_absolute=yes
9976     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9977     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9979     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9980     export_dynamic_flag_spec='$wl-E'
9981     else
9982     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9983     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9984     fi
9985 michael 5052 else
9986 michael 5059 ld_shlibs=no
9987 michael 5052 fi
9988     ;;
9989    
9990     os2*)
9991     hardcode_libdir_flag_spec='-L$libdir'
9992     hardcode_minus_L=yes
9993     allow_undefined_flag=unsupported
9994 michael 5059 shrext_cmds=.dll
9995     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9996     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9997     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9998     $ECHO EXPORTS >> $output_objdir/$libname.def~
9999     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10000     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10001     emximp -o $lib $output_objdir/$libname.def'
10002     archive_expsym_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     prefix_cmds="$SED"~
10007     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10008     prefix_cmds="$prefix_cmds -e 1d";
10009     fi~
10010     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10011     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10012     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10013     emximp -o $lib $output_objdir/$libname.def'
10014     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10015     enable_shared_with_static_runtimes=yes
10016 michael 5052 ;;
10017    
10018     osf3*)
10019 michael 5059 if test yes = "$GCC"; then
10020     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10021     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'
10022 michael 5052 else
10023     allow_undefined_flag=' -expect_unresolved \*'
10024 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'
10025 michael 5052 fi
10026 michael 5059 archive_cmds_need_lc='no'
10027     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10028 michael 5052 hardcode_libdir_separator=:
10029     ;;
10030    
10031     osf4* | osf5*) # as osf3* with the addition of -msym flag
10032 michael 5059 if test yes = "$GCC"; then
10033     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10034     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'
10035     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10036 michael 5052 else
10037     allow_undefined_flag=' -expect_unresolved \*'
10038 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'
10039     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~
10040     $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'
10041 michael 5052
10042     # Both c and cxx compiler support -rpath directly
10043     hardcode_libdir_flag_spec='-rpath $libdir'
10044     fi
10045 michael 5059 archive_cmds_need_lc='no'
10046 michael 5052 hardcode_libdir_separator=:
10047     ;;
10048    
10049     solaris*)
10050 michael 5059 no_undefined_flag=' -z defs'
10051     if test yes = "$GCC"; then
10052     wlarc='$wl'
10053     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10054     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055     $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'
10056 michael 5052 else
10057 michael 5059 case `$CC -V 2>&1` in
10058     *"Compilers 5.0"*)
10059     wlarc=''
10060     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10063     ;;
10064     *)
10065     wlarc='$wl'
10066     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10069     ;;
10070     esac
10071 michael 5052 fi
10072     hardcode_libdir_flag_spec='-R$libdir'
10073     hardcode_shlibpath_var=no
10074     case $host_os in
10075     solaris2.[0-5] | solaris2.[0-5].*) ;;
10076     *)
10077 michael 5059 # The compiler driver will combine and reorder linker options,
10078     # but understands '-z linker_flag'. GCC discards it without '$wl',
10079     # but is careful enough not to reorder.
10080     # Supported since Solaris 2.6 (maybe 2.5.1?)
10081     if test yes = "$GCC"; then
10082     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10083     else
10084     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10085     fi
10086     ;;
10087 michael 5052 esac
10088     link_all_deplibs=yes
10089     ;;
10090    
10091     sunos4*)
10092 michael 5059 if test sequent = "$host_vendor"; then
10093 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10094     # files that make .init and .fini sections work.
10095 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096 michael 5052 else
10097     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10098     fi
10099     hardcode_libdir_flag_spec='-L$libdir'
10100     hardcode_direct=yes
10101     hardcode_minus_L=yes
10102     hardcode_shlibpath_var=no
10103     ;;
10104    
10105     sysv4)
10106     case $host_vendor in
10107     sni)
10108     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109     hardcode_direct=yes # is this really true???
10110     ;;
10111     siemens)
10112     ## LD is ld it makes a PLAMLIB
10113     ## CC just makes a GrossModule.
10114     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10115     reload_cmds='$CC -r -o $output$reload_objs'
10116     hardcode_direct=no
10117     ;;
10118     motorola)
10119     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10121     ;;
10122     esac
10123     runpath_var='LD_RUN_PATH'
10124     hardcode_shlibpath_var=no
10125     ;;
10126    
10127     sysv4.3*)
10128     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129     hardcode_shlibpath_var=no
10130     export_dynamic_flag_spec='-Bexport'
10131     ;;
10132    
10133     sysv4*MP*)
10134     if test -d /usr/nec; then
10135     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136     hardcode_shlibpath_var=no
10137     runpath_var=LD_RUN_PATH
10138     hardcode_runpath_var=yes
10139     ld_shlibs=yes
10140     fi
10141     ;;
10142    
10143 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10144     no_undefined_flag='$wl-z,text'
10145 michael 5052 archive_cmds_need_lc=no
10146     hardcode_shlibpath_var=no
10147     runpath_var='LD_RUN_PATH'
10148    
10149 michael 5059 if test yes = "$GCC"; then
10150     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 michael 5052 else
10153 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 michael 5052 fi
10156     ;;
10157    
10158     sysv5* | sco3.2v5* | sco5v6*)
10159 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10160 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10161     # always be unresolved, which means just about no library would
10162     # ever link correctly. If we're not using GNU ld we use -z text
10163     # though, which does catch some bad symbols but isn't as heavy-handed
10164     # as -z defs.
10165 michael 5059 no_undefined_flag='$wl-z,text'
10166     allow_undefined_flag='$wl-z,nodefs'
10167 michael 5052 archive_cmds_need_lc=no
10168     hardcode_shlibpath_var=no
10169 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10170 michael 5052 hardcode_libdir_separator=':'
10171     link_all_deplibs=yes
10172 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10173 michael 5052 runpath_var='LD_RUN_PATH'
10174    
10175 michael 5059 if test yes = "$GCC"; then
10176     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 michael 5052 else
10179 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 michael 5052 fi
10182     ;;
10183    
10184     uts4*)
10185     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186     hardcode_libdir_flag_spec='-L$libdir'
10187     hardcode_shlibpath_var=no
10188     ;;
10189    
10190     *)
10191     ld_shlibs=no
10192     ;;
10193     esac
10194 michael 5059
10195     if test sni = "$host_vendor"; then
10196     case $host in
10197     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10198     export_dynamic_flag_spec='$wl-Blargedynsym'
10199     ;;
10200     esac
10201     fi
10202 michael 5052 fi
10203    
10204 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10205     $as_echo "$ld_shlibs" >&6; }
10206     test no = "$ld_shlibs" && can_build_shared=no
10207 michael 5052
10208 michael 5059 with_gnu_ld=$with_gnu_ld
10209    
10210    
10211    
10212    
10213    
10214    
10215    
10216    
10217    
10218    
10219    
10220    
10221    
10222    
10223    
10224 michael 5052 #
10225     # Do we need to explicitly link libc?
10226     #
10227     case "x$archive_cmds_need_lc" in
10228     x|xyes)
10229     # Assume -lc should be added
10230     archive_cmds_need_lc=yes
10231    
10232 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10233 michael 5052 case $archive_cmds in
10234     *'~'*)
10235     # FIXME: we may have to deal with multi-command sequences.
10236     ;;
10237     '$CC '*)
10238     # Test whether the compiler implicitly links with -lc since on some
10239     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10240     # to ld, don't add -lc before -lgcc.
10241 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10242     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10243     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10244     $as_echo_n "(cached) " >&6
10245     else
10246     $RM conftest*
10247     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248 michael 5052
10249 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10250 michael 5052 (eval $ac_compile) 2>&5
10251     ac_status=$?
10252 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253     test $ac_status = 0; } 2>conftest.err; then
10254     soname=conftest
10255     lib=conftest
10256     libobjs=conftest.$ac_objext
10257     deplibs=
10258     wl=$lt_prog_compiler_wl
10259     pic_flag=$lt_prog_compiler_pic
10260     compiler_flags=-v
10261     linker_flags=-v
10262     verstring=
10263     output_objdir=.
10264     libname=conftest
10265     lt_save_allow_undefined_flag=$allow_undefined_flag
10266     allow_undefined_flag=
10267     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10268     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10269 michael 5052 ac_status=$?
10270 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10271     test $ac_status = 0; }
10272     then
10273     lt_cv_archive_cmds_need_lc=no
10274     else
10275     lt_cv_archive_cmds_need_lc=yes
10276     fi
10277     allow_undefined_flag=$lt_save_allow_undefined_flag
10278     else
10279     cat conftest.err 1>&5
10280     fi
10281     $RM conftest*
10282    
10283     fi
10284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10285     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10286     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10287 michael 5052 ;;
10288     esac
10289     fi
10290     ;;
10291     esac
10292    
10293 michael 5059
10294    
10295    
10296    
10297    
10298    
10299    
10300    
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10445     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10446    
10447     if test yes = "$GCC"; then
10448     case $host_os in
10449     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10450     *) lt_awk_arg='/^libraries:/' ;;
10451     esac
10452     case $host_os in
10453     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10454     *) lt_sed_strip_eq='s|=/|/|g' ;;
10455     esac
10456     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10457     case $lt_search_path_spec in
10458     *\;*)
10459     # if the path contains ";" then we assume it to be the separator
10460     # otherwise default to the standard path separator (i.e. ":") - it is
10461     # assumed that no part of a normal pathname contains ";" but that should
10462     # okay in the real world where ";" in dirpaths is itself problematic.
10463     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10464     ;;
10465     *)
10466     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10467     ;;
10468     esac
10469     # Ok, now we have the path, separated by spaces, we can step through it
10470     # and add multilib dir if necessary...
10471     lt_tmp_lt_search_path_spec=
10472     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10473     # ...but if some path component already ends with the multilib dir we assume
10474     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10475     case "$lt_multi_os_dir; $lt_search_path_spec " in
10476     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10477     lt_multi_os_dir=
10478     ;;
10479     esac
10480     for lt_sys_path in $lt_search_path_spec; do
10481     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10482     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10483     elif test -n "$lt_multi_os_dir"; then
10484     test -d "$lt_sys_path" && \
10485     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10486     fi
10487     done
10488     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10489     BEGIN {RS = " "; FS = "/|\n";} {
10490     lt_foo = "";
10491     lt_count = 0;
10492     for (lt_i = NF; lt_i > 0; lt_i--) {
10493     if ($lt_i != "" && $lt_i != ".") {
10494     if ($lt_i == "..") {
10495     lt_count++;
10496     } else {
10497     if (lt_count == 0) {
10498     lt_foo = "/" $lt_i lt_foo;
10499     } else {
10500     lt_count--;
10501     }
10502     }
10503     }
10504     }
10505     if (lt_foo != "") { lt_freq[lt_foo]++; }
10506     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10507     }'`
10508     # AWK program above erroneously prepends '/' to C:/dos/paths
10509     # for these hosts.
10510     case $host_os in
10511     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10512     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10513     esac
10514     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10515     else
10516     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10517     fi
10518 michael 5052 library_names_spec=
10519     libname_spec='lib$name'
10520     soname_spec=
10521 michael 5059 shrext_cmds=.so
10522 michael 5052 postinstall_cmds=
10523     postuninstall_cmds=
10524     finish_cmds=
10525     finish_eval=
10526     shlibpath_var=
10527     shlibpath_overrides_runpath=unknown
10528     version_type=none
10529     dynamic_linker="$host_os ld.so"
10530     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10531     need_lib_prefix=unknown
10532     hardcode_into_libs=no
10533    
10534     # when you set need_version to no, make sure it does not cause -set_version
10535     # flags to be left without arguments
10536     need_version=unknown
10537    
10538 michael 5433
10539    
10540 michael 5052 case $host_os in
10541     aix3*)
10542 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10543     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10544 michael 5052 shlibpath_var=LIBPATH
10545    
10546     # AIX 3 has no versioning support, so we append a major version to the name.
10547 michael 5059 soname_spec='$libname$release$shared_ext$major'
10548 michael 5052 ;;
10549    
10550 michael 5059 aix[4-9]*)
10551     version_type=linux # correct to gnu/linux during the next big refactor
10552 michael 5052 need_lib_prefix=no
10553     need_version=no
10554     hardcode_into_libs=yes
10555 michael 5059 if test ia64 = "$host_cpu"; then
10556 michael 5052 # AIX 5 supports IA64
10557 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10558 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10559     else
10560     # With GCC up to 2.95.x, collect2 would create an import file
10561     # for dependence libraries. The import file would start with
10562 michael 5059 # the line '#! .'. This would cause the generated library to
10563     # depend on '.', always an invalid library. This was fixed in
10564 michael 5052 # development snapshots of GCC prior to 3.0.
10565     case $host_os in
10566     aix4 | aix4.[01] | aix4.[01].*)
10567     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10568     echo ' yes '
10569 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10570 michael 5052 :
10571     else
10572     can_build_shared=no
10573     fi
10574     ;;
10575     esac
10576 michael 5059 # Using Import Files as archive members, it is possible to support
10577     # filename-based versioning of shared library archives on AIX. While
10578     # this would work for both with and without runtime linking, it will
10579     # prevent static linking of such archives. So we do filename-based
10580     # shared library versioning with .so extension only, which is used
10581     # when both runtime linking and shared linking is enabled.
10582     # Unfortunately, runtime linking may impact performance, so we do
10583     # not want this to be the default eventually. Also, we use the
10584     # versioned .so libs for executables only if there is the -brtl
10585     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10586     # To allow for filename-based versioning support, we need to create
10587     # libNAME.so.V as an archive file, containing:
10588     # *) an Import File, referring to the versioned filename of the
10589     # archive as well as the shared archive member, telling the
10590     # bitwidth (32 or 64) of that shared object, and providing the
10591     # list of exported symbols of that shared object, eventually
10592     # decorated with the 'weak' keyword
10593     # *) the shared object with the F_LOADONLY flag set, to really avoid
10594     # it being seen by the linker.
10595     # At run time we better use the real file rather than another symlink,
10596     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10597    
10598     case $with_aix_soname,$aix_use_runtimelinking in
10599     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10600 michael 5052 # soname into executable. Probably we can add versioning support to
10601     # collect2, so additional links can be useful in future.
10602 michael 5059 aix,yes) # traditional libtool
10603     dynamic_linker='AIX unversionable lib.so'
10604 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10605     # instead of lib<name>.a to let people know that these are not
10606     # typical AIX shared libraries.
10607 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10608     ;;
10609     aix,no) # traditional AIX only
10610     dynamic_linker='AIX lib.a(lib.so.V)'
10611 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10612     # and later when we are not doing run time linking.
10613 michael 5059 library_names_spec='$libname$release.a $libname.a'
10614     soname_spec='$libname$release$shared_ext$major'
10615     ;;
10616     svr4,*) # full svr4 only
10617     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10618     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10619     # We do not specify a path in Import Files, so LIBPATH fires.
10620     shlibpath_overrides_runpath=yes
10621     ;;
10622     *,yes) # both, prefer svr4
10623     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10624     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10625     # unpreferred sharedlib libNAME.a needs extra handling
10626     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"'
10627     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"'
10628     # We do not specify a path in Import Files, so LIBPATH fires.
10629     shlibpath_overrides_runpath=yes
10630     ;;
10631     *,no) # both, prefer aix
10632     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10633     library_names_spec='$libname$release.a $libname.a'
10634     soname_spec='$libname$release$shared_ext$major'
10635     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10636     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)'
10637     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"'
10638     ;;
10639     esac
10640 michael 5052 shlibpath_var=LIBPATH
10641     fi
10642     ;;
10643    
10644     amigaos*)
10645 michael 5059 case $host_cpu in
10646     powerpc)
10647     # Since July 2007 AmigaOS4 officially supports .so libraries.
10648     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10649     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10650     ;;
10651     m68k)
10652     library_names_spec='$libname.ixlibrary $libname.a'
10653     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10654     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'
10655     ;;
10656     esac
10657 michael 5052 ;;
10658    
10659     beos*)
10660 michael 5059 library_names_spec='$libname$shared_ext'
10661 michael 5052 dynamic_linker="$host_os ld.so"
10662     shlibpath_var=LIBRARY_PATH
10663     ;;
10664    
10665     bsdi[45]*)
10666 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10667 michael 5052 need_version=no
10668 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10669     soname_spec='$libname$release$shared_ext$major'
10670 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10671     shlibpath_var=LD_LIBRARY_PATH
10672     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10673     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10674     # the default ld.so.conf also contains /usr/contrib/lib and
10675     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10676     # libtool to hard-code these into programs
10677     ;;
10678    
10679 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10680 michael 5052 version_type=windows
10681 michael 5059 shrext_cmds=.dll
10682 michael 5052 need_version=no
10683     need_lib_prefix=no
10684    
10685 michael 5059 case $GCC,$cc_basename in
10686     yes,*)
10687     # gcc
10688 michael 5052 library_names_spec='$libname.dll.a'
10689     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10690 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10691     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10692 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10693     test -d \$dldir || mkdir -p \$dldir~
10694     $install_prog $dir/$dlname \$dldir/$dlname~
10695 michael 5059 chmod a+x \$dldir/$dlname~
10696     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10697     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10698     fi'
10699 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10700     dlpath=$dir/\$dldll~
10701 michael 5059 $RM \$dlpath'
10702 michael 5052 shlibpath_overrides_runpath=yes
10703    
10704     case $host_os in
10705     cygwin*)
10706     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10707 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10708    
10709     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10710 michael 5052 ;;
10711 michael 5059 mingw* | cegcc*)
10712 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10713 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10714 michael 5052 ;;
10715     pw32*)
10716     # pw32 DLLs use 'pw' prefix rather than 'lib'
10717 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10718 michael 5052 ;;
10719     esac
10720 michael 5059 dynamic_linker='Win32 ld.exe'
10721 michael 5052 ;;
10722    
10723 michael 5059 *,cl*)
10724     # Native MSVC
10725     libname_spec='$name'
10726     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10727     library_names_spec='$libname.dll.lib'
10728    
10729     case $build_os in
10730     mingw*)
10731     sys_lib_search_path_spec=
10732     lt_save_ifs=$IFS
10733     IFS=';'
10734     for lt_path in $LIB
10735     do
10736     IFS=$lt_save_ifs
10737     # Let DOS variable expansion print the short 8.3 style file name.
10738     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10739     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10740     done
10741     IFS=$lt_save_ifs
10742     # Convert to MSYS style.
10743     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10744     ;;
10745     cygwin*)
10746     # Convert to unix form, then to dos form, then back to unix form
10747     # but this time dos style (no spaces!) so that the unix form looks
10748     # like /cygdrive/c/PROGRA~1:/cygdr...
10749     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10750     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10751     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10752     ;;
10753     *)
10754     sys_lib_search_path_spec=$LIB
10755     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10756     # It is most probably a Windows format PATH.
10757     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10758     else
10759     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10760     fi
10761     # FIXME: find the short name or the path components, as spaces are
10762     # common. (e.g. "Program Files" -> "PROGRA~1")
10763     ;;
10764     esac
10765    
10766     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10767     postinstall_cmds='base_file=`basename \$file`~
10768     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10769     dldir=$destdir/`dirname \$dlpath`~
10770     test -d \$dldir || mkdir -p \$dldir~
10771     $install_prog $dir/$dlname \$dldir/$dlname'
10772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10773     dlpath=$dir/\$dldll~
10774     $RM \$dlpath'
10775     shlibpath_overrides_runpath=yes
10776     dynamic_linker='Win32 link.exe'
10777     ;;
10778    
10779 michael 5052 *)
10780 michael 5059 # Assume MSVC wrapper
10781     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10782     dynamic_linker='Win32 ld.exe'
10783 michael 5052 ;;
10784     esac
10785     # FIXME: first we should search . and the directory the executable is in
10786     shlibpath_var=PATH
10787     ;;
10788    
10789     darwin* | rhapsody*)
10790     dynamic_linker="$host_os dyld"
10791     version_type=darwin
10792     need_lib_prefix=no
10793     need_version=no
10794 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10795     soname_spec='$libname$release$major$shared_ext'
10796 michael 5052 shlibpath_overrides_runpath=yes
10797     shlibpath_var=DYLD_LIBRARY_PATH
10798     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10799 michael 5059
10800     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10801 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10802     ;;
10803    
10804     dgux*)
10805 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10806 michael 5052 need_lib_prefix=no
10807     need_version=no
10808 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10809     soname_spec='$libname$release$shared_ext$major'
10810 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10811     ;;
10812    
10813     freebsd* | dragonfly*)
10814     # DragonFly does not have aout. When/if they implement a new
10815     # versioning mechanism, adjust this.
10816     if test -x /usr/bin/objformat; then
10817     objformat=`/usr/bin/objformat`
10818     else
10819     case $host_os in
10820 michael 5059 freebsd[23].*) objformat=aout ;;
10821 michael 5052 *) objformat=elf ;;
10822     esac
10823     fi
10824     version_type=freebsd-$objformat
10825     case $version_type in
10826     freebsd-elf*)
10827 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10828 michael 5433 soname_spec='$libname$release$shared_ext$major'
10829 michael 5052 need_version=no
10830     need_lib_prefix=no
10831     ;;
10832     freebsd-*)
10833 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10834 michael 5052 need_version=yes
10835     ;;
10836     esac
10837     shlibpath_var=LD_LIBRARY_PATH
10838     case $host_os in
10839 michael 5059 freebsd2.*)
10840 michael 5052 shlibpath_overrides_runpath=yes
10841     ;;
10842     freebsd3.[01]* | freebsdelf3.[01]*)
10843     shlibpath_overrides_runpath=yes
10844     hardcode_into_libs=yes
10845     ;;
10846     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10847     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10848     shlibpath_overrides_runpath=no
10849     hardcode_into_libs=yes
10850     ;;
10851 michael 5059 *) # from 4.6 on, and DragonFly
10852 michael 5052 shlibpath_overrides_runpath=yes
10853     hardcode_into_libs=yes
10854     ;;
10855     esac
10856     ;;
10857    
10858 michael 5059 haiku*)
10859     version_type=linux # correct to gnu/linux during the next big refactor
10860 michael 5052 need_lib_prefix=no
10861     need_version=no
10862 michael 5059 dynamic_linker="$host_os runtime_loader"
10863     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864     soname_spec='$libname$release$shared_ext$major'
10865     shlibpath_var=LIBRARY_PATH
10866     shlibpath_overrides_runpath=no
10867     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10868 michael 5052 hardcode_into_libs=yes
10869     ;;
10870    
10871     hpux9* | hpux10* | hpux11*)
10872     # Give a soname corresponding to the major version so that dld.sl refuses to
10873     # link against other versions.
10874     version_type=sunos
10875     need_lib_prefix=no
10876     need_version=no
10877     case $host_cpu in
10878     ia64*)
10879     shrext_cmds='.so'
10880     hardcode_into_libs=yes
10881     dynamic_linker="$host_os dld.so"
10882     shlibpath_var=LD_LIBRARY_PATH
10883     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10885     soname_spec='$libname$release$shared_ext$major'
10886     if test 32 = "$HPUX_IA64_MODE"; then
10887 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10888 michael 5433 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10889 michael 5052 else
10890     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10891 michael 5433 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10892 michael 5052 fi
10893     ;;
10894 michael 5059 hppa*64*)
10895 michael 5052 shrext_cmds='.sl'
10896 michael 5059 hardcode_into_libs=yes
10897 michael 5052 dynamic_linker="$host_os dld.sl"
10898 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10900     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10901     soname_spec='$libname$release$shared_ext$major'
10902     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10903     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10904     ;;
10905     *)
10906     shrext_cmds='.sl'
10907     dynamic_linker="$host_os dld.sl"
10908 michael 5052 shlibpath_var=SHLIB_PATH
10909     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10910 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10911     soname_spec='$libname$release$shared_ext$major'
10912 michael 5052 ;;
10913     esac
10914 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10915 michael 5052 postinstall_cmds='chmod 555 $lib'
10916 michael 5059 # or fails outright, so override atomically:
10917     install_override_mode=555
10918 michael 5052 ;;
10919    
10920 michael 5059 interix[3-9]*)
10921     version_type=linux # correct to gnu/linux during the next big refactor
10922 michael 5052 need_lib_prefix=no
10923     need_version=no
10924 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925     soname_spec='$libname$release$shared_ext$major'
10926 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10927     shlibpath_var=LD_LIBRARY_PATH
10928     shlibpath_overrides_runpath=no
10929     hardcode_into_libs=yes
10930     ;;
10931    
10932     irix5* | irix6* | nonstopux*)
10933     case $host_os in
10934     nonstopux*) version_type=nonstopux ;;
10935     *)
10936 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10937     version_type=linux # correct to gnu/linux during the next big refactor
10938 michael 5052 else
10939     version_type=irix
10940     fi ;;
10941     esac
10942     need_lib_prefix=no
10943     need_version=no
10944 michael 5059 soname_spec='$libname$release$shared_ext$major'
10945     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10946 michael 5052 case $host_os in
10947     irix5* | nonstopux*)
10948     libsuff= shlibsuff=
10949     ;;
10950     *)
10951     case $LD in # libtool.m4 will add one of these switches to LD
10952     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10953     libsuff= shlibsuff= libmagic=32-bit;;
10954     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10955     libsuff=32 shlibsuff=N32 libmagic=N32;;
10956     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10957     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10958     *) libsuff= shlibsuff= libmagic=never-match;;
10959     esac
10960     ;;
10961     esac
10962     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10963     shlibpath_overrides_runpath=no
10964 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10965     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10966 michael 5052 hardcode_into_libs=yes
10967     ;;
10968    
10969     # No shared lib support for Linux oldld, aout, or coff.
10970     linux*oldld* | linux*aout* | linux*coff*)
10971     dynamic_linker=no
10972     ;;
10973    
10974 michael 5059 linux*android*)
10975     version_type=none # Android doesn't support versioned libraries.
10976 michael 5052 need_lib_prefix=no
10977     need_version=no
10978 michael 5059 library_names_spec='$libname$release$shared_ext'
10979     soname_spec='$libname$release$shared_ext'
10980     finish_cmds=
10981     shlibpath_var=LD_LIBRARY_PATH
10982     shlibpath_overrides_runpath=yes
10983    
10984     # This implies no fast_install, which is unacceptable.
10985     # Some rework will be needed to allow for fast_install
10986     # before this can be enabled.
10987     hardcode_into_libs=yes
10988    
10989     dynamic_linker='Android linker'
10990     # Don't embed -rpath directories since the linker doesn't support them.
10991     hardcode_libdir_flag_spec='-L$libdir'
10992     ;;
10993    
10994     # This must be glibc/ELF.
10995     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10996     version_type=linux # correct to gnu/linux during the next big refactor
10997     need_lib_prefix=no
10998     need_version=no
10999     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11000     soname_spec='$libname$release$shared_ext$major'
11001 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11002     shlibpath_var=LD_LIBRARY_PATH
11003     shlibpath_overrides_runpath=no
11004 michael 5059
11005     # Some binutils ld are patched to set DT_RUNPATH
11006     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11007     $as_echo_n "(cached) " >&6
11008     else
11009     lt_cv_shlibpath_overrides_runpath=no
11010     save_LDFLAGS=$LDFLAGS
11011     save_libdir=$libdir
11012     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11013     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11014     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015     /* end confdefs.h. */
11016    
11017     int
11018     main ()
11019     {
11020    
11021     ;
11022     return 0;
11023     }
11024     _ACEOF
11025     if ac_fn_c_try_link "$LINENO"; then :
11026     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11027     lt_cv_shlibpath_overrides_runpath=yes
11028     fi
11029     fi
11030     rm -f core conftest.err conftest.$ac_objext \
11031     conftest$ac_exeext conftest.$ac_ext
11032     LDFLAGS=$save_LDFLAGS
11033     libdir=$save_libdir
11034    
11035     fi
11036    
11037     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11038    
11039 michael 5052 # This implies no fast_install, which is unacceptable.
11040     # Some rework will be needed to allow for fast_install
11041     # before this can be enabled.
11042     hardcode_into_libs=yes
11043    
11044 michael 5433 # Ideally, we could use ldconfig to report *all* directores which are
11045     # searched for libraries, however this is still not possible. Aside from not
11046     # being certain /sbin/ldconfig is available, command
11047     # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11048     # even though it is searched at run-time. Try to do the best guess by
11049     # appending ld.so.conf contents (and includes) to the search path.
11050 michael 5052 if test -f /etc/ld.so.conf; then
11051 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' ' '`
11052 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11053     fi
11054    
11055     # We used to test for /lib/ld.so.1 and disable shared libraries on
11056     # powerpc, because MkLinux only supported shared libraries with the
11057     # GNU dynamic linker. Since this was broken with cross compilers,
11058     # most powerpc-linux boxes support dynamic linking these days and
11059     # people can always --disable-shared, the test was removed, and we
11060     # assume the GNU/Linux dynamic linker is in use.
11061     dynamic_linker='GNU/Linux ld.so'
11062     ;;
11063    
11064     netbsd*)
11065     version_type=sunos
11066     need_lib_prefix=no
11067     need_version=no
11068 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11069     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11070 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11071     dynamic_linker='NetBSD (a.out) ld.so'
11072     else
11073 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11074     soname_spec='$libname$release$shared_ext$major'
11075 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11076     fi
11077     shlibpath_var=LD_LIBRARY_PATH
11078     shlibpath_overrides_runpath=yes
11079     hardcode_into_libs=yes
11080     ;;
11081    
11082     newsos6)
11083 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11084     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11085 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11086     shlibpath_overrides_runpath=yes
11087     ;;
11088    
11089 michael 5059 *nto* | *qnx*)
11090     version_type=qnx
11091 michael 5052 need_lib_prefix=no
11092     need_version=no
11093 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11094     soname_spec='$libname$release$shared_ext$major'
11095 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11096 michael 5059 shlibpath_overrides_runpath=no
11097     hardcode_into_libs=yes
11098     dynamic_linker='ldqnx.so'
11099 michael 5052 ;;
11100    
11101 michael 5059 openbsd* | bitrig*)
11102 michael 5052 version_type=sunos
11103 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11104 michael 5052 need_lib_prefix=no
11105 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11106     need_version=no
11107     else
11108     need_version=yes
11109     fi
11110     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11111 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11112     shlibpath_var=LD_LIBRARY_PATH
11113 michael 5059 shlibpath_overrides_runpath=yes
11114 michael 5052 ;;
11115    
11116     os2*)
11117     libname_spec='$name'
11118 michael 5059 version_type=windows
11119     shrext_cmds=.dll
11120     need_version=no
11121 michael 5052 need_lib_prefix=no
11122 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11123     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11124     v=$($ECHO $release$versuffix | tr -d .-);
11125     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11126     $ECHO $n$v`$shared_ext'
11127     library_names_spec='${libname}_dll.$libext'
11128 michael 5052 dynamic_linker='OS/2 ld.exe'
11129 michael 5059 shlibpath_var=BEGINLIBPATH
11130     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11131     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11132     postinstall_cmds='base_file=`basename \$file`~
11133     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11134     dldir=$destdir/`dirname \$dlpath`~
11135     test -d \$dldir || mkdir -p \$dldir~
11136     $install_prog $dir/$dlname \$dldir/$dlname~
11137     chmod a+x \$dldir/$dlname~
11138     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11139     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11140     fi'
11141     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11142     dlpath=$dir/\$dldll~
11143     $RM \$dlpath'
11144 michael 5052 ;;
11145    
11146     osf3* | osf4* | osf5*)
11147     version_type=osf
11148     need_lib_prefix=no
11149     need_version=no
11150 michael 5059 soname_spec='$libname$release$shared_ext$major'
11151     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11152 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11153     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11155 michael 5052 ;;
11156    
11157 michael 5059 rdos*)
11158     dynamic_linker=no
11159     ;;
11160    
11161 michael 5052 solaris*)
11162 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11163 michael 5052 need_lib_prefix=no
11164     need_version=no
11165 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11166     soname_spec='$libname$release$shared_ext$major'
11167 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11168     shlibpath_overrides_runpath=yes
11169     hardcode_into_libs=yes
11170     # ldd complains unless libraries are executable
11171     postinstall_cmds='chmod +x $lib'
11172     ;;
11173    
11174     sunos4*)
11175     version_type=sunos
11176 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11177 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11178     shlibpath_var=LD_LIBRARY_PATH
11179     shlibpath_overrides_runpath=yes
11180 michael 5059 if test yes = "$with_gnu_ld"; then
11181 michael 5052 need_lib_prefix=no
11182     fi
11183     need_version=yes
11184     ;;
11185    
11186     sysv4 | sysv4.3*)
11187 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11188     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189     soname_spec='$libname$release$shared_ext$major'
11190 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11191     case $host_vendor in
11192     sni)
11193     shlibpath_overrides_runpath=no
11194     need_lib_prefix=no
11195     runpath_var=LD_RUN_PATH
11196     ;;
11197     siemens)
11198     need_lib_prefix=no
11199     ;;
11200     motorola)
11201     need_lib_prefix=no
11202     need_version=no
11203     shlibpath_overrides_runpath=no
11204     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11205     ;;
11206     esac
11207     ;;
11208    
11209     sysv4*MP*)
11210 michael 5059 if test -d /usr/nec; then
11211     version_type=linux # correct to gnu/linux during the next big refactor
11212     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11213     soname_spec='$libname$shared_ext.$major'
11214 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11215     fi
11216     ;;
11217    
11218     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11219 michael 5059 version_type=sco
11220 michael 5052 need_lib_prefix=no
11221     need_version=no
11222 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11223     soname_spec='$libname$release$shared_ext$major'
11224 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11225 michael 5059 shlibpath_overrides_runpath=yes
11226 michael 5052 hardcode_into_libs=yes
11227 michael 5059 if test yes = "$with_gnu_ld"; then
11228 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11229     else
11230     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11231     case $host_os in
11232     sco3.2v5*)
11233     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11234     ;;
11235     esac
11236     fi
11237     sys_lib_dlsearch_path_spec='/usr/lib'
11238     ;;
11239    
11240 michael 5059 tpf*)
11241     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11242     version_type=linux # correct to gnu/linux during the next big refactor
11243     need_lib_prefix=no
11244     need_version=no
11245     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246     shlibpath_var=LD_LIBRARY_PATH
11247     shlibpath_overrides_runpath=no
11248     hardcode_into_libs=yes
11249     ;;
11250    
11251 michael 5052 uts4*)
11252 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11253     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11254     soname_spec='$libname$release$shared_ext$major'
11255 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11256     ;;
11257    
11258     *)
11259     dynamic_linker=no
11260     ;;
11261     esac
11262 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11263     $as_echo "$dynamic_linker" >&6; }
11264     test no = "$dynamic_linker" && can_build_shared=no
11265 michael 5052
11266     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11267 michael 5059 if test yes = "$GCC"; then
11268 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11269     fi
11270    
11271 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11272     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11273     fi
11274 michael 5433
11275 michael 5059 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11276     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11277     fi
11278    
11279 michael 5860 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11280     configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11281 michael 5059
11282 michael 5860 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11283 michael 5433 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11284 michael 5059
11285 michael 5860 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11286     configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11287 michael 5059
11288    
11289    
11290    
11291    
11292    
11293    
11294    
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 michael 5433
11377    
11378 michael 5860
11379    
11380    
11381    
11382    
11383    
11384 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11385     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11386 michael 5052 hardcode_action=
11387 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11388     test -n "$runpath_var" ||
11389     test yes = "$hardcode_automatic"; then
11390 michael 5052
11391 michael 5059 # We can hardcode non-existent directories.
11392     if test no != "$hardcode_direct" &&
11393 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11394     # have to relink, otherwise we might link with an installed library
11395     # when we should be linking with a yet-to-be-installed one
11396 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11397     test no != "$hardcode_minus_L"; then
11398 michael 5052 # Linking always hardcodes the temporary library directory.
11399     hardcode_action=relink
11400     else
11401     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11402     hardcode_action=immediate
11403     fi
11404     else
11405     # We cannot hardcode anything, or else we can only hardcode existing
11406     # directories.
11407     hardcode_action=unsupported
11408     fi
11409 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11410     $as_echo "$hardcode_action" >&6; }
11411 michael 5052
11412 michael 5059 if test relink = "$hardcode_action" ||
11413     test yes = "$inherit_rpath"; then
11414 michael 5052 # Fast installation is not supported
11415     enable_fast_install=no
11416 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11417     test no = "$enable_shared"; then
11418 michael 5052 # Fast installation is not necessary
11419     enable_fast_install=needless
11420     fi
11421    
11422    
11423 michael 5059
11424    
11425    
11426    
11427     if test yes != "$enable_dlopen"; then
11428 michael 5052 enable_dlopen=unknown
11429     enable_dlopen_self=unknown
11430     enable_dlopen_self_static=unknown
11431     else
11432     lt_cv_dlopen=no
11433     lt_cv_dlopen_libs=
11434    
11435     case $host_os in
11436     beos*)
11437 michael 5059 lt_cv_dlopen=load_add_on
11438 michael 5052 lt_cv_dlopen_libs=
11439     lt_cv_dlopen_self=yes
11440     ;;
11441    
11442 michael 5059 mingw* | pw32* | cegcc*)
11443     lt_cv_dlopen=LoadLibrary
11444 michael 5052 lt_cv_dlopen_libs=
11445 michael 5059 ;;
11446 michael 5052
11447     cygwin*)
11448 michael 5059 lt_cv_dlopen=dlopen
11449 michael 5052 lt_cv_dlopen_libs=
11450 michael 5059 ;;
11451 michael 5052
11452     darwin*)
11453 michael 5059 # if libdl is installed we need to link against it
11454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11455     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11456     if ${ac_cv_lib_dl_dlopen+:} false; then :
11457     $as_echo_n "(cached) " >&6
11458 michael 5052 else
11459     ac_check_lib_save_LIBS=$LIBS
11460     LIBS="-ldl $LIBS"
11461 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 michael 5052 /* end confdefs.h. */
11463    
11464     /* Override any GCC internal prototype to avoid an error.
11465     Use char because int might match the return type of a GCC
11466     builtin and then its argument prototype would still apply. */
11467     #ifdef __cplusplus
11468     extern "C"
11469     #endif
11470     char dlopen ();
11471     int
11472     main ()
11473     {
11474     return dlopen ();
11475     ;
11476     return 0;
11477     }
11478     _ACEOF
11479 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11480 michael 5052 ac_cv_lib_dl_dlopen=yes
11481     else
11482 michael 5059 ac_cv_lib_dl_dlopen=no
11483 michael 5052 fi
11484     rm -f core conftest.err conftest.$ac_objext \
11485 michael 5059 conftest$ac_exeext conftest.$ac_ext
11486 michael 5052 LIBS=$ac_check_lib_save_LIBS
11487     fi
11488 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11489     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11490     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11491     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11492 michael 5052 else
11493    
11494 michael 5059 lt_cv_dlopen=dyld
11495 michael 5052 lt_cv_dlopen_libs=
11496     lt_cv_dlopen_self=yes
11497    
11498     fi
11499    
11500 michael 5059 ;;
11501 michael 5052
11502 michael 5059 tpf*)
11503     # Don't try to run any link tests for TPF. We know it's impossible
11504     # because TPF is a cross-compiler, and we know how we open DSOs.
11505     lt_cv_dlopen=dlopen
11506     lt_cv_dlopen_libs=
11507     lt_cv_dlopen_self=no
11508     ;;
11509    
11510 michael 5052 *)
11511 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11512     if test "x$ac_cv_func_shl_load" = xyes; then :
11513     lt_cv_dlopen=shl_load
11514 michael 5052 else
11515 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11516     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11517     if ${ac_cv_lib_dld_shl_load+:} false; then :
11518     $as_echo_n "(cached) " >&6
11519 michael 5052 else
11520     ac_check_lib_save_LIBS=$LIBS
11521     LIBS="-ldld $LIBS"
11522 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 michael 5052 /* end confdefs.h. */
11524    
11525     /* Override any GCC internal prototype to avoid an error.
11526     Use char because int might match the return type of a GCC
11527     builtin and then its argument prototype would still apply. */
11528     #ifdef __cplusplus
11529     extern "C"
11530     #endif
11531     char shl_load ();
11532     int
11533     main ()
11534     {
11535     return shl_load ();
11536     ;
11537     return 0;
11538     }
11539     _ACEOF
11540 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11541 michael 5052 ac_cv_lib_dld_shl_load=yes
11542     else
11543 michael 5059 ac_cv_lib_dld_shl_load=no
11544 michael 5052 fi
11545     rm -f core conftest.err conftest.$ac_objext \
11546 michael 5059 conftest$ac_exeext conftest.$ac_ext
11547 michael 5052 LIBS=$ac_check_lib_save_LIBS
11548     fi
11549 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11550     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11551     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11552     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11553 michael 5052 else
11554 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11555     if test "x$ac_cv_func_dlopen" = xyes; then :
11556     lt_cv_dlopen=dlopen
11557 michael 5052 else
11558 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11559     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11560     if ${ac_cv_lib_dl_dlopen+:} false; then :
11561     $as_echo_n "(cached) " >&6
11562 michael 5052 else
11563     ac_check_lib_save_LIBS=$LIBS
11564     LIBS="-ldl $LIBS"
11565 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 michael 5052 /* end confdefs.h. */
11567    
11568     /* Override any GCC internal prototype to avoid an error.
11569     Use char because int might match the return type of a GCC
11570     builtin and then its argument prototype would still apply. */
11571     #ifdef __cplusplus
11572     extern "C"
11573     #endif
11574     char dlopen ();
11575     int
11576     main ()
11577     {
11578     return dlopen ();
11579     ;
11580     return 0;
11581     }
11582     _ACEOF
11583 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11584 michael 5052 ac_cv_lib_dl_dlopen=yes
11585     else
11586 michael 5059 ac_cv_lib_dl_dlopen=no
11587 michael 5052 fi
11588     rm -f core conftest.err conftest.$ac_objext \
11589 michael 5059 conftest$ac_exeext conftest.$ac_ext
11590 michael 5052 LIBS=$ac_check_lib_save_LIBS
11591     fi
11592 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11593     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11594     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11595     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11596 michael 5052 else
11597 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11598     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11599     if ${ac_cv_lib_svld_dlopen+:} false; then :
11600     $as_echo_n "(cached) " >&6
11601 michael 5052 else
11602     ac_check_lib_save_LIBS=$LIBS
11603     LIBS="-lsvld $LIBS"
11604 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 michael 5052 /* end confdefs.h. */
11606    
11607     /* Override any GCC internal prototype to avoid an error.
11608     Use char because int might match the return type of a GCC
11609     builtin and then its argument prototype would still apply. */
11610     #ifdef __cplusplus
11611     extern "C"
11612     #endif
11613     char dlopen ();
11614     int
11615     main ()
11616     {
11617     return dlopen ();
11618     ;
11619     return 0;
11620     }
11621     _ACEOF
11622 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11623 michael 5052 ac_cv_lib_svld_dlopen=yes
11624     else
11625 michael 5059 ac_cv_lib_svld_dlopen=no
11626 michael 5052 fi
11627     rm -f core conftest.err conftest.$ac_objext \
11628 michael 5059 conftest$ac_exeext conftest.$ac_ext
11629 michael 5052 LIBS=$ac_check_lib_save_LIBS
11630     fi
11631 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11632     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11633     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11634     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11635 michael 5052 else
11636 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11637     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11638     if ${ac_cv_lib_dld_dld_link+:} false; then :
11639     $as_echo_n "(cached) " >&6
11640 michael 5052 else
11641     ac_check_lib_save_LIBS=$LIBS
11642     LIBS="-ldld $LIBS"
11643 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 michael 5052 /* end confdefs.h. */
11645    
11646     /* Override any GCC internal prototype to avoid an error.
11647     Use char because int might match the return type of a GCC
11648     builtin and then its argument prototype would still apply. */
11649     #ifdef __cplusplus
11650     extern "C"
11651     #endif
11652     char dld_link ();
11653     int
11654     main ()
11655     {
11656     return dld_link ();
11657     ;
11658     return 0;
11659     }
11660     _ACEOF
11661 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11662 michael 5052 ac_cv_lib_dld_dld_link=yes
11663     else
11664 michael 5059 ac_cv_lib_dld_dld_link=no
11665 michael 5052 fi
11666     rm -f core conftest.err conftest.$ac_objext \
11667 michael 5059 conftest$ac_exeext conftest.$ac_ext
11668 michael 5052 LIBS=$ac_check_lib_save_LIBS
11669     fi
11670 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11671     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11672     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11673     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11674 michael 5052 fi
11675    
11676    
11677     fi
11678    
11679    
11680     fi
11681    
11682    
11683     fi
11684    
11685    
11686     fi
11687    
11688    
11689     fi
11690    
11691     ;;
11692     esac
11693    
11694 michael 5059 if test no = "$lt_cv_dlopen"; then
11695     enable_dlopen=no
11696     else
11697 michael 5052 enable_dlopen=yes
11698     fi
11699    
11700     case $lt_cv_dlopen in
11701     dlopen)
11702 michael 5059 save_CPPFLAGS=$CPPFLAGS
11703     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11704 michael 5052
11705 michael 5059 save_LDFLAGS=$LDFLAGS
11706 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11707    
11708 michael 5059 save_LIBS=$LIBS
11709 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11710    
11711 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11712     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11713     if ${lt_cv_dlopen_self+:} false; then :
11714     $as_echo_n "(cached) " >&6
11715 michael 5052 else
11716 michael 5059 if test yes = "$cross_compiling"; then :
11717 michael 5052 lt_cv_dlopen_self=cross
11718     else
11719     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11720     lt_status=$lt_dlunknown
11721 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11722     #line $LINENO "configure"
11723 michael 5052 #include "confdefs.h"
11724    
11725     #if HAVE_DLFCN_H
11726     #include <dlfcn.h>
11727     #endif
11728    
11729     #include <stdio.h>
11730    
11731     #ifdef RTLD_GLOBAL
11732     # define LT_DLGLOBAL RTLD_GLOBAL
11733     #else
11734     # ifdef DL_GLOBAL
11735     # define LT_DLGLOBAL DL_GLOBAL
11736     # else
11737     # define LT_DLGLOBAL 0
11738     # endif
11739     #endif
11740    
11741     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11742     find out it does not work in some platform. */
11743     #ifndef LT_DLLAZY_OR_NOW
11744     # ifdef RTLD_LAZY
11745     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11746     # else
11747     # ifdef DL_LAZY
11748     # define LT_DLLAZY_OR_NOW DL_LAZY
11749     # else
11750     # ifdef RTLD_NOW
11751     # define LT_DLLAZY_OR_NOW RTLD_NOW
11752     # else
11753     # ifdef DL_NOW
11754     # define LT_DLLAZY_OR_NOW DL_NOW
11755     # else
11756     # define LT_DLLAZY_OR_NOW 0
11757     # endif
11758     # endif
11759     # endif
11760     # endif
11761     #endif
11762    
11763 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11764     correspondingly for the symbols needed. */
11765     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11766     int fnord () __attribute__((visibility("default")));
11767 michael 5052 #endif
11768    
11769 michael 5059 int fnord () { return 42; }
11770 michael 5052 int main ()
11771     {
11772     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11773     int status = $lt_dlunknown;
11774    
11775     if (self)
11776     {
11777     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11778 michael 5059 else
11779     {
11780     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11781     else puts (dlerror ());
11782     }
11783 michael 5052 /* dlclose (self); */
11784     }
11785     else
11786     puts (dlerror ());
11787    
11788 michael 5059 return status;
11789 michael 5052 }
11790 michael 5059 _LT_EOF
11791     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11792 michael 5052 (eval $ac_link) 2>&5
11793     ac_status=$?
11794 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11796 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11797     lt_status=$?
11798     case x$lt_status in
11799     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11800     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11801     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11802     esac
11803     else :
11804     # compilation failed
11805     lt_cv_dlopen_self=no
11806     fi
11807     fi
11808     rm -fr conftest*
11809    
11810    
11811     fi
11812 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11813     $as_echo "$lt_cv_dlopen_self" >&6; }
11814 michael 5052
11815 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11816 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11817 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11818     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11819     if ${lt_cv_dlopen_self_static+:} false; then :
11820     $as_echo_n "(cached) " >&6
11821 michael 5052 else
11822 michael 5059 if test yes = "$cross_compiling"; then :
11823 michael 5052 lt_cv_dlopen_self_static=cross
11824     else
11825     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11826     lt_status=$lt_dlunknown
11827 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11828     #line $LINENO "configure"
11829 michael 5052 #include "confdefs.h"
11830    
11831     #if HAVE_DLFCN_H
11832     #include <dlfcn.h>
11833     #endif
11834    
11835     #include <stdio.h>
11836    
11837     #ifdef RTLD_GLOBAL
11838     # define LT_DLGLOBAL RTLD_GLOBAL
11839     #else
11840     # ifdef DL_GLOBAL
11841     # define LT_DLGLOBAL DL_GLOBAL
11842     # else
11843     # define LT_DLGLOBAL 0
11844     # endif
11845     #endif
11846    
11847     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11848     find out it does not work in some platform. */
11849     #ifndef LT_DLLAZY_OR_NOW
11850     # ifdef RTLD_LAZY
11851     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11852     # else
11853     # ifdef DL_LAZY
11854     # define LT_DLLAZY_OR_NOW DL_LAZY
11855     # else
11856     # ifdef RTLD_NOW
11857     # define LT_DLLAZY_OR_NOW RTLD_NOW
11858     # else
11859     # ifdef DL_NOW
11860     # define LT_DLLAZY_OR_NOW DL_NOW
11861     # else
11862     # define LT_DLLAZY_OR_NOW 0
11863     # endif
11864     # endif
11865     # endif
11866     # endif
11867     #endif
11868    
11869 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11870     correspondingly for the symbols needed. */
11871     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11872     int fnord () __attribute__((visibility("default")));
11873 michael 5052 #endif
11874    
11875 michael 5059 int fnord () { return 42; }
11876 michael 5052 int main ()
11877     {
11878     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11879     int status = $lt_dlunknown;
11880    
11881     if (self)
11882     {
11883     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11884 michael 5059 else
11885     {
11886     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11887     else puts (dlerror ());
11888     }
11889 michael 5052 /* dlclose (self); */
11890     }
11891     else
11892     puts (dlerror ());
11893    
11894 michael 5059 return status;
11895 michael 5052 }
11896 michael 5059 _LT_EOF
11897     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11898 michael 5052 (eval $ac_link) 2>&5
11899     ac_status=$?
11900 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11901     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11902 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11903     lt_status=$?
11904     case x$lt_status in
11905     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11906     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11907     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11908     esac
11909     else :
11910     # compilation failed
11911     lt_cv_dlopen_self_static=no
11912     fi
11913     fi
11914     rm -fr conftest*
11915    
11916    
11917     fi
11918 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11919     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11920 michael 5052 fi
11921    
11922 michael 5059 CPPFLAGS=$save_CPPFLAGS
11923     LDFLAGS=$save_LDFLAGS
11924     LIBS=$save_LIBS
11925 michael 5052 ;;
11926     esac
11927    
11928     case $lt_cv_dlopen_self in
11929     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11930     *) enable_dlopen_self=unknown ;;
11931     esac
11932    
11933     case $lt_cv_dlopen_self_static in
11934     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11935     *) enable_dlopen_self_static=unknown ;;
11936     esac
11937     fi
11938    
11939    
11940    
11941    
11942    
11943    
11944    
11945    
11946    
11947    
11948    
11949    
11950    
11951    
11952    
11953    
11954    
11955 michael 5059 striplib=
11956     old_striplib=
11957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11958     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11959     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11960     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11961     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11963     $as_echo "yes" >&6; }
11964 michael 5052 else
11965 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11966 michael 5052 case $host_os in
11967 michael 5059 darwin*)
11968     if test -n "$STRIP"; then
11969     striplib="$STRIP -x"
11970     old_striplib="$STRIP -S"
11971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11972     $as_echo "yes" >&6; }
11973 michael 5052 else
11974 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975     $as_echo "no" >&6; }
11976 michael 5052 fi
11977     ;;
11978     *)
11979 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980     $as_echo "no" >&6; }
11981 michael 5052 ;;
11982     esac
11983     fi
11984    
11985    
11986    
11987    
11988    
11989    
11990    
11991    
11992    
11993    
11994    
11995    
11996 michael 5059 # Report what library types will actually be built
11997     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11998     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12000     $as_echo "$can_build_shared" >&6; }
12001 michael 5052
12002 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12003     $as_echo_n "checking whether to build shared libraries... " >&6; }
12004     test no = "$can_build_shared" && enable_shared=no
12005 michael 5052
12006 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12007     # are all built from PIC.
12008 michael 5052 case $host_os in
12009 michael 5059 aix3*)
12010     test yes = "$enable_shared" && enable_static=no
12011     if test -n "$RANLIB"; then
12012     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12013     postinstall_cmds='$RANLIB $lib'
12014 michael 5052 fi
12015     ;;
12016    
12017 michael 5059 aix[4-9]*)
12018     if test ia64 != "$host_cpu"; then
12019     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12020     yes,aix,yes) ;; # shared object as lib.so file only
12021     yes,svr4,*) ;; # shared object as lib.so archive member only
12022     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12023 michael 5052 esac
12024     fi
12025     ;;
12026     esac
12027 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12028     $as_echo "$enable_shared" >&6; }
12029 michael 5052
12030 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12031     $as_echo_n "checking whether to build static libraries... " >&6; }
12032     # Make sure either enable_shared or enable_static is yes.
12033     test yes = "$enable_shared" || enable_static=yes
12034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12035     $as_echo "$enable_static" >&6; }
12036 michael 5052
12037    
12038    
12039    
12040     fi
12041     ac_ext=c
12042     ac_cpp='$CPP $CPPFLAGS'
12043     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12044     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12045     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12046    
12047 michael 5059 CC=$lt_save_CC
12048 michael 5052
12049    
12050    
12051    
12052    
12053    
12054    
12055    
12056    
12057    
12058    
12059    
12060    
12061    
12062    
12063 michael 5059 ac_config_commands="$ac_config_commands libtool"
12064 michael 5052
12065    
12066    
12067    
12068 michael 5059 # Only expand once:
12069 michael 5052
12070    
12071    
12072    
12073     for ac_prog in 'bison -y' byacc
12074     do
12075     # Extract the first word of "$ac_prog", so it can be a program name with args.
12076     set dummy $ac_prog; ac_word=$2
12077 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078     $as_echo_n "checking for $ac_word... " >&6; }
12079     if ${ac_cv_prog_YACC+:} false; then :
12080     $as_echo_n "(cached) " >&6
12081 michael 5052 else
12082     if test -n "$YACC"; then
12083     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12084     else
12085     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086     for as_dir in $PATH
12087     do
12088     IFS=$as_save_IFS
12089     test -z "$as_dir" && as_dir=.
12090 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12091     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092 michael 5052 ac_cv_prog_YACC="$ac_prog"
12093 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 michael 5052 break 2
12095     fi
12096     done
12097 michael 5059 done
12098 michael 5052 IFS=$as_save_IFS
12099    
12100     fi
12101     fi
12102     YACC=$ac_cv_prog_YACC
12103     if test -n "$YACC"; then
12104 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12105     $as_echo "$YACC" >&6; }
12106 michael 5052 else
12107 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108     $as_echo "no" >&6; }
12109 michael 5052 fi
12110    
12111    
12112     test -n "$YACC" && break
12113     done
12114     test -n "$YACC" || YACC="yacc"
12115    
12116    
12117     for ac_prog in flex lex
12118     do
12119     # Extract the first word of "$ac_prog", so it can be a program name with args.
12120     set dummy $ac_prog; ac_word=$2
12121 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12122     $as_echo_n "checking for $ac_word... " >&6; }
12123     if ${ac_cv_prog_LEX+:} false; then :
12124     $as_echo_n "(cached) " >&6
12125 michael 5052 else
12126     if test -n "$LEX"; then
12127     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12128     else
12129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12130     for as_dir in $PATH
12131     do
12132     IFS=$as_save_IFS
12133     test -z "$as_dir" && as_dir=.
12134 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12135     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12136 michael 5052 ac_cv_prog_LEX="$ac_prog"
12137 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12138 michael 5052 break 2
12139     fi
12140     done
12141 michael 5059 done
12142 michael 5052 IFS=$as_save_IFS
12143    
12144     fi
12145     fi
12146     LEX=$ac_cv_prog_LEX
12147     if test -n "$LEX"; then
12148 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12149     $as_echo "$LEX" >&6; }
12150 michael 5052 else
12151 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152     $as_echo "no" >&6; }
12153 michael 5052 fi
12154    
12155    
12156     test -n "$LEX" && break
12157     done
12158     test -n "$LEX" || LEX=":"
12159    
12160 michael 5059 if test "x$LEX" != "x:"; then
12161     cat >conftest.l <<_ACEOF
12162     %%
12163     a { ECHO; }
12164     b { REJECT; }
12165     c { yymore (); }
12166     d { yyless (1); }
12167     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12168     yyless ((input () != 0)); }
12169     f { unput (yytext[0]); }
12170     . { BEGIN INITIAL; }
12171     %%
12172     #ifdef YYTEXT_POINTER
12173     extern char *yytext;
12174 michael 5052 #endif
12175     int
12176 michael 5059 main (void)
12177 michael 5052 {
12178 michael 5059 return ! yylex () + ! yywrap ();
12179 michael 5052 }
12180     _ACEOF
12181 michael 5059 { { ac_try="$LEX conftest.l"
12182 michael 5052 case "(($ac_try" in
12183     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184     *) ac_try_echo=$ac_try;;
12185     esac
12186 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12187     $as_echo "$ac_try_echo"; } >&5
12188     (eval "$LEX conftest.l") 2>&5
12189 michael 5052 ac_status=$?
12190 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191     test $ac_status = 0; }
12192     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12193     $as_echo_n "checking lex output file root... " >&6; }
12194     if ${ac_cv_prog_lex_root+:} false; then :
12195     $as_echo_n "(cached) " >&6
12196 michael 5052 else
12197    
12198 michael 5059 if test -f lex.yy.c; then
12199     ac_cv_prog_lex_root=lex.yy
12200     elif test -f lexyy.c; then
12201     ac_cv_prog_lex_root=lexyy
12202     else
12203     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12204 michael 5052 fi
12205 michael 5059 fi
12206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12207     $as_echo "$ac_cv_prog_lex_root" >&6; }
12208     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12209 michael 5052
12210 michael 5059 if test -z "${LEXLIB+set}"; then
12211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12212     $as_echo_n "checking lex library... " >&6; }
12213     if ${ac_cv_lib_lex+:} false; then :
12214     $as_echo_n "(cached) " >&6
12215 michael 5052 else
12216 michael 5059
12217     ac_save_LIBS=$LIBS
12218     ac_cv_lib_lex='none needed'
12219     for ac_lib in '' -lfl -ll; do
12220     LIBS="$ac_lib $ac_save_LIBS"
12221     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 michael 5052 /* end confdefs.h. */
12223 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12224 michael 5052 _ACEOF
12225 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12226     ac_cv_lib_lex=$ac_lib
12227 michael 5052 fi
12228     rm -f core conftest.err conftest.$ac_objext \
12229 michael 5059 conftest$ac_exeext conftest.$ac_ext
12230     test "$ac_cv_lib_lex" != 'none needed' && break
12231     done
12232     LIBS=$ac_save_LIBS
12233 michael 5052
12234     fi
12235 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12236     $as_echo "$ac_cv_lib_lex" >&6; }
12237     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12238 michael 5052 fi
12239    
12240    
12241 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12242     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12243     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12244     $as_echo_n "(cached) " >&6
12245 michael 5052 else
12246     # POSIX says lex can declare yytext either as a pointer or an array; the
12247 michael 5059 # default is implementation-dependent. Figure out which it is, since
12248 michael 5052 # not all implementations provide the %pointer and %array declarations.
12249     ac_cv_prog_lex_yytext_pointer=no
12250     ac_save_LIBS=$LIBS
12251 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12252     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253     /* end confdefs.h. */
12254    
12255     #define YYTEXT_POINTER 1
12256 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12257     _ACEOF
12258 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12259 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12260     fi
12261     rm -f core conftest.err conftest.$ac_objext \
12262 michael 5059 conftest$ac_exeext conftest.$ac_ext
12263 michael 5052 LIBS=$ac_save_LIBS
12264    
12265     fi
12266 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12267     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12268 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12269    
12270 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12271 michael 5052
12272     fi
12273 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12274 michael 5052
12275     fi
12276     if test "$LEX" = :; then
12277     LEX=${am_missing_run}flex
12278     fi
12279    
12280 michael 6105
12281    
12282     if test "X$CC" != "X"; then
12283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector-strong" >&5
12284     $as_echo_n "checking whether ${CC} accepts -fstack-protector-strong... " >&6; }
12285     if ${ssp_cv_cc+:} false; then :
12286 michael 5062 $as_echo_n "(cached) " >&6
12287     else
12288 michael 6105 ssp_old_cflags="$CFLAGS"
12289     CFLAGS="$CFLAGS -fstack-protector-strong"
12290     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291 michael 5062 /* end confdefs.h. */
12292 michael 5052
12293 michael 5062 int
12294     main ()
12295     {
12296 michael 6105
12297 michael 5062 ;
12298     return 0;
12299     }
12300     _ACEOF
12301 michael 6105 if ac_fn_c_try_compile "$LINENO"; then :
12302     ssp_cv_cc=yes
12303     else
12304     ssp_cv_cc=no
12305 michael 5062 fi
12306 michael 6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307     CFLAGS="$ssp_old_cflags"
12308    
12309 michael 5062 fi
12310 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12311     $as_echo "$ssp_cv_cc" >&6; }
12312     if test $ssp_cv_cc = yes; then
12313     CFLAGS="$CFLAGS -fstack-protector-strong"
12314 michael 5062
12315 michael 6105 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12316    
12317     else
12318     unset ssp_cv_cc
12319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
12320     $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
12321     if ${ssp_cv_cc+:} false; then :
12322     $as_echo_n "(cached) " >&6
12323 michael 5062 else
12324 michael 6105 ssp_old_cflags="$CFLAGS"
12325     CFLAGS="$CFLAGS -fstack-protector"
12326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327     /* end confdefs.h. */
12328    
12329     int
12330     main ()
12331     {
12332    
12333     ;
12334     return 0;
12335     }
12336     _ACEOF
12337     if ac_fn_c_try_compile "$LINENO"; then :
12338     ssp_cv_cc=yes
12339     else
12340     ssp_cv_cc=no
12341 michael 5062 fi
12342 michael 6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12343     CFLAGS="$ssp_old_cflags"
12344    
12345 michael 5062 fi
12346 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
12347     $as_echo "$ssp_cv_cc" >&6; }
12348     if test $ssp_cv_cc = yes; then
12349     CFLAGS="$CFLAGS -fstack-protector"
12350 michael 5062
12351 michael 6105 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
12352    
12353     fi
12354     fi
12355     fi
12356    
12357    
12358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libssp exists" >&5
12359     $as_echo_n "checking whether libssp exists... " >&6; }
12360     if ${ssp_cv_lib+:} false; then :
12361     $as_echo_n "(cached) " >&6
12362 michael 5062 else
12363 michael 6105 ssp_old_libs="$LIBS"
12364     LIBS="$LIBS -lssp"
12365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366     /* end confdefs.h. */
12367    
12368     int
12369     main ()
12370     {
12371    
12372     ;
12373     return 0;
12374     }
12375     _ACEOF
12376     if ac_fn_c_try_link "$LINENO"; then :
12377     ssp_cv_lib=yes
12378     else
12379     ssp_cv_lib=no
12380 michael 5062 fi
12381 michael 6105 rm -f core conftest.err conftest.$ac_objext \
12382     conftest$ac_exeext conftest.$ac_ext
12383     LIBS="$ssp_old_libs"
12384 michael 5062
12385 michael 6105 fi
12386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_lib" >&5
12387     $as_echo "$ssp_cv_lib" >&6; }
12388     if test $ssp_cv_lib = yes; then
12389     LIBS="$LIBS -lssp"
12390     fi
12391    
12392    
12393    
12394     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12395 michael 5062 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12396    
12397     else
12398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12399     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12400     if ${ac_cv_search_getaddrinfo+:} false; then :
12401     $as_echo_n "(cached) " >&6
12402     else
12403     ac_func_search_save_LIBS=$LIBS
12404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405     /* end confdefs.h. */
12406    
12407     /* Override any GCC internal prototype to avoid an error.
12408     Use char because int might match the return type of a GCC
12409     builtin and then its argument prototype would still apply. */
12410     #ifdef __cplusplus
12411     extern "C"
12412     #endif
12413     char getaddrinfo ();
12414     int
12415     main ()
12416     {
12417     return getaddrinfo ();
12418     ;
12419     return 0;
12420     }
12421     _ACEOF
12422     for ac_lib in '' nsl; do
12423     if test -z "$ac_lib"; then
12424     ac_res="none required"
12425     else
12426     ac_res=-l$ac_lib
12427     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12428     fi
12429     if ac_fn_c_try_link "$LINENO"; then :
12430     ac_cv_search_getaddrinfo=$ac_res
12431     fi
12432     rm -f core conftest.err conftest.$ac_objext \
12433     conftest$ac_exeext
12434     if ${ac_cv_search_getaddrinfo+:} false; then :
12435     break
12436     fi
12437     done
12438     if ${ac_cv_search_getaddrinfo+:} false; then :
12439    
12440     else
12441     ac_cv_search_getaddrinfo=no
12442     fi
12443     rm conftest.$ac_ext
12444     LIBS=$ac_func_search_save_LIBS
12445     fi
12446     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12447     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12448     ac_res=$ac_cv_search_getaddrinfo
12449     if test "$ac_res" != no; then :
12450     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12451    
12452     fi
12453    
12454     fi
12455    
12456 michael 6105 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12457 michael 5062 if test "x$ac_cv_func_getnameinfo" = xyes; then :
12458    
12459     else
12460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12461     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12462     if ${ac_cv_search_getnameinfo+:} false; then :
12463     $as_echo_n "(cached) " >&6
12464     else
12465     ac_func_search_save_LIBS=$LIBS
12466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467     /* end confdefs.h. */
12468    
12469     /* Override any GCC internal prototype to avoid an error.
12470     Use char because int might match the return type of a GCC
12471     builtin and then its argument prototype would still apply. */
12472     #ifdef __cplusplus
12473     extern "C"
12474     #endif
12475     char getnameinfo ();
12476     int
12477     main ()
12478     {
12479     return getnameinfo ();
12480     ;
12481     return 0;
12482     }
12483     _ACEOF
12484     for ac_lib in '' nsl; do
12485     if test -z "$ac_lib"; then
12486     ac_res="none required"
12487     else
12488     ac_res=-l$ac_lib
12489     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12490     fi
12491     if ac_fn_c_try_link "$LINENO"; then :
12492     ac_cv_search_getnameinfo=$ac_res
12493     fi
12494     rm -f core conftest.err conftest.$ac_objext \
12495     conftest$ac_exeext
12496     if ${ac_cv_search_getnameinfo+:} false; then :
12497     break
12498     fi
12499     done
12500     if ${ac_cv_search_getnameinfo+:} false; then :
12501    
12502     else
12503     ac_cv_search_getnameinfo=no
12504     fi
12505     rm conftest.$ac_ext
12506     LIBS=$ac_func_search_save_LIBS
12507     fi
12508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12509     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12510     ac_res=$ac_cv_search_getnameinfo
12511     if test "$ac_res" != no; then :
12512     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12513    
12514     fi
12515    
12516     fi
12517    
12518 michael 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12519     $as_echo_n "checking for library containing socket... " >&6; }
12520     if ${ac_cv_search_socket+:} false; then :
12521     $as_echo_n "(cached) " >&6
12522     else
12523     ac_func_search_save_LIBS=$LIBS
12524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525     /* end confdefs.h. */
12526 michael 5062
12527 michael 6105 /* Override any GCC internal prototype to avoid an error.
12528     Use char because int might match the return type of a GCC
12529     builtin and then its argument prototype would still apply. */
12530     #ifdef __cplusplus
12531     extern "C"
12532     #endif
12533     char socket ();
12534     int
12535     main ()
12536     {
12537     return socket ();
12538     ;
12539     return 0;
12540     }
12541     _ACEOF
12542     for ac_lib in '' socket; do
12543     if test -z "$ac_lib"; then
12544     ac_res="none required"
12545     else
12546     ac_res=-l$ac_lib
12547     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12548     fi
12549     if ac_fn_c_try_link "$LINENO"; then :
12550     ac_cv_search_socket=$ac_res
12551     fi
12552     rm -f core conftest.err conftest.$ac_objext \
12553     conftest$ac_exeext
12554     if ${ac_cv_search_socket+:} false; then :
12555     break
12556     fi
12557     done
12558     if ${ac_cv_search_socket+:} false; then :
12559    
12560     else
12561     ac_cv_search_socket=no
12562     fi
12563     rm conftest.$ac_ext
12564     LIBS=$ac_func_search_save_LIBS
12565     fi
12566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12567     $as_echo "$ac_cv_search_socket" >&6; }
12568     ac_res=$ac_cv_search_socket
12569     if test "$ac_res" != no; then :
12570     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12571    
12572     else
12573     as_fn_error $? "socket library not found" "$LINENO" 5
12574     fi
12575    
12576    
12577    
12578     # Check whether --enable-assert was given.
12579     if test "${enable_assert+set}" = set; then :
12580     enableval=$enable_assert; assert=$enableval
12581     else
12582     assert=no
12583     fi
12584    
12585    
12586     if test "$assert" = "no"; then :
12587    
12588     $as_echo "#define NDEBUG 1" >>confdefs.h
12589    
12590     fi
12591    
12592    
12593 michael 5264 for ac_func in strlcpy strlcat
12594 michael 5059 do :
12595     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12596     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12597     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12598     cat >>confdefs.h <<_ACEOF
12599     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12600 michael 5052 _ACEOF
12601    
12602     fi
12603 michael 5059 done
12604 michael 5052
12605    
12606 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12607     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12608     if ${ac_cv_c_bigendian+:} false; then :
12609     $as_echo_n "(cached) " >&6
12610 michael 5052 else
12611 michael 5059 ac_cv_c_bigendian=unknown
12612     # See if we're dealing with a universal compiler.
12613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 michael 5052 /* end confdefs.h. */
12615 michael 5059 #ifndef __APPLE_CC__
12616     not a universal capable compiler
12617     #endif
12618     typedef int dummy;
12619 michael 5052
12620     _ACEOF
12621 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12622 michael 5052
12623 michael 5059 # Check for potential -arch flags. It is not universal unless
12624     # there are at least two -arch flags with different values.
12625     ac_arch=
12626     ac_prev=
12627     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12628     if test -n "$ac_prev"; then
12629     case $ac_word in
12630     i?86 | x86_64 | ppc | ppc64)
12631     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12632     ac_arch=$ac_word
12633     else
12634     ac_cv_c_bigendian=universal
12635     break
12636     fi
12637     ;;
12638     esac
12639     ac_prev=
12640     elif test "x$ac_word" = "x-arch"; then
12641     ac_prev=arch
12642     fi
12643     done
12644 michael 5052 fi
12645 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646     if test $ac_cv_c_bigendian = unknown; then
12647     # See if sys/param.h defines the BYTE_ORDER macro.
12648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 michael 5052 /* end confdefs.h. */
12650     #include <sys/types.h>
12651 michael 5059 #include <sys/param.h>
12652 michael 5052
12653     int
12654     main ()
12655     {
12656 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12657     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12658     && LITTLE_ENDIAN)
12659     bogus endian macros
12660     #endif
12661 michael 5052
12662     ;
12663     return 0;
12664     }
12665     _ACEOF
12666 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12667 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12668 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 michael 5052 /* end confdefs.h. */
12670     #include <sys/types.h>
12671 michael 5059 #include <sys/param.h>
12672 michael 5052
12673     int
12674     main ()
12675     {
12676     #if BYTE_ORDER != BIG_ENDIAN
12677 michael 5059 not big endian
12678     #endif
12679 michael 5052
12680     ;
12681     return 0;
12682     }
12683     _ACEOF
12684 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12685 michael 5052 ac_cv_c_bigendian=yes
12686     else
12687     ac_cv_c_bigendian=no
12688     fi
12689     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690     fi
12691     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 michael 5059 fi
12693     if test $ac_cv_c_bigendian = unknown; then
12694     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12695     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 michael 5052 /* end confdefs.h. */
12697 michael 5059 #include <limits.h>
12698 michael 5052
12699     int
12700     main ()
12701     {
12702 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12703     bogus endian macros
12704     #endif
12705 michael 5052
12706     ;
12707     return 0;
12708     }
12709     _ACEOF
12710 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12711     # It does; now see whether it defined to _BIG_ENDIAN or not.
12712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 michael 5052 /* end confdefs.h. */
12714 michael 5059 #include <limits.h>
12715 michael 5052
12716     int
12717     main ()
12718     {
12719 michael 5059 #ifndef _BIG_ENDIAN
12720     not big endian
12721     #endif
12722 michael 5052
12723     ;
12724     return 0;
12725     }
12726     _ACEOF
12727 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12728     ac_cv_c_bigendian=yes
12729 michael 5052 else
12730 michael 5059 ac_cv_c_bigendian=no
12731 michael 5052 fi
12732     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733     fi
12734     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 michael 5059 fi
12736     if test $ac_cv_c_bigendian = unknown; then
12737     # Compile a test program.
12738     if test "$cross_compiling" = yes; then :
12739     # Try to guess by grepping values from an object file.
12740     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741     /* end confdefs.h. */
12742     short int ascii_mm[] =
12743     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12744     short int ascii_ii[] =
12745     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12746     int use_ascii (int i) {
12747     return ascii_mm[i] + ascii_ii[i];
12748     }
12749     short int ebcdic_ii[] =
12750     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12751     short int ebcdic_mm[] =
12752     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12753     int use_ebcdic (int i) {
12754     return ebcdic_mm[i] + ebcdic_ii[i];
12755     }
12756     extern int foo;
12757 michael 5052
12758     int
12759     main ()
12760     {
12761 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12762 michael 5052 ;
12763     return 0;
12764     }
12765     _ACEOF
12766 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12767     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12768     ac_cv_c_bigendian=yes
12769     fi
12770     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12771     if test "$ac_cv_c_bigendian" = unknown; then
12772     ac_cv_c_bigendian=no
12773     else
12774     # finding both strings is unlikely to happen, but who knows?
12775     ac_cv_c_bigendian=unknown
12776     fi
12777     fi
12778 michael 5052 fi
12779     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780     else
12781 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 michael 5052 /* end confdefs.h. */
12783     $ac_includes_default
12784     int
12785     main ()
12786     {
12787    
12788 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12789     union
12790     {
12791     long int l;
12792     char c[sizeof (long int)];
12793     } u;
12794     u.l = 1;
12795     return u.c[sizeof (long int) - 1] == 1;
12796 michael 5052
12797     ;
12798     return 0;
12799     }
12800     _ACEOF
12801 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12802     ac_cv_c_bigendian=no
12803 michael 5052 else
12804 michael 5059 ac_cv_c_bigendian=yes
12805 michael 5052 fi
12806 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807     conftest.$ac_objext conftest.beam conftest.$ac_ext
12808 michael 5052 fi
12809 michael 5059
12810     fi
12811 michael 5052 fi
12812 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12813     $as_echo "$ac_cv_c_bigendian" >&6; }
12814     case $ac_cv_c_bigendian in #(
12815     yes)
12816     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12817     ;; #(
12818     no)
12819     ;; #(
12820     universal)
12821 michael 5052
12822 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12823 michael 5052
12824 michael 5059 ;; #(
12825     *)
12826     as_fn_error $? "unknown endianness
12827     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12828     esac
12829 michael 5052
12830    
12831 michael 5260 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12832 michael 5052
12833     cat >confcache <<\_ACEOF
12834     # This file is a shell script that caches the results of configure
12835     # tests run on this system so they can be shared between configure
12836     # scripts and configure runs, see configure's option --config-cache.
12837     # It is not useful on other systems. If it contains results you don't
12838     # want to keep, you may remove or edit it.
12839     #
12840     # config.status only pays attention to the cache file if you give it
12841     # the --recheck option to rerun configure.
12842     #
12843     # `ac_cv_env_foo' variables (set or unset) will be overridden when
12844     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12845     # following values.
12846    
12847     _ACEOF
12848    
12849     # The following way of writing the cache mishandles newlines in values,
12850     # but we know of no workaround that is simple, portable, and efficient.
12851     # So, we kill variables containing newlines.
12852     # Ultrix sh set writes to stderr and can't be redirected directly,
12853     # and sets the high bit in the cache file unless we assign to the vars.
12854     (
12855     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12856     eval ac_val=\$$ac_var
12857     case $ac_val in #(
12858     *${as_nl}*)
12859     case $ac_var in #(
12860 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12861     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12862 michael 5052 esac
12863     case $ac_var in #(
12864     _ | IFS | as_nl) ;; #(
12865 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12866     *) { eval $ac_var=; unset $ac_var;} ;;
12867 michael 5052 esac ;;
12868     esac
12869     done
12870    
12871     (set) 2>&1 |
12872     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12873     *${as_nl}ac_space=\ *)
12874 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
12875     # substitution turns \\\\ into \\, and sed turns \\ into \.
12876 michael 5052 sed -n \
12877     "s/'/'\\\\''/g;
12878     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12879     ;; #(
12880     *)
12881     # `set' quotes correctly as required by POSIX, so do not add quotes.
12882     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12883     ;;
12884     esac |
12885     sort
12886     ) |
12887     sed '
12888     /^ac_cv_env_/b end
12889     t clear
12890     :clear
12891     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12892     t end
12893     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12894     :end' >>confcache
12895     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12896     if test -w "$cache_file"; then
12897 michael 5059 if test "x$cache_file" != "x/dev/null"; then
12898     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12899     $as_echo "$as_me: updating cache $cache_file" >&6;}
12900     if test ! -f "$cache_file" || test -h "$cache_file"; then
12901     cat confcache >"$cache_file"
12902     else
12903     case $cache_file in #(
12904     */* | ?:*)
12905     mv -f confcache "$cache_file"$$ &&
12906     mv -f "$cache_file"$$ "$cache_file" ;; #(
12907     *)
12908     mv -f confcache "$cache_file" ;;
12909     esac
12910     fi
12911     fi
12912 michael 5052 else
12913 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12914     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12915 michael 5052 fi
12916     fi
12917     rm -f confcache
12918    
12919     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12920     # Let make expand exec_prefix.
12921     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12922    
12923     DEFS=-DHAVE_CONFIG_H
12924    
12925     ac_libobjs=
12926     ac_ltlibobjs=
12927 michael 5145 U=
12928 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12929     # 1. Remove the extension, and $U if already installed.
12930     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12931 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12932 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12933     # will be set to the directory where LIBOBJS objects are built.
12934 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12935     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12936 michael 5052 done
12937     LIBOBJS=$ac_libobjs
12938    
12939     LTLIBOBJS=$ac_ltlibobjs
12940    
12941    
12942 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12943     $as_echo_n "checking that generated files are newer than configure... " >&6; }
12944     if test -n "$am_sleep_pid"; then
12945     # Hide warnings about reused PIDs.
12946     wait $am_sleep_pid 2>/dev/null
12947     fi
12948     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12949     $as_echo "done" >&6; }
12950     if test -n "$EXEEXT"; then
12951     am__EXEEXT_TRUE=
12952     am__EXEEXT_FALSE='#'
12953     else
12954     am__EXEEXT_TRUE='#'
12955     am__EXEEXT_FALSE=
12956     fi
12957    
12958 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12959 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12960     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12961 michael 5052 fi
12962     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12963 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
12964     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12965 michael 5052 fi
12966     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12967 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12968     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12969 michael 5052 fi
12970    
12971 michael 5059
12972     : "${CONFIG_STATUS=./config.status}"
12973     ac_write_fail=0
12974 michael 5052 ac_clean_files_save=$ac_clean_files
12975     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12976 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12977     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12978     as_write_fail=0
12979     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12980 michael 5052 #! $SHELL
12981     # Generated by $as_me.
12982     # Run this file to recreate the current configuration.
12983     # Compiler output produced by configure, useful for debugging
12984     # configure, is in config.log if it exists.
12985    
12986     debug=false
12987     ac_cs_recheck=false
12988     ac_cs_silent=false
12989 michael 5059
12990 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
12991 michael 5059 export SHELL
12992     _ASEOF
12993     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12994     ## -------------------- ##
12995     ## M4sh Initialization. ##
12996     ## -------------------- ##
12997 michael 5052
12998 michael 5059 # Be more Bourne compatible
12999     DUALCASE=1; export DUALCASE # for MKS sh
13000     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13001 michael 5052 emulate sh
13002     NULLCMD=:
13003 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13004 michael 5052 # is contrary to our usage. Disable this feature.
13005     alias -g '${1+"$@"}'='"$@"'
13006     setopt NO_GLOB_SUBST
13007     else
13008 michael 5059 case `(set -o) 2>/dev/null` in #(
13009     *posix*) :
13010     set -o posix ;; #(
13011     *) :
13012     ;;
13013     esac
13014 michael 5052 fi
13015    
13016    
13017 michael 5059 as_nl='
13018     '
13019     export as_nl
13020     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13021     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13022     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13023     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13024     # Prefer a ksh shell builtin over an external printf program on Solaris,
13025     # but without wasting forks for bash or zsh.
13026     if test -z "$BASH_VERSION$ZSH_VERSION" \
13027     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13028     as_echo='print -r --'
13029     as_echo_n='print -rn --'
13030     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13031     as_echo='printf %s\n'
13032     as_echo_n='printf %s'
13033     else
13034     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13035     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13036     as_echo_n='/usr/ucb/echo -n'
13037 michael 5052 else
13038 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13039     as_echo_n_body='eval
13040     arg=$1;
13041     case $arg in #(
13042     *"$as_nl"*)
13043     expr "X$arg" : "X\\(.*\\)$as_nl";
13044     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13045     esac;
13046     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13047     '
13048     export as_echo_n_body
13049     as_echo_n='sh -c $as_echo_n_body as_echo'
13050 michael 5052 fi
13051 michael 5059 export as_echo_body
13052     as_echo='sh -c $as_echo_body as_echo'
13053 michael 5052 fi
13054    
13055 michael 5059 # The user is always right.
13056     if test "${PATH_SEPARATOR+set}" != set; then
13057     PATH_SEPARATOR=:
13058     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13059     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13060     PATH_SEPARATOR=';'
13061     }
13062 michael 5052 fi
13063    
13064    
13065     # IFS
13066     # We need space, tab and new line, in precisely that order. Quoting is
13067     # there to prevent editors from complaining about space-tab.
13068     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13069     # splitting by setting IFS to empty value.)
13070     IFS=" "" $as_nl"
13071    
13072     # Find who we are. Look in the path if we contain no directory separator.
13073 michael 5059 as_myself=
13074     case $0 in #((
13075 michael 5052 *[\\/]* ) as_myself=$0 ;;
13076     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077     for as_dir in $PATH
13078     do
13079     IFS=$as_save_IFS
13080     test -z "$as_dir" && as_dir=.
13081 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13082     done
13083 michael 5052 IFS=$as_save_IFS
13084    
13085     ;;
13086     esac
13087     # We did not find ourselves, most probably we were run as `sh COMMAND'
13088     # in which case we are not to be found in the path.
13089     if test "x$as_myself" = x; then
13090     as_myself=$0
13091     fi
13092     if test ! -f "$as_myself"; then
13093 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13094     exit 1
13095 michael 5052 fi
13096    
13097 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
13098     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13099     # suppresses any "Segmentation fault" message there. '((' could
13100     # trigger a bug in pdksh 5.2.14.
13101     for as_var in BASH_ENV ENV MAIL MAILPATH
13102     do eval test x\${$as_var+set} = xset \
13103     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13104 michael 5052 done
13105     PS1='$ '
13106     PS2='> '
13107     PS4='+ '
13108    
13109     # NLS nuisances.
13110 michael 5059 LC_ALL=C
13111     export LC_ALL
13112     LANGUAGE=C
13113     export LANGUAGE
13114    
13115     # CDPATH.
13116     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13117    
13118    
13119     # as_fn_error STATUS ERROR [LINENO LOG_FD]
13120     # ----------------------------------------
13121     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13122     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13123     # script with STATUS, using 1 if that was 0.
13124     as_fn_error ()
13125     {
13126     as_status=$1; test $as_status -eq 0 && as_status=1
13127     if test "$4"; then
13128     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13129     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13130 michael 5052 fi
13131 michael 5059 $as_echo "$as_me: error: $2" >&2
13132     as_fn_exit $as_status
13133     } # as_fn_error
13134 michael 5052
13135 michael 5059
13136     # as_fn_set_status STATUS
13137     # -----------------------
13138     # Set $? to STATUS, without forking.
13139     as_fn_set_status ()
13140     {
13141     return $1
13142     } # as_fn_set_status
13143    
13144     # as_fn_exit STATUS
13145     # -----------------
13146     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13147     as_fn_exit ()
13148     {
13149     set +e
13150     as_fn_set_status $1
13151     exit $1
13152     } # as_fn_exit
13153    
13154     # as_fn_unset VAR
13155     # ---------------
13156     # Portably unset VAR.
13157     as_fn_unset ()
13158     {
13159     { eval $1=; unset $1;}
13160     }
13161     as_unset=as_fn_unset
13162     # as_fn_append VAR VALUE
13163     # ----------------------
13164     # Append the text in VALUE to the end of the definition contained in VAR. Take
13165     # advantage of any shell optimizations that allow amortized linear growth over
13166     # repeated appends, instead of the typical quadratic growth present in naive
13167     # implementations.
13168     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13169     eval 'as_fn_append ()
13170     {
13171     eval $1+=\$2
13172     }'
13173     else
13174     as_fn_append ()
13175     {
13176     eval $1=\$$1\$2
13177     }
13178     fi # as_fn_append
13179    
13180     # as_fn_arith ARG...
13181     # ------------------
13182     # Perform arithmetic evaluation on the ARGs, and store the result in the
13183     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13184     # must be portable across $(()) and expr.
13185     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13186     eval 'as_fn_arith ()
13187     {
13188     as_val=$(( $* ))
13189     }'
13190     else
13191     as_fn_arith ()
13192     {
13193     as_val=`expr "$@" || test $? -eq 1`
13194     }
13195     fi # as_fn_arith
13196    
13197    
13198 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13199     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13200     as_expr=expr
13201     else
13202     as_expr=false
13203     fi
13204    
13205     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13206     as_basename=basename
13207     else
13208     as_basename=false
13209     fi
13210    
13211 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13212     as_dirname=dirname
13213     else
13214     as_dirname=false
13215     fi
13216 michael 5052
13217     as_me=`$as_basename -- "$0" ||
13218     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13219     X"$0" : 'X\(//\)$' \| \
13220     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13221 michael 5059 $as_echo X/"$0" |
13222 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13223     s//\1/
13224     q
13225     }
13226     /^X\/\(\/\/\)$/{
13227     s//\1/
13228     q
13229     }
13230     /^X\/\(\/\).*/{
13231     s//\1/
13232     q
13233     }
13234     s/.*/./; q'`
13235    
13236 michael 5059 # Avoid depending upon Character Ranges.
13237     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13238     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13239     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13240     as_cr_digits='0123456789'
13241     as_cr_alnum=$as_cr_Letters$as_cr_digits
13242 michael 5052
13243     ECHO_C= ECHO_N= ECHO_T=
13244 michael 5059 case `echo -n x` in #(((((
13245 michael 5052 -n*)
13246 michael 5059 case `echo 'xy\c'` in
13247 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13248 michael 5059 xy) ECHO_C='\c';;
13249     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13250     ECHO_T=' ';;
13251 michael 5052 esac;;
13252     *)
13253     ECHO_N='-n';;
13254     esac
13255    
13256     rm -f conf$$ conf$$.exe conf$$.file
13257     if test -d conf$$.dir; then
13258     rm -f conf$$.dir/conf$$.file
13259     else
13260     rm -f conf$$.dir
13261 michael 5059 mkdir conf$$.dir 2>/dev/null
13262 michael 5052 fi
13263 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13264     if ln -s conf$$.file conf$$ 2>/dev/null; then
13265     as_ln_s='ln -s'
13266     # ... but there are two gotchas:
13267     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13268     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13269     # In both cases, we have to default to `cp -pR'.
13270     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13271     as_ln_s='cp -pR'
13272     elif ln conf$$.file conf$$ 2>/dev/null; then
13273     as_ln_s=ln
13274     else
13275     as_ln_s='cp -pR'
13276     fi
13277 michael 5052 else
13278 michael 5059 as_ln_s='cp -pR'
13279 michael 5052 fi
13280     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13281     rmdir conf$$.dir 2>/dev/null
13282    
13283 michael 5059
13284     # as_fn_mkdir_p
13285     # -------------
13286     # Create "$as_dir" as a directory, including parents if necessary.
13287     as_fn_mkdir_p ()
13288     {
13289    
13290     case $as_dir in #(
13291     -*) as_dir=./$as_dir;;
13292     esac
13293     test -d "$as_dir" || eval $as_mkdir_p || {
13294     as_dirs=
13295     while :; do
13296     case $as_dir in #(
13297     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13298     *) as_qdir=$as_dir;;
13299     esac
13300     as_dirs="'$as_qdir' $as_dirs"
13301     as_dir=`$as_dirname -- "$as_dir" ||
13302     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13303     X"$as_dir" : 'X\(//\)[^/]' \| \
13304     X"$as_dir" : 'X\(//\)$' \| \
13305     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13306     $as_echo X"$as_dir" |
13307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13308     s//\1/
13309     q
13310     }
13311     /^X\(\/\/\)[^/].*/{
13312     s//\1/
13313     q
13314     }
13315     /^X\(\/\/\)$/{
13316     s//\1/
13317     q
13318     }
13319     /^X\(\/\).*/{
13320     s//\1/
13321     q
13322     }
13323     s/.*/./; q'`
13324     test -d "$as_dir" && break
13325     done
13326     test -z "$as_dirs" || eval "mkdir $as_dirs"
13327     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13328    
13329    
13330     } # as_fn_mkdir_p
13331 michael 5052 if mkdir -p . 2>/dev/null; then
13332 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13333 michael 5052 else
13334     test -d ./-p && rmdir ./-p
13335     as_mkdir_p=false
13336     fi
13337    
13338    
13339 michael 5059 # as_fn_executable_p FILE
13340     # -----------------------
13341     # Test if FILE is an executable regular file.
13342     as_fn_executable_p ()
13343     {
13344     test -f "$1" && test -x "$1"
13345     } # as_fn_executable_p
13346     as_test_x='test -x'
13347     as_executable_p=as_fn_executable_p
13348    
13349 michael 5052 # Sed expression to map a string onto a valid CPP name.
13350     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13351    
13352     # Sed expression to map a string onto a valid variable name.
13353     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13354    
13355    
13356     exec 6>&1
13357 michael 5059 ## ----------------------------------- ##
13358     ## Main body of $CONFIG_STATUS script. ##
13359     ## ----------------------------------- ##
13360     _ASEOF
13361     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13362 michael 5052
13363 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13364     # Save the log message, to keep $0 and so on meaningful, and to
13365 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13366     # values after options handling.
13367     ac_log="
13368 michael 5266 This file was extended by hopm $as_me TRUNK, which was
13369 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13370 michael 5052
13371     CONFIG_FILES = $CONFIG_FILES
13372     CONFIG_HEADERS = $CONFIG_HEADERS
13373     CONFIG_LINKS = $CONFIG_LINKS
13374     CONFIG_COMMANDS = $CONFIG_COMMANDS
13375     $ $0 $@
13376    
13377     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13378     "
13379    
13380     _ACEOF
13381    
13382 michael 5059 case $ac_config_files in *"
13383     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13384     esac
13385    
13386     case $ac_config_headers in *"
13387     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13388     esac
13389    
13390    
13391     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13392 michael 5052 # Files that config.status was made for.
13393     config_files="$ac_config_files"
13394     config_headers="$ac_config_headers"
13395     config_commands="$ac_config_commands"
13396    
13397     _ACEOF
13398    
13399 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13400 michael 5052 ac_cs_usage="\
13401 michael 5059 \`$as_me' instantiates files and other configuration actions
13402     from templates according to the current configuration. Unless the files
13403     and actions are specified as TAGs, all are instantiated by default.
13404 michael 5052
13405 michael 5059 Usage: $0 [OPTION]... [TAG]...
13406 michael 5052
13407     -h, --help print this help, then exit
13408 michael 5059 -V, --version print version number and configuration settings, then exit
13409     --config print configuration, then exit
13410     -q, --quiet, --silent
13411     do not print progress messages
13412 michael 5052 -d, --debug don't remove temporary files
13413     --recheck update $as_me by reconfiguring in the same conditions
13414 michael 5059 --file=FILE[:TEMPLATE]
13415     instantiate the configuration file FILE
13416     --header=FILE[:TEMPLATE]
13417     instantiate the configuration header FILE
13418 michael 5052
13419     Configuration files:
13420     $config_files
13421    
13422     Configuration headers:
13423     $config_headers
13424    
13425     Configuration commands:
13426     $config_commands
13427    
13428 michael 5266 Report bugs to <bugs@ircd-hybrid.org>."
13429 michael 5052
13430     _ACEOF
13431 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13432     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13433 michael 5052 ac_cs_version="\\
13434 michael 5266 hopm config.status TRUNK
13435 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13436     with options \\"\$ac_cs_config\\"
13437 michael 5052
13438 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13439 michael 5052 This config.status script is free software; the Free Software Foundation
13440     gives unlimited permission to copy, distribute and modify it."
13441    
13442     ac_pwd='$ac_pwd'
13443     srcdir='$srcdir'
13444     INSTALL='$INSTALL'
13445 michael 5059 MKDIR_P='$MKDIR_P'
13446     AWK='$AWK'
13447     test -n "\$AWK" || AWK=awk
13448 michael 5052 _ACEOF
13449    
13450 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13451     # The default lists apply if the user does not specify any file.
13452 michael 5052 ac_need_defaults=:
13453     while test $# != 0
13454     do
13455     case $1 in
13456 michael 5059 --*=?*)
13457 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13458     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13459     ac_shift=:
13460     ;;
13461 michael 5059 --*=)
13462     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13463     ac_optarg=
13464     ac_shift=:
13465     ;;
13466 michael 5052 *)
13467     ac_option=$1
13468     ac_optarg=$2
13469     ac_shift=shift
13470     ;;
13471     esac
13472    
13473     case $ac_option in
13474     # Handling of the options.
13475     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13476     ac_cs_recheck=: ;;
13477     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13478 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13479     --config | --confi | --conf | --con | --co | --c )
13480     $as_echo "$ac_cs_config"; exit ;;
13481 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13482     debug=: ;;
13483     --file | --fil | --fi | --f )
13484     $ac_shift
13485 michael 5059 case $ac_optarg in
13486     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13487     '') as_fn_error $? "missing file argument" ;;
13488     esac
13489     as_fn_append CONFIG_FILES " '$ac_optarg'"
13490 michael 5052 ac_need_defaults=false;;
13491     --header | --heade | --head | --hea )
13492     $ac_shift
13493 michael 5059 case $ac_optarg in
13494     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13495     esac
13496     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13497 michael 5052 ac_need_defaults=false;;
13498     --he | --h)
13499     # Conflict between --help and --header
13500 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13501     Try \`$0 --help' for more information.";;
13502 michael 5052 --help | --hel | -h )
13503 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13504 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13505     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13506     ac_cs_silent=: ;;
13507    
13508     # This is an error.
13509 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13510     Try \`$0 --help' for more information." ;;
13511 michael 5052
13512 michael 5059 *) as_fn_append ac_config_targets " $1"
13513 michael 5052 ac_need_defaults=false ;;
13514    
13515     esac
13516     shift
13517     done
13518    
13519     ac_configure_extra_args=
13520    
13521     if $ac_cs_silent; then
13522     exec 6>/dev/null
13523     ac_configure_extra_args="$ac_configure_extra_args --silent"
13524     fi
13525    
13526     _ACEOF
13527 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13528 michael 5052 if \$ac_cs_recheck; then
13529 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13530     shift
13531     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13532     CONFIG_SHELL='$SHELL'
13533 michael 5052 export CONFIG_SHELL
13534 michael 5059 exec "\$@"
13535 michael 5052 fi
13536    
13537     _ACEOF
13538 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539 michael 5052 exec 5>>config.log
13540     {
13541     echo
13542     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13543     ## Running $as_me. ##
13544     _ASBOX
13545 michael 5059 $as_echo "$ac_log"
13546 michael 5052 } >&5
13547    
13548     _ACEOF
13549 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13550 michael 5052 #
13551     # INIT-COMMANDS
13552     #
13553     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13554    
13555 michael 5059
13556     # The HP-UX ksh and POSIX shell print the target directory to stdout
13557     # if CDPATH is set.
13558     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13559    
13560     sed_quote_subst='$sed_quote_subst'
13561     double_quote_subst='$double_quote_subst'
13562     delay_variable_subst='$delay_variable_subst'
13563     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13564     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13565     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13566     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13567     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13568     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13569     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13570     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13571     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13572     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13573     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13574     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13575     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13576     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13577     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13578     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13579     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13580     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13581     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13582     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13583     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13584     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13585     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13586     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13587     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13588     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13589     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13590     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13591     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13592     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13593     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13594     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13595     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13596     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13597     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13598     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13599     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13600     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13601     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13602     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13603     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13604     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13605     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13606     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13607     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13608     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13609     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13610     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13611     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13612     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13613     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13614     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13615     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13616     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13617     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13618     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13619     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13620     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13621     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"`'
13622     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13623     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13624     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13625     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13626     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13627     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13628     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13629     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13630     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13631     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13632     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13633     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13634     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13635     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13636     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13637     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13638     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13639     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13640     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13641     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13642     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13643     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13644     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13645     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13646     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13647     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13648     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13649     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13650     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13651     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13652     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13653     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13654     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13655     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13656     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13657     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13658     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13659     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13660     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13661     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13662     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13663     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13664     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13665     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13666     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13667     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13668     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13669     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13670     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13671     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13672     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13673     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13674     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13675     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13676     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13677     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13678     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13679     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13680     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13681     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13682     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13683     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13684     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13685     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13686     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13687     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13688     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13689     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13690 michael 5860 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13691     configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13692 michael 5059 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13693     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13694     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13695     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13696     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13697     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13698    
13699     LTCC='$LTCC'
13700     LTCFLAGS='$LTCFLAGS'
13701     compiler='$compiler_DEFAULT'
13702    
13703     # A function that is used when there is no print builtin or printf.
13704     func_fallback_echo ()
13705     {
13706     eval 'cat <<_LTECHO_EOF
13707     \$1
13708     _LTECHO_EOF'
13709     }
13710    
13711     # Quote evaled strings.
13712     for var in SHELL \
13713     ECHO \
13714     PATH_SEPARATOR \
13715     SED \
13716     GREP \
13717     EGREP \
13718     FGREP \
13719     LD \
13720     NM \
13721     LN_S \
13722     lt_SP2NL \
13723     lt_NL2SP \
13724     reload_flag \
13725     OBJDUMP \
13726     deplibs_check_method \
13727     file_magic_cmd \
13728     file_magic_glob \
13729     want_nocaseglob \
13730     DLLTOOL \
13731     sharedlib_from_linklib_cmd \
13732     AR \
13733     AR_FLAGS \
13734     archiver_list_spec \
13735     STRIP \
13736     RANLIB \
13737     CC \
13738     CFLAGS \
13739     compiler \
13740     lt_cv_sys_global_symbol_pipe \
13741     lt_cv_sys_global_symbol_to_cdecl \
13742     lt_cv_sys_global_symbol_to_import \
13743     lt_cv_sys_global_symbol_to_c_name_address \
13744     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13745     lt_cv_nm_interface \
13746     nm_file_list_spec \
13747     lt_cv_truncate_bin \
13748     lt_prog_compiler_no_builtin_flag \
13749     lt_prog_compiler_pic \
13750     lt_prog_compiler_wl \
13751     lt_prog_compiler_static \
13752     lt_cv_prog_compiler_c_o \
13753     need_locks \
13754     MANIFEST_TOOL \
13755     DSYMUTIL \
13756     NMEDIT \
13757     LIPO \
13758     OTOOL \
13759     OTOOL64 \
13760     shrext_cmds \
13761     export_dynamic_flag_spec \
13762     whole_archive_flag_spec \
13763     compiler_needs_object \
13764     with_gnu_ld \
13765     allow_undefined_flag \
13766     no_undefined_flag \
13767     hardcode_libdir_flag_spec \
13768     hardcode_libdir_separator \
13769     exclude_expsyms \
13770     include_expsyms \
13771     file_list_spec \
13772     variables_saved_for_relink \
13773     libname_spec \
13774     library_names_spec \
13775     soname_spec \
13776     install_override_mode \
13777     finish_eval \
13778     old_striplib \
13779     striplib; do
13780     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13781     *[\\\\\\\`\\"\\\$]*)
13782     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13783     ;;
13784     *)
13785     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13786     ;;
13787     esac
13788     done
13789    
13790     # Double-quote double-evaled strings.
13791     for var in reload_cmds \
13792     old_postinstall_cmds \
13793     old_postuninstall_cmds \
13794     old_archive_cmds \
13795     extract_expsyms_cmds \
13796     old_archive_from_new_cmds \
13797     old_archive_from_expsyms_cmds \
13798     archive_cmds \
13799     archive_expsym_cmds \
13800     module_cmds \
13801     module_expsym_cmds \
13802     export_symbols_cmds \
13803     prelink_cmds \
13804     postlink_cmds \
13805     postinstall_cmds \
13806     postuninstall_cmds \
13807     finish_cmds \
13808     sys_lib_search_path_spec \
13809 michael 5860 configure_time_dlsearch_path \
13810     configure_time_lt_sys_library_path; do
13811 michael 5059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13812     *[\\\\\\\`\\"\\\$]*)
13813     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13814     ;;
13815     *)
13816     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13817     ;;
13818     esac
13819     done
13820    
13821     ac_aux_dir='$ac_aux_dir'
13822    
13823     # See if we are running on zsh, and set the options that allow our
13824     # commands through without removal of \ escapes INIT.
13825     if test -n "\${ZSH_VERSION+set}"; then
13826     setopt NO_GLOB_SUBST
13827     fi
13828    
13829    
13830     PACKAGE='$PACKAGE'
13831     VERSION='$VERSION'
13832     RM='$RM'
13833     ofile='$ofile'
13834    
13835    
13836    
13837    
13838 michael 5052 _ACEOF
13839    
13840 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13841 michael 5052
13842     # Handling of arguments.
13843     for ac_config_target in $ac_config_targets
13844     do
13845     case $ac_config_target in
13846     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13847     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13848 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13849 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13850 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13851 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13852 michael 5260 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13853     "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13854 michael 5052
13855 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13856 michael 5052 esac
13857     done
13858    
13859    
13860     # If the user did not use the arguments to specify the items to instantiate,
13861     # then the envvar interface is used. Set only those that are not.
13862     # We use the long form for the default assignment because of an extremely
13863     # bizarre bug on SunOS 4.1.3.
13864     if $ac_need_defaults; then
13865     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13866     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13867     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13868     fi
13869    
13870     # Have a temporary directory for convenience. Make it in the build tree
13871     # simply because there is no reason against having it here, and in addition,
13872     # creating and moving files from /tmp can sometimes cause problems.
13873     # Hook for its removal unless debugging.
13874     # Note that there is a small window in which the directory will not be cleaned:
13875     # after its creation but before its name has been assigned to `$tmp'.
13876     $debug ||
13877     {
13878 michael 5059 tmp= ac_tmp=
13879 michael 5052 trap 'exit_status=$?
13880 michael 5059 : "${ac_tmp:=$tmp}"
13881     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13882 michael 5052 ' 0
13883 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
13884 michael 5052 }
13885     # Create a (secure) tmp directory for tmp files.
13886    
13887     {
13888     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13889 michael 5059 test -d "$tmp"
13890 michael 5052 } ||
13891     {
13892     tmp=./conf$$-$RANDOM
13893     (umask 077 && mkdir "$tmp")
13894 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13895     ac_tmp=$tmp
13896 michael 5052
13897 michael 5059 # Set up the scripts for CONFIG_FILES section.
13898     # No need to generate them if there are no CONFIG_FILES.
13899     # This happens for instance with `./config.status config.h'.
13900 michael 5052 if test -n "$CONFIG_FILES"; then
13901    
13902 michael 5059
13903     ac_cr=`echo X | tr X '\015'`
13904     # On cygwin, bash can eat \r inside `` if the user requested igncr.
13905     # But we know of no other shell where ac_cr would be empty at this
13906     # point, so we can use a bashism as a fallback.
13907     if test "x$ac_cr" = x; then
13908     eval ac_cr=\$\'\\r\'
13909     fi
13910     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13911     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13912     ac_cs_awk_cr='\\r'
13913     else
13914     ac_cs_awk_cr=$ac_cr
13915     fi
13916    
13917     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13918 michael 5052 _ACEOF
13919    
13920    
13921 michael 5059 {
13922     echo "cat >conf$$subs.awk <<_ACEOF" &&
13923     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13924     echo "_ACEOF"
13925     } >conf$$subs.sh ||
13926     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13927     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13928 michael 5052 ac_delim='%!_!# '
13929     for ac_last_try in false false false false false :; do
13930 michael 5059 . ./conf$$subs.sh ||
13931     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13932 michael 5052
13933 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13934     if test $ac_delim_n = $ac_delim_num; then
13935 michael 5052 break
13936     elif $ac_last_try; then
13937 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13938 michael 5052 else
13939     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13940     fi
13941     done
13942 michael 5059 rm -f conf$$subs.sh
13943 michael 5052
13944 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13945     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13946     _ACEOF
13947     sed -n '
13948     h
13949     s/^/S["/; s/!.*/"]=/
13950     p
13951     g
13952     s/^[^!]*!//
13953     :repl
13954     t repl
13955     s/'"$ac_delim"'$//
13956     t delim
13957     :nl
13958     h
13959     s/\(.\{148\}\)..*/\1/
13960     t more1
13961     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13962     p
13963     n
13964     b repl
13965     :more1
13966     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13967     p
13968     g
13969     s/.\{148\}//
13970     t nl
13971     :delim
13972     h
13973     s/\(.\{148\}\)..*/\1/
13974     t more2
13975     s/["\\]/\\&/g; s/^/"/; s/$/"/
13976     p
13977     b
13978     :more2
13979     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13980     p
13981     g
13982     s/.\{148\}//
13983     t delim
13984     ' <conf$$subs.awk | sed '
13985     /^[^""]/{
13986     N
13987     s/\n//
13988     }
13989     ' >>$CONFIG_STATUS || ac_write_fail=1
13990     rm -f conf$$subs.awk
13991     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13992     _ACAWK
13993     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13994     for (key in S) S_is_set[key] = 1
13995     FS = ""
13996 michael 5052
13997 michael 5059 }
13998     {
13999     line = $ 0
14000     nfields = split(line, field, "@")
14001     substed = 0
14002     len = length(field[1])
14003     for (i = 2; i < nfields; i++) {
14004     key = field[i]
14005     keylen = length(key)
14006     if (S_is_set[key]) {
14007     value = S[key]
14008     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14009     len += length(value) + length(field[++i])
14010     substed = 1
14011     } else
14012     len += 1 + keylen
14013     }
14014    
14015     print line
14016     }
14017    
14018     _ACAWK
14019 michael 5052 _ACEOF
14020 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14021     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14022     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14023     else
14024     cat
14025     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14026     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14027 michael 5052 _ACEOF
14028    
14029 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14030     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14031     # trailing colons and then remove the whole line if VPATH becomes empty
14032     # (actually we leave an empty line to preserve line numbers).
14033     if test "x$srcdir" = x.; then
14034     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14035     h
14036     s///
14037     s/^/:/
14038     s/[ ]*$/:/
14039     s/:\$(srcdir):/:/g
14040     s/:\${srcdir}:/:/g
14041     s/:@srcdir@:/:/g
14042     s/^:*//
14043     s/:*$//
14044     x
14045     s/\(=[ ]*\).*/\1/
14046     G
14047     s/\n//
14048     s/^[^=]*=[ ]*$//
14049     }'
14050     fi
14051 michael 5052
14052 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14053     fi # test -n "$CONFIG_FILES"
14054    
14055     # Set up the scripts for CONFIG_HEADERS section.
14056     # No need to generate them if there are no CONFIG_HEADERS.
14057     # This happens for instance with `./config.status Makefile'.
14058     if test -n "$CONFIG_HEADERS"; then
14059     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14060     BEGIN {
14061 michael 5052 _ACEOF
14062    
14063 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
14064     # here-document in config.status, that substitutes the proper values into
14065     # config.h.in to produce config.h.
14066    
14067     # Create a delimiter string that does not exist in confdefs.h, to ease
14068     # handling of long lines.
14069     ac_delim='%!_!# '
14070     for ac_last_try in false false :; do
14071     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14072     if test -z "$ac_tt"; then
14073 michael 5052 break
14074     elif $ac_last_try; then
14075 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14076 michael 5052 else
14077     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14078     fi
14079     done
14080    
14081 michael 5059 # For the awk script, D is an array of macro values keyed by name,
14082     # likewise P contains macro parameters if any. Preserve backslash
14083     # newline sequences.
14084 michael 5052
14085 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14086     sed -n '
14087     s/.\{148\}/&'"$ac_delim"'/g
14088     t rset
14089     :rset
14090     s/^[ ]*#[ ]*define[ ][ ]*/ /
14091     t def
14092     d
14093     :def
14094     s/\\$//
14095     t bsnl
14096     s/["\\]/\\&/g
14097     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14098     D["\1"]=" \3"/p
14099     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14100     d
14101     :bsnl
14102     s/["\\]/\\&/g
14103     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14104     D["\1"]=" \3\\\\\\n"\\/p
14105     t cont
14106     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14107     t cont
14108     d
14109     :cont
14110     n
14111     s/.\{148\}/&'"$ac_delim"'/g
14112     t clear
14113     :clear
14114     s/\\$//
14115     t bsnlc
14116     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14117     d
14118     :bsnlc
14119     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14120     b cont
14121     ' <confdefs.h | sed '
14122     s/'"$ac_delim"'/"\\\
14123     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14124    
14125     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14126     for (key in D) D_is_set[key] = 1
14127     FS = ""
14128     }
14129     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14130     line = \$ 0
14131     split(line, arg, " ")
14132     if (arg[1] == "#") {
14133     defundef = arg[2]
14134     mac1 = arg[3]
14135     } else {
14136     defundef = substr(arg[1], 2)
14137     mac1 = arg[2]
14138     }
14139     split(mac1, mac2, "(") #)
14140     macro = mac2[1]
14141     prefix = substr(line, 1, index(line, defundef) - 1)
14142     if (D_is_set[macro]) {
14143     # Preserve the white space surrounding the "#".
14144     print prefix "define", macro P[macro] D[macro]
14145     next
14146     } else {
14147     # Replace #undef with comments. This is necessary, for example,
14148     # in the case of _POSIX_SOURCE, which is predefined and required
14149     # on some systems where configure will not decide to define it.
14150     if (defundef == "undef") {
14151     print "/*", prefix defundef, macro, "*/"
14152     next
14153     }
14154     }
14155     }
14156     { print }
14157     _ACAWK
14158 michael 5052 _ACEOF
14159 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14161     fi # test -n "$CONFIG_HEADERS"
14162 michael 5052
14163    
14164 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14165     shift
14166     for ac_tag
14167 michael 5052 do
14168     case $ac_tag in
14169     :[FHLC]) ac_mode=$ac_tag; continue;;
14170     esac
14171     case $ac_mode$ac_tag in
14172     :[FHL]*:*);;
14173 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14174 michael 5052 :[FH]-) ac_tag=-:-;;
14175     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14176     esac
14177     ac_save_IFS=$IFS
14178     IFS=:
14179     set x $ac_tag
14180     IFS=$ac_save_IFS
14181     shift
14182     ac_file=$1
14183     shift
14184    
14185     case $ac_mode in
14186     :L) ac_source=$1;;
14187     :[FH])
14188     ac_file_inputs=
14189     for ac_f
14190     do
14191     case $ac_f in
14192 michael 5059 -) ac_f="$ac_tmp/stdin";;
14193 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14194     # (if the path is not absolute). The absolute path cannot be DOS-style,
14195     # because $ac_f cannot contain `:'.
14196     test -f "$ac_f" ||
14197     case $ac_f in
14198     [\\/$]*) false;;
14199     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14200     esac ||
14201 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14202 michael 5052 esac
14203 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14204     as_fn_append ac_file_inputs " '$ac_f'"
14205 michael 5052 done
14206    
14207     # Let's still pretend it is `configure' which instantiates (i.e., don't
14208     # use $as_me), people would be surprised to read:
14209     # /* config.h. Generated by config.status. */
14210 michael 5059 configure_input='Generated from '`
14211     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14212     `' by configure.'
14213 michael 5052 if test x"$ac_file" != x-; then
14214     configure_input="$ac_file. $configure_input"
14215 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14216     $as_echo "$as_me: creating $ac_file" >&6;}
14217 michael 5052 fi
14218 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14219     case $configure_input in #(
14220     *\&* | *\|* | *\\* )
14221     ac_sed_conf_input=`$as_echo "$configure_input" |
14222     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14223     *) ac_sed_conf_input=$configure_input;;
14224     esac
14225 michael 5052
14226     case $ac_tag in
14227 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14228     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14229 michael 5052 esac
14230     ;;
14231     esac
14232    
14233     ac_dir=`$as_dirname -- "$ac_file" ||
14234     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14235     X"$ac_file" : 'X\(//\)[^/]' \| \
14236     X"$ac_file" : 'X\(//\)$' \| \
14237     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14238 michael 5059 $as_echo X"$ac_file" |
14239 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14240     s//\1/
14241     q
14242     }
14243     /^X\(\/\/\)[^/].*/{
14244     s//\1/
14245     q
14246     }
14247     /^X\(\/\/\)$/{
14248     s//\1/
14249     q
14250     }
14251     /^X\(\/\).*/{
14252     s//\1/
14253     q
14254     }
14255     s/.*/./; q'`
14256 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14257 michael 5052 ac_builddir=.
14258    
14259     case "$ac_dir" in
14260     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14261     *)
14262 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14263 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14264 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14265 michael 5052 case $ac_top_builddir_sub in
14266     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14267     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14268     esac ;;
14269     esac
14270     ac_abs_top_builddir=$ac_pwd
14271     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14272     # for backward compatibility:
14273     ac_top_builddir=$ac_top_build_prefix
14274    
14275     case $srcdir in
14276     .) # We are building in place.
14277     ac_srcdir=.
14278     ac_top_srcdir=$ac_top_builddir_sub
14279     ac_abs_top_srcdir=$ac_pwd ;;
14280     [\\/]* | ?:[\\/]* ) # Absolute name.
14281     ac_srcdir=$srcdir$ac_dir_suffix;
14282     ac_top_srcdir=$srcdir
14283     ac_abs_top_srcdir=$srcdir ;;
14284     *) # Relative name.
14285     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14286     ac_top_srcdir=$ac_top_build_prefix$srcdir
14287     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14288     esac
14289     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14290    
14291    
14292     case $ac_mode in
14293     :F)
14294     #
14295     # CONFIG_FILE
14296     #
14297    
14298     case $INSTALL in
14299     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14300     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14301     esac
14302 michael 5059 ac_MKDIR_P=$MKDIR_P
14303     case $MKDIR_P in
14304     [\\/$]* | ?:[\\/]* ) ;;
14305     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14306     esac
14307 michael 5052 _ACEOF
14308    
14309 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14310 michael 5052 # If the template does not know about datarootdir, expand it.
14311     # FIXME: This hack should be removed a few years after 2.60.
14312     ac_datarootdir_hack=; ac_datarootdir_seen=
14313 michael 5059 ac_sed_dataroot='
14314     /datarootdir/ {
14315 michael 5052 p
14316     q
14317     }
14318     /@datadir@/p
14319     /@docdir@/p
14320     /@infodir@/p
14321     /@localedir@/p
14322 michael 5059 /@mandir@/p'
14323     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14324 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14325     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14326 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14327     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14328 michael 5052 _ACEOF
14329 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14330 michael 5052 ac_datarootdir_hack='
14331     s&@datadir@&$datadir&g
14332     s&@docdir@&$docdir&g
14333     s&@infodir@&$infodir&g
14334     s&@localedir@&$localedir&g
14335     s&@mandir@&$mandir&g
14336 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14337 michael 5052 esac
14338     _ACEOF
14339    
14340     # Neutralize VPATH when `$srcdir' = `.'.
14341     # Shell code in configure.ac might set extrasub.
14342     # FIXME: do we really want to maintain this feature?
14343 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14344     ac_sed_extra="$ac_vpsub
14345 michael 5052 $extrasub
14346     _ACEOF
14347 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14348 michael 5052 :t
14349     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14350 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14351 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14352 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14353 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14354     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14355     s&@top_srcdir@&$ac_top_srcdir&;t t
14356     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14357     s&@builddir@&$ac_builddir&;t t
14358     s&@abs_builddir@&$ac_abs_builddir&;t t
14359     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14360     s&@INSTALL@&$ac_INSTALL&;t t
14361 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14362 michael 5052 $ac_datarootdir_hack
14363 michael 5059 "
14364     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14365     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14366 michael 5052
14367     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14368 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14369     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14370     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14372     which seems to be undefined. Please make sure it is defined" >&5
14373     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14374     which seems to be undefined. Please make sure it is defined" >&2;}
14375 michael 5052
14376 michael 5059 rm -f "$ac_tmp/stdin"
14377 michael 5052 case $ac_file in
14378 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14379     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14380     esac \
14381     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14382 michael 5052 ;;
14383     :H)
14384     #
14385     # CONFIG_HEADER
14386     #
14387     if test x"$ac_file" != x-; then
14388 michael 5059 {
14389     $as_echo "/* $configure_input */" \
14390     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14391     } >"$ac_tmp/config.h" \
14392     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14393     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14394     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14395     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14396 michael 5052 else
14397 michael 5059 rm -f "$ac_file"
14398     mv "$ac_tmp/config.h" "$ac_file" \
14399     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14400 michael 5052 fi
14401     else
14402 michael 5059 $as_echo "/* $configure_input */" \
14403     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14404     || as_fn_error $? "could not create -" "$LINENO" 5
14405 michael 5052 fi
14406 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14407     _am_arg="$ac_file"
14408 michael 5052 _am_stamp_count=1
14409     for _am_header in $config_headers :; do
14410     case $_am_header in
14411 michael 5059 $_am_arg | $_am_arg:* )
14412 michael 5052 break ;;
14413     * )
14414     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14415     esac
14416     done
14417 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14418     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14419     X"$_am_arg" : 'X\(//\)[^/]' \| \
14420     X"$_am_arg" : 'X\(//\)$' \| \
14421     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14422     $as_echo X"$_am_arg" |
14423 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14424     s//\1/
14425     q
14426     }
14427     /^X\(\/\/\)[^/].*/{
14428     s//\1/
14429     q
14430     }
14431     /^X\(\/\/\)$/{
14432     s//\1/
14433     q
14434     }
14435     /^X\(\/\).*/{
14436     s//\1/
14437     q
14438     }
14439     s/.*/./; q'`/stamp-h$_am_stamp_count
14440     ;;
14441    
14442 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14443     $as_echo "$as_me: executing $ac_file commands" >&6;}
14444 michael 5052 ;;
14445     esac
14446    
14447    
14448     case $ac_file$ac_mode in
14449 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14450     # Older Autoconf quotes --file arguments for eval, but not when files
14451     # are listed without --file. Let's play safe and only enable the eval
14452     # if we detect the quoting.
14453     case $CONFIG_FILES in
14454     *\'*) eval set x "$CONFIG_FILES" ;;
14455     *) set x $CONFIG_FILES ;;
14456     esac
14457     shift
14458     for mf
14459     do
14460     # Strip MF so we end up with the name of the file.
14461     mf=`echo "$mf" | sed -e 's/:.*$//'`
14462     # Check whether this is an Automake generated Makefile or not.
14463     # We used to match only the files named 'Makefile.in', but
14464     # some people rename them; so instead we look at the file content.
14465     # Grep'ing the first line is not enough: some people post-process
14466     # each Makefile.in and add a new line on top of each file to say so.
14467     # Grep'ing the whole file is not good either: AIX grep has a line
14468     # limit of 2048, but all sed's we know have understand at least 4000.
14469     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14470     dirpart=`$as_dirname -- "$mf" ||
14471 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14472     X"$mf" : 'X\(//\)[^/]' \| \
14473     X"$mf" : 'X\(//\)$' \| \
14474     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14475 michael 5059 $as_echo X"$mf" |
14476 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14477     s//\1/
14478     q
14479     }
14480     /^X\(\/\/\)[^/].*/{
14481     s//\1/
14482     q
14483     }
14484     /^X\(\/\/\)$/{
14485     s//\1/
14486     q
14487     }
14488     /^X\(\/\).*/{
14489     s//\1/
14490     q
14491     }
14492     s/.*/./; q'`
14493 michael 5059 else
14494     continue
14495     fi
14496     # Extract the definition of DEPDIR, am__include, and am__quote
14497     # from the Makefile without running 'make'.
14498     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14499     test -z "$DEPDIR" && continue
14500     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14501     test -z "$am__include" && continue
14502     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14503     # Find all dependency output files, they are included files with
14504     # $(DEPDIR) in their names. We invoke sed twice because it is the
14505     # simplest approach to changing $(DEPDIR) to its actual value in the
14506     # expansion.
14507     for file in `sed -n "
14508     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14509     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14510     # Make sure the directory exists.
14511     test -f "$dirpart/$file" && continue
14512     fdir=`$as_dirname -- "$file" ||
14513 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14514     X"$file" : 'X\(//\)[^/]' \| \
14515     X"$file" : 'X\(//\)$' \| \
14516     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14517 michael 5059 $as_echo X"$file" |
14518 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14519     s//\1/
14520     q
14521     }
14522     /^X\(\/\/\)[^/].*/{
14523     s//\1/
14524     q
14525     }
14526     /^X\(\/\/\)$/{
14527     s//\1/
14528     q
14529     }
14530     /^X\(\/\).*/{
14531     s//\1/
14532     q
14533     }
14534     s/.*/./; q'`
14535 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14536     # echo "creating $dirpart/$file"
14537     echo '# dummy' > "$dirpart/$file"
14538 michael 5052 done
14539     done
14540 michael 5059 }
14541 michael 5052 ;;
14542 michael 5059 "libtool":C)
14543 michael 5052
14544 michael 5059 # See if we are running on zsh, and set the options that allow our
14545     # commands through without removal of \ escapes.
14546     if test -n "${ZSH_VERSION+set}"; then
14547     setopt NO_GLOB_SUBST
14548     fi
14549    
14550     cfgfile=${ofile}T
14551     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14552     $RM "$cfgfile"
14553    
14554     cat <<_LT_EOF >> "$cfgfile"
14555     #! $SHELL
14556     # Generated automatically by $as_me ($PACKAGE) $VERSION
14557     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14558     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14559    
14560     # Provide generalized library-building support services.
14561     # Written by Gordon Matzigkeit, 1996
14562    
14563     # Copyright (C) 2014 Free Software Foundation, Inc.
14564     # This is free software; see the source for copying conditions. There is NO
14565     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14566    
14567     # GNU Libtool is free software; you can redistribute it and/or modify
14568     # it under the terms of the GNU General Public License as published by
14569     # the Free Software Foundation; either version 2 of of the License, or
14570     # (at your option) any later version.
14571     #
14572     # As a special exception to the GNU General Public License, if you
14573     # distribute this file as part of a program or library that is built
14574     # using GNU Libtool, you may include this file under the same
14575     # distribution terms that you use for the rest of that program.
14576     #
14577     # GNU Libtool is distributed in the hope that it will be useful, but
14578     # WITHOUT ANY WARRANTY; without even the implied warranty of
14579     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14580     # GNU General Public License for more details.
14581     #
14582     # You should have received a copy of the GNU General Public License
14583     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14584    
14585    
14586     # The names of the tagged configurations supported by this script.
14587     available_tags=''
14588    
14589 michael 5433 # Configured defaults for sys_lib_dlsearch_path munging.
14590 michael 5860 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14591 michael 5433
14592 michael 5059 # ### BEGIN LIBTOOL CONFIG
14593    
14594     # Which release of libtool.m4 was used?
14595     macro_version=$macro_version
14596     macro_revision=$macro_revision
14597    
14598     # Whether or not to build shared libraries.
14599     build_libtool_libs=$enable_shared
14600    
14601     # Whether or not to build static libraries.
14602     build_old_libs=$enable_static
14603    
14604     # What type of objects to build.
14605     pic_mode=$pic_mode
14606    
14607     # Whether or not to optimize for fast installation.
14608     fast_install=$enable_fast_install
14609    
14610     # Shared archive member basename,for filename based shared library versioning on AIX.
14611     shared_archive_member_spec=$shared_archive_member_spec
14612    
14613     # Shell to use when invoking shell scripts.
14614     SHELL=$lt_SHELL
14615    
14616     # An echo program that protects backslashes.
14617     ECHO=$lt_ECHO
14618    
14619     # The PATH separator for the build system.
14620     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14621    
14622     # The host system.
14623     host_alias=$host_alias
14624     host=$host
14625     host_os=$host_os
14626    
14627     # The build system.
14628     build_alias=$build_alias
14629     build=$build
14630     build_os=$build_os
14631    
14632     # A sed program that does not truncate output.
14633     SED=$lt_SED
14634    
14635     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14636     Xsed="\$SED -e 1s/^X//"
14637    
14638     # A grep program that handles long lines.
14639     GREP=$lt_GREP
14640    
14641     # An ERE matcher.
14642     EGREP=$lt_EGREP
14643    
14644     # A literal string matcher.
14645     FGREP=$lt_FGREP
14646    
14647     # A BSD- or MS-compatible name lister.
14648     NM=$lt_NM
14649    
14650     # Whether we need soft or hard links.
14651     LN_S=$lt_LN_S
14652    
14653     # What is the maximum length of a command?
14654     max_cmd_len=$max_cmd_len
14655    
14656     # Object file suffix (normally "o").
14657     objext=$ac_objext
14658    
14659     # Executable file suffix (normally "").
14660     exeext=$exeext
14661    
14662     # whether the shell understands "unset".
14663     lt_unset=$lt_unset
14664    
14665     # turn spaces into newlines.
14666     SP2NL=$lt_lt_SP2NL
14667    
14668     # turn newlines into spaces.
14669     NL2SP=$lt_lt_NL2SP
14670    
14671     # convert \$build file names to \$host format.
14672     to_host_file_cmd=$lt_cv_to_host_file_cmd
14673    
14674     # convert \$build files to toolchain format.
14675     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14676    
14677     # An object symbol dumper.
14678     OBJDUMP=$lt_OBJDUMP
14679    
14680     # Method to check whether dependent libraries are shared objects.
14681     deplibs_check_method=$lt_deplibs_check_method
14682    
14683     # Command to use when deplibs_check_method = "file_magic".
14684     file_magic_cmd=$lt_file_magic_cmd
14685    
14686     # How to find potential files when deplibs_check_method = "file_magic".
14687     file_magic_glob=$lt_file_magic_glob
14688    
14689     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14690     want_nocaseglob=$lt_want_nocaseglob
14691    
14692     # DLL creation program.
14693     DLLTOOL=$lt_DLLTOOL
14694    
14695     # Command to associate shared and link libraries.
14696     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14697    
14698     # The archiver.
14699     AR=$lt_AR
14700    
14701     # Flags to create an archive.
14702     AR_FLAGS=$lt_AR_FLAGS
14703    
14704     # How to feed a file listing to the archiver.
14705     archiver_list_spec=$lt_archiver_list_spec
14706    
14707     # A symbol stripping program.
14708     STRIP=$lt_STRIP
14709    
14710     # Commands used to install an old-style archive.
14711     RANLIB=$lt_RANLIB
14712     old_postinstall_cmds=$lt_old_postinstall_cmds
14713     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14714    
14715     # Whether to use a lock for old archive extraction.
14716     lock_old_archive_extraction=$lock_old_archive_extraction
14717    
14718     # A C compiler.
14719     LTCC=$lt_CC
14720    
14721     # LTCC compiler flags.
14722     LTCFLAGS=$lt_CFLAGS
14723    
14724     # Take the output of nm and produce a listing of raw symbols and C names.
14725     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14726    
14727     # Transform the output of nm in a proper C declaration.
14728     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14729    
14730     # Transform the output of nm into a list of symbols to manually relocate.
14731     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14732    
14733     # Transform the output of nm in a C name address pair.
14734     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14735    
14736     # Transform the output of nm in a C name address pair when lib prefix is needed.
14737     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14738    
14739     # The name lister interface.
14740     nm_interface=$lt_lt_cv_nm_interface
14741    
14742     # Specify filename containing input files for \$NM.
14743     nm_file_list_spec=$lt_nm_file_list_spec
14744    
14745     # The root where to search for dependent libraries,and where our libraries should be installed.
14746     lt_sysroot=$lt_sysroot
14747    
14748     # Command to truncate a binary pipe.
14749     lt_truncate_bin=$lt_lt_cv_truncate_bin
14750    
14751     # The name of the directory that contains temporary libtool files.
14752     objdir=$objdir
14753    
14754     # Used to examine libraries when file_magic_cmd begins with "file".
14755     MAGIC_CMD=$MAGIC_CMD
14756    
14757     # Must we lock files when doing compilation?
14758     need_locks=$lt_need_locks
14759    
14760     # Manifest tool.
14761     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14762    
14763     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14764     DSYMUTIL=$lt_DSYMUTIL
14765    
14766     # Tool to change global to local symbols on Mac OS X.
14767     NMEDIT=$lt_NMEDIT
14768    
14769     # Tool to manipulate fat objects and archives on Mac OS X.
14770     LIPO=$lt_LIPO
14771    
14772     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14773     OTOOL=$lt_OTOOL
14774    
14775     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14776     OTOOL64=$lt_OTOOL64
14777    
14778     # Old archive suffix (normally "a").
14779     libext=$libext
14780    
14781     # Shared library suffix (normally ".so").
14782     shrext_cmds=$lt_shrext_cmds
14783    
14784     # The commands to extract the exported symbol list from a shared archive.
14785     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14786    
14787     # Variables whose values should be saved in libtool wrapper scripts and
14788     # restored at link time.
14789     variables_saved_for_relink=$lt_variables_saved_for_relink
14790    
14791     # Do we need the "lib" prefix for modules?
14792     need_lib_prefix=$need_lib_prefix
14793    
14794     # Do we need a version for libraries?
14795     need_version=$need_version
14796    
14797     # Library versioning type.
14798     version_type=$version_type
14799    
14800     # Shared library runtime path variable.
14801     runpath_var=$runpath_var
14802    
14803     # Shared library path variable.
14804     shlibpath_var=$shlibpath_var
14805    
14806     # Is shlibpath searched before the hard-coded library search path?
14807     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14808    
14809     # Format of library name prefix.
14810     libname_spec=$lt_libname_spec
14811    
14812     # List of archive names. First name is the real one, the rest are links.
14813     # The last name is the one that the linker finds with -lNAME
14814     library_names_spec=$lt_library_names_spec
14815    
14816     # The coded name of the library, if different from the real name.
14817     soname_spec=$lt_soname_spec
14818    
14819     # Permission mode override for installation of shared libraries.
14820     install_override_mode=$lt_install_override_mode
14821    
14822     # Command to use after installation of a shared archive.
14823     postinstall_cmds=$lt_postinstall_cmds
14824    
14825     # Command to use after uninstallation of a shared archive.
14826     postuninstall_cmds=$lt_postuninstall_cmds
14827    
14828     # Commands used to finish a libtool library installation in a directory.
14829     finish_cmds=$lt_finish_cmds
14830    
14831     # As "finish_cmds", except a single script fragment to be evaled but
14832     # not shown.
14833     finish_eval=$lt_finish_eval
14834    
14835     # Whether we should hardcode library paths into libraries.
14836     hardcode_into_libs=$hardcode_into_libs
14837    
14838     # Compile-time system search path for libraries.
14839     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14840    
14841 michael 5860 # Detected run-time system search path for libraries.
14842     sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14843 michael 5059
14844 michael 5860 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14845     configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14846    
14847 michael 5059 # Whether dlopen is supported.
14848     dlopen_support=$enable_dlopen
14849    
14850     # Whether dlopen of programs is supported.
14851     dlopen_self=$enable_dlopen_self
14852    
14853     # Whether dlopen of statically linked programs is supported.
14854     dlopen_self_static=$enable_dlopen_self_static
14855    
14856     # Commands to strip libraries.
14857     old_striplib=$lt_old_striplib
14858     striplib=$lt_striplib
14859    
14860    
14861     # The linker used to build libraries.
14862     LD=$lt_LD
14863    
14864     # How to create reloadable object files.
14865     reload_flag=$lt_reload_flag
14866     reload_cmds=$lt_reload_cmds
14867    
14868     # Commands used to build an old-style archive.
14869     old_archive_cmds=$lt_old_archive_cmds
14870    
14871     # A language specific compiler.
14872     CC=$lt_compiler
14873    
14874     # Is the compiler the GNU compiler?
14875     with_gcc=$GCC
14876    
14877     # Compiler flag to turn off builtin functions.
14878     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14879    
14880     # Additional compiler flags for building library objects.
14881     pic_flag=$lt_lt_prog_compiler_pic
14882    
14883     # How to pass a linker flag through the compiler.
14884     wl=$lt_lt_prog_compiler_wl
14885    
14886     # Compiler flag to prevent dynamic linking.
14887     link_static_flag=$lt_lt_prog_compiler_static
14888    
14889     # Does compiler simultaneously support -c and -o options?
14890     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14891    
14892     # Whether or not to add -lc for building shared libraries.
14893     build_libtool_need_lc=$archive_cmds_need_lc
14894    
14895     # Whether or not to disallow shared libs when runtime libs are static.
14896     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14897    
14898     # Compiler flag to allow reflexive dlopens.
14899     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14900    
14901     # Compiler flag to generate shared objects directly from archives.
14902     whole_archive_flag_spec=$lt_whole_archive_flag_spec
14903    
14904     # Whether the compiler copes with passing no objects directly.
14905     compiler_needs_object=$lt_compiler_needs_object
14906    
14907     # Create an old-style archive from a shared archive.
14908     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14909    
14910     # Create a temporary old-style archive to link instead of a shared archive.
14911     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14912    
14913     # Commands used to build a shared archive.
14914     archive_cmds=$lt_archive_cmds
14915     archive_expsym_cmds=$lt_archive_expsym_cmds
14916    
14917     # Commands used to build a loadable module if different from building
14918     # a shared archive.
14919     module_cmds=$lt_module_cmds
14920     module_expsym_cmds=$lt_module_expsym_cmds
14921    
14922     # Whether we are building with GNU ld or not.
14923     with_gnu_ld=$lt_with_gnu_ld
14924    
14925     # Flag that allows shared libraries with undefined symbols to be built.
14926     allow_undefined_flag=$lt_allow_undefined_flag
14927    
14928     # Flag that enforces no undefined symbols.
14929     no_undefined_flag=$lt_no_undefined_flag
14930    
14931     # Flag to hardcode \$libdir into a binary during linking.
14932     # This must work even if \$libdir does not exist
14933     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14934    
14935     # Whether we need a single "-rpath" flag with a separated argument.
14936     hardcode_libdir_separator=$lt_hardcode_libdir_separator
14937    
14938     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14939     # DIR into the resulting binary.
14940     hardcode_direct=$hardcode_direct
14941    
14942     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14943     # DIR into the resulting binary and the resulting library dependency is
14944     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14945     # library is relocated.
14946     hardcode_direct_absolute=$hardcode_direct_absolute
14947    
14948     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14949     # into the resulting binary.
14950     hardcode_minus_L=$hardcode_minus_L
14951    
14952     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14953     # into the resulting binary.
14954     hardcode_shlibpath_var=$hardcode_shlibpath_var
14955    
14956     # Set to "yes" if building a shared library automatically hardcodes DIR
14957     # into the library and all subsequent libraries and executables linked
14958     # against it.
14959     hardcode_automatic=$hardcode_automatic
14960    
14961     # Set to yes if linker adds runtime paths of dependent libraries
14962     # to runtime path list.
14963     inherit_rpath=$inherit_rpath
14964    
14965     # Whether libtool must link a program against all its dependency libraries.
14966     link_all_deplibs=$link_all_deplibs
14967    
14968     # Set to "yes" if exported symbols are required.
14969     always_export_symbols=$always_export_symbols
14970    
14971     # The commands to list exported symbols.
14972     export_symbols_cmds=$lt_export_symbols_cmds
14973    
14974     # Symbols that should not be listed in the preloaded symbols.
14975     exclude_expsyms=$lt_exclude_expsyms
14976    
14977     # Symbols that must always be exported.
14978     include_expsyms=$lt_include_expsyms
14979    
14980     # Commands necessary for linking programs (against libraries) with templates.
14981     prelink_cmds=$lt_prelink_cmds
14982    
14983     # Commands necessary for finishing linking programs.
14984     postlink_cmds=$lt_postlink_cmds
14985    
14986     # Specify filename containing input files.
14987     file_list_spec=$lt_file_list_spec
14988    
14989     # How to hardcode a shared library path into an executable.
14990     hardcode_action=$hardcode_action
14991    
14992     # ### END LIBTOOL CONFIG
14993    
14994     _LT_EOF
14995    
14996 michael 5433 cat <<'_LT_EOF' >> "$cfgfile"
14997    
14998 michael 5860 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14999    
15000 michael 5433 # func_munge_path_list VARIABLE PATH
15001     # -----------------------------------
15002     # VARIABLE is name of variable containing _space_ separated list of
15003     # directories to be munged by the contents of PATH, which is string
15004     # having a format:
15005     # "DIR[:DIR]:"
15006     # string "DIR[ DIR]" will be prepended to VARIABLE
15007     # ":DIR[:DIR]"
15008     # string "DIR[ DIR]" will be appended to VARIABLE
15009     # "DIRP[:DIRP]::[DIRA:]DIRA"
15010     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15011     # "DIRA[ DIRA]" will be appended to VARIABLE
15012     # "DIR[:DIR]"
15013     # VARIABLE will be replaced by "DIR[ DIR]"
15014     func_munge_path_list ()
15015     {
15016     case x$2 in
15017     x)
15018     ;;
15019     *:)
15020 michael 5860 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15021 michael 5433 ;;
15022     x:*)
15023     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15024     ;;
15025     *::*)
15026     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15027     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15028     ;;
15029     *)
15030     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15031     ;;
15032     esac
15033     }
15034    
15035    
15036     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15037     func_cc_basename ()
15038     {
15039     for cc_temp in $*""; do
15040     case $cc_temp in
15041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15043     \-*) ;;
15044     *) break;;
15045     esac
15046     done
15047     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15048     }
15049    
15050    
15051 michael 5860 # ### END FUNCTIONS SHARED WITH CONFIGURE
15052    
15053 michael 5433 _LT_EOF
15054    
15055 michael 5059 case $host_os in
15056     aix3*)
15057     cat <<\_LT_EOF >> "$cfgfile"
15058     # AIX sometimes has problems with the GCC collect2 program. For some
15059     # reason, if we set the COLLECT_NAMES environment variable, the problems
15060     # vanish in a puff of smoke.
15061     if test set != "${COLLECT_NAMES+set}"; then
15062     COLLECT_NAMES=
15063     export COLLECT_NAMES
15064     fi
15065     _LT_EOF
15066     ;;
15067 michael 5052 esac
15068 michael 5059
15069    
15070     ltmain=$ac_aux_dir/ltmain.sh
15071    
15072    
15073     # We use sed instead of cat because bash on DJGPP gets confused if
15074     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15075     # text mode, it properly converts lines to CR/LF. This bash problem
15076     # is reportedly fixed, but why not run on old versions too?
15077     sed '$q' "$ltmain" >> "$cfgfile" \
15078     || (rm -f "$cfgfile"; exit 1)
15079    
15080     mv -f "$cfgfile" "$ofile" ||
15081     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15082     chmod +x "$ofile"
15083    
15084     ;;
15085    
15086     esac
15087 michael 5052 done # for ac_tag
15088    
15089    
15090 michael 5059 as_fn_exit 0
15091 michael 5052 _ACEOF
15092     ac_clean_files=$ac_clean_files_save
15093    
15094 michael 5059 test $ac_write_fail = 0 ||
15095     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15096 michael 5052
15097 michael 5059
15098 michael 5052 # configure is writing to config.log, and then calls config.status.
15099     # config.status does its own redirection, appending to config.log.
15100     # Unfortunately, on DOS this fails, as config.log is still kept open
15101     # by configure, so config.status won't be able to write to it; its
15102     # output is simply discarded. So we exec the FD to /dev/null,
15103     # effectively closing config.log, so it can be properly (re)opened and
15104     # appended to by config.status. When coming back to configure, we
15105     # need to make the FD available again.
15106     if test "$no_create" != yes; then
15107     ac_cs_success=:
15108     ac_config_status_args=
15109     test "$silent" = yes &&
15110     ac_config_status_args="$ac_config_status_args --quiet"
15111     exec 5>/dev/null
15112     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15113     exec 5>>config.log
15114     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15115     # would make configure fail if this is the last instruction.
15116 michael 5059 $ac_cs_success || as_fn_exit 1
15117 michael 5052 fi
15118 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15120     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15121     fi
15122 michael 5052
15123    
15124    
15125 michael 5110 echo "###############################################################################"
15126     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
15127 michael 5052 echo
15128 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
15129 michael 5052 echo " ./configure --prefix=DIRECTORY"
15130 michael 5110 echo "###############################################################################"

Properties

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