cannam@154
|
1 #! /bin/sh
|
cannam@154
|
2 # Guess values for system-dependent variables and create Makefiles.
|
cannam@154
|
3 # Generated by GNU Autoconf 2.69 for opusfile 0.9.
|
cannam@154
|
4 #
|
cannam@154
|
5 # Report bugs to <opus@xiph.org>.
|
cannam@154
|
6 #
|
cannam@154
|
7 #
|
cannam@154
|
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
|
cannam@154
|
9 #
|
cannam@154
|
10 #
|
cannam@154
|
11 # This configure script is free software; the Free Software Foundation
|
cannam@154
|
12 # gives unlimited permission to copy, distribute and modify it.
|
cannam@154
|
13 ## -------------------- ##
|
cannam@154
|
14 ## M4sh Initialization. ##
|
cannam@154
|
15 ## -------------------- ##
|
cannam@154
|
16
|
cannam@154
|
17 # Be more Bourne compatible
|
cannam@154
|
18 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@154
|
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
cannam@154
|
20 emulate sh
|
cannam@154
|
21 NULLCMD=:
|
cannam@154
|
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
cannam@154
|
23 # is contrary to our usage. Disable this feature.
|
cannam@154
|
24 alias -g '${1+"$@"}'='"$@"'
|
cannam@154
|
25 setopt NO_GLOB_SUBST
|
cannam@154
|
26 else
|
cannam@154
|
27 case `(set -o) 2>/dev/null` in #(
|
cannam@154
|
28 *posix*) :
|
cannam@154
|
29 set -o posix ;; #(
|
cannam@154
|
30 *) :
|
cannam@154
|
31 ;;
|
cannam@154
|
32 esac
|
cannam@154
|
33 fi
|
cannam@154
|
34
|
cannam@154
|
35
|
cannam@154
|
36 as_nl='
|
cannam@154
|
37 '
|
cannam@154
|
38 export as_nl
|
cannam@154
|
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
cannam@154
|
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
cannam@154
|
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
cannam@154
|
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
cannam@154
|
44 # but without wasting forks for bash or zsh.
|
cannam@154
|
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
cannam@154
|
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
cannam@154
|
47 as_echo='print -r --'
|
cannam@154
|
48 as_echo_n='print -rn --'
|
cannam@154
|
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
cannam@154
|
50 as_echo='printf %s\n'
|
cannam@154
|
51 as_echo_n='printf %s'
|
cannam@154
|
52 else
|
cannam@154
|
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
cannam@154
|
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
cannam@154
|
55 as_echo_n='/usr/ucb/echo -n'
|
cannam@154
|
56 else
|
cannam@154
|
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
cannam@154
|
58 as_echo_n_body='eval
|
cannam@154
|
59 arg=$1;
|
cannam@154
|
60 case $arg in #(
|
cannam@154
|
61 *"$as_nl"*)
|
cannam@154
|
62 expr "X$arg" : "X\\(.*\\)$as_nl";
|
cannam@154
|
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
cannam@154
|
64 esac;
|
cannam@154
|
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
cannam@154
|
66 '
|
cannam@154
|
67 export as_echo_n_body
|
cannam@154
|
68 as_echo_n='sh -c $as_echo_n_body as_echo'
|
cannam@154
|
69 fi
|
cannam@154
|
70 export as_echo_body
|
cannam@154
|
71 as_echo='sh -c $as_echo_body as_echo'
|
cannam@154
|
72 fi
|
cannam@154
|
73
|
cannam@154
|
74 # The user is always right.
|
cannam@154
|
75 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@154
|
76 PATH_SEPARATOR=:
|
cannam@154
|
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
cannam@154
|
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
cannam@154
|
79 PATH_SEPARATOR=';'
|
cannam@154
|
80 }
|
cannam@154
|
81 fi
|
cannam@154
|
82
|
cannam@154
|
83
|
cannam@154
|
84 # IFS
|
cannam@154
|
85 # We need space, tab and new line, in precisely that order. Quoting is
|
cannam@154
|
86 # there to prevent editors from complaining about space-tab.
|
cannam@154
|
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
cannam@154
|
88 # splitting by setting IFS to empty value.)
|
cannam@154
|
89 IFS=" "" $as_nl"
|
cannam@154
|
90
|
cannam@154
|
91 # Find who we are. Look in the path if we contain no directory separator.
|
cannam@154
|
92 as_myself=
|
cannam@154
|
93 case $0 in #((
|
cannam@154
|
94 *[\\/]* ) as_myself=$0 ;;
|
cannam@154
|
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
96 for as_dir in $PATH
|
cannam@154
|
97 do
|
cannam@154
|
98 IFS=$as_save_IFS
|
cannam@154
|
99 test -z "$as_dir" && as_dir=.
|
cannam@154
|
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@154
|
101 done
|
cannam@154
|
102 IFS=$as_save_IFS
|
cannam@154
|
103
|
cannam@154
|
104 ;;
|
cannam@154
|
105 esac
|
cannam@154
|
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@154
|
107 # in which case we are not to be found in the path.
|
cannam@154
|
108 if test "x$as_myself" = x; then
|
cannam@154
|
109 as_myself=$0
|
cannam@154
|
110 fi
|
cannam@154
|
111 if test ! -f "$as_myself"; then
|
cannam@154
|
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
cannam@154
|
113 exit 1
|
cannam@154
|
114 fi
|
cannam@154
|
115
|
cannam@154
|
116 # Unset variables that we do not need and which cause bugs (e.g. in
|
cannam@154
|
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
cannam@154
|
118 # suppresses any "Segmentation fault" message there. '((' could
|
cannam@154
|
119 # trigger a bug in pdksh 5.2.14.
|
cannam@154
|
120 for as_var in BASH_ENV ENV MAIL MAILPATH
|
cannam@154
|
121 do eval test x\${$as_var+set} = xset \
|
cannam@154
|
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
cannam@154
|
123 done
|
cannam@154
|
124 PS1='$ '
|
cannam@154
|
125 PS2='> '
|
cannam@154
|
126 PS4='+ '
|
cannam@154
|
127
|
cannam@154
|
128 # NLS nuisances.
|
cannam@154
|
129 LC_ALL=C
|
cannam@154
|
130 export LC_ALL
|
cannam@154
|
131 LANGUAGE=C
|
cannam@154
|
132 export LANGUAGE
|
cannam@154
|
133
|
cannam@154
|
134 # CDPATH.
|
cannam@154
|
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@154
|
136
|
cannam@154
|
137 # Use a proper internal environment variable to ensure we don't fall
|
cannam@154
|
138 # into an infinite loop, continuously re-executing ourselves.
|
cannam@154
|
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
|
cannam@154
|
140 _as_can_reexec=no; export _as_can_reexec;
|
cannam@154
|
141 # We cannot yet assume a decent shell, so we have to provide a
|
cannam@154
|
142 # neutralization value for shells without unset; and this also
|
cannam@154
|
143 # works around shells that cannot unset nonexistent variables.
|
cannam@154
|
144 # Preserve -v and -x to the replacement shell.
|
cannam@154
|
145 BASH_ENV=/dev/null
|
cannam@154
|
146 ENV=/dev/null
|
cannam@154
|
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
cannam@154
|
148 case $- in # ((((
|
cannam@154
|
149 *v*x* | *x*v* ) as_opts=-vx ;;
|
cannam@154
|
150 *v* ) as_opts=-v ;;
|
cannam@154
|
151 *x* ) as_opts=-x ;;
|
cannam@154
|
152 * ) as_opts= ;;
|
cannam@154
|
153 esac
|
cannam@154
|
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
cannam@154
|
155 # Admittedly, this is quite paranoid, since all the known shells bail
|
cannam@154
|
156 # out after a failed `exec'.
|
cannam@154
|
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
cannam@154
|
158 as_fn_exit 255
|
cannam@154
|
159 fi
|
cannam@154
|
160 # We don't want this to propagate to other subprocesses.
|
cannam@154
|
161 { _as_can_reexec=; unset _as_can_reexec;}
|
cannam@154
|
162 if test "x$CONFIG_SHELL" = x; then
|
cannam@154
|
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
|
cannam@154
|
164 emulate sh
|
cannam@154
|
165 NULLCMD=:
|
cannam@154
|
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
|
cannam@154
|
167 # is contrary to our usage. Disable this feature.
|
cannam@154
|
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
|
cannam@154
|
169 setopt NO_GLOB_SUBST
|
cannam@154
|
170 else
|
cannam@154
|
171 case \`(set -o) 2>/dev/null\` in #(
|
cannam@154
|
172 *posix*) :
|
cannam@154
|
173 set -o posix ;; #(
|
cannam@154
|
174 *) :
|
cannam@154
|
175 ;;
|
cannam@154
|
176 esac
|
cannam@154
|
177 fi
|
cannam@154
|
178 "
|
cannam@154
|
179 as_required="as_fn_return () { (exit \$1); }
|
cannam@154
|
180 as_fn_success () { as_fn_return 0; }
|
cannam@154
|
181 as_fn_failure () { as_fn_return 1; }
|
cannam@154
|
182 as_fn_ret_success () { return 0; }
|
cannam@154
|
183 as_fn_ret_failure () { return 1; }
|
cannam@154
|
184
|
cannam@154
|
185 exitcode=0
|
cannam@154
|
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
|
cannam@154
|
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
|
cannam@154
|
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
|
cannam@154
|
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
|
cannam@154
|
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
|
cannam@154
|
191
|
cannam@154
|
192 else
|
cannam@154
|
193 exitcode=1; echo positional parameters were not saved.
|
cannam@154
|
194 fi
|
cannam@154
|
195 test x\$exitcode = x0 || exit 1
|
cannam@154
|
196 test -x / || exit 1"
|
cannam@154
|
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
|
cannam@154
|
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
|
cannam@154
|
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
|
cannam@154
|
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
|
cannam@154
|
201 test \$(( 1 + 1 )) = 2 || exit 1
|
cannam@154
|
202
|
cannam@154
|
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
|
cannam@154
|
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
cannam@154
|
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
|
cannam@154
|
207 PATH=/empty FPATH=/empty; export PATH FPATH
|
cannam@154
|
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
|
cannam@154
|
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
|
cannam@154
|
210 if (eval "$as_required") 2>/dev/null; then :
|
cannam@154
|
211 as_have_required=yes
|
cannam@154
|
212 else
|
cannam@154
|
213 as_have_required=no
|
cannam@154
|
214 fi
|
cannam@154
|
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
|
cannam@154
|
216
|
cannam@154
|
217 else
|
cannam@154
|
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
219 as_found=false
|
cannam@154
|
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
cannam@154
|
221 do
|
cannam@154
|
222 IFS=$as_save_IFS
|
cannam@154
|
223 test -z "$as_dir" && as_dir=.
|
cannam@154
|
224 as_found=:
|
cannam@154
|
225 case $as_dir in #(
|
cannam@154
|
226 /*)
|
cannam@154
|
227 for as_base in sh bash ksh sh5; do
|
cannam@154
|
228 # Try only shells that exist, to save several forks.
|
cannam@154
|
229 as_shell=$as_dir/$as_base
|
cannam@154
|
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
cannam@154
|
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
cannam@154
|
232 CONFIG_SHELL=$as_shell as_have_required=yes
|
cannam@154
|
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
|
cannam@154
|
234 break 2
|
cannam@154
|
235 fi
|
cannam@154
|
236 fi
|
cannam@154
|
237 done;;
|
cannam@154
|
238 esac
|
cannam@154
|
239 as_found=false
|
cannam@154
|
240 done
|
cannam@154
|
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
|
cannam@154
|
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
|
cannam@154
|
243 CONFIG_SHELL=$SHELL as_have_required=yes
|
cannam@154
|
244 fi; }
|
cannam@154
|
245 IFS=$as_save_IFS
|
cannam@154
|
246
|
cannam@154
|
247
|
cannam@154
|
248 if test "x$CONFIG_SHELL" != x; then :
|
cannam@154
|
249 export CONFIG_SHELL
|
cannam@154
|
250 # We cannot yet assume a decent shell, so we have to provide a
|
cannam@154
|
251 # neutralization value for shells without unset; and this also
|
cannam@154
|
252 # works around shells that cannot unset nonexistent variables.
|
cannam@154
|
253 # Preserve -v and -x to the replacement shell.
|
cannam@154
|
254 BASH_ENV=/dev/null
|
cannam@154
|
255 ENV=/dev/null
|
cannam@154
|
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
|
cannam@154
|
257 case $- in # ((((
|
cannam@154
|
258 *v*x* | *x*v* ) as_opts=-vx ;;
|
cannam@154
|
259 *v* ) as_opts=-v ;;
|
cannam@154
|
260 *x* ) as_opts=-x ;;
|
cannam@154
|
261 * ) as_opts= ;;
|
cannam@154
|
262 esac
|
cannam@154
|
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
|
cannam@154
|
264 # Admittedly, this is quite paranoid, since all the known shells bail
|
cannam@154
|
265 # out after a failed `exec'.
|
cannam@154
|
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
|
cannam@154
|
267 exit 255
|
cannam@154
|
268 fi
|
cannam@154
|
269
|
cannam@154
|
270 if test x$as_have_required = xno; then :
|
cannam@154
|
271 $as_echo "$0: This script requires a shell more modern than all"
|
cannam@154
|
272 $as_echo "$0: the shells that I found on your system."
|
cannam@154
|
273 if test x${ZSH_VERSION+set} = xset ; then
|
cannam@154
|
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
|
cannam@154
|
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
|
cannam@154
|
276 else
|
cannam@154
|
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and opus@xiph.org
|
cannam@154
|
278 $0: about your system, including any error possibly output
|
cannam@154
|
279 $0: before this message. Then install a modern shell, or
|
cannam@154
|
280 $0: manually run the script under such a shell if you do
|
cannam@154
|
281 $0: have one."
|
cannam@154
|
282 fi
|
cannam@154
|
283 exit 1
|
cannam@154
|
284 fi
|
cannam@154
|
285 fi
|
cannam@154
|
286 fi
|
cannam@154
|
287 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@154
|
288 export SHELL
|
cannam@154
|
289 # Unset more variables known to interfere with behavior of common tools.
|
cannam@154
|
290 CLICOLOR_FORCE= GREP_OPTIONS=
|
cannam@154
|
291 unset CLICOLOR_FORCE GREP_OPTIONS
|
cannam@154
|
292
|
cannam@154
|
293 ## --------------------- ##
|
cannam@154
|
294 ## M4sh Shell Functions. ##
|
cannam@154
|
295 ## --------------------- ##
|
cannam@154
|
296 # as_fn_unset VAR
|
cannam@154
|
297 # ---------------
|
cannam@154
|
298 # Portably unset VAR.
|
cannam@154
|
299 as_fn_unset ()
|
cannam@154
|
300 {
|
cannam@154
|
301 { eval $1=; unset $1;}
|
cannam@154
|
302 }
|
cannam@154
|
303 as_unset=as_fn_unset
|
cannam@154
|
304
|
cannam@154
|
305 # as_fn_set_status STATUS
|
cannam@154
|
306 # -----------------------
|
cannam@154
|
307 # Set $? to STATUS, without forking.
|
cannam@154
|
308 as_fn_set_status ()
|
cannam@154
|
309 {
|
cannam@154
|
310 return $1
|
cannam@154
|
311 } # as_fn_set_status
|
cannam@154
|
312
|
cannam@154
|
313 # as_fn_exit STATUS
|
cannam@154
|
314 # -----------------
|
cannam@154
|
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
cannam@154
|
316 as_fn_exit ()
|
cannam@154
|
317 {
|
cannam@154
|
318 set +e
|
cannam@154
|
319 as_fn_set_status $1
|
cannam@154
|
320 exit $1
|
cannam@154
|
321 } # as_fn_exit
|
cannam@154
|
322
|
cannam@154
|
323 # as_fn_mkdir_p
|
cannam@154
|
324 # -------------
|
cannam@154
|
325 # Create "$as_dir" as a directory, including parents if necessary.
|
cannam@154
|
326 as_fn_mkdir_p ()
|
cannam@154
|
327 {
|
cannam@154
|
328
|
cannam@154
|
329 case $as_dir in #(
|
cannam@154
|
330 -*) as_dir=./$as_dir;;
|
cannam@154
|
331 esac
|
cannam@154
|
332 test -d "$as_dir" || eval $as_mkdir_p || {
|
cannam@154
|
333 as_dirs=
|
cannam@154
|
334 while :; do
|
cannam@154
|
335 case $as_dir in #(
|
cannam@154
|
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
cannam@154
|
337 *) as_qdir=$as_dir;;
|
cannam@154
|
338 esac
|
cannam@154
|
339 as_dirs="'$as_qdir' $as_dirs"
|
cannam@154
|
340 as_dir=`$as_dirname -- "$as_dir" ||
|
cannam@154
|
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
342 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@154
|
343 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@154
|
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
345 $as_echo X"$as_dir" |
|
cannam@154
|
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
347 s//\1/
|
cannam@154
|
348 q
|
cannam@154
|
349 }
|
cannam@154
|
350 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
351 s//\1/
|
cannam@154
|
352 q
|
cannam@154
|
353 }
|
cannam@154
|
354 /^X\(\/\/\)$/{
|
cannam@154
|
355 s//\1/
|
cannam@154
|
356 q
|
cannam@154
|
357 }
|
cannam@154
|
358 /^X\(\/\).*/{
|
cannam@154
|
359 s//\1/
|
cannam@154
|
360 q
|
cannam@154
|
361 }
|
cannam@154
|
362 s/.*/./; q'`
|
cannam@154
|
363 test -d "$as_dir" && break
|
cannam@154
|
364 done
|
cannam@154
|
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
cannam@154
|
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
cannam@154
|
367
|
cannam@154
|
368
|
cannam@154
|
369 } # as_fn_mkdir_p
|
cannam@154
|
370
|
cannam@154
|
371 # as_fn_executable_p FILE
|
cannam@154
|
372 # -----------------------
|
cannam@154
|
373 # Test if FILE is an executable regular file.
|
cannam@154
|
374 as_fn_executable_p ()
|
cannam@154
|
375 {
|
cannam@154
|
376 test -f "$1" && test -x "$1"
|
cannam@154
|
377 } # as_fn_executable_p
|
cannam@154
|
378 # as_fn_append VAR VALUE
|
cannam@154
|
379 # ----------------------
|
cannam@154
|
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
cannam@154
|
381 # advantage of any shell optimizations that allow amortized linear growth over
|
cannam@154
|
382 # repeated appends, instead of the typical quadratic growth present in naive
|
cannam@154
|
383 # implementations.
|
cannam@154
|
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
cannam@154
|
385 eval 'as_fn_append ()
|
cannam@154
|
386 {
|
cannam@154
|
387 eval $1+=\$2
|
cannam@154
|
388 }'
|
cannam@154
|
389 else
|
cannam@154
|
390 as_fn_append ()
|
cannam@154
|
391 {
|
cannam@154
|
392 eval $1=\$$1\$2
|
cannam@154
|
393 }
|
cannam@154
|
394 fi # as_fn_append
|
cannam@154
|
395
|
cannam@154
|
396 # as_fn_arith ARG...
|
cannam@154
|
397 # ------------------
|
cannam@154
|
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
cannam@154
|
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
cannam@154
|
400 # must be portable across $(()) and expr.
|
cannam@154
|
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
cannam@154
|
402 eval 'as_fn_arith ()
|
cannam@154
|
403 {
|
cannam@154
|
404 as_val=$(( $* ))
|
cannam@154
|
405 }'
|
cannam@154
|
406 else
|
cannam@154
|
407 as_fn_arith ()
|
cannam@154
|
408 {
|
cannam@154
|
409 as_val=`expr "$@" || test $? -eq 1`
|
cannam@154
|
410 }
|
cannam@154
|
411 fi # as_fn_arith
|
cannam@154
|
412
|
cannam@154
|
413
|
cannam@154
|
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
cannam@154
|
415 # ----------------------------------------
|
cannam@154
|
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
cannam@154
|
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
cannam@154
|
418 # script with STATUS, using 1 if that was 0.
|
cannam@154
|
419 as_fn_error ()
|
cannam@154
|
420 {
|
cannam@154
|
421 as_status=$1; test $as_status -eq 0 && as_status=1
|
cannam@154
|
422 if test "$4"; then
|
cannam@154
|
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
cannam@154
|
425 fi
|
cannam@154
|
426 $as_echo "$as_me: error: $2" >&2
|
cannam@154
|
427 as_fn_exit $as_status
|
cannam@154
|
428 } # as_fn_error
|
cannam@154
|
429
|
cannam@154
|
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@154
|
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@154
|
432 as_expr=expr
|
cannam@154
|
433 else
|
cannam@154
|
434 as_expr=false
|
cannam@154
|
435 fi
|
cannam@154
|
436
|
cannam@154
|
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
cannam@154
|
438 as_basename=basename
|
cannam@154
|
439 else
|
cannam@154
|
440 as_basename=false
|
cannam@154
|
441 fi
|
cannam@154
|
442
|
cannam@154
|
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
cannam@154
|
444 as_dirname=dirname
|
cannam@154
|
445 else
|
cannam@154
|
446 as_dirname=false
|
cannam@154
|
447 fi
|
cannam@154
|
448
|
cannam@154
|
449 as_me=`$as_basename -- "$0" ||
|
cannam@154
|
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@154
|
451 X"$0" : 'X\(//\)$' \| \
|
cannam@154
|
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
453 $as_echo X/"$0" |
|
cannam@154
|
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
cannam@154
|
455 s//\1/
|
cannam@154
|
456 q
|
cannam@154
|
457 }
|
cannam@154
|
458 /^X\/\(\/\/\)$/{
|
cannam@154
|
459 s//\1/
|
cannam@154
|
460 q
|
cannam@154
|
461 }
|
cannam@154
|
462 /^X\/\(\/\).*/{
|
cannam@154
|
463 s//\1/
|
cannam@154
|
464 q
|
cannam@154
|
465 }
|
cannam@154
|
466 s/.*/./; q'`
|
cannam@154
|
467
|
cannam@154
|
468 # Avoid depending upon Character Ranges.
|
cannam@154
|
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@154
|
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@154
|
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@154
|
472 as_cr_digits='0123456789'
|
cannam@154
|
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@154
|
474
|
cannam@154
|
475
|
cannam@154
|
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
cannam@154
|
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
cannam@154
|
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
cannam@154
|
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
cannam@154
|
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
cannam@154
|
481 sed -n '
|
cannam@154
|
482 p
|
cannam@154
|
483 /[$]LINENO/=
|
cannam@154
|
484 ' <$as_myself |
|
cannam@154
|
485 sed '
|
cannam@154
|
486 s/[$]LINENO.*/&-/
|
cannam@154
|
487 t lineno
|
cannam@154
|
488 b
|
cannam@154
|
489 :lineno
|
cannam@154
|
490 N
|
cannam@154
|
491 :loop
|
cannam@154
|
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
cannam@154
|
493 t loop
|
cannam@154
|
494 s/-\n.*//
|
cannam@154
|
495 ' >$as_me.lineno &&
|
cannam@154
|
496 chmod +x "$as_me.lineno" ||
|
cannam@154
|
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
cannam@154
|
498
|
cannam@154
|
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
|
cannam@154
|
500 # already done that, so ensure we don't try to do so again and fall
|
cannam@154
|
501 # in an infinite loop. This has already happened in practice.
|
cannam@154
|
502 _as_can_reexec=no; export _as_can_reexec
|
cannam@154
|
503 # Don't try to exec as it changes $[0], causing all sort of problems
|
cannam@154
|
504 # (the dirname of $[0] is not the place where we might find the
|
cannam@154
|
505 # original and so on. Autoconf is especially sensitive to this).
|
cannam@154
|
506 . "./$as_me.lineno"
|
cannam@154
|
507 # Exit status is that of the last command.
|
cannam@154
|
508 exit
|
cannam@154
|
509 }
|
cannam@154
|
510
|
cannam@154
|
511 ECHO_C= ECHO_N= ECHO_T=
|
cannam@154
|
512 case `echo -n x` in #(((((
|
cannam@154
|
513 -n*)
|
cannam@154
|
514 case `echo 'xy\c'` in
|
cannam@154
|
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
cannam@154
|
516 xy) ECHO_C='\c';;
|
cannam@154
|
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
cannam@154
|
518 ECHO_T=' ';;
|
cannam@154
|
519 esac;;
|
cannam@154
|
520 *)
|
cannam@154
|
521 ECHO_N='-n';;
|
cannam@154
|
522 esac
|
cannam@154
|
523
|
cannam@154
|
524 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@154
|
525 if test -d conf$$.dir; then
|
cannam@154
|
526 rm -f conf$$.dir/conf$$.file
|
cannam@154
|
527 else
|
cannam@154
|
528 rm -f conf$$.dir
|
cannam@154
|
529 mkdir conf$$.dir 2>/dev/null
|
cannam@154
|
530 fi
|
cannam@154
|
531 if (echo >conf$$.file) 2>/dev/null; then
|
cannam@154
|
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@154
|
533 as_ln_s='ln -s'
|
cannam@154
|
534 # ... but there are two gotchas:
|
cannam@154
|
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
cannam@154
|
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
cannam@154
|
537 # In both cases, we have to default to `cp -pR'.
|
cannam@154
|
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
cannam@154
|
539 as_ln_s='cp -pR'
|
cannam@154
|
540 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@154
|
541 as_ln_s=ln
|
cannam@154
|
542 else
|
cannam@154
|
543 as_ln_s='cp -pR'
|
cannam@154
|
544 fi
|
cannam@154
|
545 else
|
cannam@154
|
546 as_ln_s='cp -pR'
|
cannam@154
|
547 fi
|
cannam@154
|
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
cannam@154
|
549 rmdir conf$$.dir 2>/dev/null
|
cannam@154
|
550
|
cannam@154
|
551 if mkdir -p . 2>/dev/null; then
|
cannam@154
|
552 as_mkdir_p='mkdir -p "$as_dir"'
|
cannam@154
|
553 else
|
cannam@154
|
554 test -d ./-p && rmdir ./-p
|
cannam@154
|
555 as_mkdir_p=false
|
cannam@154
|
556 fi
|
cannam@154
|
557
|
cannam@154
|
558 as_test_x='test -x'
|
cannam@154
|
559 as_executable_p=as_fn_executable_p
|
cannam@154
|
560
|
cannam@154
|
561 # Sed expression to map a string onto a valid CPP name.
|
cannam@154
|
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@154
|
563
|
cannam@154
|
564 # Sed expression to map a string onto a valid variable name.
|
cannam@154
|
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@154
|
566
|
cannam@154
|
567 SHELL=${CONFIG_SHELL-/bin/sh}
|
cannam@154
|
568
|
cannam@154
|
569
|
cannam@154
|
570 test -n "$DJDIR" || exec 7<&0 </dev/null
|
cannam@154
|
571 exec 6>&1
|
cannam@154
|
572
|
cannam@154
|
573 # Name of the host.
|
cannam@154
|
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
|
cannam@154
|
575 # so uname gets run too.
|
cannam@154
|
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@154
|
577
|
cannam@154
|
578 #
|
cannam@154
|
579 # Initializations.
|
cannam@154
|
580 #
|
cannam@154
|
581 ac_default_prefix=/usr/local
|
cannam@154
|
582 ac_clean_files=
|
cannam@154
|
583 ac_config_libobj_dir=.
|
cannam@154
|
584 LIBOBJS=
|
cannam@154
|
585 cross_compiling=no
|
cannam@154
|
586 subdirs=
|
cannam@154
|
587 MFLAGS=
|
cannam@154
|
588 MAKEFLAGS=
|
cannam@154
|
589
|
cannam@154
|
590 # Identity of this package.
|
cannam@154
|
591 PACKAGE_NAME='opusfile'
|
cannam@154
|
592 PACKAGE_TARNAME='opusfile'
|
cannam@154
|
593 PACKAGE_VERSION='0.9'
|
cannam@154
|
594 PACKAGE_STRING='opusfile 0.9'
|
cannam@154
|
595 PACKAGE_BUGREPORT='opus@xiph.org'
|
cannam@154
|
596 PACKAGE_URL=''
|
cannam@154
|
597
|
cannam@154
|
598 ac_unique_file="src/opusfile.c"
|
cannam@154
|
599 # Factoring default headers for most tests.
|
cannam@154
|
600 ac_includes_default="\
|
cannam@154
|
601 #include <stdio.h>
|
cannam@154
|
602 #ifdef HAVE_SYS_TYPES_H
|
cannam@154
|
603 # include <sys/types.h>
|
cannam@154
|
604 #endif
|
cannam@154
|
605 #ifdef HAVE_SYS_STAT_H
|
cannam@154
|
606 # include <sys/stat.h>
|
cannam@154
|
607 #endif
|
cannam@154
|
608 #ifdef STDC_HEADERS
|
cannam@154
|
609 # include <stdlib.h>
|
cannam@154
|
610 # include <stddef.h>
|
cannam@154
|
611 #else
|
cannam@154
|
612 # ifdef HAVE_STDLIB_H
|
cannam@154
|
613 # include <stdlib.h>
|
cannam@154
|
614 # endif
|
cannam@154
|
615 #endif
|
cannam@154
|
616 #ifdef HAVE_STRING_H
|
cannam@154
|
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
cannam@154
|
618 # include <memory.h>
|
cannam@154
|
619 # endif
|
cannam@154
|
620 # include <string.h>
|
cannam@154
|
621 #endif
|
cannam@154
|
622 #ifdef HAVE_STRINGS_H
|
cannam@154
|
623 # include <strings.h>
|
cannam@154
|
624 #endif
|
cannam@154
|
625 #ifdef HAVE_INTTYPES_H
|
cannam@154
|
626 # include <inttypes.h>
|
cannam@154
|
627 #endif
|
cannam@154
|
628 #ifdef HAVE_STDINT_H
|
cannam@154
|
629 # include <stdint.h>
|
cannam@154
|
630 #endif
|
cannam@154
|
631 #ifdef HAVE_UNISTD_H
|
cannam@154
|
632 # include <unistd.h>
|
cannam@154
|
633 #endif"
|
cannam@154
|
634
|
cannam@154
|
635 ac_subst_vars='am__EXEEXT_FALSE
|
cannam@154
|
636 am__EXEEXT_TRUE
|
cannam@154
|
637 LTLIBOBJS
|
cannam@154
|
638 LIBOBJS
|
cannam@154
|
639 HAVE_DOXYGEN_FALSE
|
cannam@154
|
640 HAVE_DOXYGEN_TRUE
|
cannam@154
|
641 HAVE_DOT
|
cannam@154
|
642 HAVE_DOXYGEN
|
cannam@154
|
643 lrintf_lib
|
cannam@154
|
644 OP_ENABLE_EXAMPLES_FALSE
|
cannam@154
|
645 OP_ENABLE_EXAMPLES_TRUE
|
cannam@154
|
646 DEPS_LIBS
|
cannam@154
|
647 DEPS_CFLAGS
|
cannam@154
|
648 openssl
|
cannam@154
|
649 OP_ENABLE_HTTP_FALSE
|
cannam@154
|
650 OP_ENABLE_HTTP_TRUE
|
cannam@154
|
651 URL_DEPS_LIBS
|
cannam@154
|
652 URL_DEPS_CFLAGS
|
cannam@154
|
653 PKG_CONFIG_LIBDIR
|
cannam@154
|
654 PKG_CONFIG_PATH
|
cannam@154
|
655 PKG_CONFIG
|
cannam@154
|
656 OP_WIN32_FALSE
|
cannam@154
|
657 OP_WIN32_TRUE
|
cannam@154
|
658 OP_LT_AGE
|
cannam@154
|
659 OP_LT_REVISION
|
cannam@154
|
660 OP_LT_CURRENT
|
cannam@154
|
661 LT_SYS_LIBRARY_PATH
|
cannam@154
|
662 OTOOL64
|
cannam@154
|
663 OTOOL
|
cannam@154
|
664 LIPO
|
cannam@154
|
665 NMEDIT
|
cannam@154
|
666 DSYMUTIL
|
cannam@154
|
667 MANIFEST_TOOL
|
cannam@154
|
668 RANLIB
|
cannam@154
|
669 ac_ct_AR
|
cannam@154
|
670 AR
|
cannam@154
|
671 DLLTOOL
|
cannam@154
|
672 OBJDUMP
|
cannam@154
|
673 LN_S
|
cannam@154
|
674 NM
|
cannam@154
|
675 ac_ct_DUMPBIN
|
cannam@154
|
676 DUMPBIN
|
cannam@154
|
677 LD
|
cannam@154
|
678 FGREP
|
cannam@154
|
679 SED
|
cannam@154
|
680 host_os
|
cannam@154
|
681 host_vendor
|
cannam@154
|
682 host_cpu
|
cannam@154
|
683 host
|
cannam@154
|
684 build_os
|
cannam@154
|
685 build_vendor
|
cannam@154
|
686 build_cpu
|
cannam@154
|
687 build
|
cannam@154
|
688 LIBTOOL
|
cannam@154
|
689 MAINT
|
cannam@154
|
690 MAINTAINER_MODE_FALSE
|
cannam@154
|
691 MAINTAINER_MODE_TRUE
|
cannam@154
|
692 AM_BACKSLASH
|
cannam@154
|
693 AM_DEFAULT_VERBOSITY
|
cannam@154
|
694 AM_DEFAULT_V
|
cannam@154
|
695 AM_V
|
cannam@154
|
696 am__fastdepCC_FALSE
|
cannam@154
|
697 am__fastdepCC_TRUE
|
cannam@154
|
698 CCDEPMODE
|
cannam@154
|
699 am__nodep
|
cannam@154
|
700 AMDEPBACKSLASH
|
cannam@154
|
701 AMDEP_FALSE
|
cannam@154
|
702 AMDEP_TRUE
|
cannam@154
|
703 am__quote
|
cannam@154
|
704 am__include
|
cannam@154
|
705 DEPDIR
|
cannam@154
|
706 am__untar
|
cannam@154
|
707 am__tar
|
cannam@154
|
708 AMTAR
|
cannam@154
|
709 am__leading_dot
|
cannam@154
|
710 SET_MAKE
|
cannam@154
|
711 AWK
|
cannam@154
|
712 mkdir_p
|
cannam@154
|
713 MKDIR_P
|
cannam@154
|
714 INSTALL_STRIP_PROGRAM
|
cannam@154
|
715 STRIP
|
cannam@154
|
716 install_sh
|
cannam@154
|
717 MAKEINFO
|
cannam@154
|
718 AUTOHEADER
|
cannam@154
|
719 AUTOMAKE
|
cannam@154
|
720 AUTOCONF
|
cannam@154
|
721 ACLOCAL
|
cannam@154
|
722 VERSION
|
cannam@154
|
723 PACKAGE
|
cannam@154
|
724 CYGPATH_W
|
cannam@154
|
725 am__isrc
|
cannam@154
|
726 INSTALL_DATA
|
cannam@154
|
727 INSTALL_SCRIPT
|
cannam@154
|
728 INSTALL_PROGRAM
|
cannam@154
|
729 EGREP
|
cannam@154
|
730 GREP
|
cannam@154
|
731 CPP
|
cannam@154
|
732 OBJEXT
|
cannam@154
|
733 EXEEXT
|
cannam@154
|
734 ac_ct_CC
|
cannam@154
|
735 CPPFLAGS
|
cannam@154
|
736 LDFLAGS
|
cannam@154
|
737 CFLAGS
|
cannam@154
|
738 CC
|
cannam@154
|
739 target_alias
|
cannam@154
|
740 host_alias
|
cannam@154
|
741 build_alias
|
cannam@154
|
742 LIBS
|
cannam@154
|
743 ECHO_T
|
cannam@154
|
744 ECHO_N
|
cannam@154
|
745 ECHO_C
|
cannam@154
|
746 DEFS
|
cannam@154
|
747 mandir
|
cannam@154
|
748 localedir
|
cannam@154
|
749 libdir
|
cannam@154
|
750 psdir
|
cannam@154
|
751 pdfdir
|
cannam@154
|
752 dvidir
|
cannam@154
|
753 htmldir
|
cannam@154
|
754 infodir
|
cannam@154
|
755 docdir
|
cannam@154
|
756 oldincludedir
|
cannam@154
|
757 includedir
|
cannam@154
|
758 localstatedir
|
cannam@154
|
759 sharedstatedir
|
cannam@154
|
760 sysconfdir
|
cannam@154
|
761 datadir
|
cannam@154
|
762 datarootdir
|
cannam@154
|
763 libexecdir
|
cannam@154
|
764 sbindir
|
cannam@154
|
765 bindir
|
cannam@154
|
766 program_transform_name
|
cannam@154
|
767 prefix
|
cannam@154
|
768 exec_prefix
|
cannam@154
|
769 PACKAGE_URL
|
cannam@154
|
770 PACKAGE_BUGREPORT
|
cannam@154
|
771 PACKAGE_STRING
|
cannam@154
|
772 PACKAGE_VERSION
|
cannam@154
|
773 PACKAGE_TARNAME
|
cannam@154
|
774 PACKAGE_NAME
|
cannam@154
|
775 PATH_SEPARATOR
|
cannam@154
|
776 SHELL'
|
cannam@154
|
777 ac_subst_files=''
|
cannam@154
|
778 ac_user_opts='
|
cannam@154
|
779 enable_option_checking
|
cannam@154
|
780 enable_largefile
|
cannam@154
|
781 enable_dependency_tracking
|
cannam@154
|
782 enable_silent_rules
|
cannam@154
|
783 enable_maintainer_mode
|
cannam@154
|
784 enable_shared
|
cannam@154
|
785 enable_static
|
cannam@154
|
786 with_pic
|
cannam@154
|
787 enable_fast_install
|
cannam@154
|
788 with_aix_soname
|
cannam@154
|
789 with_gnu_ld
|
cannam@154
|
790 with_sysroot
|
cannam@154
|
791 enable_libtool_lock
|
cannam@154
|
792 enable_assertions
|
cannam@154
|
793 enable_http
|
cannam@154
|
794 enable_fixed_point
|
cannam@154
|
795 enable_float
|
cannam@154
|
796 enable_examples
|
cannam@154
|
797 enable_doc
|
cannam@154
|
798 '
|
cannam@154
|
799 ac_precious_vars='build_alias
|
cannam@154
|
800 host_alias
|
cannam@154
|
801 target_alias
|
cannam@154
|
802 CC
|
cannam@154
|
803 CFLAGS
|
cannam@154
|
804 LDFLAGS
|
cannam@154
|
805 LIBS
|
cannam@154
|
806 CPPFLAGS
|
cannam@154
|
807 CPP
|
cannam@154
|
808 LT_SYS_LIBRARY_PATH
|
cannam@154
|
809 PKG_CONFIG
|
cannam@154
|
810 PKG_CONFIG_PATH
|
cannam@154
|
811 PKG_CONFIG_LIBDIR
|
cannam@154
|
812 URL_DEPS_CFLAGS
|
cannam@154
|
813 URL_DEPS_LIBS
|
cannam@154
|
814 DEPS_CFLAGS
|
cannam@154
|
815 DEPS_LIBS'
|
cannam@154
|
816
|
cannam@154
|
817
|
cannam@154
|
818 # Initialize some variables set by options.
|
cannam@154
|
819 ac_init_help=
|
cannam@154
|
820 ac_init_version=false
|
cannam@154
|
821 ac_unrecognized_opts=
|
cannam@154
|
822 ac_unrecognized_sep=
|
cannam@154
|
823 # The variables have the same names as the options, with
|
cannam@154
|
824 # dashes changed to underlines.
|
cannam@154
|
825 cache_file=/dev/null
|
cannam@154
|
826 exec_prefix=NONE
|
cannam@154
|
827 no_create=
|
cannam@154
|
828 no_recursion=
|
cannam@154
|
829 prefix=NONE
|
cannam@154
|
830 program_prefix=NONE
|
cannam@154
|
831 program_suffix=NONE
|
cannam@154
|
832 program_transform_name=s,x,x,
|
cannam@154
|
833 silent=
|
cannam@154
|
834 site=
|
cannam@154
|
835 srcdir=
|
cannam@154
|
836 verbose=
|
cannam@154
|
837 x_includes=NONE
|
cannam@154
|
838 x_libraries=NONE
|
cannam@154
|
839
|
cannam@154
|
840 # Installation directory options.
|
cannam@154
|
841 # These are left unexpanded so users can "make install exec_prefix=/foo"
|
cannam@154
|
842 # and all the variables that are supposed to be based on exec_prefix
|
cannam@154
|
843 # by default will actually change.
|
cannam@154
|
844 # Use braces instead of parens because sh, perl, etc. also accept them.
|
cannam@154
|
845 # (The list follows the same order as the GNU Coding Standards.)
|
cannam@154
|
846 bindir='${exec_prefix}/bin'
|
cannam@154
|
847 sbindir='${exec_prefix}/sbin'
|
cannam@154
|
848 libexecdir='${exec_prefix}/libexec'
|
cannam@154
|
849 datarootdir='${prefix}/share'
|
cannam@154
|
850 datadir='${datarootdir}'
|
cannam@154
|
851 sysconfdir='${prefix}/etc'
|
cannam@154
|
852 sharedstatedir='${prefix}/com'
|
cannam@154
|
853 localstatedir='${prefix}/var'
|
cannam@154
|
854 includedir='${prefix}/include'
|
cannam@154
|
855 oldincludedir='/usr/include'
|
cannam@154
|
856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
cannam@154
|
857 infodir='${datarootdir}/info'
|
cannam@154
|
858 htmldir='${docdir}'
|
cannam@154
|
859 dvidir='${docdir}'
|
cannam@154
|
860 pdfdir='${docdir}'
|
cannam@154
|
861 psdir='${docdir}'
|
cannam@154
|
862 libdir='${exec_prefix}/lib'
|
cannam@154
|
863 localedir='${datarootdir}/locale'
|
cannam@154
|
864 mandir='${datarootdir}/man'
|
cannam@154
|
865
|
cannam@154
|
866 ac_prev=
|
cannam@154
|
867 ac_dashdash=
|
cannam@154
|
868 for ac_option
|
cannam@154
|
869 do
|
cannam@154
|
870 # If the previous option needs an argument, assign it.
|
cannam@154
|
871 if test -n "$ac_prev"; then
|
cannam@154
|
872 eval $ac_prev=\$ac_option
|
cannam@154
|
873 ac_prev=
|
cannam@154
|
874 continue
|
cannam@154
|
875 fi
|
cannam@154
|
876
|
cannam@154
|
877 case $ac_option in
|
cannam@154
|
878 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
cannam@154
|
879 *=) ac_optarg= ;;
|
cannam@154
|
880 *) ac_optarg=yes ;;
|
cannam@154
|
881 esac
|
cannam@154
|
882
|
cannam@154
|
883 # Accept the important Cygnus configure options, so we can diagnose typos.
|
cannam@154
|
884
|
cannam@154
|
885 case $ac_dashdash$ac_option in
|
cannam@154
|
886 --)
|
cannam@154
|
887 ac_dashdash=yes ;;
|
cannam@154
|
888
|
cannam@154
|
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
cannam@154
|
890 ac_prev=bindir ;;
|
cannam@154
|
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
cannam@154
|
892 bindir=$ac_optarg ;;
|
cannam@154
|
893
|
cannam@154
|
894 -build | --build | --buil | --bui | --bu)
|
cannam@154
|
895 ac_prev=build_alias ;;
|
cannam@154
|
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
cannam@154
|
897 build_alias=$ac_optarg ;;
|
cannam@154
|
898
|
cannam@154
|
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
|
cannam@154
|
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
cannam@154
|
901 ac_prev=cache_file ;;
|
cannam@154
|
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
cannam@154
|
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
cannam@154
|
904 cache_file=$ac_optarg ;;
|
cannam@154
|
905
|
cannam@154
|
906 --config-cache | -C)
|
cannam@154
|
907 cache_file=config.cache ;;
|
cannam@154
|
908
|
cannam@154
|
909 -datadir | --datadir | --datadi | --datad)
|
cannam@154
|
910 ac_prev=datadir ;;
|
cannam@154
|
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
cannam@154
|
912 datadir=$ac_optarg ;;
|
cannam@154
|
913
|
cannam@154
|
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
cannam@154
|
915 | --dataroo | --dataro | --datar)
|
cannam@154
|
916 ac_prev=datarootdir ;;
|
cannam@154
|
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
cannam@154
|
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
cannam@154
|
919 datarootdir=$ac_optarg ;;
|
cannam@154
|
920
|
cannam@154
|
921 -disable-* | --disable-*)
|
cannam@154
|
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
cannam@154
|
923 # Reject names that are not valid shell variable names.
|
cannam@154
|
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
cannam@154
|
925 as_fn_error $? "invalid feature name: $ac_useropt"
|
cannam@154
|
926 ac_useropt_orig=$ac_useropt
|
cannam@154
|
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
cannam@154
|
928 case $ac_user_opts in
|
cannam@154
|
929 *"
|
cannam@154
|
930 "enable_$ac_useropt"
|
cannam@154
|
931 "*) ;;
|
cannam@154
|
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
|
cannam@154
|
933 ac_unrecognized_sep=', ';;
|
cannam@154
|
934 esac
|
cannam@154
|
935 eval enable_$ac_useropt=no ;;
|
cannam@154
|
936
|
cannam@154
|
937 -docdir | --docdir | --docdi | --doc | --do)
|
cannam@154
|
938 ac_prev=docdir ;;
|
cannam@154
|
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
cannam@154
|
940 docdir=$ac_optarg ;;
|
cannam@154
|
941
|
cannam@154
|
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
cannam@154
|
943 ac_prev=dvidir ;;
|
cannam@154
|
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
cannam@154
|
945 dvidir=$ac_optarg ;;
|
cannam@154
|
946
|
cannam@154
|
947 -enable-* | --enable-*)
|
cannam@154
|
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
cannam@154
|
949 # Reject names that are not valid shell variable names.
|
cannam@154
|
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
cannam@154
|
951 as_fn_error $? "invalid feature name: $ac_useropt"
|
cannam@154
|
952 ac_useropt_orig=$ac_useropt
|
cannam@154
|
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
cannam@154
|
954 case $ac_user_opts in
|
cannam@154
|
955 *"
|
cannam@154
|
956 "enable_$ac_useropt"
|
cannam@154
|
957 "*) ;;
|
cannam@154
|
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
|
cannam@154
|
959 ac_unrecognized_sep=', ';;
|
cannam@154
|
960 esac
|
cannam@154
|
961 eval enable_$ac_useropt=\$ac_optarg ;;
|
cannam@154
|
962
|
cannam@154
|
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
cannam@154
|
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
cannam@154
|
965 | --exec | --exe | --ex)
|
cannam@154
|
966 ac_prev=exec_prefix ;;
|
cannam@154
|
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
cannam@154
|
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
cannam@154
|
969 | --exec=* | --exe=* | --ex=*)
|
cannam@154
|
970 exec_prefix=$ac_optarg ;;
|
cannam@154
|
971
|
cannam@154
|
972 -gas | --gas | --ga | --g)
|
cannam@154
|
973 # Obsolete; use --with-gas.
|
cannam@154
|
974 with_gas=yes ;;
|
cannam@154
|
975
|
cannam@154
|
976 -help | --help | --hel | --he | -h)
|
cannam@154
|
977 ac_init_help=long ;;
|
cannam@154
|
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
cannam@154
|
979 ac_init_help=recursive ;;
|
cannam@154
|
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
cannam@154
|
981 ac_init_help=short ;;
|
cannam@154
|
982
|
cannam@154
|
983 -host | --host | --hos | --ho)
|
cannam@154
|
984 ac_prev=host_alias ;;
|
cannam@154
|
985 -host=* | --host=* | --hos=* | --ho=*)
|
cannam@154
|
986 host_alias=$ac_optarg ;;
|
cannam@154
|
987
|
cannam@154
|
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
cannam@154
|
989 ac_prev=htmldir ;;
|
cannam@154
|
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
cannam@154
|
991 | --ht=*)
|
cannam@154
|
992 htmldir=$ac_optarg ;;
|
cannam@154
|
993
|
cannam@154
|
994 -includedir | --includedir | --includedi | --included | --include \
|
cannam@154
|
995 | --includ | --inclu | --incl | --inc)
|
cannam@154
|
996 ac_prev=includedir ;;
|
cannam@154
|
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
cannam@154
|
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
|
cannam@154
|
999 includedir=$ac_optarg ;;
|
cannam@154
|
1000
|
cannam@154
|
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
|
cannam@154
|
1002 ac_prev=infodir ;;
|
cannam@154
|
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
cannam@154
|
1004 infodir=$ac_optarg ;;
|
cannam@154
|
1005
|
cannam@154
|
1006 -libdir | --libdir | --libdi | --libd)
|
cannam@154
|
1007 ac_prev=libdir ;;
|
cannam@154
|
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
cannam@154
|
1009 libdir=$ac_optarg ;;
|
cannam@154
|
1010
|
cannam@154
|
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
cannam@154
|
1012 | --libexe | --libex | --libe)
|
cannam@154
|
1013 ac_prev=libexecdir ;;
|
cannam@154
|
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
cannam@154
|
1015 | --libexe=* | --libex=* | --libe=*)
|
cannam@154
|
1016 libexecdir=$ac_optarg ;;
|
cannam@154
|
1017
|
cannam@154
|
1018 -localedir | --localedir | --localedi | --localed | --locale)
|
cannam@154
|
1019 ac_prev=localedir ;;
|
cannam@154
|
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
cannam@154
|
1021 localedir=$ac_optarg ;;
|
cannam@154
|
1022
|
cannam@154
|
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
|
cannam@154
|
1024 | --localstate | --localstat | --localsta | --localst | --locals)
|
cannam@154
|
1025 ac_prev=localstatedir ;;
|
cannam@154
|
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
cannam@154
|
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
cannam@154
|
1028 localstatedir=$ac_optarg ;;
|
cannam@154
|
1029
|
cannam@154
|
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
cannam@154
|
1031 ac_prev=mandir ;;
|
cannam@154
|
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
cannam@154
|
1033 mandir=$ac_optarg ;;
|
cannam@154
|
1034
|
cannam@154
|
1035 -nfp | --nfp | --nf)
|
cannam@154
|
1036 # Obsolete; use --without-fp.
|
cannam@154
|
1037 with_fp=no ;;
|
cannam@154
|
1038
|
cannam@154
|
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
cannam@154
|
1040 | --no-cr | --no-c | -n)
|
cannam@154
|
1041 no_create=yes ;;
|
cannam@154
|
1042
|
cannam@154
|
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
cannam@154
|
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
cannam@154
|
1045 no_recursion=yes ;;
|
cannam@154
|
1046
|
cannam@154
|
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
cannam@154
|
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
cannam@154
|
1049 | --oldin | --oldi | --old | --ol | --o)
|
cannam@154
|
1050 ac_prev=oldincludedir ;;
|
cannam@154
|
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
cannam@154
|
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
cannam@154
|
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
cannam@154
|
1054 oldincludedir=$ac_optarg ;;
|
cannam@154
|
1055
|
cannam@154
|
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
cannam@154
|
1057 ac_prev=prefix ;;
|
cannam@154
|
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
cannam@154
|
1059 prefix=$ac_optarg ;;
|
cannam@154
|
1060
|
cannam@154
|
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
cannam@154
|
1062 | --program-pre | --program-pr | --program-p)
|
cannam@154
|
1063 ac_prev=program_prefix ;;
|
cannam@154
|
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
cannam@154
|
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
cannam@154
|
1066 program_prefix=$ac_optarg ;;
|
cannam@154
|
1067
|
cannam@154
|
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
cannam@154
|
1069 | --program-suf | --program-su | --program-s)
|
cannam@154
|
1070 ac_prev=program_suffix ;;
|
cannam@154
|
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
cannam@154
|
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
cannam@154
|
1073 program_suffix=$ac_optarg ;;
|
cannam@154
|
1074
|
cannam@154
|
1075 -program-transform-name | --program-transform-name \
|
cannam@154
|
1076 | --program-transform-nam | --program-transform-na \
|
cannam@154
|
1077 | --program-transform-n | --program-transform- \
|
cannam@154
|
1078 | --program-transform | --program-transfor \
|
cannam@154
|
1079 | --program-transfo | --program-transf \
|
cannam@154
|
1080 | --program-trans | --program-tran \
|
cannam@154
|
1081 | --progr-tra | --program-tr | --program-t)
|
cannam@154
|
1082 ac_prev=program_transform_name ;;
|
cannam@154
|
1083 -program-transform-name=* | --program-transform-name=* \
|
cannam@154
|
1084 | --program-transform-nam=* | --program-transform-na=* \
|
cannam@154
|
1085 | --program-transform-n=* | --program-transform-=* \
|
cannam@154
|
1086 | --program-transform=* | --program-transfor=* \
|
cannam@154
|
1087 | --program-transfo=* | --program-transf=* \
|
cannam@154
|
1088 | --program-trans=* | --program-tran=* \
|
cannam@154
|
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
|
cannam@154
|
1090 program_transform_name=$ac_optarg ;;
|
cannam@154
|
1091
|
cannam@154
|
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
cannam@154
|
1093 ac_prev=pdfdir ;;
|
cannam@154
|
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
cannam@154
|
1095 pdfdir=$ac_optarg ;;
|
cannam@154
|
1096
|
cannam@154
|
1097 -psdir | --psdir | --psdi | --psd | --ps)
|
cannam@154
|
1098 ac_prev=psdir ;;
|
cannam@154
|
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
cannam@154
|
1100 psdir=$ac_optarg ;;
|
cannam@154
|
1101
|
cannam@154
|
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@154
|
1103 | -silent | --silent | --silen | --sile | --sil)
|
cannam@154
|
1104 silent=yes ;;
|
cannam@154
|
1105
|
cannam@154
|
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
cannam@154
|
1107 ac_prev=sbindir ;;
|
cannam@154
|
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
cannam@154
|
1109 | --sbi=* | --sb=*)
|
cannam@154
|
1110 sbindir=$ac_optarg ;;
|
cannam@154
|
1111
|
cannam@154
|
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
cannam@154
|
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
cannam@154
|
1114 | --sharedst | --shareds | --shared | --share | --shar \
|
cannam@154
|
1115 | --sha | --sh)
|
cannam@154
|
1116 ac_prev=sharedstatedir ;;
|
cannam@154
|
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
cannam@154
|
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
cannam@154
|
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
cannam@154
|
1120 | --sha=* | --sh=*)
|
cannam@154
|
1121 sharedstatedir=$ac_optarg ;;
|
cannam@154
|
1122
|
cannam@154
|
1123 -site | --site | --sit)
|
cannam@154
|
1124 ac_prev=site ;;
|
cannam@154
|
1125 -site=* | --site=* | --sit=*)
|
cannam@154
|
1126 site=$ac_optarg ;;
|
cannam@154
|
1127
|
cannam@154
|
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
cannam@154
|
1129 ac_prev=srcdir ;;
|
cannam@154
|
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
cannam@154
|
1131 srcdir=$ac_optarg ;;
|
cannam@154
|
1132
|
cannam@154
|
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
cannam@154
|
1134 | --syscon | --sysco | --sysc | --sys | --sy)
|
cannam@154
|
1135 ac_prev=sysconfdir ;;
|
cannam@154
|
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
cannam@154
|
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
cannam@154
|
1138 sysconfdir=$ac_optarg ;;
|
cannam@154
|
1139
|
cannam@154
|
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
|
cannam@154
|
1141 ac_prev=target_alias ;;
|
cannam@154
|
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
cannam@154
|
1143 target_alias=$ac_optarg ;;
|
cannam@154
|
1144
|
cannam@154
|
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
cannam@154
|
1146 verbose=yes ;;
|
cannam@154
|
1147
|
cannam@154
|
1148 -version | --version | --versio | --versi | --vers | -V)
|
cannam@154
|
1149 ac_init_version=: ;;
|
cannam@154
|
1150
|
cannam@154
|
1151 -with-* | --with-*)
|
cannam@154
|
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
cannam@154
|
1153 # Reject names that are not valid shell variable names.
|
cannam@154
|
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
cannam@154
|
1155 as_fn_error $? "invalid package name: $ac_useropt"
|
cannam@154
|
1156 ac_useropt_orig=$ac_useropt
|
cannam@154
|
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
cannam@154
|
1158 case $ac_user_opts in
|
cannam@154
|
1159 *"
|
cannam@154
|
1160 "with_$ac_useropt"
|
cannam@154
|
1161 "*) ;;
|
cannam@154
|
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
|
cannam@154
|
1163 ac_unrecognized_sep=', ';;
|
cannam@154
|
1164 esac
|
cannam@154
|
1165 eval with_$ac_useropt=\$ac_optarg ;;
|
cannam@154
|
1166
|
cannam@154
|
1167 -without-* | --without-*)
|
cannam@154
|
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
cannam@154
|
1169 # Reject names that are not valid shell variable names.
|
cannam@154
|
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
|
cannam@154
|
1171 as_fn_error $? "invalid package name: $ac_useropt"
|
cannam@154
|
1172 ac_useropt_orig=$ac_useropt
|
cannam@154
|
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
|
cannam@154
|
1174 case $ac_user_opts in
|
cannam@154
|
1175 *"
|
cannam@154
|
1176 "with_$ac_useropt"
|
cannam@154
|
1177 "*) ;;
|
cannam@154
|
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
|
cannam@154
|
1179 ac_unrecognized_sep=', ';;
|
cannam@154
|
1180 esac
|
cannam@154
|
1181 eval with_$ac_useropt=no ;;
|
cannam@154
|
1182
|
cannam@154
|
1183 --x)
|
cannam@154
|
1184 # Obsolete; use --with-x.
|
cannam@154
|
1185 with_x=yes ;;
|
cannam@154
|
1186
|
cannam@154
|
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
cannam@154
|
1188 | --x-incl | --x-inc | --x-in | --x-i)
|
cannam@154
|
1189 ac_prev=x_includes ;;
|
cannam@154
|
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
cannam@154
|
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
cannam@154
|
1192 x_includes=$ac_optarg ;;
|
cannam@154
|
1193
|
cannam@154
|
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
cannam@154
|
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
cannam@154
|
1196 ac_prev=x_libraries ;;
|
cannam@154
|
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
cannam@154
|
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
cannam@154
|
1199 x_libraries=$ac_optarg ;;
|
cannam@154
|
1200
|
cannam@154
|
1201 -*) as_fn_error $? "unrecognized option: \`$ac_option'
|
cannam@154
|
1202 Try \`$0 --help' for more information"
|
cannam@154
|
1203 ;;
|
cannam@154
|
1204
|
cannam@154
|
1205 *=*)
|
cannam@154
|
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
cannam@154
|
1207 # Reject names that are not valid shell variable names.
|
cannam@154
|
1208 case $ac_envvar in #(
|
cannam@154
|
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
|
cannam@154
|
1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
|
cannam@154
|
1211 esac
|
cannam@154
|
1212 eval $ac_envvar=\$ac_optarg
|
cannam@154
|
1213 export $ac_envvar ;;
|
cannam@154
|
1214
|
cannam@154
|
1215 *)
|
cannam@154
|
1216 # FIXME: should be removed in autoconf 3.0.
|
cannam@154
|
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
cannam@154
|
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
cannam@154
|
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
cannam@154
|
1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
|
cannam@154
|
1221 ;;
|
cannam@154
|
1222
|
cannam@154
|
1223 esac
|
cannam@154
|
1224 done
|
cannam@154
|
1225
|
cannam@154
|
1226 if test -n "$ac_prev"; then
|
cannam@154
|
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
cannam@154
|
1228 as_fn_error $? "missing argument to $ac_option"
|
cannam@154
|
1229 fi
|
cannam@154
|
1230
|
cannam@154
|
1231 if test -n "$ac_unrecognized_opts"; then
|
cannam@154
|
1232 case $enable_option_checking in
|
cannam@154
|
1233 no) ;;
|
cannam@154
|
1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
|
cannam@154
|
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
|
cannam@154
|
1236 esac
|
cannam@154
|
1237 fi
|
cannam@154
|
1238
|
cannam@154
|
1239 # Check all directory arguments for consistency.
|
cannam@154
|
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
cannam@154
|
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
|
cannam@154
|
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
cannam@154
|
1243 libdir localedir mandir
|
cannam@154
|
1244 do
|
cannam@154
|
1245 eval ac_val=\$$ac_var
|
cannam@154
|
1246 # Remove trailing slashes.
|
cannam@154
|
1247 case $ac_val in
|
cannam@154
|
1248 */ )
|
cannam@154
|
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
|
cannam@154
|
1250 eval $ac_var=\$ac_val;;
|
cannam@154
|
1251 esac
|
cannam@154
|
1252 # Be sure to have absolute directory names.
|
cannam@154
|
1253 case $ac_val in
|
cannam@154
|
1254 [\\/$]* | ?:[\\/]* ) continue;;
|
cannam@154
|
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
cannam@154
|
1256 esac
|
cannam@154
|
1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
|
cannam@154
|
1258 done
|
cannam@154
|
1259
|
cannam@154
|
1260 # There might be people who depend on the old broken behavior: `$host'
|
cannam@154
|
1261 # used to hold the argument of --host etc.
|
cannam@154
|
1262 # FIXME: To remove some day.
|
cannam@154
|
1263 build=$build_alias
|
cannam@154
|
1264 host=$host_alias
|
cannam@154
|
1265 target=$target_alias
|
cannam@154
|
1266
|
cannam@154
|
1267 # FIXME: To remove some day.
|
cannam@154
|
1268 if test "x$host_alias" != x; then
|
cannam@154
|
1269 if test "x$build_alias" = x; then
|
cannam@154
|
1270 cross_compiling=maybe
|
cannam@154
|
1271 elif test "x$build_alias" != "x$host_alias"; then
|
cannam@154
|
1272 cross_compiling=yes
|
cannam@154
|
1273 fi
|
cannam@154
|
1274 fi
|
cannam@154
|
1275
|
cannam@154
|
1276 ac_tool_prefix=
|
cannam@154
|
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
cannam@154
|
1278
|
cannam@154
|
1279 test "$silent" = yes && exec 6>/dev/null
|
cannam@154
|
1280
|
cannam@154
|
1281
|
cannam@154
|
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
cannam@154
|
1283 ac_ls_di=`ls -di .` &&
|
cannam@154
|
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
cannam@154
|
1285 as_fn_error $? "working directory cannot be determined"
|
cannam@154
|
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
cannam@154
|
1287 as_fn_error $? "pwd does not report name of working directory"
|
cannam@154
|
1288
|
cannam@154
|
1289
|
cannam@154
|
1290 # Find the source files, if location was not specified.
|
cannam@154
|
1291 if test -z "$srcdir"; then
|
cannam@154
|
1292 ac_srcdir_defaulted=yes
|
cannam@154
|
1293 # Try the directory containing this script, then the parent directory.
|
cannam@154
|
1294 ac_confdir=`$as_dirname -- "$as_myself" ||
|
cannam@154
|
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
1296 X"$as_myself" : 'X\(//\)[^/]' \| \
|
cannam@154
|
1297 X"$as_myself" : 'X\(//\)$' \| \
|
cannam@154
|
1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
1299 $as_echo X"$as_myself" |
|
cannam@154
|
1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
1301 s//\1/
|
cannam@154
|
1302 q
|
cannam@154
|
1303 }
|
cannam@154
|
1304 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
1305 s//\1/
|
cannam@154
|
1306 q
|
cannam@154
|
1307 }
|
cannam@154
|
1308 /^X\(\/\/\)$/{
|
cannam@154
|
1309 s//\1/
|
cannam@154
|
1310 q
|
cannam@154
|
1311 }
|
cannam@154
|
1312 /^X\(\/\).*/{
|
cannam@154
|
1313 s//\1/
|
cannam@154
|
1314 q
|
cannam@154
|
1315 }
|
cannam@154
|
1316 s/.*/./; q'`
|
cannam@154
|
1317 srcdir=$ac_confdir
|
cannam@154
|
1318 if test ! -r "$srcdir/$ac_unique_file"; then
|
cannam@154
|
1319 srcdir=..
|
cannam@154
|
1320 fi
|
cannam@154
|
1321 else
|
cannam@154
|
1322 ac_srcdir_defaulted=no
|
cannam@154
|
1323 fi
|
cannam@154
|
1324 if test ! -r "$srcdir/$ac_unique_file"; then
|
cannam@154
|
1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
cannam@154
|
1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
|
cannam@154
|
1327 fi
|
cannam@154
|
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
cannam@154
|
1329 ac_abs_confdir=`(
|
cannam@154
|
1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
|
cannam@154
|
1331 pwd)`
|
cannam@154
|
1332 # When building in place, set srcdir=.
|
cannam@154
|
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
|
cannam@154
|
1334 srcdir=.
|
cannam@154
|
1335 fi
|
cannam@154
|
1336 # Remove unnecessary trailing slashes from srcdir.
|
cannam@154
|
1337 # Double slashes in file names in object file debugging info
|
cannam@154
|
1338 # mess up M-x gdb in Emacs.
|
cannam@154
|
1339 case $srcdir in
|
cannam@154
|
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
cannam@154
|
1341 esac
|
cannam@154
|
1342 for ac_var in $ac_precious_vars; do
|
cannam@154
|
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
cannam@154
|
1344 eval ac_env_${ac_var}_value=\$${ac_var}
|
cannam@154
|
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
cannam@154
|
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
cannam@154
|
1347 done
|
cannam@154
|
1348
|
cannam@154
|
1349 #
|
cannam@154
|
1350 # Report the --help message.
|
cannam@154
|
1351 #
|
cannam@154
|
1352 if test "$ac_init_help" = "long"; then
|
cannam@154
|
1353 # Omit some internal or obsolete options to make the list less imposing.
|
cannam@154
|
1354 # This message is too long to be a string in the A/UX 3.1 sh.
|
cannam@154
|
1355 cat <<_ACEOF
|
cannam@154
|
1356 \`configure' configures opusfile 0.9 to adapt to many kinds of systems.
|
cannam@154
|
1357
|
cannam@154
|
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
|
cannam@154
|
1359
|
cannam@154
|
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
cannam@154
|
1361 VAR=VALUE. See below for descriptions of some of the useful variables.
|
cannam@154
|
1362
|
cannam@154
|
1363 Defaults for the options are specified in brackets.
|
cannam@154
|
1364
|
cannam@154
|
1365 Configuration:
|
cannam@154
|
1366 -h, --help display this help and exit
|
cannam@154
|
1367 --help=short display options specific to this package
|
cannam@154
|
1368 --help=recursive display the short help of all the included packages
|
cannam@154
|
1369 -V, --version display version information and exit
|
cannam@154
|
1370 -q, --quiet, --silent do not print \`checking ...' messages
|
cannam@154
|
1371 --cache-file=FILE cache test results in FILE [disabled]
|
cannam@154
|
1372 -C, --config-cache alias for \`--cache-file=config.cache'
|
cannam@154
|
1373 -n, --no-create do not create output files
|
cannam@154
|
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
cannam@154
|
1375
|
cannam@154
|
1376 Installation directories:
|
cannam@154
|
1377 --prefix=PREFIX install architecture-independent files in PREFIX
|
cannam@154
|
1378 [$ac_default_prefix]
|
cannam@154
|
1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
cannam@154
|
1380 [PREFIX]
|
cannam@154
|
1381
|
cannam@154
|
1382 By default, \`make install' will install all the files in
|
cannam@154
|
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
cannam@154
|
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
cannam@154
|
1385 for instance \`--prefix=\$HOME'.
|
cannam@154
|
1386
|
cannam@154
|
1387 For better control, use the options below.
|
cannam@154
|
1388
|
cannam@154
|
1389 Fine tuning of the installation directories:
|
cannam@154
|
1390 --bindir=DIR user executables [EPREFIX/bin]
|
cannam@154
|
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
|
cannam@154
|
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
|
cannam@154
|
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
cannam@154
|
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
cannam@154
|
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
cannam@154
|
1396 --libdir=DIR object code libraries [EPREFIX/lib]
|
cannam@154
|
1397 --includedir=DIR C header files [PREFIX/include]
|
cannam@154
|
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
cannam@154
|
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
cannam@154
|
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
cannam@154
|
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
|
cannam@154
|
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
cannam@154
|
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
|
cannam@154
|
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/opusfile]
|
cannam@154
|
1405 --htmldir=DIR html documentation [DOCDIR]
|
cannam@154
|
1406 --dvidir=DIR dvi documentation [DOCDIR]
|
cannam@154
|
1407 --pdfdir=DIR pdf documentation [DOCDIR]
|
cannam@154
|
1408 --psdir=DIR ps documentation [DOCDIR]
|
cannam@154
|
1409 _ACEOF
|
cannam@154
|
1410
|
cannam@154
|
1411 cat <<\_ACEOF
|
cannam@154
|
1412
|
cannam@154
|
1413 Program names:
|
cannam@154
|
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
|
cannam@154
|
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
|
cannam@154
|
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
cannam@154
|
1417
|
cannam@154
|
1418 System types:
|
cannam@154
|
1419 --build=BUILD configure for building on BUILD [guessed]
|
cannam@154
|
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
cannam@154
|
1421 _ACEOF
|
cannam@154
|
1422 fi
|
cannam@154
|
1423
|
cannam@154
|
1424 if test -n "$ac_init_help"; then
|
cannam@154
|
1425 case $ac_init_help in
|
cannam@154
|
1426 short | recursive ) echo "Configuration of opusfile 0.9:";;
|
cannam@154
|
1427 esac
|
cannam@154
|
1428 cat <<\_ACEOF
|
cannam@154
|
1429
|
cannam@154
|
1430 Optional Features:
|
cannam@154
|
1431 --disable-option-checking ignore unrecognized --enable/--with options
|
cannam@154
|
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
cannam@154
|
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
cannam@154
|
1434 --disable-largefile omit support for large files
|
cannam@154
|
1435 --enable-dependency-tracking
|
cannam@154
|
1436 do not reject slow dependency extractors
|
cannam@154
|
1437 --disable-dependency-tracking
|
cannam@154
|
1438 speeds up one-time build
|
cannam@154
|
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
|
cannam@154
|
1440 --disable-silent-rules verbose build output (undo: "make V=0")
|
cannam@154
|
1441 --disable-maintainer-mode
|
cannam@154
|
1442 disable make rules and dependencies not useful (and
|
cannam@154
|
1443 sometimes confusing) to the casual installer
|
cannam@154
|
1444 --enable-shared[=PKGS] build shared libraries [default=yes]
|
cannam@154
|
1445 --enable-static[=PKGS] build static libraries [default=yes]
|
cannam@154
|
1446 --enable-fast-install[=PKGS]
|
cannam@154
|
1447 optimize for fast installation [default=yes]
|
cannam@154
|
1448 --disable-libtool-lock avoid locking (might break parallel builds)
|
cannam@154
|
1449 --enable-assertions Enable assertions in code
|
cannam@154
|
1450 --disable-http Disable HTTP support
|
cannam@154
|
1451 --enable-fixed-point Enable fixed-point calculation
|
cannam@154
|
1452 --disable-float Disable floating-point API
|
cannam@154
|
1453 --disable-examples Do not build example applications
|
cannam@154
|
1454 --disable-doc Do not build API documentation
|
cannam@154
|
1455
|
cannam@154
|
1456 Optional Packages:
|
cannam@154
|
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
cannam@154
|
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
cannam@154
|
1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
|
cannam@154
|
1460 both]
|
cannam@154
|
1461 --with-aix-soname=aix|svr4|both
|
cannam@154
|
1462 shared library versioning (aka "SONAME") variant to
|
cannam@154
|
1463 provide on AIX, [default=aix].
|
cannam@154
|
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
cannam@154
|
1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
|
cannam@154
|
1466 compiler's sysroot if not specified).
|
cannam@154
|
1467
|
cannam@154
|
1468 Some influential environment variables:
|
cannam@154
|
1469 CC C compiler command
|
cannam@154
|
1470 CFLAGS C compiler flags
|
cannam@154
|
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
cannam@154
|
1472 nonstandard directory <lib dir>
|
cannam@154
|
1473 LIBS libraries to pass to the linker, e.g. -l<library>
|
cannam@154
|
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
cannam@154
|
1475 you have headers in a nonstandard directory <include dir>
|
cannam@154
|
1476 CPP C preprocessor
|
cannam@154
|
1477 LT_SYS_LIBRARY_PATH
|
cannam@154
|
1478 User-defined run-time library search path.
|
cannam@154
|
1479 PKG_CONFIG path to pkg-config utility
|
cannam@154
|
1480 PKG_CONFIG_PATH
|
cannam@154
|
1481 directories to add to pkg-config's search path
|
cannam@154
|
1482 PKG_CONFIG_LIBDIR
|
cannam@154
|
1483 path overriding pkg-config's built-in search path
|
cannam@154
|
1484 URL_DEPS_CFLAGS
|
cannam@154
|
1485 C compiler flags for URL_DEPS, overriding pkg-config
|
cannam@154
|
1486 URL_DEPS_LIBS
|
cannam@154
|
1487 linker flags for URL_DEPS, overriding pkg-config
|
cannam@154
|
1488 DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
|
cannam@154
|
1489 DEPS_LIBS linker flags for DEPS, overriding pkg-config
|
cannam@154
|
1490
|
cannam@154
|
1491 Use these variables to override the choices made by `configure' or to help
|
cannam@154
|
1492 it to find libraries and programs with nonstandard names/locations.
|
cannam@154
|
1493
|
cannam@154
|
1494 Report bugs to <opus@xiph.org>.
|
cannam@154
|
1495 _ACEOF
|
cannam@154
|
1496 ac_status=$?
|
cannam@154
|
1497 fi
|
cannam@154
|
1498
|
cannam@154
|
1499 if test "$ac_init_help" = "recursive"; then
|
cannam@154
|
1500 # If there are subdirs, report their specific --help.
|
cannam@154
|
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
cannam@154
|
1502 test -d "$ac_dir" ||
|
cannam@154
|
1503 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
|
cannam@154
|
1504 continue
|
cannam@154
|
1505 ac_builddir=.
|
cannam@154
|
1506
|
cannam@154
|
1507 case "$ac_dir" in
|
cannam@154
|
1508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@154
|
1509 *)
|
cannam@154
|
1510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
cannam@154
|
1511 # A ".." for each directory in $ac_dir_suffix.
|
cannam@154
|
1512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
cannam@154
|
1513 case $ac_top_builddir_sub in
|
cannam@154
|
1514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@154
|
1515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
cannam@154
|
1516 esac ;;
|
cannam@154
|
1517 esac
|
cannam@154
|
1518 ac_abs_top_builddir=$ac_pwd
|
cannam@154
|
1519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
cannam@154
|
1520 # for backward compatibility:
|
cannam@154
|
1521 ac_top_builddir=$ac_top_build_prefix
|
cannam@154
|
1522
|
cannam@154
|
1523 case $srcdir in
|
cannam@154
|
1524 .) # We are building in place.
|
cannam@154
|
1525 ac_srcdir=.
|
cannam@154
|
1526 ac_top_srcdir=$ac_top_builddir_sub
|
cannam@154
|
1527 ac_abs_top_srcdir=$ac_pwd ;;
|
cannam@154
|
1528 [\\/]* | ?:[\\/]* ) # Absolute name.
|
cannam@154
|
1529 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@154
|
1530 ac_top_srcdir=$srcdir
|
cannam@154
|
1531 ac_abs_top_srcdir=$srcdir ;;
|
cannam@154
|
1532 *) # Relative name.
|
cannam@154
|
1533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
cannam@154
|
1534 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
cannam@154
|
1535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
cannam@154
|
1536 esac
|
cannam@154
|
1537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
cannam@154
|
1538
|
cannam@154
|
1539 cd "$ac_dir" || { ac_status=$?; continue; }
|
cannam@154
|
1540 # Check for guested configure.
|
cannam@154
|
1541 if test -f "$ac_srcdir/configure.gnu"; then
|
cannam@154
|
1542 echo &&
|
cannam@154
|
1543 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
cannam@154
|
1544 elif test -f "$ac_srcdir/configure"; then
|
cannam@154
|
1545 echo &&
|
cannam@154
|
1546 $SHELL "$ac_srcdir/configure" --help=recursive
|
cannam@154
|
1547 else
|
cannam@154
|
1548 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
cannam@154
|
1549 fi || ac_status=$?
|
cannam@154
|
1550 cd "$ac_pwd" || { ac_status=$?; break; }
|
cannam@154
|
1551 done
|
cannam@154
|
1552 fi
|
cannam@154
|
1553
|
cannam@154
|
1554 test -n "$ac_init_help" && exit $ac_status
|
cannam@154
|
1555 if $ac_init_version; then
|
cannam@154
|
1556 cat <<\_ACEOF
|
cannam@154
|
1557 opusfile configure 0.9
|
cannam@154
|
1558 generated by GNU Autoconf 2.69
|
cannam@154
|
1559
|
cannam@154
|
1560 Copyright (C) 2012 Free Software Foundation, Inc.
|
cannam@154
|
1561 This configure script is free software; the Free Software Foundation
|
cannam@154
|
1562 gives unlimited permission to copy, distribute and modify it.
|
cannam@154
|
1563 _ACEOF
|
cannam@154
|
1564 exit
|
cannam@154
|
1565 fi
|
cannam@154
|
1566
|
cannam@154
|
1567 ## ------------------------ ##
|
cannam@154
|
1568 ## Autoconf initialization. ##
|
cannam@154
|
1569 ## ------------------------ ##
|
cannam@154
|
1570
|
cannam@154
|
1571 # ac_fn_c_try_compile LINENO
|
cannam@154
|
1572 # --------------------------
|
cannam@154
|
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
|
cannam@154
|
1574 ac_fn_c_try_compile ()
|
cannam@154
|
1575 {
|
cannam@154
|
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1577 rm -f conftest.$ac_objext
|
cannam@154
|
1578 if { { ac_try="$ac_compile"
|
cannam@154
|
1579 case "(($ac_try" in
|
cannam@154
|
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
1581 *) ac_try_echo=$ac_try;;
|
cannam@154
|
1582 esac
|
cannam@154
|
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
1584 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
1585 (eval "$ac_compile") 2>conftest.err
|
cannam@154
|
1586 ac_status=$?
|
cannam@154
|
1587 if test -s conftest.err; then
|
cannam@154
|
1588 grep -v '^ *+' conftest.err >conftest.er1
|
cannam@154
|
1589 cat conftest.er1 >&5
|
cannam@154
|
1590 mv -f conftest.er1 conftest.err
|
cannam@154
|
1591 fi
|
cannam@154
|
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
1593 test $ac_status = 0; } && {
|
cannam@154
|
1594 test -z "$ac_c_werror_flag" ||
|
cannam@154
|
1595 test ! -s conftest.err
|
cannam@154
|
1596 } && test -s conftest.$ac_objext; then :
|
cannam@154
|
1597 ac_retval=0
|
cannam@154
|
1598 else
|
cannam@154
|
1599 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
1600 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
1601
|
cannam@154
|
1602 ac_retval=1
|
cannam@154
|
1603 fi
|
cannam@154
|
1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1605 as_fn_set_status $ac_retval
|
cannam@154
|
1606
|
cannam@154
|
1607 } # ac_fn_c_try_compile
|
cannam@154
|
1608
|
cannam@154
|
1609 # ac_fn_c_try_cpp LINENO
|
cannam@154
|
1610 # ----------------------
|
cannam@154
|
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
|
cannam@154
|
1612 ac_fn_c_try_cpp ()
|
cannam@154
|
1613 {
|
cannam@154
|
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
|
cannam@154
|
1616 case "(($ac_try" in
|
cannam@154
|
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
1618 *) ac_try_echo=$ac_try;;
|
cannam@154
|
1619 esac
|
cannam@154
|
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
1621 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
|
cannam@154
|
1623 ac_status=$?
|
cannam@154
|
1624 if test -s conftest.err; then
|
cannam@154
|
1625 grep -v '^ *+' conftest.err >conftest.er1
|
cannam@154
|
1626 cat conftest.er1 >&5
|
cannam@154
|
1627 mv -f conftest.er1 conftest.err
|
cannam@154
|
1628 fi
|
cannam@154
|
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
1630 test $ac_status = 0; } > conftest.i && {
|
cannam@154
|
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
cannam@154
|
1632 test ! -s conftest.err
|
cannam@154
|
1633 }; then :
|
cannam@154
|
1634 ac_retval=0
|
cannam@154
|
1635 else
|
cannam@154
|
1636 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
1637 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
1638
|
cannam@154
|
1639 ac_retval=1
|
cannam@154
|
1640 fi
|
cannam@154
|
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1642 as_fn_set_status $ac_retval
|
cannam@154
|
1643
|
cannam@154
|
1644 } # ac_fn_c_try_cpp
|
cannam@154
|
1645
|
cannam@154
|
1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
|
cannam@154
|
1647 # -------------------------------------------------------
|
cannam@154
|
1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
|
cannam@154
|
1649 # the include files in INCLUDES and setting the cache variable VAR
|
cannam@154
|
1650 # accordingly.
|
cannam@154
|
1651 ac_fn_c_check_header_mongrel ()
|
cannam@154
|
1652 {
|
cannam@154
|
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1654 if eval \${$3+:} false; then :
|
cannam@154
|
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
cannam@154
|
1656 $as_echo_n "checking for $2... " >&6; }
|
cannam@154
|
1657 if eval \${$3+:} false; then :
|
cannam@154
|
1658 $as_echo_n "(cached) " >&6
|
cannam@154
|
1659 fi
|
cannam@154
|
1660 eval ac_res=\$$3
|
cannam@154
|
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
1662 $as_echo "$ac_res" >&6; }
|
cannam@154
|
1663 else
|
cannam@154
|
1664 # Is the header compilable?
|
cannam@154
|
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
|
cannam@154
|
1666 $as_echo_n "checking $2 usability... " >&6; }
|
cannam@154
|
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
1668 /* end confdefs.h. */
|
cannam@154
|
1669 $4
|
cannam@154
|
1670 #include <$2>
|
cannam@154
|
1671 _ACEOF
|
cannam@154
|
1672 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
1673 ac_header_compiler=yes
|
cannam@154
|
1674 else
|
cannam@154
|
1675 ac_header_compiler=no
|
cannam@154
|
1676 fi
|
cannam@154
|
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
|
cannam@154
|
1679 $as_echo "$ac_header_compiler" >&6; }
|
cannam@154
|
1680
|
cannam@154
|
1681 # Is the header present?
|
cannam@154
|
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
|
cannam@154
|
1683 $as_echo_n "checking $2 presence... " >&6; }
|
cannam@154
|
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
1685 /* end confdefs.h. */
|
cannam@154
|
1686 #include <$2>
|
cannam@154
|
1687 _ACEOF
|
cannam@154
|
1688 if ac_fn_c_try_cpp "$LINENO"; then :
|
cannam@154
|
1689 ac_header_preproc=yes
|
cannam@154
|
1690 else
|
cannam@154
|
1691 ac_header_preproc=no
|
cannam@154
|
1692 fi
|
cannam@154
|
1693 rm -f conftest.err conftest.i conftest.$ac_ext
|
cannam@154
|
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
|
cannam@154
|
1695 $as_echo "$ac_header_preproc" >&6; }
|
cannam@154
|
1696
|
cannam@154
|
1697 # So? What about this header?
|
cannam@154
|
1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
|
cannam@154
|
1699 yes:no: )
|
cannam@154
|
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
|
cannam@154
|
1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
cannam@154
|
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
cannam@154
|
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
cannam@154
|
1704 ;;
|
cannam@154
|
1705 no:yes:* )
|
cannam@154
|
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
|
cannam@154
|
1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
|
cannam@154
|
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
|
cannam@154
|
1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
|
cannam@154
|
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
|
cannam@154
|
1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
|
cannam@154
|
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
|
cannam@154
|
1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
|
cannam@154
|
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
|
cannam@154
|
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
|
cannam@154
|
1716 ( $as_echo "## ---------------------------- ##
|
cannam@154
|
1717 ## Report this to opus@xiph.org ##
|
cannam@154
|
1718 ## ---------------------------- ##"
|
cannam@154
|
1719 ) | sed "s/^/$as_me: WARNING: /" >&2
|
cannam@154
|
1720 ;;
|
cannam@154
|
1721 esac
|
cannam@154
|
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
cannam@154
|
1723 $as_echo_n "checking for $2... " >&6; }
|
cannam@154
|
1724 if eval \${$3+:} false; then :
|
cannam@154
|
1725 $as_echo_n "(cached) " >&6
|
cannam@154
|
1726 else
|
cannam@154
|
1727 eval "$3=\$ac_header_compiler"
|
cannam@154
|
1728 fi
|
cannam@154
|
1729 eval ac_res=\$$3
|
cannam@154
|
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
1731 $as_echo "$ac_res" >&6; }
|
cannam@154
|
1732 fi
|
cannam@154
|
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1734
|
cannam@154
|
1735 } # ac_fn_c_check_header_mongrel
|
cannam@154
|
1736
|
cannam@154
|
1737 # ac_fn_c_try_run LINENO
|
cannam@154
|
1738 # ----------------------
|
cannam@154
|
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
|
cannam@154
|
1740 # that executables *can* be run.
|
cannam@154
|
1741 ac_fn_c_try_run ()
|
cannam@154
|
1742 {
|
cannam@154
|
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1744 if { { ac_try="$ac_link"
|
cannam@154
|
1745 case "(($ac_try" in
|
cannam@154
|
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
1747 *) ac_try_echo=$ac_try;;
|
cannam@154
|
1748 esac
|
cannam@154
|
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
1750 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
1751 (eval "$ac_link") 2>&5
|
cannam@154
|
1752 ac_status=$?
|
cannam@154
|
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
|
cannam@154
|
1755 { { case "(($ac_try" in
|
cannam@154
|
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
1757 *) ac_try_echo=$ac_try;;
|
cannam@154
|
1758 esac
|
cannam@154
|
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
1760 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
1761 (eval "$ac_try") 2>&5
|
cannam@154
|
1762 ac_status=$?
|
cannam@154
|
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
1764 test $ac_status = 0; }; }; then :
|
cannam@154
|
1765 ac_retval=0
|
cannam@154
|
1766 else
|
cannam@154
|
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
|
cannam@154
|
1768 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
1769 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
1770
|
cannam@154
|
1771 ac_retval=$ac_status
|
cannam@154
|
1772 fi
|
cannam@154
|
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
cannam@154
|
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1775 as_fn_set_status $ac_retval
|
cannam@154
|
1776
|
cannam@154
|
1777 } # ac_fn_c_try_run
|
cannam@154
|
1778
|
cannam@154
|
1779 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
|
cannam@154
|
1780 # -------------------------------------------------------
|
cannam@154
|
1781 # Tests whether HEADER exists and can be compiled using the include files in
|
cannam@154
|
1782 # INCLUDES, setting the cache variable VAR accordingly.
|
cannam@154
|
1783 ac_fn_c_check_header_compile ()
|
cannam@154
|
1784 {
|
cannam@154
|
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
cannam@154
|
1787 $as_echo_n "checking for $2... " >&6; }
|
cannam@154
|
1788 if eval \${$3+:} false; then :
|
cannam@154
|
1789 $as_echo_n "(cached) " >&6
|
cannam@154
|
1790 else
|
cannam@154
|
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
1792 /* end confdefs.h. */
|
cannam@154
|
1793 $4
|
cannam@154
|
1794 #include <$2>
|
cannam@154
|
1795 _ACEOF
|
cannam@154
|
1796 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
1797 eval "$3=yes"
|
cannam@154
|
1798 else
|
cannam@154
|
1799 eval "$3=no"
|
cannam@154
|
1800 fi
|
cannam@154
|
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
1802 fi
|
cannam@154
|
1803 eval ac_res=\$$3
|
cannam@154
|
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
1805 $as_echo "$ac_res" >&6; }
|
cannam@154
|
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1807
|
cannam@154
|
1808 } # ac_fn_c_check_header_compile
|
cannam@154
|
1809
|
cannam@154
|
1810 # ac_fn_c_try_link LINENO
|
cannam@154
|
1811 # -----------------------
|
cannam@154
|
1812 # Try to link conftest.$ac_ext, and return whether this succeeded.
|
cannam@154
|
1813 ac_fn_c_try_link ()
|
cannam@154
|
1814 {
|
cannam@154
|
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1816 rm -f conftest.$ac_objext conftest$ac_exeext
|
cannam@154
|
1817 if { { ac_try="$ac_link"
|
cannam@154
|
1818 case "(($ac_try" in
|
cannam@154
|
1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
1820 *) ac_try_echo=$ac_try;;
|
cannam@154
|
1821 esac
|
cannam@154
|
1822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
1823 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
1824 (eval "$ac_link") 2>conftest.err
|
cannam@154
|
1825 ac_status=$?
|
cannam@154
|
1826 if test -s conftest.err; then
|
cannam@154
|
1827 grep -v '^ *+' conftest.err >conftest.er1
|
cannam@154
|
1828 cat conftest.er1 >&5
|
cannam@154
|
1829 mv -f conftest.er1 conftest.err
|
cannam@154
|
1830 fi
|
cannam@154
|
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
1832 test $ac_status = 0; } && {
|
cannam@154
|
1833 test -z "$ac_c_werror_flag" ||
|
cannam@154
|
1834 test ! -s conftest.err
|
cannam@154
|
1835 } && test -s conftest$ac_exeext && {
|
cannam@154
|
1836 test "$cross_compiling" = yes ||
|
cannam@154
|
1837 test -x conftest$ac_exeext
|
cannam@154
|
1838 }; then :
|
cannam@154
|
1839 ac_retval=0
|
cannam@154
|
1840 else
|
cannam@154
|
1841 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
1842 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
1843
|
cannam@154
|
1844 ac_retval=1
|
cannam@154
|
1845 fi
|
cannam@154
|
1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
|
cannam@154
|
1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
|
cannam@154
|
1848 # interfere with the next link command; also delete a directory that is
|
cannam@154
|
1849 # left behind by Apple's compiler. We do this before executing the actions.
|
cannam@154
|
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
|
cannam@154
|
1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1852 as_fn_set_status $ac_retval
|
cannam@154
|
1853
|
cannam@154
|
1854 } # ac_fn_c_try_link
|
cannam@154
|
1855
|
cannam@154
|
1856 # ac_fn_c_check_func LINENO FUNC VAR
|
cannam@154
|
1857 # ----------------------------------
|
cannam@154
|
1858 # Tests whether FUNC exists, setting the cache variable VAR accordingly
|
cannam@154
|
1859 ac_fn_c_check_func ()
|
cannam@154
|
1860 {
|
cannam@154
|
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
|
cannam@154
|
1863 $as_echo_n "checking for $2... " >&6; }
|
cannam@154
|
1864 if eval \${$3+:} false; then :
|
cannam@154
|
1865 $as_echo_n "(cached) " >&6
|
cannam@154
|
1866 else
|
cannam@154
|
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
1868 /* end confdefs.h. */
|
cannam@154
|
1869 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
|
cannam@154
|
1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
cannam@154
|
1871 #define $2 innocuous_$2
|
cannam@154
|
1872
|
cannam@154
|
1873 /* System header to define __stub macros and hopefully few prototypes,
|
cannam@154
|
1874 which can conflict with char $2 (); below.
|
cannam@154
|
1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@154
|
1876 <limits.h> exists even on freestanding compilers. */
|
cannam@154
|
1877
|
cannam@154
|
1878 #ifdef __STDC__
|
cannam@154
|
1879 # include <limits.h>
|
cannam@154
|
1880 #else
|
cannam@154
|
1881 # include <assert.h>
|
cannam@154
|
1882 #endif
|
cannam@154
|
1883
|
cannam@154
|
1884 #undef $2
|
cannam@154
|
1885
|
cannam@154
|
1886 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
1887 Use char because int might match the return type of a GCC
|
cannam@154
|
1888 builtin and then its argument prototype would still apply. */
|
cannam@154
|
1889 #ifdef __cplusplus
|
cannam@154
|
1890 extern "C"
|
cannam@154
|
1891 #endif
|
cannam@154
|
1892 char $2 ();
|
cannam@154
|
1893 /* The GNU C library defines this for functions which it implements
|
cannam@154
|
1894 to always fail with ENOSYS. Some functions are actually named
|
cannam@154
|
1895 something starting with __ and the normal name is an alias. */
|
cannam@154
|
1896 #if defined __stub_$2 || defined __stub___$2
|
cannam@154
|
1897 choke me
|
cannam@154
|
1898 #endif
|
cannam@154
|
1899
|
cannam@154
|
1900 int
|
cannam@154
|
1901 main ()
|
cannam@154
|
1902 {
|
cannam@154
|
1903 return $2 ();
|
cannam@154
|
1904 ;
|
cannam@154
|
1905 return 0;
|
cannam@154
|
1906 }
|
cannam@154
|
1907 _ACEOF
|
cannam@154
|
1908 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
1909 eval "$3=yes"
|
cannam@154
|
1910 else
|
cannam@154
|
1911 eval "$3=no"
|
cannam@154
|
1912 fi
|
cannam@154
|
1913 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
1914 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
1915 fi
|
cannam@154
|
1916 eval ac_res=\$$3
|
cannam@154
|
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
1918 $as_echo "$ac_res" >&6; }
|
cannam@154
|
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
cannam@154
|
1920
|
cannam@154
|
1921 } # ac_fn_c_check_func
|
cannam@154
|
1922 cat >config.log <<_ACEOF
|
cannam@154
|
1923 This file contains any messages produced by compilers while
|
cannam@154
|
1924 running configure, to aid debugging if configure makes a mistake.
|
cannam@154
|
1925
|
cannam@154
|
1926 It was created by opusfile $as_me 0.9, which was
|
cannam@154
|
1927 generated by GNU Autoconf 2.69. Invocation command line was
|
cannam@154
|
1928
|
cannam@154
|
1929 $ $0 $@
|
cannam@154
|
1930
|
cannam@154
|
1931 _ACEOF
|
cannam@154
|
1932 exec 5>>config.log
|
cannam@154
|
1933 {
|
cannam@154
|
1934 cat <<_ASUNAME
|
cannam@154
|
1935 ## --------- ##
|
cannam@154
|
1936 ## Platform. ##
|
cannam@154
|
1937 ## --------- ##
|
cannam@154
|
1938
|
cannam@154
|
1939 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@154
|
1940 uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
cannam@154
|
1941 uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
cannam@154
|
1942 uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
cannam@154
|
1943 uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
cannam@154
|
1944
|
cannam@154
|
1945 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
cannam@154
|
1946 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
cannam@154
|
1947
|
cannam@154
|
1948 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
cannam@154
|
1949 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
cannam@154
|
1950 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
cannam@154
|
1951 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
cannam@154
|
1952 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
cannam@154
|
1953 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
cannam@154
|
1954 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
cannam@154
|
1955
|
cannam@154
|
1956 _ASUNAME
|
cannam@154
|
1957
|
cannam@154
|
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
1959 for as_dir in $PATH
|
cannam@154
|
1960 do
|
cannam@154
|
1961 IFS=$as_save_IFS
|
cannam@154
|
1962 test -z "$as_dir" && as_dir=.
|
cannam@154
|
1963 $as_echo "PATH: $as_dir"
|
cannam@154
|
1964 done
|
cannam@154
|
1965 IFS=$as_save_IFS
|
cannam@154
|
1966
|
cannam@154
|
1967 } >&5
|
cannam@154
|
1968
|
cannam@154
|
1969 cat >&5 <<_ACEOF
|
cannam@154
|
1970
|
cannam@154
|
1971
|
cannam@154
|
1972 ## ----------- ##
|
cannam@154
|
1973 ## Core tests. ##
|
cannam@154
|
1974 ## ----------- ##
|
cannam@154
|
1975
|
cannam@154
|
1976 _ACEOF
|
cannam@154
|
1977
|
cannam@154
|
1978
|
cannam@154
|
1979 # Keep a trace of the command line.
|
cannam@154
|
1980 # Strip out --no-create and --no-recursion so they do not pile up.
|
cannam@154
|
1981 # Strip out --silent because we don't want to record it for future runs.
|
cannam@154
|
1982 # Also quote any args containing shell meta-characters.
|
cannam@154
|
1983 # Make two passes to allow for proper duplicate-argument suppression.
|
cannam@154
|
1984 ac_configure_args=
|
cannam@154
|
1985 ac_configure_args0=
|
cannam@154
|
1986 ac_configure_args1=
|
cannam@154
|
1987 ac_must_keep_next=false
|
cannam@154
|
1988 for ac_pass in 1 2
|
cannam@154
|
1989 do
|
cannam@154
|
1990 for ac_arg
|
cannam@154
|
1991 do
|
cannam@154
|
1992 case $ac_arg in
|
cannam@154
|
1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
cannam@154
|
1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@154
|
1995 | -silent | --silent | --silen | --sile | --sil)
|
cannam@154
|
1996 continue ;;
|
cannam@154
|
1997 *\'*)
|
cannam@154
|
1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@154
|
1999 esac
|
cannam@154
|
2000 case $ac_pass in
|
cannam@154
|
2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
|
cannam@154
|
2002 2)
|
cannam@154
|
2003 as_fn_append ac_configure_args1 " '$ac_arg'"
|
cannam@154
|
2004 if test $ac_must_keep_next = true; then
|
cannam@154
|
2005 ac_must_keep_next=false # Got value, back to normal.
|
cannam@154
|
2006 else
|
cannam@154
|
2007 case $ac_arg in
|
cannam@154
|
2008 *=* | --config-cache | -C | -disable-* | --disable-* \
|
cannam@154
|
2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
cannam@154
|
2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
cannam@154
|
2011 | -with-* | --with-* | -without-* | --without-* | --x)
|
cannam@154
|
2012 case "$ac_configure_args0 " in
|
cannam@154
|
2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
cannam@154
|
2014 esac
|
cannam@154
|
2015 ;;
|
cannam@154
|
2016 -* ) ac_must_keep_next=true ;;
|
cannam@154
|
2017 esac
|
cannam@154
|
2018 fi
|
cannam@154
|
2019 as_fn_append ac_configure_args " '$ac_arg'"
|
cannam@154
|
2020 ;;
|
cannam@154
|
2021 esac
|
cannam@154
|
2022 done
|
cannam@154
|
2023 done
|
cannam@154
|
2024 { ac_configure_args0=; unset ac_configure_args0;}
|
cannam@154
|
2025 { ac_configure_args1=; unset ac_configure_args1;}
|
cannam@154
|
2026
|
cannam@154
|
2027 # When interrupted or exit'd, cleanup temporary files, and complete
|
cannam@154
|
2028 # config.log. We remove comments because anyway the quotes in there
|
cannam@154
|
2029 # would cause problems or look ugly.
|
cannam@154
|
2030 # WARNING: Use '\'' to represent an apostrophe within the trap.
|
cannam@154
|
2031 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
cannam@154
|
2032 trap 'exit_status=$?
|
cannam@154
|
2033 # Save into config.log some information that might help in debugging.
|
cannam@154
|
2034 {
|
cannam@154
|
2035 echo
|
cannam@154
|
2036
|
cannam@154
|
2037 $as_echo "## ---------------- ##
|
cannam@154
|
2038 ## Cache variables. ##
|
cannam@154
|
2039 ## ---------------- ##"
|
cannam@154
|
2040 echo
|
cannam@154
|
2041 # The following way of writing the cache mishandles newlines in values,
|
cannam@154
|
2042 (
|
cannam@154
|
2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
cannam@154
|
2044 eval ac_val=\$$ac_var
|
cannam@154
|
2045 case $ac_val in #(
|
cannam@154
|
2046 *${as_nl}*)
|
cannam@154
|
2047 case $ac_var in #(
|
cannam@154
|
2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
cannam@154
|
2049 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
cannam@154
|
2050 esac
|
cannam@154
|
2051 case $ac_var in #(
|
cannam@154
|
2052 _ | IFS | as_nl) ;; #(
|
cannam@154
|
2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
cannam@154
|
2054 *) { eval $ac_var=; unset $ac_var;} ;;
|
cannam@154
|
2055 esac ;;
|
cannam@154
|
2056 esac
|
cannam@154
|
2057 done
|
cannam@154
|
2058 (set) 2>&1 |
|
cannam@154
|
2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
cannam@154
|
2060 *${as_nl}ac_space=\ *)
|
cannam@154
|
2061 sed -n \
|
cannam@154
|
2062 "s/'\''/'\''\\\\'\'''\''/g;
|
cannam@154
|
2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
cannam@154
|
2064 ;; #(
|
cannam@154
|
2065 *)
|
cannam@154
|
2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
cannam@154
|
2067 ;;
|
cannam@154
|
2068 esac |
|
cannam@154
|
2069 sort
|
cannam@154
|
2070 )
|
cannam@154
|
2071 echo
|
cannam@154
|
2072
|
cannam@154
|
2073 $as_echo "## ----------------- ##
|
cannam@154
|
2074 ## Output variables. ##
|
cannam@154
|
2075 ## ----------------- ##"
|
cannam@154
|
2076 echo
|
cannam@154
|
2077 for ac_var in $ac_subst_vars
|
cannam@154
|
2078 do
|
cannam@154
|
2079 eval ac_val=\$$ac_var
|
cannam@154
|
2080 case $ac_val in
|
cannam@154
|
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
cannam@154
|
2082 esac
|
cannam@154
|
2083 $as_echo "$ac_var='\''$ac_val'\''"
|
cannam@154
|
2084 done | sort
|
cannam@154
|
2085 echo
|
cannam@154
|
2086
|
cannam@154
|
2087 if test -n "$ac_subst_files"; then
|
cannam@154
|
2088 $as_echo "## ------------------- ##
|
cannam@154
|
2089 ## File substitutions. ##
|
cannam@154
|
2090 ## ------------------- ##"
|
cannam@154
|
2091 echo
|
cannam@154
|
2092 for ac_var in $ac_subst_files
|
cannam@154
|
2093 do
|
cannam@154
|
2094 eval ac_val=\$$ac_var
|
cannam@154
|
2095 case $ac_val in
|
cannam@154
|
2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
cannam@154
|
2097 esac
|
cannam@154
|
2098 $as_echo "$ac_var='\''$ac_val'\''"
|
cannam@154
|
2099 done | sort
|
cannam@154
|
2100 echo
|
cannam@154
|
2101 fi
|
cannam@154
|
2102
|
cannam@154
|
2103 if test -s confdefs.h; then
|
cannam@154
|
2104 $as_echo "## ----------- ##
|
cannam@154
|
2105 ## confdefs.h. ##
|
cannam@154
|
2106 ## ----------- ##"
|
cannam@154
|
2107 echo
|
cannam@154
|
2108 cat confdefs.h
|
cannam@154
|
2109 echo
|
cannam@154
|
2110 fi
|
cannam@154
|
2111 test "$ac_signal" != 0 &&
|
cannam@154
|
2112 $as_echo "$as_me: caught signal $ac_signal"
|
cannam@154
|
2113 $as_echo "$as_me: exit $exit_status"
|
cannam@154
|
2114 } >&5
|
cannam@154
|
2115 rm -f core *.core core.conftest.* &&
|
cannam@154
|
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
cannam@154
|
2117 exit $exit_status
|
cannam@154
|
2118 ' 0
|
cannam@154
|
2119 for ac_signal in 1 2 13 15; do
|
cannam@154
|
2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
|
cannam@154
|
2121 done
|
cannam@154
|
2122 ac_signal=0
|
cannam@154
|
2123
|
cannam@154
|
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
cannam@154
|
2125 rm -f -r conftest* confdefs.h
|
cannam@154
|
2126
|
cannam@154
|
2127 $as_echo "/* confdefs.h */" > confdefs.h
|
cannam@154
|
2128
|
cannam@154
|
2129 # Predefined preprocessor variables.
|
cannam@154
|
2130
|
cannam@154
|
2131 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2132 #define PACKAGE_NAME "$PACKAGE_NAME"
|
cannam@154
|
2133 _ACEOF
|
cannam@154
|
2134
|
cannam@154
|
2135 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2136 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
cannam@154
|
2137 _ACEOF
|
cannam@154
|
2138
|
cannam@154
|
2139 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
cannam@154
|
2141 _ACEOF
|
cannam@154
|
2142
|
cannam@154
|
2143 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2144 #define PACKAGE_STRING "$PACKAGE_STRING"
|
cannam@154
|
2145 _ACEOF
|
cannam@154
|
2146
|
cannam@154
|
2147 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2148 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
cannam@154
|
2149 _ACEOF
|
cannam@154
|
2150
|
cannam@154
|
2151 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
2152 #define PACKAGE_URL "$PACKAGE_URL"
|
cannam@154
|
2153 _ACEOF
|
cannam@154
|
2154
|
cannam@154
|
2155
|
cannam@154
|
2156 # Let the site file select an alternate cache file if it wants to.
|
cannam@154
|
2157 # Prefer an explicitly selected file to automatically selected ones.
|
cannam@154
|
2158 ac_site_file1=NONE
|
cannam@154
|
2159 ac_site_file2=NONE
|
cannam@154
|
2160 if test -n "$CONFIG_SITE"; then
|
cannam@154
|
2161 # We do not want a PATH search for config.site.
|
cannam@154
|
2162 case $CONFIG_SITE in #((
|
cannam@154
|
2163 -*) ac_site_file1=./$CONFIG_SITE;;
|
cannam@154
|
2164 */*) ac_site_file1=$CONFIG_SITE;;
|
cannam@154
|
2165 *) ac_site_file1=./$CONFIG_SITE;;
|
cannam@154
|
2166 esac
|
cannam@154
|
2167 elif test "x$prefix" != xNONE; then
|
cannam@154
|
2168 ac_site_file1=$prefix/share/config.site
|
cannam@154
|
2169 ac_site_file2=$prefix/etc/config.site
|
cannam@154
|
2170 else
|
cannam@154
|
2171 ac_site_file1=$ac_default_prefix/share/config.site
|
cannam@154
|
2172 ac_site_file2=$ac_default_prefix/etc/config.site
|
cannam@154
|
2173 fi
|
cannam@154
|
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
|
cannam@154
|
2175 do
|
cannam@154
|
2176 test "x$ac_site_file" = xNONE && continue
|
cannam@154
|
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
|
cannam@154
|
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
|
cannam@154
|
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
|
cannam@154
|
2180 sed 's/^/| /' "$ac_site_file" >&5
|
cannam@154
|
2181 . "$ac_site_file" \
|
cannam@154
|
2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2184 as_fn_error $? "failed to load site script $ac_site_file
|
cannam@154
|
2185 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2186 fi
|
cannam@154
|
2187 done
|
cannam@154
|
2188
|
cannam@154
|
2189 if test -r "$cache_file"; then
|
cannam@154
|
2190 # Some versions of bash will fail to source /dev/null (special files
|
cannam@154
|
2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
|
cannam@154
|
2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
|
cannam@154
|
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
|
cannam@154
|
2194 $as_echo "$as_me: loading cache $cache_file" >&6;}
|
cannam@154
|
2195 case $cache_file in
|
cannam@154
|
2196 [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
cannam@154
|
2197 *) . "./$cache_file";;
|
cannam@154
|
2198 esac
|
cannam@154
|
2199 fi
|
cannam@154
|
2200 else
|
cannam@154
|
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
|
cannam@154
|
2202 $as_echo "$as_me: creating cache $cache_file" >&6;}
|
cannam@154
|
2203 >$cache_file
|
cannam@154
|
2204 fi
|
cannam@154
|
2205
|
cannam@154
|
2206 # Check that the precious variables saved in the cache have kept the same
|
cannam@154
|
2207 # value.
|
cannam@154
|
2208 ac_cache_corrupted=false
|
cannam@154
|
2209 for ac_var in $ac_precious_vars; do
|
cannam@154
|
2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
cannam@154
|
2211 eval ac_new_set=\$ac_env_${ac_var}_set
|
cannam@154
|
2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
cannam@154
|
2213 eval ac_new_val=\$ac_env_${ac_var}_value
|
cannam@154
|
2214 case $ac_old_set,$ac_new_set in
|
cannam@154
|
2215 set,)
|
cannam@154
|
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
cannam@154
|
2217 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
cannam@154
|
2218 ac_cache_corrupted=: ;;
|
cannam@154
|
2219 ,set)
|
cannam@154
|
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
|
cannam@154
|
2221 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
cannam@154
|
2222 ac_cache_corrupted=: ;;
|
cannam@154
|
2223 ,);;
|
cannam@154
|
2224 *)
|
cannam@154
|
2225 if test "x$ac_old_val" != "x$ac_new_val"; then
|
cannam@154
|
2226 # differences in whitespace do not lead to failure.
|
cannam@154
|
2227 ac_old_val_w=`echo x $ac_old_val`
|
cannam@154
|
2228 ac_new_val_w=`echo x $ac_new_val`
|
cannam@154
|
2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then
|
cannam@154
|
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
|
cannam@154
|
2231 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
cannam@154
|
2232 ac_cache_corrupted=:
|
cannam@154
|
2233 else
|
cannam@154
|
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
|
cannam@154
|
2235 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
|
cannam@154
|
2236 eval $ac_var=\$ac_old_val
|
cannam@154
|
2237 fi
|
cannam@154
|
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
|
cannam@154
|
2239 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
|
cannam@154
|
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
|
cannam@154
|
2241 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
|
cannam@154
|
2242 fi;;
|
cannam@154
|
2243 esac
|
cannam@154
|
2244 # Pass precious variables to config.status.
|
cannam@154
|
2245 if test "$ac_new_set" = set; then
|
cannam@154
|
2246 case $ac_new_val in
|
cannam@154
|
2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@154
|
2248 *) ac_arg=$ac_var=$ac_new_val ;;
|
cannam@154
|
2249 esac
|
cannam@154
|
2250 case " $ac_configure_args " in
|
cannam@154
|
2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
cannam@154
|
2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
|
cannam@154
|
2253 esac
|
cannam@154
|
2254 fi
|
cannam@154
|
2255 done
|
cannam@154
|
2256 if $ac_cache_corrupted; then
|
cannam@154
|
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
|
cannam@154
|
2260 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
cannam@154
|
2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
|
cannam@154
|
2262 fi
|
cannam@154
|
2263 ## -------------------- ##
|
cannam@154
|
2264 ## Main body of script. ##
|
cannam@154
|
2265 ## -------------------- ##
|
cannam@154
|
2266
|
cannam@154
|
2267 ac_ext=c
|
cannam@154
|
2268 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
2269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
2270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
2271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
2272
|
cannam@154
|
2273
|
cannam@154
|
2274
|
cannam@154
|
2275
|
cannam@154
|
2276
|
cannam@154
|
2277 ac_aux_dir=
|
cannam@154
|
2278 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
cannam@154
|
2279 if test -f "$ac_dir/install-sh"; then
|
cannam@154
|
2280 ac_aux_dir=$ac_dir
|
cannam@154
|
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
|
cannam@154
|
2282 break
|
cannam@154
|
2283 elif test -f "$ac_dir/install.sh"; then
|
cannam@154
|
2284 ac_aux_dir=$ac_dir
|
cannam@154
|
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
|
cannam@154
|
2286 break
|
cannam@154
|
2287 elif test -f "$ac_dir/shtool"; then
|
cannam@154
|
2288 ac_aux_dir=$ac_dir
|
cannam@154
|
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
|
cannam@154
|
2290 break
|
cannam@154
|
2291 fi
|
cannam@154
|
2292 done
|
cannam@154
|
2293 if test -z "$ac_aux_dir"; then
|
cannam@154
|
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
|
cannam@154
|
2295 fi
|
cannam@154
|
2296
|
cannam@154
|
2297 # These three variables are undocumented and unsupported,
|
cannam@154
|
2298 # and are intended to be withdrawn in a future Autoconf release.
|
cannam@154
|
2299 # They can cause serious problems if a builder's source tree is in a directory
|
cannam@154
|
2300 # whose full name contains unusual characters.
|
cannam@154
|
2301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
cannam@154
|
2302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
cannam@154
|
2303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
cannam@154
|
2304
|
cannam@154
|
2305
|
cannam@154
|
2306 # Expand $ac_aux_dir to an absolute path.
|
cannam@154
|
2307 am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
cannam@154
|
2308
|
cannam@154
|
2309 ac_ext=c
|
cannam@154
|
2310 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
2314 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
2315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
cannam@154
|
2316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
cannam@154
|
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2318 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2319 if ${ac_cv_prog_CC+:} false; then :
|
cannam@154
|
2320 $as_echo_n "(cached) " >&6
|
cannam@154
|
2321 else
|
cannam@154
|
2322 if test -n "$CC"; then
|
cannam@154
|
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@154
|
2324 else
|
cannam@154
|
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2326 for as_dir in $PATH
|
cannam@154
|
2327 do
|
cannam@154
|
2328 IFS=$as_save_IFS
|
cannam@154
|
2329 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2330 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
cannam@154
|
2333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2334 break 2
|
cannam@154
|
2335 fi
|
cannam@154
|
2336 done
|
cannam@154
|
2337 done
|
cannam@154
|
2338 IFS=$as_save_IFS
|
cannam@154
|
2339
|
cannam@154
|
2340 fi
|
cannam@154
|
2341 fi
|
cannam@154
|
2342 CC=$ac_cv_prog_CC
|
cannam@154
|
2343 if test -n "$CC"; then
|
cannam@154
|
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
cannam@154
|
2345 $as_echo "$CC" >&6; }
|
cannam@154
|
2346 else
|
cannam@154
|
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2348 $as_echo "no" >&6; }
|
cannam@154
|
2349 fi
|
cannam@154
|
2350
|
cannam@154
|
2351
|
cannam@154
|
2352 fi
|
cannam@154
|
2353 if test -z "$ac_cv_prog_CC"; then
|
cannam@154
|
2354 ac_ct_CC=$CC
|
cannam@154
|
2355 # Extract the first word of "gcc", so it can be a program name with args.
|
cannam@154
|
2356 set dummy gcc; ac_word=$2
|
cannam@154
|
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2358 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
cannam@154
|
2360 $as_echo_n "(cached) " >&6
|
cannam@154
|
2361 else
|
cannam@154
|
2362 if test -n "$ac_ct_CC"; then
|
cannam@154
|
2363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@154
|
2364 else
|
cannam@154
|
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2366 for as_dir in $PATH
|
cannam@154
|
2367 do
|
cannam@154
|
2368 IFS=$as_save_IFS
|
cannam@154
|
2369 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2370 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2372 ac_cv_prog_ac_ct_CC="gcc"
|
cannam@154
|
2373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2374 break 2
|
cannam@154
|
2375 fi
|
cannam@154
|
2376 done
|
cannam@154
|
2377 done
|
cannam@154
|
2378 IFS=$as_save_IFS
|
cannam@154
|
2379
|
cannam@154
|
2380 fi
|
cannam@154
|
2381 fi
|
cannam@154
|
2382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@154
|
2383 if test -n "$ac_ct_CC"; then
|
cannam@154
|
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
cannam@154
|
2385 $as_echo "$ac_ct_CC" >&6; }
|
cannam@154
|
2386 else
|
cannam@154
|
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2388 $as_echo "no" >&6; }
|
cannam@154
|
2389 fi
|
cannam@154
|
2390
|
cannam@154
|
2391 if test "x$ac_ct_CC" = x; then
|
cannam@154
|
2392 CC=""
|
cannam@154
|
2393 else
|
cannam@154
|
2394 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
2395 yes:)
|
cannam@154
|
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
2397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
2398 ac_tool_warned=yes ;;
|
cannam@154
|
2399 esac
|
cannam@154
|
2400 CC=$ac_ct_CC
|
cannam@154
|
2401 fi
|
cannam@154
|
2402 else
|
cannam@154
|
2403 CC="$ac_cv_prog_CC"
|
cannam@154
|
2404 fi
|
cannam@154
|
2405
|
cannam@154
|
2406 if test -z "$CC"; then
|
cannam@154
|
2407 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
2408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
cannam@154
|
2409 set dummy ${ac_tool_prefix}cc; ac_word=$2
|
cannam@154
|
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2411 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2412 if ${ac_cv_prog_CC+:} false; then :
|
cannam@154
|
2413 $as_echo_n "(cached) " >&6
|
cannam@154
|
2414 else
|
cannam@154
|
2415 if test -n "$CC"; then
|
cannam@154
|
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@154
|
2417 else
|
cannam@154
|
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2419 for as_dir in $PATH
|
cannam@154
|
2420 do
|
cannam@154
|
2421 IFS=$as_save_IFS
|
cannam@154
|
2422 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2423 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2425 ac_cv_prog_CC="${ac_tool_prefix}cc"
|
cannam@154
|
2426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2427 break 2
|
cannam@154
|
2428 fi
|
cannam@154
|
2429 done
|
cannam@154
|
2430 done
|
cannam@154
|
2431 IFS=$as_save_IFS
|
cannam@154
|
2432
|
cannam@154
|
2433 fi
|
cannam@154
|
2434 fi
|
cannam@154
|
2435 CC=$ac_cv_prog_CC
|
cannam@154
|
2436 if test -n "$CC"; then
|
cannam@154
|
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
cannam@154
|
2438 $as_echo "$CC" >&6; }
|
cannam@154
|
2439 else
|
cannam@154
|
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2441 $as_echo "no" >&6; }
|
cannam@154
|
2442 fi
|
cannam@154
|
2443
|
cannam@154
|
2444
|
cannam@154
|
2445 fi
|
cannam@154
|
2446 fi
|
cannam@154
|
2447 if test -z "$CC"; then
|
cannam@154
|
2448 # Extract the first word of "cc", so it can be a program name with args.
|
cannam@154
|
2449 set dummy cc; ac_word=$2
|
cannam@154
|
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2451 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2452 if ${ac_cv_prog_CC+:} false; then :
|
cannam@154
|
2453 $as_echo_n "(cached) " >&6
|
cannam@154
|
2454 else
|
cannam@154
|
2455 if test -n "$CC"; then
|
cannam@154
|
2456 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@154
|
2457 else
|
cannam@154
|
2458 ac_prog_rejected=no
|
cannam@154
|
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2460 for as_dir in $PATH
|
cannam@154
|
2461 do
|
cannam@154
|
2462 IFS=$as_save_IFS
|
cannam@154
|
2463 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2464 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
cannam@154
|
2467 ac_prog_rejected=yes
|
cannam@154
|
2468 continue
|
cannam@154
|
2469 fi
|
cannam@154
|
2470 ac_cv_prog_CC="cc"
|
cannam@154
|
2471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2472 break 2
|
cannam@154
|
2473 fi
|
cannam@154
|
2474 done
|
cannam@154
|
2475 done
|
cannam@154
|
2476 IFS=$as_save_IFS
|
cannam@154
|
2477
|
cannam@154
|
2478 if test $ac_prog_rejected = yes; then
|
cannam@154
|
2479 # We found a bogon in the path, so make sure we never use it.
|
cannam@154
|
2480 set dummy $ac_cv_prog_CC
|
cannam@154
|
2481 shift
|
cannam@154
|
2482 if test $# != 0; then
|
cannam@154
|
2483 # We chose a different compiler from the bogus one.
|
cannam@154
|
2484 # However, it has the same basename, so the bogon will be chosen
|
cannam@154
|
2485 # first if we set CC to just the basename; use the full file name.
|
cannam@154
|
2486 shift
|
cannam@154
|
2487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
cannam@154
|
2488 fi
|
cannam@154
|
2489 fi
|
cannam@154
|
2490 fi
|
cannam@154
|
2491 fi
|
cannam@154
|
2492 CC=$ac_cv_prog_CC
|
cannam@154
|
2493 if test -n "$CC"; then
|
cannam@154
|
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
cannam@154
|
2495 $as_echo "$CC" >&6; }
|
cannam@154
|
2496 else
|
cannam@154
|
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2498 $as_echo "no" >&6; }
|
cannam@154
|
2499 fi
|
cannam@154
|
2500
|
cannam@154
|
2501
|
cannam@154
|
2502 fi
|
cannam@154
|
2503 if test -z "$CC"; then
|
cannam@154
|
2504 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
2505 for ac_prog in cl.exe
|
cannam@154
|
2506 do
|
cannam@154
|
2507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@154
|
2508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@154
|
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2510 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2511 if ${ac_cv_prog_CC+:} false; then :
|
cannam@154
|
2512 $as_echo_n "(cached) " >&6
|
cannam@154
|
2513 else
|
cannam@154
|
2514 if test -n "$CC"; then
|
cannam@154
|
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
|
cannam@154
|
2516 else
|
cannam@154
|
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2518 for as_dir in $PATH
|
cannam@154
|
2519 do
|
cannam@154
|
2520 IFS=$as_save_IFS
|
cannam@154
|
2521 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2522 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
cannam@154
|
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2526 break 2
|
cannam@154
|
2527 fi
|
cannam@154
|
2528 done
|
cannam@154
|
2529 done
|
cannam@154
|
2530 IFS=$as_save_IFS
|
cannam@154
|
2531
|
cannam@154
|
2532 fi
|
cannam@154
|
2533 fi
|
cannam@154
|
2534 CC=$ac_cv_prog_CC
|
cannam@154
|
2535 if test -n "$CC"; then
|
cannam@154
|
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
|
cannam@154
|
2537 $as_echo "$CC" >&6; }
|
cannam@154
|
2538 else
|
cannam@154
|
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2540 $as_echo "no" >&6; }
|
cannam@154
|
2541 fi
|
cannam@154
|
2542
|
cannam@154
|
2543
|
cannam@154
|
2544 test -n "$CC" && break
|
cannam@154
|
2545 done
|
cannam@154
|
2546 fi
|
cannam@154
|
2547 if test -z "$CC"; then
|
cannam@154
|
2548 ac_ct_CC=$CC
|
cannam@154
|
2549 for ac_prog in cl.exe
|
cannam@154
|
2550 do
|
cannam@154
|
2551 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@154
|
2552 set dummy $ac_prog; ac_word=$2
|
cannam@154
|
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
2554 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
2555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
|
cannam@154
|
2556 $as_echo_n "(cached) " >&6
|
cannam@154
|
2557 else
|
cannam@154
|
2558 if test -n "$ac_ct_CC"; then
|
cannam@154
|
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
cannam@154
|
2560 else
|
cannam@154
|
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
2562 for as_dir in $PATH
|
cannam@154
|
2563 do
|
cannam@154
|
2564 IFS=$as_save_IFS
|
cannam@154
|
2565 test -z "$as_dir" && as_dir=.
|
cannam@154
|
2566 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
2568 ac_cv_prog_ac_ct_CC="$ac_prog"
|
cannam@154
|
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
2570 break 2
|
cannam@154
|
2571 fi
|
cannam@154
|
2572 done
|
cannam@154
|
2573 done
|
cannam@154
|
2574 IFS=$as_save_IFS
|
cannam@154
|
2575
|
cannam@154
|
2576 fi
|
cannam@154
|
2577 fi
|
cannam@154
|
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
cannam@154
|
2579 if test -n "$ac_ct_CC"; then
|
cannam@154
|
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
|
cannam@154
|
2581 $as_echo "$ac_ct_CC" >&6; }
|
cannam@154
|
2582 else
|
cannam@154
|
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2584 $as_echo "no" >&6; }
|
cannam@154
|
2585 fi
|
cannam@154
|
2586
|
cannam@154
|
2587
|
cannam@154
|
2588 test -n "$ac_ct_CC" && break
|
cannam@154
|
2589 done
|
cannam@154
|
2590
|
cannam@154
|
2591 if test "x$ac_ct_CC" = x; then
|
cannam@154
|
2592 CC=""
|
cannam@154
|
2593 else
|
cannam@154
|
2594 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
2595 yes:)
|
cannam@154
|
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
2597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
2598 ac_tool_warned=yes ;;
|
cannam@154
|
2599 esac
|
cannam@154
|
2600 CC=$ac_ct_CC
|
cannam@154
|
2601 fi
|
cannam@154
|
2602 fi
|
cannam@154
|
2603
|
cannam@154
|
2604 fi
|
cannam@154
|
2605
|
cannam@154
|
2606
|
cannam@154
|
2607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2609 as_fn_error $? "no acceptable C compiler found in \$PATH
|
cannam@154
|
2610 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2611
|
cannam@154
|
2612 # Provide some information about the compiler.
|
cannam@154
|
2613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
|
cannam@154
|
2614 set X $ac_compile
|
cannam@154
|
2615 ac_compiler=$2
|
cannam@154
|
2616 for ac_option in --version -v -V -qversion; do
|
cannam@154
|
2617 { { ac_try="$ac_compiler $ac_option >&5"
|
cannam@154
|
2618 case "(($ac_try" in
|
cannam@154
|
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2620 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2621 esac
|
cannam@154
|
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2623 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
|
cannam@154
|
2625 ac_status=$?
|
cannam@154
|
2626 if test -s conftest.err; then
|
cannam@154
|
2627 sed '10a\
|
cannam@154
|
2628 ... rest of stderr output deleted ...
|
cannam@154
|
2629 10q' conftest.err >conftest.er1
|
cannam@154
|
2630 cat conftest.er1 >&5
|
cannam@154
|
2631 fi
|
cannam@154
|
2632 rm -f conftest.er1 conftest.err
|
cannam@154
|
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2634 test $ac_status = 0; }
|
cannam@154
|
2635 done
|
cannam@154
|
2636
|
cannam@154
|
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2638 /* end confdefs.h. */
|
cannam@154
|
2639
|
cannam@154
|
2640 int
|
cannam@154
|
2641 main ()
|
cannam@154
|
2642 {
|
cannam@154
|
2643
|
cannam@154
|
2644 ;
|
cannam@154
|
2645 return 0;
|
cannam@154
|
2646 }
|
cannam@154
|
2647 _ACEOF
|
cannam@154
|
2648 ac_clean_files_save=$ac_clean_files
|
cannam@154
|
2649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
|
cannam@154
|
2650 # Try to create an executable without -o first, disregard a.out.
|
cannam@154
|
2651 # It will help us diagnose broken compilers, and finding out an intuition
|
cannam@154
|
2652 # of exeext.
|
cannam@154
|
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
|
cannam@154
|
2654 $as_echo_n "checking whether the C compiler works... " >&6; }
|
cannam@154
|
2655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
cannam@154
|
2656
|
cannam@154
|
2657 # The possible output files:
|
cannam@154
|
2658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
|
cannam@154
|
2659
|
cannam@154
|
2660 ac_rmfiles=
|
cannam@154
|
2661 for ac_file in $ac_files
|
cannam@154
|
2662 do
|
cannam@154
|
2663 case $ac_file in
|
cannam@154
|
2664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
cannam@154
|
2665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
cannam@154
|
2666 esac
|
cannam@154
|
2667 done
|
cannam@154
|
2668 rm -f $ac_rmfiles
|
cannam@154
|
2669
|
cannam@154
|
2670 if { { ac_try="$ac_link_default"
|
cannam@154
|
2671 case "(($ac_try" in
|
cannam@154
|
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2673 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2674 esac
|
cannam@154
|
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2676 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2677 (eval "$ac_link_default") 2>&5
|
cannam@154
|
2678 ac_status=$?
|
cannam@154
|
2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2680 test $ac_status = 0; }; then :
|
cannam@154
|
2681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
cannam@154
|
2682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
cannam@154
|
2683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
cannam@154
|
2684 # so that the user can short-circuit this test for compilers unknown to
|
cannam@154
|
2685 # Autoconf.
|
cannam@154
|
2686 for ac_file in $ac_files ''
|
cannam@154
|
2687 do
|
cannam@154
|
2688 test -f "$ac_file" || continue
|
cannam@154
|
2689 case $ac_file in
|
cannam@154
|
2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
|
cannam@154
|
2691 ;;
|
cannam@154
|
2692 [ab].out )
|
cannam@154
|
2693 # We found the default executable, but exeext='' is most
|
cannam@154
|
2694 # certainly right.
|
cannam@154
|
2695 break;;
|
cannam@154
|
2696 *.* )
|
cannam@154
|
2697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
cannam@154
|
2698 then :; else
|
cannam@154
|
2699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@154
|
2700 fi
|
cannam@154
|
2701 # We set ac_cv_exeext here because the later test for it is not
|
cannam@154
|
2702 # safe: cross compilers may not add the suffix if given an `-o'
|
cannam@154
|
2703 # argument, so we may need to know it at that point already.
|
cannam@154
|
2704 # Even if this section looks crufty: it has the advantage of
|
cannam@154
|
2705 # actually working.
|
cannam@154
|
2706 break;;
|
cannam@154
|
2707 * )
|
cannam@154
|
2708 break;;
|
cannam@154
|
2709 esac
|
cannam@154
|
2710 done
|
cannam@154
|
2711 test "$ac_cv_exeext" = no && ac_cv_exeext=
|
cannam@154
|
2712
|
cannam@154
|
2713 else
|
cannam@154
|
2714 ac_file=''
|
cannam@154
|
2715 fi
|
cannam@154
|
2716 if test -z "$ac_file"; then :
|
cannam@154
|
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
2718 $as_echo "no" >&6; }
|
cannam@154
|
2719 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
2720 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
2721
|
cannam@154
|
2722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2724 as_fn_error 77 "C compiler cannot create executables
|
cannam@154
|
2725 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2726 else
|
cannam@154
|
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
2728 $as_echo "yes" >&6; }
|
cannam@154
|
2729 fi
|
cannam@154
|
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
|
cannam@154
|
2731 $as_echo_n "checking for C compiler default output file name... " >&6; }
|
cannam@154
|
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
|
cannam@154
|
2733 $as_echo "$ac_file" >&6; }
|
cannam@154
|
2734 ac_exeext=$ac_cv_exeext
|
cannam@154
|
2735
|
cannam@154
|
2736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
|
cannam@154
|
2737 ac_clean_files=$ac_clean_files_save
|
cannam@154
|
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
|
cannam@154
|
2739 $as_echo_n "checking for suffix of executables... " >&6; }
|
cannam@154
|
2740 if { { ac_try="$ac_link"
|
cannam@154
|
2741 case "(($ac_try" in
|
cannam@154
|
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2743 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2744 esac
|
cannam@154
|
2745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2746 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2747 (eval "$ac_link") 2>&5
|
cannam@154
|
2748 ac_status=$?
|
cannam@154
|
2749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2750 test $ac_status = 0; }; then :
|
cannam@154
|
2751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
cannam@154
|
2752 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
cannam@154
|
2753 # work properly (i.e., refer to `conftest.exe'), while it won't with
|
cannam@154
|
2754 # `rm'.
|
cannam@154
|
2755 for ac_file in conftest.exe conftest conftest.*; do
|
cannam@154
|
2756 test -f "$ac_file" || continue
|
cannam@154
|
2757 case $ac_file in
|
cannam@154
|
2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
|
cannam@154
|
2759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
cannam@154
|
2760 break;;
|
cannam@154
|
2761 * ) break;;
|
cannam@154
|
2762 esac
|
cannam@154
|
2763 done
|
cannam@154
|
2764 else
|
cannam@154
|
2765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
|
cannam@154
|
2768 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2769 fi
|
cannam@154
|
2770 rm -f conftest conftest$ac_cv_exeext
|
cannam@154
|
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
|
cannam@154
|
2772 $as_echo "$ac_cv_exeext" >&6; }
|
cannam@154
|
2773
|
cannam@154
|
2774 rm -f conftest.$ac_ext
|
cannam@154
|
2775 EXEEXT=$ac_cv_exeext
|
cannam@154
|
2776 ac_exeext=$EXEEXT
|
cannam@154
|
2777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2778 /* end confdefs.h. */
|
cannam@154
|
2779 #include <stdio.h>
|
cannam@154
|
2780 int
|
cannam@154
|
2781 main ()
|
cannam@154
|
2782 {
|
cannam@154
|
2783 FILE *f = fopen ("conftest.out", "w");
|
cannam@154
|
2784 return ferror (f) || fclose (f) != 0;
|
cannam@154
|
2785
|
cannam@154
|
2786 ;
|
cannam@154
|
2787 return 0;
|
cannam@154
|
2788 }
|
cannam@154
|
2789 _ACEOF
|
cannam@154
|
2790 ac_clean_files="$ac_clean_files conftest.out"
|
cannam@154
|
2791 # Check that the compiler produces executables we can run. If not, either
|
cannam@154
|
2792 # the compiler is broken, or we cross compile.
|
cannam@154
|
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
|
cannam@154
|
2794 $as_echo_n "checking whether we are cross compiling... " >&6; }
|
cannam@154
|
2795 if test "$cross_compiling" != yes; then
|
cannam@154
|
2796 { { ac_try="$ac_link"
|
cannam@154
|
2797 case "(($ac_try" in
|
cannam@154
|
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2799 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2800 esac
|
cannam@154
|
2801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2802 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2803 (eval "$ac_link") 2>&5
|
cannam@154
|
2804 ac_status=$?
|
cannam@154
|
2805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2806 test $ac_status = 0; }
|
cannam@154
|
2807 if { ac_try='./conftest$ac_cv_exeext'
|
cannam@154
|
2808 { { case "(($ac_try" in
|
cannam@154
|
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2810 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2811 esac
|
cannam@154
|
2812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2813 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2814 (eval "$ac_try") 2>&5
|
cannam@154
|
2815 ac_status=$?
|
cannam@154
|
2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2817 test $ac_status = 0; }; }; then
|
cannam@154
|
2818 cross_compiling=no
|
cannam@154
|
2819 else
|
cannam@154
|
2820 if test "$cross_compiling" = maybe; then
|
cannam@154
|
2821 cross_compiling=yes
|
cannam@154
|
2822 else
|
cannam@154
|
2823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2825 as_fn_error $? "cannot run C compiled programs.
|
cannam@154
|
2826 If you meant to cross compile, use \`--host'.
|
cannam@154
|
2827 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2828 fi
|
cannam@154
|
2829 fi
|
cannam@154
|
2830 fi
|
cannam@154
|
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
|
cannam@154
|
2832 $as_echo "$cross_compiling" >&6; }
|
cannam@154
|
2833
|
cannam@154
|
2834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
|
cannam@154
|
2835 ac_clean_files=$ac_clean_files_save
|
cannam@154
|
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
|
cannam@154
|
2837 $as_echo_n "checking for suffix of object files... " >&6; }
|
cannam@154
|
2838 if ${ac_cv_objext+:} false; then :
|
cannam@154
|
2839 $as_echo_n "(cached) " >&6
|
cannam@154
|
2840 else
|
cannam@154
|
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2842 /* end confdefs.h. */
|
cannam@154
|
2843
|
cannam@154
|
2844 int
|
cannam@154
|
2845 main ()
|
cannam@154
|
2846 {
|
cannam@154
|
2847
|
cannam@154
|
2848 ;
|
cannam@154
|
2849 return 0;
|
cannam@154
|
2850 }
|
cannam@154
|
2851 _ACEOF
|
cannam@154
|
2852 rm -f conftest.o conftest.obj
|
cannam@154
|
2853 if { { ac_try="$ac_compile"
|
cannam@154
|
2854 case "(($ac_try" in
|
cannam@154
|
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
cannam@154
|
2856 *) ac_try_echo=$ac_try;;
|
cannam@154
|
2857 esac
|
cannam@154
|
2858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
|
cannam@154
|
2859 $as_echo "$ac_try_echo"; } >&5
|
cannam@154
|
2860 (eval "$ac_compile") 2>&5
|
cannam@154
|
2861 ac_status=$?
|
cannam@154
|
2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
2863 test $ac_status = 0; }; then :
|
cannam@154
|
2864 for ac_file in conftest.o conftest.obj conftest.*; do
|
cannam@154
|
2865 test -f "$ac_file" || continue;
|
cannam@154
|
2866 case $ac_file in
|
cannam@154
|
2867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
|
cannam@154
|
2868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
cannam@154
|
2869 break;;
|
cannam@154
|
2870 esac
|
cannam@154
|
2871 done
|
cannam@154
|
2872 else
|
cannam@154
|
2873 $as_echo "$as_me: failed program was:" >&5
|
cannam@154
|
2874 sed 's/^/| /' conftest.$ac_ext >&5
|
cannam@154
|
2875
|
cannam@154
|
2876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
2877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
2878 as_fn_error $? "cannot compute suffix of object files: cannot compile
|
cannam@154
|
2879 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
2880 fi
|
cannam@154
|
2881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
cannam@154
|
2882 fi
|
cannam@154
|
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
|
cannam@154
|
2884 $as_echo "$ac_cv_objext" >&6; }
|
cannam@154
|
2885 OBJEXT=$ac_cv_objext
|
cannam@154
|
2886 ac_objext=$OBJEXT
|
cannam@154
|
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
|
cannam@154
|
2888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
|
cannam@154
|
2889 if ${ac_cv_c_compiler_gnu+:} false; then :
|
cannam@154
|
2890 $as_echo_n "(cached) " >&6
|
cannam@154
|
2891 else
|
cannam@154
|
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2893 /* end confdefs.h. */
|
cannam@154
|
2894
|
cannam@154
|
2895 int
|
cannam@154
|
2896 main ()
|
cannam@154
|
2897 {
|
cannam@154
|
2898 #ifndef __GNUC__
|
cannam@154
|
2899 choke me
|
cannam@154
|
2900 #endif
|
cannam@154
|
2901
|
cannam@154
|
2902 ;
|
cannam@154
|
2903 return 0;
|
cannam@154
|
2904 }
|
cannam@154
|
2905 _ACEOF
|
cannam@154
|
2906 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
2907 ac_compiler_gnu=yes
|
cannam@154
|
2908 else
|
cannam@154
|
2909 ac_compiler_gnu=no
|
cannam@154
|
2910 fi
|
cannam@154
|
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
2912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
cannam@154
|
2913
|
cannam@154
|
2914 fi
|
cannam@154
|
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
|
cannam@154
|
2916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
|
cannam@154
|
2917 if test $ac_compiler_gnu = yes; then
|
cannam@154
|
2918 GCC=yes
|
cannam@154
|
2919 else
|
cannam@154
|
2920 GCC=
|
cannam@154
|
2921 fi
|
cannam@154
|
2922 ac_test_CFLAGS=${CFLAGS+set}
|
cannam@154
|
2923 ac_save_CFLAGS=$CFLAGS
|
cannam@154
|
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
|
cannam@154
|
2925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
|
cannam@154
|
2926 if ${ac_cv_prog_cc_g+:} false; then :
|
cannam@154
|
2927 $as_echo_n "(cached) " >&6
|
cannam@154
|
2928 else
|
cannam@154
|
2929 ac_save_c_werror_flag=$ac_c_werror_flag
|
cannam@154
|
2930 ac_c_werror_flag=yes
|
cannam@154
|
2931 ac_cv_prog_cc_g=no
|
cannam@154
|
2932 CFLAGS="-g"
|
cannam@154
|
2933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2934 /* end confdefs.h. */
|
cannam@154
|
2935
|
cannam@154
|
2936 int
|
cannam@154
|
2937 main ()
|
cannam@154
|
2938 {
|
cannam@154
|
2939
|
cannam@154
|
2940 ;
|
cannam@154
|
2941 return 0;
|
cannam@154
|
2942 }
|
cannam@154
|
2943 _ACEOF
|
cannam@154
|
2944 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
2945 ac_cv_prog_cc_g=yes
|
cannam@154
|
2946 else
|
cannam@154
|
2947 CFLAGS=""
|
cannam@154
|
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2949 /* end confdefs.h. */
|
cannam@154
|
2950
|
cannam@154
|
2951 int
|
cannam@154
|
2952 main ()
|
cannam@154
|
2953 {
|
cannam@154
|
2954
|
cannam@154
|
2955 ;
|
cannam@154
|
2956 return 0;
|
cannam@154
|
2957 }
|
cannam@154
|
2958 _ACEOF
|
cannam@154
|
2959 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
2960
|
cannam@154
|
2961 else
|
cannam@154
|
2962 ac_c_werror_flag=$ac_save_c_werror_flag
|
cannam@154
|
2963 CFLAGS="-g"
|
cannam@154
|
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
2965 /* end confdefs.h. */
|
cannam@154
|
2966
|
cannam@154
|
2967 int
|
cannam@154
|
2968 main ()
|
cannam@154
|
2969 {
|
cannam@154
|
2970
|
cannam@154
|
2971 ;
|
cannam@154
|
2972 return 0;
|
cannam@154
|
2973 }
|
cannam@154
|
2974 _ACEOF
|
cannam@154
|
2975 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
2976 ac_cv_prog_cc_g=yes
|
cannam@154
|
2977 fi
|
cannam@154
|
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
2979 fi
|
cannam@154
|
2980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
2981 fi
|
cannam@154
|
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
2983 ac_c_werror_flag=$ac_save_c_werror_flag
|
cannam@154
|
2984 fi
|
cannam@154
|
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
|
cannam@154
|
2986 $as_echo "$ac_cv_prog_cc_g" >&6; }
|
cannam@154
|
2987 if test "$ac_test_CFLAGS" = set; then
|
cannam@154
|
2988 CFLAGS=$ac_save_CFLAGS
|
cannam@154
|
2989 elif test $ac_cv_prog_cc_g = yes; then
|
cannam@154
|
2990 if test "$GCC" = yes; then
|
cannam@154
|
2991 CFLAGS="-g -O2"
|
cannam@154
|
2992 else
|
cannam@154
|
2993 CFLAGS="-g"
|
cannam@154
|
2994 fi
|
cannam@154
|
2995 else
|
cannam@154
|
2996 if test "$GCC" = yes; then
|
cannam@154
|
2997 CFLAGS="-O2"
|
cannam@154
|
2998 else
|
cannam@154
|
2999 CFLAGS=
|
cannam@154
|
3000 fi
|
cannam@154
|
3001 fi
|
cannam@154
|
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
|
cannam@154
|
3003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
|
cannam@154
|
3004 if ${ac_cv_prog_cc_c89+:} false; then :
|
cannam@154
|
3005 $as_echo_n "(cached) " >&6
|
cannam@154
|
3006 else
|
cannam@154
|
3007 ac_cv_prog_cc_c89=no
|
cannam@154
|
3008 ac_save_CC=$CC
|
cannam@154
|
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3010 /* end confdefs.h. */
|
cannam@154
|
3011 #include <stdarg.h>
|
cannam@154
|
3012 #include <stdio.h>
|
cannam@154
|
3013 struct stat;
|
cannam@154
|
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
cannam@154
|
3015 struct buf { int x; };
|
cannam@154
|
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
cannam@154
|
3017 static char *e (p, i)
|
cannam@154
|
3018 char **p;
|
cannam@154
|
3019 int i;
|
cannam@154
|
3020 {
|
cannam@154
|
3021 return p[i];
|
cannam@154
|
3022 }
|
cannam@154
|
3023 static char *f (char * (*g) (char **, int), char **p, ...)
|
cannam@154
|
3024 {
|
cannam@154
|
3025 char *s;
|
cannam@154
|
3026 va_list v;
|
cannam@154
|
3027 va_start (v,p);
|
cannam@154
|
3028 s = g (p, va_arg (v,int));
|
cannam@154
|
3029 va_end (v);
|
cannam@154
|
3030 return s;
|
cannam@154
|
3031 }
|
cannam@154
|
3032
|
cannam@154
|
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
cannam@154
|
3034 function prototypes and stuff, but not '\xHH' hex character constants.
|
cannam@154
|
3035 These don't provoke an error unfortunately, instead are silently treated
|
cannam@154
|
3036 as 'x'. The following induces an error, until -std is added to get
|
cannam@154
|
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
cannam@154
|
3038 array size at least. It's necessary to write '\x00'==0 to get something
|
cannam@154
|
3039 that's true only with -std. */
|
cannam@154
|
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
cannam@154
|
3041
|
cannam@154
|
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
cannam@154
|
3043 inside strings and character constants. */
|
cannam@154
|
3044 #define FOO(x) 'x'
|
cannam@154
|
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
cannam@154
|
3046
|
cannam@154
|
3047 int test (int i, double x);
|
cannam@154
|
3048 struct s1 {int (*f) (int a);};
|
cannam@154
|
3049 struct s2 {int (*f) (double a);};
|
cannam@154
|
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
cannam@154
|
3051 int argc;
|
cannam@154
|
3052 char **argv;
|
cannam@154
|
3053 int
|
cannam@154
|
3054 main ()
|
cannam@154
|
3055 {
|
cannam@154
|
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
cannam@154
|
3057 ;
|
cannam@154
|
3058 return 0;
|
cannam@154
|
3059 }
|
cannam@154
|
3060 _ACEOF
|
cannam@154
|
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
cannam@154
|
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
cannam@154
|
3063 do
|
cannam@154
|
3064 CC="$ac_save_CC $ac_arg"
|
cannam@154
|
3065 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3066 ac_cv_prog_cc_c89=$ac_arg
|
cannam@154
|
3067 fi
|
cannam@154
|
3068 rm -f core conftest.err conftest.$ac_objext
|
cannam@154
|
3069 test "x$ac_cv_prog_cc_c89" != "xno" && break
|
cannam@154
|
3070 done
|
cannam@154
|
3071 rm -f conftest.$ac_ext
|
cannam@154
|
3072 CC=$ac_save_CC
|
cannam@154
|
3073
|
cannam@154
|
3074 fi
|
cannam@154
|
3075 # AC_CACHE_VAL
|
cannam@154
|
3076 case "x$ac_cv_prog_cc_c89" in
|
cannam@154
|
3077 x)
|
cannam@154
|
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
|
cannam@154
|
3079 $as_echo "none needed" >&6; } ;;
|
cannam@154
|
3080 xno)
|
cannam@154
|
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
|
cannam@154
|
3082 $as_echo "unsupported" >&6; } ;;
|
cannam@154
|
3083 *)
|
cannam@154
|
3084 CC="$CC $ac_cv_prog_cc_c89"
|
cannam@154
|
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
|
cannam@154
|
3086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
|
cannam@154
|
3087 esac
|
cannam@154
|
3088 if test "x$ac_cv_prog_cc_c89" != xno; then :
|
cannam@154
|
3089
|
cannam@154
|
3090 fi
|
cannam@154
|
3091
|
cannam@154
|
3092 ac_ext=c
|
cannam@154
|
3093 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
3097
|
cannam@154
|
3098 ac_ext=c
|
cannam@154
|
3099 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
|
cannam@154
|
3104 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
|
cannam@154
|
3105 if ${am_cv_prog_cc_c_o+:} false; then :
|
cannam@154
|
3106 $as_echo_n "(cached) " >&6
|
cannam@154
|
3107 else
|
cannam@154
|
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3109 /* end confdefs.h. */
|
cannam@154
|
3110
|
cannam@154
|
3111 int
|
cannam@154
|
3112 main ()
|
cannam@154
|
3113 {
|
cannam@154
|
3114
|
cannam@154
|
3115 ;
|
cannam@154
|
3116 return 0;
|
cannam@154
|
3117 }
|
cannam@154
|
3118 _ACEOF
|
cannam@154
|
3119 # Make sure it works both with $CC and with simple cc.
|
cannam@154
|
3120 # Following AC_PROG_CC_C_O, we do the test twice because some
|
cannam@154
|
3121 # compilers refuse to overwrite an existing .o file with -o,
|
cannam@154
|
3122 # though they will create one.
|
cannam@154
|
3123 am_cv_prog_cc_c_o=yes
|
cannam@154
|
3124 for am_i in 1 2; do
|
cannam@154
|
3125 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
|
cannam@154
|
3126 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
|
cannam@154
|
3127 ac_status=$?
|
cannam@154
|
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@154
|
3129 (exit $ac_status); } \
|
cannam@154
|
3130 && test -f conftest2.$ac_objext; then
|
cannam@154
|
3131 : OK
|
cannam@154
|
3132 else
|
cannam@154
|
3133 am_cv_prog_cc_c_o=no
|
cannam@154
|
3134 break
|
cannam@154
|
3135 fi
|
cannam@154
|
3136 done
|
cannam@154
|
3137 rm -f core conftest*
|
cannam@154
|
3138 unset am_i
|
cannam@154
|
3139 fi
|
cannam@154
|
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
|
cannam@154
|
3141 $as_echo "$am_cv_prog_cc_c_o" >&6; }
|
cannam@154
|
3142 if test "$am_cv_prog_cc_c_o" != yes; then
|
cannam@154
|
3143 # Losing compiler, so override with the script.
|
cannam@154
|
3144 # FIXME: It is wrong to rewrite CC.
|
cannam@154
|
3145 # But if we don't then we get into trouble of one sort or another.
|
cannam@154
|
3146 # A longer-term fix would be to have automake use am__CC in this case,
|
cannam@154
|
3147 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
cannam@154
|
3148 CC="$am_aux_dir/compile $CC"
|
cannam@154
|
3149 fi
|
cannam@154
|
3150 ac_ext=c
|
cannam@154
|
3151 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
3152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
3153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
3154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
3155
|
cannam@154
|
3156
|
cannam@154
|
3157
|
cannam@154
|
3158 ac_ext=c
|
cannam@154
|
3159 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
|
cannam@154
|
3164 $as_echo_n "checking how to run the C preprocessor... " >&6; }
|
cannam@154
|
3165 # On Suns, sometimes $CPP names a directory.
|
cannam@154
|
3166 if test -n "$CPP" && test -d "$CPP"; then
|
cannam@154
|
3167 CPP=
|
cannam@154
|
3168 fi
|
cannam@154
|
3169 if test -z "$CPP"; then
|
cannam@154
|
3170 if ${ac_cv_prog_CPP+:} false; then :
|
cannam@154
|
3171 $as_echo_n "(cached) " >&6
|
cannam@154
|
3172 else
|
cannam@154
|
3173 # Double quotes because CPP needs to be expanded
|
cannam@154
|
3174 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
cannam@154
|
3175 do
|
cannam@154
|
3176 ac_preproc_ok=false
|
cannam@154
|
3177 for ac_c_preproc_warn_flag in '' yes
|
cannam@154
|
3178 do
|
cannam@154
|
3179 # Use a header file that comes with gcc, so configuring glibc
|
cannam@154
|
3180 # with a fresh cross-compiler works.
|
cannam@154
|
3181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@154
|
3182 # <limits.h> exists even on freestanding compilers.
|
cannam@154
|
3183 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@154
|
3184 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@154
|
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3186 /* end confdefs.h. */
|
cannam@154
|
3187 #ifdef __STDC__
|
cannam@154
|
3188 # include <limits.h>
|
cannam@154
|
3189 #else
|
cannam@154
|
3190 # include <assert.h>
|
cannam@154
|
3191 #endif
|
cannam@154
|
3192 Syntax error
|
cannam@154
|
3193 _ACEOF
|
cannam@154
|
3194 if ac_fn_c_try_cpp "$LINENO"; then :
|
cannam@154
|
3195
|
cannam@154
|
3196 else
|
cannam@154
|
3197 # Broken: fails on valid input.
|
cannam@154
|
3198 continue
|
cannam@154
|
3199 fi
|
cannam@154
|
3200 rm -f conftest.err conftest.i conftest.$ac_ext
|
cannam@154
|
3201
|
cannam@154
|
3202 # OK, works on sane cases. Now check whether nonexistent headers
|
cannam@154
|
3203 # can be detected and how.
|
cannam@154
|
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3205 /* end confdefs.h. */
|
cannam@154
|
3206 #include <ac_nonexistent.h>
|
cannam@154
|
3207 _ACEOF
|
cannam@154
|
3208 if ac_fn_c_try_cpp "$LINENO"; then :
|
cannam@154
|
3209 # Broken: success on invalid input.
|
cannam@154
|
3210 continue
|
cannam@154
|
3211 else
|
cannam@154
|
3212 # Passes both tests.
|
cannam@154
|
3213 ac_preproc_ok=:
|
cannam@154
|
3214 break
|
cannam@154
|
3215 fi
|
cannam@154
|
3216 rm -f conftest.err conftest.i conftest.$ac_ext
|
cannam@154
|
3217
|
cannam@154
|
3218 done
|
cannam@154
|
3219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@154
|
3220 rm -f conftest.i conftest.err conftest.$ac_ext
|
cannam@154
|
3221 if $ac_preproc_ok; then :
|
cannam@154
|
3222 break
|
cannam@154
|
3223 fi
|
cannam@154
|
3224
|
cannam@154
|
3225 done
|
cannam@154
|
3226 ac_cv_prog_CPP=$CPP
|
cannam@154
|
3227
|
cannam@154
|
3228 fi
|
cannam@154
|
3229 CPP=$ac_cv_prog_CPP
|
cannam@154
|
3230 else
|
cannam@154
|
3231 ac_cv_prog_CPP=$CPP
|
cannam@154
|
3232 fi
|
cannam@154
|
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
|
cannam@154
|
3234 $as_echo "$CPP" >&6; }
|
cannam@154
|
3235 ac_preproc_ok=false
|
cannam@154
|
3236 for ac_c_preproc_warn_flag in '' yes
|
cannam@154
|
3237 do
|
cannam@154
|
3238 # Use a header file that comes with gcc, so configuring glibc
|
cannam@154
|
3239 # with a fresh cross-compiler works.
|
cannam@154
|
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
cannam@154
|
3241 # <limits.h> exists even on freestanding compilers.
|
cannam@154
|
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
|
cannam@154
|
3243 # not just through cpp. "Syntax error" is here to catch this case.
|
cannam@154
|
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3245 /* end confdefs.h. */
|
cannam@154
|
3246 #ifdef __STDC__
|
cannam@154
|
3247 # include <limits.h>
|
cannam@154
|
3248 #else
|
cannam@154
|
3249 # include <assert.h>
|
cannam@154
|
3250 #endif
|
cannam@154
|
3251 Syntax error
|
cannam@154
|
3252 _ACEOF
|
cannam@154
|
3253 if ac_fn_c_try_cpp "$LINENO"; then :
|
cannam@154
|
3254
|
cannam@154
|
3255 else
|
cannam@154
|
3256 # Broken: fails on valid input.
|
cannam@154
|
3257 continue
|
cannam@154
|
3258 fi
|
cannam@154
|
3259 rm -f conftest.err conftest.i conftest.$ac_ext
|
cannam@154
|
3260
|
cannam@154
|
3261 # OK, works on sane cases. Now check whether nonexistent headers
|
cannam@154
|
3262 # can be detected and how.
|
cannam@154
|
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3264 /* end confdefs.h. */
|
cannam@154
|
3265 #include <ac_nonexistent.h>
|
cannam@154
|
3266 _ACEOF
|
cannam@154
|
3267 if ac_fn_c_try_cpp "$LINENO"; then :
|
cannam@154
|
3268 # Broken: success on invalid input.
|
cannam@154
|
3269 continue
|
cannam@154
|
3270 else
|
cannam@154
|
3271 # Passes both tests.
|
cannam@154
|
3272 ac_preproc_ok=:
|
cannam@154
|
3273 break
|
cannam@154
|
3274 fi
|
cannam@154
|
3275 rm -f conftest.err conftest.i conftest.$ac_ext
|
cannam@154
|
3276
|
cannam@154
|
3277 done
|
cannam@154
|
3278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
cannam@154
|
3279 rm -f conftest.i conftest.err conftest.$ac_ext
|
cannam@154
|
3280 if $ac_preproc_ok; then :
|
cannam@154
|
3281
|
cannam@154
|
3282 else
|
cannam@154
|
3283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
3284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
3285 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
|
cannam@154
|
3286 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
3287 fi
|
cannam@154
|
3288
|
cannam@154
|
3289 ac_ext=c
|
cannam@154
|
3290 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
3294
|
cannam@154
|
3295
|
cannam@154
|
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
cannam@154
|
3297 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
cannam@154
|
3298 if ${ac_cv_path_GREP+:} false; then :
|
cannam@154
|
3299 $as_echo_n "(cached) " >&6
|
cannam@154
|
3300 else
|
cannam@154
|
3301 if test -z "$GREP"; then
|
cannam@154
|
3302 ac_path_GREP_found=false
|
cannam@154
|
3303 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@154
|
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@154
|
3306 do
|
cannam@154
|
3307 IFS=$as_save_IFS
|
cannam@154
|
3308 test -z "$as_dir" && as_dir=.
|
cannam@154
|
3309 for ac_prog in grep ggrep; do
|
cannam@154
|
3310 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
3311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@154
|
3312 as_fn_executable_p "$ac_path_GREP" || continue
|
cannam@154
|
3313 # Check for GNU ac_path_GREP and select it if it is found.
|
cannam@154
|
3314 # Check for GNU $ac_path_GREP
|
cannam@154
|
3315 case `"$ac_path_GREP" --version 2>&1` in
|
cannam@154
|
3316 *GNU*)
|
cannam@154
|
3317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
cannam@154
|
3318 *)
|
cannam@154
|
3319 ac_count=0
|
cannam@154
|
3320 $as_echo_n 0123456789 >"conftest.in"
|
cannam@154
|
3321 while :
|
cannam@154
|
3322 do
|
cannam@154
|
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@154
|
3324 mv "conftest.tmp" "conftest.in"
|
cannam@154
|
3325 cp "conftest.in" "conftest.nl"
|
cannam@154
|
3326 $as_echo 'GREP' >> "conftest.nl"
|
cannam@154
|
3327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@154
|
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@154
|
3329 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
cannam@154
|
3330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
cannam@154
|
3331 # Best one so far, save it but keep looking for a better one
|
cannam@154
|
3332 ac_cv_path_GREP="$ac_path_GREP"
|
cannam@154
|
3333 ac_path_GREP_max=$ac_count
|
cannam@154
|
3334 fi
|
cannam@154
|
3335 # 10*(2^10) chars as input seems more than enough
|
cannam@154
|
3336 test $ac_count -gt 10 && break
|
cannam@154
|
3337 done
|
cannam@154
|
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@154
|
3339 esac
|
cannam@154
|
3340
|
cannam@154
|
3341 $ac_path_GREP_found && break 3
|
cannam@154
|
3342 done
|
cannam@154
|
3343 done
|
cannam@154
|
3344 done
|
cannam@154
|
3345 IFS=$as_save_IFS
|
cannam@154
|
3346 if test -z "$ac_cv_path_GREP"; then
|
cannam@154
|
3347 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
cannam@154
|
3348 fi
|
cannam@154
|
3349 else
|
cannam@154
|
3350 ac_cv_path_GREP=$GREP
|
cannam@154
|
3351 fi
|
cannam@154
|
3352
|
cannam@154
|
3353 fi
|
cannam@154
|
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
cannam@154
|
3355 $as_echo "$ac_cv_path_GREP" >&6; }
|
cannam@154
|
3356 GREP="$ac_cv_path_GREP"
|
cannam@154
|
3357
|
cannam@154
|
3358
|
cannam@154
|
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
cannam@154
|
3360 $as_echo_n "checking for egrep... " >&6; }
|
cannam@154
|
3361 if ${ac_cv_path_EGREP+:} false; then :
|
cannam@154
|
3362 $as_echo_n "(cached) " >&6
|
cannam@154
|
3363 else
|
cannam@154
|
3364 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
cannam@154
|
3365 then ac_cv_path_EGREP="$GREP -E"
|
cannam@154
|
3366 else
|
cannam@154
|
3367 if test -z "$EGREP"; then
|
cannam@154
|
3368 ac_path_EGREP_found=false
|
cannam@154
|
3369 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@154
|
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@154
|
3372 do
|
cannam@154
|
3373 IFS=$as_save_IFS
|
cannam@154
|
3374 test -z "$as_dir" && as_dir=.
|
cannam@154
|
3375 for ac_prog in egrep; do
|
cannam@154
|
3376 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
3377 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@154
|
3378 as_fn_executable_p "$ac_path_EGREP" || continue
|
cannam@154
|
3379 # Check for GNU ac_path_EGREP and select it if it is found.
|
cannam@154
|
3380 # Check for GNU $ac_path_EGREP
|
cannam@154
|
3381 case `"$ac_path_EGREP" --version 2>&1` in
|
cannam@154
|
3382 *GNU*)
|
cannam@154
|
3383 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
cannam@154
|
3384 *)
|
cannam@154
|
3385 ac_count=0
|
cannam@154
|
3386 $as_echo_n 0123456789 >"conftest.in"
|
cannam@154
|
3387 while :
|
cannam@154
|
3388 do
|
cannam@154
|
3389 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@154
|
3390 mv "conftest.tmp" "conftest.in"
|
cannam@154
|
3391 cp "conftest.in" "conftest.nl"
|
cannam@154
|
3392 $as_echo 'EGREP' >> "conftest.nl"
|
cannam@154
|
3393 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@154
|
3394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@154
|
3395 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
cannam@154
|
3396 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
cannam@154
|
3397 # Best one so far, save it but keep looking for a better one
|
cannam@154
|
3398 ac_cv_path_EGREP="$ac_path_EGREP"
|
cannam@154
|
3399 ac_path_EGREP_max=$ac_count
|
cannam@154
|
3400 fi
|
cannam@154
|
3401 # 10*(2^10) chars as input seems more than enough
|
cannam@154
|
3402 test $ac_count -gt 10 && break
|
cannam@154
|
3403 done
|
cannam@154
|
3404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@154
|
3405 esac
|
cannam@154
|
3406
|
cannam@154
|
3407 $ac_path_EGREP_found && break 3
|
cannam@154
|
3408 done
|
cannam@154
|
3409 done
|
cannam@154
|
3410 done
|
cannam@154
|
3411 IFS=$as_save_IFS
|
cannam@154
|
3412 if test -z "$ac_cv_path_EGREP"; then
|
cannam@154
|
3413 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
cannam@154
|
3414 fi
|
cannam@154
|
3415 else
|
cannam@154
|
3416 ac_cv_path_EGREP=$EGREP
|
cannam@154
|
3417 fi
|
cannam@154
|
3418
|
cannam@154
|
3419 fi
|
cannam@154
|
3420 fi
|
cannam@154
|
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
cannam@154
|
3422 $as_echo "$ac_cv_path_EGREP" >&6; }
|
cannam@154
|
3423 EGREP="$ac_cv_path_EGREP"
|
cannam@154
|
3424
|
cannam@154
|
3425
|
cannam@154
|
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
|
cannam@154
|
3427 $as_echo_n "checking for ANSI C header files... " >&6; }
|
cannam@154
|
3428 if ${ac_cv_header_stdc+:} false; then :
|
cannam@154
|
3429 $as_echo_n "(cached) " >&6
|
cannam@154
|
3430 else
|
cannam@154
|
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3432 /* end confdefs.h. */
|
cannam@154
|
3433 #include <stdlib.h>
|
cannam@154
|
3434 #include <stdarg.h>
|
cannam@154
|
3435 #include <string.h>
|
cannam@154
|
3436 #include <float.h>
|
cannam@154
|
3437
|
cannam@154
|
3438 int
|
cannam@154
|
3439 main ()
|
cannam@154
|
3440 {
|
cannam@154
|
3441
|
cannam@154
|
3442 ;
|
cannam@154
|
3443 return 0;
|
cannam@154
|
3444 }
|
cannam@154
|
3445 _ACEOF
|
cannam@154
|
3446 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3447 ac_cv_header_stdc=yes
|
cannam@154
|
3448 else
|
cannam@154
|
3449 ac_cv_header_stdc=no
|
cannam@154
|
3450 fi
|
cannam@154
|
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3452
|
cannam@154
|
3453 if test $ac_cv_header_stdc = yes; then
|
cannam@154
|
3454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
cannam@154
|
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3456 /* end confdefs.h. */
|
cannam@154
|
3457 #include <string.h>
|
cannam@154
|
3458
|
cannam@154
|
3459 _ACEOF
|
cannam@154
|
3460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@154
|
3461 $EGREP "memchr" >/dev/null 2>&1; then :
|
cannam@154
|
3462
|
cannam@154
|
3463 else
|
cannam@154
|
3464 ac_cv_header_stdc=no
|
cannam@154
|
3465 fi
|
cannam@154
|
3466 rm -f conftest*
|
cannam@154
|
3467
|
cannam@154
|
3468 fi
|
cannam@154
|
3469
|
cannam@154
|
3470 if test $ac_cv_header_stdc = yes; then
|
cannam@154
|
3471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
cannam@154
|
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3473 /* end confdefs.h. */
|
cannam@154
|
3474 #include <stdlib.h>
|
cannam@154
|
3475
|
cannam@154
|
3476 _ACEOF
|
cannam@154
|
3477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
cannam@154
|
3478 $EGREP "free" >/dev/null 2>&1; then :
|
cannam@154
|
3479
|
cannam@154
|
3480 else
|
cannam@154
|
3481 ac_cv_header_stdc=no
|
cannam@154
|
3482 fi
|
cannam@154
|
3483 rm -f conftest*
|
cannam@154
|
3484
|
cannam@154
|
3485 fi
|
cannam@154
|
3486
|
cannam@154
|
3487 if test $ac_cv_header_stdc = yes; then
|
cannam@154
|
3488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
cannam@154
|
3489 if test "$cross_compiling" = yes; then :
|
cannam@154
|
3490 :
|
cannam@154
|
3491 else
|
cannam@154
|
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3493 /* end confdefs.h. */
|
cannam@154
|
3494 #include <ctype.h>
|
cannam@154
|
3495 #include <stdlib.h>
|
cannam@154
|
3496 #if ((' ' & 0x0FF) == 0x020)
|
cannam@154
|
3497 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
cannam@154
|
3498 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
cannam@154
|
3499 #else
|
cannam@154
|
3500 # define ISLOWER(c) \
|
cannam@154
|
3501 (('a' <= (c) && (c) <= 'i') \
|
cannam@154
|
3502 || ('j' <= (c) && (c) <= 'r') \
|
cannam@154
|
3503 || ('s' <= (c) && (c) <= 'z'))
|
cannam@154
|
3504 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
cannam@154
|
3505 #endif
|
cannam@154
|
3506
|
cannam@154
|
3507 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
cannam@154
|
3508 int
|
cannam@154
|
3509 main ()
|
cannam@154
|
3510 {
|
cannam@154
|
3511 int i;
|
cannam@154
|
3512 for (i = 0; i < 256; i++)
|
cannam@154
|
3513 if (XOR (islower (i), ISLOWER (i))
|
cannam@154
|
3514 || toupper (i) != TOUPPER (i))
|
cannam@154
|
3515 return 2;
|
cannam@154
|
3516 return 0;
|
cannam@154
|
3517 }
|
cannam@154
|
3518 _ACEOF
|
cannam@154
|
3519 if ac_fn_c_try_run "$LINENO"; then :
|
cannam@154
|
3520
|
cannam@154
|
3521 else
|
cannam@154
|
3522 ac_cv_header_stdc=no
|
cannam@154
|
3523 fi
|
cannam@154
|
3524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
|
cannam@154
|
3525 conftest.$ac_objext conftest.beam conftest.$ac_ext
|
cannam@154
|
3526 fi
|
cannam@154
|
3527
|
cannam@154
|
3528 fi
|
cannam@154
|
3529 fi
|
cannam@154
|
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
|
cannam@154
|
3531 $as_echo "$ac_cv_header_stdc" >&6; }
|
cannam@154
|
3532 if test $ac_cv_header_stdc = yes; then
|
cannam@154
|
3533
|
cannam@154
|
3534 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
|
cannam@154
|
3535
|
cannam@154
|
3536 fi
|
cannam@154
|
3537
|
cannam@154
|
3538 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
cannam@154
|
3539 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
cannam@154
|
3540 inttypes.h stdint.h unistd.h
|
cannam@154
|
3541 do :
|
cannam@154
|
3542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
cannam@154
|
3543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
cannam@154
|
3544 "
|
cannam@154
|
3545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
cannam@154
|
3546 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
3547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
cannam@154
|
3548 _ACEOF
|
cannam@154
|
3549
|
cannam@154
|
3550 fi
|
cannam@154
|
3551
|
cannam@154
|
3552 done
|
cannam@154
|
3553
|
cannam@154
|
3554
|
cannam@154
|
3555
|
cannam@154
|
3556 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
|
cannam@154
|
3557 if test "x$ac_cv_header_minix_config_h" = xyes; then :
|
cannam@154
|
3558 MINIX=yes
|
cannam@154
|
3559 else
|
cannam@154
|
3560 MINIX=
|
cannam@154
|
3561 fi
|
cannam@154
|
3562
|
cannam@154
|
3563
|
cannam@154
|
3564 if test "$MINIX" = yes; then
|
cannam@154
|
3565
|
cannam@154
|
3566 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
|
cannam@154
|
3567
|
cannam@154
|
3568
|
cannam@154
|
3569 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
|
cannam@154
|
3570
|
cannam@154
|
3571
|
cannam@154
|
3572 $as_echo "#define _MINIX 1" >>confdefs.h
|
cannam@154
|
3573
|
cannam@154
|
3574 fi
|
cannam@154
|
3575
|
cannam@154
|
3576
|
cannam@154
|
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
|
cannam@154
|
3578 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
|
cannam@154
|
3579 if ${ac_cv_safe_to_define___extensions__+:} false; then :
|
cannam@154
|
3580 $as_echo_n "(cached) " >&6
|
cannam@154
|
3581 else
|
cannam@154
|
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3583 /* end confdefs.h. */
|
cannam@154
|
3584
|
cannam@154
|
3585 # define __EXTENSIONS__ 1
|
cannam@154
|
3586 $ac_includes_default
|
cannam@154
|
3587 int
|
cannam@154
|
3588 main ()
|
cannam@154
|
3589 {
|
cannam@154
|
3590
|
cannam@154
|
3591 ;
|
cannam@154
|
3592 return 0;
|
cannam@154
|
3593 }
|
cannam@154
|
3594 _ACEOF
|
cannam@154
|
3595 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3596 ac_cv_safe_to_define___extensions__=yes
|
cannam@154
|
3597 else
|
cannam@154
|
3598 ac_cv_safe_to_define___extensions__=no
|
cannam@154
|
3599 fi
|
cannam@154
|
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3601 fi
|
cannam@154
|
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
|
cannam@154
|
3603 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
|
cannam@154
|
3604 test $ac_cv_safe_to_define___extensions__ = yes &&
|
cannam@154
|
3605 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
|
cannam@154
|
3606
|
cannam@154
|
3607 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
|
cannam@154
|
3608
|
cannam@154
|
3609 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
|
cannam@154
|
3610
|
cannam@154
|
3611 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
|
cannam@154
|
3612
|
cannam@154
|
3613 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
|
cannam@154
|
3614
|
cannam@154
|
3615
|
cannam@154
|
3616 # Check whether --enable-largefile was given.
|
cannam@154
|
3617 if test "${enable_largefile+set}" = set; then :
|
cannam@154
|
3618 enableval=$enable_largefile;
|
cannam@154
|
3619 fi
|
cannam@154
|
3620
|
cannam@154
|
3621 if test "$enable_largefile" != no; then
|
cannam@154
|
3622
|
cannam@154
|
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
|
cannam@154
|
3624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
|
cannam@154
|
3625 if ${ac_cv_sys_largefile_CC+:} false; then :
|
cannam@154
|
3626 $as_echo_n "(cached) " >&6
|
cannam@154
|
3627 else
|
cannam@154
|
3628 ac_cv_sys_largefile_CC=no
|
cannam@154
|
3629 if test "$GCC" != yes; then
|
cannam@154
|
3630 ac_save_CC=$CC
|
cannam@154
|
3631 while :; do
|
cannam@154
|
3632 # IRIX 6.2 and later do not support large files by default,
|
cannam@154
|
3633 # so use the C compiler's -n32 option if that helps.
|
cannam@154
|
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3635 /* end confdefs.h. */
|
cannam@154
|
3636 #include <sys/types.h>
|
cannam@154
|
3637 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@154
|
3638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@154
|
3639 since some C++ compilers masquerading as C compilers
|
cannam@154
|
3640 incorrectly reject 9223372036854775807. */
|
cannam@154
|
3641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@154
|
3642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@154
|
3643 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@154
|
3644 ? 1 : -1];
|
cannam@154
|
3645 int
|
cannam@154
|
3646 main ()
|
cannam@154
|
3647 {
|
cannam@154
|
3648
|
cannam@154
|
3649 ;
|
cannam@154
|
3650 return 0;
|
cannam@154
|
3651 }
|
cannam@154
|
3652 _ACEOF
|
cannam@154
|
3653 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3654 break
|
cannam@154
|
3655 fi
|
cannam@154
|
3656 rm -f core conftest.err conftest.$ac_objext
|
cannam@154
|
3657 CC="$CC -n32"
|
cannam@154
|
3658 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3659 ac_cv_sys_largefile_CC=' -n32'; break
|
cannam@154
|
3660 fi
|
cannam@154
|
3661 rm -f core conftest.err conftest.$ac_objext
|
cannam@154
|
3662 break
|
cannam@154
|
3663 done
|
cannam@154
|
3664 CC=$ac_save_CC
|
cannam@154
|
3665 rm -f conftest.$ac_ext
|
cannam@154
|
3666 fi
|
cannam@154
|
3667 fi
|
cannam@154
|
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
|
cannam@154
|
3669 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
|
cannam@154
|
3670 if test "$ac_cv_sys_largefile_CC" != no; then
|
cannam@154
|
3671 CC=$CC$ac_cv_sys_largefile_CC
|
cannam@154
|
3672 fi
|
cannam@154
|
3673
|
cannam@154
|
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
cannam@154
|
3675 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
|
cannam@154
|
3676 if ${ac_cv_sys_file_offset_bits+:} false; then :
|
cannam@154
|
3677 $as_echo_n "(cached) " >&6
|
cannam@154
|
3678 else
|
cannam@154
|
3679 while :; do
|
cannam@154
|
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3681 /* end confdefs.h. */
|
cannam@154
|
3682 #include <sys/types.h>
|
cannam@154
|
3683 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@154
|
3684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@154
|
3685 since some C++ compilers masquerading as C compilers
|
cannam@154
|
3686 incorrectly reject 9223372036854775807. */
|
cannam@154
|
3687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@154
|
3688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@154
|
3689 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@154
|
3690 ? 1 : -1];
|
cannam@154
|
3691 int
|
cannam@154
|
3692 main ()
|
cannam@154
|
3693 {
|
cannam@154
|
3694
|
cannam@154
|
3695 ;
|
cannam@154
|
3696 return 0;
|
cannam@154
|
3697 }
|
cannam@154
|
3698 _ACEOF
|
cannam@154
|
3699 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3700 ac_cv_sys_file_offset_bits=no; break
|
cannam@154
|
3701 fi
|
cannam@154
|
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3704 /* end confdefs.h. */
|
cannam@154
|
3705 #define _FILE_OFFSET_BITS 64
|
cannam@154
|
3706 #include <sys/types.h>
|
cannam@154
|
3707 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@154
|
3708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@154
|
3709 since some C++ compilers masquerading as C compilers
|
cannam@154
|
3710 incorrectly reject 9223372036854775807. */
|
cannam@154
|
3711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@154
|
3712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@154
|
3713 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@154
|
3714 ? 1 : -1];
|
cannam@154
|
3715 int
|
cannam@154
|
3716 main ()
|
cannam@154
|
3717 {
|
cannam@154
|
3718
|
cannam@154
|
3719 ;
|
cannam@154
|
3720 return 0;
|
cannam@154
|
3721 }
|
cannam@154
|
3722 _ACEOF
|
cannam@154
|
3723 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3724 ac_cv_sys_file_offset_bits=64; break
|
cannam@154
|
3725 fi
|
cannam@154
|
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3727 ac_cv_sys_file_offset_bits=unknown
|
cannam@154
|
3728 break
|
cannam@154
|
3729 done
|
cannam@154
|
3730 fi
|
cannam@154
|
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
|
cannam@154
|
3732 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
|
cannam@154
|
3733 case $ac_cv_sys_file_offset_bits in #(
|
cannam@154
|
3734 no | unknown) ;;
|
cannam@154
|
3735 *)
|
cannam@154
|
3736 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
3737 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
cannam@154
|
3738 _ACEOF
|
cannam@154
|
3739 ;;
|
cannam@154
|
3740 esac
|
cannam@154
|
3741 rm -rf conftest*
|
cannam@154
|
3742 if test $ac_cv_sys_file_offset_bits = unknown; then
|
cannam@154
|
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
|
cannam@154
|
3744 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
|
cannam@154
|
3745 if ${ac_cv_sys_large_files+:} false; then :
|
cannam@154
|
3746 $as_echo_n "(cached) " >&6
|
cannam@154
|
3747 else
|
cannam@154
|
3748 while :; do
|
cannam@154
|
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3750 /* end confdefs.h. */
|
cannam@154
|
3751 #include <sys/types.h>
|
cannam@154
|
3752 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@154
|
3753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@154
|
3754 since some C++ compilers masquerading as C compilers
|
cannam@154
|
3755 incorrectly reject 9223372036854775807. */
|
cannam@154
|
3756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@154
|
3757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@154
|
3758 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@154
|
3759 ? 1 : -1];
|
cannam@154
|
3760 int
|
cannam@154
|
3761 main ()
|
cannam@154
|
3762 {
|
cannam@154
|
3763
|
cannam@154
|
3764 ;
|
cannam@154
|
3765 return 0;
|
cannam@154
|
3766 }
|
cannam@154
|
3767 _ACEOF
|
cannam@154
|
3768 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3769 ac_cv_sys_large_files=no; break
|
cannam@154
|
3770 fi
|
cannam@154
|
3771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
3773 /* end confdefs.h. */
|
cannam@154
|
3774 #define _LARGE_FILES 1
|
cannam@154
|
3775 #include <sys/types.h>
|
cannam@154
|
3776 /* Check that off_t can represent 2**63 - 1 correctly.
|
cannam@154
|
3777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
cannam@154
|
3778 since some C++ compilers masquerading as C compilers
|
cannam@154
|
3779 incorrectly reject 9223372036854775807. */
|
cannam@154
|
3780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
cannam@154
|
3781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
cannam@154
|
3782 && LARGE_OFF_T % 2147483647 == 1)
|
cannam@154
|
3783 ? 1 : -1];
|
cannam@154
|
3784 int
|
cannam@154
|
3785 main ()
|
cannam@154
|
3786 {
|
cannam@154
|
3787
|
cannam@154
|
3788 ;
|
cannam@154
|
3789 return 0;
|
cannam@154
|
3790 }
|
cannam@154
|
3791 _ACEOF
|
cannam@154
|
3792 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
3793 ac_cv_sys_large_files=1; break
|
cannam@154
|
3794 fi
|
cannam@154
|
3795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
3796 ac_cv_sys_large_files=unknown
|
cannam@154
|
3797 break
|
cannam@154
|
3798 done
|
cannam@154
|
3799 fi
|
cannam@154
|
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
|
cannam@154
|
3801 $as_echo "$ac_cv_sys_large_files" >&6; }
|
cannam@154
|
3802 case $ac_cv_sys_large_files in #(
|
cannam@154
|
3803 no | unknown) ;;
|
cannam@154
|
3804 *)
|
cannam@154
|
3805 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
3806 #define _LARGE_FILES $ac_cv_sys_large_files
|
cannam@154
|
3807 _ACEOF
|
cannam@154
|
3808 ;;
|
cannam@154
|
3809 esac
|
cannam@154
|
3810 rm -rf conftest*
|
cannam@154
|
3811 fi
|
cannam@154
|
3812
|
cannam@154
|
3813
|
cannam@154
|
3814 fi
|
cannam@154
|
3815
|
cannam@154
|
3816
|
cannam@154
|
3817 am__api_version='1.15'
|
cannam@154
|
3818
|
cannam@154
|
3819 # Find a good install program. We prefer a C program (faster),
|
cannam@154
|
3820 # so one script is as good as another. But avoid the broken or
|
cannam@154
|
3821 # incompatible versions:
|
cannam@154
|
3822 # SysV /etc/install, /usr/sbin/install
|
cannam@154
|
3823 # SunOS /usr/etc/install
|
cannam@154
|
3824 # IRIX /sbin/install
|
cannam@154
|
3825 # AIX /bin/install
|
cannam@154
|
3826 # AmigaOS /C/install, which installs bootblocks on floppy discs
|
cannam@154
|
3827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
cannam@154
|
3828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
cannam@154
|
3829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
cannam@154
|
3830 # OS/2's system install, which has a completely different semantic
|
cannam@154
|
3831 # ./install, which can be erroneously created by make from ./install.sh.
|
cannam@154
|
3832 # Reject install programs that cannot install multiple files.
|
cannam@154
|
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
|
cannam@154
|
3834 $as_echo_n "checking for a BSD-compatible install... " >&6; }
|
cannam@154
|
3835 if test -z "$INSTALL"; then
|
cannam@154
|
3836 if ${ac_cv_path_install+:} false; then :
|
cannam@154
|
3837 $as_echo_n "(cached) " >&6
|
cannam@154
|
3838 else
|
cannam@154
|
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
3840 for as_dir in $PATH
|
cannam@154
|
3841 do
|
cannam@154
|
3842 IFS=$as_save_IFS
|
cannam@154
|
3843 test -z "$as_dir" && as_dir=.
|
cannam@154
|
3844 # Account for people who put trailing slashes in PATH elements.
|
cannam@154
|
3845 case $as_dir/ in #((
|
cannam@154
|
3846 ./ | .// | /[cC]/* | \
|
cannam@154
|
3847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
cannam@154
|
3848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
|
cannam@154
|
3849 /usr/ucb/* ) ;;
|
cannam@154
|
3850 *)
|
cannam@154
|
3851 # OSF1 and SCO ODT 3.0 have their own names for install.
|
cannam@154
|
3852 # Don't use installbsd from OSF since it installs stuff as root
|
cannam@154
|
3853 # by default.
|
cannam@154
|
3854 for ac_prog in ginstall scoinst install; do
|
cannam@154
|
3855 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
3856 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
cannam@154
|
3857 if test $ac_prog = install &&
|
cannam@154
|
3858 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@154
|
3859 # AIX install. It has an incompatible calling convention.
|
cannam@154
|
3860 :
|
cannam@154
|
3861 elif test $ac_prog = install &&
|
cannam@154
|
3862 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
cannam@154
|
3863 # program-specific install script used by HP pwplus--don't use.
|
cannam@154
|
3864 :
|
cannam@154
|
3865 else
|
cannam@154
|
3866 rm -rf conftest.one conftest.two conftest.dir
|
cannam@154
|
3867 echo one > conftest.one
|
cannam@154
|
3868 echo two > conftest.two
|
cannam@154
|
3869 mkdir conftest.dir
|
cannam@154
|
3870 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
|
cannam@154
|
3871 test -s conftest.one && test -s conftest.two &&
|
cannam@154
|
3872 test -s conftest.dir/conftest.one &&
|
cannam@154
|
3873 test -s conftest.dir/conftest.two
|
cannam@154
|
3874 then
|
cannam@154
|
3875 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
cannam@154
|
3876 break 3
|
cannam@154
|
3877 fi
|
cannam@154
|
3878 fi
|
cannam@154
|
3879 fi
|
cannam@154
|
3880 done
|
cannam@154
|
3881 done
|
cannam@154
|
3882 ;;
|
cannam@154
|
3883 esac
|
cannam@154
|
3884
|
cannam@154
|
3885 done
|
cannam@154
|
3886 IFS=$as_save_IFS
|
cannam@154
|
3887
|
cannam@154
|
3888 rm -rf conftest.one conftest.two conftest.dir
|
cannam@154
|
3889
|
cannam@154
|
3890 fi
|
cannam@154
|
3891 if test "${ac_cv_path_install+set}" = set; then
|
cannam@154
|
3892 INSTALL=$ac_cv_path_install
|
cannam@154
|
3893 else
|
cannam@154
|
3894 # As a last resort, use the slow shell script. Don't cache a
|
cannam@154
|
3895 # value for INSTALL within a source directory, because that will
|
cannam@154
|
3896 # break other packages using the cache if that directory is
|
cannam@154
|
3897 # removed, or if the value is a relative name.
|
cannam@154
|
3898 INSTALL=$ac_install_sh
|
cannam@154
|
3899 fi
|
cannam@154
|
3900 fi
|
cannam@154
|
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
|
cannam@154
|
3902 $as_echo "$INSTALL" >&6; }
|
cannam@154
|
3903
|
cannam@154
|
3904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
cannam@154
|
3905 # It thinks the first close brace ends the variable substitution.
|
cannam@154
|
3906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
cannam@154
|
3907
|
cannam@154
|
3908 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
cannam@154
|
3909
|
cannam@154
|
3910 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
cannam@154
|
3911
|
cannam@154
|
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
|
cannam@154
|
3913 $as_echo_n "checking whether build environment is sane... " >&6; }
|
cannam@154
|
3914 # Reject unsafe characters in $srcdir or the absolute working directory
|
cannam@154
|
3915 # name. Accept space and tab only in the latter.
|
cannam@154
|
3916 am_lf='
|
cannam@154
|
3917 '
|
cannam@154
|
3918 case `pwd` in
|
cannam@154
|
3919 *[\\\"\#\$\&\'\`$am_lf]*)
|
cannam@154
|
3920 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
|
cannam@154
|
3921 esac
|
cannam@154
|
3922 case $srcdir in
|
cannam@154
|
3923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
|
cannam@154
|
3924 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
|
cannam@154
|
3925 esac
|
cannam@154
|
3926
|
cannam@154
|
3927 # Do 'set' in a subshell so we don't clobber the current shell's
|
cannam@154
|
3928 # arguments. Must try -L first in case configure is actually a
|
cannam@154
|
3929 # symlink; some systems play weird games with the mod time of symlinks
|
cannam@154
|
3930 # (eg FreeBSD returns the mod time of the symlink's containing
|
cannam@154
|
3931 # directory).
|
cannam@154
|
3932 if (
|
cannam@154
|
3933 am_has_slept=no
|
cannam@154
|
3934 for am_try in 1 2; do
|
cannam@154
|
3935 echo "timestamp, slept: $am_has_slept" > conftest.file
|
cannam@154
|
3936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
cannam@154
|
3937 if test "$*" = "X"; then
|
cannam@154
|
3938 # -L didn't work.
|
cannam@154
|
3939 set X `ls -t "$srcdir/configure" conftest.file`
|
cannam@154
|
3940 fi
|
cannam@154
|
3941 if test "$*" != "X $srcdir/configure conftest.file" \
|
cannam@154
|
3942 && test "$*" != "X conftest.file $srcdir/configure"; then
|
cannam@154
|
3943
|
cannam@154
|
3944 # If neither matched, then we have a broken ls. This can happen
|
cannam@154
|
3945 # if, for instance, CONFIG_SHELL is bash and it inherits a
|
cannam@154
|
3946 # broken ls alias from the environment. This has actually
|
cannam@154
|
3947 # happened. Such a system could not be considered "sane".
|
cannam@154
|
3948 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
|
cannam@154
|
3949 alias in your environment" "$LINENO" 5
|
cannam@154
|
3950 fi
|
cannam@154
|
3951 if test "$2" = conftest.file || test $am_try -eq 2; then
|
cannam@154
|
3952 break
|
cannam@154
|
3953 fi
|
cannam@154
|
3954 # Just in case.
|
cannam@154
|
3955 sleep 1
|
cannam@154
|
3956 am_has_slept=yes
|
cannam@154
|
3957 done
|
cannam@154
|
3958 test "$2" = conftest.file
|
cannam@154
|
3959 )
|
cannam@154
|
3960 then
|
cannam@154
|
3961 # Ok.
|
cannam@154
|
3962 :
|
cannam@154
|
3963 else
|
cannam@154
|
3964 as_fn_error $? "newly created file is older than distributed files!
|
cannam@154
|
3965 Check your system clock" "$LINENO" 5
|
cannam@154
|
3966 fi
|
cannam@154
|
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
3968 $as_echo "yes" >&6; }
|
cannam@154
|
3969 # If we didn't sleep, we still need to ensure time stamps of config.status and
|
cannam@154
|
3970 # generated files are strictly newer.
|
cannam@154
|
3971 am_sleep_pid=
|
cannam@154
|
3972 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
cannam@154
|
3973 ( sleep 1 ) &
|
cannam@154
|
3974 am_sleep_pid=$!
|
cannam@154
|
3975 fi
|
cannam@154
|
3976
|
cannam@154
|
3977 rm -f conftest.file
|
cannam@154
|
3978
|
cannam@154
|
3979 test "$program_prefix" != NONE &&
|
cannam@154
|
3980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
|
cannam@154
|
3981 # Use a double $ so make ignores it.
|
cannam@154
|
3982 test "$program_suffix" != NONE &&
|
cannam@154
|
3983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
|
cannam@154
|
3984 # Double any \ or $.
|
cannam@154
|
3985 # By default was `s,x,x', remove it if useless.
|
cannam@154
|
3986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
|
cannam@154
|
3987 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
|
cannam@154
|
3988
|
cannam@154
|
3989 if test x"${MISSING+set}" != xset; then
|
cannam@154
|
3990 case $am_aux_dir in
|
cannam@154
|
3991 *\ * | *\ *)
|
cannam@154
|
3992 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
cannam@154
|
3993 *)
|
cannam@154
|
3994 MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
cannam@154
|
3995 esac
|
cannam@154
|
3996 fi
|
cannam@154
|
3997 # Use eval to expand $SHELL
|
cannam@154
|
3998 if eval "$MISSING --is-lightweight"; then
|
cannam@154
|
3999 am_missing_run="$MISSING "
|
cannam@154
|
4000 else
|
cannam@154
|
4001 am_missing_run=
|
cannam@154
|
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
|
cannam@154
|
4003 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
|
cannam@154
|
4004 fi
|
cannam@154
|
4005
|
cannam@154
|
4006 if test x"${install_sh+set}" != xset; then
|
cannam@154
|
4007 case $am_aux_dir in
|
cannam@154
|
4008 *\ * | *\ *)
|
cannam@154
|
4009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
cannam@154
|
4010 *)
|
cannam@154
|
4011 install_sh="\${SHELL} $am_aux_dir/install-sh"
|
cannam@154
|
4012 esac
|
cannam@154
|
4013 fi
|
cannam@154
|
4014
|
cannam@154
|
4015 # Installed binaries are usually stripped using 'strip' when the user
|
cannam@154
|
4016 # run "make install-strip". However 'strip' might not be the right
|
cannam@154
|
4017 # tool to use in cross-compilation environments, therefore Automake
|
cannam@154
|
4018 # will honor the 'STRIP' environment variable to overrule this program.
|
cannam@154
|
4019 if test "$cross_compiling" != no; then
|
cannam@154
|
4020 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
4021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@154
|
4022 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@154
|
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
4024 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
4025 if ${ac_cv_prog_STRIP+:} false; then :
|
cannam@154
|
4026 $as_echo_n "(cached) " >&6
|
cannam@154
|
4027 else
|
cannam@154
|
4028 if test -n "$STRIP"; then
|
cannam@154
|
4029 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@154
|
4030 else
|
cannam@154
|
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4032 for as_dir in $PATH
|
cannam@154
|
4033 do
|
cannam@154
|
4034 IFS=$as_save_IFS
|
cannam@154
|
4035 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4036 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
4038 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@154
|
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
4040 break 2
|
cannam@154
|
4041 fi
|
cannam@154
|
4042 done
|
cannam@154
|
4043 done
|
cannam@154
|
4044 IFS=$as_save_IFS
|
cannam@154
|
4045
|
cannam@154
|
4046 fi
|
cannam@154
|
4047 fi
|
cannam@154
|
4048 STRIP=$ac_cv_prog_STRIP
|
cannam@154
|
4049 if test -n "$STRIP"; then
|
cannam@154
|
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
cannam@154
|
4051 $as_echo "$STRIP" >&6; }
|
cannam@154
|
4052 else
|
cannam@154
|
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
4054 $as_echo "no" >&6; }
|
cannam@154
|
4055 fi
|
cannam@154
|
4056
|
cannam@154
|
4057
|
cannam@154
|
4058 fi
|
cannam@154
|
4059 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@154
|
4060 ac_ct_STRIP=$STRIP
|
cannam@154
|
4061 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@154
|
4062 set dummy strip; ac_word=$2
|
cannam@154
|
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
4064 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
4065 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
cannam@154
|
4066 $as_echo_n "(cached) " >&6
|
cannam@154
|
4067 else
|
cannam@154
|
4068 if test -n "$ac_ct_STRIP"; then
|
cannam@154
|
4069 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@154
|
4070 else
|
cannam@154
|
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4072 for as_dir in $PATH
|
cannam@154
|
4073 do
|
cannam@154
|
4074 IFS=$as_save_IFS
|
cannam@154
|
4075 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4076 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
4078 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@154
|
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
4080 break 2
|
cannam@154
|
4081 fi
|
cannam@154
|
4082 done
|
cannam@154
|
4083 done
|
cannam@154
|
4084 IFS=$as_save_IFS
|
cannam@154
|
4085
|
cannam@154
|
4086 fi
|
cannam@154
|
4087 fi
|
cannam@154
|
4088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@154
|
4089 if test -n "$ac_ct_STRIP"; then
|
cannam@154
|
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
cannam@154
|
4091 $as_echo "$ac_ct_STRIP" >&6; }
|
cannam@154
|
4092 else
|
cannam@154
|
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
4094 $as_echo "no" >&6; }
|
cannam@154
|
4095 fi
|
cannam@154
|
4096
|
cannam@154
|
4097 if test "x$ac_ct_STRIP" = x; then
|
cannam@154
|
4098 STRIP=":"
|
cannam@154
|
4099 else
|
cannam@154
|
4100 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
4101 yes:)
|
cannam@154
|
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
4103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
4104 ac_tool_warned=yes ;;
|
cannam@154
|
4105 esac
|
cannam@154
|
4106 STRIP=$ac_ct_STRIP
|
cannam@154
|
4107 fi
|
cannam@154
|
4108 else
|
cannam@154
|
4109 STRIP="$ac_cv_prog_STRIP"
|
cannam@154
|
4110 fi
|
cannam@154
|
4111
|
cannam@154
|
4112 fi
|
cannam@154
|
4113 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
cannam@154
|
4114
|
cannam@154
|
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
|
cannam@154
|
4116 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
|
cannam@154
|
4117 if test -z "$MKDIR_P"; then
|
cannam@154
|
4118 if ${ac_cv_path_mkdir+:} false; then :
|
cannam@154
|
4119 $as_echo_n "(cached) " >&6
|
cannam@154
|
4120 else
|
cannam@154
|
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
|
cannam@154
|
4123 do
|
cannam@154
|
4124 IFS=$as_save_IFS
|
cannam@154
|
4125 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4126 for ac_prog in mkdir gmkdir; do
|
cannam@154
|
4127 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4128 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
|
cannam@154
|
4129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
|
cannam@154
|
4130 'mkdir (GNU coreutils) '* | \
|
cannam@154
|
4131 'mkdir (coreutils) '* | \
|
cannam@154
|
4132 'mkdir (fileutils) '4.1*)
|
cannam@154
|
4133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
|
cannam@154
|
4134 break 3;;
|
cannam@154
|
4135 esac
|
cannam@154
|
4136 done
|
cannam@154
|
4137 done
|
cannam@154
|
4138 done
|
cannam@154
|
4139 IFS=$as_save_IFS
|
cannam@154
|
4140
|
cannam@154
|
4141 fi
|
cannam@154
|
4142
|
cannam@154
|
4143 test -d ./--version && rmdir ./--version
|
cannam@154
|
4144 if test "${ac_cv_path_mkdir+set}" = set; then
|
cannam@154
|
4145 MKDIR_P="$ac_cv_path_mkdir -p"
|
cannam@154
|
4146 else
|
cannam@154
|
4147 # As a last resort, use the slow shell script. Don't cache a
|
cannam@154
|
4148 # value for MKDIR_P within a source directory, because that will
|
cannam@154
|
4149 # break other packages using the cache if that directory is
|
cannam@154
|
4150 # removed, or if the value is a relative name.
|
cannam@154
|
4151 MKDIR_P="$ac_install_sh -d"
|
cannam@154
|
4152 fi
|
cannam@154
|
4153 fi
|
cannam@154
|
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
|
cannam@154
|
4155 $as_echo "$MKDIR_P" >&6; }
|
cannam@154
|
4156
|
cannam@154
|
4157 for ac_prog in gawk mawk nawk awk
|
cannam@154
|
4158 do
|
cannam@154
|
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@154
|
4160 set dummy $ac_prog; ac_word=$2
|
cannam@154
|
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
4162 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
4163 if ${ac_cv_prog_AWK+:} false; then :
|
cannam@154
|
4164 $as_echo_n "(cached) " >&6
|
cannam@154
|
4165 else
|
cannam@154
|
4166 if test -n "$AWK"; then
|
cannam@154
|
4167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
cannam@154
|
4168 else
|
cannam@154
|
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4170 for as_dir in $PATH
|
cannam@154
|
4171 do
|
cannam@154
|
4172 IFS=$as_save_IFS
|
cannam@154
|
4173 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4174 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
4176 ac_cv_prog_AWK="$ac_prog"
|
cannam@154
|
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
4178 break 2
|
cannam@154
|
4179 fi
|
cannam@154
|
4180 done
|
cannam@154
|
4181 done
|
cannam@154
|
4182 IFS=$as_save_IFS
|
cannam@154
|
4183
|
cannam@154
|
4184 fi
|
cannam@154
|
4185 fi
|
cannam@154
|
4186 AWK=$ac_cv_prog_AWK
|
cannam@154
|
4187 if test -n "$AWK"; then
|
cannam@154
|
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
|
cannam@154
|
4189 $as_echo "$AWK" >&6; }
|
cannam@154
|
4190 else
|
cannam@154
|
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
4192 $as_echo "no" >&6; }
|
cannam@154
|
4193 fi
|
cannam@154
|
4194
|
cannam@154
|
4195
|
cannam@154
|
4196 test -n "$AWK" && break
|
cannam@154
|
4197 done
|
cannam@154
|
4198
|
cannam@154
|
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
cannam@154
|
4200 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
|
cannam@154
|
4201 set x ${MAKE-make}
|
cannam@154
|
4202 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
|
cannam@154
|
4203 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
|
cannam@154
|
4204 $as_echo_n "(cached) " >&6
|
cannam@154
|
4205 else
|
cannam@154
|
4206 cat >conftest.make <<\_ACEOF
|
cannam@154
|
4207 SHELL = /bin/sh
|
cannam@154
|
4208 all:
|
cannam@154
|
4209 @echo '@@@%%%=$(MAKE)=@@@%%%'
|
cannam@154
|
4210 _ACEOF
|
cannam@154
|
4211 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
|
cannam@154
|
4212 case `${MAKE-make} -f conftest.make 2>/dev/null` in
|
cannam@154
|
4213 *@@@%%%=?*=@@@%%%*)
|
cannam@154
|
4214 eval ac_cv_prog_make_${ac_make}_set=yes;;
|
cannam@154
|
4215 *)
|
cannam@154
|
4216 eval ac_cv_prog_make_${ac_make}_set=no;;
|
cannam@154
|
4217 esac
|
cannam@154
|
4218 rm -f conftest.make
|
cannam@154
|
4219 fi
|
cannam@154
|
4220 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
|
cannam@154
|
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
4222 $as_echo "yes" >&6; }
|
cannam@154
|
4223 SET_MAKE=
|
cannam@154
|
4224 else
|
cannam@154
|
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
4226 $as_echo "no" >&6; }
|
cannam@154
|
4227 SET_MAKE="MAKE=${MAKE-make}"
|
cannam@154
|
4228 fi
|
cannam@154
|
4229
|
cannam@154
|
4230 rm -rf .tst 2>/dev/null
|
cannam@154
|
4231 mkdir .tst 2>/dev/null
|
cannam@154
|
4232 if test -d .tst; then
|
cannam@154
|
4233 am__leading_dot=.
|
cannam@154
|
4234 else
|
cannam@154
|
4235 am__leading_dot=_
|
cannam@154
|
4236 fi
|
cannam@154
|
4237 rmdir .tst 2>/dev/null
|
cannam@154
|
4238
|
cannam@154
|
4239 DEPDIR="${am__leading_dot}deps"
|
cannam@154
|
4240
|
cannam@154
|
4241 ac_config_commands="$ac_config_commands depfiles"
|
cannam@154
|
4242
|
cannam@154
|
4243
|
cannam@154
|
4244 am_make=${MAKE-make}
|
cannam@154
|
4245 cat > confinc << 'END'
|
cannam@154
|
4246 am__doit:
|
cannam@154
|
4247 @echo this is the am__doit target
|
cannam@154
|
4248 .PHONY: am__doit
|
cannam@154
|
4249 END
|
cannam@154
|
4250 # If we don't find an include directive, just comment out the code.
|
cannam@154
|
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
|
cannam@154
|
4252 $as_echo_n "checking for style of include used by $am_make... " >&6; }
|
cannam@154
|
4253 am__include="#"
|
cannam@154
|
4254 am__quote=
|
cannam@154
|
4255 _am_result=none
|
cannam@154
|
4256 # First try GNU make style include.
|
cannam@154
|
4257 echo "include confinc" > confmf
|
cannam@154
|
4258 # Ignore all kinds of additional output from 'make'.
|
cannam@154
|
4259 case `$am_make -s -f confmf 2> /dev/null` in #(
|
cannam@154
|
4260 *the\ am__doit\ target*)
|
cannam@154
|
4261 am__include=include
|
cannam@154
|
4262 am__quote=
|
cannam@154
|
4263 _am_result=GNU
|
cannam@154
|
4264 ;;
|
cannam@154
|
4265 esac
|
cannam@154
|
4266 # Now try BSD make style include.
|
cannam@154
|
4267 if test "$am__include" = "#"; then
|
cannam@154
|
4268 echo '.include "confinc"' > confmf
|
cannam@154
|
4269 case `$am_make -s -f confmf 2> /dev/null` in #(
|
cannam@154
|
4270 *the\ am__doit\ target*)
|
cannam@154
|
4271 am__include=.include
|
cannam@154
|
4272 am__quote="\""
|
cannam@154
|
4273 _am_result=BSD
|
cannam@154
|
4274 ;;
|
cannam@154
|
4275 esac
|
cannam@154
|
4276 fi
|
cannam@154
|
4277
|
cannam@154
|
4278
|
cannam@154
|
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
|
cannam@154
|
4280 $as_echo "$_am_result" >&6; }
|
cannam@154
|
4281 rm -f confinc confmf
|
cannam@154
|
4282
|
cannam@154
|
4283 # Check whether --enable-dependency-tracking was given.
|
cannam@154
|
4284 if test "${enable_dependency_tracking+set}" = set; then :
|
cannam@154
|
4285 enableval=$enable_dependency_tracking;
|
cannam@154
|
4286 fi
|
cannam@154
|
4287
|
cannam@154
|
4288 if test "x$enable_dependency_tracking" != xno; then
|
cannam@154
|
4289 am_depcomp="$ac_aux_dir/depcomp"
|
cannam@154
|
4290 AMDEPBACKSLASH='\'
|
cannam@154
|
4291 am__nodep='_no'
|
cannam@154
|
4292 fi
|
cannam@154
|
4293 if test "x$enable_dependency_tracking" != xno; then
|
cannam@154
|
4294 AMDEP_TRUE=
|
cannam@154
|
4295 AMDEP_FALSE='#'
|
cannam@154
|
4296 else
|
cannam@154
|
4297 AMDEP_TRUE='#'
|
cannam@154
|
4298 AMDEP_FALSE=
|
cannam@154
|
4299 fi
|
cannam@154
|
4300
|
cannam@154
|
4301
|
cannam@154
|
4302 # Check whether --enable-silent-rules was given.
|
cannam@154
|
4303 if test "${enable_silent_rules+set}" = set; then :
|
cannam@154
|
4304 enableval=$enable_silent_rules;
|
cannam@154
|
4305 fi
|
cannam@154
|
4306
|
cannam@154
|
4307 case $enable_silent_rules in # (((
|
cannam@154
|
4308 yes) AM_DEFAULT_VERBOSITY=0;;
|
cannam@154
|
4309 no) AM_DEFAULT_VERBOSITY=1;;
|
cannam@154
|
4310 *) AM_DEFAULT_VERBOSITY=1;;
|
cannam@154
|
4311 esac
|
cannam@154
|
4312 am_make=${MAKE-make}
|
cannam@154
|
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
cannam@154
|
4314 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
cannam@154
|
4315 if ${am_cv_make_support_nested_variables+:} false; then :
|
cannam@154
|
4316 $as_echo_n "(cached) " >&6
|
cannam@154
|
4317 else
|
cannam@154
|
4318 if $as_echo 'TRUE=$(BAR$(V))
|
cannam@154
|
4319 BAR0=false
|
cannam@154
|
4320 BAR1=true
|
cannam@154
|
4321 V=1
|
cannam@154
|
4322 am__doit:
|
cannam@154
|
4323 @$(TRUE)
|
cannam@154
|
4324 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
cannam@154
|
4325 am_cv_make_support_nested_variables=yes
|
cannam@154
|
4326 else
|
cannam@154
|
4327 am_cv_make_support_nested_variables=no
|
cannam@154
|
4328 fi
|
cannam@154
|
4329 fi
|
cannam@154
|
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
cannam@154
|
4331 $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
cannam@154
|
4332 if test $am_cv_make_support_nested_variables = yes; then
|
cannam@154
|
4333 AM_V='$(V)'
|
cannam@154
|
4334 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
cannam@154
|
4335 else
|
cannam@154
|
4336 AM_V=$AM_DEFAULT_VERBOSITY
|
cannam@154
|
4337 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
cannam@154
|
4338 fi
|
cannam@154
|
4339 AM_BACKSLASH='\'
|
cannam@154
|
4340
|
cannam@154
|
4341 if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
cannam@154
|
4342 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
cannam@154
|
4343 # is not polluted with repeated "-I."
|
cannam@154
|
4344 am__isrc=' -I$(srcdir)'
|
cannam@154
|
4345 # test to see if srcdir already configured
|
cannam@154
|
4346 if test -f $srcdir/config.status; then
|
cannam@154
|
4347 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
|
cannam@154
|
4348 fi
|
cannam@154
|
4349 fi
|
cannam@154
|
4350
|
cannam@154
|
4351 # test whether we have cygpath
|
cannam@154
|
4352 if test -z "$CYGPATH_W"; then
|
cannam@154
|
4353 if (cygpath --version) >/dev/null 2>/dev/null; then
|
cannam@154
|
4354 CYGPATH_W='cygpath -w'
|
cannam@154
|
4355 else
|
cannam@154
|
4356 CYGPATH_W=echo
|
cannam@154
|
4357 fi
|
cannam@154
|
4358 fi
|
cannam@154
|
4359
|
cannam@154
|
4360
|
cannam@154
|
4361 # Define the identity of the package.
|
cannam@154
|
4362 PACKAGE='opusfile'
|
cannam@154
|
4363 VERSION='0.9'
|
cannam@154
|
4364
|
cannam@154
|
4365
|
cannam@154
|
4366 # Some tools Automake needs.
|
cannam@154
|
4367
|
cannam@154
|
4368 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
cannam@154
|
4369
|
cannam@154
|
4370
|
cannam@154
|
4371 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
cannam@154
|
4372
|
cannam@154
|
4373
|
cannam@154
|
4374 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
cannam@154
|
4375
|
cannam@154
|
4376
|
cannam@154
|
4377 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
cannam@154
|
4378
|
cannam@154
|
4379
|
cannam@154
|
4380 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
cannam@154
|
4381
|
cannam@154
|
4382 # For better backward compatibility. To be removed once Automake 1.9.x
|
cannam@154
|
4383 # dies out for good. For more background, see:
|
cannam@154
|
4384 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
cannam@154
|
4385 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
cannam@154
|
4386 mkdir_p='$(MKDIR_P)'
|
cannam@154
|
4387
|
cannam@154
|
4388 # We need awk for the "check" target (and possibly the TAP driver). The
|
cannam@154
|
4389 # system "awk" is bad on some platforms.
|
cannam@154
|
4390 # Always define AMTAR for backward compatibility. Yes, it's still used
|
cannam@154
|
4391 # in the wild :-( We should find a proper way to deprecate it ...
|
cannam@154
|
4392 AMTAR='$${TAR-tar}'
|
cannam@154
|
4393
|
cannam@154
|
4394
|
cannam@154
|
4395 # We'll loop over all known methods to create a tar archive until one works.
|
cannam@154
|
4396 _am_tools='gnutar pax cpio none'
|
cannam@154
|
4397
|
cannam@154
|
4398 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
|
cannam@154
|
4399
|
cannam@154
|
4400
|
cannam@154
|
4401
|
cannam@154
|
4402
|
cannam@154
|
4403
|
cannam@154
|
4404 depcc="$CC" am_compiler_list=
|
cannam@154
|
4405
|
cannam@154
|
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
|
cannam@154
|
4407 $as_echo_n "checking dependency style of $depcc... " >&6; }
|
cannam@154
|
4408 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
|
cannam@154
|
4409 $as_echo_n "(cached) " >&6
|
cannam@154
|
4410 else
|
cannam@154
|
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
cannam@154
|
4412 # We make a subdir and do the tests there. Otherwise we can end up
|
cannam@154
|
4413 # making bogus files that we don't know about and never remove. For
|
cannam@154
|
4414 # instance it was reported that on HP-UX the gcc test will end up
|
cannam@154
|
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
|
cannam@154
|
4416 # in D".
|
cannam@154
|
4417 rm -rf conftest.dir
|
cannam@154
|
4418 mkdir conftest.dir
|
cannam@154
|
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
|
cannam@154
|
4420 # using a relative directory.
|
cannam@154
|
4421 cp "$am_depcomp" conftest.dir
|
cannam@154
|
4422 cd conftest.dir
|
cannam@154
|
4423 # We will build objects and dependencies in a subdirectory because
|
cannam@154
|
4424 # it helps to detect inapplicable dependency modes. For instance
|
cannam@154
|
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
|
cannam@154
|
4426 # side effect of compilation, but ICC will put the dependencies in
|
cannam@154
|
4427 # the current directory while Tru64 will put them in the object
|
cannam@154
|
4428 # directory.
|
cannam@154
|
4429 mkdir sub
|
cannam@154
|
4430
|
cannam@154
|
4431 am_cv_CC_dependencies_compiler_type=none
|
cannam@154
|
4432 if test "$am_compiler_list" = ""; then
|
cannam@154
|
4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
cannam@154
|
4434 fi
|
cannam@154
|
4435 am__universal=false
|
cannam@154
|
4436 case " $depcc " in #(
|
cannam@154
|
4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
|
cannam@154
|
4438 esac
|
cannam@154
|
4439
|
cannam@154
|
4440 for depmode in $am_compiler_list; do
|
cannam@154
|
4441 # Setup a source with many dependencies, because some compilers
|
cannam@154
|
4442 # like to wrap large dependency lists on column 80 (with \), and
|
cannam@154
|
4443 # we should not choose a depcomp mode which is confused by this.
|
cannam@154
|
4444 #
|
cannam@154
|
4445 # We need to recreate these files for each test, as the compiler may
|
cannam@154
|
4446 # overwrite some of them when testing with obscure command lines.
|
cannam@154
|
4447 # This happens at least with the AIX C compiler.
|
cannam@154
|
4448 : > sub/conftest.c
|
cannam@154
|
4449 for i in 1 2 3 4 5 6; do
|
cannam@154
|
4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
cannam@154
|
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
cannam@154
|
4452 # Solaris 10 /bin/sh.
|
cannam@154
|
4453 echo '/* dummy */' > sub/conftst$i.h
|
cannam@154
|
4454 done
|
cannam@154
|
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
cannam@154
|
4456
|
cannam@154
|
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
|
cannam@154
|
4458 # mode. It turns out that the SunPro C++ compiler does not properly
|
cannam@154
|
4459 # handle '-M -o', and we need to detect this. Also, some Intel
|
cannam@154
|
4460 # versions had trouble with output in subdirs.
|
cannam@154
|
4461 am__obj=sub/conftest.${OBJEXT-o}
|
cannam@154
|
4462 am__minus_obj="-o $am__obj"
|
cannam@154
|
4463 case $depmode in
|
cannam@154
|
4464 gcc)
|
cannam@154
|
4465 # This depmode causes a compiler race in universal mode.
|
cannam@154
|
4466 test "$am__universal" = false || continue
|
cannam@154
|
4467 ;;
|
cannam@154
|
4468 nosideeffect)
|
cannam@154
|
4469 # After this tag, mechanisms are not by side-effect, so they'll
|
cannam@154
|
4470 # only be used when explicitly requested.
|
cannam@154
|
4471 if test "x$enable_dependency_tracking" = xyes; then
|
cannam@154
|
4472 continue
|
cannam@154
|
4473 else
|
cannam@154
|
4474 break
|
cannam@154
|
4475 fi
|
cannam@154
|
4476 ;;
|
cannam@154
|
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
cannam@154
|
4478 # This compiler won't grok '-c -o', but also, the minuso test has
|
cannam@154
|
4479 # not run yet. These depmodes are late enough in the game, and
|
cannam@154
|
4480 # so weak that their functioning should not be impacted.
|
cannam@154
|
4481 am__obj=conftest.${OBJEXT-o}
|
cannam@154
|
4482 am__minus_obj=
|
cannam@154
|
4483 ;;
|
cannam@154
|
4484 none) break ;;
|
cannam@154
|
4485 esac
|
cannam@154
|
4486 if depmode=$depmode \
|
cannam@154
|
4487 source=sub/conftest.c object=$am__obj \
|
cannam@154
|
4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
cannam@154
|
4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
cannam@154
|
4490 >/dev/null 2>conftest.err &&
|
cannam@154
|
4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@154
|
4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@154
|
4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
cannam@154
|
4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
cannam@154
|
4495 # icc doesn't choke on unknown options, it will just issue warnings
|
cannam@154
|
4496 # or remarks (even with -Werror). So we grep stderr for any message
|
cannam@154
|
4497 # that says an option was ignored or not supported.
|
cannam@154
|
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
|
cannam@154
|
4499 # icc: Command line warning: ignoring option '-M'; no argument required
|
cannam@154
|
4500 # The diagnosis changed in icc 8.0:
|
cannam@154
|
4501 # icc: Command line remark: option '-MP' not supported
|
cannam@154
|
4502 if (grep 'ignoring option' conftest.err ||
|
cannam@154
|
4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
cannam@154
|
4504 am_cv_CC_dependencies_compiler_type=$depmode
|
cannam@154
|
4505 break
|
cannam@154
|
4506 fi
|
cannam@154
|
4507 fi
|
cannam@154
|
4508 done
|
cannam@154
|
4509
|
cannam@154
|
4510 cd ..
|
cannam@154
|
4511 rm -rf conftest.dir
|
cannam@154
|
4512 else
|
cannam@154
|
4513 am_cv_CC_dependencies_compiler_type=none
|
cannam@154
|
4514 fi
|
cannam@154
|
4515
|
cannam@154
|
4516 fi
|
cannam@154
|
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
|
cannam@154
|
4518 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
|
cannam@154
|
4519 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
cannam@154
|
4520
|
cannam@154
|
4521 if
|
cannam@154
|
4522 test "x$enable_dependency_tracking" != xno \
|
cannam@154
|
4523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
|
cannam@154
|
4524 am__fastdepCC_TRUE=
|
cannam@154
|
4525 am__fastdepCC_FALSE='#'
|
cannam@154
|
4526 else
|
cannam@154
|
4527 am__fastdepCC_TRUE='#'
|
cannam@154
|
4528 am__fastdepCC_FALSE=
|
cannam@154
|
4529 fi
|
cannam@154
|
4530
|
cannam@154
|
4531
|
cannam@154
|
4532
|
cannam@154
|
4533 # POSIX will say in a future version that running "rm -f" with no argument
|
cannam@154
|
4534 # is OK; and we want to be able to make that assumption in our Makefile
|
cannam@154
|
4535 # recipes. So use an aggressive probe to check that the usage we want is
|
cannam@154
|
4536 # actually supported "in the wild" to an acceptable degree.
|
cannam@154
|
4537 # See automake bug#10828.
|
cannam@154
|
4538 # To make any issue more visible, cause the running configure to be aborted
|
cannam@154
|
4539 # by default if the 'rm' program in use doesn't match our expectations; the
|
cannam@154
|
4540 # user can still override this though.
|
cannam@154
|
4541 if rm -f && rm -fr && rm -rf; then : OK; else
|
cannam@154
|
4542 cat >&2 <<'END'
|
cannam@154
|
4543 Oops!
|
cannam@154
|
4544
|
cannam@154
|
4545 Your 'rm' program seems unable to run without file operands specified
|
cannam@154
|
4546 on the command line, even when the '-f' option is present. This is contrary
|
cannam@154
|
4547 to the behaviour of most rm programs out there, and not conforming with
|
cannam@154
|
4548 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
|
cannam@154
|
4549
|
cannam@154
|
4550 Please tell bug-automake@gnu.org about your system, including the value
|
cannam@154
|
4551 of your $PATH and any error possibly output before this message. This
|
cannam@154
|
4552 can help us improve future automake versions.
|
cannam@154
|
4553
|
cannam@154
|
4554 END
|
cannam@154
|
4555 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
|
cannam@154
|
4556 echo 'Configuration will proceed anyway, since you have set the' >&2
|
cannam@154
|
4557 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
|
cannam@154
|
4558 echo >&2
|
cannam@154
|
4559 else
|
cannam@154
|
4560 cat >&2 <<'END'
|
cannam@154
|
4561 Aborting the configuration process, to ensure you take notice of the issue.
|
cannam@154
|
4562
|
cannam@154
|
4563 You can download and install GNU coreutils to get an 'rm' implementation
|
cannam@154
|
4564 that behaves properly: <http://www.gnu.org/software/coreutils/>.
|
cannam@154
|
4565
|
cannam@154
|
4566 If you want to complete the configuration process using your problematic
|
cannam@154
|
4567 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
|
cannam@154
|
4568 to "yes", and re-run configure.
|
cannam@154
|
4569
|
cannam@154
|
4570 END
|
cannam@154
|
4571 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
|
cannam@154
|
4572 fi
|
cannam@154
|
4573 fi
|
cannam@154
|
4574
|
cannam@154
|
4575
|
cannam@154
|
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
cannam@154
|
4577 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
cannam@154
|
4578 # Check whether --enable-maintainer-mode was given.
|
cannam@154
|
4579 if test "${enable_maintainer_mode+set}" = set; then :
|
cannam@154
|
4580 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
cannam@154
|
4581 else
|
cannam@154
|
4582 USE_MAINTAINER_MODE=yes
|
cannam@154
|
4583 fi
|
cannam@154
|
4584
|
cannam@154
|
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
cannam@154
|
4586 $as_echo "$USE_MAINTAINER_MODE" >&6; }
|
cannam@154
|
4587 if test $USE_MAINTAINER_MODE = yes; then
|
cannam@154
|
4588 MAINTAINER_MODE_TRUE=
|
cannam@154
|
4589 MAINTAINER_MODE_FALSE='#'
|
cannam@154
|
4590 else
|
cannam@154
|
4591 MAINTAINER_MODE_TRUE='#'
|
cannam@154
|
4592 MAINTAINER_MODE_FALSE=
|
cannam@154
|
4593 fi
|
cannam@154
|
4594
|
cannam@154
|
4595 MAINT=$MAINTAINER_MODE_TRUE
|
cannam@154
|
4596
|
cannam@154
|
4597
|
cannam@154
|
4598 case `pwd` in
|
cannam@154
|
4599 *\ * | *\ *)
|
cannam@154
|
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
|
cannam@154
|
4601 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
|
cannam@154
|
4602 esac
|
cannam@154
|
4603
|
cannam@154
|
4604
|
cannam@154
|
4605
|
cannam@154
|
4606 macro_version='2.4.6'
|
cannam@154
|
4607 macro_revision='2.4.6'
|
cannam@154
|
4608
|
cannam@154
|
4609
|
cannam@154
|
4610
|
cannam@154
|
4611
|
cannam@154
|
4612
|
cannam@154
|
4613
|
cannam@154
|
4614
|
cannam@154
|
4615
|
cannam@154
|
4616
|
cannam@154
|
4617
|
cannam@154
|
4618
|
cannam@154
|
4619
|
cannam@154
|
4620
|
cannam@154
|
4621 ltmain=$ac_aux_dir/ltmain.sh
|
cannam@154
|
4622
|
cannam@154
|
4623 # Make sure we can run config.sub.
|
cannam@154
|
4624 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
cannam@154
|
4625 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
|
cannam@154
|
4626
|
cannam@154
|
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
|
cannam@154
|
4628 $as_echo_n "checking build system type... " >&6; }
|
cannam@154
|
4629 if ${ac_cv_build+:} false; then :
|
cannam@154
|
4630 $as_echo_n "(cached) " >&6
|
cannam@154
|
4631 else
|
cannam@154
|
4632 ac_build_alias=$build_alias
|
cannam@154
|
4633 test "x$ac_build_alias" = x &&
|
cannam@154
|
4634 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
cannam@154
|
4635 test "x$ac_build_alias" = x &&
|
cannam@154
|
4636 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
|
cannam@154
|
4637 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
cannam@154
|
4638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
|
cannam@154
|
4639
|
cannam@154
|
4640 fi
|
cannam@154
|
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
|
cannam@154
|
4642 $as_echo "$ac_cv_build" >&6; }
|
cannam@154
|
4643 case $ac_cv_build in
|
cannam@154
|
4644 *-*-*) ;;
|
cannam@154
|
4645 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
|
cannam@154
|
4646 esac
|
cannam@154
|
4647 build=$ac_cv_build
|
cannam@154
|
4648 ac_save_IFS=$IFS; IFS='-'
|
cannam@154
|
4649 set x $ac_cv_build
|
cannam@154
|
4650 shift
|
cannam@154
|
4651 build_cpu=$1
|
cannam@154
|
4652 build_vendor=$2
|
cannam@154
|
4653 shift; shift
|
cannam@154
|
4654 # Remember, the first character of IFS is used to create $*,
|
cannam@154
|
4655 # except with old shells:
|
cannam@154
|
4656 build_os=$*
|
cannam@154
|
4657 IFS=$ac_save_IFS
|
cannam@154
|
4658 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
cannam@154
|
4659
|
cannam@154
|
4660
|
cannam@154
|
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
|
cannam@154
|
4662 $as_echo_n "checking host system type... " >&6; }
|
cannam@154
|
4663 if ${ac_cv_host+:} false; then :
|
cannam@154
|
4664 $as_echo_n "(cached) " >&6
|
cannam@154
|
4665 else
|
cannam@154
|
4666 if test "x$host_alias" = x; then
|
cannam@154
|
4667 ac_cv_host=$ac_cv_build
|
cannam@154
|
4668 else
|
cannam@154
|
4669 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
cannam@154
|
4670 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
|
cannam@154
|
4671 fi
|
cannam@154
|
4672
|
cannam@154
|
4673 fi
|
cannam@154
|
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
|
cannam@154
|
4675 $as_echo "$ac_cv_host" >&6; }
|
cannam@154
|
4676 case $ac_cv_host in
|
cannam@154
|
4677 *-*-*) ;;
|
cannam@154
|
4678 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
|
cannam@154
|
4679 esac
|
cannam@154
|
4680 host=$ac_cv_host
|
cannam@154
|
4681 ac_save_IFS=$IFS; IFS='-'
|
cannam@154
|
4682 set x $ac_cv_host
|
cannam@154
|
4683 shift
|
cannam@154
|
4684 host_cpu=$1
|
cannam@154
|
4685 host_vendor=$2
|
cannam@154
|
4686 shift; shift
|
cannam@154
|
4687 # Remember, the first character of IFS is used to create $*,
|
cannam@154
|
4688 # except with old shells:
|
cannam@154
|
4689 host_os=$*
|
cannam@154
|
4690 IFS=$ac_save_IFS
|
cannam@154
|
4691 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
cannam@154
|
4692
|
cannam@154
|
4693
|
cannam@154
|
4694 # Backslashify metacharacters that are still active within
|
cannam@154
|
4695 # double-quoted strings.
|
cannam@154
|
4696 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
|
cannam@154
|
4697
|
cannam@154
|
4698 # Same as above, but do not quote variable references.
|
cannam@154
|
4699 double_quote_subst='s/\(["`\\]\)/\\\1/g'
|
cannam@154
|
4700
|
cannam@154
|
4701 # Sed substitution to delay expansion of an escaped shell variable in a
|
cannam@154
|
4702 # double_quote_subst'ed string.
|
cannam@154
|
4703 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
|
cannam@154
|
4704
|
cannam@154
|
4705 # Sed substitution to delay expansion of an escaped single quote.
|
cannam@154
|
4706 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
|
cannam@154
|
4707
|
cannam@154
|
4708 # Sed substitution to avoid accidental globbing in evaled expressions
|
cannam@154
|
4709 no_glob_subst='s/\*/\\\*/g'
|
cannam@154
|
4710
|
cannam@154
|
4711 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
4712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
4713 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
|
cannam@154
|
4714
|
cannam@154
|
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
|
cannam@154
|
4716 $as_echo_n "checking how to print strings... " >&6; }
|
cannam@154
|
4717 # Test print first, because it will be a builtin if present.
|
cannam@154
|
4718 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
|
cannam@154
|
4719 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
|
cannam@154
|
4720 ECHO='print -r --'
|
cannam@154
|
4721 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
|
cannam@154
|
4722 ECHO='printf %s\n'
|
cannam@154
|
4723 else
|
cannam@154
|
4724 # Use this function as a fallback that always works.
|
cannam@154
|
4725 func_fallback_echo ()
|
cannam@154
|
4726 {
|
cannam@154
|
4727 eval 'cat <<_LTECHO_EOF
|
cannam@154
|
4728 $1
|
cannam@154
|
4729 _LTECHO_EOF'
|
cannam@154
|
4730 }
|
cannam@154
|
4731 ECHO='func_fallback_echo'
|
cannam@154
|
4732 fi
|
cannam@154
|
4733
|
cannam@154
|
4734 # func_echo_all arg...
|
cannam@154
|
4735 # Invoke $ECHO with all args, space-separated.
|
cannam@154
|
4736 func_echo_all ()
|
cannam@154
|
4737 {
|
cannam@154
|
4738 $ECHO ""
|
cannam@154
|
4739 }
|
cannam@154
|
4740
|
cannam@154
|
4741 case $ECHO in
|
cannam@154
|
4742 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
|
cannam@154
|
4743 $as_echo "printf" >&6; } ;;
|
cannam@154
|
4744 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
|
cannam@154
|
4745 $as_echo "print -r" >&6; } ;;
|
cannam@154
|
4746 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
|
cannam@154
|
4747 $as_echo "cat" >&6; } ;;
|
cannam@154
|
4748 esac
|
cannam@154
|
4749
|
cannam@154
|
4750
|
cannam@154
|
4751
|
cannam@154
|
4752
|
cannam@154
|
4753
|
cannam@154
|
4754
|
cannam@154
|
4755
|
cannam@154
|
4756
|
cannam@154
|
4757
|
cannam@154
|
4758
|
cannam@154
|
4759
|
cannam@154
|
4760
|
cannam@154
|
4761
|
cannam@154
|
4762
|
cannam@154
|
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
|
cannam@154
|
4764 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
|
cannam@154
|
4765 if ${ac_cv_path_SED+:} false; then :
|
cannam@154
|
4766 $as_echo_n "(cached) " >&6
|
cannam@154
|
4767 else
|
cannam@154
|
4768 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
|
cannam@154
|
4769 for ac_i in 1 2 3 4 5 6 7; do
|
cannam@154
|
4770 ac_script="$ac_script$as_nl$ac_script"
|
cannam@154
|
4771 done
|
cannam@154
|
4772 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
|
cannam@154
|
4773 { ac_script=; unset ac_script;}
|
cannam@154
|
4774 if test -z "$SED"; then
|
cannam@154
|
4775 ac_path_SED_found=false
|
cannam@154
|
4776 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@154
|
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4778 for as_dir in $PATH
|
cannam@154
|
4779 do
|
cannam@154
|
4780 IFS=$as_save_IFS
|
cannam@154
|
4781 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4782 for ac_prog in sed gsed; do
|
cannam@154
|
4783 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4784 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@154
|
4785 as_fn_executable_p "$ac_path_SED" || continue
|
cannam@154
|
4786 # Check for GNU ac_path_SED and select it if it is found.
|
cannam@154
|
4787 # Check for GNU $ac_path_SED
|
cannam@154
|
4788 case `"$ac_path_SED" --version 2>&1` in
|
cannam@154
|
4789 *GNU*)
|
cannam@154
|
4790 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
|
cannam@154
|
4791 *)
|
cannam@154
|
4792 ac_count=0
|
cannam@154
|
4793 $as_echo_n 0123456789 >"conftest.in"
|
cannam@154
|
4794 while :
|
cannam@154
|
4795 do
|
cannam@154
|
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@154
|
4797 mv "conftest.tmp" "conftest.in"
|
cannam@154
|
4798 cp "conftest.in" "conftest.nl"
|
cannam@154
|
4799 $as_echo '' >> "conftest.nl"
|
cannam@154
|
4800 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@154
|
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@154
|
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
cannam@154
|
4803 if test $ac_count -gt ${ac_path_SED_max-0}; then
|
cannam@154
|
4804 # Best one so far, save it but keep looking for a better one
|
cannam@154
|
4805 ac_cv_path_SED="$ac_path_SED"
|
cannam@154
|
4806 ac_path_SED_max=$ac_count
|
cannam@154
|
4807 fi
|
cannam@154
|
4808 # 10*(2^10) chars as input seems more than enough
|
cannam@154
|
4809 test $ac_count -gt 10 && break
|
cannam@154
|
4810 done
|
cannam@154
|
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@154
|
4812 esac
|
cannam@154
|
4813
|
cannam@154
|
4814 $ac_path_SED_found && break 3
|
cannam@154
|
4815 done
|
cannam@154
|
4816 done
|
cannam@154
|
4817 done
|
cannam@154
|
4818 IFS=$as_save_IFS
|
cannam@154
|
4819 if test -z "$ac_cv_path_SED"; then
|
cannam@154
|
4820 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
|
cannam@154
|
4821 fi
|
cannam@154
|
4822 else
|
cannam@154
|
4823 ac_cv_path_SED=$SED
|
cannam@154
|
4824 fi
|
cannam@154
|
4825
|
cannam@154
|
4826 fi
|
cannam@154
|
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
|
cannam@154
|
4828 $as_echo "$ac_cv_path_SED" >&6; }
|
cannam@154
|
4829 SED="$ac_cv_path_SED"
|
cannam@154
|
4830 rm -f conftest.sed
|
cannam@154
|
4831
|
cannam@154
|
4832 test -z "$SED" && SED=sed
|
cannam@154
|
4833 Xsed="$SED -e 1s/^X//"
|
cannam@154
|
4834
|
cannam@154
|
4835
|
cannam@154
|
4836
|
cannam@154
|
4837
|
cannam@154
|
4838
|
cannam@154
|
4839
|
cannam@154
|
4840
|
cannam@154
|
4841
|
cannam@154
|
4842
|
cannam@154
|
4843
|
cannam@154
|
4844
|
cannam@154
|
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
|
cannam@154
|
4846 $as_echo_n "checking for fgrep... " >&6; }
|
cannam@154
|
4847 if ${ac_cv_path_FGREP+:} false; then :
|
cannam@154
|
4848 $as_echo_n "(cached) " >&6
|
cannam@154
|
4849 else
|
cannam@154
|
4850 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
|
cannam@154
|
4851 then ac_cv_path_FGREP="$GREP -F"
|
cannam@154
|
4852 else
|
cannam@154
|
4853 if test -z "$FGREP"; then
|
cannam@154
|
4854 ac_path_FGREP_found=false
|
cannam@154
|
4855 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@154
|
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
cannam@154
|
4858 do
|
cannam@154
|
4859 IFS=$as_save_IFS
|
cannam@154
|
4860 test -z "$as_dir" && as_dir=.
|
cannam@154
|
4861 for ac_prog in fgrep; do
|
cannam@154
|
4862 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
4863 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@154
|
4864 as_fn_executable_p "$ac_path_FGREP" || continue
|
cannam@154
|
4865 # Check for GNU ac_path_FGREP and select it if it is found.
|
cannam@154
|
4866 # Check for GNU $ac_path_FGREP
|
cannam@154
|
4867 case `"$ac_path_FGREP" --version 2>&1` in
|
cannam@154
|
4868 *GNU*)
|
cannam@154
|
4869 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
|
cannam@154
|
4870 *)
|
cannam@154
|
4871 ac_count=0
|
cannam@154
|
4872 $as_echo_n 0123456789 >"conftest.in"
|
cannam@154
|
4873 while :
|
cannam@154
|
4874 do
|
cannam@154
|
4875 cat "conftest.in" "conftest.in" >"conftest.tmp"
|
cannam@154
|
4876 mv "conftest.tmp" "conftest.in"
|
cannam@154
|
4877 cp "conftest.in" "conftest.nl"
|
cannam@154
|
4878 $as_echo 'FGREP' >> "conftest.nl"
|
cannam@154
|
4879 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
cannam@154
|
4880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
cannam@154
|
4881 as_fn_arith $ac_count + 1 && ac_count=$as_val
|
cannam@154
|
4882 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
|
cannam@154
|
4883 # Best one so far, save it but keep looking for a better one
|
cannam@154
|
4884 ac_cv_path_FGREP="$ac_path_FGREP"
|
cannam@154
|
4885 ac_path_FGREP_max=$ac_count
|
cannam@154
|
4886 fi
|
cannam@154
|
4887 # 10*(2^10) chars as input seems more than enough
|
cannam@154
|
4888 test $ac_count -gt 10 && break
|
cannam@154
|
4889 done
|
cannam@154
|
4890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
cannam@154
|
4891 esac
|
cannam@154
|
4892
|
cannam@154
|
4893 $ac_path_FGREP_found && break 3
|
cannam@154
|
4894 done
|
cannam@154
|
4895 done
|
cannam@154
|
4896 done
|
cannam@154
|
4897 IFS=$as_save_IFS
|
cannam@154
|
4898 if test -z "$ac_cv_path_FGREP"; then
|
cannam@154
|
4899 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
cannam@154
|
4900 fi
|
cannam@154
|
4901 else
|
cannam@154
|
4902 ac_cv_path_FGREP=$FGREP
|
cannam@154
|
4903 fi
|
cannam@154
|
4904
|
cannam@154
|
4905 fi
|
cannam@154
|
4906 fi
|
cannam@154
|
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
|
cannam@154
|
4908 $as_echo "$ac_cv_path_FGREP" >&6; }
|
cannam@154
|
4909 FGREP="$ac_cv_path_FGREP"
|
cannam@154
|
4910
|
cannam@154
|
4911
|
cannam@154
|
4912 test -z "$GREP" && GREP=grep
|
cannam@154
|
4913
|
cannam@154
|
4914
|
cannam@154
|
4915
|
cannam@154
|
4916
|
cannam@154
|
4917
|
cannam@154
|
4918
|
cannam@154
|
4919
|
cannam@154
|
4920
|
cannam@154
|
4921
|
cannam@154
|
4922
|
cannam@154
|
4923
|
cannam@154
|
4924
|
cannam@154
|
4925
|
cannam@154
|
4926
|
cannam@154
|
4927
|
cannam@154
|
4928
|
cannam@154
|
4929
|
cannam@154
|
4930
|
cannam@154
|
4931
|
cannam@154
|
4932 # Check whether --with-gnu-ld was given.
|
cannam@154
|
4933 if test "${with_gnu_ld+set}" = set; then :
|
cannam@154
|
4934 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
|
cannam@154
|
4935 else
|
cannam@154
|
4936 with_gnu_ld=no
|
cannam@154
|
4937 fi
|
cannam@154
|
4938
|
cannam@154
|
4939 ac_prog=ld
|
cannam@154
|
4940 if test yes = "$GCC"; then
|
cannam@154
|
4941 # Check if gcc -print-prog-name=ld gives a path.
|
cannam@154
|
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
|
cannam@154
|
4943 $as_echo_n "checking for ld used by $CC... " >&6; }
|
cannam@154
|
4944 case $host in
|
cannam@154
|
4945 *-*-mingw*)
|
cannam@154
|
4946 # gcc leaves a trailing carriage return, which upsets mingw
|
cannam@154
|
4947 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
cannam@154
|
4948 *)
|
cannam@154
|
4949 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
cannam@154
|
4950 esac
|
cannam@154
|
4951 case $ac_prog in
|
cannam@154
|
4952 # Accept absolute paths.
|
cannam@154
|
4953 [\\/]* | ?:[\\/]*)
|
cannam@154
|
4954 re_direlt='/[^/][^/]*/\.\./'
|
cannam@154
|
4955 # Canonicalize the pathname of ld
|
cannam@154
|
4956 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
|
cannam@154
|
4957 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
|
cannam@154
|
4958 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
|
cannam@154
|
4959 done
|
cannam@154
|
4960 test -z "$LD" && LD=$ac_prog
|
cannam@154
|
4961 ;;
|
cannam@154
|
4962 "")
|
cannam@154
|
4963 # If it fails, then pretend we aren't using GCC.
|
cannam@154
|
4964 ac_prog=ld
|
cannam@154
|
4965 ;;
|
cannam@154
|
4966 *)
|
cannam@154
|
4967 # If it is relative, then search for the first ld in PATH.
|
cannam@154
|
4968 with_gnu_ld=unknown
|
cannam@154
|
4969 ;;
|
cannam@154
|
4970 esac
|
cannam@154
|
4971 elif test yes = "$with_gnu_ld"; then
|
cannam@154
|
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
|
cannam@154
|
4973 $as_echo_n "checking for GNU ld... " >&6; }
|
cannam@154
|
4974 else
|
cannam@154
|
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
|
cannam@154
|
4976 $as_echo_n "checking for non-GNU ld... " >&6; }
|
cannam@154
|
4977 fi
|
cannam@154
|
4978 if ${lt_cv_path_LD+:} false; then :
|
cannam@154
|
4979 $as_echo_n "(cached) " >&6
|
cannam@154
|
4980 else
|
cannam@154
|
4981 if test -z "$LD"; then
|
cannam@154
|
4982 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
4983 for ac_dir in $PATH; do
|
cannam@154
|
4984 IFS=$lt_save_ifs
|
cannam@154
|
4985 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
4986 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
cannam@154
|
4987 lt_cv_path_LD=$ac_dir/$ac_prog
|
cannam@154
|
4988 # Check to see if the program is GNU ld. I'd rather use --version,
|
cannam@154
|
4989 # but apparently some variants of GNU ld only accept -v.
|
cannam@154
|
4990 # Break only if it was the GNU/non-GNU ld that we prefer.
|
cannam@154
|
4991 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
|
cannam@154
|
4992 *GNU* | *'with BFD'*)
|
cannam@154
|
4993 test no != "$with_gnu_ld" && break
|
cannam@154
|
4994 ;;
|
cannam@154
|
4995 *)
|
cannam@154
|
4996 test yes != "$with_gnu_ld" && break
|
cannam@154
|
4997 ;;
|
cannam@154
|
4998 esac
|
cannam@154
|
4999 fi
|
cannam@154
|
5000 done
|
cannam@154
|
5001 IFS=$lt_save_ifs
|
cannam@154
|
5002 else
|
cannam@154
|
5003 lt_cv_path_LD=$LD # Let the user override the test with a path.
|
cannam@154
|
5004 fi
|
cannam@154
|
5005 fi
|
cannam@154
|
5006
|
cannam@154
|
5007 LD=$lt_cv_path_LD
|
cannam@154
|
5008 if test -n "$LD"; then
|
cannam@154
|
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
|
cannam@154
|
5010 $as_echo "$LD" >&6; }
|
cannam@154
|
5011 else
|
cannam@154
|
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5013 $as_echo "no" >&6; }
|
cannam@154
|
5014 fi
|
cannam@154
|
5015 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
|
cannam@154
|
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
|
cannam@154
|
5017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
|
cannam@154
|
5018 if ${lt_cv_prog_gnu_ld+:} false; then :
|
cannam@154
|
5019 $as_echo_n "(cached) " >&6
|
cannam@154
|
5020 else
|
cannam@154
|
5021 # I'd rather use --version here, but apparently some GNU lds only accept -v.
|
cannam@154
|
5022 case `$LD -v 2>&1 </dev/null` in
|
cannam@154
|
5023 *GNU* | *'with BFD'*)
|
cannam@154
|
5024 lt_cv_prog_gnu_ld=yes
|
cannam@154
|
5025 ;;
|
cannam@154
|
5026 *)
|
cannam@154
|
5027 lt_cv_prog_gnu_ld=no
|
cannam@154
|
5028 ;;
|
cannam@154
|
5029 esac
|
cannam@154
|
5030 fi
|
cannam@154
|
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
|
cannam@154
|
5032 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
|
cannam@154
|
5033 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@154
|
5034
|
cannam@154
|
5035
|
cannam@154
|
5036
|
cannam@154
|
5037
|
cannam@154
|
5038
|
cannam@154
|
5039
|
cannam@154
|
5040
|
cannam@154
|
5041
|
cannam@154
|
5042
|
cannam@154
|
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
|
cannam@154
|
5044 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
|
cannam@154
|
5045 if ${lt_cv_path_NM+:} false; then :
|
cannam@154
|
5046 $as_echo_n "(cached) " >&6
|
cannam@154
|
5047 else
|
cannam@154
|
5048 if test -n "$NM"; then
|
cannam@154
|
5049 # Let the user override the test.
|
cannam@154
|
5050 lt_cv_path_NM=$NM
|
cannam@154
|
5051 else
|
cannam@154
|
5052 lt_nm_to_check=${ac_tool_prefix}nm
|
cannam@154
|
5053 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
|
cannam@154
|
5054 lt_nm_to_check="$lt_nm_to_check nm"
|
cannam@154
|
5055 fi
|
cannam@154
|
5056 for lt_tmp_nm in $lt_nm_to_check; do
|
cannam@154
|
5057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5058 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
|
cannam@154
|
5059 IFS=$lt_save_ifs
|
cannam@154
|
5060 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
5061 tmp_nm=$ac_dir/$lt_tmp_nm
|
cannam@154
|
5062 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
|
cannam@154
|
5063 # Check to see if the nm accepts a BSD-compat flag.
|
cannam@154
|
5064 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
|
cannam@154
|
5065 # nm: unknown option "B" ignored
|
cannam@154
|
5066 # Tru64's nm complains that /dev/null is an invalid object file
|
cannam@154
|
5067 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
|
cannam@154
|
5068 case $build_os in
|
cannam@154
|
5069 mingw*) lt_bad_file=conftest.nm/nofile ;;
|
cannam@154
|
5070 *) lt_bad_file=/dev/null ;;
|
cannam@154
|
5071 esac
|
cannam@154
|
5072 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
|
cannam@154
|
5073 *$lt_bad_file* | *'Invalid file or object type'*)
|
cannam@154
|
5074 lt_cv_path_NM="$tmp_nm -B"
|
cannam@154
|
5075 break 2
|
cannam@154
|
5076 ;;
|
cannam@154
|
5077 *)
|
cannam@154
|
5078 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
|
cannam@154
|
5079 */dev/null*)
|
cannam@154
|
5080 lt_cv_path_NM="$tmp_nm -p"
|
cannam@154
|
5081 break 2
|
cannam@154
|
5082 ;;
|
cannam@154
|
5083 *)
|
cannam@154
|
5084 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
|
cannam@154
|
5085 continue # so that we can try to find one that supports BSD flags
|
cannam@154
|
5086 ;;
|
cannam@154
|
5087 esac
|
cannam@154
|
5088 ;;
|
cannam@154
|
5089 esac
|
cannam@154
|
5090 fi
|
cannam@154
|
5091 done
|
cannam@154
|
5092 IFS=$lt_save_ifs
|
cannam@154
|
5093 done
|
cannam@154
|
5094 : ${lt_cv_path_NM=no}
|
cannam@154
|
5095 fi
|
cannam@154
|
5096 fi
|
cannam@154
|
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
|
cannam@154
|
5098 $as_echo "$lt_cv_path_NM" >&6; }
|
cannam@154
|
5099 if test no != "$lt_cv_path_NM"; then
|
cannam@154
|
5100 NM=$lt_cv_path_NM
|
cannam@154
|
5101 else
|
cannam@154
|
5102 # Didn't find any BSD compatible name lister, look for dumpbin.
|
cannam@154
|
5103 if test -n "$DUMPBIN"; then :
|
cannam@154
|
5104 # Let the user override the test.
|
cannam@154
|
5105 else
|
cannam@154
|
5106 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
5107 for ac_prog in dumpbin "link -dump"
|
cannam@154
|
5108 do
|
cannam@154
|
5109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@154
|
5110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@154
|
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5112 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5113 if ${ac_cv_prog_DUMPBIN+:} false; then :
|
cannam@154
|
5114 $as_echo_n "(cached) " >&6
|
cannam@154
|
5115 else
|
cannam@154
|
5116 if test -n "$DUMPBIN"; then
|
cannam@154
|
5117 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
|
cannam@154
|
5118 else
|
cannam@154
|
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5120 for as_dir in $PATH
|
cannam@154
|
5121 do
|
cannam@154
|
5122 IFS=$as_save_IFS
|
cannam@154
|
5123 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5124 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5126 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
|
cannam@154
|
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5128 break 2
|
cannam@154
|
5129 fi
|
cannam@154
|
5130 done
|
cannam@154
|
5131 done
|
cannam@154
|
5132 IFS=$as_save_IFS
|
cannam@154
|
5133
|
cannam@154
|
5134 fi
|
cannam@154
|
5135 fi
|
cannam@154
|
5136 DUMPBIN=$ac_cv_prog_DUMPBIN
|
cannam@154
|
5137 if test -n "$DUMPBIN"; then
|
cannam@154
|
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
|
cannam@154
|
5139 $as_echo "$DUMPBIN" >&6; }
|
cannam@154
|
5140 else
|
cannam@154
|
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5142 $as_echo "no" >&6; }
|
cannam@154
|
5143 fi
|
cannam@154
|
5144
|
cannam@154
|
5145
|
cannam@154
|
5146 test -n "$DUMPBIN" && break
|
cannam@154
|
5147 done
|
cannam@154
|
5148 fi
|
cannam@154
|
5149 if test -z "$DUMPBIN"; then
|
cannam@154
|
5150 ac_ct_DUMPBIN=$DUMPBIN
|
cannam@154
|
5151 for ac_prog in dumpbin "link -dump"
|
cannam@154
|
5152 do
|
cannam@154
|
5153 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@154
|
5154 set dummy $ac_prog; ac_word=$2
|
cannam@154
|
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5156 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5157 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
|
cannam@154
|
5158 $as_echo_n "(cached) " >&6
|
cannam@154
|
5159 else
|
cannam@154
|
5160 if test -n "$ac_ct_DUMPBIN"; then
|
cannam@154
|
5161 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
|
cannam@154
|
5162 else
|
cannam@154
|
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5164 for as_dir in $PATH
|
cannam@154
|
5165 do
|
cannam@154
|
5166 IFS=$as_save_IFS
|
cannam@154
|
5167 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5168 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5170 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
|
cannam@154
|
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5172 break 2
|
cannam@154
|
5173 fi
|
cannam@154
|
5174 done
|
cannam@154
|
5175 done
|
cannam@154
|
5176 IFS=$as_save_IFS
|
cannam@154
|
5177
|
cannam@154
|
5178 fi
|
cannam@154
|
5179 fi
|
cannam@154
|
5180 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
|
cannam@154
|
5181 if test -n "$ac_ct_DUMPBIN"; then
|
cannam@154
|
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
|
cannam@154
|
5183 $as_echo "$ac_ct_DUMPBIN" >&6; }
|
cannam@154
|
5184 else
|
cannam@154
|
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5186 $as_echo "no" >&6; }
|
cannam@154
|
5187 fi
|
cannam@154
|
5188
|
cannam@154
|
5189
|
cannam@154
|
5190 test -n "$ac_ct_DUMPBIN" && break
|
cannam@154
|
5191 done
|
cannam@154
|
5192
|
cannam@154
|
5193 if test "x$ac_ct_DUMPBIN" = x; then
|
cannam@154
|
5194 DUMPBIN=":"
|
cannam@154
|
5195 else
|
cannam@154
|
5196 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
5197 yes:)
|
cannam@154
|
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
5199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
5200 ac_tool_warned=yes ;;
|
cannam@154
|
5201 esac
|
cannam@154
|
5202 DUMPBIN=$ac_ct_DUMPBIN
|
cannam@154
|
5203 fi
|
cannam@154
|
5204 fi
|
cannam@154
|
5205
|
cannam@154
|
5206 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
|
cannam@154
|
5207 *COFF*)
|
cannam@154
|
5208 DUMPBIN="$DUMPBIN -symbols -headers"
|
cannam@154
|
5209 ;;
|
cannam@154
|
5210 *)
|
cannam@154
|
5211 DUMPBIN=:
|
cannam@154
|
5212 ;;
|
cannam@154
|
5213 esac
|
cannam@154
|
5214 fi
|
cannam@154
|
5215
|
cannam@154
|
5216 if test : != "$DUMPBIN"; then
|
cannam@154
|
5217 NM=$DUMPBIN
|
cannam@154
|
5218 fi
|
cannam@154
|
5219 fi
|
cannam@154
|
5220 test -z "$NM" && NM=nm
|
cannam@154
|
5221
|
cannam@154
|
5222
|
cannam@154
|
5223
|
cannam@154
|
5224
|
cannam@154
|
5225
|
cannam@154
|
5226
|
cannam@154
|
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
|
cannam@154
|
5228 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
|
cannam@154
|
5229 if ${lt_cv_nm_interface+:} false; then :
|
cannam@154
|
5230 $as_echo_n "(cached) " >&6
|
cannam@154
|
5231 else
|
cannam@154
|
5232 lt_cv_nm_interface="BSD nm"
|
cannam@154
|
5233 echo "int some_variable = 0;" > conftest.$ac_ext
|
cannam@154
|
5234 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
|
cannam@154
|
5235 (eval "$ac_compile" 2>conftest.err)
|
cannam@154
|
5236 cat conftest.err >&5
|
cannam@154
|
5237 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
|
cannam@154
|
5238 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
|
cannam@154
|
5239 cat conftest.err >&5
|
cannam@154
|
5240 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
|
cannam@154
|
5241 cat conftest.out >&5
|
cannam@154
|
5242 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
|
cannam@154
|
5243 lt_cv_nm_interface="MS dumpbin"
|
cannam@154
|
5244 fi
|
cannam@154
|
5245 rm -f conftest*
|
cannam@154
|
5246 fi
|
cannam@154
|
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
|
cannam@154
|
5248 $as_echo "$lt_cv_nm_interface" >&6; }
|
cannam@154
|
5249
|
cannam@154
|
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
|
cannam@154
|
5251 $as_echo_n "checking whether ln -s works... " >&6; }
|
cannam@154
|
5252 LN_S=$as_ln_s
|
cannam@154
|
5253 if test "$LN_S" = "ln -s"; then
|
cannam@154
|
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
5255 $as_echo "yes" >&6; }
|
cannam@154
|
5256 else
|
cannam@154
|
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
|
cannam@154
|
5258 $as_echo "no, using $LN_S" >&6; }
|
cannam@154
|
5259 fi
|
cannam@154
|
5260
|
cannam@154
|
5261 # find the maximum length of command line arguments
|
cannam@154
|
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
|
cannam@154
|
5263 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
|
cannam@154
|
5264 if ${lt_cv_sys_max_cmd_len+:} false; then :
|
cannam@154
|
5265 $as_echo_n "(cached) " >&6
|
cannam@154
|
5266 else
|
cannam@154
|
5267 i=0
|
cannam@154
|
5268 teststring=ABCD
|
cannam@154
|
5269
|
cannam@154
|
5270 case $build_os in
|
cannam@154
|
5271 msdosdjgpp*)
|
cannam@154
|
5272 # On DJGPP, this test can blow up pretty badly due to problems in libc
|
cannam@154
|
5273 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
cannam@154
|
5274 # during glob expansion). Even if it were fixed, the result of this
|
cannam@154
|
5275 # check would be larger than it should be.
|
cannam@154
|
5276 lt_cv_sys_max_cmd_len=12288; # 12K is about right
|
cannam@154
|
5277 ;;
|
cannam@154
|
5278
|
cannam@154
|
5279 gnu*)
|
cannam@154
|
5280 # Under GNU Hurd, this test is not required because there is
|
cannam@154
|
5281 # no limit to the length of command line arguments.
|
cannam@154
|
5282 # Libtool will interpret -1 as no limit whatsoever
|
cannam@154
|
5283 lt_cv_sys_max_cmd_len=-1;
|
cannam@154
|
5284 ;;
|
cannam@154
|
5285
|
cannam@154
|
5286 cygwin* | mingw* | cegcc*)
|
cannam@154
|
5287 # On Win9x/ME, this test blows up -- it succeeds, but takes
|
cannam@154
|
5288 # about 5 minutes as the teststring grows exponentially.
|
cannam@154
|
5289 # Worse, since 9x/ME are not pre-emptively multitasking,
|
cannam@154
|
5290 # you end up with a "frozen" computer, even though with patience
|
cannam@154
|
5291 # the test eventually succeeds (with a max line length of 256k).
|
cannam@154
|
5292 # Instead, let's just punt: use the minimum linelength reported by
|
cannam@154
|
5293 # all of the supported platforms: 8192 (on NT/2K/XP).
|
cannam@154
|
5294 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
5295 ;;
|
cannam@154
|
5296
|
cannam@154
|
5297 mint*)
|
cannam@154
|
5298 # On MiNT this can take a long time and run out of memory.
|
cannam@154
|
5299 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
5300 ;;
|
cannam@154
|
5301
|
cannam@154
|
5302 amigaos*)
|
cannam@154
|
5303 # On AmigaOS with pdksh, this test takes hours, literally.
|
cannam@154
|
5304 # So we just punt and use a minimum line length of 8192.
|
cannam@154
|
5305 lt_cv_sys_max_cmd_len=8192;
|
cannam@154
|
5306 ;;
|
cannam@154
|
5307
|
cannam@154
|
5308 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
|
cannam@154
|
5309 # This has been around since 386BSD, at least. Likely further.
|
cannam@154
|
5310 if test -x /sbin/sysctl; then
|
cannam@154
|
5311 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
|
cannam@154
|
5312 elif test -x /usr/sbin/sysctl; then
|
cannam@154
|
5313 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
cannam@154
|
5314 else
|
cannam@154
|
5315 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
|
cannam@154
|
5316 fi
|
cannam@154
|
5317 # And add a safety zone
|
cannam@154
|
5318 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@154
|
5319 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@154
|
5320 ;;
|
cannam@154
|
5321
|
cannam@154
|
5322 interix*)
|
cannam@154
|
5323 # We know the value 262144 and hardcode it with a safety zone (like BSD)
|
cannam@154
|
5324 lt_cv_sys_max_cmd_len=196608
|
cannam@154
|
5325 ;;
|
cannam@154
|
5326
|
cannam@154
|
5327 os2*)
|
cannam@154
|
5328 # The test takes a long time on OS/2.
|
cannam@154
|
5329 lt_cv_sys_max_cmd_len=8192
|
cannam@154
|
5330 ;;
|
cannam@154
|
5331
|
cannam@154
|
5332 osf*)
|
cannam@154
|
5333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
|
cannam@154
|
5334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
|
cannam@154
|
5335 # nice to cause kernel panics so lets avoid the loop below.
|
cannam@154
|
5336 # First set a reasonable default.
|
cannam@154
|
5337 lt_cv_sys_max_cmd_len=16384
|
cannam@154
|
5338 #
|
cannam@154
|
5339 if test -x /sbin/sysconfig; then
|
cannam@154
|
5340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
|
cannam@154
|
5341 *1*) lt_cv_sys_max_cmd_len=-1 ;;
|
cannam@154
|
5342 esac
|
cannam@154
|
5343 fi
|
cannam@154
|
5344 ;;
|
cannam@154
|
5345 sco3.2v5*)
|
cannam@154
|
5346 lt_cv_sys_max_cmd_len=102400
|
cannam@154
|
5347 ;;
|
cannam@154
|
5348 sysv5* | sco5v6* | sysv4.2uw2*)
|
cannam@154
|
5349 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
|
cannam@154
|
5350 if test -n "$kargmax"; then
|
cannam@154
|
5351 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
|
cannam@154
|
5352 else
|
cannam@154
|
5353 lt_cv_sys_max_cmd_len=32768
|
cannam@154
|
5354 fi
|
cannam@154
|
5355 ;;
|
cannam@154
|
5356 *)
|
cannam@154
|
5357 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
|
cannam@154
|
5358 if test -n "$lt_cv_sys_max_cmd_len" && \
|
cannam@154
|
5359 test undefined != "$lt_cv_sys_max_cmd_len"; then
|
cannam@154
|
5360 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
cannam@154
|
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
|
cannam@154
|
5362 else
|
cannam@154
|
5363 # Make teststring a little bigger before we do anything with it.
|
cannam@154
|
5364 # a 1K string should be a reasonable start.
|
cannam@154
|
5365 for i in 1 2 3 4 5 6 7 8; do
|
cannam@154
|
5366 teststring=$teststring$teststring
|
cannam@154
|
5367 done
|
cannam@154
|
5368 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
|
cannam@154
|
5369 # If test is not a shell built-in, we'll probably end up computing a
|
cannam@154
|
5370 # maximum length that is only half of the actual maximum length, but
|
cannam@154
|
5371 # we can't tell.
|
cannam@154
|
5372 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
|
cannam@154
|
5373 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
|
cannam@154
|
5374 test 17 != "$i" # 1/2 MB should be enough
|
cannam@154
|
5375 do
|
cannam@154
|
5376 i=`expr $i + 1`
|
cannam@154
|
5377 teststring=$teststring$teststring
|
cannam@154
|
5378 done
|
cannam@154
|
5379 # Only check the string length outside the loop.
|
cannam@154
|
5380 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
|
cannam@154
|
5381 teststring=
|
cannam@154
|
5382 # Add a significant safety factor because C++ compilers can tack on
|
cannam@154
|
5383 # massive amounts of additional arguments before passing them to the
|
cannam@154
|
5384 # linker. It appears as though 1/2 is a usable value.
|
cannam@154
|
5385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
|
cannam@154
|
5386 fi
|
cannam@154
|
5387 ;;
|
cannam@154
|
5388 esac
|
cannam@154
|
5389
|
cannam@154
|
5390 fi
|
cannam@154
|
5391
|
cannam@154
|
5392 if test -n "$lt_cv_sys_max_cmd_len"; then
|
cannam@154
|
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
|
cannam@154
|
5394 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
|
cannam@154
|
5395 else
|
cannam@154
|
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
|
cannam@154
|
5397 $as_echo "none" >&6; }
|
cannam@154
|
5398 fi
|
cannam@154
|
5399 max_cmd_len=$lt_cv_sys_max_cmd_len
|
cannam@154
|
5400
|
cannam@154
|
5401
|
cannam@154
|
5402
|
cannam@154
|
5403
|
cannam@154
|
5404
|
cannam@154
|
5405
|
cannam@154
|
5406 : ${CP="cp -f"}
|
cannam@154
|
5407 : ${MV="mv -f"}
|
cannam@154
|
5408 : ${RM="rm -f"}
|
cannam@154
|
5409
|
cannam@154
|
5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
cannam@154
|
5411 lt_unset=unset
|
cannam@154
|
5412 else
|
cannam@154
|
5413 lt_unset=false
|
cannam@154
|
5414 fi
|
cannam@154
|
5415
|
cannam@154
|
5416
|
cannam@154
|
5417
|
cannam@154
|
5418
|
cannam@154
|
5419
|
cannam@154
|
5420 # test EBCDIC or ASCII
|
cannam@154
|
5421 case `echo X|tr X '\101'` in
|
cannam@154
|
5422 A) # ASCII based system
|
cannam@154
|
5423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
|
cannam@154
|
5424 lt_SP2NL='tr \040 \012'
|
cannam@154
|
5425 lt_NL2SP='tr \015\012 \040\040'
|
cannam@154
|
5426 ;;
|
cannam@154
|
5427 *) # EBCDIC based system
|
cannam@154
|
5428 lt_SP2NL='tr \100 \n'
|
cannam@154
|
5429 lt_NL2SP='tr \r\n \100\100'
|
cannam@154
|
5430 ;;
|
cannam@154
|
5431 esac
|
cannam@154
|
5432
|
cannam@154
|
5433
|
cannam@154
|
5434
|
cannam@154
|
5435
|
cannam@154
|
5436
|
cannam@154
|
5437
|
cannam@154
|
5438
|
cannam@154
|
5439
|
cannam@154
|
5440
|
cannam@154
|
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
|
cannam@154
|
5442 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
|
cannam@154
|
5443 if ${lt_cv_to_host_file_cmd+:} false; then :
|
cannam@154
|
5444 $as_echo_n "(cached) " >&6
|
cannam@154
|
5445 else
|
cannam@154
|
5446 case $host in
|
cannam@154
|
5447 *-*-mingw* )
|
cannam@154
|
5448 case $build in
|
cannam@154
|
5449 *-*-mingw* ) # actually msys
|
cannam@154
|
5450 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
|
cannam@154
|
5451 ;;
|
cannam@154
|
5452 *-*-cygwin* )
|
cannam@154
|
5453 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
|
cannam@154
|
5454 ;;
|
cannam@154
|
5455 * ) # otherwise, assume *nix
|
cannam@154
|
5456 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
|
cannam@154
|
5457 ;;
|
cannam@154
|
5458 esac
|
cannam@154
|
5459 ;;
|
cannam@154
|
5460 *-*-cygwin* )
|
cannam@154
|
5461 case $build in
|
cannam@154
|
5462 *-*-mingw* ) # actually msys
|
cannam@154
|
5463 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
|
cannam@154
|
5464 ;;
|
cannam@154
|
5465 *-*-cygwin* )
|
cannam@154
|
5466 lt_cv_to_host_file_cmd=func_convert_file_noop
|
cannam@154
|
5467 ;;
|
cannam@154
|
5468 * ) # otherwise, assume *nix
|
cannam@154
|
5469 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
|
cannam@154
|
5470 ;;
|
cannam@154
|
5471 esac
|
cannam@154
|
5472 ;;
|
cannam@154
|
5473 * ) # unhandled hosts (and "normal" native builds)
|
cannam@154
|
5474 lt_cv_to_host_file_cmd=func_convert_file_noop
|
cannam@154
|
5475 ;;
|
cannam@154
|
5476 esac
|
cannam@154
|
5477
|
cannam@154
|
5478 fi
|
cannam@154
|
5479
|
cannam@154
|
5480 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
cannam@154
|
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
|
cannam@154
|
5482 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
|
cannam@154
|
5483
|
cannam@154
|
5484
|
cannam@154
|
5485
|
cannam@154
|
5486
|
cannam@154
|
5487
|
cannam@154
|
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
|
cannam@154
|
5489 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
|
cannam@154
|
5490 if ${lt_cv_to_tool_file_cmd+:} false; then :
|
cannam@154
|
5491 $as_echo_n "(cached) " >&6
|
cannam@154
|
5492 else
|
cannam@154
|
5493 #assume ordinary cross tools, or native build.
|
cannam@154
|
5494 lt_cv_to_tool_file_cmd=func_convert_file_noop
|
cannam@154
|
5495 case $host in
|
cannam@154
|
5496 *-*-mingw* )
|
cannam@154
|
5497 case $build in
|
cannam@154
|
5498 *-*-mingw* ) # actually msys
|
cannam@154
|
5499 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
|
cannam@154
|
5500 ;;
|
cannam@154
|
5501 esac
|
cannam@154
|
5502 ;;
|
cannam@154
|
5503 esac
|
cannam@154
|
5504
|
cannam@154
|
5505 fi
|
cannam@154
|
5506
|
cannam@154
|
5507 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
cannam@154
|
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
|
cannam@154
|
5509 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
|
cannam@154
|
5510
|
cannam@154
|
5511
|
cannam@154
|
5512
|
cannam@154
|
5513
|
cannam@154
|
5514
|
cannam@154
|
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
|
cannam@154
|
5516 $as_echo_n "checking for $LD option to reload object files... " >&6; }
|
cannam@154
|
5517 if ${lt_cv_ld_reload_flag+:} false; then :
|
cannam@154
|
5518 $as_echo_n "(cached) " >&6
|
cannam@154
|
5519 else
|
cannam@154
|
5520 lt_cv_ld_reload_flag='-r'
|
cannam@154
|
5521 fi
|
cannam@154
|
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
|
cannam@154
|
5523 $as_echo "$lt_cv_ld_reload_flag" >&6; }
|
cannam@154
|
5524 reload_flag=$lt_cv_ld_reload_flag
|
cannam@154
|
5525 case $reload_flag in
|
cannam@154
|
5526 "" | " "*) ;;
|
cannam@154
|
5527 *) reload_flag=" $reload_flag" ;;
|
cannam@154
|
5528 esac
|
cannam@154
|
5529 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@154
|
5530 case $host_os in
|
cannam@154
|
5531 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
5532 if test yes != "$GCC"; then
|
cannam@154
|
5533 reload_cmds=false
|
cannam@154
|
5534 fi
|
cannam@154
|
5535 ;;
|
cannam@154
|
5536 darwin*)
|
cannam@154
|
5537 if test yes = "$GCC"; then
|
cannam@154
|
5538 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
|
cannam@154
|
5539 else
|
cannam@154
|
5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
|
cannam@154
|
5541 fi
|
cannam@154
|
5542 ;;
|
cannam@154
|
5543 esac
|
cannam@154
|
5544
|
cannam@154
|
5545
|
cannam@154
|
5546
|
cannam@154
|
5547
|
cannam@154
|
5548
|
cannam@154
|
5549
|
cannam@154
|
5550
|
cannam@154
|
5551
|
cannam@154
|
5552
|
cannam@154
|
5553 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
5554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
|
cannam@154
|
5555 set dummy ${ac_tool_prefix}objdump; ac_word=$2
|
cannam@154
|
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5557 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5558 if ${ac_cv_prog_OBJDUMP+:} false; then :
|
cannam@154
|
5559 $as_echo_n "(cached) " >&6
|
cannam@154
|
5560 else
|
cannam@154
|
5561 if test -n "$OBJDUMP"; then
|
cannam@154
|
5562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
|
cannam@154
|
5563 else
|
cannam@154
|
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5565 for as_dir in $PATH
|
cannam@154
|
5566 do
|
cannam@154
|
5567 IFS=$as_save_IFS
|
cannam@154
|
5568 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5569 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
|
cannam@154
|
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5573 break 2
|
cannam@154
|
5574 fi
|
cannam@154
|
5575 done
|
cannam@154
|
5576 done
|
cannam@154
|
5577 IFS=$as_save_IFS
|
cannam@154
|
5578
|
cannam@154
|
5579 fi
|
cannam@154
|
5580 fi
|
cannam@154
|
5581 OBJDUMP=$ac_cv_prog_OBJDUMP
|
cannam@154
|
5582 if test -n "$OBJDUMP"; then
|
cannam@154
|
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
|
cannam@154
|
5584 $as_echo "$OBJDUMP" >&6; }
|
cannam@154
|
5585 else
|
cannam@154
|
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5587 $as_echo "no" >&6; }
|
cannam@154
|
5588 fi
|
cannam@154
|
5589
|
cannam@154
|
5590
|
cannam@154
|
5591 fi
|
cannam@154
|
5592 if test -z "$ac_cv_prog_OBJDUMP"; then
|
cannam@154
|
5593 ac_ct_OBJDUMP=$OBJDUMP
|
cannam@154
|
5594 # Extract the first word of "objdump", so it can be a program name with args.
|
cannam@154
|
5595 set dummy objdump; ac_word=$2
|
cannam@154
|
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5597 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5598 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
|
cannam@154
|
5599 $as_echo_n "(cached) " >&6
|
cannam@154
|
5600 else
|
cannam@154
|
5601 if test -n "$ac_ct_OBJDUMP"; then
|
cannam@154
|
5602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
|
cannam@154
|
5603 else
|
cannam@154
|
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5605 for as_dir in $PATH
|
cannam@154
|
5606 do
|
cannam@154
|
5607 IFS=$as_save_IFS
|
cannam@154
|
5608 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5609 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
|
cannam@154
|
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5613 break 2
|
cannam@154
|
5614 fi
|
cannam@154
|
5615 done
|
cannam@154
|
5616 done
|
cannam@154
|
5617 IFS=$as_save_IFS
|
cannam@154
|
5618
|
cannam@154
|
5619 fi
|
cannam@154
|
5620 fi
|
cannam@154
|
5621 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
|
cannam@154
|
5622 if test -n "$ac_ct_OBJDUMP"; then
|
cannam@154
|
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
|
cannam@154
|
5624 $as_echo "$ac_ct_OBJDUMP" >&6; }
|
cannam@154
|
5625 else
|
cannam@154
|
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5627 $as_echo "no" >&6; }
|
cannam@154
|
5628 fi
|
cannam@154
|
5629
|
cannam@154
|
5630 if test "x$ac_ct_OBJDUMP" = x; then
|
cannam@154
|
5631 OBJDUMP="false"
|
cannam@154
|
5632 else
|
cannam@154
|
5633 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
5634 yes:)
|
cannam@154
|
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
5636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
5637 ac_tool_warned=yes ;;
|
cannam@154
|
5638 esac
|
cannam@154
|
5639 OBJDUMP=$ac_ct_OBJDUMP
|
cannam@154
|
5640 fi
|
cannam@154
|
5641 else
|
cannam@154
|
5642 OBJDUMP="$ac_cv_prog_OBJDUMP"
|
cannam@154
|
5643 fi
|
cannam@154
|
5644
|
cannam@154
|
5645 test -z "$OBJDUMP" && OBJDUMP=objdump
|
cannam@154
|
5646
|
cannam@154
|
5647
|
cannam@154
|
5648
|
cannam@154
|
5649
|
cannam@154
|
5650
|
cannam@154
|
5651
|
cannam@154
|
5652
|
cannam@154
|
5653
|
cannam@154
|
5654
|
cannam@154
|
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
|
cannam@154
|
5656 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
|
cannam@154
|
5657 if ${lt_cv_deplibs_check_method+:} false; then :
|
cannam@154
|
5658 $as_echo_n "(cached) " >&6
|
cannam@154
|
5659 else
|
cannam@154
|
5660 lt_cv_file_magic_cmd='$MAGIC_CMD'
|
cannam@154
|
5661 lt_cv_file_magic_test_file=
|
cannam@154
|
5662 lt_cv_deplibs_check_method='unknown'
|
cannam@154
|
5663 # Need to set the preceding variable on all platforms that support
|
cannam@154
|
5664 # interlibrary dependencies.
|
cannam@154
|
5665 # 'none' -- dependencies not supported.
|
cannam@154
|
5666 # 'unknown' -- same as none, but documents that we really don't know.
|
cannam@154
|
5667 # 'pass_all' -- all dependencies passed with no checks.
|
cannam@154
|
5668 # 'test_compile' -- check by making test program.
|
cannam@154
|
5669 # 'file_magic [[regex]]' -- check by looking for files in library path
|
cannam@154
|
5670 # that responds to the $file_magic_cmd with a given extended regex.
|
cannam@154
|
5671 # If you have 'file' or equivalent on your system and you're not sure
|
cannam@154
|
5672 # whether 'pass_all' will *always* work, you probably want this one.
|
cannam@154
|
5673
|
cannam@154
|
5674 case $host_os in
|
cannam@154
|
5675 aix[4-9]*)
|
cannam@154
|
5676 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5677 ;;
|
cannam@154
|
5678
|
cannam@154
|
5679 beos*)
|
cannam@154
|
5680 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5681 ;;
|
cannam@154
|
5682
|
cannam@154
|
5683 bsdi[45]*)
|
cannam@154
|
5684 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
|
cannam@154
|
5685 lt_cv_file_magic_cmd='/usr/bin/file -L'
|
cannam@154
|
5686 lt_cv_file_magic_test_file=/shlib/libc.so
|
cannam@154
|
5687 ;;
|
cannam@154
|
5688
|
cannam@154
|
5689 cygwin*)
|
cannam@154
|
5690 # func_win32_libid is a shell function defined in ltmain.sh
|
cannam@154
|
5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@154
|
5692 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@154
|
5693 ;;
|
cannam@154
|
5694
|
cannam@154
|
5695 mingw* | pw32*)
|
cannam@154
|
5696 # Base MSYS/MinGW do not provide the 'file' command needed by
|
cannam@154
|
5697 # func_win32_libid shell function, so use a weaker test based on 'objdump',
|
cannam@154
|
5698 # unless we find 'file', for example because we are cross-compiling.
|
cannam@154
|
5699 if ( file / ) >/dev/null 2>&1; then
|
cannam@154
|
5700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
|
cannam@154
|
5701 lt_cv_file_magic_cmd='func_win32_libid'
|
cannam@154
|
5702 else
|
cannam@154
|
5703 # Keep this pattern in sync with the one in func_win32_libid.
|
cannam@154
|
5704 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
|
cannam@154
|
5705 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@154
|
5706 fi
|
cannam@154
|
5707 ;;
|
cannam@154
|
5708
|
cannam@154
|
5709 cegcc*)
|
cannam@154
|
5710 # use the weaker test based on 'objdump'. See mingw*.
|
cannam@154
|
5711 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
|
cannam@154
|
5712 lt_cv_file_magic_cmd='$OBJDUMP -f'
|
cannam@154
|
5713 ;;
|
cannam@154
|
5714
|
cannam@154
|
5715 darwin* | rhapsody*)
|
cannam@154
|
5716 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5717 ;;
|
cannam@154
|
5718
|
cannam@154
|
5719 freebsd* | dragonfly*)
|
cannam@154
|
5720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@154
|
5721 case $host_cpu in
|
cannam@154
|
5722 i*86 )
|
cannam@154
|
5723 # Not sure whether the presence of OpenBSD here was a mistake.
|
cannam@154
|
5724 # Let's accept both of them until this is cleared up.
|
cannam@154
|
5725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
|
cannam@154
|
5726 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
5727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
cannam@154
|
5728 ;;
|
cannam@154
|
5729 esac
|
cannam@154
|
5730 else
|
cannam@154
|
5731 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5732 fi
|
cannam@154
|
5733 ;;
|
cannam@154
|
5734
|
cannam@154
|
5735 haiku*)
|
cannam@154
|
5736 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5737 ;;
|
cannam@154
|
5738
|
cannam@154
|
5739 hpux10.20* | hpux11*)
|
cannam@154
|
5740 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
5741 case $host_cpu in
|
cannam@154
|
5742 ia64*)
|
cannam@154
|
5743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
|
cannam@154
|
5744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
|
cannam@154
|
5745 ;;
|
cannam@154
|
5746 hppa*64*)
|
cannam@154
|
5747 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]'
|
cannam@154
|
5748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
|
cannam@154
|
5749 ;;
|
cannam@154
|
5750 *)
|
cannam@154
|
5751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
|
cannam@154
|
5752 lt_cv_file_magic_test_file=/usr/lib/libc.sl
|
cannam@154
|
5753 ;;
|
cannam@154
|
5754 esac
|
cannam@154
|
5755 ;;
|
cannam@154
|
5756
|
cannam@154
|
5757 interix[3-9]*)
|
cannam@154
|
5758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
|
cannam@154
|
5759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
|
cannam@154
|
5760 ;;
|
cannam@154
|
5761
|
cannam@154
|
5762 irix5* | irix6* | nonstopux*)
|
cannam@154
|
5763 case $LD in
|
cannam@154
|
5764 *-32|*"-32 ") libmagic=32-bit;;
|
cannam@154
|
5765 *-n32|*"-n32 ") libmagic=N32;;
|
cannam@154
|
5766 *-64|*"-64 ") libmagic=64-bit;;
|
cannam@154
|
5767 *) libmagic=never-match;;
|
cannam@154
|
5768 esac
|
cannam@154
|
5769 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5770 ;;
|
cannam@154
|
5771
|
cannam@154
|
5772 # This must be glibc/ELF.
|
cannam@154
|
5773 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
5774 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5775 ;;
|
cannam@154
|
5776
|
cannam@154
|
5777 netbsd*)
|
cannam@154
|
5778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
|
cannam@154
|
5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@154
|
5780 else
|
cannam@154
|
5781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
|
cannam@154
|
5782 fi
|
cannam@154
|
5783 ;;
|
cannam@154
|
5784
|
cannam@154
|
5785 newos6*)
|
cannam@154
|
5786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
|
cannam@154
|
5787 lt_cv_file_magic_cmd=/usr/bin/file
|
cannam@154
|
5788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
|
cannam@154
|
5789 ;;
|
cannam@154
|
5790
|
cannam@154
|
5791 *nto* | *qnx*)
|
cannam@154
|
5792 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5793 ;;
|
cannam@154
|
5794
|
cannam@154
|
5795 openbsd* | bitrig*)
|
cannam@154
|
5796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
5797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
|
cannam@154
|
5798 else
|
cannam@154
|
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
|
cannam@154
|
5800 fi
|
cannam@154
|
5801 ;;
|
cannam@154
|
5802
|
cannam@154
|
5803 osf3* | osf4* | osf5*)
|
cannam@154
|
5804 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5805 ;;
|
cannam@154
|
5806
|
cannam@154
|
5807 rdos*)
|
cannam@154
|
5808 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5809 ;;
|
cannam@154
|
5810
|
cannam@154
|
5811 solaris*)
|
cannam@154
|
5812 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5813 ;;
|
cannam@154
|
5814
|
cannam@154
|
5815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@154
|
5816 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5817 ;;
|
cannam@154
|
5818
|
cannam@154
|
5819 sysv4 | sysv4.3*)
|
cannam@154
|
5820 case $host_vendor in
|
cannam@154
|
5821 motorola)
|
cannam@154
|
5822 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]'
|
cannam@154
|
5823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
|
cannam@154
|
5824 ;;
|
cannam@154
|
5825 ncr)
|
cannam@154
|
5826 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5827 ;;
|
cannam@154
|
5828 sequent)
|
cannam@154
|
5829 lt_cv_file_magic_cmd='/bin/file'
|
cannam@154
|
5830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
|
cannam@154
|
5831 ;;
|
cannam@154
|
5832 sni)
|
cannam@154
|
5833 lt_cv_file_magic_cmd='/bin/file'
|
cannam@154
|
5834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
|
cannam@154
|
5835 lt_cv_file_magic_test_file=/lib/libc.so
|
cannam@154
|
5836 ;;
|
cannam@154
|
5837 siemens)
|
cannam@154
|
5838 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5839 ;;
|
cannam@154
|
5840 pc)
|
cannam@154
|
5841 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5842 ;;
|
cannam@154
|
5843 esac
|
cannam@154
|
5844 ;;
|
cannam@154
|
5845
|
cannam@154
|
5846 tpf*)
|
cannam@154
|
5847 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5848 ;;
|
cannam@154
|
5849 os2*)
|
cannam@154
|
5850 lt_cv_deplibs_check_method=pass_all
|
cannam@154
|
5851 ;;
|
cannam@154
|
5852 esac
|
cannam@154
|
5853
|
cannam@154
|
5854 fi
|
cannam@154
|
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
|
cannam@154
|
5856 $as_echo "$lt_cv_deplibs_check_method" >&6; }
|
cannam@154
|
5857
|
cannam@154
|
5858 file_magic_glob=
|
cannam@154
|
5859 want_nocaseglob=no
|
cannam@154
|
5860 if test "$build" = "$host"; then
|
cannam@154
|
5861 case $host_os in
|
cannam@154
|
5862 mingw* | pw32*)
|
cannam@154
|
5863 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
|
cannam@154
|
5864 want_nocaseglob=yes
|
cannam@154
|
5865 else
|
cannam@154
|
5866 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
|
cannam@154
|
5867 fi
|
cannam@154
|
5868 ;;
|
cannam@154
|
5869 esac
|
cannam@154
|
5870 fi
|
cannam@154
|
5871
|
cannam@154
|
5872 file_magic_cmd=$lt_cv_file_magic_cmd
|
cannam@154
|
5873 deplibs_check_method=$lt_cv_deplibs_check_method
|
cannam@154
|
5874 test -z "$deplibs_check_method" && deplibs_check_method=unknown
|
cannam@154
|
5875
|
cannam@154
|
5876
|
cannam@154
|
5877
|
cannam@154
|
5878
|
cannam@154
|
5879
|
cannam@154
|
5880
|
cannam@154
|
5881
|
cannam@154
|
5882
|
cannam@154
|
5883
|
cannam@154
|
5884
|
cannam@154
|
5885
|
cannam@154
|
5886
|
cannam@154
|
5887
|
cannam@154
|
5888
|
cannam@154
|
5889
|
cannam@154
|
5890
|
cannam@154
|
5891
|
cannam@154
|
5892
|
cannam@154
|
5893
|
cannam@154
|
5894
|
cannam@154
|
5895
|
cannam@154
|
5896
|
cannam@154
|
5897 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
5898 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
|
cannam@154
|
5899 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
|
cannam@154
|
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5901 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5902 if ${ac_cv_prog_DLLTOOL+:} false; then :
|
cannam@154
|
5903 $as_echo_n "(cached) " >&6
|
cannam@154
|
5904 else
|
cannam@154
|
5905 if test -n "$DLLTOOL"; then
|
cannam@154
|
5906 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
|
cannam@154
|
5907 else
|
cannam@154
|
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5909 for as_dir in $PATH
|
cannam@154
|
5910 do
|
cannam@154
|
5911 IFS=$as_save_IFS
|
cannam@154
|
5912 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5913 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5915 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
|
cannam@154
|
5916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5917 break 2
|
cannam@154
|
5918 fi
|
cannam@154
|
5919 done
|
cannam@154
|
5920 done
|
cannam@154
|
5921 IFS=$as_save_IFS
|
cannam@154
|
5922
|
cannam@154
|
5923 fi
|
cannam@154
|
5924 fi
|
cannam@154
|
5925 DLLTOOL=$ac_cv_prog_DLLTOOL
|
cannam@154
|
5926 if test -n "$DLLTOOL"; then
|
cannam@154
|
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
|
cannam@154
|
5928 $as_echo "$DLLTOOL" >&6; }
|
cannam@154
|
5929 else
|
cannam@154
|
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5931 $as_echo "no" >&6; }
|
cannam@154
|
5932 fi
|
cannam@154
|
5933
|
cannam@154
|
5934
|
cannam@154
|
5935 fi
|
cannam@154
|
5936 if test -z "$ac_cv_prog_DLLTOOL"; then
|
cannam@154
|
5937 ac_ct_DLLTOOL=$DLLTOOL
|
cannam@154
|
5938 # Extract the first word of "dlltool", so it can be a program name with args.
|
cannam@154
|
5939 set dummy dlltool; ac_word=$2
|
cannam@154
|
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
5941 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
5942 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
|
cannam@154
|
5943 $as_echo_n "(cached) " >&6
|
cannam@154
|
5944 else
|
cannam@154
|
5945 if test -n "$ac_ct_DLLTOOL"; then
|
cannam@154
|
5946 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
|
cannam@154
|
5947 else
|
cannam@154
|
5948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
5949 for as_dir in $PATH
|
cannam@154
|
5950 do
|
cannam@154
|
5951 IFS=$as_save_IFS
|
cannam@154
|
5952 test -z "$as_dir" && as_dir=.
|
cannam@154
|
5953 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
5954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
5955 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
|
cannam@154
|
5956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
5957 break 2
|
cannam@154
|
5958 fi
|
cannam@154
|
5959 done
|
cannam@154
|
5960 done
|
cannam@154
|
5961 IFS=$as_save_IFS
|
cannam@154
|
5962
|
cannam@154
|
5963 fi
|
cannam@154
|
5964 fi
|
cannam@154
|
5965 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
|
cannam@154
|
5966 if test -n "$ac_ct_DLLTOOL"; then
|
cannam@154
|
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
|
cannam@154
|
5968 $as_echo "$ac_ct_DLLTOOL" >&6; }
|
cannam@154
|
5969 else
|
cannam@154
|
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
5971 $as_echo "no" >&6; }
|
cannam@154
|
5972 fi
|
cannam@154
|
5973
|
cannam@154
|
5974 if test "x$ac_ct_DLLTOOL" = x; then
|
cannam@154
|
5975 DLLTOOL="false"
|
cannam@154
|
5976 else
|
cannam@154
|
5977 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
5978 yes:)
|
cannam@154
|
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
5980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
5981 ac_tool_warned=yes ;;
|
cannam@154
|
5982 esac
|
cannam@154
|
5983 DLLTOOL=$ac_ct_DLLTOOL
|
cannam@154
|
5984 fi
|
cannam@154
|
5985 else
|
cannam@154
|
5986 DLLTOOL="$ac_cv_prog_DLLTOOL"
|
cannam@154
|
5987 fi
|
cannam@154
|
5988
|
cannam@154
|
5989 test -z "$DLLTOOL" && DLLTOOL=dlltool
|
cannam@154
|
5990
|
cannam@154
|
5991
|
cannam@154
|
5992
|
cannam@154
|
5993
|
cannam@154
|
5994
|
cannam@154
|
5995
|
cannam@154
|
5996
|
cannam@154
|
5997
|
cannam@154
|
5998
|
cannam@154
|
5999
|
cannam@154
|
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
|
cannam@154
|
6001 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
|
cannam@154
|
6002 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
|
cannam@154
|
6003 $as_echo_n "(cached) " >&6
|
cannam@154
|
6004 else
|
cannam@154
|
6005 lt_cv_sharedlib_from_linklib_cmd='unknown'
|
cannam@154
|
6006
|
cannam@154
|
6007 case $host_os in
|
cannam@154
|
6008 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
6009 # two different shell functions defined in ltmain.sh;
|
cannam@154
|
6010 # decide which one to use based on capabilities of $DLLTOOL
|
cannam@154
|
6011 case `$DLLTOOL --help 2>&1` in
|
cannam@154
|
6012 *--identify-strict*)
|
cannam@154
|
6013 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
|
cannam@154
|
6014 ;;
|
cannam@154
|
6015 *)
|
cannam@154
|
6016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
|
cannam@154
|
6017 ;;
|
cannam@154
|
6018 esac
|
cannam@154
|
6019 ;;
|
cannam@154
|
6020 *)
|
cannam@154
|
6021 # fallback: assume linklib IS sharedlib
|
cannam@154
|
6022 lt_cv_sharedlib_from_linklib_cmd=$ECHO
|
cannam@154
|
6023 ;;
|
cannam@154
|
6024 esac
|
cannam@154
|
6025
|
cannam@154
|
6026 fi
|
cannam@154
|
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
|
cannam@154
|
6028 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
|
cannam@154
|
6029 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
|
cannam@154
|
6030 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
|
cannam@154
|
6031
|
cannam@154
|
6032
|
cannam@154
|
6033
|
cannam@154
|
6034
|
cannam@154
|
6035
|
cannam@154
|
6036
|
cannam@154
|
6037
|
cannam@154
|
6038 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
6039 for ac_prog in ar
|
cannam@154
|
6040 do
|
cannam@154
|
6041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
cannam@154
|
6042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
cannam@154
|
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6044 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6045 if ${ac_cv_prog_AR+:} false; then :
|
cannam@154
|
6046 $as_echo_n "(cached) " >&6
|
cannam@154
|
6047 else
|
cannam@154
|
6048 if test -n "$AR"; then
|
cannam@154
|
6049 ac_cv_prog_AR="$AR" # Let the user override the test.
|
cannam@154
|
6050 else
|
cannam@154
|
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6052 for as_dir in $PATH
|
cannam@154
|
6053 do
|
cannam@154
|
6054 IFS=$as_save_IFS
|
cannam@154
|
6055 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6056 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6058 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
|
cannam@154
|
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6060 break 2
|
cannam@154
|
6061 fi
|
cannam@154
|
6062 done
|
cannam@154
|
6063 done
|
cannam@154
|
6064 IFS=$as_save_IFS
|
cannam@154
|
6065
|
cannam@154
|
6066 fi
|
cannam@154
|
6067 fi
|
cannam@154
|
6068 AR=$ac_cv_prog_AR
|
cannam@154
|
6069 if test -n "$AR"; then
|
cannam@154
|
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
|
cannam@154
|
6071 $as_echo "$AR" >&6; }
|
cannam@154
|
6072 else
|
cannam@154
|
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6074 $as_echo "no" >&6; }
|
cannam@154
|
6075 fi
|
cannam@154
|
6076
|
cannam@154
|
6077
|
cannam@154
|
6078 test -n "$AR" && break
|
cannam@154
|
6079 done
|
cannam@154
|
6080 fi
|
cannam@154
|
6081 if test -z "$AR"; then
|
cannam@154
|
6082 ac_ct_AR=$AR
|
cannam@154
|
6083 for ac_prog in ar
|
cannam@154
|
6084 do
|
cannam@154
|
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
|
cannam@154
|
6086 set dummy $ac_prog; ac_word=$2
|
cannam@154
|
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6088 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6089 if ${ac_cv_prog_ac_ct_AR+:} false; then :
|
cannam@154
|
6090 $as_echo_n "(cached) " >&6
|
cannam@154
|
6091 else
|
cannam@154
|
6092 if test -n "$ac_ct_AR"; then
|
cannam@154
|
6093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
|
cannam@154
|
6094 else
|
cannam@154
|
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6096 for as_dir in $PATH
|
cannam@154
|
6097 do
|
cannam@154
|
6098 IFS=$as_save_IFS
|
cannam@154
|
6099 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6100 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6102 ac_cv_prog_ac_ct_AR="$ac_prog"
|
cannam@154
|
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6104 break 2
|
cannam@154
|
6105 fi
|
cannam@154
|
6106 done
|
cannam@154
|
6107 done
|
cannam@154
|
6108 IFS=$as_save_IFS
|
cannam@154
|
6109
|
cannam@154
|
6110 fi
|
cannam@154
|
6111 fi
|
cannam@154
|
6112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
|
cannam@154
|
6113 if test -n "$ac_ct_AR"; then
|
cannam@154
|
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
|
cannam@154
|
6115 $as_echo "$ac_ct_AR" >&6; }
|
cannam@154
|
6116 else
|
cannam@154
|
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6118 $as_echo "no" >&6; }
|
cannam@154
|
6119 fi
|
cannam@154
|
6120
|
cannam@154
|
6121
|
cannam@154
|
6122 test -n "$ac_ct_AR" && break
|
cannam@154
|
6123 done
|
cannam@154
|
6124
|
cannam@154
|
6125 if test "x$ac_ct_AR" = x; then
|
cannam@154
|
6126 AR="false"
|
cannam@154
|
6127 else
|
cannam@154
|
6128 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
6129 yes:)
|
cannam@154
|
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
6132 ac_tool_warned=yes ;;
|
cannam@154
|
6133 esac
|
cannam@154
|
6134 AR=$ac_ct_AR
|
cannam@154
|
6135 fi
|
cannam@154
|
6136 fi
|
cannam@154
|
6137
|
cannam@154
|
6138 : ${AR=ar}
|
cannam@154
|
6139 : ${AR_FLAGS=cru}
|
cannam@154
|
6140
|
cannam@154
|
6141
|
cannam@154
|
6142
|
cannam@154
|
6143
|
cannam@154
|
6144
|
cannam@154
|
6145
|
cannam@154
|
6146
|
cannam@154
|
6147
|
cannam@154
|
6148
|
cannam@154
|
6149
|
cannam@154
|
6150
|
cannam@154
|
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
|
cannam@154
|
6152 $as_echo_n "checking for archiver @FILE support... " >&6; }
|
cannam@154
|
6153 if ${lt_cv_ar_at_file+:} false; then :
|
cannam@154
|
6154 $as_echo_n "(cached) " >&6
|
cannam@154
|
6155 else
|
cannam@154
|
6156 lt_cv_ar_at_file=no
|
cannam@154
|
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
6158 /* end confdefs.h. */
|
cannam@154
|
6159
|
cannam@154
|
6160 int
|
cannam@154
|
6161 main ()
|
cannam@154
|
6162 {
|
cannam@154
|
6163
|
cannam@154
|
6164 ;
|
cannam@154
|
6165 return 0;
|
cannam@154
|
6166 }
|
cannam@154
|
6167 _ACEOF
|
cannam@154
|
6168 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
6169 echo conftest.$ac_objext > conftest.lst
|
cannam@154
|
6170 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
|
cannam@154
|
6171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
cannam@154
|
6172 (eval $lt_ar_try) 2>&5
|
cannam@154
|
6173 ac_status=$?
|
cannam@154
|
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6175 test $ac_status = 0; }
|
cannam@154
|
6176 if test 0 -eq "$ac_status"; then
|
cannam@154
|
6177 # Ensure the archiver fails upon bogus file names.
|
cannam@154
|
6178 rm -f conftest.$ac_objext libconftest.a
|
cannam@154
|
6179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
|
cannam@154
|
6180 (eval $lt_ar_try) 2>&5
|
cannam@154
|
6181 ac_status=$?
|
cannam@154
|
6182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6183 test $ac_status = 0; }
|
cannam@154
|
6184 if test 0 -ne "$ac_status"; then
|
cannam@154
|
6185 lt_cv_ar_at_file=@
|
cannam@154
|
6186 fi
|
cannam@154
|
6187 fi
|
cannam@154
|
6188 rm -f conftest.* libconftest.a
|
cannam@154
|
6189
|
cannam@154
|
6190 fi
|
cannam@154
|
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
6192
|
cannam@154
|
6193 fi
|
cannam@154
|
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
|
cannam@154
|
6195 $as_echo "$lt_cv_ar_at_file" >&6; }
|
cannam@154
|
6196
|
cannam@154
|
6197 if test no = "$lt_cv_ar_at_file"; then
|
cannam@154
|
6198 archiver_list_spec=
|
cannam@154
|
6199 else
|
cannam@154
|
6200 archiver_list_spec=$lt_cv_ar_at_file
|
cannam@154
|
6201 fi
|
cannam@154
|
6202
|
cannam@154
|
6203
|
cannam@154
|
6204
|
cannam@154
|
6205
|
cannam@154
|
6206
|
cannam@154
|
6207
|
cannam@154
|
6208
|
cannam@154
|
6209 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
6210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
cannam@154
|
6211 set dummy ${ac_tool_prefix}strip; ac_word=$2
|
cannam@154
|
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6213 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6214 if ${ac_cv_prog_STRIP+:} false; then :
|
cannam@154
|
6215 $as_echo_n "(cached) " >&6
|
cannam@154
|
6216 else
|
cannam@154
|
6217 if test -n "$STRIP"; then
|
cannam@154
|
6218 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
cannam@154
|
6219 else
|
cannam@154
|
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6221 for as_dir in $PATH
|
cannam@154
|
6222 do
|
cannam@154
|
6223 IFS=$as_save_IFS
|
cannam@154
|
6224 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6225 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6227 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
cannam@154
|
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6229 break 2
|
cannam@154
|
6230 fi
|
cannam@154
|
6231 done
|
cannam@154
|
6232 done
|
cannam@154
|
6233 IFS=$as_save_IFS
|
cannam@154
|
6234
|
cannam@154
|
6235 fi
|
cannam@154
|
6236 fi
|
cannam@154
|
6237 STRIP=$ac_cv_prog_STRIP
|
cannam@154
|
6238 if test -n "$STRIP"; then
|
cannam@154
|
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
|
cannam@154
|
6240 $as_echo "$STRIP" >&6; }
|
cannam@154
|
6241 else
|
cannam@154
|
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6243 $as_echo "no" >&6; }
|
cannam@154
|
6244 fi
|
cannam@154
|
6245
|
cannam@154
|
6246
|
cannam@154
|
6247 fi
|
cannam@154
|
6248 if test -z "$ac_cv_prog_STRIP"; then
|
cannam@154
|
6249 ac_ct_STRIP=$STRIP
|
cannam@154
|
6250 # Extract the first word of "strip", so it can be a program name with args.
|
cannam@154
|
6251 set dummy strip; ac_word=$2
|
cannam@154
|
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6253 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6254 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
|
cannam@154
|
6255 $as_echo_n "(cached) " >&6
|
cannam@154
|
6256 else
|
cannam@154
|
6257 if test -n "$ac_ct_STRIP"; then
|
cannam@154
|
6258 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
cannam@154
|
6259 else
|
cannam@154
|
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6261 for as_dir in $PATH
|
cannam@154
|
6262 do
|
cannam@154
|
6263 IFS=$as_save_IFS
|
cannam@154
|
6264 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6265 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6267 ac_cv_prog_ac_ct_STRIP="strip"
|
cannam@154
|
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6269 break 2
|
cannam@154
|
6270 fi
|
cannam@154
|
6271 done
|
cannam@154
|
6272 done
|
cannam@154
|
6273 IFS=$as_save_IFS
|
cannam@154
|
6274
|
cannam@154
|
6275 fi
|
cannam@154
|
6276 fi
|
cannam@154
|
6277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
cannam@154
|
6278 if test -n "$ac_ct_STRIP"; then
|
cannam@154
|
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
|
cannam@154
|
6280 $as_echo "$ac_ct_STRIP" >&6; }
|
cannam@154
|
6281 else
|
cannam@154
|
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6283 $as_echo "no" >&6; }
|
cannam@154
|
6284 fi
|
cannam@154
|
6285
|
cannam@154
|
6286 if test "x$ac_ct_STRIP" = x; then
|
cannam@154
|
6287 STRIP=":"
|
cannam@154
|
6288 else
|
cannam@154
|
6289 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
6290 yes:)
|
cannam@154
|
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
6292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
6293 ac_tool_warned=yes ;;
|
cannam@154
|
6294 esac
|
cannam@154
|
6295 STRIP=$ac_ct_STRIP
|
cannam@154
|
6296 fi
|
cannam@154
|
6297 else
|
cannam@154
|
6298 STRIP="$ac_cv_prog_STRIP"
|
cannam@154
|
6299 fi
|
cannam@154
|
6300
|
cannam@154
|
6301 test -z "$STRIP" && STRIP=:
|
cannam@154
|
6302
|
cannam@154
|
6303
|
cannam@154
|
6304
|
cannam@154
|
6305
|
cannam@154
|
6306
|
cannam@154
|
6307
|
cannam@154
|
6308 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
6309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
cannam@154
|
6310 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
cannam@154
|
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6312 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6313 if ${ac_cv_prog_RANLIB+:} false; then :
|
cannam@154
|
6314 $as_echo_n "(cached) " >&6
|
cannam@154
|
6315 else
|
cannam@154
|
6316 if test -n "$RANLIB"; then
|
cannam@154
|
6317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
cannam@154
|
6318 else
|
cannam@154
|
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6320 for as_dir in $PATH
|
cannam@154
|
6321 do
|
cannam@154
|
6322 IFS=$as_save_IFS
|
cannam@154
|
6323 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6324 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
cannam@154
|
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6328 break 2
|
cannam@154
|
6329 fi
|
cannam@154
|
6330 done
|
cannam@154
|
6331 done
|
cannam@154
|
6332 IFS=$as_save_IFS
|
cannam@154
|
6333
|
cannam@154
|
6334 fi
|
cannam@154
|
6335 fi
|
cannam@154
|
6336 RANLIB=$ac_cv_prog_RANLIB
|
cannam@154
|
6337 if test -n "$RANLIB"; then
|
cannam@154
|
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
|
cannam@154
|
6339 $as_echo "$RANLIB" >&6; }
|
cannam@154
|
6340 else
|
cannam@154
|
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6342 $as_echo "no" >&6; }
|
cannam@154
|
6343 fi
|
cannam@154
|
6344
|
cannam@154
|
6345
|
cannam@154
|
6346 fi
|
cannam@154
|
6347 if test -z "$ac_cv_prog_RANLIB"; then
|
cannam@154
|
6348 ac_ct_RANLIB=$RANLIB
|
cannam@154
|
6349 # Extract the first word of "ranlib", so it can be a program name with args.
|
cannam@154
|
6350 set dummy ranlib; ac_word=$2
|
cannam@154
|
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
6352 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
6353 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
|
cannam@154
|
6354 $as_echo_n "(cached) " >&6
|
cannam@154
|
6355 else
|
cannam@154
|
6356 if test -n "$ac_ct_RANLIB"; then
|
cannam@154
|
6357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
cannam@154
|
6358 else
|
cannam@154
|
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6360 for as_dir in $PATH
|
cannam@154
|
6361 do
|
cannam@154
|
6362 IFS=$as_save_IFS
|
cannam@154
|
6363 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6364 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
6366 ac_cv_prog_ac_ct_RANLIB="ranlib"
|
cannam@154
|
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
6368 break 2
|
cannam@154
|
6369 fi
|
cannam@154
|
6370 done
|
cannam@154
|
6371 done
|
cannam@154
|
6372 IFS=$as_save_IFS
|
cannam@154
|
6373
|
cannam@154
|
6374 fi
|
cannam@154
|
6375 fi
|
cannam@154
|
6376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
cannam@154
|
6377 if test -n "$ac_ct_RANLIB"; then
|
cannam@154
|
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
|
cannam@154
|
6379 $as_echo "$ac_ct_RANLIB" >&6; }
|
cannam@154
|
6380 else
|
cannam@154
|
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
6382 $as_echo "no" >&6; }
|
cannam@154
|
6383 fi
|
cannam@154
|
6384
|
cannam@154
|
6385 if test "x$ac_ct_RANLIB" = x; then
|
cannam@154
|
6386 RANLIB=":"
|
cannam@154
|
6387 else
|
cannam@154
|
6388 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
6389 yes:)
|
cannam@154
|
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
6392 ac_tool_warned=yes ;;
|
cannam@154
|
6393 esac
|
cannam@154
|
6394 RANLIB=$ac_ct_RANLIB
|
cannam@154
|
6395 fi
|
cannam@154
|
6396 else
|
cannam@154
|
6397 RANLIB="$ac_cv_prog_RANLIB"
|
cannam@154
|
6398 fi
|
cannam@154
|
6399
|
cannam@154
|
6400 test -z "$RANLIB" && RANLIB=:
|
cannam@154
|
6401
|
cannam@154
|
6402
|
cannam@154
|
6403
|
cannam@154
|
6404
|
cannam@154
|
6405
|
cannam@154
|
6406
|
cannam@154
|
6407 # Determine commands to create old-style static archives.
|
cannam@154
|
6408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
|
cannam@154
|
6409 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@154
|
6410 old_postuninstall_cmds=
|
cannam@154
|
6411
|
cannam@154
|
6412 if test -n "$RANLIB"; then
|
cannam@154
|
6413 case $host_os in
|
cannam@154
|
6414 bitrig* | openbsd*)
|
cannam@154
|
6415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
|
cannam@154
|
6416 ;;
|
cannam@154
|
6417 *)
|
cannam@154
|
6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
|
cannam@154
|
6419 ;;
|
cannam@154
|
6420 esac
|
cannam@154
|
6421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
|
cannam@154
|
6422 fi
|
cannam@154
|
6423
|
cannam@154
|
6424 case $host_os in
|
cannam@154
|
6425 darwin*)
|
cannam@154
|
6426 lock_old_archive_extraction=yes ;;
|
cannam@154
|
6427 *)
|
cannam@154
|
6428 lock_old_archive_extraction=no ;;
|
cannam@154
|
6429 esac
|
cannam@154
|
6430
|
cannam@154
|
6431
|
cannam@154
|
6432
|
cannam@154
|
6433
|
cannam@154
|
6434
|
cannam@154
|
6435
|
cannam@154
|
6436
|
cannam@154
|
6437
|
cannam@154
|
6438
|
cannam@154
|
6439
|
cannam@154
|
6440
|
cannam@154
|
6441
|
cannam@154
|
6442
|
cannam@154
|
6443
|
cannam@154
|
6444
|
cannam@154
|
6445
|
cannam@154
|
6446
|
cannam@154
|
6447
|
cannam@154
|
6448
|
cannam@154
|
6449
|
cannam@154
|
6450
|
cannam@154
|
6451
|
cannam@154
|
6452
|
cannam@154
|
6453
|
cannam@154
|
6454
|
cannam@154
|
6455
|
cannam@154
|
6456
|
cannam@154
|
6457
|
cannam@154
|
6458
|
cannam@154
|
6459
|
cannam@154
|
6460
|
cannam@154
|
6461
|
cannam@154
|
6462
|
cannam@154
|
6463
|
cannam@154
|
6464
|
cannam@154
|
6465
|
cannam@154
|
6466
|
cannam@154
|
6467
|
cannam@154
|
6468
|
cannam@154
|
6469 # If no C compiler was specified, use CC.
|
cannam@154
|
6470 LTCC=${LTCC-"$CC"}
|
cannam@154
|
6471
|
cannam@154
|
6472 # If no C compiler flags were specified, use CFLAGS.
|
cannam@154
|
6473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
cannam@154
|
6474
|
cannam@154
|
6475 # Allow CC to be a program name with arguments.
|
cannam@154
|
6476 compiler=$CC
|
cannam@154
|
6477
|
cannam@154
|
6478
|
cannam@154
|
6479 # Check for command to grab the raw symbol name followed by C symbol from nm.
|
cannam@154
|
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
|
cannam@154
|
6481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
|
cannam@154
|
6482 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
|
cannam@154
|
6483 $as_echo_n "(cached) " >&6
|
cannam@154
|
6484 else
|
cannam@154
|
6485
|
cannam@154
|
6486 # These are sane defaults that work on at least a few old systems.
|
cannam@154
|
6487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
|
cannam@154
|
6488
|
cannam@154
|
6489 # Character class describing NM global symbol codes.
|
cannam@154
|
6490 symcode='[BCDEGRST]'
|
cannam@154
|
6491
|
cannam@154
|
6492 # Regexp to match symbols that can be accessed directly from C.
|
cannam@154
|
6493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
|
cannam@154
|
6494
|
cannam@154
|
6495 # Define system-specific variables.
|
cannam@154
|
6496 case $host_os in
|
cannam@154
|
6497 aix*)
|
cannam@154
|
6498 symcode='[BCDT]'
|
cannam@154
|
6499 ;;
|
cannam@154
|
6500 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
6501 symcode='[ABCDGISTW]'
|
cannam@154
|
6502 ;;
|
cannam@154
|
6503 hpux*)
|
cannam@154
|
6504 if test ia64 = "$host_cpu"; then
|
cannam@154
|
6505 symcode='[ABCDEGRST]'
|
cannam@154
|
6506 fi
|
cannam@154
|
6507 ;;
|
cannam@154
|
6508 irix* | nonstopux*)
|
cannam@154
|
6509 symcode='[BCDEGRST]'
|
cannam@154
|
6510 ;;
|
cannam@154
|
6511 osf*)
|
cannam@154
|
6512 symcode='[BCDEGQRST]'
|
cannam@154
|
6513 ;;
|
cannam@154
|
6514 solaris*)
|
cannam@154
|
6515 symcode='[BDRT]'
|
cannam@154
|
6516 ;;
|
cannam@154
|
6517 sco3.2v5*)
|
cannam@154
|
6518 symcode='[DT]'
|
cannam@154
|
6519 ;;
|
cannam@154
|
6520 sysv4.2uw2*)
|
cannam@154
|
6521 symcode='[DT]'
|
cannam@154
|
6522 ;;
|
cannam@154
|
6523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@154
|
6524 symcode='[ABDT]'
|
cannam@154
|
6525 ;;
|
cannam@154
|
6526 sysv4)
|
cannam@154
|
6527 symcode='[DFNSTU]'
|
cannam@154
|
6528 ;;
|
cannam@154
|
6529 esac
|
cannam@154
|
6530
|
cannam@154
|
6531 # If we're using GNU nm, then use its standard symbol codes.
|
cannam@154
|
6532 case `$NM -V 2>&1` in
|
cannam@154
|
6533 *GNU* | *'with BFD'*)
|
cannam@154
|
6534 symcode='[ABCDGIRSTW]' ;;
|
cannam@154
|
6535 esac
|
cannam@154
|
6536
|
cannam@154
|
6537 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
6538 # Gets list of data symbols to import.
|
cannam@154
|
6539 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
|
cannam@154
|
6540 # Adjust the below global symbol transforms to fixup imported variables.
|
cannam@154
|
6541 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
|
cannam@154
|
6542 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
|
cannam@154
|
6543 lt_c_name_lib_hook="\
|
cannam@154
|
6544 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
|
cannam@154
|
6545 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
|
cannam@154
|
6546 else
|
cannam@154
|
6547 # Disable hooks by default.
|
cannam@154
|
6548 lt_cv_sys_global_symbol_to_import=
|
cannam@154
|
6549 lt_cdecl_hook=
|
cannam@154
|
6550 lt_c_name_hook=
|
cannam@154
|
6551 lt_c_name_lib_hook=
|
cannam@154
|
6552 fi
|
cannam@154
|
6553
|
cannam@154
|
6554 # Transform an extracted symbol line into a proper C declaration.
|
cannam@154
|
6555 # Some systems (esp. on ia64) link data and code symbols differently,
|
cannam@154
|
6556 # so use this general approach.
|
cannam@154
|
6557 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
|
cannam@154
|
6558 $lt_cdecl_hook\
|
cannam@154
|
6559 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
|
cannam@154
|
6560 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
|
cannam@154
|
6561
|
cannam@154
|
6562 # Transform an extracted symbol line into symbol name and symbol address
|
cannam@154
|
6563 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
|
cannam@154
|
6564 $lt_c_name_hook\
|
cannam@154
|
6565 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
cannam@154
|
6566 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
|
cannam@154
|
6567
|
cannam@154
|
6568 # Transform an extracted symbol line into symbol name with lib prefix and
|
cannam@154
|
6569 # symbol address.
|
cannam@154
|
6570 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
|
cannam@154
|
6571 $lt_c_name_lib_hook\
|
cannam@154
|
6572 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
|
cannam@154
|
6573 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
|
cannam@154
|
6574 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
|
cannam@154
|
6575
|
cannam@154
|
6576 # Handle CRLF in mingw tool chain
|
cannam@154
|
6577 opt_cr=
|
cannam@154
|
6578 case $build_os in
|
cannam@154
|
6579 mingw*)
|
cannam@154
|
6580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
|
cannam@154
|
6581 ;;
|
cannam@154
|
6582 esac
|
cannam@154
|
6583
|
cannam@154
|
6584 # Try without a prefix underscore, then with it.
|
cannam@154
|
6585 for ac_symprfx in "" "_"; do
|
cannam@154
|
6586
|
cannam@154
|
6587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
|
cannam@154
|
6588 symxfrm="\\1 $ac_symprfx\\2 \\2"
|
cannam@154
|
6589
|
cannam@154
|
6590 # Write the raw and C identifiers.
|
cannam@154
|
6591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
6592 # Fake it for dumpbin and say T for any non-static function,
|
cannam@154
|
6593 # D for any global variable and I for any imported variable.
|
cannam@154
|
6594 # Also find C++ and __fastcall symbols from MSVC++,
|
cannam@154
|
6595 # which start with @ or ?.
|
cannam@154
|
6596 lt_cv_sys_global_symbol_pipe="$AWK '"\
|
cannam@154
|
6597 " {last_section=section; section=\$ 3};"\
|
cannam@154
|
6598 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
|
cannam@154
|
6599 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
|
cannam@154
|
6600 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
|
cannam@154
|
6601 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
|
cannam@154
|
6602 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
|
cannam@154
|
6603 " \$ 0!~/External *\|/{next};"\
|
cannam@154
|
6604 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
|
cannam@154
|
6605 " {if(hide[section]) next};"\
|
cannam@154
|
6606 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
|
cannam@154
|
6607 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
|
cannam@154
|
6608 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
|
cannam@154
|
6609 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
|
cannam@154
|
6610 " ' prfx=^$ac_symprfx"
|
cannam@154
|
6611 else
|
cannam@154
|
6612 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
|
cannam@154
|
6613 fi
|
cannam@154
|
6614 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
|
cannam@154
|
6615
|
cannam@154
|
6616 # Check to see that the pipe works correctly.
|
cannam@154
|
6617 pipe_works=no
|
cannam@154
|
6618
|
cannam@154
|
6619 rm -f conftest*
|
cannam@154
|
6620 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
6621 #ifdef __cplusplus
|
cannam@154
|
6622 extern "C" {
|
cannam@154
|
6623 #endif
|
cannam@154
|
6624 char nm_test_var;
|
cannam@154
|
6625 void nm_test_func(void);
|
cannam@154
|
6626 void nm_test_func(void){}
|
cannam@154
|
6627 #ifdef __cplusplus
|
cannam@154
|
6628 }
|
cannam@154
|
6629 #endif
|
cannam@154
|
6630 int main(){nm_test_var='a';nm_test_func();return(0);}
|
cannam@154
|
6631 _LT_EOF
|
cannam@154
|
6632
|
cannam@154
|
6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
6634 (eval $ac_compile) 2>&5
|
cannam@154
|
6635 ac_status=$?
|
cannam@154
|
6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6637 test $ac_status = 0; }; then
|
cannam@154
|
6638 # Now try to grab the symbols.
|
cannam@154
|
6639 nlist=conftest.nm
|
cannam@154
|
6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
|
cannam@154
|
6641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
|
cannam@154
|
6642 ac_status=$?
|
cannam@154
|
6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6644 test $ac_status = 0; } && test -s "$nlist"; then
|
cannam@154
|
6645 # Try sorting and uniquifying the output.
|
cannam@154
|
6646 if sort "$nlist" | uniq > "$nlist"T; then
|
cannam@154
|
6647 mv -f "$nlist"T "$nlist"
|
cannam@154
|
6648 else
|
cannam@154
|
6649 rm -f "$nlist"T
|
cannam@154
|
6650 fi
|
cannam@154
|
6651
|
cannam@154
|
6652 # Make sure that we snagged all the symbols we need.
|
cannam@154
|
6653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
|
cannam@154
|
6654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
|
cannam@154
|
6655 cat <<_LT_EOF > conftest.$ac_ext
|
cannam@154
|
6656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
|
cannam@154
|
6657 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
|
cannam@154
|
6658 /* DATA imports from DLLs on WIN32 can't be const, because runtime
|
cannam@154
|
6659 relocations are performed -- see ld's documentation on pseudo-relocs. */
|
cannam@154
|
6660 # define LT_DLSYM_CONST
|
cannam@154
|
6661 #elif defined __osf__
|
cannam@154
|
6662 /* This system does not cope well with relocations in const data. */
|
cannam@154
|
6663 # define LT_DLSYM_CONST
|
cannam@154
|
6664 #else
|
cannam@154
|
6665 # define LT_DLSYM_CONST const
|
cannam@154
|
6666 #endif
|
cannam@154
|
6667
|
cannam@154
|
6668 #ifdef __cplusplus
|
cannam@154
|
6669 extern "C" {
|
cannam@154
|
6670 #endif
|
cannam@154
|
6671
|
cannam@154
|
6672 _LT_EOF
|
cannam@154
|
6673 # Now generate the symbol file.
|
cannam@154
|
6674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
|
cannam@154
|
6675
|
cannam@154
|
6676 cat <<_LT_EOF >> conftest.$ac_ext
|
cannam@154
|
6677
|
cannam@154
|
6678 /* The mapping between symbol names and symbols. */
|
cannam@154
|
6679 LT_DLSYM_CONST struct {
|
cannam@154
|
6680 const char *name;
|
cannam@154
|
6681 void *address;
|
cannam@154
|
6682 }
|
cannam@154
|
6683 lt__PROGRAM__LTX_preloaded_symbols[] =
|
cannam@154
|
6684 {
|
cannam@154
|
6685 { "@PROGRAM@", (void *) 0 },
|
cannam@154
|
6686 _LT_EOF
|
cannam@154
|
6687 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
|
cannam@154
|
6688 cat <<\_LT_EOF >> conftest.$ac_ext
|
cannam@154
|
6689 {0, (void *) 0}
|
cannam@154
|
6690 };
|
cannam@154
|
6691
|
cannam@154
|
6692 /* This works around a problem in FreeBSD linker */
|
cannam@154
|
6693 #ifdef FREEBSD_WORKAROUND
|
cannam@154
|
6694 static const void *lt_preloaded_setup() {
|
cannam@154
|
6695 return lt__PROGRAM__LTX_preloaded_symbols;
|
cannam@154
|
6696 }
|
cannam@154
|
6697 #endif
|
cannam@154
|
6698
|
cannam@154
|
6699 #ifdef __cplusplus
|
cannam@154
|
6700 }
|
cannam@154
|
6701 #endif
|
cannam@154
|
6702 _LT_EOF
|
cannam@154
|
6703 # Now try linking the two files.
|
cannam@154
|
6704 mv conftest.$ac_objext conftstm.$ac_objext
|
cannam@154
|
6705 lt_globsym_save_LIBS=$LIBS
|
cannam@154
|
6706 lt_globsym_save_CFLAGS=$CFLAGS
|
cannam@154
|
6707 LIBS=conftstm.$ac_objext
|
cannam@154
|
6708 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
|
cannam@154
|
6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
cannam@154
|
6710 (eval $ac_link) 2>&5
|
cannam@154
|
6711 ac_status=$?
|
cannam@154
|
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6713 test $ac_status = 0; } && test -s conftest$ac_exeext; then
|
cannam@154
|
6714 pipe_works=yes
|
cannam@154
|
6715 fi
|
cannam@154
|
6716 LIBS=$lt_globsym_save_LIBS
|
cannam@154
|
6717 CFLAGS=$lt_globsym_save_CFLAGS
|
cannam@154
|
6718 else
|
cannam@154
|
6719 echo "cannot find nm_test_func in $nlist" >&5
|
cannam@154
|
6720 fi
|
cannam@154
|
6721 else
|
cannam@154
|
6722 echo "cannot find nm_test_var in $nlist" >&5
|
cannam@154
|
6723 fi
|
cannam@154
|
6724 else
|
cannam@154
|
6725 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
|
cannam@154
|
6726 fi
|
cannam@154
|
6727 else
|
cannam@154
|
6728 echo "$progname: failed program was:" >&5
|
cannam@154
|
6729 cat conftest.$ac_ext >&5
|
cannam@154
|
6730 fi
|
cannam@154
|
6731 rm -rf conftest* conftst*
|
cannam@154
|
6732
|
cannam@154
|
6733 # Do not use the global_symbol_pipe unless it works.
|
cannam@154
|
6734 if test yes = "$pipe_works"; then
|
cannam@154
|
6735 break
|
cannam@154
|
6736 else
|
cannam@154
|
6737 lt_cv_sys_global_symbol_pipe=
|
cannam@154
|
6738 fi
|
cannam@154
|
6739 done
|
cannam@154
|
6740
|
cannam@154
|
6741 fi
|
cannam@154
|
6742
|
cannam@154
|
6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
|
cannam@154
|
6744 lt_cv_sys_global_symbol_to_cdecl=
|
cannam@154
|
6745 fi
|
cannam@154
|
6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
|
cannam@154
|
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
|
cannam@154
|
6748 $as_echo "failed" >&6; }
|
cannam@154
|
6749 else
|
cannam@154
|
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
cannam@154
|
6751 $as_echo "ok" >&6; }
|
cannam@154
|
6752 fi
|
cannam@154
|
6753
|
cannam@154
|
6754 # Response file support.
|
cannam@154
|
6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
|
cannam@154
|
6756 nm_file_list_spec='@'
|
cannam@154
|
6757 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
|
cannam@154
|
6758 nm_file_list_spec='@'
|
cannam@154
|
6759 fi
|
cannam@154
|
6760
|
cannam@154
|
6761
|
cannam@154
|
6762
|
cannam@154
|
6763
|
cannam@154
|
6764
|
cannam@154
|
6765
|
cannam@154
|
6766
|
cannam@154
|
6767
|
cannam@154
|
6768
|
cannam@154
|
6769
|
cannam@154
|
6770
|
cannam@154
|
6771
|
cannam@154
|
6772
|
cannam@154
|
6773
|
cannam@154
|
6774
|
cannam@154
|
6775
|
cannam@154
|
6776
|
cannam@154
|
6777
|
cannam@154
|
6778
|
cannam@154
|
6779
|
cannam@154
|
6780
|
cannam@154
|
6781
|
cannam@154
|
6782
|
cannam@154
|
6783
|
cannam@154
|
6784
|
cannam@154
|
6785
|
cannam@154
|
6786
|
cannam@154
|
6787
|
cannam@154
|
6788
|
cannam@154
|
6789
|
cannam@154
|
6790
|
cannam@154
|
6791
|
cannam@154
|
6792
|
cannam@154
|
6793
|
cannam@154
|
6794
|
cannam@154
|
6795
|
cannam@154
|
6796
|
cannam@154
|
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
|
cannam@154
|
6798 $as_echo_n "checking for sysroot... " >&6; }
|
cannam@154
|
6799
|
cannam@154
|
6800 # Check whether --with-sysroot was given.
|
cannam@154
|
6801 if test "${with_sysroot+set}" = set; then :
|
cannam@154
|
6802 withval=$with_sysroot;
|
cannam@154
|
6803 else
|
cannam@154
|
6804 with_sysroot=no
|
cannam@154
|
6805 fi
|
cannam@154
|
6806
|
cannam@154
|
6807
|
cannam@154
|
6808 lt_sysroot=
|
cannam@154
|
6809 case $with_sysroot in #(
|
cannam@154
|
6810 yes)
|
cannam@154
|
6811 if test yes = "$GCC"; then
|
cannam@154
|
6812 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
|
cannam@154
|
6813 fi
|
cannam@154
|
6814 ;; #(
|
cannam@154
|
6815 /*)
|
cannam@154
|
6816 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
|
cannam@154
|
6817 ;; #(
|
cannam@154
|
6818 no|'')
|
cannam@154
|
6819 ;; #(
|
cannam@154
|
6820 *)
|
cannam@154
|
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
|
cannam@154
|
6822 $as_echo "$with_sysroot" >&6; }
|
cannam@154
|
6823 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
|
cannam@154
|
6824 ;;
|
cannam@154
|
6825 esac
|
cannam@154
|
6826
|
cannam@154
|
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
|
cannam@154
|
6828 $as_echo "${lt_sysroot:-no}" >&6; }
|
cannam@154
|
6829
|
cannam@154
|
6830
|
cannam@154
|
6831
|
cannam@154
|
6832
|
cannam@154
|
6833
|
cannam@154
|
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
|
cannam@154
|
6835 $as_echo_n "checking for a working dd... " >&6; }
|
cannam@154
|
6836 if ${ac_cv_path_lt_DD+:} false; then :
|
cannam@154
|
6837 $as_echo_n "(cached) " >&6
|
cannam@154
|
6838 else
|
cannam@154
|
6839 printf 0123456789abcdef0123456789abcdef >conftest.i
|
cannam@154
|
6840 cat conftest.i conftest.i >conftest2.i
|
cannam@154
|
6841 : ${lt_DD:=$DD}
|
cannam@154
|
6842 if test -z "$lt_DD"; then
|
cannam@154
|
6843 ac_path_lt_DD_found=false
|
cannam@154
|
6844 # Loop through the user's path and test for each of PROGNAME-LIST
|
cannam@154
|
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
6846 for as_dir in $PATH
|
cannam@154
|
6847 do
|
cannam@154
|
6848 IFS=$as_save_IFS
|
cannam@154
|
6849 test -z "$as_dir" && as_dir=.
|
cannam@154
|
6850 for ac_prog in dd; do
|
cannam@154
|
6851 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
6852 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
|
cannam@154
|
6853 as_fn_executable_p "$ac_path_lt_DD" || continue
|
cannam@154
|
6854 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
cannam@154
|
6855 cmp -s conftest.i conftest.out \
|
cannam@154
|
6856 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
|
cannam@154
|
6857 fi
|
cannam@154
|
6858 $ac_path_lt_DD_found && break 3
|
cannam@154
|
6859 done
|
cannam@154
|
6860 done
|
cannam@154
|
6861 done
|
cannam@154
|
6862 IFS=$as_save_IFS
|
cannam@154
|
6863 if test -z "$ac_cv_path_lt_DD"; then
|
cannam@154
|
6864 :
|
cannam@154
|
6865 fi
|
cannam@154
|
6866 else
|
cannam@154
|
6867 ac_cv_path_lt_DD=$lt_DD
|
cannam@154
|
6868 fi
|
cannam@154
|
6869
|
cannam@154
|
6870 rm -f conftest.i conftest2.i conftest.out
|
cannam@154
|
6871 fi
|
cannam@154
|
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
|
cannam@154
|
6873 $as_echo "$ac_cv_path_lt_DD" >&6; }
|
cannam@154
|
6874
|
cannam@154
|
6875
|
cannam@154
|
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
|
cannam@154
|
6877 $as_echo_n "checking how to truncate binary pipes... " >&6; }
|
cannam@154
|
6878 if ${lt_cv_truncate_bin+:} false; then :
|
cannam@154
|
6879 $as_echo_n "(cached) " >&6
|
cannam@154
|
6880 else
|
cannam@154
|
6881 printf 0123456789abcdef0123456789abcdef >conftest.i
|
cannam@154
|
6882 cat conftest.i conftest.i >conftest2.i
|
cannam@154
|
6883 lt_cv_truncate_bin=
|
cannam@154
|
6884 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
|
cannam@154
|
6885 cmp -s conftest.i conftest.out \
|
cannam@154
|
6886 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
|
cannam@154
|
6887 fi
|
cannam@154
|
6888 rm -f conftest.i conftest2.i conftest.out
|
cannam@154
|
6889 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
|
cannam@154
|
6890 fi
|
cannam@154
|
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
|
cannam@154
|
6892 $as_echo "$lt_cv_truncate_bin" >&6; }
|
cannam@154
|
6893
|
cannam@154
|
6894
|
cannam@154
|
6895
|
cannam@154
|
6896
|
cannam@154
|
6897
|
cannam@154
|
6898
|
cannam@154
|
6899
|
cannam@154
|
6900 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
cannam@154
|
6901 func_cc_basename ()
|
cannam@154
|
6902 {
|
cannam@154
|
6903 for cc_temp in $*""; do
|
cannam@154
|
6904 case $cc_temp in
|
cannam@154
|
6905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@154
|
6906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@154
|
6907 \-*) ;;
|
cannam@154
|
6908 *) break;;
|
cannam@154
|
6909 esac
|
cannam@154
|
6910 done
|
cannam@154
|
6911 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
cannam@154
|
6912 }
|
cannam@154
|
6913
|
cannam@154
|
6914 # Check whether --enable-libtool-lock was given.
|
cannam@154
|
6915 if test "${enable_libtool_lock+set}" = set; then :
|
cannam@154
|
6916 enableval=$enable_libtool_lock;
|
cannam@154
|
6917 fi
|
cannam@154
|
6918
|
cannam@154
|
6919 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
|
cannam@154
|
6920
|
cannam@154
|
6921 # Some flags need to be propagated to the compiler or linker for good
|
cannam@154
|
6922 # libtool support.
|
cannam@154
|
6923 case $host in
|
cannam@154
|
6924 ia64-*-hpux*)
|
cannam@154
|
6925 # Find out what ABI is being produced by ac_compile, and set mode
|
cannam@154
|
6926 # options accordingly.
|
cannam@154
|
6927 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
6929 (eval $ac_compile) 2>&5
|
cannam@154
|
6930 ac_status=$?
|
cannam@154
|
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6932 test $ac_status = 0; }; then
|
cannam@154
|
6933 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
6934 *ELF-32*)
|
cannam@154
|
6935 HPUX_IA64_MODE=32
|
cannam@154
|
6936 ;;
|
cannam@154
|
6937 *ELF-64*)
|
cannam@154
|
6938 HPUX_IA64_MODE=64
|
cannam@154
|
6939 ;;
|
cannam@154
|
6940 esac
|
cannam@154
|
6941 fi
|
cannam@154
|
6942 rm -rf conftest*
|
cannam@154
|
6943 ;;
|
cannam@154
|
6944 *-*-irix6*)
|
cannam@154
|
6945 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
6946 # options accordingly.
|
cannam@154
|
6947 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
cannam@154
|
6948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
6949 (eval $ac_compile) 2>&5
|
cannam@154
|
6950 ac_status=$?
|
cannam@154
|
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6952 test $ac_status = 0; }; then
|
cannam@154
|
6953 if test yes = "$lt_cv_prog_gnu_ld"; then
|
cannam@154
|
6954 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
6955 *32-bit*)
|
cannam@154
|
6956 LD="${LD-ld} -melf32bsmip"
|
cannam@154
|
6957 ;;
|
cannam@154
|
6958 *N32*)
|
cannam@154
|
6959 LD="${LD-ld} -melf32bmipn32"
|
cannam@154
|
6960 ;;
|
cannam@154
|
6961 *64-bit*)
|
cannam@154
|
6962 LD="${LD-ld} -melf64bmip"
|
cannam@154
|
6963 ;;
|
cannam@154
|
6964 esac
|
cannam@154
|
6965 else
|
cannam@154
|
6966 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
6967 *32-bit*)
|
cannam@154
|
6968 LD="${LD-ld} -32"
|
cannam@154
|
6969 ;;
|
cannam@154
|
6970 *N32*)
|
cannam@154
|
6971 LD="${LD-ld} -n32"
|
cannam@154
|
6972 ;;
|
cannam@154
|
6973 *64-bit*)
|
cannam@154
|
6974 LD="${LD-ld} -64"
|
cannam@154
|
6975 ;;
|
cannam@154
|
6976 esac
|
cannam@154
|
6977 fi
|
cannam@154
|
6978 fi
|
cannam@154
|
6979 rm -rf conftest*
|
cannam@154
|
6980 ;;
|
cannam@154
|
6981
|
cannam@154
|
6982 mips64*-*linux*)
|
cannam@154
|
6983 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
6984 # options accordingly.
|
cannam@154
|
6985 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
|
cannam@154
|
6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
6987 (eval $ac_compile) 2>&5
|
cannam@154
|
6988 ac_status=$?
|
cannam@154
|
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
6990 test $ac_status = 0; }; then
|
cannam@154
|
6991 emul=elf
|
cannam@154
|
6992 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
6993 *32-bit*)
|
cannam@154
|
6994 emul="${emul}32"
|
cannam@154
|
6995 ;;
|
cannam@154
|
6996 *64-bit*)
|
cannam@154
|
6997 emul="${emul}64"
|
cannam@154
|
6998 ;;
|
cannam@154
|
6999 esac
|
cannam@154
|
7000 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
7001 *MSB*)
|
cannam@154
|
7002 emul="${emul}btsmip"
|
cannam@154
|
7003 ;;
|
cannam@154
|
7004 *LSB*)
|
cannam@154
|
7005 emul="${emul}ltsmip"
|
cannam@154
|
7006 ;;
|
cannam@154
|
7007 esac
|
cannam@154
|
7008 case `/usr/bin/file conftest.$ac_objext` in
|
cannam@154
|
7009 *N32*)
|
cannam@154
|
7010 emul="${emul}n32"
|
cannam@154
|
7011 ;;
|
cannam@154
|
7012 esac
|
cannam@154
|
7013 LD="${LD-ld} -m $emul"
|
cannam@154
|
7014 fi
|
cannam@154
|
7015 rm -rf conftest*
|
cannam@154
|
7016 ;;
|
cannam@154
|
7017
|
cannam@154
|
7018 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
|
cannam@154
|
7019 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
|
cannam@154
|
7020 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
7021 # options accordingly. Note that the listed cases only cover the
|
cannam@154
|
7022 # situations where additional linker options are needed (such as when
|
cannam@154
|
7023 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
|
cannam@154
|
7024 # vice versa); the common cases where no linker options are needed do
|
cannam@154
|
7025 # not appear in the list.
|
cannam@154
|
7026 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
7027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
7028 (eval $ac_compile) 2>&5
|
cannam@154
|
7029 ac_status=$?
|
cannam@154
|
7030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
7031 test $ac_status = 0; }; then
|
cannam@154
|
7032 case `/usr/bin/file conftest.o` in
|
cannam@154
|
7033 *32-bit*)
|
cannam@154
|
7034 case $host in
|
cannam@154
|
7035 x86_64-*kfreebsd*-gnu)
|
cannam@154
|
7036 LD="${LD-ld} -m elf_i386_fbsd"
|
cannam@154
|
7037 ;;
|
cannam@154
|
7038 x86_64-*linux*)
|
cannam@154
|
7039 case `/usr/bin/file conftest.o` in
|
cannam@154
|
7040 *x86-64*)
|
cannam@154
|
7041 LD="${LD-ld} -m elf32_x86_64"
|
cannam@154
|
7042 ;;
|
cannam@154
|
7043 *)
|
cannam@154
|
7044 LD="${LD-ld} -m elf_i386"
|
cannam@154
|
7045 ;;
|
cannam@154
|
7046 esac
|
cannam@154
|
7047 ;;
|
cannam@154
|
7048 powerpc64le-*linux*)
|
cannam@154
|
7049 LD="${LD-ld} -m elf32lppclinux"
|
cannam@154
|
7050 ;;
|
cannam@154
|
7051 powerpc64-*linux*)
|
cannam@154
|
7052 LD="${LD-ld} -m elf32ppclinux"
|
cannam@154
|
7053 ;;
|
cannam@154
|
7054 s390x-*linux*)
|
cannam@154
|
7055 LD="${LD-ld} -m elf_s390"
|
cannam@154
|
7056 ;;
|
cannam@154
|
7057 sparc64-*linux*)
|
cannam@154
|
7058 LD="${LD-ld} -m elf32_sparc"
|
cannam@154
|
7059 ;;
|
cannam@154
|
7060 esac
|
cannam@154
|
7061 ;;
|
cannam@154
|
7062 *64-bit*)
|
cannam@154
|
7063 case $host in
|
cannam@154
|
7064 x86_64-*kfreebsd*-gnu)
|
cannam@154
|
7065 LD="${LD-ld} -m elf_x86_64_fbsd"
|
cannam@154
|
7066 ;;
|
cannam@154
|
7067 x86_64-*linux*)
|
cannam@154
|
7068 LD="${LD-ld} -m elf_x86_64"
|
cannam@154
|
7069 ;;
|
cannam@154
|
7070 powerpcle-*linux*)
|
cannam@154
|
7071 LD="${LD-ld} -m elf64lppc"
|
cannam@154
|
7072 ;;
|
cannam@154
|
7073 powerpc-*linux*)
|
cannam@154
|
7074 LD="${LD-ld} -m elf64ppc"
|
cannam@154
|
7075 ;;
|
cannam@154
|
7076 s390*-*linux*|s390*-*tpf*)
|
cannam@154
|
7077 LD="${LD-ld} -m elf64_s390"
|
cannam@154
|
7078 ;;
|
cannam@154
|
7079 sparc*-*linux*)
|
cannam@154
|
7080 LD="${LD-ld} -m elf64_sparc"
|
cannam@154
|
7081 ;;
|
cannam@154
|
7082 esac
|
cannam@154
|
7083 ;;
|
cannam@154
|
7084 esac
|
cannam@154
|
7085 fi
|
cannam@154
|
7086 rm -rf conftest*
|
cannam@154
|
7087 ;;
|
cannam@154
|
7088
|
cannam@154
|
7089 *-*-sco3.2v5*)
|
cannam@154
|
7090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
cannam@154
|
7091 SAVE_CFLAGS=$CFLAGS
|
cannam@154
|
7092 CFLAGS="$CFLAGS -belf"
|
cannam@154
|
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
|
cannam@154
|
7094 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
|
cannam@154
|
7095 if ${lt_cv_cc_needs_belf+:} false; then :
|
cannam@154
|
7096 $as_echo_n "(cached) " >&6
|
cannam@154
|
7097 else
|
cannam@154
|
7098 ac_ext=c
|
cannam@154
|
7099 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
7103
|
cannam@154
|
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
7105 /* end confdefs.h. */
|
cannam@154
|
7106
|
cannam@154
|
7107 int
|
cannam@154
|
7108 main ()
|
cannam@154
|
7109 {
|
cannam@154
|
7110
|
cannam@154
|
7111 ;
|
cannam@154
|
7112 return 0;
|
cannam@154
|
7113 }
|
cannam@154
|
7114 _ACEOF
|
cannam@154
|
7115 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
7116 lt_cv_cc_needs_belf=yes
|
cannam@154
|
7117 else
|
cannam@154
|
7118 lt_cv_cc_needs_belf=no
|
cannam@154
|
7119 fi
|
cannam@154
|
7120 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
7121 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
7122 ac_ext=c
|
cannam@154
|
7123 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
7124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
7125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
7126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
7127
|
cannam@154
|
7128 fi
|
cannam@154
|
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
|
cannam@154
|
7130 $as_echo "$lt_cv_cc_needs_belf" >&6; }
|
cannam@154
|
7131 if test yes != "$lt_cv_cc_needs_belf"; then
|
cannam@154
|
7132 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
|
cannam@154
|
7133 CFLAGS=$SAVE_CFLAGS
|
cannam@154
|
7134 fi
|
cannam@154
|
7135 ;;
|
cannam@154
|
7136 *-*solaris*)
|
cannam@154
|
7137 # Find out what ABI is being produced by ac_compile, and set linker
|
cannam@154
|
7138 # options accordingly.
|
cannam@154
|
7139 echo 'int i;' > conftest.$ac_ext
|
cannam@154
|
7140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
7141 (eval $ac_compile) 2>&5
|
cannam@154
|
7142 ac_status=$?
|
cannam@154
|
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
7144 test $ac_status = 0; }; then
|
cannam@154
|
7145 case `/usr/bin/file conftest.o` in
|
cannam@154
|
7146 *64-bit*)
|
cannam@154
|
7147 case $lt_cv_prog_gnu_ld in
|
cannam@154
|
7148 yes*)
|
cannam@154
|
7149 case $host in
|
cannam@154
|
7150 i?86-*-solaris*|x86_64-*-solaris*)
|
cannam@154
|
7151 LD="${LD-ld} -m elf_x86_64"
|
cannam@154
|
7152 ;;
|
cannam@154
|
7153 sparc*-*-solaris*)
|
cannam@154
|
7154 LD="${LD-ld} -m elf64_sparc"
|
cannam@154
|
7155 ;;
|
cannam@154
|
7156 esac
|
cannam@154
|
7157 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
|
cannam@154
|
7158 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
|
cannam@154
|
7159 LD=${LD-ld}_sol2
|
cannam@154
|
7160 fi
|
cannam@154
|
7161 ;;
|
cannam@154
|
7162 *)
|
cannam@154
|
7163 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
|
cannam@154
|
7164 LD="${LD-ld} -64"
|
cannam@154
|
7165 fi
|
cannam@154
|
7166 ;;
|
cannam@154
|
7167 esac
|
cannam@154
|
7168 ;;
|
cannam@154
|
7169 esac
|
cannam@154
|
7170 fi
|
cannam@154
|
7171 rm -rf conftest*
|
cannam@154
|
7172 ;;
|
cannam@154
|
7173 esac
|
cannam@154
|
7174
|
cannam@154
|
7175 need_locks=$enable_libtool_lock
|
cannam@154
|
7176
|
cannam@154
|
7177 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7178 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
|
cannam@154
|
7179 set dummy ${ac_tool_prefix}mt; ac_word=$2
|
cannam@154
|
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7181 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7182 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
|
cannam@154
|
7183 $as_echo_n "(cached) " >&6
|
cannam@154
|
7184 else
|
cannam@154
|
7185 if test -n "$MANIFEST_TOOL"; then
|
cannam@154
|
7186 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
|
cannam@154
|
7187 else
|
cannam@154
|
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7189 for as_dir in $PATH
|
cannam@154
|
7190 do
|
cannam@154
|
7191 IFS=$as_save_IFS
|
cannam@154
|
7192 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7193 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7195 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
|
cannam@154
|
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7197 break 2
|
cannam@154
|
7198 fi
|
cannam@154
|
7199 done
|
cannam@154
|
7200 done
|
cannam@154
|
7201 IFS=$as_save_IFS
|
cannam@154
|
7202
|
cannam@154
|
7203 fi
|
cannam@154
|
7204 fi
|
cannam@154
|
7205 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
|
cannam@154
|
7206 if test -n "$MANIFEST_TOOL"; then
|
cannam@154
|
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
|
cannam@154
|
7208 $as_echo "$MANIFEST_TOOL" >&6; }
|
cannam@154
|
7209 else
|
cannam@154
|
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7211 $as_echo "no" >&6; }
|
cannam@154
|
7212 fi
|
cannam@154
|
7213
|
cannam@154
|
7214
|
cannam@154
|
7215 fi
|
cannam@154
|
7216 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
|
cannam@154
|
7217 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
|
cannam@154
|
7218 # Extract the first word of "mt", so it can be a program name with args.
|
cannam@154
|
7219 set dummy mt; ac_word=$2
|
cannam@154
|
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7221 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7222 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
|
cannam@154
|
7223 $as_echo_n "(cached) " >&6
|
cannam@154
|
7224 else
|
cannam@154
|
7225 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
cannam@154
|
7226 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
|
cannam@154
|
7227 else
|
cannam@154
|
7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7229 for as_dir in $PATH
|
cannam@154
|
7230 do
|
cannam@154
|
7231 IFS=$as_save_IFS
|
cannam@154
|
7232 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7233 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7235 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
|
cannam@154
|
7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7237 break 2
|
cannam@154
|
7238 fi
|
cannam@154
|
7239 done
|
cannam@154
|
7240 done
|
cannam@154
|
7241 IFS=$as_save_IFS
|
cannam@154
|
7242
|
cannam@154
|
7243 fi
|
cannam@154
|
7244 fi
|
cannam@154
|
7245 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
|
cannam@154
|
7246 if test -n "$ac_ct_MANIFEST_TOOL"; then
|
cannam@154
|
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
|
cannam@154
|
7248 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
|
cannam@154
|
7249 else
|
cannam@154
|
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7251 $as_echo "no" >&6; }
|
cannam@154
|
7252 fi
|
cannam@154
|
7253
|
cannam@154
|
7254 if test "x$ac_ct_MANIFEST_TOOL" = x; then
|
cannam@154
|
7255 MANIFEST_TOOL=":"
|
cannam@154
|
7256 else
|
cannam@154
|
7257 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7258 yes:)
|
cannam@154
|
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7261 ac_tool_warned=yes ;;
|
cannam@154
|
7262 esac
|
cannam@154
|
7263 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
|
cannam@154
|
7264 fi
|
cannam@154
|
7265 else
|
cannam@154
|
7266 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
|
cannam@154
|
7267 fi
|
cannam@154
|
7268
|
cannam@154
|
7269 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
|
cannam@154
|
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
|
cannam@154
|
7271 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
|
cannam@154
|
7272 if ${lt_cv_path_mainfest_tool+:} false; then :
|
cannam@154
|
7273 $as_echo_n "(cached) " >&6
|
cannam@154
|
7274 else
|
cannam@154
|
7275 lt_cv_path_mainfest_tool=no
|
cannam@154
|
7276 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
|
cannam@154
|
7277 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
|
cannam@154
|
7278 cat conftest.err >&5
|
cannam@154
|
7279 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
|
cannam@154
|
7280 lt_cv_path_mainfest_tool=yes
|
cannam@154
|
7281 fi
|
cannam@154
|
7282 rm -f conftest*
|
cannam@154
|
7283 fi
|
cannam@154
|
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
|
cannam@154
|
7285 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
|
cannam@154
|
7286 if test yes != "$lt_cv_path_mainfest_tool"; then
|
cannam@154
|
7287 MANIFEST_TOOL=:
|
cannam@154
|
7288 fi
|
cannam@154
|
7289
|
cannam@154
|
7290
|
cannam@154
|
7291
|
cannam@154
|
7292
|
cannam@154
|
7293
|
cannam@154
|
7294
|
cannam@154
|
7295 case $host_os in
|
cannam@154
|
7296 rhapsody* | darwin*)
|
cannam@154
|
7297 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7298 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
|
cannam@154
|
7299 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
|
cannam@154
|
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7301 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7302 if ${ac_cv_prog_DSYMUTIL+:} false; then :
|
cannam@154
|
7303 $as_echo_n "(cached) " >&6
|
cannam@154
|
7304 else
|
cannam@154
|
7305 if test -n "$DSYMUTIL"; then
|
cannam@154
|
7306 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
|
cannam@154
|
7307 else
|
cannam@154
|
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7309 for as_dir in $PATH
|
cannam@154
|
7310 do
|
cannam@154
|
7311 IFS=$as_save_IFS
|
cannam@154
|
7312 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7313 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7315 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
|
cannam@154
|
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7317 break 2
|
cannam@154
|
7318 fi
|
cannam@154
|
7319 done
|
cannam@154
|
7320 done
|
cannam@154
|
7321 IFS=$as_save_IFS
|
cannam@154
|
7322
|
cannam@154
|
7323 fi
|
cannam@154
|
7324 fi
|
cannam@154
|
7325 DSYMUTIL=$ac_cv_prog_DSYMUTIL
|
cannam@154
|
7326 if test -n "$DSYMUTIL"; then
|
cannam@154
|
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
|
cannam@154
|
7328 $as_echo "$DSYMUTIL" >&6; }
|
cannam@154
|
7329 else
|
cannam@154
|
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7331 $as_echo "no" >&6; }
|
cannam@154
|
7332 fi
|
cannam@154
|
7333
|
cannam@154
|
7334
|
cannam@154
|
7335 fi
|
cannam@154
|
7336 if test -z "$ac_cv_prog_DSYMUTIL"; then
|
cannam@154
|
7337 ac_ct_DSYMUTIL=$DSYMUTIL
|
cannam@154
|
7338 # Extract the first word of "dsymutil", so it can be a program name with args.
|
cannam@154
|
7339 set dummy dsymutil; ac_word=$2
|
cannam@154
|
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7341 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7342 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
|
cannam@154
|
7343 $as_echo_n "(cached) " >&6
|
cannam@154
|
7344 else
|
cannam@154
|
7345 if test -n "$ac_ct_DSYMUTIL"; then
|
cannam@154
|
7346 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
|
cannam@154
|
7347 else
|
cannam@154
|
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7349 for as_dir in $PATH
|
cannam@154
|
7350 do
|
cannam@154
|
7351 IFS=$as_save_IFS
|
cannam@154
|
7352 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7353 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7355 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
|
cannam@154
|
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7357 break 2
|
cannam@154
|
7358 fi
|
cannam@154
|
7359 done
|
cannam@154
|
7360 done
|
cannam@154
|
7361 IFS=$as_save_IFS
|
cannam@154
|
7362
|
cannam@154
|
7363 fi
|
cannam@154
|
7364 fi
|
cannam@154
|
7365 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
|
cannam@154
|
7366 if test -n "$ac_ct_DSYMUTIL"; then
|
cannam@154
|
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
|
cannam@154
|
7368 $as_echo "$ac_ct_DSYMUTIL" >&6; }
|
cannam@154
|
7369 else
|
cannam@154
|
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7371 $as_echo "no" >&6; }
|
cannam@154
|
7372 fi
|
cannam@154
|
7373
|
cannam@154
|
7374 if test "x$ac_ct_DSYMUTIL" = x; then
|
cannam@154
|
7375 DSYMUTIL=":"
|
cannam@154
|
7376 else
|
cannam@154
|
7377 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7378 yes:)
|
cannam@154
|
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7381 ac_tool_warned=yes ;;
|
cannam@154
|
7382 esac
|
cannam@154
|
7383 DSYMUTIL=$ac_ct_DSYMUTIL
|
cannam@154
|
7384 fi
|
cannam@154
|
7385 else
|
cannam@154
|
7386 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
|
cannam@154
|
7387 fi
|
cannam@154
|
7388
|
cannam@154
|
7389 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
|
cannam@154
|
7391 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
|
cannam@154
|
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7393 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7394 if ${ac_cv_prog_NMEDIT+:} false; then :
|
cannam@154
|
7395 $as_echo_n "(cached) " >&6
|
cannam@154
|
7396 else
|
cannam@154
|
7397 if test -n "$NMEDIT"; then
|
cannam@154
|
7398 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
|
cannam@154
|
7399 else
|
cannam@154
|
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7401 for as_dir in $PATH
|
cannam@154
|
7402 do
|
cannam@154
|
7403 IFS=$as_save_IFS
|
cannam@154
|
7404 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7405 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7407 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
|
cannam@154
|
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7409 break 2
|
cannam@154
|
7410 fi
|
cannam@154
|
7411 done
|
cannam@154
|
7412 done
|
cannam@154
|
7413 IFS=$as_save_IFS
|
cannam@154
|
7414
|
cannam@154
|
7415 fi
|
cannam@154
|
7416 fi
|
cannam@154
|
7417 NMEDIT=$ac_cv_prog_NMEDIT
|
cannam@154
|
7418 if test -n "$NMEDIT"; then
|
cannam@154
|
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
|
cannam@154
|
7420 $as_echo "$NMEDIT" >&6; }
|
cannam@154
|
7421 else
|
cannam@154
|
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7423 $as_echo "no" >&6; }
|
cannam@154
|
7424 fi
|
cannam@154
|
7425
|
cannam@154
|
7426
|
cannam@154
|
7427 fi
|
cannam@154
|
7428 if test -z "$ac_cv_prog_NMEDIT"; then
|
cannam@154
|
7429 ac_ct_NMEDIT=$NMEDIT
|
cannam@154
|
7430 # Extract the first word of "nmedit", so it can be a program name with args.
|
cannam@154
|
7431 set dummy nmedit; ac_word=$2
|
cannam@154
|
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7433 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7434 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
|
cannam@154
|
7435 $as_echo_n "(cached) " >&6
|
cannam@154
|
7436 else
|
cannam@154
|
7437 if test -n "$ac_ct_NMEDIT"; then
|
cannam@154
|
7438 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
|
cannam@154
|
7439 else
|
cannam@154
|
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7441 for as_dir in $PATH
|
cannam@154
|
7442 do
|
cannam@154
|
7443 IFS=$as_save_IFS
|
cannam@154
|
7444 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7445 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7447 ac_cv_prog_ac_ct_NMEDIT="nmedit"
|
cannam@154
|
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7449 break 2
|
cannam@154
|
7450 fi
|
cannam@154
|
7451 done
|
cannam@154
|
7452 done
|
cannam@154
|
7453 IFS=$as_save_IFS
|
cannam@154
|
7454
|
cannam@154
|
7455 fi
|
cannam@154
|
7456 fi
|
cannam@154
|
7457 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
|
cannam@154
|
7458 if test -n "$ac_ct_NMEDIT"; then
|
cannam@154
|
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
|
cannam@154
|
7460 $as_echo "$ac_ct_NMEDIT" >&6; }
|
cannam@154
|
7461 else
|
cannam@154
|
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7463 $as_echo "no" >&6; }
|
cannam@154
|
7464 fi
|
cannam@154
|
7465
|
cannam@154
|
7466 if test "x$ac_ct_NMEDIT" = x; then
|
cannam@154
|
7467 NMEDIT=":"
|
cannam@154
|
7468 else
|
cannam@154
|
7469 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7470 yes:)
|
cannam@154
|
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7473 ac_tool_warned=yes ;;
|
cannam@154
|
7474 esac
|
cannam@154
|
7475 NMEDIT=$ac_ct_NMEDIT
|
cannam@154
|
7476 fi
|
cannam@154
|
7477 else
|
cannam@154
|
7478 NMEDIT="$ac_cv_prog_NMEDIT"
|
cannam@154
|
7479 fi
|
cannam@154
|
7480
|
cannam@154
|
7481 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7482 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
|
cannam@154
|
7483 set dummy ${ac_tool_prefix}lipo; ac_word=$2
|
cannam@154
|
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7485 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7486 if ${ac_cv_prog_LIPO+:} false; then :
|
cannam@154
|
7487 $as_echo_n "(cached) " >&6
|
cannam@154
|
7488 else
|
cannam@154
|
7489 if test -n "$LIPO"; then
|
cannam@154
|
7490 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
|
cannam@154
|
7491 else
|
cannam@154
|
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7493 for as_dir in $PATH
|
cannam@154
|
7494 do
|
cannam@154
|
7495 IFS=$as_save_IFS
|
cannam@154
|
7496 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7497 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7499 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
|
cannam@154
|
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7501 break 2
|
cannam@154
|
7502 fi
|
cannam@154
|
7503 done
|
cannam@154
|
7504 done
|
cannam@154
|
7505 IFS=$as_save_IFS
|
cannam@154
|
7506
|
cannam@154
|
7507 fi
|
cannam@154
|
7508 fi
|
cannam@154
|
7509 LIPO=$ac_cv_prog_LIPO
|
cannam@154
|
7510 if test -n "$LIPO"; then
|
cannam@154
|
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
|
cannam@154
|
7512 $as_echo "$LIPO" >&6; }
|
cannam@154
|
7513 else
|
cannam@154
|
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7515 $as_echo "no" >&6; }
|
cannam@154
|
7516 fi
|
cannam@154
|
7517
|
cannam@154
|
7518
|
cannam@154
|
7519 fi
|
cannam@154
|
7520 if test -z "$ac_cv_prog_LIPO"; then
|
cannam@154
|
7521 ac_ct_LIPO=$LIPO
|
cannam@154
|
7522 # Extract the first word of "lipo", so it can be a program name with args.
|
cannam@154
|
7523 set dummy lipo; ac_word=$2
|
cannam@154
|
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7525 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7526 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
|
cannam@154
|
7527 $as_echo_n "(cached) " >&6
|
cannam@154
|
7528 else
|
cannam@154
|
7529 if test -n "$ac_ct_LIPO"; then
|
cannam@154
|
7530 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
|
cannam@154
|
7531 else
|
cannam@154
|
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7533 for as_dir in $PATH
|
cannam@154
|
7534 do
|
cannam@154
|
7535 IFS=$as_save_IFS
|
cannam@154
|
7536 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7537 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7539 ac_cv_prog_ac_ct_LIPO="lipo"
|
cannam@154
|
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7541 break 2
|
cannam@154
|
7542 fi
|
cannam@154
|
7543 done
|
cannam@154
|
7544 done
|
cannam@154
|
7545 IFS=$as_save_IFS
|
cannam@154
|
7546
|
cannam@154
|
7547 fi
|
cannam@154
|
7548 fi
|
cannam@154
|
7549 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
|
cannam@154
|
7550 if test -n "$ac_ct_LIPO"; then
|
cannam@154
|
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
|
cannam@154
|
7552 $as_echo "$ac_ct_LIPO" >&6; }
|
cannam@154
|
7553 else
|
cannam@154
|
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7555 $as_echo "no" >&6; }
|
cannam@154
|
7556 fi
|
cannam@154
|
7557
|
cannam@154
|
7558 if test "x$ac_ct_LIPO" = x; then
|
cannam@154
|
7559 LIPO=":"
|
cannam@154
|
7560 else
|
cannam@154
|
7561 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7562 yes:)
|
cannam@154
|
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7565 ac_tool_warned=yes ;;
|
cannam@154
|
7566 esac
|
cannam@154
|
7567 LIPO=$ac_ct_LIPO
|
cannam@154
|
7568 fi
|
cannam@154
|
7569 else
|
cannam@154
|
7570 LIPO="$ac_cv_prog_LIPO"
|
cannam@154
|
7571 fi
|
cannam@154
|
7572
|
cannam@154
|
7573 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7574 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
|
cannam@154
|
7575 set dummy ${ac_tool_prefix}otool; ac_word=$2
|
cannam@154
|
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7577 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7578 if ${ac_cv_prog_OTOOL+:} false; then :
|
cannam@154
|
7579 $as_echo_n "(cached) " >&6
|
cannam@154
|
7580 else
|
cannam@154
|
7581 if test -n "$OTOOL"; then
|
cannam@154
|
7582 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
|
cannam@154
|
7583 else
|
cannam@154
|
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7585 for as_dir in $PATH
|
cannam@154
|
7586 do
|
cannam@154
|
7587 IFS=$as_save_IFS
|
cannam@154
|
7588 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7589 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7591 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
|
cannam@154
|
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7593 break 2
|
cannam@154
|
7594 fi
|
cannam@154
|
7595 done
|
cannam@154
|
7596 done
|
cannam@154
|
7597 IFS=$as_save_IFS
|
cannam@154
|
7598
|
cannam@154
|
7599 fi
|
cannam@154
|
7600 fi
|
cannam@154
|
7601 OTOOL=$ac_cv_prog_OTOOL
|
cannam@154
|
7602 if test -n "$OTOOL"; then
|
cannam@154
|
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
|
cannam@154
|
7604 $as_echo "$OTOOL" >&6; }
|
cannam@154
|
7605 else
|
cannam@154
|
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7607 $as_echo "no" >&6; }
|
cannam@154
|
7608 fi
|
cannam@154
|
7609
|
cannam@154
|
7610
|
cannam@154
|
7611 fi
|
cannam@154
|
7612 if test -z "$ac_cv_prog_OTOOL"; then
|
cannam@154
|
7613 ac_ct_OTOOL=$OTOOL
|
cannam@154
|
7614 # Extract the first word of "otool", so it can be a program name with args.
|
cannam@154
|
7615 set dummy otool; ac_word=$2
|
cannam@154
|
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7617 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7618 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
|
cannam@154
|
7619 $as_echo_n "(cached) " >&6
|
cannam@154
|
7620 else
|
cannam@154
|
7621 if test -n "$ac_ct_OTOOL"; then
|
cannam@154
|
7622 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
|
cannam@154
|
7623 else
|
cannam@154
|
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7625 for as_dir in $PATH
|
cannam@154
|
7626 do
|
cannam@154
|
7627 IFS=$as_save_IFS
|
cannam@154
|
7628 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7629 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7631 ac_cv_prog_ac_ct_OTOOL="otool"
|
cannam@154
|
7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7633 break 2
|
cannam@154
|
7634 fi
|
cannam@154
|
7635 done
|
cannam@154
|
7636 done
|
cannam@154
|
7637 IFS=$as_save_IFS
|
cannam@154
|
7638
|
cannam@154
|
7639 fi
|
cannam@154
|
7640 fi
|
cannam@154
|
7641 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
|
cannam@154
|
7642 if test -n "$ac_ct_OTOOL"; then
|
cannam@154
|
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
|
cannam@154
|
7644 $as_echo "$ac_ct_OTOOL" >&6; }
|
cannam@154
|
7645 else
|
cannam@154
|
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7647 $as_echo "no" >&6; }
|
cannam@154
|
7648 fi
|
cannam@154
|
7649
|
cannam@154
|
7650 if test "x$ac_ct_OTOOL" = x; then
|
cannam@154
|
7651 OTOOL=":"
|
cannam@154
|
7652 else
|
cannam@154
|
7653 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7654 yes:)
|
cannam@154
|
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7657 ac_tool_warned=yes ;;
|
cannam@154
|
7658 esac
|
cannam@154
|
7659 OTOOL=$ac_ct_OTOOL
|
cannam@154
|
7660 fi
|
cannam@154
|
7661 else
|
cannam@154
|
7662 OTOOL="$ac_cv_prog_OTOOL"
|
cannam@154
|
7663 fi
|
cannam@154
|
7664
|
cannam@154
|
7665 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
7666 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
|
cannam@154
|
7667 set dummy ${ac_tool_prefix}otool64; ac_word=$2
|
cannam@154
|
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7669 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7670 if ${ac_cv_prog_OTOOL64+:} false; then :
|
cannam@154
|
7671 $as_echo_n "(cached) " >&6
|
cannam@154
|
7672 else
|
cannam@154
|
7673 if test -n "$OTOOL64"; then
|
cannam@154
|
7674 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
|
cannam@154
|
7675 else
|
cannam@154
|
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7677 for as_dir in $PATH
|
cannam@154
|
7678 do
|
cannam@154
|
7679 IFS=$as_save_IFS
|
cannam@154
|
7680 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7681 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7683 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
|
cannam@154
|
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7685 break 2
|
cannam@154
|
7686 fi
|
cannam@154
|
7687 done
|
cannam@154
|
7688 done
|
cannam@154
|
7689 IFS=$as_save_IFS
|
cannam@154
|
7690
|
cannam@154
|
7691 fi
|
cannam@154
|
7692 fi
|
cannam@154
|
7693 OTOOL64=$ac_cv_prog_OTOOL64
|
cannam@154
|
7694 if test -n "$OTOOL64"; then
|
cannam@154
|
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
|
cannam@154
|
7696 $as_echo "$OTOOL64" >&6; }
|
cannam@154
|
7697 else
|
cannam@154
|
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7699 $as_echo "no" >&6; }
|
cannam@154
|
7700 fi
|
cannam@154
|
7701
|
cannam@154
|
7702
|
cannam@154
|
7703 fi
|
cannam@154
|
7704 if test -z "$ac_cv_prog_OTOOL64"; then
|
cannam@154
|
7705 ac_ct_OTOOL64=$OTOOL64
|
cannam@154
|
7706 # Extract the first word of "otool64", so it can be a program name with args.
|
cannam@154
|
7707 set dummy otool64; ac_word=$2
|
cannam@154
|
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
7709 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
7710 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
|
cannam@154
|
7711 $as_echo_n "(cached) " >&6
|
cannam@154
|
7712 else
|
cannam@154
|
7713 if test -n "$ac_ct_OTOOL64"; then
|
cannam@154
|
7714 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
|
cannam@154
|
7715 else
|
cannam@154
|
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
7717 for as_dir in $PATH
|
cannam@154
|
7718 do
|
cannam@154
|
7719 IFS=$as_save_IFS
|
cannam@154
|
7720 test -z "$as_dir" && as_dir=.
|
cannam@154
|
7721 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
7723 ac_cv_prog_ac_ct_OTOOL64="otool64"
|
cannam@154
|
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
7725 break 2
|
cannam@154
|
7726 fi
|
cannam@154
|
7727 done
|
cannam@154
|
7728 done
|
cannam@154
|
7729 IFS=$as_save_IFS
|
cannam@154
|
7730
|
cannam@154
|
7731 fi
|
cannam@154
|
7732 fi
|
cannam@154
|
7733 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
|
cannam@154
|
7734 if test -n "$ac_ct_OTOOL64"; then
|
cannam@154
|
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
|
cannam@154
|
7736 $as_echo "$ac_ct_OTOOL64" >&6; }
|
cannam@154
|
7737 else
|
cannam@154
|
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
7739 $as_echo "no" >&6; }
|
cannam@154
|
7740 fi
|
cannam@154
|
7741
|
cannam@154
|
7742 if test "x$ac_ct_OTOOL64" = x; then
|
cannam@154
|
7743 OTOOL64=":"
|
cannam@154
|
7744 else
|
cannam@154
|
7745 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
7746 yes:)
|
cannam@154
|
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
7748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
7749 ac_tool_warned=yes ;;
|
cannam@154
|
7750 esac
|
cannam@154
|
7751 OTOOL64=$ac_ct_OTOOL64
|
cannam@154
|
7752 fi
|
cannam@154
|
7753 else
|
cannam@154
|
7754 OTOOL64="$ac_cv_prog_OTOOL64"
|
cannam@154
|
7755 fi
|
cannam@154
|
7756
|
cannam@154
|
7757
|
cannam@154
|
7758
|
cannam@154
|
7759
|
cannam@154
|
7760
|
cannam@154
|
7761
|
cannam@154
|
7762
|
cannam@154
|
7763
|
cannam@154
|
7764
|
cannam@154
|
7765
|
cannam@154
|
7766
|
cannam@154
|
7767
|
cannam@154
|
7768
|
cannam@154
|
7769
|
cannam@154
|
7770
|
cannam@154
|
7771
|
cannam@154
|
7772
|
cannam@154
|
7773
|
cannam@154
|
7774
|
cannam@154
|
7775
|
cannam@154
|
7776
|
cannam@154
|
7777
|
cannam@154
|
7778
|
cannam@154
|
7779
|
cannam@154
|
7780
|
cannam@154
|
7781
|
cannam@154
|
7782
|
cannam@154
|
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
|
cannam@154
|
7784 $as_echo_n "checking for -single_module linker flag... " >&6; }
|
cannam@154
|
7785 if ${lt_cv_apple_cc_single_mod+:} false; then :
|
cannam@154
|
7786 $as_echo_n "(cached) " >&6
|
cannam@154
|
7787 else
|
cannam@154
|
7788 lt_cv_apple_cc_single_mod=no
|
cannam@154
|
7789 if test -z "$LT_MULTI_MODULE"; then
|
cannam@154
|
7790 # By default we will add the -single_module flag. You can override
|
cannam@154
|
7791 # by either setting the environment variable LT_MULTI_MODULE
|
cannam@154
|
7792 # non-empty at configure time, or by adding -multi_module to the
|
cannam@154
|
7793 # link flags.
|
cannam@154
|
7794 rm -rf libconftest.dylib*
|
cannam@154
|
7795 echo "int foo(void){return 1;}" > conftest.c
|
cannam@154
|
7796 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@154
|
7797 -dynamiclib -Wl,-single_module conftest.c" >&5
|
cannam@154
|
7798 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
|
cannam@154
|
7799 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
|
cannam@154
|
7800 _lt_result=$?
|
cannam@154
|
7801 # If there is a non-empty error log, and "single_module"
|
cannam@154
|
7802 # appears in it, assume the flag caused a linker warning
|
cannam@154
|
7803 if test -s conftest.err && $GREP single_module conftest.err; then
|
cannam@154
|
7804 cat conftest.err >&5
|
cannam@154
|
7805 # Otherwise, if the output was created with a 0 exit code from
|
cannam@154
|
7806 # the compiler, it worked.
|
cannam@154
|
7807 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
|
cannam@154
|
7808 lt_cv_apple_cc_single_mod=yes
|
cannam@154
|
7809 else
|
cannam@154
|
7810 cat conftest.err >&5
|
cannam@154
|
7811 fi
|
cannam@154
|
7812 rm -rf libconftest.dylib*
|
cannam@154
|
7813 rm -f conftest.*
|
cannam@154
|
7814 fi
|
cannam@154
|
7815 fi
|
cannam@154
|
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
|
cannam@154
|
7817 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
|
cannam@154
|
7818
|
cannam@154
|
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
|
cannam@154
|
7820 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
|
cannam@154
|
7821 if ${lt_cv_ld_exported_symbols_list+:} false; then :
|
cannam@154
|
7822 $as_echo_n "(cached) " >&6
|
cannam@154
|
7823 else
|
cannam@154
|
7824 lt_cv_ld_exported_symbols_list=no
|
cannam@154
|
7825 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
7826 echo "_main" > conftest.sym
|
cannam@154
|
7827 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
|
cannam@154
|
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
7829 /* end confdefs.h. */
|
cannam@154
|
7830
|
cannam@154
|
7831 int
|
cannam@154
|
7832 main ()
|
cannam@154
|
7833 {
|
cannam@154
|
7834
|
cannam@154
|
7835 ;
|
cannam@154
|
7836 return 0;
|
cannam@154
|
7837 }
|
cannam@154
|
7838 _ACEOF
|
cannam@154
|
7839 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
7840 lt_cv_ld_exported_symbols_list=yes
|
cannam@154
|
7841 else
|
cannam@154
|
7842 lt_cv_ld_exported_symbols_list=no
|
cannam@154
|
7843 fi
|
cannam@154
|
7844 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
7845 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
7846 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
7847
|
cannam@154
|
7848 fi
|
cannam@154
|
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
|
cannam@154
|
7850 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
|
cannam@154
|
7851
|
cannam@154
|
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
|
cannam@154
|
7853 $as_echo_n "checking for -force_load linker flag... " >&6; }
|
cannam@154
|
7854 if ${lt_cv_ld_force_load+:} false; then :
|
cannam@154
|
7855 $as_echo_n "(cached) " >&6
|
cannam@154
|
7856 else
|
cannam@154
|
7857 lt_cv_ld_force_load=no
|
cannam@154
|
7858 cat > conftest.c << _LT_EOF
|
cannam@154
|
7859 int forced_loaded() { return 2;}
|
cannam@154
|
7860 _LT_EOF
|
cannam@154
|
7861 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
|
cannam@154
|
7862 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
|
cannam@154
|
7863 echo "$AR cru libconftest.a conftest.o" >&5
|
cannam@154
|
7864 $AR cru libconftest.a conftest.o 2>&5
|
cannam@154
|
7865 echo "$RANLIB libconftest.a" >&5
|
cannam@154
|
7866 $RANLIB libconftest.a 2>&5
|
cannam@154
|
7867 cat > conftest.c << _LT_EOF
|
cannam@154
|
7868 int main() { return 0;}
|
cannam@154
|
7869 _LT_EOF
|
cannam@154
|
7870 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
|
cannam@154
|
7871 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
|
cannam@154
|
7872 _lt_result=$?
|
cannam@154
|
7873 if test -s conftest.err && $GREP force_load conftest.err; then
|
cannam@154
|
7874 cat conftest.err >&5
|
cannam@154
|
7875 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
|
cannam@154
|
7876 lt_cv_ld_force_load=yes
|
cannam@154
|
7877 else
|
cannam@154
|
7878 cat conftest.err >&5
|
cannam@154
|
7879 fi
|
cannam@154
|
7880 rm -f conftest.err libconftest.a conftest conftest.c
|
cannam@154
|
7881 rm -rf conftest.dSYM
|
cannam@154
|
7882
|
cannam@154
|
7883 fi
|
cannam@154
|
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
|
cannam@154
|
7885 $as_echo "$lt_cv_ld_force_load" >&6; }
|
cannam@154
|
7886 case $host_os in
|
cannam@154
|
7887 rhapsody* | darwin1.[012])
|
cannam@154
|
7888 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
|
cannam@154
|
7889 darwin1.*)
|
cannam@154
|
7890 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
cannam@154
|
7891 darwin*) # darwin 5.x on
|
cannam@154
|
7892 # if running on 10.5 or later, the deployment target defaults
|
cannam@154
|
7893 # to the OS version, if on x86, and 10.4, the deployment
|
cannam@154
|
7894 # target defaults to 10.4. Don't you love it?
|
cannam@154
|
7895 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
|
cannam@154
|
7896 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
|
cannam@154
|
7897 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
cannam@154
|
7898 10.[012][,.]*)
|
cannam@154
|
7899 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
|
cannam@154
|
7900 10.*)
|
cannam@154
|
7901 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
|
cannam@154
|
7902 esac
|
cannam@154
|
7903 ;;
|
cannam@154
|
7904 esac
|
cannam@154
|
7905 if test yes = "$lt_cv_apple_cc_single_mod"; then
|
cannam@154
|
7906 _lt_dar_single_mod='$single_module'
|
cannam@154
|
7907 fi
|
cannam@154
|
7908 if test yes = "$lt_cv_ld_exported_symbols_list"; then
|
cannam@154
|
7909 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
|
cannam@154
|
7910 else
|
cannam@154
|
7911 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
|
cannam@154
|
7912 fi
|
cannam@154
|
7913 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
|
cannam@154
|
7914 _lt_dsymutil='~$DSYMUTIL $lib || :'
|
cannam@154
|
7915 else
|
cannam@154
|
7916 _lt_dsymutil=
|
cannam@154
|
7917 fi
|
cannam@154
|
7918 ;;
|
cannam@154
|
7919 esac
|
cannam@154
|
7920
|
cannam@154
|
7921 # func_munge_path_list VARIABLE PATH
|
cannam@154
|
7922 # -----------------------------------
|
cannam@154
|
7923 # VARIABLE is name of variable containing _space_ separated list of
|
cannam@154
|
7924 # directories to be munged by the contents of PATH, which is string
|
cannam@154
|
7925 # having a format:
|
cannam@154
|
7926 # "DIR[:DIR]:"
|
cannam@154
|
7927 # string "DIR[ DIR]" will be prepended to VARIABLE
|
cannam@154
|
7928 # ":DIR[:DIR]"
|
cannam@154
|
7929 # string "DIR[ DIR]" will be appended to VARIABLE
|
cannam@154
|
7930 # "DIRP[:DIRP]::[DIRA:]DIRA"
|
cannam@154
|
7931 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
cannam@154
|
7932 # "DIRA[ DIRA]" will be appended to VARIABLE
|
cannam@154
|
7933 # "DIR[:DIR]"
|
cannam@154
|
7934 # VARIABLE will be replaced by "DIR[ DIR]"
|
cannam@154
|
7935 func_munge_path_list ()
|
cannam@154
|
7936 {
|
cannam@154
|
7937 case x$2 in
|
cannam@154
|
7938 x)
|
cannam@154
|
7939 ;;
|
cannam@154
|
7940 *:)
|
cannam@154
|
7941 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
cannam@154
|
7942 ;;
|
cannam@154
|
7943 x:*)
|
cannam@154
|
7944 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
cannam@154
|
7945 ;;
|
cannam@154
|
7946 *::*)
|
cannam@154
|
7947 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
cannam@154
|
7948 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
cannam@154
|
7949 ;;
|
cannam@154
|
7950 *)
|
cannam@154
|
7951 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
cannam@154
|
7952 ;;
|
cannam@154
|
7953 esac
|
cannam@154
|
7954 }
|
cannam@154
|
7955
|
cannam@154
|
7956 for ac_header in dlfcn.h
|
cannam@154
|
7957 do :
|
cannam@154
|
7958 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
|
cannam@154
|
7959 "
|
cannam@154
|
7960 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
|
cannam@154
|
7961 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
7962 #define HAVE_DLFCN_H 1
|
cannam@154
|
7963 _ACEOF
|
cannam@154
|
7964
|
cannam@154
|
7965 fi
|
cannam@154
|
7966
|
cannam@154
|
7967 done
|
cannam@154
|
7968
|
cannam@154
|
7969
|
cannam@154
|
7970
|
cannam@154
|
7971
|
cannam@154
|
7972
|
cannam@154
|
7973 # Set options
|
cannam@154
|
7974
|
cannam@154
|
7975
|
cannam@154
|
7976
|
cannam@154
|
7977 enable_dlopen=no
|
cannam@154
|
7978
|
cannam@154
|
7979
|
cannam@154
|
7980 enable_win32_dll=no
|
cannam@154
|
7981
|
cannam@154
|
7982
|
cannam@154
|
7983 # Check whether --enable-shared was given.
|
cannam@154
|
7984 if test "${enable_shared+set}" = set; then :
|
cannam@154
|
7985 enableval=$enable_shared; p=${PACKAGE-default}
|
cannam@154
|
7986 case $enableval in
|
cannam@154
|
7987 yes) enable_shared=yes ;;
|
cannam@154
|
7988 no) enable_shared=no ;;
|
cannam@154
|
7989 *)
|
cannam@154
|
7990 enable_shared=no
|
cannam@154
|
7991 # Look at the argument we got. We use all the common list separators.
|
cannam@154
|
7992 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
cannam@154
|
7993 for pkg in $enableval; do
|
cannam@154
|
7994 IFS=$lt_save_ifs
|
cannam@154
|
7995 if test "X$pkg" = "X$p"; then
|
cannam@154
|
7996 enable_shared=yes
|
cannam@154
|
7997 fi
|
cannam@154
|
7998 done
|
cannam@154
|
7999 IFS=$lt_save_ifs
|
cannam@154
|
8000 ;;
|
cannam@154
|
8001 esac
|
cannam@154
|
8002 else
|
cannam@154
|
8003 enable_shared=yes
|
cannam@154
|
8004 fi
|
cannam@154
|
8005
|
cannam@154
|
8006
|
cannam@154
|
8007
|
cannam@154
|
8008
|
cannam@154
|
8009
|
cannam@154
|
8010
|
cannam@154
|
8011
|
cannam@154
|
8012
|
cannam@154
|
8013
|
cannam@154
|
8014 # Check whether --enable-static was given.
|
cannam@154
|
8015 if test "${enable_static+set}" = set; then :
|
cannam@154
|
8016 enableval=$enable_static; p=${PACKAGE-default}
|
cannam@154
|
8017 case $enableval in
|
cannam@154
|
8018 yes) enable_static=yes ;;
|
cannam@154
|
8019 no) enable_static=no ;;
|
cannam@154
|
8020 *)
|
cannam@154
|
8021 enable_static=no
|
cannam@154
|
8022 # Look at the argument we got. We use all the common list separators.
|
cannam@154
|
8023 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
cannam@154
|
8024 for pkg in $enableval; do
|
cannam@154
|
8025 IFS=$lt_save_ifs
|
cannam@154
|
8026 if test "X$pkg" = "X$p"; then
|
cannam@154
|
8027 enable_static=yes
|
cannam@154
|
8028 fi
|
cannam@154
|
8029 done
|
cannam@154
|
8030 IFS=$lt_save_ifs
|
cannam@154
|
8031 ;;
|
cannam@154
|
8032 esac
|
cannam@154
|
8033 else
|
cannam@154
|
8034 enable_static=yes
|
cannam@154
|
8035 fi
|
cannam@154
|
8036
|
cannam@154
|
8037
|
cannam@154
|
8038
|
cannam@154
|
8039
|
cannam@154
|
8040
|
cannam@154
|
8041
|
cannam@154
|
8042
|
cannam@154
|
8043
|
cannam@154
|
8044
|
cannam@154
|
8045
|
cannam@154
|
8046 # Check whether --with-pic was given.
|
cannam@154
|
8047 if test "${with_pic+set}" = set; then :
|
cannam@154
|
8048 withval=$with_pic; lt_p=${PACKAGE-default}
|
cannam@154
|
8049 case $withval in
|
cannam@154
|
8050 yes|no) pic_mode=$withval ;;
|
cannam@154
|
8051 *)
|
cannam@154
|
8052 pic_mode=default
|
cannam@154
|
8053 # Look at the argument we got. We use all the common list separators.
|
cannam@154
|
8054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
cannam@154
|
8055 for lt_pkg in $withval; do
|
cannam@154
|
8056 IFS=$lt_save_ifs
|
cannam@154
|
8057 if test "X$lt_pkg" = "X$lt_p"; then
|
cannam@154
|
8058 pic_mode=yes
|
cannam@154
|
8059 fi
|
cannam@154
|
8060 done
|
cannam@154
|
8061 IFS=$lt_save_ifs
|
cannam@154
|
8062 ;;
|
cannam@154
|
8063 esac
|
cannam@154
|
8064 else
|
cannam@154
|
8065 pic_mode=default
|
cannam@154
|
8066 fi
|
cannam@154
|
8067
|
cannam@154
|
8068
|
cannam@154
|
8069
|
cannam@154
|
8070
|
cannam@154
|
8071
|
cannam@154
|
8072
|
cannam@154
|
8073
|
cannam@154
|
8074
|
cannam@154
|
8075 # Check whether --enable-fast-install was given.
|
cannam@154
|
8076 if test "${enable_fast_install+set}" = set; then :
|
cannam@154
|
8077 enableval=$enable_fast_install; p=${PACKAGE-default}
|
cannam@154
|
8078 case $enableval in
|
cannam@154
|
8079 yes) enable_fast_install=yes ;;
|
cannam@154
|
8080 no) enable_fast_install=no ;;
|
cannam@154
|
8081 *)
|
cannam@154
|
8082 enable_fast_install=no
|
cannam@154
|
8083 # Look at the argument we got. We use all the common list separators.
|
cannam@154
|
8084 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
|
cannam@154
|
8085 for pkg in $enableval; do
|
cannam@154
|
8086 IFS=$lt_save_ifs
|
cannam@154
|
8087 if test "X$pkg" = "X$p"; then
|
cannam@154
|
8088 enable_fast_install=yes
|
cannam@154
|
8089 fi
|
cannam@154
|
8090 done
|
cannam@154
|
8091 IFS=$lt_save_ifs
|
cannam@154
|
8092 ;;
|
cannam@154
|
8093 esac
|
cannam@154
|
8094 else
|
cannam@154
|
8095 enable_fast_install=yes
|
cannam@154
|
8096 fi
|
cannam@154
|
8097
|
cannam@154
|
8098
|
cannam@154
|
8099
|
cannam@154
|
8100
|
cannam@154
|
8101
|
cannam@154
|
8102
|
cannam@154
|
8103
|
cannam@154
|
8104
|
cannam@154
|
8105 shared_archive_member_spec=
|
cannam@154
|
8106 case $host,$enable_shared in
|
cannam@154
|
8107 power*-*-aix[5-9]*,yes)
|
cannam@154
|
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
|
cannam@154
|
8109 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
|
cannam@154
|
8110
|
cannam@154
|
8111 # Check whether --with-aix-soname was given.
|
cannam@154
|
8112 if test "${with_aix_soname+set}" = set; then :
|
cannam@154
|
8113 withval=$with_aix_soname; case $withval in
|
cannam@154
|
8114 aix|svr4|both)
|
cannam@154
|
8115 ;;
|
cannam@154
|
8116 *)
|
cannam@154
|
8117 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
|
cannam@154
|
8118 ;;
|
cannam@154
|
8119 esac
|
cannam@154
|
8120 lt_cv_with_aix_soname=$with_aix_soname
|
cannam@154
|
8121 else
|
cannam@154
|
8122 if ${lt_cv_with_aix_soname+:} false; then :
|
cannam@154
|
8123 $as_echo_n "(cached) " >&6
|
cannam@154
|
8124 else
|
cannam@154
|
8125 lt_cv_with_aix_soname=aix
|
cannam@154
|
8126 fi
|
cannam@154
|
8127
|
cannam@154
|
8128 with_aix_soname=$lt_cv_with_aix_soname
|
cannam@154
|
8129 fi
|
cannam@154
|
8130
|
cannam@154
|
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
|
cannam@154
|
8132 $as_echo "$with_aix_soname" >&6; }
|
cannam@154
|
8133 if test aix != "$with_aix_soname"; then
|
cannam@154
|
8134 # For the AIX way of multilib, we name the shared archive member
|
cannam@154
|
8135 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
|
cannam@154
|
8136 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
|
cannam@154
|
8137 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
|
cannam@154
|
8138 # the AIX toolchain works better with OBJECT_MODE set (default 32).
|
cannam@154
|
8139 if test 64 = "${OBJECT_MODE-32}"; then
|
cannam@154
|
8140 shared_archive_member_spec=shr_64
|
cannam@154
|
8141 else
|
cannam@154
|
8142 shared_archive_member_spec=shr
|
cannam@154
|
8143 fi
|
cannam@154
|
8144 fi
|
cannam@154
|
8145 ;;
|
cannam@154
|
8146 *)
|
cannam@154
|
8147 with_aix_soname=aix
|
cannam@154
|
8148 ;;
|
cannam@154
|
8149 esac
|
cannam@154
|
8150
|
cannam@154
|
8151
|
cannam@154
|
8152
|
cannam@154
|
8153
|
cannam@154
|
8154
|
cannam@154
|
8155
|
cannam@154
|
8156
|
cannam@154
|
8157
|
cannam@154
|
8158
|
cannam@154
|
8159
|
cannam@154
|
8160 # This can be used to rebuild libtool when needed
|
cannam@154
|
8161 LIBTOOL_DEPS=$ltmain
|
cannam@154
|
8162
|
cannam@154
|
8163 # Always use our own libtool.
|
cannam@154
|
8164 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
|
cannam@154
|
8165
|
cannam@154
|
8166
|
cannam@154
|
8167
|
cannam@154
|
8168
|
cannam@154
|
8169
|
cannam@154
|
8170
|
cannam@154
|
8171
|
cannam@154
|
8172
|
cannam@154
|
8173
|
cannam@154
|
8174
|
cannam@154
|
8175
|
cannam@154
|
8176
|
cannam@154
|
8177
|
cannam@154
|
8178
|
cannam@154
|
8179
|
cannam@154
|
8180
|
cannam@154
|
8181
|
cannam@154
|
8182
|
cannam@154
|
8183
|
cannam@154
|
8184
|
cannam@154
|
8185
|
cannam@154
|
8186
|
cannam@154
|
8187
|
cannam@154
|
8188
|
cannam@154
|
8189
|
cannam@154
|
8190
|
cannam@154
|
8191
|
cannam@154
|
8192
|
cannam@154
|
8193
|
cannam@154
|
8194
|
cannam@154
|
8195 test -z "$LN_S" && LN_S="ln -s"
|
cannam@154
|
8196
|
cannam@154
|
8197
|
cannam@154
|
8198
|
cannam@154
|
8199
|
cannam@154
|
8200
|
cannam@154
|
8201
|
cannam@154
|
8202
|
cannam@154
|
8203
|
cannam@154
|
8204
|
cannam@154
|
8205
|
cannam@154
|
8206
|
cannam@154
|
8207
|
cannam@154
|
8208
|
cannam@154
|
8209
|
cannam@154
|
8210 if test -n "${ZSH_VERSION+set}"; then
|
cannam@154
|
8211 setopt NO_GLOB_SUBST
|
cannam@154
|
8212 fi
|
cannam@154
|
8213
|
cannam@154
|
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
|
cannam@154
|
8215 $as_echo_n "checking for objdir... " >&6; }
|
cannam@154
|
8216 if ${lt_cv_objdir+:} false; then :
|
cannam@154
|
8217 $as_echo_n "(cached) " >&6
|
cannam@154
|
8218 else
|
cannam@154
|
8219 rm -f .libs 2>/dev/null
|
cannam@154
|
8220 mkdir .libs 2>/dev/null
|
cannam@154
|
8221 if test -d .libs; then
|
cannam@154
|
8222 lt_cv_objdir=.libs
|
cannam@154
|
8223 else
|
cannam@154
|
8224 # MS-DOS does not allow filenames that begin with a dot.
|
cannam@154
|
8225 lt_cv_objdir=_libs
|
cannam@154
|
8226 fi
|
cannam@154
|
8227 rmdir .libs 2>/dev/null
|
cannam@154
|
8228 fi
|
cannam@154
|
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
|
cannam@154
|
8230 $as_echo "$lt_cv_objdir" >&6; }
|
cannam@154
|
8231 objdir=$lt_cv_objdir
|
cannam@154
|
8232
|
cannam@154
|
8233
|
cannam@154
|
8234
|
cannam@154
|
8235
|
cannam@154
|
8236
|
cannam@154
|
8237 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
8238 #define LT_OBJDIR "$lt_cv_objdir/"
|
cannam@154
|
8239 _ACEOF
|
cannam@154
|
8240
|
cannam@154
|
8241
|
cannam@154
|
8242
|
cannam@154
|
8243
|
cannam@154
|
8244 case $host_os in
|
cannam@154
|
8245 aix3*)
|
cannam@154
|
8246 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@154
|
8247 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@154
|
8248 # vanish in a puff of smoke.
|
cannam@154
|
8249 if test set != "${COLLECT_NAMES+set}"; then
|
cannam@154
|
8250 COLLECT_NAMES=
|
cannam@154
|
8251 export COLLECT_NAMES
|
cannam@154
|
8252 fi
|
cannam@154
|
8253 ;;
|
cannam@154
|
8254 esac
|
cannam@154
|
8255
|
cannam@154
|
8256 # Global variables:
|
cannam@154
|
8257 ofile=libtool
|
cannam@154
|
8258 can_build_shared=yes
|
cannam@154
|
8259
|
cannam@154
|
8260 # All known linkers require a '.a' archive for static linking (except MSVC,
|
cannam@154
|
8261 # which needs '.lib').
|
cannam@154
|
8262 libext=a
|
cannam@154
|
8263
|
cannam@154
|
8264 with_gnu_ld=$lt_cv_prog_gnu_ld
|
cannam@154
|
8265
|
cannam@154
|
8266 old_CC=$CC
|
cannam@154
|
8267 old_CFLAGS=$CFLAGS
|
cannam@154
|
8268
|
cannam@154
|
8269 # Set sane defaults for various variables
|
cannam@154
|
8270 test -z "$CC" && CC=cc
|
cannam@154
|
8271 test -z "$LTCC" && LTCC=$CC
|
cannam@154
|
8272 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
|
cannam@154
|
8273 test -z "$LD" && LD=ld
|
cannam@154
|
8274 test -z "$ac_objext" && ac_objext=o
|
cannam@154
|
8275
|
cannam@154
|
8276 func_cc_basename $compiler
|
cannam@154
|
8277 cc_basename=$func_cc_basename_result
|
cannam@154
|
8278
|
cannam@154
|
8279
|
cannam@154
|
8280 # Only perform the check for file, if the check method requires it
|
cannam@154
|
8281 test -z "$MAGIC_CMD" && MAGIC_CMD=file
|
cannam@154
|
8282 case $deplibs_check_method in
|
cannam@154
|
8283 file_magic*)
|
cannam@154
|
8284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
|
cannam@154
|
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
|
cannam@154
|
8286 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
|
cannam@154
|
8287 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
cannam@154
|
8288 $as_echo_n "(cached) " >&6
|
cannam@154
|
8289 else
|
cannam@154
|
8290 case $MAGIC_CMD in
|
cannam@154
|
8291 [\\/*] | ?:[\\/]*)
|
cannam@154
|
8292 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
cannam@154
|
8293 ;;
|
cannam@154
|
8294 *)
|
cannam@154
|
8295 lt_save_MAGIC_CMD=$MAGIC_CMD
|
cannam@154
|
8296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
8297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@154
|
8298 for ac_dir in $ac_dummy; do
|
cannam@154
|
8299 IFS=$lt_save_ifs
|
cannam@154
|
8300 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
8301 if test -f "$ac_dir/${ac_tool_prefix}file"; then
|
cannam@154
|
8302 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
|
cannam@154
|
8303 if test -n "$file_magic_test_file"; then
|
cannam@154
|
8304 case $deplibs_check_method in
|
cannam@154
|
8305 "file_magic "*)
|
cannam@154
|
8306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
cannam@154
|
8307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
8308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@154
|
8309 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@154
|
8310 :
|
cannam@154
|
8311 else
|
cannam@154
|
8312 cat <<_LT_EOF 1>&2
|
cannam@154
|
8313
|
cannam@154
|
8314 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@154
|
8315 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@154
|
8316 *** The result is that libtool may fail to recognize shared libraries
|
cannam@154
|
8317 *** as such. This will affect the creation of libtool libraries that
|
cannam@154
|
8318 *** depend on shared libraries, but programs linked with such libtool
|
cannam@154
|
8319 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@154
|
8320 *** may want to report the problem to your system manager and/or to
|
cannam@154
|
8321 *** bug-libtool@gnu.org
|
cannam@154
|
8322
|
cannam@154
|
8323 _LT_EOF
|
cannam@154
|
8324 fi ;;
|
cannam@154
|
8325 esac
|
cannam@154
|
8326 fi
|
cannam@154
|
8327 break
|
cannam@154
|
8328 fi
|
cannam@154
|
8329 done
|
cannam@154
|
8330 IFS=$lt_save_ifs
|
cannam@154
|
8331 MAGIC_CMD=$lt_save_MAGIC_CMD
|
cannam@154
|
8332 ;;
|
cannam@154
|
8333 esac
|
cannam@154
|
8334 fi
|
cannam@154
|
8335
|
cannam@154
|
8336 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
8337 if test -n "$MAGIC_CMD"; then
|
cannam@154
|
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
cannam@154
|
8339 $as_echo "$MAGIC_CMD" >&6; }
|
cannam@154
|
8340 else
|
cannam@154
|
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
8342 $as_echo "no" >&6; }
|
cannam@154
|
8343 fi
|
cannam@154
|
8344
|
cannam@154
|
8345
|
cannam@154
|
8346
|
cannam@154
|
8347
|
cannam@154
|
8348
|
cannam@154
|
8349 if test -z "$lt_cv_path_MAGIC_CMD"; then
|
cannam@154
|
8350 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
|
cannam@154
|
8352 $as_echo_n "checking for file... " >&6; }
|
cannam@154
|
8353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
|
cannam@154
|
8354 $as_echo_n "(cached) " >&6
|
cannam@154
|
8355 else
|
cannam@154
|
8356 case $MAGIC_CMD in
|
cannam@154
|
8357 [\\/*] | ?:[\\/]*)
|
cannam@154
|
8358 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
|
cannam@154
|
8359 ;;
|
cannam@154
|
8360 *)
|
cannam@154
|
8361 lt_save_MAGIC_CMD=$MAGIC_CMD
|
cannam@154
|
8362 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
|
cannam@154
|
8364 for ac_dir in $ac_dummy; do
|
cannam@154
|
8365 IFS=$lt_save_ifs
|
cannam@154
|
8366 test -z "$ac_dir" && ac_dir=.
|
cannam@154
|
8367 if test -f "$ac_dir/file"; then
|
cannam@154
|
8368 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
|
cannam@154
|
8369 if test -n "$file_magic_test_file"; then
|
cannam@154
|
8370 case $deplibs_check_method in
|
cannam@154
|
8371 "file_magic "*)
|
cannam@154
|
8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
|
cannam@154
|
8373 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
|
cannam@154
|
8375 $EGREP "$file_magic_regex" > /dev/null; then
|
cannam@154
|
8376 :
|
cannam@154
|
8377 else
|
cannam@154
|
8378 cat <<_LT_EOF 1>&2
|
cannam@154
|
8379
|
cannam@154
|
8380 *** Warning: the command libtool uses to detect shared libraries,
|
cannam@154
|
8381 *** $file_magic_cmd, produces output that libtool cannot recognize.
|
cannam@154
|
8382 *** The result is that libtool may fail to recognize shared libraries
|
cannam@154
|
8383 *** as such. This will affect the creation of libtool libraries that
|
cannam@154
|
8384 *** depend on shared libraries, but programs linked with such libtool
|
cannam@154
|
8385 *** libraries will work regardless of this problem. Nevertheless, you
|
cannam@154
|
8386 *** may want to report the problem to your system manager and/or to
|
cannam@154
|
8387 *** bug-libtool@gnu.org
|
cannam@154
|
8388
|
cannam@154
|
8389 _LT_EOF
|
cannam@154
|
8390 fi ;;
|
cannam@154
|
8391 esac
|
cannam@154
|
8392 fi
|
cannam@154
|
8393 break
|
cannam@154
|
8394 fi
|
cannam@154
|
8395 done
|
cannam@154
|
8396 IFS=$lt_save_ifs
|
cannam@154
|
8397 MAGIC_CMD=$lt_save_MAGIC_CMD
|
cannam@154
|
8398 ;;
|
cannam@154
|
8399 esac
|
cannam@154
|
8400 fi
|
cannam@154
|
8401
|
cannam@154
|
8402 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
|
cannam@154
|
8403 if test -n "$MAGIC_CMD"; then
|
cannam@154
|
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
|
cannam@154
|
8405 $as_echo "$MAGIC_CMD" >&6; }
|
cannam@154
|
8406 else
|
cannam@154
|
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
8408 $as_echo "no" >&6; }
|
cannam@154
|
8409 fi
|
cannam@154
|
8410
|
cannam@154
|
8411
|
cannam@154
|
8412 else
|
cannam@154
|
8413 MAGIC_CMD=:
|
cannam@154
|
8414 fi
|
cannam@154
|
8415 fi
|
cannam@154
|
8416
|
cannam@154
|
8417 fi
|
cannam@154
|
8418 ;;
|
cannam@154
|
8419 esac
|
cannam@154
|
8420
|
cannam@154
|
8421 # Use C for the default configuration in the libtool script
|
cannam@154
|
8422
|
cannam@154
|
8423 lt_save_CC=$CC
|
cannam@154
|
8424 ac_ext=c
|
cannam@154
|
8425 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
8426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
8427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
8428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
8429
|
cannam@154
|
8430
|
cannam@154
|
8431 # Source file extension for C test sources.
|
cannam@154
|
8432 ac_ext=c
|
cannam@154
|
8433
|
cannam@154
|
8434 # Object file extension for compiled C test sources.
|
cannam@154
|
8435 objext=o
|
cannam@154
|
8436 objext=$objext
|
cannam@154
|
8437
|
cannam@154
|
8438 # Code to be used in simple compile tests
|
cannam@154
|
8439 lt_simple_compile_test_code="int some_variable = 0;"
|
cannam@154
|
8440
|
cannam@154
|
8441 # Code to be used in simple link tests
|
cannam@154
|
8442 lt_simple_link_test_code='int main(){return(0);}'
|
cannam@154
|
8443
|
cannam@154
|
8444
|
cannam@154
|
8445
|
cannam@154
|
8446
|
cannam@154
|
8447
|
cannam@154
|
8448
|
cannam@154
|
8449
|
cannam@154
|
8450 # If no C compiler was specified, use CC.
|
cannam@154
|
8451 LTCC=${LTCC-"$CC"}
|
cannam@154
|
8452
|
cannam@154
|
8453 # If no C compiler flags were specified, use CFLAGS.
|
cannam@154
|
8454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
|
cannam@154
|
8455
|
cannam@154
|
8456 # Allow CC to be a program name with arguments.
|
cannam@154
|
8457 compiler=$CC
|
cannam@154
|
8458
|
cannam@154
|
8459 # Save the default compiler, since it gets overwritten when the other
|
cannam@154
|
8460 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
|
cannam@154
|
8461 compiler_DEFAULT=$CC
|
cannam@154
|
8462
|
cannam@154
|
8463 # save warnings/boilerplate of simple test code
|
cannam@154
|
8464 ac_outfile=conftest.$ac_objext
|
cannam@154
|
8465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
|
cannam@154
|
8466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@154
|
8467 _lt_compiler_boilerplate=`cat conftest.err`
|
cannam@154
|
8468 $RM conftest*
|
cannam@154
|
8469
|
cannam@154
|
8470 ac_outfile=conftest.$ac_objext
|
cannam@154
|
8471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
|
cannam@154
|
8472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
|
cannam@154
|
8473 _lt_linker_boilerplate=`cat conftest.err`
|
cannam@154
|
8474 $RM -r conftest*
|
cannam@154
|
8475
|
cannam@154
|
8476
|
cannam@154
|
8477 ## CAVEAT EMPTOR:
|
cannam@154
|
8478 ## There is no encapsulation within the following macros, do not change
|
cannam@154
|
8479 ## the running order or otherwise move them around unless you know exactly
|
cannam@154
|
8480 ## what you are doing...
|
cannam@154
|
8481 if test -n "$compiler"; then
|
cannam@154
|
8482
|
cannam@154
|
8483 lt_prog_compiler_no_builtin_flag=
|
cannam@154
|
8484
|
cannam@154
|
8485 if test yes = "$GCC"; then
|
cannam@154
|
8486 case $cc_basename in
|
cannam@154
|
8487 nvcc*)
|
cannam@154
|
8488 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
|
cannam@154
|
8489 *)
|
cannam@154
|
8490 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
|
cannam@154
|
8491 esac
|
cannam@154
|
8492
|
cannam@154
|
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
|
cannam@154
|
8494 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
|
cannam@154
|
8495 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
|
cannam@154
|
8496 $as_echo_n "(cached) " >&6
|
cannam@154
|
8497 else
|
cannam@154
|
8498 lt_cv_prog_compiler_rtti_exceptions=no
|
cannam@154
|
8499 ac_outfile=conftest.$ac_objext
|
cannam@154
|
8500 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
8501 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
|
cannam@154
|
8502 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
8503 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
8504 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
8505 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
8506 # The option is referenced via a variable to avoid confusing sed.
|
cannam@154
|
8507 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
8508 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
8509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
8510 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
8511 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
cannam@154
|
8512 (eval "$lt_compile" 2>conftest.err)
|
cannam@154
|
8513 ac_status=$?
|
cannam@154
|
8514 cat conftest.err >&5
|
cannam@154
|
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@154
|
8516 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@154
|
8517 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
8518 # So say no if there are warnings other than the usual output.
|
cannam@154
|
8519 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
cannam@154
|
8520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
8521 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
8522 lt_cv_prog_compiler_rtti_exceptions=yes
|
cannam@154
|
8523 fi
|
cannam@154
|
8524 fi
|
cannam@154
|
8525 $RM conftest*
|
cannam@154
|
8526
|
cannam@154
|
8527 fi
|
cannam@154
|
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
|
cannam@154
|
8529 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
|
cannam@154
|
8530
|
cannam@154
|
8531 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
|
cannam@154
|
8532 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
|
cannam@154
|
8533 else
|
cannam@154
|
8534 :
|
cannam@154
|
8535 fi
|
cannam@154
|
8536
|
cannam@154
|
8537 fi
|
cannam@154
|
8538
|
cannam@154
|
8539
|
cannam@154
|
8540
|
cannam@154
|
8541
|
cannam@154
|
8542
|
cannam@154
|
8543
|
cannam@154
|
8544 lt_prog_compiler_wl=
|
cannam@154
|
8545 lt_prog_compiler_pic=
|
cannam@154
|
8546 lt_prog_compiler_static=
|
cannam@154
|
8547
|
cannam@154
|
8548
|
cannam@154
|
8549 if test yes = "$GCC"; then
|
cannam@154
|
8550 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8551 lt_prog_compiler_static='-static'
|
cannam@154
|
8552
|
cannam@154
|
8553 case $host_os in
|
cannam@154
|
8554 aix*)
|
cannam@154
|
8555 # All AIX code is PIC.
|
cannam@154
|
8556 if test ia64 = "$host_cpu"; then
|
cannam@154
|
8557 # AIX 5 now supports IA64 processor
|
cannam@154
|
8558 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8559 fi
|
cannam@154
|
8560 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8561 ;;
|
cannam@154
|
8562
|
cannam@154
|
8563 amigaos*)
|
cannam@154
|
8564 case $host_cpu in
|
cannam@154
|
8565 powerpc)
|
cannam@154
|
8566 # see comment about AmigaOS4 .so support
|
cannam@154
|
8567 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8568 ;;
|
cannam@154
|
8569 m68k)
|
cannam@154
|
8570 # FIXME: we need at least 68020 code to build shared libraries, but
|
cannam@154
|
8571 # adding the '-m68020' flag to GCC prevents building anything better,
|
cannam@154
|
8572 # like '-m68040'.
|
cannam@154
|
8573 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
|
cannam@154
|
8574 ;;
|
cannam@154
|
8575 esac
|
cannam@154
|
8576 ;;
|
cannam@154
|
8577
|
cannam@154
|
8578 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
|
cannam@154
|
8579 # PIC is the default for these OSes.
|
cannam@154
|
8580 ;;
|
cannam@154
|
8581
|
cannam@154
|
8582 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
cannam@154
|
8583 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
8584 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
8585 # Although the cygwin gcc ignores -fPIC, still need this for old-style
|
cannam@154
|
8586 # (--disable-auto-import) libraries
|
cannam@154
|
8587 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@154
|
8588 case $host_os in
|
cannam@154
|
8589 os2*)
|
cannam@154
|
8590 lt_prog_compiler_static='$wl-static'
|
cannam@154
|
8591 ;;
|
cannam@154
|
8592 esac
|
cannam@154
|
8593 ;;
|
cannam@154
|
8594
|
cannam@154
|
8595 darwin* | rhapsody*)
|
cannam@154
|
8596 # PIC is the default on this platform
|
cannam@154
|
8597 # Common symbols not allowed in MH_DYLIB files
|
cannam@154
|
8598 lt_prog_compiler_pic='-fno-common'
|
cannam@154
|
8599 ;;
|
cannam@154
|
8600
|
cannam@154
|
8601 haiku*)
|
cannam@154
|
8602 # PIC is the default for Haiku.
|
cannam@154
|
8603 # The "-static" flag exists, but is broken.
|
cannam@154
|
8604 lt_prog_compiler_static=
|
cannam@154
|
8605 ;;
|
cannam@154
|
8606
|
cannam@154
|
8607 hpux*)
|
cannam@154
|
8608 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
|
cannam@154
|
8609 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
|
cannam@154
|
8610 # sets the default TLS model and affects inlining.
|
cannam@154
|
8611 case $host_cpu in
|
cannam@154
|
8612 hppa*64*)
|
cannam@154
|
8613 # +Z the default
|
cannam@154
|
8614 ;;
|
cannam@154
|
8615 *)
|
cannam@154
|
8616 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8617 ;;
|
cannam@154
|
8618 esac
|
cannam@154
|
8619 ;;
|
cannam@154
|
8620
|
cannam@154
|
8621 interix[3-9]*)
|
cannam@154
|
8622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
|
cannam@154
|
8623 # Instead, we relocate shared libraries at runtime.
|
cannam@154
|
8624 ;;
|
cannam@154
|
8625
|
cannam@154
|
8626 msdosdjgpp*)
|
cannam@154
|
8627 # Just because we use GCC doesn't mean we suddenly get shared libraries
|
cannam@154
|
8628 # on systems that don't support them.
|
cannam@154
|
8629 lt_prog_compiler_can_build_shared=no
|
cannam@154
|
8630 enable_shared=no
|
cannam@154
|
8631 ;;
|
cannam@154
|
8632
|
cannam@154
|
8633 *nto* | *qnx*)
|
cannam@154
|
8634 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
8635 # it will coredump.
|
cannam@154
|
8636 lt_prog_compiler_pic='-fPIC -shared'
|
cannam@154
|
8637 ;;
|
cannam@154
|
8638
|
cannam@154
|
8639 sysv4*MP*)
|
cannam@154
|
8640 if test -d /usr/nec; then
|
cannam@154
|
8641 lt_prog_compiler_pic=-Kconform_pic
|
cannam@154
|
8642 fi
|
cannam@154
|
8643 ;;
|
cannam@154
|
8644
|
cannam@154
|
8645 *)
|
cannam@154
|
8646 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8647 ;;
|
cannam@154
|
8648 esac
|
cannam@154
|
8649
|
cannam@154
|
8650 case $cc_basename in
|
cannam@154
|
8651 nvcc*) # Cuda Compiler Driver 2.2
|
cannam@154
|
8652 lt_prog_compiler_wl='-Xlinker '
|
cannam@154
|
8653 if test -n "$lt_prog_compiler_pic"; then
|
cannam@154
|
8654 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
|
cannam@154
|
8655 fi
|
cannam@154
|
8656 ;;
|
cannam@154
|
8657 esac
|
cannam@154
|
8658 else
|
cannam@154
|
8659 # PORTME Check for flag to pass linker flags through the system compiler.
|
cannam@154
|
8660 case $host_os in
|
cannam@154
|
8661 aix*)
|
cannam@154
|
8662 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8663 if test ia64 = "$host_cpu"; then
|
cannam@154
|
8664 # AIX 5 now supports IA64 processor
|
cannam@154
|
8665 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8666 else
|
cannam@154
|
8667 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
|
cannam@154
|
8668 fi
|
cannam@154
|
8669 ;;
|
cannam@154
|
8670
|
cannam@154
|
8671 darwin* | rhapsody*)
|
cannam@154
|
8672 # PIC is the default on this platform
|
cannam@154
|
8673 # Common symbols not allowed in MH_DYLIB files
|
cannam@154
|
8674 lt_prog_compiler_pic='-fno-common'
|
cannam@154
|
8675 case $cc_basename in
|
cannam@154
|
8676 nagfor*)
|
cannam@154
|
8677 # NAG Fortran compiler
|
cannam@154
|
8678 lt_prog_compiler_wl='-Wl,-Wl,,'
|
cannam@154
|
8679 lt_prog_compiler_pic='-PIC'
|
cannam@154
|
8680 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8681 ;;
|
cannam@154
|
8682 esac
|
cannam@154
|
8683 ;;
|
cannam@154
|
8684
|
cannam@154
|
8685 mingw* | cygwin* | pw32* | os2* | cegcc*)
|
cannam@154
|
8686 # This hack is so that the source file can tell whether it is being
|
cannam@154
|
8687 # built for inclusion in a dll (and should export symbols for example).
|
cannam@154
|
8688 lt_prog_compiler_pic='-DDLL_EXPORT'
|
cannam@154
|
8689 case $host_os in
|
cannam@154
|
8690 os2*)
|
cannam@154
|
8691 lt_prog_compiler_static='$wl-static'
|
cannam@154
|
8692 ;;
|
cannam@154
|
8693 esac
|
cannam@154
|
8694 ;;
|
cannam@154
|
8695
|
cannam@154
|
8696 hpux9* | hpux10* | hpux11*)
|
cannam@154
|
8697 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8698 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
|
cannam@154
|
8699 # not for PA HP-UX.
|
cannam@154
|
8700 case $host_cpu in
|
cannam@154
|
8701 hppa*64*|ia64*)
|
cannam@154
|
8702 # +Z the default
|
cannam@154
|
8703 ;;
|
cannam@154
|
8704 *)
|
cannam@154
|
8705 lt_prog_compiler_pic='+Z'
|
cannam@154
|
8706 ;;
|
cannam@154
|
8707 esac
|
cannam@154
|
8708 # Is there a better lt_prog_compiler_static that works with the bundled CC?
|
cannam@154
|
8709 lt_prog_compiler_static='$wl-a ${wl}archive'
|
cannam@154
|
8710 ;;
|
cannam@154
|
8711
|
cannam@154
|
8712 irix5* | irix6* | nonstopux*)
|
cannam@154
|
8713 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8714 # PIC (with -KPIC) is the default.
|
cannam@154
|
8715 lt_prog_compiler_static='-non_shared'
|
cannam@154
|
8716 ;;
|
cannam@154
|
8717
|
cannam@154
|
8718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
8719 case $cc_basename in
|
cannam@154
|
8720 # old Intel for x86_64, which still supported -KPIC.
|
cannam@154
|
8721 ecc*)
|
cannam@154
|
8722 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8723 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8724 lt_prog_compiler_static='-static'
|
cannam@154
|
8725 ;;
|
cannam@154
|
8726 # icc used to be incompatible with GCC.
|
cannam@154
|
8727 # ICC 10 doesn't accept -KPIC any more.
|
cannam@154
|
8728 icc* | ifort*)
|
cannam@154
|
8729 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8730 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8731 lt_prog_compiler_static='-static'
|
cannam@154
|
8732 ;;
|
cannam@154
|
8733 # Lahey Fortran 8.1.
|
cannam@154
|
8734 lf95*)
|
cannam@154
|
8735 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8736 lt_prog_compiler_pic='--shared'
|
cannam@154
|
8737 lt_prog_compiler_static='--static'
|
cannam@154
|
8738 ;;
|
cannam@154
|
8739 nagfor*)
|
cannam@154
|
8740 # NAG Fortran compiler
|
cannam@154
|
8741 lt_prog_compiler_wl='-Wl,-Wl,,'
|
cannam@154
|
8742 lt_prog_compiler_pic='-PIC'
|
cannam@154
|
8743 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8744 ;;
|
cannam@154
|
8745 tcc*)
|
cannam@154
|
8746 # Fabrice Bellard et al's Tiny C Compiler
|
cannam@154
|
8747 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8748 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8749 lt_prog_compiler_static='-static'
|
cannam@154
|
8750 ;;
|
cannam@154
|
8751 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
|
cannam@154
|
8752 # Portland Group compilers (*not* the Pentium gcc compiler,
|
cannam@154
|
8753 # which looks to be a dead project)
|
cannam@154
|
8754 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8755 lt_prog_compiler_pic='-fpic'
|
cannam@154
|
8756 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8757 ;;
|
cannam@154
|
8758 ccc*)
|
cannam@154
|
8759 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8760 # All Alpha code is PIC.
|
cannam@154
|
8761 lt_prog_compiler_static='-non_shared'
|
cannam@154
|
8762 ;;
|
cannam@154
|
8763 xl* | bgxl* | bgf* | mpixl*)
|
cannam@154
|
8764 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
|
cannam@154
|
8765 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8766 lt_prog_compiler_pic='-qpic'
|
cannam@154
|
8767 lt_prog_compiler_static='-qstaticlink'
|
cannam@154
|
8768 ;;
|
cannam@154
|
8769 *)
|
cannam@154
|
8770 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
8771 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
|
cannam@154
|
8772 # Sun Fortran 8.3 passes all unrecognized flags to the linker
|
cannam@154
|
8773 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8774 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8775 lt_prog_compiler_wl=''
|
cannam@154
|
8776 ;;
|
cannam@154
|
8777 *Sun\ F* | *Sun*Fortran*)
|
cannam@154
|
8778 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8779 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8780 lt_prog_compiler_wl='-Qoption ld '
|
cannam@154
|
8781 ;;
|
cannam@154
|
8782 *Sun\ C*)
|
cannam@154
|
8783 # Sun C 5.9
|
cannam@154
|
8784 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8785 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8786 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8787 ;;
|
cannam@154
|
8788 *Intel*\ [CF]*Compiler*)
|
cannam@154
|
8789 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8790 lt_prog_compiler_pic='-fPIC'
|
cannam@154
|
8791 lt_prog_compiler_static='-static'
|
cannam@154
|
8792 ;;
|
cannam@154
|
8793 *Portland\ Group*)
|
cannam@154
|
8794 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8795 lt_prog_compiler_pic='-fpic'
|
cannam@154
|
8796 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8797 ;;
|
cannam@154
|
8798 esac
|
cannam@154
|
8799 ;;
|
cannam@154
|
8800 esac
|
cannam@154
|
8801 ;;
|
cannam@154
|
8802
|
cannam@154
|
8803 newsos6)
|
cannam@154
|
8804 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8805 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8806 ;;
|
cannam@154
|
8807
|
cannam@154
|
8808 *nto* | *qnx*)
|
cannam@154
|
8809 # QNX uses GNU C++, but need to define -shared option too, otherwise
|
cannam@154
|
8810 # it will coredump.
|
cannam@154
|
8811 lt_prog_compiler_pic='-fPIC -shared'
|
cannam@154
|
8812 ;;
|
cannam@154
|
8813
|
cannam@154
|
8814 osf3* | osf4* | osf5*)
|
cannam@154
|
8815 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8816 # All OSF/1 code is PIC.
|
cannam@154
|
8817 lt_prog_compiler_static='-non_shared'
|
cannam@154
|
8818 ;;
|
cannam@154
|
8819
|
cannam@154
|
8820 rdos*)
|
cannam@154
|
8821 lt_prog_compiler_static='-non_shared'
|
cannam@154
|
8822 ;;
|
cannam@154
|
8823
|
cannam@154
|
8824 solaris*)
|
cannam@154
|
8825 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8826 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8827 case $cc_basename in
|
cannam@154
|
8828 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
|
cannam@154
|
8829 lt_prog_compiler_wl='-Qoption ld ';;
|
cannam@154
|
8830 *)
|
cannam@154
|
8831 lt_prog_compiler_wl='-Wl,';;
|
cannam@154
|
8832 esac
|
cannam@154
|
8833 ;;
|
cannam@154
|
8834
|
cannam@154
|
8835 sunos4*)
|
cannam@154
|
8836 lt_prog_compiler_wl='-Qoption ld '
|
cannam@154
|
8837 lt_prog_compiler_pic='-PIC'
|
cannam@154
|
8838 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8839 ;;
|
cannam@154
|
8840
|
cannam@154
|
8841 sysv4 | sysv4.2uw2* | sysv4.3*)
|
cannam@154
|
8842 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8843 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8844 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8845 ;;
|
cannam@154
|
8846
|
cannam@154
|
8847 sysv4*MP*)
|
cannam@154
|
8848 if test -d /usr/nec; then
|
cannam@154
|
8849 lt_prog_compiler_pic='-Kconform_pic'
|
cannam@154
|
8850 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8851 fi
|
cannam@154
|
8852 ;;
|
cannam@154
|
8853
|
cannam@154
|
8854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
|
cannam@154
|
8855 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8856 lt_prog_compiler_pic='-KPIC'
|
cannam@154
|
8857 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8858 ;;
|
cannam@154
|
8859
|
cannam@154
|
8860 unicos*)
|
cannam@154
|
8861 lt_prog_compiler_wl='-Wl,'
|
cannam@154
|
8862 lt_prog_compiler_can_build_shared=no
|
cannam@154
|
8863 ;;
|
cannam@154
|
8864
|
cannam@154
|
8865 uts4*)
|
cannam@154
|
8866 lt_prog_compiler_pic='-pic'
|
cannam@154
|
8867 lt_prog_compiler_static='-Bstatic'
|
cannam@154
|
8868 ;;
|
cannam@154
|
8869
|
cannam@154
|
8870 *)
|
cannam@154
|
8871 lt_prog_compiler_can_build_shared=no
|
cannam@154
|
8872 ;;
|
cannam@154
|
8873 esac
|
cannam@154
|
8874 fi
|
cannam@154
|
8875
|
cannam@154
|
8876 case $host_os in
|
cannam@154
|
8877 # For platforms that do not support PIC, -DPIC is meaningless:
|
cannam@154
|
8878 *djgpp*)
|
cannam@154
|
8879 lt_prog_compiler_pic=
|
cannam@154
|
8880 ;;
|
cannam@154
|
8881 *)
|
cannam@154
|
8882 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
|
cannam@154
|
8883 ;;
|
cannam@154
|
8884 esac
|
cannam@154
|
8885
|
cannam@154
|
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
|
cannam@154
|
8887 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
|
cannam@154
|
8888 if ${lt_cv_prog_compiler_pic+:} false; then :
|
cannam@154
|
8889 $as_echo_n "(cached) " >&6
|
cannam@154
|
8890 else
|
cannam@154
|
8891 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
|
cannam@154
|
8892 fi
|
cannam@154
|
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
|
cannam@154
|
8894 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
|
cannam@154
|
8895 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
|
cannam@154
|
8896
|
cannam@154
|
8897 #
|
cannam@154
|
8898 # Check to make sure the PIC flag actually works.
|
cannam@154
|
8899 #
|
cannam@154
|
8900 if test -n "$lt_prog_compiler_pic"; then
|
cannam@154
|
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
|
cannam@154
|
8902 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
|
cannam@154
|
8903 if ${lt_cv_prog_compiler_pic_works+:} false; then :
|
cannam@154
|
8904 $as_echo_n "(cached) " >&6
|
cannam@154
|
8905 else
|
cannam@154
|
8906 lt_cv_prog_compiler_pic_works=no
|
cannam@154
|
8907 ac_outfile=conftest.$ac_objext
|
cannam@154
|
8908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
8909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
|
cannam@154
|
8910 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
8911 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
8912 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
8914 # The option is referenced via a variable to avoid confusing sed.
|
cannam@154
|
8915 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
8916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
8917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
8918 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
8919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
cannam@154
|
8920 (eval "$lt_compile" 2>conftest.err)
|
cannam@154
|
8921 ac_status=$?
|
cannam@154
|
8922 cat conftest.err >&5
|
cannam@154
|
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@154
|
8924 if (exit $ac_status) && test -s "$ac_outfile"; then
|
cannam@154
|
8925 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
8926 # So say no if there are warnings other than the usual output.
|
cannam@154
|
8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
|
cannam@154
|
8928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
8929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
8930 lt_cv_prog_compiler_pic_works=yes
|
cannam@154
|
8931 fi
|
cannam@154
|
8932 fi
|
cannam@154
|
8933 $RM conftest*
|
cannam@154
|
8934
|
cannam@154
|
8935 fi
|
cannam@154
|
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
|
cannam@154
|
8937 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
|
cannam@154
|
8938
|
cannam@154
|
8939 if test yes = "$lt_cv_prog_compiler_pic_works"; then
|
cannam@154
|
8940 case $lt_prog_compiler_pic in
|
cannam@154
|
8941 "" | " "*) ;;
|
cannam@154
|
8942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
|
cannam@154
|
8943 esac
|
cannam@154
|
8944 else
|
cannam@154
|
8945 lt_prog_compiler_pic=
|
cannam@154
|
8946 lt_prog_compiler_can_build_shared=no
|
cannam@154
|
8947 fi
|
cannam@154
|
8948
|
cannam@154
|
8949 fi
|
cannam@154
|
8950
|
cannam@154
|
8951
|
cannam@154
|
8952
|
cannam@154
|
8953
|
cannam@154
|
8954
|
cannam@154
|
8955
|
cannam@154
|
8956
|
cannam@154
|
8957
|
cannam@154
|
8958
|
cannam@154
|
8959
|
cannam@154
|
8960
|
cannam@154
|
8961 #
|
cannam@154
|
8962 # Check to make sure the static flag actually works.
|
cannam@154
|
8963 #
|
cannam@154
|
8964 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
|
cannam@154
|
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
|
cannam@154
|
8966 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
|
cannam@154
|
8967 if ${lt_cv_prog_compiler_static_works+:} false; then :
|
cannam@154
|
8968 $as_echo_n "(cached) " >&6
|
cannam@154
|
8969 else
|
cannam@154
|
8970 lt_cv_prog_compiler_static_works=no
|
cannam@154
|
8971 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
8972 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
|
cannam@154
|
8973 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@154
|
8974 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@154
|
8975 # The linker can only warn and ignore the option if not recognized
|
cannam@154
|
8976 # So say no if there are warnings
|
cannam@154
|
8977 if test -s conftest.err; then
|
cannam@154
|
8978 # Append any errors to the config.log.
|
cannam@154
|
8979 cat conftest.err 1>&5
|
cannam@154
|
8980 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
cannam@154
|
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
8982 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
8983 lt_cv_prog_compiler_static_works=yes
|
cannam@154
|
8984 fi
|
cannam@154
|
8985 else
|
cannam@154
|
8986 lt_cv_prog_compiler_static_works=yes
|
cannam@154
|
8987 fi
|
cannam@154
|
8988 fi
|
cannam@154
|
8989 $RM -r conftest*
|
cannam@154
|
8990 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
8991
|
cannam@154
|
8992 fi
|
cannam@154
|
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
|
cannam@154
|
8994 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
|
cannam@154
|
8995
|
cannam@154
|
8996 if test yes = "$lt_cv_prog_compiler_static_works"; then
|
cannam@154
|
8997 :
|
cannam@154
|
8998 else
|
cannam@154
|
8999 lt_prog_compiler_static=
|
cannam@154
|
9000 fi
|
cannam@154
|
9001
|
cannam@154
|
9002
|
cannam@154
|
9003
|
cannam@154
|
9004
|
cannam@154
|
9005
|
cannam@154
|
9006
|
cannam@154
|
9007
|
cannam@154
|
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@154
|
9009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
cannam@154
|
9010 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
cannam@154
|
9011 $as_echo_n "(cached) " >&6
|
cannam@154
|
9012 else
|
cannam@154
|
9013 lt_cv_prog_compiler_c_o=no
|
cannam@154
|
9014 $RM -r conftest 2>/dev/null
|
cannam@154
|
9015 mkdir conftest
|
cannam@154
|
9016 cd conftest
|
cannam@154
|
9017 mkdir out
|
cannam@154
|
9018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
9019
|
cannam@154
|
9020 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@154
|
9021 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
9022 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
9023 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
9024 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
9025 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
9026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
9027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
9028 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
9029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
cannam@154
|
9030 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@154
|
9031 ac_status=$?
|
cannam@154
|
9032 cat out/conftest.err >&5
|
cannam@154
|
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@154
|
9034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@154
|
9035 then
|
cannam@154
|
9036 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
9037 # So say no if there are warnings
|
cannam@154
|
9038 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
cannam@154
|
9039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
cannam@154
|
9040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@154
|
9041 lt_cv_prog_compiler_c_o=yes
|
cannam@154
|
9042 fi
|
cannam@154
|
9043 fi
|
cannam@154
|
9044 chmod u+w . 2>&5
|
cannam@154
|
9045 $RM conftest*
|
cannam@154
|
9046 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@154
|
9047 # template instantiation
|
cannam@154
|
9048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
cannam@154
|
9049 $RM out/* && rmdir out
|
cannam@154
|
9050 cd ..
|
cannam@154
|
9051 $RM -r conftest
|
cannam@154
|
9052 $RM conftest*
|
cannam@154
|
9053
|
cannam@154
|
9054 fi
|
cannam@154
|
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
cannam@154
|
9056 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
cannam@154
|
9057
|
cannam@154
|
9058
|
cannam@154
|
9059
|
cannam@154
|
9060
|
cannam@154
|
9061
|
cannam@154
|
9062
|
cannam@154
|
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
|
cannam@154
|
9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
|
cannam@154
|
9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
|
cannam@154
|
9066 $as_echo_n "(cached) " >&6
|
cannam@154
|
9067 else
|
cannam@154
|
9068 lt_cv_prog_compiler_c_o=no
|
cannam@154
|
9069 $RM -r conftest 2>/dev/null
|
cannam@154
|
9070 mkdir conftest
|
cannam@154
|
9071 cd conftest
|
cannam@154
|
9072 mkdir out
|
cannam@154
|
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
9074
|
cannam@154
|
9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
|
cannam@154
|
9076 # Insert the option either (1) after the last *FLAGS variable, or
|
cannam@154
|
9077 # (2) before a word containing "conftest.", or (3) at the end.
|
cannam@154
|
9078 # Note that $ac_compile itself does not contain backslashes and begins
|
cannam@154
|
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
|
cannam@154
|
9080 lt_compile=`echo "$ac_compile" | $SED \
|
cannam@154
|
9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
|
cannam@154
|
9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
cannam@154
|
9083 -e 's:$: $lt_compiler_flag:'`
|
cannam@154
|
9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
|
cannam@154
|
9085 (eval "$lt_compile" 2>out/conftest.err)
|
cannam@154
|
9086 ac_status=$?
|
cannam@154
|
9087 cat out/conftest.err >&5
|
cannam@154
|
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
cannam@154
|
9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
cannam@154
|
9090 then
|
cannam@154
|
9091 # The compiler can only warn and ignore the option if not recognized
|
cannam@154
|
9092 # So say no if there are warnings
|
cannam@154
|
9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
|
cannam@154
|
9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
|
cannam@154
|
9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
|
cannam@154
|
9096 lt_cv_prog_compiler_c_o=yes
|
cannam@154
|
9097 fi
|
cannam@154
|
9098 fi
|
cannam@154
|
9099 chmod u+w . 2>&5
|
cannam@154
|
9100 $RM conftest*
|
cannam@154
|
9101 # SGI C++ compiler will create directory out/ii_files/ for
|
cannam@154
|
9102 # template instantiation
|
cannam@154
|
9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
|
cannam@154
|
9104 $RM out/* && rmdir out
|
cannam@154
|
9105 cd ..
|
cannam@154
|
9106 $RM -r conftest
|
cannam@154
|
9107 $RM conftest*
|
cannam@154
|
9108
|
cannam@154
|
9109 fi
|
cannam@154
|
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
|
cannam@154
|
9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
|
cannam@154
|
9112
|
cannam@154
|
9113
|
cannam@154
|
9114
|
cannam@154
|
9115
|
cannam@154
|
9116 hard_links=nottested
|
cannam@154
|
9117 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
|
cannam@154
|
9118 # do not overwrite the value of need_locks provided by the user
|
cannam@154
|
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
|
cannam@154
|
9120 $as_echo_n "checking if we can lock with hard links... " >&6; }
|
cannam@154
|
9121 hard_links=yes
|
cannam@154
|
9122 $RM conftest*
|
cannam@154
|
9123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@154
|
9124 touch conftest.a
|
cannam@154
|
9125 ln conftest.a conftest.b 2>&5 || hard_links=no
|
cannam@154
|
9126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
|
cannam@154
|
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
|
cannam@154
|
9128 $as_echo "$hard_links" >&6; }
|
cannam@154
|
9129 if test no = "$hard_links"; then
|
cannam@154
|
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
|
cannam@154
|
9131 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
|
cannam@154
|
9132 need_locks=warn
|
cannam@154
|
9133 fi
|
cannam@154
|
9134 else
|
cannam@154
|
9135 need_locks=no
|
cannam@154
|
9136 fi
|
cannam@154
|
9137
|
cannam@154
|
9138
|
cannam@154
|
9139
|
cannam@154
|
9140
|
cannam@154
|
9141
|
cannam@154
|
9142
|
cannam@154
|
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
|
cannam@154
|
9144 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
|
cannam@154
|
9145
|
cannam@154
|
9146 runpath_var=
|
cannam@154
|
9147 allow_undefined_flag=
|
cannam@154
|
9148 always_export_symbols=no
|
cannam@154
|
9149 archive_cmds=
|
cannam@154
|
9150 archive_expsym_cmds=
|
cannam@154
|
9151 compiler_needs_object=no
|
cannam@154
|
9152 enable_shared_with_static_runtimes=no
|
cannam@154
|
9153 export_dynamic_flag_spec=
|
cannam@154
|
9154 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
|
cannam@154
|
9155 hardcode_automatic=no
|
cannam@154
|
9156 hardcode_direct=no
|
cannam@154
|
9157 hardcode_direct_absolute=no
|
cannam@154
|
9158 hardcode_libdir_flag_spec=
|
cannam@154
|
9159 hardcode_libdir_separator=
|
cannam@154
|
9160 hardcode_minus_L=no
|
cannam@154
|
9161 hardcode_shlibpath_var=unsupported
|
cannam@154
|
9162 inherit_rpath=no
|
cannam@154
|
9163 link_all_deplibs=unknown
|
cannam@154
|
9164 module_cmds=
|
cannam@154
|
9165 module_expsym_cmds=
|
cannam@154
|
9166 old_archive_from_new_cmds=
|
cannam@154
|
9167 old_archive_from_expsyms_cmds=
|
cannam@154
|
9168 thread_safe_flag_spec=
|
cannam@154
|
9169 whole_archive_flag_spec=
|
cannam@154
|
9170 # include_expsyms should be a list of space-separated symbols to be *always*
|
cannam@154
|
9171 # included in the symbol list
|
cannam@154
|
9172 include_expsyms=
|
cannam@154
|
9173 # exclude_expsyms can be an extended regexp of symbols to exclude
|
cannam@154
|
9174 # it will be wrapped by ' (' and ')$', so one must not match beginning or
|
cannam@154
|
9175 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
|
cannam@154
|
9176 # as well as any symbol that contains 'd'.
|
cannam@154
|
9177 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
|
cannam@154
|
9178 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
|
cannam@154
|
9179 # platforms (ab)use it in PIC code, but their linkers get confused if
|
cannam@154
|
9180 # the symbol is explicitly referenced. Since portable code cannot
|
cannam@154
|
9181 # rely on this symbol name, it's probably fine to never include it in
|
cannam@154
|
9182 # preloaded symbol tables.
|
cannam@154
|
9183 # Exclude shared library initialization/finalization symbols.
|
cannam@154
|
9184 extract_expsyms_cmds=
|
cannam@154
|
9185
|
cannam@154
|
9186 case $host_os in
|
cannam@154
|
9187 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
9188 # FIXME: the MSVC++ port hasn't been tested in a loooong time
|
cannam@154
|
9189 # When not using gcc, we currently assume that we are using
|
cannam@154
|
9190 # Microsoft Visual C++.
|
cannam@154
|
9191 if test yes != "$GCC"; then
|
cannam@154
|
9192 with_gnu_ld=no
|
cannam@154
|
9193 fi
|
cannam@154
|
9194 ;;
|
cannam@154
|
9195 interix*)
|
cannam@154
|
9196 # we just hope/assume this is gcc and not c89 (= MSVC++)
|
cannam@154
|
9197 with_gnu_ld=yes
|
cannam@154
|
9198 ;;
|
cannam@154
|
9199 openbsd* | bitrig*)
|
cannam@154
|
9200 with_gnu_ld=no
|
cannam@154
|
9201 ;;
|
cannam@154
|
9202 esac
|
cannam@154
|
9203
|
cannam@154
|
9204 ld_shlibs=yes
|
cannam@154
|
9205
|
cannam@154
|
9206 # On some targets, GNU ld is compatible enough with the native linker
|
cannam@154
|
9207 # that we're better off using the native interface for both.
|
cannam@154
|
9208 lt_use_gnu_ld_interface=no
|
cannam@154
|
9209 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
9210 case $host_os in
|
cannam@154
|
9211 aix*)
|
cannam@154
|
9212 # The AIX port of GNU ld has always aspired to compatibility
|
cannam@154
|
9213 # with the native linker. However, as the warning in the GNU ld
|
cannam@154
|
9214 # block says, versions before 2.19.5* couldn't really create working
|
cannam@154
|
9215 # shared libraries, regardless of the interface used.
|
cannam@154
|
9216 case `$LD -v 2>&1` in
|
cannam@154
|
9217 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
|
cannam@154
|
9218 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
|
cannam@154
|
9219 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
|
cannam@154
|
9220 *)
|
cannam@154
|
9221 lt_use_gnu_ld_interface=yes
|
cannam@154
|
9222 ;;
|
cannam@154
|
9223 esac
|
cannam@154
|
9224 ;;
|
cannam@154
|
9225 *)
|
cannam@154
|
9226 lt_use_gnu_ld_interface=yes
|
cannam@154
|
9227 ;;
|
cannam@154
|
9228 esac
|
cannam@154
|
9229 fi
|
cannam@154
|
9230
|
cannam@154
|
9231 if test yes = "$lt_use_gnu_ld_interface"; then
|
cannam@154
|
9232 # If archive_cmds runs LD, not CC, wlarc should be empty
|
cannam@154
|
9233 wlarc='$wl'
|
cannam@154
|
9234
|
cannam@154
|
9235 # Set some defaults for GNU ld with shared library support. These
|
cannam@154
|
9236 # are reset later if shared libraries are not supported. Putting them
|
cannam@154
|
9237 # here allows them to be overridden if necessary.
|
cannam@154
|
9238 runpath_var=LD_RUN_PATH
|
cannam@154
|
9239 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
9240 export_dynamic_flag_spec='$wl--export-dynamic'
|
cannam@154
|
9241 # ancient GNU ld didn't support --whole-archive et. al.
|
cannam@154
|
9242 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
|
cannam@154
|
9243 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
|
cannam@154
|
9244 else
|
cannam@154
|
9245 whole_archive_flag_spec=
|
cannam@154
|
9246 fi
|
cannam@154
|
9247 supports_anon_versioning=no
|
cannam@154
|
9248 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
|
cannam@154
|
9249 *GNU\ gold*) supports_anon_versioning=yes ;;
|
cannam@154
|
9250 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
|
cannam@154
|
9251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
|
cannam@154
|
9252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
|
cannam@154
|
9253 *\ 2.11.*) ;; # other 2.11 versions
|
cannam@154
|
9254 *) supports_anon_versioning=yes ;;
|
cannam@154
|
9255 esac
|
cannam@154
|
9256
|
cannam@154
|
9257 # See if GNU ld supports shared libraries.
|
cannam@154
|
9258 case $host_os in
|
cannam@154
|
9259 aix[3-9]*)
|
cannam@154
|
9260 # On AIX/PPC, the GNU linker is very broken
|
cannam@154
|
9261 if test ia64 != "$host_cpu"; then
|
cannam@154
|
9262 ld_shlibs=no
|
cannam@154
|
9263 cat <<_LT_EOF 1>&2
|
cannam@154
|
9264
|
cannam@154
|
9265 *** Warning: the GNU linker, at least up to release 2.19, is reported
|
cannam@154
|
9266 *** to be unable to reliably create shared libraries on AIX.
|
cannam@154
|
9267 *** Therefore, libtool is disabling shared libraries support. If you
|
cannam@154
|
9268 *** really care for shared libraries, you may want to install binutils
|
cannam@154
|
9269 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
|
cannam@154
|
9270 *** You will then need to restart the configuration process.
|
cannam@154
|
9271
|
cannam@154
|
9272 _LT_EOF
|
cannam@154
|
9273 fi
|
cannam@154
|
9274 ;;
|
cannam@154
|
9275
|
cannam@154
|
9276 amigaos*)
|
cannam@154
|
9277 case $host_cpu in
|
cannam@154
|
9278 powerpc)
|
cannam@154
|
9279 # see comment about AmigaOS4 .so support
|
cannam@154
|
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9281 archive_expsym_cmds=''
|
cannam@154
|
9282 ;;
|
cannam@154
|
9283 m68k)
|
cannam@154
|
9284 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)'
|
cannam@154
|
9285 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9286 hardcode_minus_L=yes
|
cannam@154
|
9287 ;;
|
cannam@154
|
9288 esac
|
cannam@154
|
9289 ;;
|
cannam@154
|
9290
|
cannam@154
|
9291 beos*)
|
cannam@154
|
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
9293 allow_undefined_flag=unsupported
|
cannam@154
|
9294 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
|
cannam@154
|
9295 # support --undefined. This deserves some investigation. FIXME
|
cannam@154
|
9296 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9297 else
|
cannam@154
|
9298 ld_shlibs=no
|
cannam@154
|
9299 fi
|
cannam@154
|
9300 ;;
|
cannam@154
|
9301
|
cannam@154
|
9302 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
9303 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
|
cannam@154
|
9304 # as there is no search path for DLLs.
|
cannam@154
|
9305 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9306 export_dynamic_flag_spec='$wl--export-all-symbols'
|
cannam@154
|
9307 allow_undefined_flag=unsupported
|
cannam@154
|
9308 always_export_symbols=no
|
cannam@154
|
9309 enable_shared_with_static_runtimes=yes
|
cannam@154
|
9310 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'
|
cannam@154
|
9311 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
|
cannam@154
|
9312
|
cannam@154
|
9313 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
|
cannam@154
|
9314 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
cannam@154
|
9315 # If the export-symbols file already is a .def file, use it as
|
cannam@154
|
9316 # is; otherwise, prepend EXPORTS...
|
cannam@154
|
9317 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
cannam@154
|
9318 cp $export_symbols $output_objdir/$soname.def;
|
cannam@154
|
9319 else
|
cannam@154
|
9320 echo EXPORTS > $output_objdir/$soname.def;
|
cannam@154
|
9321 cat $export_symbols >> $output_objdir/$soname.def;
|
cannam@154
|
9322 fi~
|
cannam@154
|
9323 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
|
cannam@154
|
9324 else
|
cannam@154
|
9325 ld_shlibs=no
|
cannam@154
|
9326 fi
|
cannam@154
|
9327 ;;
|
cannam@154
|
9328
|
cannam@154
|
9329 haiku*)
|
cannam@154
|
9330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9331 link_all_deplibs=yes
|
cannam@154
|
9332 ;;
|
cannam@154
|
9333
|
cannam@154
|
9334 os2*)
|
cannam@154
|
9335 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9336 hardcode_minus_L=yes
|
cannam@154
|
9337 allow_undefined_flag=unsupported
|
cannam@154
|
9338 shrext_cmds=.dll
|
cannam@154
|
9339 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
9340 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
9341 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
9342 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
9343 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
cannam@154
|
9344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
9345 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
9346 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
9347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
9348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
9349 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
9350 prefix_cmds="$SED"~
|
cannam@154
|
9351 if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
cannam@154
|
9352 prefix_cmds="$prefix_cmds -e 1d";
|
cannam@154
|
9353 fi~
|
cannam@154
|
9354 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
cannam@154
|
9355 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
cannam@154
|
9356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
9357 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
9358 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
cannam@154
|
9359 enable_shared_with_static_runtimes=yes
|
cannam@154
|
9360 ;;
|
cannam@154
|
9361
|
cannam@154
|
9362 interix[3-9]*)
|
cannam@154
|
9363 hardcode_direct=no
|
cannam@154
|
9364 hardcode_shlibpath_var=no
|
cannam@154
|
9365 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
cannam@154
|
9366 export_dynamic_flag_spec='$wl-E'
|
cannam@154
|
9367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
|
cannam@154
|
9368 # Instead, shared libraries are loaded at an image base (0x10000000 by
|
cannam@154
|
9369 # default) and relocated if they conflict, which is a slow very memory
|
cannam@154
|
9370 # consuming and fragmenting process. To avoid this, we pick a random,
|
cannam@154
|
9371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
|
cannam@154
|
9372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
|
cannam@154
|
9373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
|
cannam@154
|
9374 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'
|
cannam@154
|
9375 ;;
|
cannam@154
|
9376
|
cannam@154
|
9377 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
|
cannam@154
|
9378 tmp_diet=no
|
cannam@154
|
9379 if test linux-dietlibc = "$host_os"; then
|
cannam@154
|
9380 case $cc_basename in
|
cannam@154
|
9381 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
|
cannam@154
|
9382 esac
|
cannam@154
|
9383 fi
|
cannam@154
|
9384 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
|
cannam@154
|
9385 && test no = "$tmp_diet"
|
cannam@154
|
9386 then
|
cannam@154
|
9387 tmp_addflag=' $pic_flag'
|
cannam@154
|
9388 tmp_sharedflag='-shared'
|
cannam@154
|
9389 case $cc_basename,$host_cpu in
|
cannam@154
|
9390 pgcc*) # Portland Group C compiler
|
cannam@154
|
9391 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'
|
cannam@154
|
9392 tmp_addflag=' $pic_flag'
|
cannam@154
|
9393 ;;
|
cannam@154
|
9394 pgf77* | pgf90* | pgf95* | pgfortran*)
|
cannam@154
|
9395 # Portland Group f77 and f90 compilers
|
cannam@154
|
9396 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'
|
cannam@154
|
9397 tmp_addflag=' $pic_flag -Mnomain' ;;
|
cannam@154
|
9398 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
|
cannam@154
|
9399 tmp_addflag=' -i_dynamic' ;;
|
cannam@154
|
9400 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
|
cannam@154
|
9401 tmp_addflag=' -i_dynamic -nofor_main' ;;
|
cannam@154
|
9402 ifc* | ifort*) # Intel Fortran compiler
|
cannam@154
|
9403 tmp_addflag=' -nofor_main' ;;
|
cannam@154
|
9404 lf95*) # Lahey Fortran 8.1
|
cannam@154
|
9405 whole_archive_flag_spec=
|
cannam@154
|
9406 tmp_sharedflag='--shared' ;;
|
cannam@154
|
9407 nagfor*) # NAGFOR 5.3
|
cannam@154
|
9408 tmp_sharedflag='-Wl,-shared' ;;
|
cannam@154
|
9409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
|
cannam@154
|
9410 tmp_sharedflag='-qmkshrobj'
|
cannam@154
|
9411 tmp_addflag= ;;
|
cannam@154
|
9412 nvcc*) # Cuda Compiler Driver 2.2
|
cannam@154
|
9413 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'
|
cannam@154
|
9414 compiler_needs_object=yes
|
cannam@154
|
9415 ;;
|
cannam@154
|
9416 esac
|
cannam@154
|
9417 case `$CC -V 2>&1 | sed 5q` in
|
cannam@154
|
9418 *Sun\ C*) # Sun C 5.9
|
cannam@154
|
9419 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'
|
cannam@154
|
9420 compiler_needs_object=yes
|
cannam@154
|
9421 tmp_sharedflag='-G' ;;
|
cannam@154
|
9422 *Sun\ F*) # Sun Fortran 8.3
|
cannam@154
|
9423 tmp_sharedflag='-G' ;;
|
cannam@154
|
9424 esac
|
cannam@154
|
9425 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9426
|
cannam@154
|
9427 if test yes = "$supports_anon_versioning"; then
|
cannam@154
|
9428 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@154
|
9429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@154
|
9430 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@154
|
9431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
|
cannam@154
|
9432 fi
|
cannam@154
|
9433
|
cannam@154
|
9434 case $cc_basename in
|
cannam@154
|
9435 tcc*)
|
cannam@154
|
9436 export_dynamic_flag_spec='-rdynamic'
|
cannam@154
|
9437 ;;
|
cannam@154
|
9438 xlf* | bgf* | bgxlf* | mpixlf*)
|
cannam@154
|
9439 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
|
cannam@154
|
9440 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
|
cannam@154
|
9441 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
9442 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
|
cannam@154
|
9443 if test yes = "$supports_anon_versioning"; then
|
cannam@154
|
9444 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
|
cannam@154
|
9445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
|
cannam@154
|
9446 echo "local: *; };" >> $output_objdir/$libname.ver~
|
cannam@154
|
9447 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
|
cannam@154
|
9448 fi
|
cannam@154
|
9449 ;;
|
cannam@154
|
9450 esac
|
cannam@154
|
9451 else
|
cannam@154
|
9452 ld_shlibs=no
|
cannam@154
|
9453 fi
|
cannam@154
|
9454 ;;
|
cannam@154
|
9455
|
cannam@154
|
9456 netbsd*)
|
cannam@154
|
9457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
9458 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
|
cannam@154
|
9459 wlarc=
|
cannam@154
|
9460 else
|
cannam@154
|
9461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@154
|
9463 fi
|
cannam@154
|
9464 ;;
|
cannam@154
|
9465
|
cannam@154
|
9466 solaris*)
|
cannam@154
|
9467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
|
cannam@154
|
9468 ld_shlibs=no
|
cannam@154
|
9469 cat <<_LT_EOF 1>&2
|
cannam@154
|
9470
|
cannam@154
|
9471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
|
cannam@154
|
9472 *** create shared libraries on Solaris systems. Therefore, libtool
|
cannam@154
|
9473 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@154
|
9474 *** binutils to release 2.9.1 or newer. Another option is to modify
|
cannam@154
|
9475 *** your PATH or compiler configuration so that the native linker is
|
cannam@154
|
9476 *** used, and then restart.
|
cannam@154
|
9477
|
cannam@154
|
9478 _LT_EOF
|
cannam@154
|
9479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
9480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@154
|
9482 else
|
cannam@154
|
9483 ld_shlibs=no
|
cannam@154
|
9484 fi
|
cannam@154
|
9485 ;;
|
cannam@154
|
9486
|
cannam@154
|
9487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
|
cannam@154
|
9488 case `$LD -v 2>&1` in
|
cannam@154
|
9489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
|
cannam@154
|
9490 ld_shlibs=no
|
cannam@154
|
9491 cat <<_LT_EOF 1>&2
|
cannam@154
|
9492
|
cannam@154
|
9493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
|
cannam@154
|
9494 *** reliably create shared libraries on SCO systems. Therefore, libtool
|
cannam@154
|
9495 *** is disabling shared libraries support. We urge you to upgrade GNU
|
cannam@154
|
9496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
|
cannam@154
|
9497 *** your PATH or compiler configuration so that the native linker is
|
cannam@154
|
9498 *** used, and then restart.
|
cannam@154
|
9499
|
cannam@154
|
9500 _LT_EOF
|
cannam@154
|
9501 ;;
|
cannam@154
|
9502 *)
|
cannam@154
|
9503 # For security reasons, it is highly recommended that you always
|
cannam@154
|
9504 # use absolute paths for naming shared libraries, and exclude the
|
cannam@154
|
9505 # DT_RUNPATH tag from executables and libraries. But doing so
|
cannam@154
|
9506 # requires that you compile everything twice, which is a pain.
|
cannam@154
|
9507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
9508 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@154
|
9511 else
|
cannam@154
|
9512 ld_shlibs=no
|
cannam@154
|
9513 fi
|
cannam@154
|
9514 ;;
|
cannam@154
|
9515 esac
|
cannam@154
|
9516 ;;
|
cannam@154
|
9517
|
cannam@154
|
9518 sunos4*)
|
cannam@154
|
9519 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
9520 wlarc=
|
cannam@154
|
9521 hardcode_direct=yes
|
cannam@154
|
9522 hardcode_shlibpath_var=no
|
cannam@154
|
9523 ;;
|
cannam@154
|
9524
|
cannam@154
|
9525 *)
|
cannam@154
|
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
|
cannam@154
|
9527 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9528 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
|
cannam@154
|
9529 else
|
cannam@154
|
9530 ld_shlibs=no
|
cannam@154
|
9531 fi
|
cannam@154
|
9532 ;;
|
cannam@154
|
9533 esac
|
cannam@154
|
9534
|
cannam@154
|
9535 if test no = "$ld_shlibs"; then
|
cannam@154
|
9536 runpath_var=
|
cannam@154
|
9537 hardcode_libdir_flag_spec=
|
cannam@154
|
9538 export_dynamic_flag_spec=
|
cannam@154
|
9539 whole_archive_flag_spec=
|
cannam@154
|
9540 fi
|
cannam@154
|
9541 else
|
cannam@154
|
9542 # PORTME fill in a description of your system's linker (not GNU ld)
|
cannam@154
|
9543 case $host_os in
|
cannam@154
|
9544 aix3*)
|
cannam@154
|
9545 allow_undefined_flag=unsupported
|
cannam@154
|
9546 always_export_symbols=yes
|
cannam@154
|
9547 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'
|
cannam@154
|
9548 # Note: this linker hardcodes the directories in LIBPATH if there
|
cannam@154
|
9549 # are no directories specified by -L.
|
cannam@154
|
9550 hardcode_minus_L=yes
|
cannam@154
|
9551 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
|
cannam@154
|
9552 # Neither direct hardcoding nor static linking is supported with a
|
cannam@154
|
9553 # broken collect2.
|
cannam@154
|
9554 hardcode_direct=unsupported
|
cannam@154
|
9555 fi
|
cannam@154
|
9556 ;;
|
cannam@154
|
9557
|
cannam@154
|
9558 aix[4-9]*)
|
cannam@154
|
9559 if test ia64 = "$host_cpu"; then
|
cannam@154
|
9560 # On IA64, the linker does run time linking by default, so we don't
|
cannam@154
|
9561 # have to do anything special.
|
cannam@154
|
9562 aix_use_runtimelinking=no
|
cannam@154
|
9563 exp_sym_flag='-Bexport'
|
cannam@154
|
9564 no_entry_flag=
|
cannam@154
|
9565 else
|
cannam@154
|
9566 # If we're using GNU nm, then we don't want the "-C" option.
|
cannam@154
|
9567 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
|
cannam@154
|
9568 # Without the "-l" option, or with the "-B" option, AIX nm treats
|
cannam@154
|
9569 # weak defined symbols like other global defined symbols, whereas
|
cannam@154
|
9570 # GNU nm marks them as "W".
|
cannam@154
|
9571 # While the 'weak' keyword is ignored in the Export File, we need
|
cannam@154
|
9572 # it in the Import File for the 'aix-soname' feature, so we have
|
cannam@154
|
9573 # to replace the "-B" option with "-P" for AIX nm.
|
cannam@154
|
9574 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
|
cannam@154
|
9575 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'
|
cannam@154
|
9576 else
|
cannam@154
|
9577 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'
|
cannam@154
|
9578 fi
|
cannam@154
|
9579 aix_use_runtimelinking=no
|
cannam@154
|
9580
|
cannam@154
|
9581 # Test if we are trying to use run time linking or normal
|
cannam@154
|
9582 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
|
cannam@154
|
9583 # have runtime linking enabled, and use it for executables.
|
cannam@154
|
9584 # For shared libraries, we enable/disable runtime linking
|
cannam@154
|
9585 # depending on the kind of the shared library created -
|
cannam@154
|
9586 # when "with_aix_soname,aix_use_runtimelinking" is:
|
cannam@154
|
9587 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
9588 # "aix,yes" lib.so shared, rtl:yes, for executables
|
cannam@154
|
9589 # lib.a static archive
|
cannam@154
|
9590 # "both,no" lib.so.V(shr.o) shared, rtl:yes
|
cannam@154
|
9591 # lib.a(lib.so.V) shared, rtl:no, for executables
|
cannam@154
|
9592 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
9593 # lib.a(lib.so.V) shared, rtl:no
|
cannam@154
|
9594 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
|
cannam@154
|
9595 # lib.a static archive
|
cannam@154
|
9596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
|
cannam@154
|
9597 for ld_flag in $LDFLAGS; do
|
cannam@154
|
9598 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
|
cannam@154
|
9599 aix_use_runtimelinking=yes
|
cannam@154
|
9600 break
|
cannam@154
|
9601 fi
|
cannam@154
|
9602 done
|
cannam@154
|
9603 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
9604 # With aix-soname=svr4, we create the lib.so.V shared archives only,
|
cannam@154
|
9605 # so we don't have lib.a shared libs to link our executables.
|
cannam@154
|
9606 # We have to force runtime linking in this case.
|
cannam@154
|
9607 aix_use_runtimelinking=yes
|
cannam@154
|
9608 LDFLAGS="$LDFLAGS -Wl,-brtl"
|
cannam@154
|
9609 fi
|
cannam@154
|
9610 ;;
|
cannam@154
|
9611 esac
|
cannam@154
|
9612
|
cannam@154
|
9613 exp_sym_flag='-bexport'
|
cannam@154
|
9614 no_entry_flag='-bnoentry'
|
cannam@154
|
9615 fi
|
cannam@154
|
9616
|
cannam@154
|
9617 # When large executables or shared objects are built, AIX ld can
|
cannam@154
|
9618 # have problems creating the table of contents. If linking a library
|
cannam@154
|
9619 # or program results in "error TOC overflow" add -mminimal-toc to
|
cannam@154
|
9620 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
|
cannam@154
|
9621 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
|
cannam@154
|
9622
|
cannam@154
|
9623 archive_cmds=''
|
cannam@154
|
9624 hardcode_direct=yes
|
cannam@154
|
9625 hardcode_direct_absolute=yes
|
cannam@154
|
9626 hardcode_libdir_separator=':'
|
cannam@154
|
9627 link_all_deplibs=yes
|
cannam@154
|
9628 file_list_spec='$wl-f,'
|
cannam@154
|
9629 case $with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
9630 aix,*) ;; # traditional, no import file
|
cannam@154
|
9631 svr4,* | *,yes) # use import file
|
cannam@154
|
9632 # The Import File defines what to hardcode.
|
cannam@154
|
9633 hardcode_direct=no
|
cannam@154
|
9634 hardcode_direct_absolute=no
|
cannam@154
|
9635 ;;
|
cannam@154
|
9636 esac
|
cannam@154
|
9637
|
cannam@154
|
9638 if test yes = "$GCC"; then
|
cannam@154
|
9639 case $host_os in aix4.[012]|aix4.[012].*)
|
cannam@154
|
9640 # We only want to do this on AIX 4.2 and lower, the check
|
cannam@154
|
9641 # below for broken collect2 doesn't work under 4.3+
|
cannam@154
|
9642 collect2name=`$CC -print-prog-name=collect2`
|
cannam@154
|
9643 if test -f "$collect2name" &&
|
cannam@154
|
9644 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
|
cannam@154
|
9645 then
|
cannam@154
|
9646 # We have reworked collect2
|
cannam@154
|
9647 :
|
cannam@154
|
9648 else
|
cannam@154
|
9649 # We have old collect2
|
cannam@154
|
9650 hardcode_direct=unsupported
|
cannam@154
|
9651 # It fails to find uninstalled libraries when the uninstalled
|
cannam@154
|
9652 # path is not listed in the libpath. Setting hardcode_minus_L
|
cannam@154
|
9653 # to unsupported forces relinking
|
cannam@154
|
9654 hardcode_minus_L=yes
|
cannam@154
|
9655 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9656 hardcode_libdir_separator=
|
cannam@154
|
9657 fi
|
cannam@154
|
9658 ;;
|
cannam@154
|
9659 esac
|
cannam@154
|
9660 shared_flag='-shared'
|
cannam@154
|
9661 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
9662 shared_flag="$shared_flag "'$wl-G'
|
cannam@154
|
9663 fi
|
cannam@154
|
9664 # Need to ensure runtime linking is disabled for the traditional
|
cannam@154
|
9665 # shared library, or the linker may eventually find shared libraries
|
cannam@154
|
9666 # /with/ Import File - we do not want to mix them.
|
cannam@154
|
9667 shared_flag_aix='-shared'
|
cannam@154
|
9668 shared_flag_svr4='-shared $wl-G'
|
cannam@154
|
9669 else
|
cannam@154
|
9670 # not using gcc
|
cannam@154
|
9671 if test ia64 = "$host_cpu"; then
|
cannam@154
|
9672 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
|
cannam@154
|
9673 # chokes on -Wl,-G. The following line is correct:
|
cannam@154
|
9674 shared_flag='-G'
|
cannam@154
|
9675 else
|
cannam@154
|
9676 if test yes = "$aix_use_runtimelinking"; then
|
cannam@154
|
9677 shared_flag='$wl-G'
|
cannam@154
|
9678 else
|
cannam@154
|
9679 shared_flag='$wl-bM:SRE'
|
cannam@154
|
9680 fi
|
cannam@154
|
9681 shared_flag_aix='$wl-bM:SRE'
|
cannam@154
|
9682 shared_flag_svr4='$wl-G'
|
cannam@154
|
9683 fi
|
cannam@154
|
9684 fi
|
cannam@154
|
9685
|
cannam@154
|
9686 export_dynamic_flag_spec='$wl-bexpall'
|
cannam@154
|
9687 # It seems that -bexpall does not export symbols beginning with
|
cannam@154
|
9688 # underscore (_), so it is better to generate a list of symbols to export.
|
cannam@154
|
9689 always_export_symbols=yes
|
cannam@154
|
9690 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
|
cannam@154
|
9691 # Warning - without using the other runtime loading flags (-brtl),
|
cannam@154
|
9692 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
9693 allow_undefined_flag='-berok'
|
cannam@154
|
9694 # Determine the default libpath from the value encoded in an
|
cannam@154
|
9695 # empty executable.
|
cannam@154
|
9696 if test set = "${lt_cv_aix_libpath+set}"; then
|
cannam@154
|
9697 aix_libpath=$lt_cv_aix_libpath
|
cannam@154
|
9698 else
|
cannam@154
|
9699 if ${lt_cv_aix_libpath_+:} false; then :
|
cannam@154
|
9700 $as_echo_n "(cached) " >&6
|
cannam@154
|
9701 else
|
cannam@154
|
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
9703 /* end confdefs.h. */
|
cannam@154
|
9704
|
cannam@154
|
9705 int
|
cannam@154
|
9706 main ()
|
cannam@154
|
9707 {
|
cannam@154
|
9708
|
cannam@154
|
9709 ;
|
cannam@154
|
9710 return 0;
|
cannam@154
|
9711 }
|
cannam@154
|
9712 _ACEOF
|
cannam@154
|
9713 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
9714
|
cannam@154
|
9715 lt_aix_libpath_sed='
|
cannam@154
|
9716 /Import File Strings/,/^$/ {
|
cannam@154
|
9717 /^0/ {
|
cannam@154
|
9718 s/^0 *\([^ ]*\) *$/\1/
|
cannam@154
|
9719 p
|
cannam@154
|
9720 }
|
cannam@154
|
9721 }'
|
cannam@154
|
9722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
9723 # Check for a 64-bit object if we didn't find anything.
|
cannam@154
|
9724 if test -z "$lt_cv_aix_libpath_"; then
|
cannam@154
|
9725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
9726 fi
|
cannam@154
|
9727 fi
|
cannam@154
|
9728 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
9729 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
9730 if test -z "$lt_cv_aix_libpath_"; then
|
cannam@154
|
9731 lt_cv_aix_libpath_=/usr/lib:/lib
|
cannam@154
|
9732 fi
|
cannam@154
|
9733
|
cannam@154
|
9734 fi
|
cannam@154
|
9735
|
cannam@154
|
9736 aix_libpath=$lt_cv_aix_libpath_
|
cannam@154
|
9737 fi
|
cannam@154
|
9738
|
cannam@154
|
9739 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
9740 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
|
cannam@154
|
9741 else
|
cannam@154
|
9742 if test ia64 = "$host_cpu"; then
|
cannam@154
|
9743 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
|
cannam@154
|
9744 allow_undefined_flag="-z nodefs"
|
cannam@154
|
9745 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"
|
cannam@154
|
9746 else
|
cannam@154
|
9747 # Determine the default libpath from the value encoded in an
|
cannam@154
|
9748 # empty executable.
|
cannam@154
|
9749 if test set = "${lt_cv_aix_libpath+set}"; then
|
cannam@154
|
9750 aix_libpath=$lt_cv_aix_libpath
|
cannam@154
|
9751 else
|
cannam@154
|
9752 if ${lt_cv_aix_libpath_+:} false; then :
|
cannam@154
|
9753 $as_echo_n "(cached) " >&6
|
cannam@154
|
9754 else
|
cannam@154
|
9755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
9756 /* end confdefs.h. */
|
cannam@154
|
9757
|
cannam@154
|
9758 int
|
cannam@154
|
9759 main ()
|
cannam@154
|
9760 {
|
cannam@154
|
9761
|
cannam@154
|
9762 ;
|
cannam@154
|
9763 return 0;
|
cannam@154
|
9764 }
|
cannam@154
|
9765 _ACEOF
|
cannam@154
|
9766 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
9767
|
cannam@154
|
9768 lt_aix_libpath_sed='
|
cannam@154
|
9769 /Import File Strings/,/^$/ {
|
cannam@154
|
9770 /^0/ {
|
cannam@154
|
9771 s/^0 *\([^ ]*\) *$/\1/
|
cannam@154
|
9772 p
|
cannam@154
|
9773 }
|
cannam@154
|
9774 }'
|
cannam@154
|
9775 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
9776 # Check for a 64-bit object if we didn't find anything.
|
cannam@154
|
9777 if test -z "$lt_cv_aix_libpath_"; then
|
cannam@154
|
9778 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
|
cannam@154
|
9779 fi
|
cannam@154
|
9780 fi
|
cannam@154
|
9781 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
9782 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
9783 if test -z "$lt_cv_aix_libpath_"; then
|
cannam@154
|
9784 lt_cv_aix_libpath_=/usr/lib:/lib
|
cannam@154
|
9785 fi
|
cannam@154
|
9786
|
cannam@154
|
9787 fi
|
cannam@154
|
9788
|
cannam@154
|
9789 aix_libpath=$lt_cv_aix_libpath_
|
cannam@154
|
9790 fi
|
cannam@154
|
9791
|
cannam@154
|
9792 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
|
cannam@154
|
9793 # Warning - without using the other run time loading flags,
|
cannam@154
|
9794 # -berok will link without error, but may produce a broken library.
|
cannam@154
|
9795 no_undefined_flag=' $wl-bernotok'
|
cannam@154
|
9796 allow_undefined_flag=' $wl-berok'
|
cannam@154
|
9797 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
9798 # We only use this code for GNU lds that support --whole-archive.
|
cannam@154
|
9799 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
|
cannam@154
|
9800 else
|
cannam@154
|
9801 # Exported symbols can be pulled into shared objects from archives
|
cannam@154
|
9802 whole_archive_flag_spec='$convenience'
|
cannam@154
|
9803 fi
|
cannam@154
|
9804 archive_cmds_need_lc=yes
|
cannam@154
|
9805 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
|
cannam@154
|
9806 # -brtl affects multiple linker settings, -berok does not and is overridden later
|
cannam@154
|
9807 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
|
cannam@154
|
9808 if test svr4 != "$with_aix_soname"; then
|
cannam@154
|
9809 # This is similar to how AIX traditionally builds its shared libraries.
|
cannam@154
|
9810 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'
|
cannam@154
|
9811 fi
|
cannam@154
|
9812 if test aix != "$with_aix_soname"; then
|
cannam@154
|
9813 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'
|
cannam@154
|
9814 else
|
cannam@154
|
9815 # used by -dlpreopen to get the symbols
|
cannam@154
|
9816 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
|
cannam@154
|
9817 fi
|
cannam@154
|
9818 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
|
cannam@154
|
9819 fi
|
cannam@154
|
9820 fi
|
cannam@154
|
9821 ;;
|
cannam@154
|
9822
|
cannam@154
|
9823 amigaos*)
|
cannam@154
|
9824 case $host_cpu in
|
cannam@154
|
9825 powerpc)
|
cannam@154
|
9826 # see comment about AmigaOS4 .so support
|
cannam@154
|
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
|
cannam@154
|
9828 archive_expsym_cmds=''
|
cannam@154
|
9829 ;;
|
cannam@154
|
9830 m68k)
|
cannam@154
|
9831 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)'
|
cannam@154
|
9832 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9833 hardcode_minus_L=yes
|
cannam@154
|
9834 ;;
|
cannam@154
|
9835 esac
|
cannam@154
|
9836 ;;
|
cannam@154
|
9837
|
cannam@154
|
9838 bsdi[45]*)
|
cannam@154
|
9839 export_dynamic_flag_spec=-rdynamic
|
cannam@154
|
9840 ;;
|
cannam@154
|
9841
|
cannam@154
|
9842 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
9843 # When not using gcc, we currently assume that we are using
|
cannam@154
|
9844 # Microsoft Visual C++.
|
cannam@154
|
9845 # hardcode_libdir_flag_spec is actually meaningless, as there is
|
cannam@154
|
9846 # no search path for DLLs.
|
cannam@154
|
9847 case $cc_basename in
|
cannam@154
|
9848 cl*)
|
cannam@154
|
9849 # Native MSVC
|
cannam@154
|
9850 hardcode_libdir_flag_spec=' '
|
cannam@154
|
9851 allow_undefined_flag=unsupported
|
cannam@154
|
9852 always_export_symbols=yes
|
cannam@154
|
9853 file_list_spec='@'
|
cannam@154
|
9854 # Tell ltmain to make .lib files, not .a files.
|
cannam@154
|
9855 libext=lib
|
cannam@154
|
9856 # Tell ltmain to make .dll files, not .so files.
|
cannam@154
|
9857 shrext_cmds=.dll
|
cannam@154
|
9858 # FIXME: Setting linknames here is a bad hack.
|
cannam@154
|
9859 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
|
cannam@154
|
9860 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
|
cannam@154
|
9861 cp "$export_symbols" "$output_objdir/$soname.def";
|
cannam@154
|
9862 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
|
cannam@154
|
9863 else
|
cannam@154
|
9864 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
|
cannam@154
|
9865 fi~
|
cannam@154
|
9866 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
|
cannam@154
|
9867 linknames='
|
cannam@154
|
9868 # The linker will not automatically build a static lib if we build a DLL.
|
cannam@154
|
9869 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
|
cannam@154
|
9870 enable_shared_with_static_runtimes=yes
|
cannam@154
|
9871 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
|
cannam@154
|
9872 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
|
cannam@154
|
9873 # Don't use ranlib
|
cannam@154
|
9874 old_postinstall_cmds='chmod 644 $oldlib'
|
cannam@154
|
9875 postlink_cmds='lt_outputfile="@OUTPUT@"~
|
cannam@154
|
9876 lt_tool_outputfile="@TOOL_OUTPUT@"~
|
cannam@154
|
9877 case $lt_outputfile in
|
cannam@154
|
9878 *.exe|*.EXE) ;;
|
cannam@154
|
9879 *)
|
cannam@154
|
9880 lt_outputfile=$lt_outputfile.exe
|
cannam@154
|
9881 lt_tool_outputfile=$lt_tool_outputfile.exe
|
cannam@154
|
9882 ;;
|
cannam@154
|
9883 esac~
|
cannam@154
|
9884 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
|
cannam@154
|
9885 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
|
cannam@154
|
9886 $RM "$lt_outputfile.manifest";
|
cannam@154
|
9887 fi'
|
cannam@154
|
9888 ;;
|
cannam@154
|
9889 *)
|
cannam@154
|
9890 # Assume MSVC wrapper
|
cannam@154
|
9891 hardcode_libdir_flag_spec=' '
|
cannam@154
|
9892 allow_undefined_flag=unsupported
|
cannam@154
|
9893 # Tell ltmain to make .lib files, not .a files.
|
cannam@154
|
9894 libext=lib
|
cannam@154
|
9895 # Tell ltmain to make .dll files, not .so files.
|
cannam@154
|
9896 shrext_cmds=.dll
|
cannam@154
|
9897 # FIXME: Setting linknames here is a bad hack.
|
cannam@154
|
9898 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
|
cannam@154
|
9899 # The linker will automatically build a .lib file if we build a DLL.
|
cannam@154
|
9900 old_archive_from_new_cmds='true'
|
cannam@154
|
9901 # FIXME: Should let the user specify the lib program.
|
cannam@154
|
9902 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
|
cannam@154
|
9903 enable_shared_with_static_runtimes=yes
|
cannam@154
|
9904 ;;
|
cannam@154
|
9905 esac
|
cannam@154
|
9906 ;;
|
cannam@154
|
9907
|
cannam@154
|
9908 darwin* | rhapsody*)
|
cannam@154
|
9909
|
cannam@154
|
9910
|
cannam@154
|
9911 archive_cmds_need_lc=no
|
cannam@154
|
9912 hardcode_direct=no
|
cannam@154
|
9913 hardcode_automatic=yes
|
cannam@154
|
9914 hardcode_shlibpath_var=unsupported
|
cannam@154
|
9915 if test yes = "$lt_cv_ld_force_load"; then
|
cannam@154
|
9916 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\"`'
|
cannam@154
|
9917
|
cannam@154
|
9918 else
|
cannam@154
|
9919 whole_archive_flag_spec=''
|
cannam@154
|
9920 fi
|
cannam@154
|
9921 link_all_deplibs=yes
|
cannam@154
|
9922 allow_undefined_flag=$_lt_dar_allow_undefined
|
cannam@154
|
9923 case $cc_basename in
|
cannam@154
|
9924 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
|
cannam@154
|
9925 *) _lt_dar_can_shared=$GCC ;;
|
cannam@154
|
9926 esac
|
cannam@154
|
9927 if test yes = "$_lt_dar_can_shared"; then
|
cannam@154
|
9928 output_verbose_link_cmd=func_echo_all
|
cannam@154
|
9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
|
cannam@154
|
9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
|
cannam@154
|
9931 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"
|
cannam@154
|
9932 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"
|
cannam@154
|
9933
|
cannam@154
|
9934 else
|
cannam@154
|
9935 ld_shlibs=no
|
cannam@154
|
9936 fi
|
cannam@154
|
9937
|
cannam@154
|
9938 ;;
|
cannam@154
|
9939
|
cannam@154
|
9940 dgux*)
|
cannam@154
|
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
9942 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
9943 hardcode_shlibpath_var=no
|
cannam@154
|
9944 ;;
|
cannam@154
|
9945
|
cannam@154
|
9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
|
cannam@154
|
9947 # support. Future versions do this automatically, but an explicit c++rt0.o
|
cannam@154
|
9948 # does not break anything, and helps significantly (at the cost of a little
|
cannam@154
|
9949 # extra space).
|
cannam@154
|
9950 freebsd2.2*)
|
cannam@154
|
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
|
cannam@154
|
9952 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@154
|
9953 hardcode_direct=yes
|
cannam@154
|
9954 hardcode_shlibpath_var=no
|
cannam@154
|
9955 ;;
|
cannam@154
|
9956
|
cannam@154
|
9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
|
cannam@154
|
9958 freebsd2.*)
|
cannam@154
|
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
9960 hardcode_direct=yes
|
cannam@154
|
9961 hardcode_minus_L=yes
|
cannam@154
|
9962 hardcode_shlibpath_var=no
|
cannam@154
|
9963 ;;
|
cannam@154
|
9964
|
cannam@154
|
9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
|
cannam@154
|
9966 freebsd* | dragonfly*)
|
cannam@154
|
9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
9968 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@154
|
9969 hardcode_direct=yes
|
cannam@154
|
9970 hardcode_shlibpath_var=no
|
cannam@154
|
9971 ;;
|
cannam@154
|
9972
|
cannam@154
|
9973 hpux9*)
|
cannam@154
|
9974 if test yes = "$GCC"; then
|
cannam@154
|
9975 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'
|
cannam@154
|
9976 else
|
cannam@154
|
9977 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'
|
cannam@154
|
9978 fi
|
cannam@154
|
9979 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
cannam@154
|
9980 hardcode_libdir_separator=:
|
cannam@154
|
9981 hardcode_direct=yes
|
cannam@154
|
9982
|
cannam@154
|
9983 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
9984 # but as the default location of the library.
|
cannam@154
|
9985 hardcode_minus_L=yes
|
cannam@154
|
9986 export_dynamic_flag_spec='$wl-E'
|
cannam@154
|
9987 ;;
|
cannam@154
|
9988
|
cannam@154
|
9989 hpux10*)
|
cannam@154
|
9990 if test yes,no = "$GCC,$with_gnu_ld"; then
|
cannam@154
|
9991 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
9992 else
|
cannam@154
|
9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
9994 fi
|
cannam@154
|
9995 if test no = "$with_gnu_ld"; then
|
cannam@154
|
9996 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
cannam@154
|
9997 hardcode_libdir_separator=:
|
cannam@154
|
9998 hardcode_direct=yes
|
cannam@154
|
9999 hardcode_direct_absolute=yes
|
cannam@154
|
10000 export_dynamic_flag_spec='$wl-E'
|
cannam@154
|
10001 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
10002 # but as the default location of the library.
|
cannam@154
|
10003 hardcode_minus_L=yes
|
cannam@154
|
10004 fi
|
cannam@154
|
10005 ;;
|
cannam@154
|
10006
|
cannam@154
|
10007 hpux11*)
|
cannam@154
|
10008 if test yes,no = "$GCC,$with_gnu_ld"; then
|
cannam@154
|
10009 case $host_cpu in
|
cannam@154
|
10010 hppa*64*)
|
cannam@154
|
10011 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10012 ;;
|
cannam@154
|
10013 ia64*)
|
cannam@154
|
10014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10015 ;;
|
cannam@154
|
10016 *)
|
cannam@154
|
10017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10018 ;;
|
cannam@154
|
10019 esac
|
cannam@154
|
10020 else
|
cannam@154
|
10021 case $host_cpu in
|
cannam@154
|
10022 hppa*64*)
|
cannam@154
|
10023 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10024 ;;
|
cannam@154
|
10025 ia64*)
|
cannam@154
|
10026 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10027 ;;
|
cannam@154
|
10028 *)
|
cannam@154
|
10029
|
cannam@154
|
10030 # Older versions of the 11.00 compiler do not understand -b yet
|
cannam@154
|
10031 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
|
cannam@154
|
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
|
cannam@154
|
10033 $as_echo_n "checking if $CC understands -b... " >&6; }
|
cannam@154
|
10034 if ${lt_cv_prog_compiler__b+:} false; then :
|
cannam@154
|
10035 $as_echo_n "(cached) " >&6
|
cannam@154
|
10036 else
|
cannam@154
|
10037 lt_cv_prog_compiler__b=no
|
cannam@154
|
10038 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
10039 LDFLAGS="$LDFLAGS -b"
|
cannam@154
|
10040 echo "$lt_simple_link_test_code" > conftest.$ac_ext
|
cannam@154
|
10041 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
|
cannam@154
|
10042 # The linker can only warn and ignore the option if not recognized
|
cannam@154
|
10043 # So say no if there are warnings
|
cannam@154
|
10044 if test -s conftest.err; then
|
cannam@154
|
10045 # Append any errors to the config.log.
|
cannam@154
|
10046 cat conftest.err 1>&5
|
cannam@154
|
10047 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
|
cannam@154
|
10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
|
cannam@154
|
10049 if diff conftest.exp conftest.er2 >/dev/null; then
|
cannam@154
|
10050 lt_cv_prog_compiler__b=yes
|
cannam@154
|
10051 fi
|
cannam@154
|
10052 else
|
cannam@154
|
10053 lt_cv_prog_compiler__b=yes
|
cannam@154
|
10054 fi
|
cannam@154
|
10055 fi
|
cannam@154
|
10056 $RM -r conftest*
|
cannam@154
|
10057 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
10058
|
cannam@154
|
10059 fi
|
cannam@154
|
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
|
cannam@154
|
10061 $as_echo "$lt_cv_prog_compiler__b" >&6; }
|
cannam@154
|
10062
|
cannam@154
|
10063 if test yes = "$lt_cv_prog_compiler__b"; then
|
cannam@154
|
10064 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10065 else
|
cannam@154
|
10066 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10067 fi
|
cannam@154
|
10068
|
cannam@154
|
10069 ;;
|
cannam@154
|
10070 esac
|
cannam@154
|
10071 fi
|
cannam@154
|
10072 if test no = "$with_gnu_ld"; then
|
cannam@154
|
10073 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
|
cannam@154
|
10074 hardcode_libdir_separator=:
|
cannam@154
|
10075
|
cannam@154
|
10076 case $host_cpu in
|
cannam@154
|
10077 hppa*64*|ia64*)
|
cannam@154
|
10078 hardcode_direct=no
|
cannam@154
|
10079 hardcode_shlibpath_var=no
|
cannam@154
|
10080 ;;
|
cannam@154
|
10081 *)
|
cannam@154
|
10082 hardcode_direct=yes
|
cannam@154
|
10083 hardcode_direct_absolute=yes
|
cannam@154
|
10084 export_dynamic_flag_spec='$wl-E'
|
cannam@154
|
10085
|
cannam@154
|
10086 # hardcode_minus_L: Not really in the search PATH,
|
cannam@154
|
10087 # but as the default location of the library.
|
cannam@154
|
10088 hardcode_minus_L=yes
|
cannam@154
|
10089 ;;
|
cannam@154
|
10090 esac
|
cannam@154
|
10091 fi
|
cannam@154
|
10092 ;;
|
cannam@154
|
10093
|
cannam@154
|
10094 irix5* | irix6* | nonstopux*)
|
cannam@154
|
10095 if test yes = "$GCC"; then
|
cannam@154
|
10096 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'
|
cannam@154
|
10097 # Try to use the -exported_symbol ld option, if it does not
|
cannam@154
|
10098 # work, assume that -exports_file does not work either and
|
cannam@154
|
10099 # implicitly export all symbols.
|
cannam@154
|
10100 # This should be the same for all languages, so no per-tag cache variable.
|
cannam@154
|
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
|
cannam@154
|
10102 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
|
cannam@154
|
10103 if ${lt_cv_irix_exported_symbol+:} false; then :
|
cannam@154
|
10104 $as_echo_n "(cached) " >&6
|
cannam@154
|
10105 else
|
cannam@154
|
10106 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
10107 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
|
cannam@154
|
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
10109 /* end confdefs.h. */
|
cannam@154
|
10110 int foo (void) { return 0; }
|
cannam@154
|
10111 _ACEOF
|
cannam@154
|
10112 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
10113 lt_cv_irix_exported_symbol=yes
|
cannam@154
|
10114 else
|
cannam@154
|
10115 lt_cv_irix_exported_symbol=no
|
cannam@154
|
10116 fi
|
cannam@154
|
10117 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
10118 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
10119 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
10120 fi
|
cannam@154
|
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
|
cannam@154
|
10122 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
|
cannam@154
|
10123 if test yes = "$lt_cv_irix_exported_symbol"; then
|
cannam@154
|
10124 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'
|
cannam@154
|
10125 fi
|
cannam@154
|
10126 else
|
cannam@154
|
10127 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'
|
cannam@154
|
10128 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'
|
cannam@154
|
10129 fi
|
cannam@154
|
10130 archive_cmds_need_lc='no'
|
cannam@154
|
10131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
10132 hardcode_libdir_separator=:
|
cannam@154
|
10133 inherit_rpath=yes
|
cannam@154
|
10134 link_all_deplibs=yes
|
cannam@154
|
10135 ;;
|
cannam@154
|
10136
|
cannam@154
|
10137 linux*)
|
cannam@154
|
10138 case $cc_basename in
|
cannam@154
|
10139 tcc*)
|
cannam@154
|
10140 # Fabrice Bellard et al's Tiny C Compiler
|
cannam@154
|
10141 ld_shlibs=yes
|
cannam@154
|
10142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10143 ;;
|
cannam@154
|
10144 esac
|
cannam@154
|
10145 ;;
|
cannam@154
|
10146
|
cannam@154
|
10147 netbsd*)
|
cannam@154
|
10148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
|
cannam@154
|
10150 else
|
cannam@154
|
10151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
|
cannam@154
|
10152 fi
|
cannam@154
|
10153 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@154
|
10154 hardcode_direct=yes
|
cannam@154
|
10155 hardcode_shlibpath_var=no
|
cannam@154
|
10156 ;;
|
cannam@154
|
10157
|
cannam@154
|
10158 newsos6)
|
cannam@154
|
10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10160 hardcode_direct=yes
|
cannam@154
|
10161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
10162 hardcode_libdir_separator=:
|
cannam@154
|
10163 hardcode_shlibpath_var=no
|
cannam@154
|
10164 ;;
|
cannam@154
|
10165
|
cannam@154
|
10166 *nto* | *qnx*)
|
cannam@154
|
10167 ;;
|
cannam@154
|
10168
|
cannam@154
|
10169 openbsd* | bitrig*)
|
cannam@154
|
10170 if test -f /usr/libexec/ld.so; then
|
cannam@154
|
10171 hardcode_direct=yes
|
cannam@154
|
10172 hardcode_shlibpath_var=no
|
cannam@154
|
10173 hardcode_direct_absolute=yes
|
cannam@154
|
10174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
10175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
|
cannam@154
|
10177 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
cannam@154
|
10178 export_dynamic_flag_spec='$wl-E'
|
cannam@154
|
10179 else
|
cannam@154
|
10180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10181 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
|
cannam@154
|
10182 fi
|
cannam@154
|
10183 else
|
cannam@154
|
10184 ld_shlibs=no
|
cannam@154
|
10185 fi
|
cannam@154
|
10186 ;;
|
cannam@154
|
10187
|
cannam@154
|
10188 os2*)
|
cannam@154
|
10189 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
10190 hardcode_minus_L=yes
|
cannam@154
|
10191 allow_undefined_flag=unsupported
|
cannam@154
|
10192 shrext_cmds=.dll
|
cannam@154
|
10193 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
10194 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
10195 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
10196 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
10197 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
|
cannam@154
|
10198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
10199 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
10200 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
|
cannam@154
|
10201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
|
cannam@154
|
10202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
|
cannam@154
|
10203 $ECHO EXPORTS >> $output_objdir/$libname.def~
|
cannam@154
|
10204 prefix_cmds="$SED"~
|
cannam@154
|
10205 if test EXPORTS = "`$SED 1q $export_symbols`"; then
|
cannam@154
|
10206 prefix_cmds="$prefix_cmds -e 1d";
|
cannam@154
|
10207 fi~
|
cannam@154
|
10208 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
|
cannam@154
|
10209 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
|
cannam@154
|
10210 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
|
cannam@154
|
10211 emximp -o $lib $output_objdir/$libname.def'
|
cannam@154
|
10212 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
|
cannam@154
|
10213 enable_shared_with_static_runtimes=yes
|
cannam@154
|
10214 ;;
|
cannam@154
|
10215
|
cannam@154
|
10216 osf3*)
|
cannam@154
|
10217 if test yes = "$GCC"; then
|
cannam@154
|
10218 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
10219 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'
|
cannam@154
|
10220 else
|
cannam@154
|
10221 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@154
|
10222 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'
|
cannam@154
|
10223 fi
|
cannam@154
|
10224 archive_cmds_need_lc='no'
|
cannam@154
|
10225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
10226 hardcode_libdir_separator=:
|
cannam@154
|
10227 ;;
|
cannam@154
|
10228
|
cannam@154
|
10229 osf4* | osf5*) # as osf3* with the addition of -msym flag
|
cannam@154
|
10230 if test yes = "$GCC"; then
|
cannam@154
|
10231 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
|
cannam@154
|
10232 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'
|
cannam@154
|
10233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
|
cannam@154
|
10234 else
|
cannam@154
|
10235 allow_undefined_flag=' -expect_unresolved \*'
|
cannam@154
|
10236 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'
|
cannam@154
|
10237 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~
|
cannam@154
|
10238 $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'
|
cannam@154
|
10239
|
cannam@154
|
10240 # Both c and cxx compiler support -rpath directly
|
cannam@154
|
10241 hardcode_libdir_flag_spec='-rpath $libdir'
|
cannam@154
|
10242 fi
|
cannam@154
|
10243 archive_cmds_need_lc='no'
|
cannam@154
|
10244 hardcode_libdir_separator=:
|
cannam@154
|
10245 ;;
|
cannam@154
|
10246
|
cannam@154
|
10247 solaris*)
|
cannam@154
|
10248 no_undefined_flag=' -z defs'
|
cannam@154
|
10249 if test yes = "$GCC"; then
|
cannam@154
|
10250 wlarc='$wl'
|
cannam@154
|
10251 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10252 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
10253 $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'
|
cannam@154
|
10254 else
|
cannam@154
|
10255 case `$CC -V 2>&1` in
|
cannam@154
|
10256 *"Compilers 5.0"*)
|
cannam@154
|
10257 wlarc=''
|
cannam@154
|
10258 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
10260 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
|
cannam@154
|
10261 ;;
|
cannam@154
|
10262 *)
|
cannam@154
|
10263 wlarc='$wl'
|
cannam@154
|
10264 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10265 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
|
cannam@154
|
10266 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
|
cannam@154
|
10267 ;;
|
cannam@154
|
10268 esac
|
cannam@154
|
10269 fi
|
cannam@154
|
10270 hardcode_libdir_flag_spec='-R$libdir'
|
cannam@154
|
10271 hardcode_shlibpath_var=no
|
cannam@154
|
10272 case $host_os in
|
cannam@154
|
10273 solaris2.[0-5] | solaris2.[0-5].*) ;;
|
cannam@154
|
10274 *)
|
cannam@154
|
10275 # The compiler driver will combine and reorder linker options,
|
cannam@154
|
10276 # but understands '-z linker_flag'. GCC discards it without '$wl',
|
cannam@154
|
10277 # but is careful enough not to reorder.
|
cannam@154
|
10278 # Supported since Solaris 2.6 (maybe 2.5.1?)
|
cannam@154
|
10279 if test yes = "$GCC"; then
|
cannam@154
|
10280 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
|
cannam@154
|
10281 else
|
cannam@154
|
10282 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
|
cannam@154
|
10283 fi
|
cannam@154
|
10284 ;;
|
cannam@154
|
10285 esac
|
cannam@154
|
10286 link_all_deplibs=yes
|
cannam@154
|
10287 ;;
|
cannam@154
|
10288
|
cannam@154
|
10289 sunos4*)
|
cannam@154
|
10290 if test sequent = "$host_vendor"; then
|
cannam@154
|
10291 # Use $CC to link under sequent, because it throws in some extra .o
|
cannam@154
|
10292 # files that make .init and .fini sections work.
|
cannam@154
|
10293 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10294 else
|
cannam@154
|
10295 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10296 fi
|
cannam@154
|
10297 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
10298 hardcode_direct=yes
|
cannam@154
|
10299 hardcode_minus_L=yes
|
cannam@154
|
10300 hardcode_shlibpath_var=no
|
cannam@154
|
10301 ;;
|
cannam@154
|
10302
|
cannam@154
|
10303 sysv4)
|
cannam@154
|
10304 case $host_vendor in
|
cannam@154
|
10305 sni)
|
cannam@154
|
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10307 hardcode_direct=yes # is this really true???
|
cannam@154
|
10308 ;;
|
cannam@154
|
10309 siemens)
|
cannam@154
|
10310 ## LD is ld it makes a PLAMLIB
|
cannam@154
|
10311 ## CC just makes a GrossModule.
|
cannam@154
|
10312 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10313 reload_cmds='$CC -r -o $output$reload_objs'
|
cannam@154
|
10314 hardcode_direct=no
|
cannam@154
|
10315 ;;
|
cannam@154
|
10316 motorola)
|
cannam@154
|
10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10318 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
|
cannam@154
|
10319 ;;
|
cannam@154
|
10320 esac
|
cannam@154
|
10321 runpath_var='LD_RUN_PATH'
|
cannam@154
|
10322 hardcode_shlibpath_var=no
|
cannam@154
|
10323 ;;
|
cannam@154
|
10324
|
cannam@154
|
10325 sysv4.3*)
|
cannam@154
|
10326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10327 hardcode_shlibpath_var=no
|
cannam@154
|
10328 export_dynamic_flag_spec='-Bexport'
|
cannam@154
|
10329 ;;
|
cannam@154
|
10330
|
cannam@154
|
10331 sysv4*MP*)
|
cannam@154
|
10332 if test -d /usr/nec; then
|
cannam@154
|
10333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10334 hardcode_shlibpath_var=no
|
cannam@154
|
10335 runpath_var=LD_RUN_PATH
|
cannam@154
|
10336 hardcode_runpath_var=yes
|
cannam@154
|
10337 ld_shlibs=yes
|
cannam@154
|
10338 fi
|
cannam@154
|
10339 ;;
|
cannam@154
|
10340
|
cannam@154
|
10341 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
|
cannam@154
|
10342 no_undefined_flag='$wl-z,text'
|
cannam@154
|
10343 archive_cmds_need_lc=no
|
cannam@154
|
10344 hardcode_shlibpath_var=no
|
cannam@154
|
10345 runpath_var='LD_RUN_PATH'
|
cannam@154
|
10346
|
cannam@154
|
10347 if test yes = "$GCC"; then
|
cannam@154
|
10348 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10349 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10350 else
|
cannam@154
|
10351 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10352 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10353 fi
|
cannam@154
|
10354 ;;
|
cannam@154
|
10355
|
cannam@154
|
10356 sysv5* | sco3.2v5* | sco5v6*)
|
cannam@154
|
10357 # Note: We CANNOT use -z defs as we might desire, because we do not
|
cannam@154
|
10358 # link with -lc, and that would cause any symbols used from libc to
|
cannam@154
|
10359 # always be unresolved, which means just about no library would
|
cannam@154
|
10360 # ever link correctly. If we're not using GNU ld we use -z text
|
cannam@154
|
10361 # though, which does catch some bad symbols but isn't as heavy-handed
|
cannam@154
|
10362 # as -z defs.
|
cannam@154
|
10363 no_undefined_flag='$wl-z,text'
|
cannam@154
|
10364 allow_undefined_flag='$wl-z,nodefs'
|
cannam@154
|
10365 archive_cmds_need_lc=no
|
cannam@154
|
10366 hardcode_shlibpath_var=no
|
cannam@154
|
10367 hardcode_libdir_flag_spec='$wl-R,$libdir'
|
cannam@154
|
10368 hardcode_libdir_separator=':'
|
cannam@154
|
10369 link_all_deplibs=yes
|
cannam@154
|
10370 export_dynamic_flag_spec='$wl-Bexport'
|
cannam@154
|
10371 runpath_var='LD_RUN_PATH'
|
cannam@154
|
10372
|
cannam@154
|
10373 if test yes = "$GCC"; then
|
cannam@154
|
10374 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10375 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10376 else
|
cannam@154
|
10377 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10378 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
|
cannam@154
|
10379 fi
|
cannam@154
|
10380 ;;
|
cannam@154
|
10381
|
cannam@154
|
10382 uts4*)
|
cannam@154
|
10383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
|
cannam@154
|
10384 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
10385 hardcode_shlibpath_var=no
|
cannam@154
|
10386 ;;
|
cannam@154
|
10387
|
cannam@154
|
10388 *)
|
cannam@154
|
10389 ld_shlibs=no
|
cannam@154
|
10390 ;;
|
cannam@154
|
10391 esac
|
cannam@154
|
10392
|
cannam@154
|
10393 if test sni = "$host_vendor"; then
|
cannam@154
|
10394 case $host in
|
cannam@154
|
10395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
|
cannam@154
|
10396 export_dynamic_flag_spec='$wl-Blargedynsym'
|
cannam@154
|
10397 ;;
|
cannam@154
|
10398 esac
|
cannam@154
|
10399 fi
|
cannam@154
|
10400 fi
|
cannam@154
|
10401
|
cannam@154
|
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
|
cannam@154
|
10403 $as_echo "$ld_shlibs" >&6; }
|
cannam@154
|
10404 test no = "$ld_shlibs" && can_build_shared=no
|
cannam@154
|
10405
|
cannam@154
|
10406 with_gnu_ld=$with_gnu_ld
|
cannam@154
|
10407
|
cannam@154
|
10408
|
cannam@154
|
10409
|
cannam@154
|
10410
|
cannam@154
|
10411
|
cannam@154
|
10412
|
cannam@154
|
10413
|
cannam@154
|
10414
|
cannam@154
|
10415
|
cannam@154
|
10416
|
cannam@154
|
10417
|
cannam@154
|
10418
|
cannam@154
|
10419
|
cannam@154
|
10420
|
cannam@154
|
10421
|
cannam@154
|
10422 #
|
cannam@154
|
10423 # Do we need to explicitly link libc?
|
cannam@154
|
10424 #
|
cannam@154
|
10425 case "x$archive_cmds_need_lc" in
|
cannam@154
|
10426 x|xyes)
|
cannam@154
|
10427 # Assume -lc should be added
|
cannam@154
|
10428 archive_cmds_need_lc=yes
|
cannam@154
|
10429
|
cannam@154
|
10430 if test yes,yes = "$GCC,$enable_shared"; then
|
cannam@154
|
10431 case $archive_cmds in
|
cannam@154
|
10432 *'~'*)
|
cannam@154
|
10433 # FIXME: we may have to deal with multi-command sequences.
|
cannam@154
|
10434 ;;
|
cannam@154
|
10435 '$CC '*)
|
cannam@154
|
10436 # Test whether the compiler implicitly links with -lc since on some
|
cannam@154
|
10437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
|
cannam@154
|
10438 # to ld, don't add -lc before -lgcc.
|
cannam@154
|
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
|
cannam@154
|
10440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
|
cannam@154
|
10441 if ${lt_cv_archive_cmds_need_lc+:} false; then :
|
cannam@154
|
10442 $as_echo_n "(cached) " >&6
|
cannam@154
|
10443 else
|
cannam@154
|
10444 $RM conftest*
|
cannam@154
|
10445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
|
cannam@154
|
10446
|
cannam@154
|
10447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
|
cannam@154
|
10448 (eval $ac_compile) 2>&5
|
cannam@154
|
10449 ac_status=$?
|
cannam@154
|
10450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
10451 test $ac_status = 0; } 2>conftest.err; then
|
cannam@154
|
10452 soname=conftest
|
cannam@154
|
10453 lib=conftest
|
cannam@154
|
10454 libobjs=conftest.$ac_objext
|
cannam@154
|
10455 deplibs=
|
cannam@154
|
10456 wl=$lt_prog_compiler_wl
|
cannam@154
|
10457 pic_flag=$lt_prog_compiler_pic
|
cannam@154
|
10458 compiler_flags=-v
|
cannam@154
|
10459 linker_flags=-v
|
cannam@154
|
10460 verstring=
|
cannam@154
|
10461 output_objdir=.
|
cannam@154
|
10462 libname=conftest
|
cannam@154
|
10463 lt_save_allow_undefined_flag=$allow_undefined_flag
|
cannam@154
|
10464 allow_undefined_flag=
|
cannam@154
|
10465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
|
cannam@154
|
10466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
|
cannam@154
|
10467 ac_status=$?
|
cannam@154
|
10468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
10469 test $ac_status = 0; }
|
cannam@154
|
10470 then
|
cannam@154
|
10471 lt_cv_archive_cmds_need_lc=no
|
cannam@154
|
10472 else
|
cannam@154
|
10473 lt_cv_archive_cmds_need_lc=yes
|
cannam@154
|
10474 fi
|
cannam@154
|
10475 allow_undefined_flag=$lt_save_allow_undefined_flag
|
cannam@154
|
10476 else
|
cannam@154
|
10477 cat conftest.err 1>&5
|
cannam@154
|
10478 fi
|
cannam@154
|
10479 $RM conftest*
|
cannam@154
|
10480
|
cannam@154
|
10481 fi
|
cannam@154
|
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
|
cannam@154
|
10483 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
|
cannam@154
|
10484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
|
cannam@154
|
10485 ;;
|
cannam@154
|
10486 esac
|
cannam@154
|
10487 fi
|
cannam@154
|
10488 ;;
|
cannam@154
|
10489 esac
|
cannam@154
|
10490
|
cannam@154
|
10491
|
cannam@154
|
10492
|
cannam@154
|
10493
|
cannam@154
|
10494
|
cannam@154
|
10495
|
cannam@154
|
10496
|
cannam@154
|
10497
|
cannam@154
|
10498
|
cannam@154
|
10499
|
cannam@154
|
10500
|
cannam@154
|
10501
|
cannam@154
|
10502
|
cannam@154
|
10503
|
cannam@154
|
10504
|
cannam@154
|
10505
|
cannam@154
|
10506
|
cannam@154
|
10507
|
cannam@154
|
10508
|
cannam@154
|
10509
|
cannam@154
|
10510
|
cannam@154
|
10511
|
cannam@154
|
10512
|
cannam@154
|
10513
|
cannam@154
|
10514
|
cannam@154
|
10515
|
cannam@154
|
10516
|
cannam@154
|
10517
|
cannam@154
|
10518
|
cannam@154
|
10519
|
cannam@154
|
10520
|
cannam@154
|
10521
|
cannam@154
|
10522
|
cannam@154
|
10523
|
cannam@154
|
10524
|
cannam@154
|
10525
|
cannam@154
|
10526
|
cannam@154
|
10527
|
cannam@154
|
10528
|
cannam@154
|
10529
|
cannam@154
|
10530
|
cannam@154
|
10531
|
cannam@154
|
10532
|
cannam@154
|
10533
|
cannam@154
|
10534
|
cannam@154
|
10535
|
cannam@154
|
10536
|
cannam@154
|
10537
|
cannam@154
|
10538
|
cannam@154
|
10539
|
cannam@154
|
10540
|
cannam@154
|
10541
|
cannam@154
|
10542
|
cannam@154
|
10543
|
cannam@154
|
10544
|
cannam@154
|
10545
|
cannam@154
|
10546
|
cannam@154
|
10547
|
cannam@154
|
10548
|
cannam@154
|
10549
|
cannam@154
|
10550
|
cannam@154
|
10551
|
cannam@154
|
10552
|
cannam@154
|
10553
|
cannam@154
|
10554
|
cannam@154
|
10555
|
cannam@154
|
10556
|
cannam@154
|
10557
|
cannam@154
|
10558
|
cannam@154
|
10559
|
cannam@154
|
10560
|
cannam@154
|
10561
|
cannam@154
|
10562
|
cannam@154
|
10563
|
cannam@154
|
10564
|
cannam@154
|
10565
|
cannam@154
|
10566
|
cannam@154
|
10567
|
cannam@154
|
10568
|
cannam@154
|
10569
|
cannam@154
|
10570
|
cannam@154
|
10571
|
cannam@154
|
10572
|
cannam@154
|
10573
|
cannam@154
|
10574
|
cannam@154
|
10575
|
cannam@154
|
10576
|
cannam@154
|
10577
|
cannam@154
|
10578
|
cannam@154
|
10579
|
cannam@154
|
10580
|
cannam@154
|
10581
|
cannam@154
|
10582
|
cannam@154
|
10583
|
cannam@154
|
10584
|
cannam@154
|
10585
|
cannam@154
|
10586
|
cannam@154
|
10587
|
cannam@154
|
10588
|
cannam@154
|
10589
|
cannam@154
|
10590
|
cannam@154
|
10591
|
cannam@154
|
10592
|
cannam@154
|
10593
|
cannam@154
|
10594
|
cannam@154
|
10595
|
cannam@154
|
10596
|
cannam@154
|
10597
|
cannam@154
|
10598
|
cannam@154
|
10599
|
cannam@154
|
10600
|
cannam@154
|
10601
|
cannam@154
|
10602
|
cannam@154
|
10603
|
cannam@154
|
10604
|
cannam@154
|
10605
|
cannam@154
|
10606
|
cannam@154
|
10607
|
cannam@154
|
10608
|
cannam@154
|
10609
|
cannam@154
|
10610
|
cannam@154
|
10611
|
cannam@154
|
10612
|
cannam@154
|
10613
|
cannam@154
|
10614
|
cannam@154
|
10615
|
cannam@154
|
10616
|
cannam@154
|
10617
|
cannam@154
|
10618
|
cannam@154
|
10619
|
cannam@154
|
10620
|
cannam@154
|
10621
|
cannam@154
|
10622
|
cannam@154
|
10623
|
cannam@154
|
10624
|
cannam@154
|
10625
|
cannam@154
|
10626
|
cannam@154
|
10627
|
cannam@154
|
10628
|
cannam@154
|
10629
|
cannam@154
|
10630
|
cannam@154
|
10631
|
cannam@154
|
10632
|
cannam@154
|
10633
|
cannam@154
|
10634
|
cannam@154
|
10635
|
cannam@154
|
10636
|
cannam@154
|
10637
|
cannam@154
|
10638
|
cannam@154
|
10639
|
cannam@154
|
10640
|
cannam@154
|
10641
|
cannam@154
|
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
|
cannam@154
|
10643 $as_echo_n "checking dynamic linker characteristics... " >&6; }
|
cannam@154
|
10644
|
cannam@154
|
10645 if test yes = "$GCC"; then
|
cannam@154
|
10646 case $host_os in
|
cannam@154
|
10647 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
|
cannam@154
|
10648 *) lt_awk_arg='/^libraries:/' ;;
|
cannam@154
|
10649 esac
|
cannam@154
|
10650 case $host_os in
|
cannam@154
|
10651 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
|
cannam@154
|
10652 *) lt_sed_strip_eq='s|=/|/|g' ;;
|
cannam@154
|
10653 esac
|
cannam@154
|
10654 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
|
cannam@154
|
10655 case $lt_search_path_spec in
|
cannam@154
|
10656 *\;*)
|
cannam@154
|
10657 # if the path contains ";" then we assume it to be the separator
|
cannam@154
|
10658 # otherwise default to the standard path separator (i.e. ":") - it is
|
cannam@154
|
10659 # assumed that no part of a normal pathname contains ";" but that should
|
cannam@154
|
10660 # okay in the real world where ";" in dirpaths is itself problematic.
|
cannam@154
|
10661 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
|
cannam@154
|
10662 ;;
|
cannam@154
|
10663 *)
|
cannam@154
|
10664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
10665 ;;
|
cannam@154
|
10666 esac
|
cannam@154
|
10667 # Ok, now we have the path, separated by spaces, we can step through it
|
cannam@154
|
10668 # and add multilib dir if necessary...
|
cannam@154
|
10669 lt_tmp_lt_search_path_spec=
|
cannam@154
|
10670 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
|
cannam@154
|
10671 # ...but if some path component already ends with the multilib dir we assume
|
cannam@154
|
10672 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
|
cannam@154
|
10673 case "$lt_multi_os_dir; $lt_search_path_spec " in
|
cannam@154
|
10674 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
|
cannam@154
|
10675 lt_multi_os_dir=
|
cannam@154
|
10676 ;;
|
cannam@154
|
10677 esac
|
cannam@154
|
10678 for lt_sys_path in $lt_search_path_spec; do
|
cannam@154
|
10679 if test -d "$lt_sys_path$lt_multi_os_dir"; then
|
cannam@154
|
10680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
|
cannam@154
|
10681 elif test -n "$lt_multi_os_dir"; then
|
cannam@154
|
10682 test -d "$lt_sys_path" && \
|
cannam@154
|
10683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
|
cannam@154
|
10684 fi
|
cannam@154
|
10685 done
|
cannam@154
|
10686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
|
cannam@154
|
10687 BEGIN {RS = " "; FS = "/|\n";} {
|
cannam@154
|
10688 lt_foo = "";
|
cannam@154
|
10689 lt_count = 0;
|
cannam@154
|
10690 for (lt_i = NF; lt_i > 0; lt_i--) {
|
cannam@154
|
10691 if ($lt_i != "" && $lt_i != ".") {
|
cannam@154
|
10692 if ($lt_i == "..") {
|
cannam@154
|
10693 lt_count++;
|
cannam@154
|
10694 } else {
|
cannam@154
|
10695 if (lt_count == 0) {
|
cannam@154
|
10696 lt_foo = "/" $lt_i lt_foo;
|
cannam@154
|
10697 } else {
|
cannam@154
|
10698 lt_count--;
|
cannam@154
|
10699 }
|
cannam@154
|
10700 }
|
cannam@154
|
10701 }
|
cannam@154
|
10702 }
|
cannam@154
|
10703 if (lt_foo != "") { lt_freq[lt_foo]++; }
|
cannam@154
|
10704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
|
cannam@154
|
10705 }'`
|
cannam@154
|
10706 # AWK program above erroneously prepends '/' to C:/dos/paths
|
cannam@154
|
10707 # for these hosts.
|
cannam@154
|
10708 case $host_os in
|
cannam@154
|
10709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
|
cannam@154
|
10710 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
|
cannam@154
|
10711 esac
|
cannam@154
|
10712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
|
cannam@154
|
10713 else
|
cannam@154
|
10714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@154
|
10715 fi
|
cannam@154
|
10716 library_names_spec=
|
cannam@154
|
10717 libname_spec='lib$name'
|
cannam@154
|
10718 soname_spec=
|
cannam@154
|
10719 shrext_cmds=.so
|
cannam@154
|
10720 postinstall_cmds=
|
cannam@154
|
10721 postuninstall_cmds=
|
cannam@154
|
10722 finish_cmds=
|
cannam@154
|
10723 finish_eval=
|
cannam@154
|
10724 shlibpath_var=
|
cannam@154
|
10725 shlibpath_overrides_runpath=unknown
|
cannam@154
|
10726 version_type=none
|
cannam@154
|
10727 dynamic_linker="$host_os ld.so"
|
cannam@154
|
10728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
|
cannam@154
|
10729 need_lib_prefix=unknown
|
cannam@154
|
10730 hardcode_into_libs=no
|
cannam@154
|
10731
|
cannam@154
|
10732 # when you set need_version to no, make sure it does not cause -set_version
|
cannam@154
|
10733 # flags to be left without arguments
|
cannam@154
|
10734 need_version=unknown
|
cannam@154
|
10735
|
cannam@154
|
10736
|
cannam@154
|
10737
|
cannam@154
|
10738 case $host_os in
|
cannam@154
|
10739 aix3*)
|
cannam@154
|
10740 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
10741 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
|
cannam@154
|
10742 shlibpath_var=LIBPATH
|
cannam@154
|
10743
|
cannam@154
|
10744 # AIX 3 has no versioning support, so we append a major version to the name.
|
cannam@154
|
10745 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
10746 ;;
|
cannam@154
|
10747
|
cannam@154
|
10748 aix[4-9]*)
|
cannam@154
|
10749 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
10750 need_lib_prefix=no
|
cannam@154
|
10751 need_version=no
|
cannam@154
|
10752 hardcode_into_libs=yes
|
cannam@154
|
10753 if test ia64 = "$host_cpu"; then
|
cannam@154
|
10754 # AIX 5 supports IA64
|
cannam@154
|
10755 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
|
cannam@154
|
10756 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
10757 else
|
cannam@154
|
10758 # With GCC up to 2.95.x, collect2 would create an import file
|
cannam@154
|
10759 # for dependence libraries. The import file would start with
|
cannam@154
|
10760 # the line '#! .'. This would cause the generated library to
|
cannam@154
|
10761 # depend on '.', always an invalid library. This was fixed in
|
cannam@154
|
10762 # development snapshots of GCC prior to 3.0.
|
cannam@154
|
10763 case $host_os in
|
cannam@154
|
10764 aix4 | aix4.[01] | aix4.[01].*)
|
cannam@154
|
10765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
|
cannam@154
|
10766 echo ' yes '
|
cannam@154
|
10767 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
|
cannam@154
|
10768 :
|
cannam@154
|
10769 else
|
cannam@154
|
10770 can_build_shared=no
|
cannam@154
|
10771 fi
|
cannam@154
|
10772 ;;
|
cannam@154
|
10773 esac
|
cannam@154
|
10774 # Using Import Files as archive members, it is possible to support
|
cannam@154
|
10775 # filename-based versioning of shared library archives on AIX. While
|
cannam@154
|
10776 # this would work for both with and without runtime linking, it will
|
cannam@154
|
10777 # prevent static linking of such archives. So we do filename-based
|
cannam@154
|
10778 # shared library versioning with .so extension only, which is used
|
cannam@154
|
10779 # when both runtime linking and shared linking is enabled.
|
cannam@154
|
10780 # Unfortunately, runtime linking may impact performance, so we do
|
cannam@154
|
10781 # not want this to be the default eventually. Also, we use the
|
cannam@154
|
10782 # versioned .so libs for executables only if there is the -brtl
|
cannam@154
|
10783 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
|
cannam@154
|
10784 # To allow for filename-based versioning support, we need to create
|
cannam@154
|
10785 # libNAME.so.V as an archive file, containing:
|
cannam@154
|
10786 # *) an Import File, referring to the versioned filename of the
|
cannam@154
|
10787 # archive as well as the shared archive member, telling the
|
cannam@154
|
10788 # bitwidth (32 or 64) of that shared object, and providing the
|
cannam@154
|
10789 # list of exported symbols of that shared object, eventually
|
cannam@154
|
10790 # decorated with the 'weak' keyword
|
cannam@154
|
10791 # *) the shared object with the F_LOADONLY flag set, to really avoid
|
cannam@154
|
10792 # it being seen by the linker.
|
cannam@154
|
10793 # At run time we better use the real file rather than another symlink,
|
cannam@154
|
10794 # but for link time we create the symlink libNAME.so -> libNAME.so.V
|
cannam@154
|
10795
|
cannam@154
|
10796 case $with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
10797 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
|
cannam@154
|
10798 # soname into executable. Probably we can add versioning support to
|
cannam@154
|
10799 # collect2, so additional links can be useful in future.
|
cannam@154
|
10800 aix,yes) # traditional libtool
|
cannam@154
|
10801 dynamic_linker='AIX unversionable lib.so'
|
cannam@154
|
10802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
|
cannam@154
|
10803 # instead of lib<name>.a to let people know that these are not
|
cannam@154
|
10804 # typical AIX shared libraries.
|
cannam@154
|
10805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
10806 ;;
|
cannam@154
|
10807 aix,no) # traditional AIX only
|
cannam@154
|
10808 dynamic_linker='AIX lib.a(lib.so.V)'
|
cannam@154
|
10809 # We preserve .a as extension for shared libraries through AIX4.2
|
cannam@154
|
10810 # and later when we are not doing run time linking.
|
cannam@154
|
10811 library_names_spec='$libname$release.a $libname.a'
|
cannam@154
|
10812 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
10813 ;;
|
cannam@154
|
10814 svr4,*) # full svr4 only
|
cannam@154
|
10815 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
|
cannam@154
|
10816 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
10817 # We do not specify a path in Import Files, so LIBPATH fires.
|
cannam@154
|
10818 shlibpath_overrides_runpath=yes
|
cannam@154
|
10819 ;;
|
cannam@154
|
10820 *,yes) # both, prefer svr4
|
cannam@154
|
10821 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
|
cannam@154
|
10822 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
10823 # unpreferred sharedlib libNAME.a needs extra handling
|
cannam@154
|
10824 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"'
|
cannam@154
|
10825 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"'
|
cannam@154
|
10826 # We do not specify a path in Import Files, so LIBPATH fires.
|
cannam@154
|
10827 shlibpath_overrides_runpath=yes
|
cannam@154
|
10828 ;;
|
cannam@154
|
10829 *,no) # both, prefer aix
|
cannam@154
|
10830 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
|
cannam@154
|
10831 library_names_spec='$libname$release.a $libname.a'
|
cannam@154
|
10832 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
10833 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
|
cannam@154
|
10834 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)'
|
cannam@154
|
10835 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"'
|
cannam@154
|
10836 ;;
|
cannam@154
|
10837 esac
|
cannam@154
|
10838 shlibpath_var=LIBPATH
|
cannam@154
|
10839 fi
|
cannam@154
|
10840 ;;
|
cannam@154
|
10841
|
cannam@154
|
10842 amigaos*)
|
cannam@154
|
10843 case $host_cpu in
|
cannam@154
|
10844 powerpc)
|
cannam@154
|
10845 # Since July 2007 AmigaOS4 officially supports .so libraries.
|
cannam@154
|
10846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
|
cannam@154
|
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
10848 ;;
|
cannam@154
|
10849 m68k)
|
cannam@154
|
10850 library_names_spec='$libname.ixlibrary $libname.a'
|
cannam@154
|
10851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
|
cannam@154
|
10852 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'
|
cannam@154
|
10853 ;;
|
cannam@154
|
10854 esac
|
cannam@154
|
10855 ;;
|
cannam@154
|
10856
|
cannam@154
|
10857 beos*)
|
cannam@154
|
10858 library_names_spec='$libname$shared_ext'
|
cannam@154
|
10859 dynamic_linker="$host_os ld.so"
|
cannam@154
|
10860 shlibpath_var=LIBRARY_PATH
|
cannam@154
|
10861 ;;
|
cannam@154
|
10862
|
cannam@154
|
10863 bsdi[45]*)
|
cannam@154
|
10864 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
10865 need_version=no
|
cannam@154
|
10866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
10867 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
|
cannam@154
|
10869 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
10870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
|
cannam@154
|
10871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
|
cannam@154
|
10872 # the default ld.so.conf also contains /usr/contrib/lib and
|
cannam@154
|
10873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
|
cannam@154
|
10874 # libtool to hard-code these into programs
|
cannam@154
|
10875 ;;
|
cannam@154
|
10876
|
cannam@154
|
10877 cygwin* | mingw* | pw32* | cegcc*)
|
cannam@154
|
10878 version_type=windows
|
cannam@154
|
10879 shrext_cmds=.dll
|
cannam@154
|
10880 need_version=no
|
cannam@154
|
10881 need_lib_prefix=no
|
cannam@154
|
10882
|
cannam@154
|
10883 case $GCC,$cc_basename in
|
cannam@154
|
10884 yes,*)
|
cannam@154
|
10885 # gcc
|
cannam@154
|
10886 library_names_spec='$libname.dll.a'
|
cannam@154
|
10887 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@154
|
10888 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
10889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
cannam@154
|
10890 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
10891 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
10892 $install_prog $dir/$dlname \$dldir/$dlname~
|
cannam@154
|
10893 chmod a+x \$dldir/$dlname~
|
cannam@154
|
10894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
cannam@154
|
10895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
cannam@154
|
10896 fi'
|
cannam@154
|
10897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@154
|
10898 dlpath=$dir/\$dldll~
|
cannam@154
|
10899 $RM \$dlpath'
|
cannam@154
|
10900 shlibpath_overrides_runpath=yes
|
cannam@154
|
10901
|
cannam@154
|
10902 case $host_os in
|
cannam@154
|
10903 cygwin*)
|
cannam@154
|
10904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
|
cannam@154
|
10905 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
10906
|
cannam@154
|
10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
|
cannam@154
|
10908 ;;
|
cannam@154
|
10909 mingw* | cegcc*)
|
cannam@154
|
10910 # MinGW DLLs use traditional 'lib' prefix
|
cannam@154
|
10911 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
10912 ;;
|
cannam@154
|
10913 pw32*)
|
cannam@154
|
10914 # pw32 DLLs use 'pw' prefix rather than 'lib'
|
cannam@154
|
10915 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
10916 ;;
|
cannam@154
|
10917 esac
|
cannam@154
|
10918 dynamic_linker='Win32 ld.exe'
|
cannam@154
|
10919 ;;
|
cannam@154
|
10920
|
cannam@154
|
10921 *,cl*)
|
cannam@154
|
10922 # Native MSVC
|
cannam@154
|
10923 libname_spec='$name'
|
cannam@154
|
10924 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
|
cannam@154
|
10925 library_names_spec='$libname.dll.lib'
|
cannam@154
|
10926
|
cannam@154
|
10927 case $build_os in
|
cannam@154
|
10928 mingw*)
|
cannam@154
|
10929 sys_lib_search_path_spec=
|
cannam@154
|
10930 lt_save_ifs=$IFS
|
cannam@154
|
10931 IFS=';'
|
cannam@154
|
10932 for lt_path in $LIB
|
cannam@154
|
10933 do
|
cannam@154
|
10934 IFS=$lt_save_ifs
|
cannam@154
|
10935 # Let DOS variable expansion print the short 8.3 style file name.
|
cannam@154
|
10936 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
|
cannam@154
|
10937 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
|
cannam@154
|
10938 done
|
cannam@154
|
10939 IFS=$lt_save_ifs
|
cannam@154
|
10940 # Convert to MSYS style.
|
cannam@154
|
10941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
|
cannam@154
|
10942 ;;
|
cannam@154
|
10943 cygwin*)
|
cannam@154
|
10944 # Convert to unix form, then to dos form, then back to unix form
|
cannam@154
|
10945 # but this time dos style (no spaces!) so that the unix form looks
|
cannam@154
|
10946 # like /cygdrive/c/PROGRA~1:/cygdr...
|
cannam@154
|
10947 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
|
cannam@154
|
10948 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
|
cannam@154
|
10949 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
10950 ;;
|
cannam@154
|
10951 *)
|
cannam@154
|
10952 sys_lib_search_path_spec=$LIB
|
cannam@154
|
10953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
|
cannam@154
|
10954 # It is most probably a Windows format PATH.
|
cannam@154
|
10955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
|
cannam@154
|
10956 else
|
cannam@154
|
10957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
|
cannam@154
|
10958 fi
|
cannam@154
|
10959 # FIXME: find the short name or the path components, as spaces are
|
cannam@154
|
10960 # common. (e.g. "Program Files" -> "PROGRA~1")
|
cannam@154
|
10961 ;;
|
cannam@154
|
10962 esac
|
cannam@154
|
10963
|
cannam@154
|
10964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
|
cannam@154
|
10965 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
10966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
|
cannam@154
|
10967 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
10968 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
10969 $install_prog $dir/$dlname \$dldir/$dlname'
|
cannam@154
|
10970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
|
cannam@154
|
10971 dlpath=$dir/\$dldll~
|
cannam@154
|
10972 $RM \$dlpath'
|
cannam@154
|
10973 shlibpath_overrides_runpath=yes
|
cannam@154
|
10974 dynamic_linker='Win32 link.exe'
|
cannam@154
|
10975 ;;
|
cannam@154
|
10976
|
cannam@154
|
10977 *)
|
cannam@154
|
10978 # Assume MSVC wrapper
|
cannam@154
|
10979 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
|
cannam@154
|
10980 dynamic_linker='Win32 ld.exe'
|
cannam@154
|
10981 ;;
|
cannam@154
|
10982 esac
|
cannam@154
|
10983 # FIXME: first we should search . and the directory the executable is in
|
cannam@154
|
10984 shlibpath_var=PATH
|
cannam@154
|
10985 ;;
|
cannam@154
|
10986
|
cannam@154
|
10987 darwin* | rhapsody*)
|
cannam@154
|
10988 dynamic_linker="$host_os dyld"
|
cannam@154
|
10989 version_type=darwin
|
cannam@154
|
10990 need_lib_prefix=no
|
cannam@154
|
10991 need_version=no
|
cannam@154
|
10992 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
|
cannam@154
|
10993 soname_spec='$libname$release$major$shared_ext'
|
cannam@154
|
10994 shlibpath_overrides_runpath=yes
|
cannam@154
|
10995 shlibpath_var=DYLD_LIBRARY_PATH
|
cannam@154
|
10996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
|
cannam@154
|
10997
|
cannam@154
|
10998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
|
cannam@154
|
10999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
|
cannam@154
|
11000 ;;
|
cannam@154
|
11001
|
cannam@154
|
11002 dgux*)
|
cannam@154
|
11003 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11004 need_lib_prefix=no
|
cannam@154
|
11005 need_version=no
|
cannam@154
|
11006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11007 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11008 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11009 ;;
|
cannam@154
|
11010
|
cannam@154
|
11011 freebsd* | dragonfly*)
|
cannam@154
|
11012 # DragonFly does not have aout. When/if they implement a new
|
cannam@154
|
11013 # versioning mechanism, adjust this.
|
cannam@154
|
11014 if test -x /usr/bin/objformat; then
|
cannam@154
|
11015 objformat=`/usr/bin/objformat`
|
cannam@154
|
11016 else
|
cannam@154
|
11017 case $host_os in
|
cannam@154
|
11018 freebsd[23].*) objformat=aout ;;
|
cannam@154
|
11019 *) objformat=elf ;;
|
cannam@154
|
11020 esac
|
cannam@154
|
11021 fi
|
cannam@154
|
11022 version_type=freebsd-$objformat
|
cannam@154
|
11023 case $version_type in
|
cannam@154
|
11024 freebsd-elf*)
|
cannam@154
|
11025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11026 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11027 need_version=no
|
cannam@154
|
11028 need_lib_prefix=no
|
cannam@154
|
11029 ;;
|
cannam@154
|
11030 freebsd-*)
|
cannam@154
|
11031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
11032 need_version=yes
|
cannam@154
|
11033 ;;
|
cannam@154
|
11034 esac
|
cannam@154
|
11035 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11036 case $host_os in
|
cannam@154
|
11037 freebsd2.*)
|
cannam@154
|
11038 shlibpath_overrides_runpath=yes
|
cannam@154
|
11039 ;;
|
cannam@154
|
11040 freebsd3.[01]* | freebsdelf3.[01]*)
|
cannam@154
|
11041 shlibpath_overrides_runpath=yes
|
cannam@154
|
11042 hardcode_into_libs=yes
|
cannam@154
|
11043 ;;
|
cannam@154
|
11044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
|
cannam@154
|
11045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
|
cannam@154
|
11046 shlibpath_overrides_runpath=no
|
cannam@154
|
11047 hardcode_into_libs=yes
|
cannam@154
|
11048 ;;
|
cannam@154
|
11049 *) # from 4.6 on, and DragonFly
|
cannam@154
|
11050 shlibpath_overrides_runpath=yes
|
cannam@154
|
11051 hardcode_into_libs=yes
|
cannam@154
|
11052 ;;
|
cannam@154
|
11053 esac
|
cannam@154
|
11054 ;;
|
cannam@154
|
11055
|
cannam@154
|
11056 haiku*)
|
cannam@154
|
11057 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11058 need_lib_prefix=no
|
cannam@154
|
11059 need_version=no
|
cannam@154
|
11060 dynamic_linker="$host_os runtime_loader"
|
cannam@154
|
11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11062 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11063 shlibpath_var=LIBRARY_PATH
|
cannam@154
|
11064 shlibpath_overrides_runpath=no
|
cannam@154
|
11065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
|
cannam@154
|
11066 hardcode_into_libs=yes
|
cannam@154
|
11067 ;;
|
cannam@154
|
11068
|
cannam@154
|
11069 hpux9* | hpux10* | hpux11*)
|
cannam@154
|
11070 # Give a soname corresponding to the major version so that dld.sl refuses to
|
cannam@154
|
11071 # link against other versions.
|
cannam@154
|
11072 version_type=sunos
|
cannam@154
|
11073 need_lib_prefix=no
|
cannam@154
|
11074 need_version=no
|
cannam@154
|
11075 case $host_cpu in
|
cannam@154
|
11076 ia64*)
|
cannam@154
|
11077 shrext_cmds='.so'
|
cannam@154
|
11078 hardcode_into_libs=yes
|
cannam@154
|
11079 dynamic_linker="$host_os dld.so"
|
cannam@154
|
11080 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@154
|
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11083 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11084 if test 32 = "$HPUX_IA64_MODE"; then
|
cannam@154
|
11085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
|
cannam@154
|
11086 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
|
cannam@154
|
11087 else
|
cannam@154
|
11088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
|
cannam@154
|
11089 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
|
cannam@154
|
11090 fi
|
cannam@154
|
11091 ;;
|
cannam@154
|
11092 hppa*64*)
|
cannam@154
|
11093 shrext_cmds='.sl'
|
cannam@154
|
11094 hardcode_into_libs=yes
|
cannam@154
|
11095 dynamic_linker="$host_os dld.sl"
|
cannam@154
|
11096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
|
cannam@154
|
11097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
|
cannam@154
|
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11099 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
|
cannam@154
|
11101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
11102 ;;
|
cannam@154
|
11103 *)
|
cannam@154
|
11104 shrext_cmds='.sl'
|
cannam@154
|
11105 dynamic_linker="$host_os dld.sl"
|
cannam@154
|
11106 shlibpath_var=SHLIB_PATH
|
cannam@154
|
11107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
|
cannam@154
|
11108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11109 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11110 ;;
|
cannam@154
|
11111 esac
|
cannam@154
|
11112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
|
cannam@154
|
11113 postinstall_cmds='chmod 555 $lib'
|
cannam@154
|
11114 # or fails outright, so override atomically:
|
cannam@154
|
11115 install_override_mode=555
|
cannam@154
|
11116 ;;
|
cannam@154
|
11117
|
cannam@154
|
11118 interix[3-9]*)
|
cannam@154
|
11119 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11120 need_lib_prefix=no
|
cannam@154
|
11121 need_version=no
|
cannam@154
|
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11123 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
|
cannam@154
|
11125 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11126 shlibpath_overrides_runpath=no
|
cannam@154
|
11127 hardcode_into_libs=yes
|
cannam@154
|
11128 ;;
|
cannam@154
|
11129
|
cannam@154
|
11130 irix5* | irix6* | nonstopux*)
|
cannam@154
|
11131 case $host_os in
|
cannam@154
|
11132 nonstopux*) version_type=nonstopux ;;
|
cannam@154
|
11133 *)
|
cannam@154
|
11134 if test yes = "$lt_cv_prog_gnu_ld"; then
|
cannam@154
|
11135 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11136 else
|
cannam@154
|
11137 version_type=irix
|
cannam@154
|
11138 fi ;;
|
cannam@154
|
11139 esac
|
cannam@154
|
11140 need_lib_prefix=no
|
cannam@154
|
11141 need_version=no
|
cannam@154
|
11142 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
|
cannam@154
|
11144 case $host_os in
|
cannam@154
|
11145 irix5* | nonstopux*)
|
cannam@154
|
11146 libsuff= shlibsuff=
|
cannam@154
|
11147 ;;
|
cannam@154
|
11148 *)
|
cannam@154
|
11149 case $LD in # libtool.m4 will add one of these switches to LD
|
cannam@154
|
11150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
|
cannam@154
|
11151 libsuff= shlibsuff= libmagic=32-bit;;
|
cannam@154
|
11152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
|
cannam@154
|
11153 libsuff=32 shlibsuff=N32 libmagic=N32;;
|
cannam@154
|
11154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
|
cannam@154
|
11155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
|
cannam@154
|
11156 *) libsuff= shlibsuff= libmagic=never-match;;
|
cannam@154
|
11157 esac
|
cannam@154
|
11158 ;;
|
cannam@154
|
11159 esac
|
cannam@154
|
11160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
|
cannam@154
|
11161 shlibpath_overrides_runpath=no
|
cannam@154
|
11162 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
|
cannam@154
|
11163 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
|
cannam@154
|
11164 hardcode_into_libs=yes
|
cannam@154
|
11165 ;;
|
cannam@154
|
11166
|
cannam@154
|
11167 # No shared lib support for Linux oldld, aout, or coff.
|
cannam@154
|
11168 linux*oldld* | linux*aout* | linux*coff*)
|
cannam@154
|
11169 dynamic_linker=no
|
cannam@154
|
11170 ;;
|
cannam@154
|
11171
|
cannam@154
|
11172 linux*android*)
|
cannam@154
|
11173 version_type=none # Android doesn't support versioned libraries.
|
cannam@154
|
11174 need_lib_prefix=no
|
cannam@154
|
11175 need_version=no
|
cannam@154
|
11176 library_names_spec='$libname$release$shared_ext'
|
cannam@154
|
11177 soname_spec='$libname$release$shared_ext'
|
cannam@154
|
11178 finish_cmds=
|
cannam@154
|
11179 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11180 shlibpath_overrides_runpath=yes
|
cannam@154
|
11181
|
cannam@154
|
11182 # This implies no fast_install, which is unacceptable.
|
cannam@154
|
11183 # Some rework will be needed to allow for fast_install
|
cannam@154
|
11184 # before this can be enabled.
|
cannam@154
|
11185 hardcode_into_libs=yes
|
cannam@154
|
11186
|
cannam@154
|
11187 dynamic_linker='Android linker'
|
cannam@154
|
11188 # Don't embed -rpath directories since the linker doesn't support them.
|
cannam@154
|
11189 hardcode_libdir_flag_spec='-L$libdir'
|
cannam@154
|
11190 ;;
|
cannam@154
|
11191
|
cannam@154
|
11192 # This must be glibc/ELF.
|
cannam@154
|
11193 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
|
cannam@154
|
11194 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11195 need_lib_prefix=no
|
cannam@154
|
11196 need_version=no
|
cannam@154
|
11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11198 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
|
cannam@154
|
11200 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11201 shlibpath_overrides_runpath=no
|
cannam@154
|
11202
|
cannam@154
|
11203 # Some binutils ld are patched to set DT_RUNPATH
|
cannam@154
|
11204 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
|
cannam@154
|
11205 $as_echo_n "(cached) " >&6
|
cannam@154
|
11206 else
|
cannam@154
|
11207 lt_cv_shlibpath_overrides_runpath=no
|
cannam@154
|
11208 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
11209 save_libdir=$libdir
|
cannam@154
|
11210 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
|
cannam@154
|
11211 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
|
cannam@154
|
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11213 /* end confdefs.h. */
|
cannam@154
|
11214
|
cannam@154
|
11215 int
|
cannam@154
|
11216 main ()
|
cannam@154
|
11217 {
|
cannam@154
|
11218
|
cannam@154
|
11219 ;
|
cannam@154
|
11220 return 0;
|
cannam@154
|
11221 }
|
cannam@154
|
11222 _ACEOF
|
cannam@154
|
11223 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11224 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
|
cannam@154
|
11225 lt_cv_shlibpath_overrides_runpath=yes
|
cannam@154
|
11226 fi
|
cannam@154
|
11227 fi
|
cannam@154
|
11228 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11229 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11230 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
11231 libdir=$save_libdir
|
cannam@154
|
11232
|
cannam@154
|
11233 fi
|
cannam@154
|
11234
|
cannam@154
|
11235 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
|
cannam@154
|
11236
|
cannam@154
|
11237 # This implies no fast_install, which is unacceptable.
|
cannam@154
|
11238 # Some rework will be needed to allow for fast_install
|
cannam@154
|
11239 # before this can be enabled.
|
cannam@154
|
11240 hardcode_into_libs=yes
|
cannam@154
|
11241
|
cannam@154
|
11242 # Add ABI-specific directories to the system library path.
|
cannam@154
|
11243 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
|
cannam@154
|
11244
|
cannam@154
|
11245 # Ideally, we could use ldconfig to report *all* directores which are
|
cannam@154
|
11246 # searched for libraries, however this is still not possible. Aside from not
|
cannam@154
|
11247 # being certain /sbin/ldconfig is available, command
|
cannam@154
|
11248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
|
cannam@154
|
11249 # even though it is searched at run-time. Try to do the best guess by
|
cannam@154
|
11250 # appending ld.so.conf contents (and includes) to the search path.
|
cannam@154
|
11251 if test -f /etc/ld.so.conf; then
|
cannam@154
|
11252 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' ' '`
|
cannam@154
|
11253 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
|
cannam@154
|
11254 fi
|
cannam@154
|
11255
|
cannam@154
|
11256 # We used to test for /lib/ld.so.1 and disable shared libraries on
|
cannam@154
|
11257 # powerpc, because MkLinux only supported shared libraries with the
|
cannam@154
|
11258 # GNU dynamic linker. Since this was broken with cross compilers,
|
cannam@154
|
11259 # most powerpc-linux boxes support dynamic linking these days and
|
cannam@154
|
11260 # people can always --disable-shared, the test was removed, and we
|
cannam@154
|
11261 # assume the GNU/Linux dynamic linker is in use.
|
cannam@154
|
11262 dynamic_linker='GNU/Linux ld.so'
|
cannam@154
|
11263 ;;
|
cannam@154
|
11264
|
cannam@154
|
11265 netbsd*)
|
cannam@154
|
11266 version_type=sunos
|
cannam@154
|
11267 need_lib_prefix=no
|
cannam@154
|
11268 need_version=no
|
cannam@154
|
11269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
|
cannam@154
|
11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
11271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@154
|
11272 dynamic_linker='NetBSD (a.out) ld.so'
|
cannam@154
|
11273 else
|
cannam@154
|
11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11275 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11276 dynamic_linker='NetBSD ld.elf_so'
|
cannam@154
|
11277 fi
|
cannam@154
|
11278 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11279 shlibpath_overrides_runpath=yes
|
cannam@154
|
11280 hardcode_into_libs=yes
|
cannam@154
|
11281 ;;
|
cannam@154
|
11282
|
cannam@154
|
11283 newsos6)
|
cannam@154
|
11284 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11286 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11287 shlibpath_overrides_runpath=yes
|
cannam@154
|
11288 ;;
|
cannam@154
|
11289
|
cannam@154
|
11290 *nto* | *qnx*)
|
cannam@154
|
11291 version_type=qnx
|
cannam@154
|
11292 need_lib_prefix=no
|
cannam@154
|
11293 need_version=no
|
cannam@154
|
11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11295 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11296 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11297 shlibpath_overrides_runpath=no
|
cannam@154
|
11298 hardcode_into_libs=yes
|
cannam@154
|
11299 dynamic_linker='ldqnx.so'
|
cannam@154
|
11300 ;;
|
cannam@154
|
11301
|
cannam@154
|
11302 openbsd* | bitrig*)
|
cannam@154
|
11303 version_type=sunos
|
cannam@154
|
11304 sys_lib_dlsearch_path_spec=/usr/lib
|
cannam@154
|
11305 need_lib_prefix=no
|
cannam@154
|
11306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
|
cannam@154
|
11307 need_version=no
|
cannam@154
|
11308 else
|
cannam@154
|
11309 need_version=yes
|
cannam@154
|
11310 fi
|
cannam@154
|
11311 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
11312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
cannam@154
|
11313 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11314 shlibpath_overrides_runpath=yes
|
cannam@154
|
11315 ;;
|
cannam@154
|
11316
|
cannam@154
|
11317 os2*)
|
cannam@154
|
11318 libname_spec='$name'
|
cannam@154
|
11319 version_type=windows
|
cannam@154
|
11320 shrext_cmds=.dll
|
cannam@154
|
11321 need_version=no
|
cannam@154
|
11322 need_lib_prefix=no
|
cannam@154
|
11323 # OS/2 can only load a DLL with a base name of 8 characters or less.
|
cannam@154
|
11324 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
|
cannam@154
|
11325 v=$($ECHO $release$versuffix | tr -d .-);
|
cannam@154
|
11326 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
|
cannam@154
|
11327 $ECHO $n$v`$shared_ext'
|
cannam@154
|
11328 library_names_spec='${libname}_dll.$libext'
|
cannam@154
|
11329 dynamic_linker='OS/2 ld.exe'
|
cannam@154
|
11330 shlibpath_var=BEGINLIBPATH
|
cannam@154
|
11331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
|
cannam@154
|
11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
11333 postinstall_cmds='base_file=`basename \$file`~
|
cannam@154
|
11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
|
cannam@154
|
11335 dldir=$destdir/`dirname \$dlpath`~
|
cannam@154
|
11336 test -d \$dldir || mkdir -p \$dldir~
|
cannam@154
|
11337 $install_prog $dir/$dlname \$dldir/$dlname~
|
cannam@154
|
11338 chmod a+x \$dldir/$dlname~
|
cannam@154
|
11339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
|
cannam@154
|
11340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
|
cannam@154
|
11341 fi'
|
cannam@154
|
11342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
|
cannam@154
|
11343 dlpath=$dir/\$dldll~
|
cannam@154
|
11344 $RM \$dlpath'
|
cannam@154
|
11345 ;;
|
cannam@154
|
11346
|
cannam@154
|
11347 osf3* | osf4* | osf5*)
|
cannam@154
|
11348 version_type=osf
|
cannam@154
|
11349 need_lib_prefix=no
|
cannam@154
|
11350 need_version=no
|
cannam@154
|
11351 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11353 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
|
cannam@154
|
11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
|
cannam@154
|
11356 ;;
|
cannam@154
|
11357
|
cannam@154
|
11358 rdos*)
|
cannam@154
|
11359 dynamic_linker=no
|
cannam@154
|
11360 ;;
|
cannam@154
|
11361
|
cannam@154
|
11362 solaris*)
|
cannam@154
|
11363 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11364 need_lib_prefix=no
|
cannam@154
|
11365 need_version=no
|
cannam@154
|
11366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11367 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11368 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11369 shlibpath_overrides_runpath=yes
|
cannam@154
|
11370 hardcode_into_libs=yes
|
cannam@154
|
11371 # ldd complains unless libraries are executable
|
cannam@154
|
11372 postinstall_cmds='chmod +x $lib'
|
cannam@154
|
11373 ;;
|
cannam@154
|
11374
|
cannam@154
|
11375 sunos4*)
|
cannam@154
|
11376 version_type=sunos
|
cannam@154
|
11377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
|
cannam@154
|
11378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
|
cannam@154
|
11379 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11380 shlibpath_overrides_runpath=yes
|
cannam@154
|
11381 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
11382 need_lib_prefix=no
|
cannam@154
|
11383 fi
|
cannam@154
|
11384 need_version=yes
|
cannam@154
|
11385 ;;
|
cannam@154
|
11386
|
cannam@154
|
11387 sysv4 | sysv4.3*)
|
cannam@154
|
11388 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11390 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11391 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11392 case $host_vendor in
|
cannam@154
|
11393 sni)
|
cannam@154
|
11394 shlibpath_overrides_runpath=no
|
cannam@154
|
11395 need_lib_prefix=no
|
cannam@154
|
11396 runpath_var=LD_RUN_PATH
|
cannam@154
|
11397 ;;
|
cannam@154
|
11398 siemens)
|
cannam@154
|
11399 need_lib_prefix=no
|
cannam@154
|
11400 ;;
|
cannam@154
|
11401 motorola)
|
cannam@154
|
11402 need_lib_prefix=no
|
cannam@154
|
11403 need_version=no
|
cannam@154
|
11404 shlibpath_overrides_runpath=no
|
cannam@154
|
11405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
|
cannam@154
|
11406 ;;
|
cannam@154
|
11407 esac
|
cannam@154
|
11408 ;;
|
cannam@154
|
11409
|
cannam@154
|
11410 sysv4*MP*)
|
cannam@154
|
11411 if test -d /usr/nec; then
|
cannam@154
|
11412 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11413 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
|
cannam@154
|
11414 soname_spec='$libname$shared_ext.$major'
|
cannam@154
|
11415 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11416 fi
|
cannam@154
|
11417 ;;
|
cannam@154
|
11418
|
cannam@154
|
11419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
cannam@154
|
11420 version_type=sco
|
cannam@154
|
11421 need_lib_prefix=no
|
cannam@154
|
11422 need_version=no
|
cannam@154
|
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
|
cannam@154
|
11424 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11425 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11426 shlibpath_overrides_runpath=yes
|
cannam@154
|
11427 hardcode_into_libs=yes
|
cannam@154
|
11428 if test yes = "$with_gnu_ld"; then
|
cannam@154
|
11429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
|
cannam@154
|
11430 else
|
cannam@154
|
11431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
|
cannam@154
|
11432 case $host_os in
|
cannam@154
|
11433 sco3.2v5*)
|
cannam@154
|
11434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
|
cannam@154
|
11435 ;;
|
cannam@154
|
11436 esac
|
cannam@154
|
11437 fi
|
cannam@154
|
11438 sys_lib_dlsearch_path_spec='/usr/lib'
|
cannam@154
|
11439 ;;
|
cannam@154
|
11440
|
cannam@154
|
11441 tpf*)
|
cannam@154
|
11442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
|
cannam@154
|
11443 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11444 need_lib_prefix=no
|
cannam@154
|
11445 need_version=no
|
cannam@154
|
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11447 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11448 shlibpath_overrides_runpath=no
|
cannam@154
|
11449 hardcode_into_libs=yes
|
cannam@154
|
11450 ;;
|
cannam@154
|
11451
|
cannam@154
|
11452 uts4*)
|
cannam@154
|
11453 version_type=linux # correct to gnu/linux during the next big refactor
|
cannam@154
|
11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
|
cannam@154
|
11455 soname_spec='$libname$release$shared_ext$major'
|
cannam@154
|
11456 shlibpath_var=LD_LIBRARY_PATH
|
cannam@154
|
11457 ;;
|
cannam@154
|
11458
|
cannam@154
|
11459 *)
|
cannam@154
|
11460 dynamic_linker=no
|
cannam@154
|
11461 ;;
|
cannam@154
|
11462 esac
|
cannam@154
|
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
|
cannam@154
|
11464 $as_echo "$dynamic_linker" >&6; }
|
cannam@154
|
11465 test no = "$dynamic_linker" && can_build_shared=no
|
cannam@154
|
11466
|
cannam@154
|
11467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
|
cannam@154
|
11468 if test yes = "$GCC"; then
|
cannam@154
|
11469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
|
cannam@154
|
11470 fi
|
cannam@154
|
11471
|
cannam@154
|
11472 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
|
cannam@154
|
11473 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
|
cannam@154
|
11474 fi
|
cannam@154
|
11475
|
cannam@154
|
11476 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
|
cannam@154
|
11477 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
|
cannam@154
|
11478 fi
|
cannam@154
|
11479
|
cannam@154
|
11480 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
|
cannam@154
|
11481 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
|
cannam@154
|
11482
|
cannam@154
|
11483 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
|
cannam@154
|
11484 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
|
cannam@154
|
11485
|
cannam@154
|
11486 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
|
cannam@154
|
11487 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
|
cannam@154
|
11488
|
cannam@154
|
11489
|
cannam@154
|
11490
|
cannam@154
|
11491
|
cannam@154
|
11492
|
cannam@154
|
11493
|
cannam@154
|
11494
|
cannam@154
|
11495
|
cannam@154
|
11496
|
cannam@154
|
11497
|
cannam@154
|
11498
|
cannam@154
|
11499
|
cannam@154
|
11500
|
cannam@154
|
11501
|
cannam@154
|
11502
|
cannam@154
|
11503
|
cannam@154
|
11504
|
cannam@154
|
11505
|
cannam@154
|
11506
|
cannam@154
|
11507
|
cannam@154
|
11508
|
cannam@154
|
11509
|
cannam@154
|
11510
|
cannam@154
|
11511
|
cannam@154
|
11512
|
cannam@154
|
11513
|
cannam@154
|
11514
|
cannam@154
|
11515
|
cannam@154
|
11516
|
cannam@154
|
11517
|
cannam@154
|
11518
|
cannam@154
|
11519
|
cannam@154
|
11520
|
cannam@154
|
11521
|
cannam@154
|
11522
|
cannam@154
|
11523
|
cannam@154
|
11524
|
cannam@154
|
11525
|
cannam@154
|
11526
|
cannam@154
|
11527
|
cannam@154
|
11528
|
cannam@154
|
11529
|
cannam@154
|
11530
|
cannam@154
|
11531
|
cannam@154
|
11532
|
cannam@154
|
11533
|
cannam@154
|
11534
|
cannam@154
|
11535
|
cannam@154
|
11536
|
cannam@154
|
11537
|
cannam@154
|
11538
|
cannam@154
|
11539
|
cannam@154
|
11540
|
cannam@154
|
11541
|
cannam@154
|
11542
|
cannam@154
|
11543
|
cannam@154
|
11544
|
cannam@154
|
11545
|
cannam@154
|
11546
|
cannam@154
|
11547
|
cannam@154
|
11548
|
cannam@154
|
11549
|
cannam@154
|
11550
|
cannam@154
|
11551
|
cannam@154
|
11552
|
cannam@154
|
11553
|
cannam@154
|
11554
|
cannam@154
|
11555
|
cannam@154
|
11556
|
cannam@154
|
11557
|
cannam@154
|
11558
|
cannam@154
|
11559
|
cannam@154
|
11560
|
cannam@154
|
11561
|
cannam@154
|
11562
|
cannam@154
|
11563
|
cannam@154
|
11564
|
cannam@154
|
11565
|
cannam@154
|
11566
|
cannam@154
|
11567
|
cannam@154
|
11568
|
cannam@154
|
11569
|
cannam@154
|
11570
|
cannam@154
|
11571
|
cannam@154
|
11572
|
cannam@154
|
11573
|
cannam@154
|
11574
|
cannam@154
|
11575
|
cannam@154
|
11576
|
cannam@154
|
11577
|
cannam@154
|
11578
|
cannam@154
|
11579
|
cannam@154
|
11580
|
cannam@154
|
11581
|
cannam@154
|
11582
|
cannam@154
|
11583
|
cannam@154
|
11584
|
cannam@154
|
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
|
cannam@154
|
11586 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
|
cannam@154
|
11587 hardcode_action=
|
cannam@154
|
11588 if test -n "$hardcode_libdir_flag_spec" ||
|
cannam@154
|
11589 test -n "$runpath_var" ||
|
cannam@154
|
11590 test yes = "$hardcode_automatic"; then
|
cannam@154
|
11591
|
cannam@154
|
11592 # We can hardcode non-existent directories.
|
cannam@154
|
11593 if test no != "$hardcode_direct" &&
|
cannam@154
|
11594 # If the only mechanism to avoid hardcoding is shlibpath_var, we
|
cannam@154
|
11595 # have to relink, otherwise we might link with an installed library
|
cannam@154
|
11596 # when we should be linking with a yet-to-be-installed one
|
cannam@154
|
11597 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
|
cannam@154
|
11598 test no != "$hardcode_minus_L"; then
|
cannam@154
|
11599 # Linking always hardcodes the temporary library directory.
|
cannam@154
|
11600 hardcode_action=relink
|
cannam@154
|
11601 else
|
cannam@154
|
11602 # We can link without hardcoding, and we can hardcode nonexisting dirs.
|
cannam@154
|
11603 hardcode_action=immediate
|
cannam@154
|
11604 fi
|
cannam@154
|
11605 else
|
cannam@154
|
11606 # We cannot hardcode anything, or else we can only hardcode existing
|
cannam@154
|
11607 # directories.
|
cannam@154
|
11608 hardcode_action=unsupported
|
cannam@154
|
11609 fi
|
cannam@154
|
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
|
cannam@154
|
11611 $as_echo "$hardcode_action" >&6; }
|
cannam@154
|
11612
|
cannam@154
|
11613 if test relink = "$hardcode_action" ||
|
cannam@154
|
11614 test yes = "$inherit_rpath"; then
|
cannam@154
|
11615 # Fast installation is not supported
|
cannam@154
|
11616 enable_fast_install=no
|
cannam@154
|
11617 elif test yes = "$shlibpath_overrides_runpath" ||
|
cannam@154
|
11618 test no = "$enable_shared"; then
|
cannam@154
|
11619 # Fast installation is not necessary
|
cannam@154
|
11620 enable_fast_install=needless
|
cannam@154
|
11621 fi
|
cannam@154
|
11622
|
cannam@154
|
11623
|
cannam@154
|
11624
|
cannam@154
|
11625
|
cannam@154
|
11626
|
cannam@154
|
11627
|
cannam@154
|
11628 if test yes != "$enable_dlopen"; then
|
cannam@154
|
11629 enable_dlopen=unknown
|
cannam@154
|
11630 enable_dlopen_self=unknown
|
cannam@154
|
11631 enable_dlopen_self_static=unknown
|
cannam@154
|
11632 else
|
cannam@154
|
11633 lt_cv_dlopen=no
|
cannam@154
|
11634 lt_cv_dlopen_libs=
|
cannam@154
|
11635
|
cannam@154
|
11636 case $host_os in
|
cannam@154
|
11637 beos*)
|
cannam@154
|
11638 lt_cv_dlopen=load_add_on
|
cannam@154
|
11639 lt_cv_dlopen_libs=
|
cannam@154
|
11640 lt_cv_dlopen_self=yes
|
cannam@154
|
11641 ;;
|
cannam@154
|
11642
|
cannam@154
|
11643 mingw* | pw32* | cegcc*)
|
cannam@154
|
11644 lt_cv_dlopen=LoadLibrary
|
cannam@154
|
11645 lt_cv_dlopen_libs=
|
cannam@154
|
11646 ;;
|
cannam@154
|
11647
|
cannam@154
|
11648 cygwin*)
|
cannam@154
|
11649 lt_cv_dlopen=dlopen
|
cannam@154
|
11650 lt_cv_dlopen_libs=
|
cannam@154
|
11651 ;;
|
cannam@154
|
11652
|
cannam@154
|
11653 darwin*)
|
cannam@154
|
11654 # if libdl is installed we need to link against it
|
cannam@154
|
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
cannam@154
|
11656 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
cannam@154
|
11657 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
cannam@154
|
11658 $as_echo_n "(cached) " >&6
|
cannam@154
|
11659 else
|
cannam@154
|
11660 ac_check_lib_save_LIBS=$LIBS
|
cannam@154
|
11661 LIBS="-ldl $LIBS"
|
cannam@154
|
11662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11663 /* end confdefs.h. */
|
cannam@154
|
11664
|
cannam@154
|
11665 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
11666 Use char because int might match the return type of a GCC
|
cannam@154
|
11667 builtin and then its argument prototype would still apply. */
|
cannam@154
|
11668 #ifdef __cplusplus
|
cannam@154
|
11669 extern "C"
|
cannam@154
|
11670 #endif
|
cannam@154
|
11671 char dlopen ();
|
cannam@154
|
11672 int
|
cannam@154
|
11673 main ()
|
cannam@154
|
11674 {
|
cannam@154
|
11675 return dlopen ();
|
cannam@154
|
11676 ;
|
cannam@154
|
11677 return 0;
|
cannam@154
|
11678 }
|
cannam@154
|
11679 _ACEOF
|
cannam@154
|
11680 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11681 ac_cv_lib_dl_dlopen=yes
|
cannam@154
|
11682 else
|
cannam@154
|
11683 ac_cv_lib_dl_dlopen=no
|
cannam@154
|
11684 fi
|
cannam@154
|
11685 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11686 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11687 LIBS=$ac_check_lib_save_LIBS
|
cannam@154
|
11688 fi
|
cannam@154
|
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@154
|
11690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
cannam@154
|
11691 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
cannam@154
|
11692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
cannam@154
|
11693 else
|
cannam@154
|
11694
|
cannam@154
|
11695 lt_cv_dlopen=dyld
|
cannam@154
|
11696 lt_cv_dlopen_libs=
|
cannam@154
|
11697 lt_cv_dlopen_self=yes
|
cannam@154
|
11698
|
cannam@154
|
11699 fi
|
cannam@154
|
11700
|
cannam@154
|
11701 ;;
|
cannam@154
|
11702
|
cannam@154
|
11703 tpf*)
|
cannam@154
|
11704 # Don't try to run any link tests for TPF. We know it's impossible
|
cannam@154
|
11705 # because TPF is a cross-compiler, and we know how we open DSOs.
|
cannam@154
|
11706 lt_cv_dlopen=dlopen
|
cannam@154
|
11707 lt_cv_dlopen_libs=
|
cannam@154
|
11708 lt_cv_dlopen_self=no
|
cannam@154
|
11709 ;;
|
cannam@154
|
11710
|
cannam@154
|
11711 *)
|
cannam@154
|
11712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
|
cannam@154
|
11713 if test "x$ac_cv_func_shl_load" = xyes; then :
|
cannam@154
|
11714 lt_cv_dlopen=shl_load
|
cannam@154
|
11715 else
|
cannam@154
|
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
|
cannam@154
|
11717 $as_echo_n "checking for shl_load in -ldld... " >&6; }
|
cannam@154
|
11718 if ${ac_cv_lib_dld_shl_load+:} false; then :
|
cannam@154
|
11719 $as_echo_n "(cached) " >&6
|
cannam@154
|
11720 else
|
cannam@154
|
11721 ac_check_lib_save_LIBS=$LIBS
|
cannam@154
|
11722 LIBS="-ldld $LIBS"
|
cannam@154
|
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11724 /* end confdefs.h. */
|
cannam@154
|
11725
|
cannam@154
|
11726 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
11727 Use char because int might match the return type of a GCC
|
cannam@154
|
11728 builtin and then its argument prototype would still apply. */
|
cannam@154
|
11729 #ifdef __cplusplus
|
cannam@154
|
11730 extern "C"
|
cannam@154
|
11731 #endif
|
cannam@154
|
11732 char shl_load ();
|
cannam@154
|
11733 int
|
cannam@154
|
11734 main ()
|
cannam@154
|
11735 {
|
cannam@154
|
11736 return shl_load ();
|
cannam@154
|
11737 ;
|
cannam@154
|
11738 return 0;
|
cannam@154
|
11739 }
|
cannam@154
|
11740 _ACEOF
|
cannam@154
|
11741 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11742 ac_cv_lib_dld_shl_load=yes
|
cannam@154
|
11743 else
|
cannam@154
|
11744 ac_cv_lib_dld_shl_load=no
|
cannam@154
|
11745 fi
|
cannam@154
|
11746 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11747 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11748 LIBS=$ac_check_lib_save_LIBS
|
cannam@154
|
11749 fi
|
cannam@154
|
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
|
cannam@154
|
11751 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
|
cannam@154
|
11752 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
|
cannam@154
|
11753 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
|
cannam@154
|
11754 else
|
cannam@154
|
11755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
|
cannam@154
|
11756 if test "x$ac_cv_func_dlopen" = xyes; then :
|
cannam@154
|
11757 lt_cv_dlopen=dlopen
|
cannam@154
|
11758 else
|
cannam@154
|
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
|
cannam@154
|
11760 $as_echo_n "checking for dlopen in -ldl... " >&6; }
|
cannam@154
|
11761 if ${ac_cv_lib_dl_dlopen+:} false; then :
|
cannam@154
|
11762 $as_echo_n "(cached) " >&6
|
cannam@154
|
11763 else
|
cannam@154
|
11764 ac_check_lib_save_LIBS=$LIBS
|
cannam@154
|
11765 LIBS="-ldl $LIBS"
|
cannam@154
|
11766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11767 /* end confdefs.h. */
|
cannam@154
|
11768
|
cannam@154
|
11769 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
11770 Use char because int might match the return type of a GCC
|
cannam@154
|
11771 builtin and then its argument prototype would still apply. */
|
cannam@154
|
11772 #ifdef __cplusplus
|
cannam@154
|
11773 extern "C"
|
cannam@154
|
11774 #endif
|
cannam@154
|
11775 char dlopen ();
|
cannam@154
|
11776 int
|
cannam@154
|
11777 main ()
|
cannam@154
|
11778 {
|
cannam@154
|
11779 return dlopen ();
|
cannam@154
|
11780 ;
|
cannam@154
|
11781 return 0;
|
cannam@154
|
11782 }
|
cannam@154
|
11783 _ACEOF
|
cannam@154
|
11784 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11785 ac_cv_lib_dl_dlopen=yes
|
cannam@154
|
11786 else
|
cannam@154
|
11787 ac_cv_lib_dl_dlopen=no
|
cannam@154
|
11788 fi
|
cannam@154
|
11789 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11790 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11791 LIBS=$ac_check_lib_save_LIBS
|
cannam@154
|
11792 fi
|
cannam@154
|
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
|
cannam@154
|
11794 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
|
cannam@154
|
11795 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
|
cannam@154
|
11796 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
|
cannam@154
|
11797 else
|
cannam@154
|
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
|
cannam@154
|
11799 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
|
cannam@154
|
11800 if ${ac_cv_lib_svld_dlopen+:} false; then :
|
cannam@154
|
11801 $as_echo_n "(cached) " >&6
|
cannam@154
|
11802 else
|
cannam@154
|
11803 ac_check_lib_save_LIBS=$LIBS
|
cannam@154
|
11804 LIBS="-lsvld $LIBS"
|
cannam@154
|
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11806 /* end confdefs.h. */
|
cannam@154
|
11807
|
cannam@154
|
11808 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
11809 Use char because int might match the return type of a GCC
|
cannam@154
|
11810 builtin and then its argument prototype would still apply. */
|
cannam@154
|
11811 #ifdef __cplusplus
|
cannam@154
|
11812 extern "C"
|
cannam@154
|
11813 #endif
|
cannam@154
|
11814 char dlopen ();
|
cannam@154
|
11815 int
|
cannam@154
|
11816 main ()
|
cannam@154
|
11817 {
|
cannam@154
|
11818 return dlopen ();
|
cannam@154
|
11819 ;
|
cannam@154
|
11820 return 0;
|
cannam@154
|
11821 }
|
cannam@154
|
11822 _ACEOF
|
cannam@154
|
11823 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11824 ac_cv_lib_svld_dlopen=yes
|
cannam@154
|
11825 else
|
cannam@154
|
11826 ac_cv_lib_svld_dlopen=no
|
cannam@154
|
11827 fi
|
cannam@154
|
11828 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11829 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11830 LIBS=$ac_check_lib_save_LIBS
|
cannam@154
|
11831 fi
|
cannam@154
|
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
|
cannam@154
|
11833 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
|
cannam@154
|
11834 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
|
cannam@154
|
11835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
|
cannam@154
|
11836 else
|
cannam@154
|
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
|
cannam@154
|
11838 $as_echo_n "checking for dld_link in -ldld... " >&6; }
|
cannam@154
|
11839 if ${ac_cv_lib_dld_dld_link+:} false; then :
|
cannam@154
|
11840 $as_echo_n "(cached) " >&6
|
cannam@154
|
11841 else
|
cannam@154
|
11842 ac_check_lib_save_LIBS=$LIBS
|
cannam@154
|
11843 LIBS="-ldld $LIBS"
|
cannam@154
|
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
11845 /* end confdefs.h. */
|
cannam@154
|
11846
|
cannam@154
|
11847 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
11848 Use char because int might match the return type of a GCC
|
cannam@154
|
11849 builtin and then its argument prototype would still apply. */
|
cannam@154
|
11850 #ifdef __cplusplus
|
cannam@154
|
11851 extern "C"
|
cannam@154
|
11852 #endif
|
cannam@154
|
11853 char dld_link ();
|
cannam@154
|
11854 int
|
cannam@154
|
11855 main ()
|
cannam@154
|
11856 {
|
cannam@154
|
11857 return dld_link ();
|
cannam@154
|
11858 ;
|
cannam@154
|
11859 return 0;
|
cannam@154
|
11860 }
|
cannam@154
|
11861 _ACEOF
|
cannam@154
|
11862 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
11863 ac_cv_lib_dld_dld_link=yes
|
cannam@154
|
11864 else
|
cannam@154
|
11865 ac_cv_lib_dld_dld_link=no
|
cannam@154
|
11866 fi
|
cannam@154
|
11867 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
11868 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
11869 LIBS=$ac_check_lib_save_LIBS
|
cannam@154
|
11870 fi
|
cannam@154
|
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
|
cannam@154
|
11872 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
|
cannam@154
|
11873 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
|
cannam@154
|
11874 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
|
cannam@154
|
11875 fi
|
cannam@154
|
11876
|
cannam@154
|
11877
|
cannam@154
|
11878 fi
|
cannam@154
|
11879
|
cannam@154
|
11880
|
cannam@154
|
11881 fi
|
cannam@154
|
11882
|
cannam@154
|
11883
|
cannam@154
|
11884 fi
|
cannam@154
|
11885
|
cannam@154
|
11886
|
cannam@154
|
11887 fi
|
cannam@154
|
11888
|
cannam@154
|
11889
|
cannam@154
|
11890 fi
|
cannam@154
|
11891
|
cannam@154
|
11892 ;;
|
cannam@154
|
11893 esac
|
cannam@154
|
11894
|
cannam@154
|
11895 if test no = "$lt_cv_dlopen"; then
|
cannam@154
|
11896 enable_dlopen=no
|
cannam@154
|
11897 else
|
cannam@154
|
11898 enable_dlopen=yes
|
cannam@154
|
11899 fi
|
cannam@154
|
11900
|
cannam@154
|
11901 case $lt_cv_dlopen in
|
cannam@154
|
11902 dlopen)
|
cannam@154
|
11903 save_CPPFLAGS=$CPPFLAGS
|
cannam@154
|
11904 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
|
cannam@154
|
11905
|
cannam@154
|
11906 save_LDFLAGS=$LDFLAGS
|
cannam@154
|
11907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
|
cannam@154
|
11908
|
cannam@154
|
11909 save_LIBS=$LIBS
|
cannam@154
|
11910 LIBS="$lt_cv_dlopen_libs $LIBS"
|
cannam@154
|
11911
|
cannam@154
|
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
|
cannam@154
|
11913 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
|
cannam@154
|
11914 if ${lt_cv_dlopen_self+:} false; then :
|
cannam@154
|
11915 $as_echo_n "(cached) " >&6
|
cannam@154
|
11916 else
|
cannam@154
|
11917 if test yes = "$cross_compiling"; then :
|
cannam@154
|
11918 lt_cv_dlopen_self=cross
|
cannam@154
|
11919 else
|
cannam@154
|
11920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@154
|
11921 lt_status=$lt_dlunknown
|
cannam@154
|
11922 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
11923 #line $LINENO "configure"
|
cannam@154
|
11924 #include "confdefs.h"
|
cannam@154
|
11925
|
cannam@154
|
11926 #if HAVE_DLFCN_H
|
cannam@154
|
11927 #include <dlfcn.h>
|
cannam@154
|
11928 #endif
|
cannam@154
|
11929
|
cannam@154
|
11930 #include <stdio.h>
|
cannam@154
|
11931
|
cannam@154
|
11932 #ifdef RTLD_GLOBAL
|
cannam@154
|
11933 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@154
|
11934 #else
|
cannam@154
|
11935 # ifdef DL_GLOBAL
|
cannam@154
|
11936 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@154
|
11937 # else
|
cannam@154
|
11938 # define LT_DLGLOBAL 0
|
cannam@154
|
11939 # endif
|
cannam@154
|
11940 #endif
|
cannam@154
|
11941
|
cannam@154
|
11942 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@154
|
11943 find out it does not work in some platform. */
|
cannam@154
|
11944 #ifndef LT_DLLAZY_OR_NOW
|
cannam@154
|
11945 # ifdef RTLD_LAZY
|
cannam@154
|
11946 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@154
|
11947 # else
|
cannam@154
|
11948 # ifdef DL_LAZY
|
cannam@154
|
11949 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@154
|
11950 # else
|
cannam@154
|
11951 # ifdef RTLD_NOW
|
cannam@154
|
11952 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@154
|
11953 # else
|
cannam@154
|
11954 # ifdef DL_NOW
|
cannam@154
|
11955 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@154
|
11956 # else
|
cannam@154
|
11957 # define LT_DLLAZY_OR_NOW 0
|
cannam@154
|
11958 # endif
|
cannam@154
|
11959 # endif
|
cannam@154
|
11960 # endif
|
cannam@154
|
11961 # endif
|
cannam@154
|
11962 #endif
|
cannam@154
|
11963
|
cannam@154
|
11964 /* When -fvisibility=hidden is used, assume the code has been annotated
|
cannam@154
|
11965 correspondingly for the symbols needed. */
|
cannam@154
|
11966 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
cannam@154
|
11967 int fnord () __attribute__((visibility("default")));
|
cannam@154
|
11968 #endif
|
cannam@154
|
11969
|
cannam@154
|
11970 int fnord () { return 42; }
|
cannam@154
|
11971 int main ()
|
cannam@154
|
11972 {
|
cannam@154
|
11973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@154
|
11974 int status = $lt_dlunknown;
|
cannam@154
|
11975
|
cannam@154
|
11976 if (self)
|
cannam@154
|
11977 {
|
cannam@154
|
11978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@154
|
11979 else
|
cannam@154
|
11980 {
|
cannam@154
|
11981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@154
|
11982 else puts (dlerror ());
|
cannam@154
|
11983 }
|
cannam@154
|
11984 /* dlclose (self); */
|
cannam@154
|
11985 }
|
cannam@154
|
11986 else
|
cannam@154
|
11987 puts (dlerror ());
|
cannam@154
|
11988
|
cannam@154
|
11989 return status;
|
cannam@154
|
11990 }
|
cannam@154
|
11991 _LT_EOF
|
cannam@154
|
11992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
cannam@154
|
11993 (eval $ac_link) 2>&5
|
cannam@154
|
11994 ac_status=$?
|
cannam@154
|
11995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
11996 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
cannam@154
|
11997 (./conftest; exit; ) >&5 2>/dev/null
|
cannam@154
|
11998 lt_status=$?
|
cannam@154
|
11999 case x$lt_status in
|
cannam@154
|
12000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@154
|
12001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
|
cannam@154
|
12002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
|
cannam@154
|
12003 esac
|
cannam@154
|
12004 else :
|
cannam@154
|
12005 # compilation failed
|
cannam@154
|
12006 lt_cv_dlopen_self=no
|
cannam@154
|
12007 fi
|
cannam@154
|
12008 fi
|
cannam@154
|
12009 rm -fr conftest*
|
cannam@154
|
12010
|
cannam@154
|
12011
|
cannam@154
|
12012 fi
|
cannam@154
|
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
|
cannam@154
|
12014 $as_echo "$lt_cv_dlopen_self" >&6; }
|
cannam@154
|
12015
|
cannam@154
|
12016 if test yes = "$lt_cv_dlopen_self"; then
|
cannam@154
|
12017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
|
cannam@154
|
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
|
cannam@154
|
12019 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
|
cannam@154
|
12020 if ${lt_cv_dlopen_self_static+:} false; then :
|
cannam@154
|
12021 $as_echo_n "(cached) " >&6
|
cannam@154
|
12022 else
|
cannam@154
|
12023 if test yes = "$cross_compiling"; then :
|
cannam@154
|
12024 lt_cv_dlopen_self_static=cross
|
cannam@154
|
12025 else
|
cannam@154
|
12026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
cannam@154
|
12027 lt_status=$lt_dlunknown
|
cannam@154
|
12028 cat > conftest.$ac_ext <<_LT_EOF
|
cannam@154
|
12029 #line $LINENO "configure"
|
cannam@154
|
12030 #include "confdefs.h"
|
cannam@154
|
12031
|
cannam@154
|
12032 #if HAVE_DLFCN_H
|
cannam@154
|
12033 #include <dlfcn.h>
|
cannam@154
|
12034 #endif
|
cannam@154
|
12035
|
cannam@154
|
12036 #include <stdio.h>
|
cannam@154
|
12037
|
cannam@154
|
12038 #ifdef RTLD_GLOBAL
|
cannam@154
|
12039 # define LT_DLGLOBAL RTLD_GLOBAL
|
cannam@154
|
12040 #else
|
cannam@154
|
12041 # ifdef DL_GLOBAL
|
cannam@154
|
12042 # define LT_DLGLOBAL DL_GLOBAL
|
cannam@154
|
12043 # else
|
cannam@154
|
12044 # define LT_DLGLOBAL 0
|
cannam@154
|
12045 # endif
|
cannam@154
|
12046 #endif
|
cannam@154
|
12047
|
cannam@154
|
12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
|
cannam@154
|
12049 find out it does not work in some platform. */
|
cannam@154
|
12050 #ifndef LT_DLLAZY_OR_NOW
|
cannam@154
|
12051 # ifdef RTLD_LAZY
|
cannam@154
|
12052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
|
cannam@154
|
12053 # else
|
cannam@154
|
12054 # ifdef DL_LAZY
|
cannam@154
|
12055 # define LT_DLLAZY_OR_NOW DL_LAZY
|
cannam@154
|
12056 # else
|
cannam@154
|
12057 # ifdef RTLD_NOW
|
cannam@154
|
12058 # define LT_DLLAZY_OR_NOW RTLD_NOW
|
cannam@154
|
12059 # else
|
cannam@154
|
12060 # ifdef DL_NOW
|
cannam@154
|
12061 # define LT_DLLAZY_OR_NOW DL_NOW
|
cannam@154
|
12062 # else
|
cannam@154
|
12063 # define LT_DLLAZY_OR_NOW 0
|
cannam@154
|
12064 # endif
|
cannam@154
|
12065 # endif
|
cannam@154
|
12066 # endif
|
cannam@154
|
12067 # endif
|
cannam@154
|
12068 #endif
|
cannam@154
|
12069
|
cannam@154
|
12070 /* When -fvisibility=hidden is used, assume the code has been annotated
|
cannam@154
|
12071 correspondingly for the symbols needed. */
|
cannam@154
|
12072 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
cannam@154
|
12073 int fnord () __attribute__((visibility("default")));
|
cannam@154
|
12074 #endif
|
cannam@154
|
12075
|
cannam@154
|
12076 int fnord () { return 42; }
|
cannam@154
|
12077 int main ()
|
cannam@154
|
12078 {
|
cannam@154
|
12079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
|
cannam@154
|
12080 int status = $lt_dlunknown;
|
cannam@154
|
12081
|
cannam@154
|
12082 if (self)
|
cannam@154
|
12083 {
|
cannam@154
|
12084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
|
cannam@154
|
12085 else
|
cannam@154
|
12086 {
|
cannam@154
|
12087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
|
cannam@154
|
12088 else puts (dlerror ());
|
cannam@154
|
12089 }
|
cannam@154
|
12090 /* dlclose (self); */
|
cannam@154
|
12091 }
|
cannam@154
|
12092 else
|
cannam@154
|
12093 puts (dlerror ());
|
cannam@154
|
12094
|
cannam@154
|
12095 return status;
|
cannam@154
|
12096 }
|
cannam@154
|
12097 _LT_EOF
|
cannam@154
|
12098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
|
cannam@154
|
12099 (eval $ac_link) 2>&5
|
cannam@154
|
12100 ac_status=$?
|
cannam@154
|
12101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
12102 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
|
cannam@154
|
12103 (./conftest; exit; ) >&5 2>/dev/null
|
cannam@154
|
12104 lt_status=$?
|
cannam@154
|
12105 case x$lt_status in
|
cannam@154
|
12106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@154
|
12107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
|
cannam@154
|
12108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
|
cannam@154
|
12109 esac
|
cannam@154
|
12110 else :
|
cannam@154
|
12111 # compilation failed
|
cannam@154
|
12112 lt_cv_dlopen_self_static=no
|
cannam@154
|
12113 fi
|
cannam@154
|
12114 fi
|
cannam@154
|
12115 rm -fr conftest*
|
cannam@154
|
12116
|
cannam@154
|
12117
|
cannam@154
|
12118 fi
|
cannam@154
|
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
|
cannam@154
|
12120 $as_echo "$lt_cv_dlopen_self_static" >&6; }
|
cannam@154
|
12121 fi
|
cannam@154
|
12122
|
cannam@154
|
12123 CPPFLAGS=$save_CPPFLAGS
|
cannam@154
|
12124 LDFLAGS=$save_LDFLAGS
|
cannam@154
|
12125 LIBS=$save_LIBS
|
cannam@154
|
12126 ;;
|
cannam@154
|
12127 esac
|
cannam@154
|
12128
|
cannam@154
|
12129 case $lt_cv_dlopen_self in
|
cannam@154
|
12130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
|
cannam@154
|
12131 *) enable_dlopen_self=unknown ;;
|
cannam@154
|
12132 esac
|
cannam@154
|
12133
|
cannam@154
|
12134 case $lt_cv_dlopen_self_static in
|
cannam@154
|
12135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
|
cannam@154
|
12136 *) enable_dlopen_self_static=unknown ;;
|
cannam@154
|
12137 esac
|
cannam@154
|
12138 fi
|
cannam@154
|
12139
|
cannam@154
|
12140
|
cannam@154
|
12141
|
cannam@154
|
12142
|
cannam@154
|
12143
|
cannam@154
|
12144
|
cannam@154
|
12145
|
cannam@154
|
12146
|
cannam@154
|
12147
|
cannam@154
|
12148
|
cannam@154
|
12149
|
cannam@154
|
12150
|
cannam@154
|
12151
|
cannam@154
|
12152
|
cannam@154
|
12153
|
cannam@154
|
12154
|
cannam@154
|
12155
|
cannam@154
|
12156 striplib=
|
cannam@154
|
12157 old_striplib=
|
cannam@154
|
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
|
cannam@154
|
12159 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
|
cannam@154
|
12160 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
|
cannam@154
|
12161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
|
cannam@154
|
12162 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
|
cannam@154
|
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
12164 $as_echo "yes" >&6; }
|
cannam@154
|
12165 else
|
cannam@154
|
12166 # FIXME - insert some real tests, host_os isn't really good enough
|
cannam@154
|
12167 case $host_os in
|
cannam@154
|
12168 darwin*)
|
cannam@154
|
12169 if test -n "$STRIP"; then
|
cannam@154
|
12170 striplib="$STRIP -x"
|
cannam@154
|
12171 old_striplib="$STRIP -S"
|
cannam@154
|
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
12173 $as_echo "yes" >&6; }
|
cannam@154
|
12174 else
|
cannam@154
|
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12176 $as_echo "no" >&6; }
|
cannam@154
|
12177 fi
|
cannam@154
|
12178 ;;
|
cannam@154
|
12179 *)
|
cannam@154
|
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12181 $as_echo "no" >&6; }
|
cannam@154
|
12182 ;;
|
cannam@154
|
12183 esac
|
cannam@154
|
12184 fi
|
cannam@154
|
12185
|
cannam@154
|
12186
|
cannam@154
|
12187
|
cannam@154
|
12188
|
cannam@154
|
12189
|
cannam@154
|
12190
|
cannam@154
|
12191
|
cannam@154
|
12192
|
cannam@154
|
12193
|
cannam@154
|
12194
|
cannam@154
|
12195
|
cannam@154
|
12196
|
cannam@154
|
12197 # Report what library types will actually be built
|
cannam@154
|
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
|
cannam@154
|
12199 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
|
cannam@154
|
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
|
cannam@154
|
12201 $as_echo "$can_build_shared" >&6; }
|
cannam@154
|
12202
|
cannam@154
|
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
|
cannam@154
|
12204 $as_echo_n "checking whether to build shared libraries... " >&6; }
|
cannam@154
|
12205 test no = "$can_build_shared" && enable_shared=no
|
cannam@154
|
12206
|
cannam@154
|
12207 # On AIX, shared libraries and static libraries use the same namespace, and
|
cannam@154
|
12208 # are all built from PIC.
|
cannam@154
|
12209 case $host_os in
|
cannam@154
|
12210 aix3*)
|
cannam@154
|
12211 test yes = "$enable_shared" && enable_static=no
|
cannam@154
|
12212 if test -n "$RANLIB"; then
|
cannam@154
|
12213 archive_cmds="$archive_cmds~\$RANLIB \$lib"
|
cannam@154
|
12214 postinstall_cmds='$RANLIB $lib'
|
cannam@154
|
12215 fi
|
cannam@154
|
12216 ;;
|
cannam@154
|
12217
|
cannam@154
|
12218 aix[4-9]*)
|
cannam@154
|
12219 if test ia64 != "$host_cpu"; then
|
cannam@154
|
12220 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
|
cannam@154
|
12221 yes,aix,yes) ;; # shared object as lib.so file only
|
cannam@154
|
12222 yes,svr4,*) ;; # shared object as lib.so archive member only
|
cannam@154
|
12223 yes,*) enable_static=no ;; # shared object in lib.a archive as well
|
cannam@154
|
12224 esac
|
cannam@154
|
12225 fi
|
cannam@154
|
12226 ;;
|
cannam@154
|
12227 esac
|
cannam@154
|
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
|
cannam@154
|
12229 $as_echo "$enable_shared" >&6; }
|
cannam@154
|
12230
|
cannam@154
|
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
|
cannam@154
|
12232 $as_echo_n "checking whether to build static libraries... " >&6; }
|
cannam@154
|
12233 # Make sure either enable_shared or enable_static is yes.
|
cannam@154
|
12234 test yes = "$enable_shared" || enable_static=yes
|
cannam@154
|
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
|
cannam@154
|
12236 $as_echo "$enable_static" >&6; }
|
cannam@154
|
12237
|
cannam@154
|
12238
|
cannam@154
|
12239
|
cannam@154
|
12240
|
cannam@154
|
12241 fi
|
cannam@154
|
12242 ac_ext=c
|
cannam@154
|
12243 ac_cpp='$CPP $CPPFLAGS'
|
cannam@154
|
12244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
cannam@154
|
12245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
cannam@154
|
12246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
cannam@154
|
12247
|
cannam@154
|
12248 CC=$lt_save_CC
|
cannam@154
|
12249
|
cannam@154
|
12250
|
cannam@154
|
12251
|
cannam@154
|
12252
|
cannam@154
|
12253
|
cannam@154
|
12254
|
cannam@154
|
12255
|
cannam@154
|
12256
|
cannam@154
|
12257
|
cannam@154
|
12258
|
cannam@154
|
12259
|
cannam@154
|
12260
|
cannam@154
|
12261
|
cannam@154
|
12262
|
cannam@154
|
12263
|
cannam@154
|
12264 ac_config_commands="$ac_config_commands libtool"
|
cannam@154
|
12265
|
cannam@154
|
12266
|
cannam@154
|
12267
|
cannam@154
|
12268
|
cannam@154
|
12269 # Only expand once:
|
cannam@154
|
12270
|
cannam@154
|
12271
|
cannam@154
|
12272
|
cannam@154
|
12273 # Check whether --enable-silent-rules was given.
|
cannam@154
|
12274 if test "${enable_silent_rules+set}" = set; then :
|
cannam@154
|
12275 enableval=$enable_silent_rules;
|
cannam@154
|
12276 fi
|
cannam@154
|
12277
|
cannam@154
|
12278 case $enable_silent_rules in # (((
|
cannam@154
|
12279 yes) AM_DEFAULT_VERBOSITY=0;;
|
cannam@154
|
12280 no) AM_DEFAULT_VERBOSITY=1;;
|
cannam@154
|
12281 *) AM_DEFAULT_VERBOSITY=0;;
|
cannam@154
|
12282 esac
|
cannam@154
|
12283 am_make=${MAKE-make}
|
cannam@154
|
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
|
cannam@154
|
12285 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
|
cannam@154
|
12286 if ${am_cv_make_support_nested_variables+:} false; then :
|
cannam@154
|
12287 $as_echo_n "(cached) " >&6
|
cannam@154
|
12288 else
|
cannam@154
|
12289 if $as_echo 'TRUE=$(BAR$(V))
|
cannam@154
|
12290 BAR0=false
|
cannam@154
|
12291 BAR1=true
|
cannam@154
|
12292 V=1
|
cannam@154
|
12293 am__doit:
|
cannam@154
|
12294 @$(TRUE)
|
cannam@154
|
12295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
|
cannam@154
|
12296 am_cv_make_support_nested_variables=yes
|
cannam@154
|
12297 else
|
cannam@154
|
12298 am_cv_make_support_nested_variables=no
|
cannam@154
|
12299 fi
|
cannam@154
|
12300 fi
|
cannam@154
|
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
|
cannam@154
|
12302 $as_echo "$am_cv_make_support_nested_variables" >&6; }
|
cannam@154
|
12303 if test $am_cv_make_support_nested_variables = yes; then
|
cannam@154
|
12304 AM_V='$(V)'
|
cannam@154
|
12305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
cannam@154
|
12306 else
|
cannam@154
|
12307 AM_V=$AM_DEFAULT_VERBOSITY
|
cannam@154
|
12308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
cannam@154
|
12309 fi
|
cannam@154
|
12310 AM_BACKSLASH='\'
|
cannam@154
|
12311
|
cannam@154
|
12312
|
cannam@154
|
12313
|
cannam@154
|
12314 OP_LT_CURRENT=4
|
cannam@154
|
12315 OP_LT_REVISION=2
|
cannam@154
|
12316 OP_LT_AGE=4
|
cannam@154
|
12317
|
cannam@154
|
12318
|
cannam@154
|
12319
|
cannam@154
|
12320
|
cannam@154
|
12321
|
cannam@154
|
12322
|
cannam@154
|
12323 for flag in -std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long; do
|
cannam@154
|
12324
|
cannam@154
|
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
|
cannam@154
|
12326 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
|
cannam@154
|
12327 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
|
cannam@154
|
12328 $as_echo_n "(cached) " >&6
|
cannam@154
|
12329 else
|
cannam@154
|
12330
|
cannam@154
|
12331 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
|
cannam@154
|
12332 $as_echo_n "(cached) " >&6
|
cannam@154
|
12333 else
|
cannam@154
|
12334 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
12335 CFLAGS="$CFLAGS $flag"
|
cannam@154
|
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
12337 /* end confdefs.h. */
|
cannam@154
|
12338 int main() { return 0; }
|
cannam@154
|
12339 _ACEOF
|
cannam@154
|
12340 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
12341 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
|
cannam@154
|
12342 else
|
cannam@154
|
12343 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
|
cannam@154
|
12344 fi
|
cannam@154
|
12345 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
12346 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
12347 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
12348
|
cannam@154
|
12349 fi
|
cannam@154
|
12350
|
cannam@154
|
12351
|
cannam@154
|
12352 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
|
cannam@154
|
12353
|
cannam@154
|
12354 fi
|
cannam@154
|
12355
|
cannam@154
|
12356 fi
|
cannam@154
|
12357 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
|
cannam@154
|
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
12359 $as_echo "$ac_res" >&6; }
|
cannam@154
|
12360
|
cannam@154
|
12361 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
|
cannam@154
|
12362 CFLAGS="$CFLAGS $flag";
|
cannam@154
|
12363 fi
|
cannam@154
|
12364
|
cannam@154
|
12365 done
|
cannam@154
|
12366
|
cannam@154
|
12367
|
cannam@154
|
12368 # Platform-specific tweaks
|
cannam@154
|
12369 case $host in
|
cannam@154
|
12370 *-mingw*)
|
cannam@154
|
12371 # -std=c89 causes some warnings under mingw.
|
cannam@154
|
12372
|
cannam@154
|
12373 for flag in -U__STRICT_ANSI__; do
|
cannam@154
|
12374
|
cannam@154
|
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $flag flag" >&5
|
cannam@154
|
12376 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
|
cannam@154
|
12377 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
|
cannam@154
|
12378 $as_echo_n "(cached) " >&6
|
cannam@154
|
12379 else
|
cannam@154
|
12380
|
cannam@154
|
12381 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
|
cannam@154
|
12382 $as_echo_n "(cached) " >&6
|
cannam@154
|
12383 else
|
cannam@154
|
12384 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
12385 CFLAGS="$CFLAGS $flag"
|
cannam@154
|
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
12387 /* end confdefs.h. */
|
cannam@154
|
12388 int main() { return 0; }
|
cannam@154
|
12389 _ACEOF
|
cannam@154
|
12390 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
12391 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
|
cannam@154
|
12392 else
|
cannam@154
|
12393 eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
|
cannam@154
|
12394 fi
|
cannam@154
|
12395 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
12396 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
12397 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
12398
|
cannam@154
|
12399 fi
|
cannam@154
|
12400
|
cannam@154
|
12401
|
cannam@154
|
12402 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
|
cannam@154
|
12403
|
cannam@154
|
12404 fi
|
cannam@154
|
12405
|
cannam@154
|
12406 fi
|
cannam@154
|
12407 eval ac_res=\$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`
|
cannam@154
|
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
cannam@154
|
12409 $as_echo "$ac_res" >&6; }
|
cannam@154
|
12410
|
cannam@154
|
12411 if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then :
|
cannam@154
|
12412 CFLAGS="$CFLAGS $flag";
|
cannam@154
|
12413 fi
|
cannam@154
|
12414
|
cannam@154
|
12415 done
|
cannam@154
|
12416
|
cannam@154
|
12417 # We need WINNT>=0x501 (WindowsXP) for getaddrinfo/freeaddrinfo.
|
cannam@154
|
12418 # It's okay to define this even when HTTP support is disabled, as it only
|
cannam@154
|
12419 # affects header declarations, not linking (unless we actually use some
|
cannam@154
|
12420 # XP-only functions).
|
cannam@154
|
12421
|
cannam@154
|
12422 cat >>confdefs.h <<_ACEOF
|
cannam@154
|
12423 #define _WIN32_WINNT 0x501
|
cannam@154
|
12424 _ACEOF
|
cannam@154
|
12425
|
cannam@154
|
12426 host_mingw=true
|
cannam@154
|
12427 ;;
|
cannam@154
|
12428 esac
|
cannam@154
|
12429 if test "$host_mingw" = "true"; then
|
cannam@154
|
12430 OP_WIN32_TRUE=
|
cannam@154
|
12431 OP_WIN32_FALSE='#'
|
cannam@154
|
12432 else
|
cannam@154
|
12433 OP_WIN32_TRUE='#'
|
cannam@154
|
12434 OP_WIN32_FALSE=
|
cannam@154
|
12435 fi
|
cannam@154
|
12436
|
cannam@154
|
12437
|
cannam@154
|
12438 # Check whether --enable-assertions was given.
|
cannam@154
|
12439 if test "${enable_assertions+set}" = set; then :
|
cannam@154
|
12440 enableval=$enable_assertions;
|
cannam@154
|
12441 else
|
cannam@154
|
12442 enable_assertions=no
|
cannam@154
|
12443 fi
|
cannam@154
|
12444
|
cannam@154
|
12445
|
cannam@154
|
12446 if test "$enable_assertions" = "yes"; then :
|
cannam@154
|
12447
|
cannam@154
|
12448
|
cannam@154
|
12449 $as_echo "#define OP_ENABLE_ASSERTIONS 1" >>confdefs.h
|
cannam@154
|
12450
|
cannam@154
|
12451
|
cannam@154
|
12452 fi
|
cannam@154
|
12453
|
cannam@154
|
12454 # Check whether --enable-http was given.
|
cannam@154
|
12455 if test "${enable_http+set}" = set; then :
|
cannam@154
|
12456 enableval=$enable_http;
|
cannam@154
|
12457 else
|
cannam@154
|
12458 enable_http=yes
|
cannam@154
|
12459 fi
|
cannam@154
|
12460
|
cannam@154
|
12461
|
cannam@154
|
12462 if test -z "$OP_WIN32_TRUE"; then :
|
cannam@154
|
12463 if test "$enable_http" != "no"; then :
|
cannam@154
|
12464 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
|
cannam@154
|
12465 if test "x$ac_cv_header_winsock2_h" = xyes; then :
|
cannam@154
|
12466
|
cannam@154
|
12467 else
|
cannam@154
|
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a Winsock socket library." >&5
|
cannam@154
|
12469 $as_echo "$as_me: WARNING: HTTP support requires a Winsock socket library." >&2;}
|
cannam@154
|
12470 enable_http=no
|
cannam@154
|
12471
|
cannam@154
|
12472 fi
|
cannam@154
|
12473
|
cannam@154
|
12474
|
cannam@154
|
12475
|
cannam@154
|
12476 fi
|
cannam@154
|
12477 else
|
cannam@154
|
12478 if test "$enable_http" != "no"; then :
|
cannam@154
|
12479 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
|
cannam@154
|
12480 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
|
cannam@154
|
12481
|
cannam@154
|
12482 else
|
cannam@154
|
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP support requires a POSIX socket library." >&5
|
cannam@154
|
12484 $as_echo "$as_me: WARNING: HTTP support requires a POSIX socket library." >&2;}
|
cannam@154
|
12485 enable_http=no
|
cannam@154
|
12486
|
cannam@154
|
12487 fi
|
cannam@154
|
12488
|
cannam@154
|
12489
|
cannam@154
|
12490
|
cannam@154
|
12491 fi
|
cannam@154
|
12492
|
cannam@154
|
12493 fi
|
cannam@154
|
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ftime" >&5
|
cannam@154
|
12495 $as_echo_n "checking for library containing ftime... " >&6; }
|
cannam@154
|
12496 if ${ac_cv_search_ftime+:} false; then :
|
cannam@154
|
12497 $as_echo_n "(cached) " >&6
|
cannam@154
|
12498 else
|
cannam@154
|
12499 ac_func_search_save_LIBS=$LIBS
|
cannam@154
|
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
12501 /* end confdefs.h. */
|
cannam@154
|
12502
|
cannam@154
|
12503 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
12504 Use char because int might match the return type of a GCC
|
cannam@154
|
12505 builtin and then its argument prototype would still apply. */
|
cannam@154
|
12506 #ifdef __cplusplus
|
cannam@154
|
12507 extern "C"
|
cannam@154
|
12508 #endif
|
cannam@154
|
12509 char ftime ();
|
cannam@154
|
12510 int
|
cannam@154
|
12511 main ()
|
cannam@154
|
12512 {
|
cannam@154
|
12513 return ftime ();
|
cannam@154
|
12514 ;
|
cannam@154
|
12515 return 0;
|
cannam@154
|
12516 }
|
cannam@154
|
12517 _ACEOF
|
cannam@154
|
12518 for ac_lib in '' compat; do
|
cannam@154
|
12519 if test -z "$ac_lib"; then
|
cannam@154
|
12520 ac_res="none required"
|
cannam@154
|
12521 else
|
cannam@154
|
12522 ac_res=-l$ac_lib
|
cannam@154
|
12523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
cannam@154
|
12524 fi
|
cannam@154
|
12525 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
12526 ac_cv_search_ftime=$ac_res
|
cannam@154
|
12527 fi
|
cannam@154
|
12528 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
12529 conftest$ac_exeext
|
cannam@154
|
12530 if ${ac_cv_search_ftime+:} false; then :
|
cannam@154
|
12531 break
|
cannam@154
|
12532 fi
|
cannam@154
|
12533 done
|
cannam@154
|
12534 if ${ac_cv_search_ftime+:} false; then :
|
cannam@154
|
12535
|
cannam@154
|
12536 else
|
cannam@154
|
12537 ac_cv_search_ftime=no
|
cannam@154
|
12538 fi
|
cannam@154
|
12539 rm conftest.$ac_ext
|
cannam@154
|
12540 LIBS=$ac_func_search_save_LIBS
|
cannam@154
|
12541 fi
|
cannam@154
|
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ftime" >&5
|
cannam@154
|
12543 $as_echo "$ac_cv_search_ftime" >&6; }
|
cannam@154
|
12544 ac_res=$ac_cv_search_ftime
|
cannam@154
|
12545 if test "$ac_res" != no; then :
|
cannam@154
|
12546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
cannam@154
|
12547
|
cannam@154
|
12548 else
|
cannam@154
|
12549 enable_http=no
|
cannam@154
|
12550 fi
|
cannam@154
|
12551
|
cannam@154
|
12552
|
cannam@154
|
12553
|
cannam@154
|
12554
|
cannam@154
|
12555
|
cannam@154
|
12556
|
cannam@154
|
12557
|
cannam@154
|
12558
|
cannam@154
|
12559
|
cannam@154
|
12560
|
cannam@154
|
12561
|
cannam@154
|
12562 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
cannam@154
|
12563 if test -n "$ac_tool_prefix"; then
|
cannam@154
|
12564 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
cannam@154
|
12565 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
cannam@154
|
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
12567 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
12568 if ${ac_cv_path_PKG_CONFIG+:} false; then :
|
cannam@154
|
12569 $as_echo_n "(cached) " >&6
|
cannam@154
|
12570 else
|
cannam@154
|
12571 case $PKG_CONFIG in
|
cannam@154
|
12572 [\\/]* | ?:[\\/]*)
|
cannam@154
|
12573 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
cannam@154
|
12574 ;;
|
cannam@154
|
12575 *)
|
cannam@154
|
12576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
12577 for as_dir in $PATH
|
cannam@154
|
12578 do
|
cannam@154
|
12579 IFS=$as_save_IFS
|
cannam@154
|
12580 test -z "$as_dir" && as_dir=.
|
cannam@154
|
12581 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
12582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
12583 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
cannam@154
|
12584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
12585 break 2
|
cannam@154
|
12586 fi
|
cannam@154
|
12587 done
|
cannam@154
|
12588 done
|
cannam@154
|
12589 IFS=$as_save_IFS
|
cannam@154
|
12590
|
cannam@154
|
12591 ;;
|
cannam@154
|
12592 esac
|
cannam@154
|
12593 fi
|
cannam@154
|
12594 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
cannam@154
|
12595 if test -n "$PKG_CONFIG"; then
|
cannam@154
|
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
|
cannam@154
|
12597 $as_echo "$PKG_CONFIG" >&6; }
|
cannam@154
|
12598 else
|
cannam@154
|
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12600 $as_echo "no" >&6; }
|
cannam@154
|
12601 fi
|
cannam@154
|
12602
|
cannam@154
|
12603
|
cannam@154
|
12604 fi
|
cannam@154
|
12605 if test -z "$ac_cv_path_PKG_CONFIG"; then
|
cannam@154
|
12606 ac_pt_PKG_CONFIG=$PKG_CONFIG
|
cannam@154
|
12607 # Extract the first word of "pkg-config", so it can be a program name with args.
|
cannam@154
|
12608 set dummy pkg-config; ac_word=$2
|
cannam@154
|
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
12610 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
12611 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
|
cannam@154
|
12612 $as_echo_n "(cached) " >&6
|
cannam@154
|
12613 else
|
cannam@154
|
12614 case $ac_pt_PKG_CONFIG in
|
cannam@154
|
12615 [\\/]* | ?:[\\/]*)
|
cannam@154
|
12616 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
cannam@154
|
12617 ;;
|
cannam@154
|
12618 *)
|
cannam@154
|
12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
12620 for as_dir in $PATH
|
cannam@154
|
12621 do
|
cannam@154
|
12622 IFS=$as_save_IFS
|
cannam@154
|
12623 test -z "$as_dir" && as_dir=.
|
cannam@154
|
12624 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
12626 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
cannam@154
|
12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
12628 break 2
|
cannam@154
|
12629 fi
|
cannam@154
|
12630 done
|
cannam@154
|
12631 done
|
cannam@154
|
12632 IFS=$as_save_IFS
|
cannam@154
|
12633
|
cannam@154
|
12634 ;;
|
cannam@154
|
12635 esac
|
cannam@154
|
12636 fi
|
cannam@154
|
12637 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
cannam@154
|
12638 if test -n "$ac_pt_PKG_CONFIG"; then
|
cannam@154
|
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
|
cannam@154
|
12640 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
|
cannam@154
|
12641 else
|
cannam@154
|
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12643 $as_echo "no" >&6; }
|
cannam@154
|
12644 fi
|
cannam@154
|
12645
|
cannam@154
|
12646 if test "x$ac_pt_PKG_CONFIG" = x; then
|
cannam@154
|
12647 PKG_CONFIG=""
|
cannam@154
|
12648 else
|
cannam@154
|
12649 case $cross_compiling:$ac_tool_warned in
|
cannam@154
|
12650 yes:)
|
cannam@154
|
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
|
cannam@154
|
12652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
|
cannam@154
|
12653 ac_tool_warned=yes ;;
|
cannam@154
|
12654 esac
|
cannam@154
|
12655 PKG_CONFIG=$ac_pt_PKG_CONFIG
|
cannam@154
|
12656 fi
|
cannam@154
|
12657 else
|
cannam@154
|
12658 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
cannam@154
|
12659 fi
|
cannam@154
|
12660
|
cannam@154
|
12661 fi
|
cannam@154
|
12662 if test -n "$PKG_CONFIG"; then
|
cannam@154
|
12663 _pkg_min_version=0.9.0
|
cannam@154
|
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
|
cannam@154
|
12665 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
|
cannam@154
|
12666 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
cannam@154
|
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
12668 $as_echo "yes" >&6; }
|
cannam@154
|
12669 else
|
cannam@154
|
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12671 $as_echo "no" >&6; }
|
cannam@154
|
12672 PKG_CONFIG=""
|
cannam@154
|
12673 fi
|
cannam@154
|
12674 fi
|
cannam@154
|
12675 if test "$enable_http" != "no"; then :
|
cannam@154
|
12676
|
cannam@154
|
12677 openssl="openssl"
|
cannam@154
|
12678
|
cannam@154
|
12679 $as_echo "#define OP_ENABLE_HTTP 1" >>confdefs.h
|
cannam@154
|
12680
|
cannam@154
|
12681
|
cannam@154
|
12682 pkg_failed=no
|
cannam@154
|
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for URL_DEPS" >&5
|
cannam@154
|
12684 $as_echo_n "checking for URL_DEPS... " >&6; }
|
cannam@154
|
12685
|
cannam@154
|
12686 if test -n "$URL_DEPS_CFLAGS"; then
|
cannam@154
|
12687 pkg_cv_URL_DEPS_CFLAGS="$URL_DEPS_CFLAGS"
|
cannam@154
|
12688 elif test -n "$PKG_CONFIG"; then
|
cannam@154
|
12689 if test -n "$PKG_CONFIG" && \
|
cannam@154
|
12690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
|
cannam@154
|
12691 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
|
cannam@154
|
12692 ac_status=$?
|
cannam@154
|
12693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
12694 test $ac_status = 0; }; then
|
cannam@154
|
12695 pkg_cv_URL_DEPS_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
|
cannam@154
|
12696 test "x$?" != "x0" && pkg_failed=yes
|
cannam@154
|
12697 else
|
cannam@154
|
12698 pkg_failed=yes
|
cannam@154
|
12699 fi
|
cannam@154
|
12700 else
|
cannam@154
|
12701 pkg_failed=untried
|
cannam@154
|
12702 fi
|
cannam@154
|
12703 if test -n "$URL_DEPS_LIBS"; then
|
cannam@154
|
12704 pkg_cv_URL_DEPS_LIBS="$URL_DEPS_LIBS"
|
cannam@154
|
12705 elif test -n "$PKG_CONFIG"; then
|
cannam@154
|
12706 if test -n "$PKG_CONFIG" && \
|
cannam@154
|
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
|
cannam@154
|
12708 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
|
cannam@154
|
12709 ac_status=$?
|
cannam@154
|
12710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
12711 test $ac_status = 0; }; then
|
cannam@154
|
12712 pkg_cv_URL_DEPS_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
|
cannam@154
|
12713 test "x$?" != "x0" && pkg_failed=yes
|
cannam@154
|
12714 else
|
cannam@154
|
12715 pkg_failed=yes
|
cannam@154
|
12716 fi
|
cannam@154
|
12717 else
|
cannam@154
|
12718 pkg_failed=untried
|
cannam@154
|
12719 fi
|
cannam@154
|
12720
|
cannam@154
|
12721
|
cannam@154
|
12722
|
cannam@154
|
12723 if test $pkg_failed = yes; then
|
cannam@154
|
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12725 $as_echo "no" >&6; }
|
cannam@154
|
12726
|
cannam@154
|
12727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
cannam@154
|
12728 _pkg_short_errors_supported=yes
|
cannam@154
|
12729 else
|
cannam@154
|
12730 _pkg_short_errors_supported=no
|
cannam@154
|
12731 fi
|
cannam@154
|
12732 if test $_pkg_short_errors_supported = yes; then
|
cannam@154
|
12733 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
|
cannam@154
|
12734 else
|
cannam@154
|
12735 URL_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
|
cannam@154
|
12736 fi
|
cannam@154
|
12737 # Put the nasty error message in config.log where it belongs
|
cannam@154
|
12738 echo "$URL_DEPS_PKG_ERRORS" >&5
|
cannam@154
|
12739
|
cannam@154
|
12740 as_fn_error $? "Package requirements (openssl) were not met:
|
cannam@154
|
12741
|
cannam@154
|
12742 $URL_DEPS_PKG_ERRORS
|
cannam@154
|
12743
|
cannam@154
|
12744 Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
cannam@154
|
12745 installed software in a non-standard prefix.
|
cannam@154
|
12746
|
cannam@154
|
12747 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
|
cannam@154
|
12748 and URL_DEPS_LIBS to avoid the need to call pkg-config.
|
cannam@154
|
12749 See the pkg-config man page for more details." "$LINENO" 5
|
cannam@154
|
12750 elif test $pkg_failed = untried; then
|
cannam@154
|
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12752 $as_echo "no" >&6; }
|
cannam@154
|
12753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
12754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
12755 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
cannam@154
|
12756 is in your PATH or set the PKG_CONFIG environment variable to the full
|
cannam@154
|
12757 path to pkg-config.
|
cannam@154
|
12758
|
cannam@154
|
12759 Alternatively, you may set the environment variables URL_DEPS_CFLAGS
|
cannam@154
|
12760 and URL_DEPS_LIBS to avoid the need to call pkg-config.
|
cannam@154
|
12761 See the pkg-config man page for more details.
|
cannam@154
|
12762
|
cannam@154
|
12763 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
cannam@154
|
12764 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
12765 else
|
cannam@154
|
12766 URL_DEPS_CFLAGS=$pkg_cv_URL_DEPS_CFLAGS
|
cannam@154
|
12767 URL_DEPS_LIBS=$pkg_cv_URL_DEPS_LIBS
|
cannam@154
|
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
12769 $as_echo "yes" >&6; }
|
cannam@154
|
12770
|
cannam@154
|
12771 fi
|
cannam@154
|
12772
|
cannam@154
|
12773 fi
|
cannam@154
|
12774 if test "$enable_http" != "no"; then
|
cannam@154
|
12775 OP_ENABLE_HTTP_TRUE=
|
cannam@154
|
12776 OP_ENABLE_HTTP_FALSE='#'
|
cannam@154
|
12777 else
|
cannam@154
|
12778 OP_ENABLE_HTTP_TRUE='#'
|
cannam@154
|
12779 OP_ENABLE_HTTP_FALSE=
|
cannam@154
|
12780 fi
|
cannam@154
|
12781
|
cannam@154
|
12782
|
cannam@154
|
12783
|
cannam@154
|
12784
|
cannam@154
|
12785 pkg_failed=no
|
cannam@154
|
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5
|
cannam@154
|
12787 $as_echo_n "checking for DEPS... " >&6; }
|
cannam@154
|
12788
|
cannam@154
|
12789 if test -n "$DEPS_CFLAGS"; then
|
cannam@154
|
12790 pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
|
cannam@154
|
12791 elif test -n "$PKG_CONFIG"; then
|
cannam@154
|
12792 if test -n "$PKG_CONFIG" && \
|
cannam@154
|
12793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
|
cannam@154
|
12794 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
|
cannam@154
|
12795 ac_status=$?
|
cannam@154
|
12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
12797 test $ac_status = 0; }; then
|
cannam@154
|
12798 pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
|
cannam@154
|
12799 test "x$?" != "x0" && pkg_failed=yes
|
cannam@154
|
12800 else
|
cannam@154
|
12801 pkg_failed=yes
|
cannam@154
|
12802 fi
|
cannam@154
|
12803 else
|
cannam@154
|
12804 pkg_failed=untried
|
cannam@154
|
12805 fi
|
cannam@154
|
12806 if test -n "$DEPS_LIBS"; then
|
cannam@154
|
12807 pkg_cv_DEPS_LIBS="$DEPS_LIBS"
|
cannam@154
|
12808 elif test -n "$PKG_CONFIG"; then
|
cannam@154
|
12809 if test -n "$PKG_CONFIG" && \
|
cannam@154
|
12810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3 opus >= 1.0.1\""; } >&5
|
cannam@154
|
12811 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3 opus >= 1.0.1") 2>&5
|
cannam@154
|
12812 ac_status=$?
|
cannam@154
|
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
cannam@154
|
12814 test $ac_status = 0; }; then
|
cannam@154
|
12815 pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3 opus >= 1.0.1" 2>/dev/null`
|
cannam@154
|
12816 test "x$?" != "x0" && pkg_failed=yes
|
cannam@154
|
12817 else
|
cannam@154
|
12818 pkg_failed=yes
|
cannam@154
|
12819 fi
|
cannam@154
|
12820 else
|
cannam@154
|
12821 pkg_failed=untried
|
cannam@154
|
12822 fi
|
cannam@154
|
12823
|
cannam@154
|
12824
|
cannam@154
|
12825
|
cannam@154
|
12826 if test $pkg_failed = yes; then
|
cannam@154
|
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12828 $as_echo "no" >&6; }
|
cannam@154
|
12829
|
cannam@154
|
12830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
cannam@154
|
12831 _pkg_short_errors_supported=yes
|
cannam@154
|
12832 else
|
cannam@154
|
12833 _pkg_short_errors_supported=no
|
cannam@154
|
12834 fi
|
cannam@154
|
12835 if test $_pkg_short_errors_supported = yes; then
|
cannam@154
|
12836 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
|
cannam@154
|
12837 else
|
cannam@154
|
12838 DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.3 opus >= 1.0.1" 2>&1`
|
cannam@154
|
12839 fi
|
cannam@154
|
12840 # Put the nasty error message in config.log where it belongs
|
cannam@154
|
12841 echo "$DEPS_PKG_ERRORS" >&5
|
cannam@154
|
12842
|
cannam@154
|
12843 as_fn_error $? "Package requirements (ogg >= 1.3 opus >= 1.0.1) were not met:
|
cannam@154
|
12844
|
cannam@154
|
12845 $DEPS_PKG_ERRORS
|
cannam@154
|
12846
|
cannam@154
|
12847 Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
cannam@154
|
12848 installed software in a non-standard prefix.
|
cannam@154
|
12849
|
cannam@154
|
12850 Alternatively, you may set the environment variables DEPS_CFLAGS
|
cannam@154
|
12851 and DEPS_LIBS to avoid the need to call pkg-config.
|
cannam@154
|
12852 See the pkg-config man page for more details." "$LINENO" 5
|
cannam@154
|
12853 elif test $pkg_failed = untried; then
|
cannam@154
|
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
12855 $as_echo "no" >&6; }
|
cannam@154
|
12856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
cannam@154
|
12857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
cannam@154
|
12858 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
|
cannam@154
|
12859 is in your PATH or set the PKG_CONFIG environment variable to the full
|
cannam@154
|
12860 path to pkg-config.
|
cannam@154
|
12861
|
cannam@154
|
12862 Alternatively, you may set the environment variables DEPS_CFLAGS
|
cannam@154
|
12863 and DEPS_LIBS to avoid the need to call pkg-config.
|
cannam@154
|
12864 See the pkg-config man page for more details.
|
cannam@154
|
12865
|
cannam@154
|
12866 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
|
cannam@154
|
12867 See \`config.log' for more details" "$LINENO" 5; }
|
cannam@154
|
12868 else
|
cannam@154
|
12869 DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
|
cannam@154
|
12870 DEPS_LIBS=$pkg_cv_DEPS_LIBS
|
cannam@154
|
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
cannam@154
|
12872 $as_echo "yes" >&6; }
|
cannam@154
|
12873
|
cannam@154
|
12874 fi
|
cannam@154
|
12875
|
cannam@154
|
12876 # Check whether --enable-fixed-point was given.
|
cannam@154
|
12877 if test "${enable_fixed_point+set}" = set; then :
|
cannam@154
|
12878 enableval=$enable_fixed_point;
|
cannam@154
|
12879 else
|
cannam@154
|
12880 enable_fixed_point=no
|
cannam@154
|
12881 fi
|
cannam@154
|
12882
|
cannam@154
|
12883 # Check whether --enable-float was given.
|
cannam@154
|
12884 if test "${enable_float+set}" = set; then :
|
cannam@154
|
12885 enableval=$enable_float;
|
cannam@154
|
12886 else
|
cannam@154
|
12887 enable_float=yes
|
cannam@154
|
12888 fi
|
cannam@154
|
12889
|
cannam@154
|
12890
|
cannam@154
|
12891 if test "$enable_float" = "no"; then :
|
cannam@154
|
12892 enable_fixed_point=yes
|
cannam@154
|
12893
|
cannam@154
|
12894 $as_echo "#define OP_DISABLE_FLOAT_API 1" >>confdefs.h
|
cannam@154
|
12895
|
cannam@154
|
12896
|
cannam@154
|
12897
|
cannam@154
|
12898 fi
|
cannam@154
|
12899
|
cannam@154
|
12900 if test "$enable_fixed_point" = "yes"; then :
|
cannam@154
|
12901
|
cannam@154
|
12902 $as_echo "#define OP_FIXED_POINT 1" >>confdefs.h
|
cannam@154
|
12903
|
cannam@154
|
12904 else
|
cannam@154
|
12905 saved_LIBS="$LIBS"
|
cannam@154
|
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lrintf" >&5
|
cannam@154
|
12907 $as_echo_n "checking for library containing lrintf... " >&6; }
|
cannam@154
|
12908 if ${ac_cv_search_lrintf+:} false; then :
|
cannam@154
|
12909 $as_echo_n "(cached) " >&6
|
cannam@154
|
12910 else
|
cannam@154
|
12911 ac_func_search_save_LIBS=$LIBS
|
cannam@154
|
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
12913 /* end confdefs.h. */
|
cannam@154
|
12914
|
cannam@154
|
12915 /* Override any GCC internal prototype to avoid an error.
|
cannam@154
|
12916 Use char because int might match the return type of a GCC
|
cannam@154
|
12917 builtin and then its argument prototype would still apply. */
|
cannam@154
|
12918 #ifdef __cplusplus
|
cannam@154
|
12919 extern "C"
|
cannam@154
|
12920 #endif
|
cannam@154
|
12921 char lrintf ();
|
cannam@154
|
12922 int
|
cannam@154
|
12923 main ()
|
cannam@154
|
12924 {
|
cannam@154
|
12925 return lrintf ();
|
cannam@154
|
12926 ;
|
cannam@154
|
12927 return 0;
|
cannam@154
|
12928 }
|
cannam@154
|
12929 _ACEOF
|
cannam@154
|
12930 for ac_lib in '' m; do
|
cannam@154
|
12931 if test -z "$ac_lib"; then
|
cannam@154
|
12932 ac_res="none required"
|
cannam@154
|
12933 else
|
cannam@154
|
12934 ac_res=-l$ac_lib
|
cannam@154
|
12935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
cannam@154
|
12936 fi
|
cannam@154
|
12937 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
12938 ac_cv_search_lrintf=$ac_res
|
cannam@154
|
12939 fi
|
cannam@154
|
12940 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
12941 conftest$ac_exeext
|
cannam@154
|
12942 if ${ac_cv_search_lrintf+:} false; then :
|
cannam@154
|
12943 break
|
cannam@154
|
12944 fi
|
cannam@154
|
12945 done
|
cannam@154
|
12946 if ${ac_cv_search_lrintf+:} false; then :
|
cannam@154
|
12947
|
cannam@154
|
12948 else
|
cannam@154
|
12949 ac_cv_search_lrintf=no
|
cannam@154
|
12950 fi
|
cannam@154
|
12951 rm conftest.$ac_ext
|
cannam@154
|
12952 LIBS=$ac_func_search_save_LIBS
|
cannam@154
|
12953 fi
|
cannam@154
|
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrintf" >&5
|
cannam@154
|
12955 $as_echo "$ac_cv_search_lrintf" >&6; }
|
cannam@154
|
12956 ac_res=$ac_cv_search_lrintf
|
cannam@154
|
12957 if test "$ac_res" != no; then :
|
cannam@154
|
12958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
cannam@154
|
12959
|
cannam@154
|
12960
|
cannam@154
|
12961 $as_echo "#define OP_HAVE_LRINTF 1" >>confdefs.h
|
cannam@154
|
12962
|
cannam@154
|
12963 lrintf_notice="
|
cannam@154
|
12964 Library for lrintf() ......... ${ac_cv_search_lrintf}"
|
cannam@154
|
12965
|
cannam@154
|
12966 fi
|
cannam@154
|
12967
|
cannam@154
|
12968 LIBS="$saved_LIBS"
|
cannam@154
|
12969
|
cannam@154
|
12970
|
cannam@154
|
12971 fi
|
cannam@154
|
12972
|
cannam@154
|
12973 # Check whether --enable-examples was given.
|
cannam@154
|
12974 if test "${enable_examples+set}" = set; then :
|
cannam@154
|
12975 enableval=$enable_examples;
|
cannam@154
|
12976 else
|
cannam@154
|
12977 enable_examples=yes
|
cannam@154
|
12978 fi
|
cannam@154
|
12979
|
cannam@154
|
12980 if test "$enable_examples" = "yes"; then
|
cannam@154
|
12981 OP_ENABLE_EXAMPLES_TRUE=
|
cannam@154
|
12982 OP_ENABLE_EXAMPLES_FALSE='#'
|
cannam@154
|
12983 else
|
cannam@154
|
12984 OP_ENABLE_EXAMPLES_TRUE='#'
|
cannam@154
|
12985 OP_ENABLE_EXAMPLES_FALSE=
|
cannam@154
|
12986 fi
|
cannam@154
|
12987
|
cannam@154
|
12988
|
cannam@154
|
12989 case "$ac_cv_search_lrintf" in #(
|
cannam@154
|
12990 "no") :
|
cannam@154
|
12991 ;; #(
|
cannam@154
|
12992 "none required") :
|
cannam@154
|
12993 ;; #(
|
cannam@154
|
12994 *) :
|
cannam@154
|
12995 lrintf_lib="$ac_cv_search_lrintf" ;;
|
cannam@154
|
12996 esac
|
cannam@154
|
12997
|
cannam@154
|
12998
|
cannam@154
|
12999
|
cannam@154
|
13000
|
cannam@154
|
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC way to treat warnings as errors" >&5
|
cannam@154
|
13002 $as_echo_n "checking for $CC way to treat warnings as errors... " >&6; }
|
cannam@154
|
13003 if ${cc_cv_werror+:} false; then :
|
cannam@154
|
13004 $as_echo_n "(cached) " >&6
|
cannam@154
|
13005 else
|
cannam@154
|
13006
|
cannam@154
|
13007 if ${cc_cv_cflags__Werror+:} false; then :
|
cannam@154
|
13008 $as_echo_n "(cached) " >&6
|
cannam@154
|
13009 else
|
cannam@154
|
13010 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
13011 CFLAGS="$CFLAGS -Werror"
|
cannam@154
|
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
13013 /* end confdefs.h. */
|
cannam@154
|
13014 int main() { return 0; }
|
cannam@154
|
13015 _ACEOF
|
cannam@154
|
13016 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
13017 eval "cc_cv_cflags__Werror='yes'"
|
cannam@154
|
13018 else
|
cannam@154
|
13019 eval "cc_cv_cflags__Werror='no'"
|
cannam@154
|
13020 fi
|
cannam@154
|
13021 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
13022 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
13023 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
13024
|
cannam@154
|
13025 fi
|
cannam@154
|
13026
|
cannam@154
|
13027
|
cannam@154
|
13028 if eval test x$cc_cv_cflags__Werror = xyes; then :
|
cannam@154
|
13029 cc_cv_werror=-Werror
|
cannam@154
|
13030 else
|
cannam@154
|
13031
|
cannam@154
|
13032 if ${cc_cv_cflags__errwarn__all+:} false; then :
|
cannam@154
|
13033 $as_echo_n "(cached) " >&6
|
cannam@154
|
13034 else
|
cannam@154
|
13035 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
13036 CFLAGS="$CFLAGS -errwarn=%all"
|
cannam@154
|
13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
13038 /* end confdefs.h. */
|
cannam@154
|
13039 int main() { return 0; }
|
cannam@154
|
13040 _ACEOF
|
cannam@154
|
13041 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
13042 eval "cc_cv_cflags__errwarn__all='yes'"
|
cannam@154
|
13043 else
|
cannam@154
|
13044 eval "cc_cv_cflags__errwarn__all='no'"
|
cannam@154
|
13045 fi
|
cannam@154
|
13046 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
13047 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
13048 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
13049
|
cannam@154
|
13050 fi
|
cannam@154
|
13051
|
cannam@154
|
13052
|
cannam@154
|
13053 if eval test x$cc_cv_cflags__errwarn__all = xyes; then :
|
cannam@154
|
13054 cc_cv_werror=-errwarn=%all
|
cannam@154
|
13055 fi
|
cannam@154
|
13056
|
cannam@154
|
13057 fi
|
cannam@154
|
13058
|
cannam@154
|
13059
|
cannam@154
|
13060 fi
|
cannam@154
|
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_werror" >&5
|
cannam@154
|
13062 $as_echo "$cc_cv_werror" >&6; }
|
cannam@154
|
13063
|
cannam@154
|
13064
|
cannam@154
|
13065
|
cannam@154
|
13066
|
cannam@154
|
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __attribute__(( visibility(\"default\") ))" >&5
|
cannam@154
|
13068 $as_echo_n "checking if $CC supports __attribute__(( visibility(\"default\") ))... " >&6; }
|
cannam@154
|
13069 if ${cc_cv_attribute_visibility_default+:} false; then :
|
cannam@154
|
13070 $as_echo_n "(cached) " >&6
|
cannam@154
|
13071 else
|
cannam@154
|
13072 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
13073 CFLAGS="$CFLAGS $cc_cv_werror"
|
cannam@154
|
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
13075 /* end confdefs.h. */
|
cannam@154
|
13076 void __attribute__((visibility("default"))) default_function() { }
|
cannam@154
|
13077 _ACEOF
|
cannam@154
|
13078 if ac_fn_c_try_compile "$LINENO"; then :
|
cannam@154
|
13079 eval "cc_cv_attribute_visibility_default='yes'"
|
cannam@154
|
13080 else
|
cannam@154
|
13081 eval "cc_cv_attribute_visibility_default='no'"
|
cannam@154
|
13082 fi
|
cannam@154
|
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
cannam@154
|
13084 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
13085
|
cannam@154
|
13086 fi
|
cannam@154
|
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_attribute_visibility_default" >&5
|
cannam@154
|
13088 $as_echo "$cc_cv_attribute_visibility_default" >&6; }
|
cannam@154
|
13089
|
cannam@154
|
13090 if eval test x$cc_cv_attribute_visibility_default = xyes; then :
|
cannam@154
|
13091
|
cannam@154
|
13092 $as_echo "#define SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT 1" >>confdefs.h
|
cannam@154
|
13093
|
cannam@154
|
13094
|
cannam@154
|
13095
|
cannam@154
|
13096
|
cannam@154
|
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fvisibility=hidden" >&5
|
cannam@154
|
13098 $as_echo_n "checking if $CC supports -fvisibility=hidden... " >&6; }
|
cannam@154
|
13099 if ${cc_cv_flag_visibility+:} false; then :
|
cannam@154
|
13100 $as_echo_n "(cached) " >&6
|
cannam@154
|
13101 else
|
cannam@154
|
13102 cc_flag_visibility_save_CFLAGS="$CFLAGS"
|
cannam@154
|
13103 CFLAGS="$CFLAGS $cc_cv_werror"
|
cannam@154
|
13104
|
cannam@154
|
13105 if ${cc_cv_cflags__fvisibility_hidden+:} false; then :
|
cannam@154
|
13106 $as_echo_n "(cached) " >&6
|
cannam@154
|
13107 else
|
cannam@154
|
13108 ac_save_CFLAGS="$CFLAGS"
|
cannam@154
|
13109 CFLAGS="$CFLAGS -fvisibility=hidden"
|
cannam@154
|
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cannam@154
|
13111 /* end confdefs.h. */
|
cannam@154
|
13112 int main() { return 0; }
|
cannam@154
|
13113 _ACEOF
|
cannam@154
|
13114 if ac_fn_c_try_link "$LINENO"; then :
|
cannam@154
|
13115 eval "cc_cv_cflags__fvisibility_hidden='yes'"
|
cannam@154
|
13116 else
|
cannam@154
|
13117 eval "cc_cv_cflags__fvisibility_hidden='no'"
|
cannam@154
|
13118 fi
|
cannam@154
|
13119 rm -f core conftest.err conftest.$ac_objext \
|
cannam@154
|
13120 conftest$ac_exeext conftest.$ac_ext
|
cannam@154
|
13121 CFLAGS="$ac_save_CFLAGS"
|
cannam@154
|
13122
|
cannam@154
|
13123 fi
|
cannam@154
|
13124
|
cannam@154
|
13125
|
cannam@154
|
13126 if eval test x$cc_cv_cflags__fvisibility_hidden = xyes; then :
|
cannam@154
|
13127 cc_cv_flag_visibility='yes'
|
cannam@154
|
13128 else
|
cannam@154
|
13129 cc_cv_flag_visibility='no'
|
cannam@154
|
13130 fi
|
cannam@154
|
13131
|
cannam@154
|
13132 CFLAGS="$cc_flag_visibility_save_CFLAGS"
|
cannam@154
|
13133 fi
|
cannam@154
|
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_cv_flag_visibility" >&5
|
cannam@154
|
13135 $as_echo "$cc_cv_flag_visibility" >&6; }
|
cannam@154
|
13136
|
cannam@154
|
13137 if test "x$cc_cv_flag_visibility" = "xyes"; then :
|
cannam@154
|
13138
|
cannam@154
|
13139 $as_echo "#define SUPPORT_FLAG_VISIBILITY 1" >>confdefs.h
|
cannam@154
|
13140
|
cannam@154
|
13141 CFLAGS="${CFLAGS} -fvisibility=hidden"
|
cannam@154
|
13142 fi
|
cannam@154
|
13143
|
cannam@154
|
13144
|
cannam@154
|
13145 fi
|
cannam@154
|
13146
|
cannam@154
|
13147
|
cannam@154
|
13148
|
cannam@154
|
13149 # Check whether --enable-doc was given.
|
cannam@154
|
13150 if test "${enable_doc+set}" = set; then :
|
cannam@154
|
13151 enableval=$enable_doc;
|
cannam@154
|
13152 else
|
cannam@154
|
13153 enable_doc=yes
|
cannam@154
|
13154
|
cannam@154
|
13155 fi
|
cannam@154
|
13156
|
cannam@154
|
13157
|
cannam@154
|
13158 if test "$enable_doc" = "yes"; then :
|
cannam@154
|
13159
|
cannam@154
|
13160 # Extract the first word of "doxygen", so it can be a program name with args.
|
cannam@154
|
13161 set dummy doxygen; ac_word=$2
|
cannam@154
|
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
13163 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
13164 if ${ac_cv_prog_HAVE_DOXYGEN+:} false; then :
|
cannam@154
|
13165 $as_echo_n "(cached) " >&6
|
cannam@154
|
13166 else
|
cannam@154
|
13167 if test -n "$HAVE_DOXYGEN"; then
|
cannam@154
|
13168 ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test.
|
cannam@154
|
13169 else
|
cannam@154
|
13170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
13171 for as_dir in $PATH
|
cannam@154
|
13172 do
|
cannam@154
|
13173 IFS=$as_save_IFS
|
cannam@154
|
13174 test -z "$as_dir" && as_dir=.
|
cannam@154
|
13175 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
13176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
13177 ac_cv_prog_HAVE_DOXYGEN="yes"
|
cannam@154
|
13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
13179 break 2
|
cannam@154
|
13180 fi
|
cannam@154
|
13181 done
|
cannam@154
|
13182 done
|
cannam@154
|
13183 IFS=$as_save_IFS
|
cannam@154
|
13184
|
cannam@154
|
13185 test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no"
|
cannam@154
|
13186 fi
|
cannam@154
|
13187 fi
|
cannam@154
|
13188 HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN
|
cannam@154
|
13189 if test -n "$HAVE_DOXYGEN"; then
|
cannam@154
|
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOXYGEN" >&5
|
cannam@154
|
13191 $as_echo "$HAVE_DOXYGEN" >&6; }
|
cannam@154
|
13192 else
|
cannam@154
|
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
13194 $as_echo "no" >&6; }
|
cannam@154
|
13195 fi
|
cannam@154
|
13196
|
cannam@154
|
13197
|
cannam@154
|
13198 # Extract the first word of "dot", so it can be a program name with args.
|
cannam@154
|
13199 set dummy dot; ac_word=$2
|
cannam@154
|
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
|
cannam@154
|
13201 $as_echo_n "checking for $ac_word... " >&6; }
|
cannam@154
|
13202 if ${ac_cv_prog_HAVE_DOT+:} false; then :
|
cannam@154
|
13203 $as_echo_n "(cached) " >&6
|
cannam@154
|
13204 else
|
cannam@154
|
13205 if test -n "$HAVE_DOT"; then
|
cannam@154
|
13206 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
|
cannam@154
|
13207 else
|
cannam@154
|
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
13209 for as_dir in $PATH
|
cannam@154
|
13210 do
|
cannam@154
|
13211 IFS=$as_save_IFS
|
cannam@154
|
13212 test -z "$as_dir" && as_dir=.
|
cannam@154
|
13213 for ac_exec_ext in '' $ac_executable_extensions; do
|
cannam@154
|
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
cannam@154
|
13215 ac_cv_prog_HAVE_DOT="yes"
|
cannam@154
|
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
|
cannam@154
|
13217 break 2
|
cannam@154
|
13218 fi
|
cannam@154
|
13219 done
|
cannam@154
|
13220 done
|
cannam@154
|
13221 IFS=$as_save_IFS
|
cannam@154
|
13222
|
cannam@154
|
13223 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="no"
|
cannam@154
|
13224 fi
|
cannam@154
|
13225 fi
|
cannam@154
|
13226 HAVE_DOT=$ac_cv_prog_HAVE_DOT
|
cannam@154
|
13227 if test -n "$HAVE_DOT"; then
|
cannam@154
|
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOT" >&5
|
cannam@154
|
13229 $as_echo "$HAVE_DOT" >&6; }
|
cannam@154
|
13230 else
|
cannam@154
|
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
cannam@154
|
13232 $as_echo "no" >&6; }
|
cannam@154
|
13233 fi
|
cannam@154
|
13234
|
cannam@154
|
13235
|
cannam@154
|
13236
|
cannam@154
|
13237 else
|
cannam@154
|
13238
|
cannam@154
|
13239 HAVE_DOXYGEN=no
|
cannam@154
|
13240
|
cannam@154
|
13241 fi
|
cannam@154
|
13242
|
cannam@154
|
13243 if test "$HAVE_DOXYGEN" = "yes"; then
|
cannam@154
|
13244 HAVE_DOXYGEN_TRUE=
|
cannam@154
|
13245 HAVE_DOXYGEN_FALSE='#'
|
cannam@154
|
13246 else
|
cannam@154
|
13247 HAVE_DOXYGEN_TRUE='#'
|
cannam@154
|
13248 HAVE_DOXYGEN_FALSE=
|
cannam@154
|
13249 fi
|
cannam@154
|
13250
|
cannam@154
|
13251
|
cannam@154
|
13252 ac_config_files="$ac_config_files Makefile opusfile.pc opusurl.pc opusfile-uninstalled.pc opusurl-uninstalled.pc doc/Doxyfile"
|
cannam@154
|
13253
|
cannam@154
|
13254 ac_config_headers="$ac_config_headers config.h"
|
cannam@154
|
13255
|
cannam@154
|
13256 cat >confcache <<\_ACEOF
|
cannam@154
|
13257 # This file is a shell script that caches the results of configure
|
cannam@154
|
13258 # tests run on this system so they can be shared between configure
|
cannam@154
|
13259 # scripts and configure runs, see configure's option --config-cache.
|
cannam@154
|
13260 # It is not useful on other systems. If it contains results you don't
|
cannam@154
|
13261 # want to keep, you may remove or edit it.
|
cannam@154
|
13262 #
|
cannam@154
|
13263 # config.status only pays attention to the cache file if you give it
|
cannam@154
|
13264 # the --recheck option to rerun configure.
|
cannam@154
|
13265 #
|
cannam@154
|
13266 # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
cannam@154
|
13267 # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
cannam@154
|
13268 # following values.
|
cannam@154
|
13269
|
cannam@154
|
13270 _ACEOF
|
cannam@154
|
13271
|
cannam@154
|
13272 # The following way of writing the cache mishandles newlines in values,
|
cannam@154
|
13273 # but we know of no workaround that is simple, portable, and efficient.
|
cannam@154
|
13274 # So, we kill variables containing newlines.
|
cannam@154
|
13275 # Ultrix sh set writes to stderr and can't be redirected directly,
|
cannam@154
|
13276 # and sets the high bit in the cache file unless we assign to the vars.
|
cannam@154
|
13277 (
|
cannam@154
|
13278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
cannam@154
|
13279 eval ac_val=\$$ac_var
|
cannam@154
|
13280 case $ac_val in #(
|
cannam@154
|
13281 *${as_nl}*)
|
cannam@154
|
13282 case $ac_var in #(
|
cannam@154
|
13283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
|
cannam@154
|
13284 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
|
cannam@154
|
13285 esac
|
cannam@154
|
13286 case $ac_var in #(
|
cannam@154
|
13287 _ | IFS | as_nl) ;; #(
|
cannam@154
|
13288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
|
cannam@154
|
13289 *) { eval $ac_var=; unset $ac_var;} ;;
|
cannam@154
|
13290 esac ;;
|
cannam@154
|
13291 esac
|
cannam@154
|
13292 done
|
cannam@154
|
13293
|
cannam@154
|
13294 (set) 2>&1 |
|
cannam@154
|
13295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
cannam@154
|
13296 *${as_nl}ac_space=\ *)
|
cannam@154
|
13297 # `set' does not quote correctly, so add quotes: double-quote
|
cannam@154
|
13298 # substitution turns \\\\ into \\, and sed turns \\ into \.
|
cannam@154
|
13299 sed -n \
|
cannam@154
|
13300 "s/'/'\\\\''/g;
|
cannam@154
|
13301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
cannam@154
|
13302 ;; #(
|
cannam@154
|
13303 *)
|
cannam@154
|
13304 # `set' quotes correctly as required by POSIX, so do not add quotes.
|
cannam@154
|
13305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
cannam@154
|
13306 ;;
|
cannam@154
|
13307 esac |
|
cannam@154
|
13308 sort
|
cannam@154
|
13309 ) |
|
cannam@154
|
13310 sed '
|
cannam@154
|
13311 /^ac_cv_env_/b end
|
cannam@154
|
13312 t clear
|
cannam@154
|
13313 :clear
|
cannam@154
|
13314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
cannam@154
|
13315 t end
|
cannam@154
|
13316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
cannam@154
|
13317 :end' >>confcache
|
cannam@154
|
13318 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
cannam@154
|
13319 if test -w "$cache_file"; then
|
cannam@154
|
13320 if test "x$cache_file" != "x/dev/null"; then
|
cannam@154
|
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
|
cannam@154
|
13322 $as_echo "$as_me: updating cache $cache_file" >&6;}
|
cannam@154
|
13323 if test ! -f "$cache_file" || test -h "$cache_file"; then
|
cannam@154
|
13324 cat confcache >"$cache_file"
|
cannam@154
|
13325 else
|
cannam@154
|
13326 case $cache_file in #(
|
cannam@154
|
13327 */* | ?:*)
|
cannam@154
|
13328 mv -f confcache "$cache_file"$$ &&
|
cannam@154
|
13329 mv -f "$cache_file"$$ "$cache_file" ;; #(
|
cannam@154
|
13330 *)
|
cannam@154
|
13331 mv -f confcache "$cache_file" ;;
|
cannam@154
|
13332 esac
|
cannam@154
|
13333 fi
|
cannam@154
|
13334 fi
|
cannam@154
|
13335 else
|
cannam@154
|
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
|
cannam@154
|
13337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
cannam@154
|
13338 fi
|
cannam@154
|
13339 fi
|
cannam@154
|
13340 rm -f confcache
|
cannam@154
|
13341
|
cannam@154
|
13342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
cannam@154
|
13343 # Let make expand exec_prefix.
|
cannam@154
|
13344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
cannam@154
|
13345
|
cannam@154
|
13346 DEFS=-DHAVE_CONFIG_H
|
cannam@154
|
13347
|
cannam@154
|
13348 ac_libobjs=
|
cannam@154
|
13349 ac_ltlibobjs=
|
cannam@154
|
13350 U=
|
cannam@154
|
13351 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
cannam@154
|
13352 # 1. Remove the extension, and $U if already installed.
|
cannam@154
|
13353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
cannam@154
|
13354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
|
cannam@154
|
13355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
cannam@154
|
13356 # will be set to the directory where LIBOBJS objects are built.
|
cannam@154
|
13357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
cannam@154
|
13358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
|
cannam@154
|
13359 done
|
cannam@154
|
13360 LIBOBJS=$ac_libobjs
|
cannam@154
|
13361
|
cannam@154
|
13362 LTLIBOBJS=$ac_ltlibobjs
|
cannam@154
|
13363
|
cannam@154
|
13364
|
cannam@154
|
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
|
cannam@154
|
13366 $as_echo_n "checking that generated files are newer than configure... " >&6; }
|
cannam@154
|
13367 if test -n "$am_sleep_pid"; then
|
cannam@154
|
13368 # Hide warnings about reused PIDs.
|
cannam@154
|
13369 wait $am_sleep_pid 2>/dev/null
|
cannam@154
|
13370 fi
|
cannam@154
|
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
|
cannam@154
|
13372 $as_echo "done" >&6; }
|
cannam@154
|
13373 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
cannam@154
|
13374 as_fn_error $? "conditional \"AMDEP\" was never defined.
|
cannam@154
|
13375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13376 fi
|
cannam@154
|
13377 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
cannam@154
|
13378 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
cannam@154
|
13379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13380 fi
|
cannam@154
|
13381 if test -n "$EXEEXT"; then
|
cannam@154
|
13382 am__EXEEXT_TRUE=
|
cannam@154
|
13383 am__EXEEXT_FALSE='#'
|
cannam@154
|
13384 else
|
cannam@154
|
13385 am__EXEEXT_TRUE='#'
|
cannam@154
|
13386 am__EXEEXT_FALSE=
|
cannam@154
|
13387 fi
|
cannam@154
|
13388
|
cannam@154
|
13389 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
cannam@154
|
13390 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
cannam@154
|
13391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13392 fi
|
cannam@154
|
13393 if test -z "${OP_WIN32_TRUE}" && test -z "${OP_WIN32_FALSE}"; then
|
cannam@154
|
13394 as_fn_error $? "conditional \"OP_WIN32\" was never defined.
|
cannam@154
|
13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13396 fi
|
cannam@154
|
13397 if test -z "${OP_ENABLE_HTTP_TRUE}" && test -z "${OP_ENABLE_HTTP_FALSE}"; then
|
cannam@154
|
13398 as_fn_error $? "conditional \"OP_ENABLE_HTTP\" was never defined.
|
cannam@154
|
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13400 fi
|
cannam@154
|
13401 if test -z "${OP_ENABLE_EXAMPLES_TRUE}" && test -z "${OP_ENABLE_EXAMPLES_FALSE}"; then
|
cannam@154
|
13402 as_fn_error $? "conditional \"OP_ENABLE_EXAMPLES\" was never defined.
|
cannam@154
|
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13404 fi
|
cannam@154
|
13405 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
|
cannam@154
|
13406 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
|
cannam@154
|
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
cannam@154
|
13408 fi
|
cannam@154
|
13409
|
cannam@154
|
13410 : "${CONFIG_STATUS=./config.status}"
|
cannam@154
|
13411 ac_write_fail=0
|
cannam@154
|
13412 ac_clean_files_save=$ac_clean_files
|
cannam@154
|
13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
cannam@154
|
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
|
cannam@154
|
13415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
cannam@154
|
13416 as_write_fail=0
|
cannam@154
|
13417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
|
cannam@154
|
13418 #! $SHELL
|
cannam@154
|
13419 # Generated by $as_me.
|
cannam@154
|
13420 # Run this file to recreate the current configuration.
|
cannam@154
|
13421 # Compiler output produced by configure, useful for debugging
|
cannam@154
|
13422 # configure, is in config.log if it exists.
|
cannam@154
|
13423
|
cannam@154
|
13424 debug=false
|
cannam@154
|
13425 ac_cs_recheck=false
|
cannam@154
|
13426 ac_cs_silent=false
|
cannam@154
|
13427
|
cannam@154
|
13428 SHELL=\${CONFIG_SHELL-$SHELL}
|
cannam@154
|
13429 export SHELL
|
cannam@154
|
13430 _ASEOF
|
cannam@154
|
13431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
|
cannam@154
|
13432 ## -------------------- ##
|
cannam@154
|
13433 ## M4sh Initialization. ##
|
cannam@154
|
13434 ## -------------------- ##
|
cannam@154
|
13435
|
cannam@154
|
13436 # Be more Bourne compatible
|
cannam@154
|
13437 DUALCASE=1; export DUALCASE # for MKS sh
|
cannam@154
|
13438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
|
cannam@154
|
13439 emulate sh
|
cannam@154
|
13440 NULLCMD=:
|
cannam@154
|
13441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
|
cannam@154
|
13442 # is contrary to our usage. Disable this feature.
|
cannam@154
|
13443 alias -g '${1+"$@"}'='"$@"'
|
cannam@154
|
13444 setopt NO_GLOB_SUBST
|
cannam@154
|
13445 else
|
cannam@154
|
13446 case `(set -o) 2>/dev/null` in #(
|
cannam@154
|
13447 *posix*) :
|
cannam@154
|
13448 set -o posix ;; #(
|
cannam@154
|
13449 *) :
|
cannam@154
|
13450 ;;
|
cannam@154
|
13451 esac
|
cannam@154
|
13452 fi
|
cannam@154
|
13453
|
cannam@154
|
13454
|
cannam@154
|
13455 as_nl='
|
cannam@154
|
13456 '
|
cannam@154
|
13457 export as_nl
|
cannam@154
|
13458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
|
cannam@154
|
13459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
|
cannam@154
|
13460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
|
cannam@154
|
13461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
|
cannam@154
|
13462 # Prefer a ksh shell builtin over an external printf program on Solaris,
|
cannam@154
|
13463 # but without wasting forks for bash or zsh.
|
cannam@154
|
13464 if test -z "$BASH_VERSION$ZSH_VERSION" \
|
cannam@154
|
13465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
|
cannam@154
|
13466 as_echo='print -r --'
|
cannam@154
|
13467 as_echo_n='print -rn --'
|
cannam@154
|
13468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
|
cannam@154
|
13469 as_echo='printf %s\n'
|
cannam@154
|
13470 as_echo_n='printf %s'
|
cannam@154
|
13471 else
|
cannam@154
|
13472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
|
cannam@154
|
13473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
|
cannam@154
|
13474 as_echo_n='/usr/ucb/echo -n'
|
cannam@154
|
13475 else
|
cannam@154
|
13476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
|
cannam@154
|
13477 as_echo_n_body='eval
|
cannam@154
|
13478 arg=$1;
|
cannam@154
|
13479 case $arg in #(
|
cannam@154
|
13480 *"$as_nl"*)
|
cannam@154
|
13481 expr "X$arg" : "X\\(.*\\)$as_nl";
|
cannam@154
|
13482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
|
cannam@154
|
13483 esac;
|
cannam@154
|
13484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
|
cannam@154
|
13485 '
|
cannam@154
|
13486 export as_echo_n_body
|
cannam@154
|
13487 as_echo_n='sh -c $as_echo_n_body as_echo'
|
cannam@154
|
13488 fi
|
cannam@154
|
13489 export as_echo_body
|
cannam@154
|
13490 as_echo='sh -c $as_echo_body as_echo'
|
cannam@154
|
13491 fi
|
cannam@154
|
13492
|
cannam@154
|
13493 # The user is always right.
|
cannam@154
|
13494 if test "${PATH_SEPARATOR+set}" != set; then
|
cannam@154
|
13495 PATH_SEPARATOR=:
|
cannam@154
|
13496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
|
cannam@154
|
13497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
|
cannam@154
|
13498 PATH_SEPARATOR=';'
|
cannam@154
|
13499 }
|
cannam@154
|
13500 fi
|
cannam@154
|
13501
|
cannam@154
|
13502
|
cannam@154
|
13503 # IFS
|
cannam@154
|
13504 # We need space, tab and new line, in precisely that order. Quoting is
|
cannam@154
|
13505 # there to prevent editors from complaining about space-tab.
|
cannam@154
|
13506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
cannam@154
|
13507 # splitting by setting IFS to empty value.)
|
cannam@154
|
13508 IFS=" "" $as_nl"
|
cannam@154
|
13509
|
cannam@154
|
13510 # Find who we are. Look in the path if we contain no directory separator.
|
cannam@154
|
13511 as_myself=
|
cannam@154
|
13512 case $0 in #((
|
cannam@154
|
13513 *[\\/]* ) as_myself=$0 ;;
|
cannam@154
|
13514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
cannam@154
|
13515 for as_dir in $PATH
|
cannam@154
|
13516 do
|
cannam@154
|
13517 IFS=$as_save_IFS
|
cannam@154
|
13518 test -z "$as_dir" && as_dir=.
|
cannam@154
|
13519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
cannam@154
|
13520 done
|
cannam@154
|
13521 IFS=$as_save_IFS
|
cannam@154
|
13522
|
cannam@154
|
13523 ;;
|
cannam@154
|
13524 esac
|
cannam@154
|
13525 # We did not find ourselves, most probably we were run as `sh COMMAND'
|
cannam@154
|
13526 # in which case we are not to be found in the path.
|
cannam@154
|
13527 if test "x$as_myself" = x; then
|
cannam@154
|
13528 as_myself=$0
|
cannam@154
|
13529 fi
|
cannam@154
|
13530 if test ! -f "$as_myself"; then
|
cannam@154
|
13531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
cannam@154
|
13532 exit 1
|
cannam@154
|
13533 fi
|
cannam@154
|
13534
|
cannam@154
|
13535 # Unset variables that we do not need and which cause bugs (e.g. in
|
cannam@154
|
13536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
|
cannam@154
|
13537 # suppresses any "Segmentation fault" message there. '((' could
|
cannam@154
|
13538 # trigger a bug in pdksh 5.2.14.
|
cannam@154
|
13539 for as_var in BASH_ENV ENV MAIL MAILPATH
|
cannam@154
|
13540 do eval test x\${$as_var+set} = xset \
|
cannam@154
|
13541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
|
cannam@154
|
13542 done
|
cannam@154
|
13543 PS1='$ '
|
cannam@154
|
13544 PS2='> '
|
cannam@154
|
13545 PS4='+ '
|
cannam@154
|
13546
|
cannam@154
|
13547 # NLS nuisances.
|
cannam@154
|
13548 LC_ALL=C
|
cannam@154
|
13549 export LC_ALL
|
cannam@154
|
13550 LANGUAGE=C
|
cannam@154
|
13551 export LANGUAGE
|
cannam@154
|
13552
|
cannam@154
|
13553 # CDPATH.
|
cannam@154
|
13554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@154
|
13555
|
cannam@154
|
13556
|
cannam@154
|
13557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
|
cannam@154
|
13558 # ----------------------------------------
|
cannam@154
|
13559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
|
cannam@154
|
13560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
|
cannam@154
|
13561 # script with STATUS, using 1 if that was 0.
|
cannam@154
|
13562 as_fn_error ()
|
cannam@154
|
13563 {
|
cannam@154
|
13564 as_status=$1; test $as_status -eq 0 && as_status=1
|
cannam@154
|
13565 if test "$4"; then
|
cannam@154
|
13566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
cannam@154
|
13567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
|
cannam@154
|
13568 fi
|
cannam@154
|
13569 $as_echo "$as_me: error: $2" >&2
|
cannam@154
|
13570 as_fn_exit $as_status
|
cannam@154
|
13571 } # as_fn_error
|
cannam@154
|
13572
|
cannam@154
|
13573
|
cannam@154
|
13574 # as_fn_set_status STATUS
|
cannam@154
|
13575 # -----------------------
|
cannam@154
|
13576 # Set $? to STATUS, without forking.
|
cannam@154
|
13577 as_fn_set_status ()
|
cannam@154
|
13578 {
|
cannam@154
|
13579 return $1
|
cannam@154
|
13580 } # as_fn_set_status
|
cannam@154
|
13581
|
cannam@154
|
13582 # as_fn_exit STATUS
|
cannam@154
|
13583 # -----------------
|
cannam@154
|
13584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
cannam@154
|
13585 as_fn_exit ()
|
cannam@154
|
13586 {
|
cannam@154
|
13587 set +e
|
cannam@154
|
13588 as_fn_set_status $1
|
cannam@154
|
13589 exit $1
|
cannam@154
|
13590 } # as_fn_exit
|
cannam@154
|
13591
|
cannam@154
|
13592 # as_fn_unset VAR
|
cannam@154
|
13593 # ---------------
|
cannam@154
|
13594 # Portably unset VAR.
|
cannam@154
|
13595 as_fn_unset ()
|
cannam@154
|
13596 {
|
cannam@154
|
13597 { eval $1=; unset $1;}
|
cannam@154
|
13598 }
|
cannam@154
|
13599 as_unset=as_fn_unset
|
cannam@154
|
13600 # as_fn_append VAR VALUE
|
cannam@154
|
13601 # ----------------------
|
cannam@154
|
13602 # Append the text in VALUE to the end of the definition contained in VAR. Take
|
cannam@154
|
13603 # advantage of any shell optimizations that allow amortized linear growth over
|
cannam@154
|
13604 # repeated appends, instead of the typical quadratic growth present in naive
|
cannam@154
|
13605 # implementations.
|
cannam@154
|
13606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
|
cannam@154
|
13607 eval 'as_fn_append ()
|
cannam@154
|
13608 {
|
cannam@154
|
13609 eval $1+=\$2
|
cannam@154
|
13610 }'
|
cannam@154
|
13611 else
|
cannam@154
|
13612 as_fn_append ()
|
cannam@154
|
13613 {
|
cannam@154
|
13614 eval $1=\$$1\$2
|
cannam@154
|
13615 }
|
cannam@154
|
13616 fi # as_fn_append
|
cannam@154
|
13617
|
cannam@154
|
13618 # as_fn_arith ARG...
|
cannam@154
|
13619 # ------------------
|
cannam@154
|
13620 # Perform arithmetic evaluation on the ARGs, and store the result in the
|
cannam@154
|
13621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
|
cannam@154
|
13622 # must be portable across $(()) and expr.
|
cannam@154
|
13623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
cannam@154
|
13624 eval 'as_fn_arith ()
|
cannam@154
|
13625 {
|
cannam@154
|
13626 as_val=$(( $* ))
|
cannam@154
|
13627 }'
|
cannam@154
|
13628 else
|
cannam@154
|
13629 as_fn_arith ()
|
cannam@154
|
13630 {
|
cannam@154
|
13631 as_val=`expr "$@" || test $? -eq 1`
|
cannam@154
|
13632 }
|
cannam@154
|
13633 fi # as_fn_arith
|
cannam@154
|
13634
|
cannam@154
|
13635
|
cannam@154
|
13636 if expr a : '\(a\)' >/dev/null 2>&1 &&
|
cannam@154
|
13637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
cannam@154
|
13638 as_expr=expr
|
cannam@154
|
13639 else
|
cannam@154
|
13640 as_expr=false
|
cannam@154
|
13641 fi
|
cannam@154
|
13642
|
cannam@154
|
13643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
cannam@154
|
13644 as_basename=basename
|
cannam@154
|
13645 else
|
cannam@154
|
13646 as_basename=false
|
cannam@154
|
13647 fi
|
cannam@154
|
13648
|
cannam@154
|
13649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
cannam@154
|
13650 as_dirname=dirname
|
cannam@154
|
13651 else
|
cannam@154
|
13652 as_dirname=false
|
cannam@154
|
13653 fi
|
cannam@154
|
13654
|
cannam@154
|
13655 as_me=`$as_basename -- "$0" ||
|
cannam@154
|
13656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
cannam@154
|
13657 X"$0" : 'X\(//\)$' \| \
|
cannam@154
|
13658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
13659 $as_echo X/"$0" |
|
cannam@154
|
13660 sed '/^.*\/\([^/][^/]*\)\/*$/{
|
cannam@154
|
13661 s//\1/
|
cannam@154
|
13662 q
|
cannam@154
|
13663 }
|
cannam@154
|
13664 /^X\/\(\/\/\)$/{
|
cannam@154
|
13665 s//\1/
|
cannam@154
|
13666 q
|
cannam@154
|
13667 }
|
cannam@154
|
13668 /^X\/\(\/\).*/{
|
cannam@154
|
13669 s//\1/
|
cannam@154
|
13670 q
|
cannam@154
|
13671 }
|
cannam@154
|
13672 s/.*/./; q'`
|
cannam@154
|
13673
|
cannam@154
|
13674 # Avoid depending upon Character Ranges.
|
cannam@154
|
13675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
cannam@154
|
13676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
cannam@154
|
13677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
cannam@154
|
13678 as_cr_digits='0123456789'
|
cannam@154
|
13679 as_cr_alnum=$as_cr_Letters$as_cr_digits
|
cannam@154
|
13680
|
cannam@154
|
13681 ECHO_C= ECHO_N= ECHO_T=
|
cannam@154
|
13682 case `echo -n x` in #(((((
|
cannam@154
|
13683 -n*)
|
cannam@154
|
13684 case `echo 'xy\c'` in
|
cannam@154
|
13685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
cannam@154
|
13686 xy) ECHO_C='\c';;
|
cannam@154
|
13687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
|
cannam@154
|
13688 ECHO_T=' ';;
|
cannam@154
|
13689 esac;;
|
cannam@154
|
13690 *)
|
cannam@154
|
13691 ECHO_N='-n';;
|
cannam@154
|
13692 esac
|
cannam@154
|
13693
|
cannam@154
|
13694 rm -f conf$$ conf$$.exe conf$$.file
|
cannam@154
|
13695 if test -d conf$$.dir; then
|
cannam@154
|
13696 rm -f conf$$.dir/conf$$.file
|
cannam@154
|
13697 else
|
cannam@154
|
13698 rm -f conf$$.dir
|
cannam@154
|
13699 mkdir conf$$.dir 2>/dev/null
|
cannam@154
|
13700 fi
|
cannam@154
|
13701 if (echo >conf$$.file) 2>/dev/null; then
|
cannam@154
|
13702 if ln -s conf$$.file conf$$ 2>/dev/null; then
|
cannam@154
|
13703 as_ln_s='ln -s'
|
cannam@154
|
13704 # ... but there are two gotchas:
|
cannam@154
|
13705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
cannam@154
|
13706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
cannam@154
|
13707 # In both cases, we have to default to `cp -pR'.
|
cannam@154
|
13708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
cannam@154
|
13709 as_ln_s='cp -pR'
|
cannam@154
|
13710 elif ln conf$$.file conf$$ 2>/dev/null; then
|
cannam@154
|
13711 as_ln_s=ln
|
cannam@154
|
13712 else
|
cannam@154
|
13713 as_ln_s='cp -pR'
|
cannam@154
|
13714 fi
|
cannam@154
|
13715 else
|
cannam@154
|
13716 as_ln_s='cp -pR'
|
cannam@154
|
13717 fi
|
cannam@154
|
13718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
cannam@154
|
13719 rmdir conf$$.dir 2>/dev/null
|
cannam@154
|
13720
|
cannam@154
|
13721
|
cannam@154
|
13722 # as_fn_mkdir_p
|
cannam@154
|
13723 # -------------
|
cannam@154
|
13724 # Create "$as_dir" as a directory, including parents if necessary.
|
cannam@154
|
13725 as_fn_mkdir_p ()
|
cannam@154
|
13726 {
|
cannam@154
|
13727
|
cannam@154
|
13728 case $as_dir in #(
|
cannam@154
|
13729 -*) as_dir=./$as_dir;;
|
cannam@154
|
13730 esac
|
cannam@154
|
13731 test -d "$as_dir" || eval $as_mkdir_p || {
|
cannam@154
|
13732 as_dirs=
|
cannam@154
|
13733 while :; do
|
cannam@154
|
13734 case $as_dir in #(
|
cannam@154
|
13735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
|
cannam@154
|
13736 *) as_qdir=$as_dir;;
|
cannam@154
|
13737 esac
|
cannam@154
|
13738 as_dirs="'$as_qdir' $as_dirs"
|
cannam@154
|
13739 as_dir=`$as_dirname -- "$as_dir" ||
|
cannam@154
|
13740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
13741 X"$as_dir" : 'X\(//\)[^/]' \| \
|
cannam@154
|
13742 X"$as_dir" : 'X\(//\)$' \| \
|
cannam@154
|
13743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
13744 $as_echo X"$as_dir" |
|
cannam@154
|
13745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
13746 s//\1/
|
cannam@154
|
13747 q
|
cannam@154
|
13748 }
|
cannam@154
|
13749 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
13750 s//\1/
|
cannam@154
|
13751 q
|
cannam@154
|
13752 }
|
cannam@154
|
13753 /^X\(\/\/\)$/{
|
cannam@154
|
13754 s//\1/
|
cannam@154
|
13755 q
|
cannam@154
|
13756 }
|
cannam@154
|
13757 /^X\(\/\).*/{
|
cannam@154
|
13758 s//\1/
|
cannam@154
|
13759 q
|
cannam@154
|
13760 }
|
cannam@154
|
13761 s/.*/./; q'`
|
cannam@154
|
13762 test -d "$as_dir" && break
|
cannam@154
|
13763 done
|
cannam@154
|
13764 test -z "$as_dirs" || eval "mkdir $as_dirs"
|
cannam@154
|
13765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
|
cannam@154
|
13766
|
cannam@154
|
13767
|
cannam@154
|
13768 } # as_fn_mkdir_p
|
cannam@154
|
13769 if mkdir -p . 2>/dev/null; then
|
cannam@154
|
13770 as_mkdir_p='mkdir -p "$as_dir"'
|
cannam@154
|
13771 else
|
cannam@154
|
13772 test -d ./-p && rmdir ./-p
|
cannam@154
|
13773 as_mkdir_p=false
|
cannam@154
|
13774 fi
|
cannam@154
|
13775
|
cannam@154
|
13776
|
cannam@154
|
13777 # as_fn_executable_p FILE
|
cannam@154
|
13778 # -----------------------
|
cannam@154
|
13779 # Test if FILE is an executable regular file.
|
cannam@154
|
13780 as_fn_executable_p ()
|
cannam@154
|
13781 {
|
cannam@154
|
13782 test -f "$1" && test -x "$1"
|
cannam@154
|
13783 } # as_fn_executable_p
|
cannam@154
|
13784 as_test_x='test -x'
|
cannam@154
|
13785 as_executable_p=as_fn_executable_p
|
cannam@154
|
13786
|
cannam@154
|
13787 # Sed expression to map a string onto a valid CPP name.
|
cannam@154
|
13788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@154
|
13789
|
cannam@154
|
13790 # Sed expression to map a string onto a valid variable name.
|
cannam@154
|
13791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
cannam@154
|
13792
|
cannam@154
|
13793
|
cannam@154
|
13794 exec 6>&1
|
cannam@154
|
13795 ## ----------------------------------- ##
|
cannam@154
|
13796 ## Main body of $CONFIG_STATUS script. ##
|
cannam@154
|
13797 ## ----------------------------------- ##
|
cannam@154
|
13798 _ASEOF
|
cannam@154
|
13799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
|
cannam@154
|
13800
|
cannam@154
|
13801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
13802 # Save the log message, to keep $0 and so on meaningful, and to
|
cannam@154
|
13803 # report actual input values of CONFIG_FILES etc. instead of their
|
cannam@154
|
13804 # values after options handling.
|
cannam@154
|
13805 ac_log="
|
cannam@154
|
13806 This file was extended by opusfile $as_me 0.9, which was
|
cannam@154
|
13807 generated by GNU Autoconf 2.69. Invocation command line was
|
cannam@154
|
13808
|
cannam@154
|
13809 CONFIG_FILES = $CONFIG_FILES
|
cannam@154
|
13810 CONFIG_HEADERS = $CONFIG_HEADERS
|
cannam@154
|
13811 CONFIG_LINKS = $CONFIG_LINKS
|
cannam@154
|
13812 CONFIG_COMMANDS = $CONFIG_COMMANDS
|
cannam@154
|
13813 $ $0 $@
|
cannam@154
|
13814
|
cannam@154
|
13815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
cannam@154
|
13816 "
|
cannam@154
|
13817
|
cannam@154
|
13818 _ACEOF
|
cannam@154
|
13819
|
cannam@154
|
13820 case $ac_config_files in *"
|
cannam@154
|
13821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
|
cannam@154
|
13822 esac
|
cannam@154
|
13823
|
cannam@154
|
13824 case $ac_config_headers in *"
|
cannam@154
|
13825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
|
cannam@154
|
13826 esac
|
cannam@154
|
13827
|
cannam@154
|
13828
|
cannam@154
|
13829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
13830 # Files that config.status was made for.
|
cannam@154
|
13831 config_files="$ac_config_files"
|
cannam@154
|
13832 config_headers="$ac_config_headers"
|
cannam@154
|
13833 config_commands="$ac_config_commands"
|
cannam@154
|
13834
|
cannam@154
|
13835 _ACEOF
|
cannam@154
|
13836
|
cannam@154
|
13837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
13838 ac_cs_usage="\
|
cannam@154
|
13839 \`$as_me' instantiates files and other configuration actions
|
cannam@154
|
13840 from templates according to the current configuration. Unless the files
|
cannam@154
|
13841 and actions are specified as TAGs, all are instantiated by default.
|
cannam@154
|
13842
|
cannam@154
|
13843 Usage: $0 [OPTION]... [TAG]...
|
cannam@154
|
13844
|
cannam@154
|
13845 -h, --help print this help, then exit
|
cannam@154
|
13846 -V, --version print version number and configuration settings, then exit
|
cannam@154
|
13847 --config print configuration, then exit
|
cannam@154
|
13848 -q, --quiet, --silent
|
cannam@154
|
13849 do not print progress messages
|
cannam@154
|
13850 -d, --debug don't remove temporary files
|
cannam@154
|
13851 --recheck update $as_me by reconfiguring in the same conditions
|
cannam@154
|
13852 --file=FILE[:TEMPLATE]
|
cannam@154
|
13853 instantiate the configuration file FILE
|
cannam@154
|
13854 --header=FILE[:TEMPLATE]
|
cannam@154
|
13855 instantiate the configuration header FILE
|
cannam@154
|
13856
|
cannam@154
|
13857 Configuration files:
|
cannam@154
|
13858 $config_files
|
cannam@154
|
13859
|
cannam@154
|
13860 Configuration headers:
|
cannam@154
|
13861 $config_headers
|
cannam@154
|
13862
|
cannam@154
|
13863 Configuration commands:
|
cannam@154
|
13864 $config_commands
|
cannam@154
|
13865
|
cannam@154
|
13866 Report bugs to <opus@xiph.org>."
|
cannam@154
|
13867
|
cannam@154
|
13868 _ACEOF
|
cannam@154
|
13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
13870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
|
cannam@154
|
13871 ac_cs_version="\\
|
cannam@154
|
13872 opusfile config.status 0.9
|
cannam@154
|
13873 configured by $0, generated by GNU Autoconf 2.69,
|
cannam@154
|
13874 with options \\"\$ac_cs_config\\"
|
cannam@154
|
13875
|
cannam@154
|
13876 Copyright (C) 2012 Free Software Foundation, Inc.
|
cannam@154
|
13877 This config.status script is free software; the Free Software Foundation
|
cannam@154
|
13878 gives unlimited permission to copy, distribute and modify it."
|
cannam@154
|
13879
|
cannam@154
|
13880 ac_pwd='$ac_pwd'
|
cannam@154
|
13881 srcdir='$srcdir'
|
cannam@154
|
13882 INSTALL='$INSTALL'
|
cannam@154
|
13883 MKDIR_P='$MKDIR_P'
|
cannam@154
|
13884 AWK='$AWK'
|
cannam@154
|
13885 test -n "\$AWK" || AWK=awk
|
cannam@154
|
13886 _ACEOF
|
cannam@154
|
13887
|
cannam@154
|
13888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
13889 # The default lists apply if the user does not specify any file.
|
cannam@154
|
13890 ac_need_defaults=:
|
cannam@154
|
13891 while test $# != 0
|
cannam@154
|
13892 do
|
cannam@154
|
13893 case $1 in
|
cannam@154
|
13894 --*=?*)
|
cannam@154
|
13895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
cannam@154
|
13896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
cannam@154
|
13897 ac_shift=:
|
cannam@154
|
13898 ;;
|
cannam@154
|
13899 --*=)
|
cannam@154
|
13900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
cannam@154
|
13901 ac_optarg=
|
cannam@154
|
13902 ac_shift=:
|
cannam@154
|
13903 ;;
|
cannam@154
|
13904 *)
|
cannam@154
|
13905 ac_option=$1
|
cannam@154
|
13906 ac_optarg=$2
|
cannam@154
|
13907 ac_shift=shift
|
cannam@154
|
13908 ;;
|
cannam@154
|
13909 esac
|
cannam@154
|
13910
|
cannam@154
|
13911 case $ac_option in
|
cannam@154
|
13912 # Handling of the options.
|
cannam@154
|
13913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
cannam@154
|
13914 ac_cs_recheck=: ;;
|
cannam@154
|
13915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
cannam@154
|
13916 $as_echo "$ac_cs_version"; exit ;;
|
cannam@154
|
13917 --config | --confi | --conf | --con | --co | --c )
|
cannam@154
|
13918 $as_echo "$ac_cs_config"; exit ;;
|
cannam@154
|
13919 --debug | --debu | --deb | --de | --d | -d )
|
cannam@154
|
13920 debug=: ;;
|
cannam@154
|
13921 --file | --fil | --fi | --f )
|
cannam@154
|
13922 $ac_shift
|
cannam@154
|
13923 case $ac_optarg in
|
cannam@154
|
13924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@154
|
13925 '') as_fn_error $? "missing file argument" ;;
|
cannam@154
|
13926 esac
|
cannam@154
|
13927 as_fn_append CONFIG_FILES " '$ac_optarg'"
|
cannam@154
|
13928 ac_need_defaults=false;;
|
cannam@154
|
13929 --header | --heade | --head | --hea )
|
cannam@154
|
13930 $ac_shift
|
cannam@154
|
13931 case $ac_optarg in
|
cannam@154
|
13932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
cannam@154
|
13933 esac
|
cannam@154
|
13934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
|
cannam@154
|
13935 ac_need_defaults=false;;
|
cannam@154
|
13936 --he | --h)
|
cannam@154
|
13937 # Conflict between --help and --header
|
cannam@154
|
13938 as_fn_error $? "ambiguous option: \`$1'
|
cannam@154
|
13939 Try \`$0 --help' for more information.";;
|
cannam@154
|
13940 --help | --hel | -h )
|
cannam@154
|
13941 $as_echo "$ac_cs_usage"; exit ;;
|
cannam@154
|
13942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
cannam@154
|
13943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
cannam@154
|
13944 ac_cs_silent=: ;;
|
cannam@154
|
13945
|
cannam@154
|
13946 # This is an error.
|
cannam@154
|
13947 -*) as_fn_error $? "unrecognized option: \`$1'
|
cannam@154
|
13948 Try \`$0 --help' for more information." ;;
|
cannam@154
|
13949
|
cannam@154
|
13950 *) as_fn_append ac_config_targets " $1"
|
cannam@154
|
13951 ac_need_defaults=false ;;
|
cannam@154
|
13952
|
cannam@154
|
13953 esac
|
cannam@154
|
13954 shift
|
cannam@154
|
13955 done
|
cannam@154
|
13956
|
cannam@154
|
13957 ac_configure_extra_args=
|
cannam@154
|
13958
|
cannam@154
|
13959 if $ac_cs_silent; then
|
cannam@154
|
13960 exec 6>/dev/null
|
cannam@154
|
13961 ac_configure_extra_args="$ac_configure_extra_args --silent"
|
cannam@154
|
13962 fi
|
cannam@154
|
13963
|
cannam@154
|
13964 _ACEOF
|
cannam@154
|
13965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
13966 if \$ac_cs_recheck; then
|
cannam@154
|
13967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
cannam@154
|
13968 shift
|
cannam@154
|
13969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
|
cannam@154
|
13970 CONFIG_SHELL='$SHELL'
|
cannam@154
|
13971 export CONFIG_SHELL
|
cannam@154
|
13972 exec "\$@"
|
cannam@154
|
13973 fi
|
cannam@154
|
13974
|
cannam@154
|
13975 _ACEOF
|
cannam@154
|
13976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
13977 exec 5>>config.log
|
cannam@154
|
13978 {
|
cannam@154
|
13979 echo
|
cannam@154
|
13980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
cannam@154
|
13981 ## Running $as_me. ##
|
cannam@154
|
13982 _ASBOX
|
cannam@154
|
13983 $as_echo "$ac_log"
|
cannam@154
|
13984 } >&5
|
cannam@154
|
13985
|
cannam@154
|
13986 _ACEOF
|
cannam@154
|
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
13988 #
|
cannam@154
|
13989 # INIT-COMMANDS
|
cannam@154
|
13990 #
|
cannam@154
|
13991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
cannam@154
|
13992
|
cannam@154
|
13993
|
cannam@154
|
13994 # The HP-UX ksh and POSIX shell print the target directory to stdout
|
cannam@154
|
13995 # if CDPATH is set.
|
cannam@154
|
13996 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
|
cannam@154
|
13997
|
cannam@154
|
13998 sed_quote_subst='$sed_quote_subst'
|
cannam@154
|
13999 double_quote_subst='$double_quote_subst'
|
cannam@154
|
14000 delay_variable_subst='$delay_variable_subst'
|
cannam@154
|
14001 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14002 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14003 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14004 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14005 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14006 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14007 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14008 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14009 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14010 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14011 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14012 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14013 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14014 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14015 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14016 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14017 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14018 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14019 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14020 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14021 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14023 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14024 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14025 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14026 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14027 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14028 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14029 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14030 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14031 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14032 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14038 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14039 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14040 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14041 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14042 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14043 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14044 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14045 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14046 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14047 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14048 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14049 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14050 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14051 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14052 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14053 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14054 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14055 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14056 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14057 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14058 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14059 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"`'
|
cannam@154
|
14060 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14061 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14062 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14063 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14104 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14105 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14106 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14107 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14108 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14109 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14128 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14129 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
|
cannam@154
|
14136
|
cannam@154
|
14137 LTCC='$LTCC'
|
cannam@154
|
14138 LTCFLAGS='$LTCFLAGS'
|
cannam@154
|
14139 compiler='$compiler_DEFAULT'
|
cannam@154
|
14140
|
cannam@154
|
14141 # A function that is used when there is no print builtin or printf.
|
cannam@154
|
14142 func_fallback_echo ()
|
cannam@154
|
14143 {
|
cannam@154
|
14144 eval 'cat <<_LTECHO_EOF
|
cannam@154
|
14145 \$1
|
cannam@154
|
14146 _LTECHO_EOF'
|
cannam@154
|
14147 }
|
cannam@154
|
14148
|
cannam@154
|
14149 # Quote evaled strings.
|
cannam@154
|
14150 for var in SHELL \
|
cannam@154
|
14151 ECHO \
|
cannam@154
|
14152 PATH_SEPARATOR \
|
cannam@154
|
14153 SED \
|
cannam@154
|
14154 GREP \
|
cannam@154
|
14155 EGREP \
|
cannam@154
|
14156 FGREP \
|
cannam@154
|
14157 LD \
|
cannam@154
|
14158 NM \
|
cannam@154
|
14159 LN_S \
|
cannam@154
|
14160 lt_SP2NL \
|
cannam@154
|
14161 lt_NL2SP \
|
cannam@154
|
14162 reload_flag \
|
cannam@154
|
14163 OBJDUMP \
|
cannam@154
|
14164 deplibs_check_method \
|
cannam@154
|
14165 file_magic_cmd \
|
cannam@154
|
14166 file_magic_glob \
|
cannam@154
|
14167 want_nocaseglob \
|
cannam@154
|
14168 DLLTOOL \
|
cannam@154
|
14169 sharedlib_from_linklib_cmd \
|
cannam@154
|
14170 AR \
|
cannam@154
|
14171 AR_FLAGS \
|
cannam@154
|
14172 archiver_list_spec \
|
cannam@154
|
14173 STRIP \
|
cannam@154
|
14174 RANLIB \
|
cannam@154
|
14175 CC \
|
cannam@154
|
14176 CFLAGS \
|
cannam@154
|
14177 compiler \
|
cannam@154
|
14178 lt_cv_sys_global_symbol_pipe \
|
cannam@154
|
14179 lt_cv_sys_global_symbol_to_cdecl \
|
cannam@154
|
14180 lt_cv_sys_global_symbol_to_import \
|
cannam@154
|
14181 lt_cv_sys_global_symbol_to_c_name_address \
|
cannam@154
|
14182 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
|
cannam@154
|
14183 lt_cv_nm_interface \
|
cannam@154
|
14184 nm_file_list_spec \
|
cannam@154
|
14185 lt_cv_truncate_bin \
|
cannam@154
|
14186 lt_prog_compiler_no_builtin_flag \
|
cannam@154
|
14187 lt_prog_compiler_pic \
|
cannam@154
|
14188 lt_prog_compiler_wl \
|
cannam@154
|
14189 lt_prog_compiler_static \
|
cannam@154
|
14190 lt_cv_prog_compiler_c_o \
|
cannam@154
|
14191 need_locks \
|
cannam@154
|
14192 MANIFEST_TOOL \
|
cannam@154
|
14193 DSYMUTIL \
|
cannam@154
|
14194 NMEDIT \
|
cannam@154
|
14195 LIPO \
|
cannam@154
|
14196 OTOOL \
|
cannam@154
|
14197 OTOOL64 \
|
cannam@154
|
14198 shrext_cmds \
|
cannam@154
|
14199 export_dynamic_flag_spec \
|
cannam@154
|
14200 whole_archive_flag_spec \
|
cannam@154
|
14201 compiler_needs_object \
|
cannam@154
|
14202 with_gnu_ld \
|
cannam@154
|
14203 allow_undefined_flag \
|
cannam@154
|
14204 no_undefined_flag \
|
cannam@154
|
14205 hardcode_libdir_flag_spec \
|
cannam@154
|
14206 hardcode_libdir_separator \
|
cannam@154
|
14207 exclude_expsyms \
|
cannam@154
|
14208 include_expsyms \
|
cannam@154
|
14209 file_list_spec \
|
cannam@154
|
14210 variables_saved_for_relink \
|
cannam@154
|
14211 libname_spec \
|
cannam@154
|
14212 library_names_spec \
|
cannam@154
|
14213 soname_spec \
|
cannam@154
|
14214 install_override_mode \
|
cannam@154
|
14215 finish_eval \
|
cannam@154
|
14216 old_striplib \
|
cannam@154
|
14217 striplib; do
|
cannam@154
|
14218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
cannam@154
|
14219 *[\\\\\\\`\\"\\\$]*)
|
cannam@154
|
14220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
cannam@154
|
14221 ;;
|
cannam@154
|
14222 *)
|
cannam@154
|
14223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@154
|
14224 ;;
|
cannam@154
|
14225 esac
|
cannam@154
|
14226 done
|
cannam@154
|
14227
|
cannam@154
|
14228 # Double-quote double-evaled strings.
|
cannam@154
|
14229 for var in reload_cmds \
|
cannam@154
|
14230 old_postinstall_cmds \
|
cannam@154
|
14231 old_postuninstall_cmds \
|
cannam@154
|
14232 old_archive_cmds \
|
cannam@154
|
14233 extract_expsyms_cmds \
|
cannam@154
|
14234 old_archive_from_new_cmds \
|
cannam@154
|
14235 old_archive_from_expsyms_cmds \
|
cannam@154
|
14236 archive_cmds \
|
cannam@154
|
14237 archive_expsym_cmds \
|
cannam@154
|
14238 module_cmds \
|
cannam@154
|
14239 module_expsym_cmds \
|
cannam@154
|
14240 export_symbols_cmds \
|
cannam@154
|
14241 prelink_cmds \
|
cannam@154
|
14242 postlink_cmds \
|
cannam@154
|
14243 postinstall_cmds \
|
cannam@154
|
14244 postuninstall_cmds \
|
cannam@154
|
14245 finish_cmds \
|
cannam@154
|
14246 sys_lib_search_path_spec \
|
cannam@154
|
14247 configure_time_dlsearch_path \
|
cannam@154
|
14248 configure_time_lt_sys_library_path; do
|
cannam@154
|
14249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
|
cannam@154
|
14250 *[\\\\\\\`\\"\\\$]*)
|
cannam@154
|
14251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
|
cannam@154
|
14252 ;;
|
cannam@154
|
14253 *)
|
cannam@154
|
14254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
|
cannam@154
|
14255 ;;
|
cannam@154
|
14256 esac
|
cannam@154
|
14257 done
|
cannam@154
|
14258
|
cannam@154
|
14259 ac_aux_dir='$ac_aux_dir'
|
cannam@154
|
14260
|
cannam@154
|
14261 # See if we are running on zsh, and set the options that allow our
|
cannam@154
|
14262 # commands through without removal of \ escapes INIT.
|
cannam@154
|
14263 if test -n "\${ZSH_VERSION+set}"; then
|
cannam@154
|
14264 setopt NO_GLOB_SUBST
|
cannam@154
|
14265 fi
|
cannam@154
|
14266
|
cannam@154
|
14267
|
cannam@154
|
14268 PACKAGE='$PACKAGE'
|
cannam@154
|
14269 VERSION='$VERSION'
|
cannam@154
|
14270 RM='$RM'
|
cannam@154
|
14271 ofile='$ofile'
|
cannam@154
|
14272
|
cannam@154
|
14273
|
cannam@154
|
14274
|
cannam@154
|
14275
|
cannam@154
|
14276 _ACEOF
|
cannam@154
|
14277
|
cannam@154
|
14278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14279
|
cannam@154
|
14280 # Handling of arguments.
|
cannam@154
|
14281 for ac_config_target in $ac_config_targets
|
cannam@154
|
14282 do
|
cannam@154
|
14283 case $ac_config_target in
|
cannam@154
|
14284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
cannam@154
|
14285 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
cannam@154
|
14286 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
cannam@154
|
14287 "opusfile.pc") CONFIG_FILES="$CONFIG_FILES opusfile.pc" ;;
|
cannam@154
|
14288 "opusurl.pc") CONFIG_FILES="$CONFIG_FILES opusurl.pc" ;;
|
cannam@154
|
14289 "opusfile-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusfile-uninstalled.pc" ;;
|
cannam@154
|
14290 "opusurl-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES opusurl-uninstalled.pc" ;;
|
cannam@154
|
14291 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
|
cannam@154
|
14292 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
cannam@154
|
14293
|
cannam@154
|
14294 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
|
cannam@154
|
14295 esac
|
cannam@154
|
14296 done
|
cannam@154
|
14297
|
cannam@154
|
14298
|
cannam@154
|
14299 # If the user did not use the arguments to specify the items to instantiate,
|
cannam@154
|
14300 # then the envvar interface is used. Set only those that are not.
|
cannam@154
|
14301 # We use the long form for the default assignment because of an extremely
|
cannam@154
|
14302 # bizarre bug on SunOS 4.1.3.
|
cannam@154
|
14303 if $ac_need_defaults; then
|
cannam@154
|
14304 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
cannam@154
|
14305 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
cannam@154
|
14306 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
cannam@154
|
14307 fi
|
cannam@154
|
14308
|
cannam@154
|
14309 # Have a temporary directory for convenience. Make it in the build tree
|
cannam@154
|
14310 # simply because there is no reason against having it here, and in addition,
|
cannam@154
|
14311 # creating and moving files from /tmp can sometimes cause problems.
|
cannam@154
|
14312 # Hook for its removal unless debugging.
|
cannam@154
|
14313 # Note that there is a small window in which the directory will not be cleaned:
|
cannam@154
|
14314 # after its creation but before its name has been assigned to `$tmp'.
|
cannam@154
|
14315 $debug ||
|
cannam@154
|
14316 {
|
cannam@154
|
14317 tmp= ac_tmp=
|
cannam@154
|
14318 trap 'exit_status=$?
|
cannam@154
|
14319 : "${ac_tmp:=$tmp}"
|
cannam@154
|
14320 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
|
cannam@154
|
14321 ' 0
|
cannam@154
|
14322 trap 'as_fn_exit 1' 1 2 13 15
|
cannam@154
|
14323 }
|
cannam@154
|
14324 # Create a (secure) tmp directory for tmp files.
|
cannam@154
|
14325
|
cannam@154
|
14326 {
|
cannam@154
|
14327 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
cannam@154
|
14328 test -d "$tmp"
|
cannam@154
|
14329 } ||
|
cannam@154
|
14330 {
|
cannam@154
|
14331 tmp=./conf$$-$RANDOM
|
cannam@154
|
14332 (umask 077 && mkdir "$tmp")
|
cannam@154
|
14333 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
|
cannam@154
|
14334 ac_tmp=$tmp
|
cannam@154
|
14335
|
cannam@154
|
14336 # Set up the scripts for CONFIG_FILES section.
|
cannam@154
|
14337 # No need to generate them if there are no CONFIG_FILES.
|
cannam@154
|
14338 # This happens for instance with `./config.status config.h'.
|
cannam@154
|
14339 if test -n "$CONFIG_FILES"; then
|
cannam@154
|
14340
|
cannam@154
|
14341
|
cannam@154
|
14342 ac_cr=`echo X | tr X '\015'`
|
cannam@154
|
14343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
|
cannam@154
|
14344 # But we know of no other shell where ac_cr would be empty at this
|
cannam@154
|
14345 # point, so we can use a bashism as a fallback.
|
cannam@154
|
14346 if test "x$ac_cr" = x; then
|
cannam@154
|
14347 eval ac_cr=\$\'\\r\'
|
cannam@154
|
14348 fi
|
cannam@154
|
14349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
|
cannam@154
|
14350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
|
cannam@154
|
14351 ac_cs_awk_cr='\\r'
|
cannam@154
|
14352 else
|
cannam@154
|
14353 ac_cs_awk_cr=$ac_cr
|
cannam@154
|
14354 fi
|
cannam@154
|
14355
|
cannam@154
|
14356 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
|
cannam@154
|
14357 _ACEOF
|
cannam@154
|
14358
|
cannam@154
|
14359
|
cannam@154
|
14360 {
|
cannam@154
|
14361 echo "cat >conf$$subs.awk <<_ACEOF" &&
|
cannam@154
|
14362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
|
cannam@154
|
14363 echo "_ACEOF"
|
cannam@154
|
14364 } >conf$$subs.sh ||
|
cannam@154
|
14365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
cannam@154
|
14366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
|
cannam@154
|
14367 ac_delim='%!_!# '
|
cannam@154
|
14368 for ac_last_try in false false false false false :; do
|
cannam@154
|
14369 . ./conf$$subs.sh ||
|
cannam@154
|
14370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
cannam@154
|
14371
|
cannam@154
|
14372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
|
cannam@154
|
14373 if test $ac_delim_n = $ac_delim_num; then
|
cannam@154
|
14374 break
|
cannam@154
|
14375 elif $ac_last_try; then
|
cannam@154
|
14376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
|
cannam@154
|
14377 else
|
cannam@154
|
14378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
cannam@154
|
14379 fi
|
cannam@154
|
14380 done
|
cannam@154
|
14381 rm -f conf$$subs.sh
|
cannam@154
|
14382
|
cannam@154
|
14383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
14384 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
|
cannam@154
|
14385 _ACEOF
|
cannam@154
|
14386 sed -n '
|
cannam@154
|
14387 h
|
cannam@154
|
14388 s/^/S["/; s/!.*/"]=/
|
cannam@154
|
14389 p
|
cannam@154
|
14390 g
|
cannam@154
|
14391 s/^[^!]*!//
|
cannam@154
|
14392 :repl
|
cannam@154
|
14393 t repl
|
cannam@154
|
14394 s/'"$ac_delim"'$//
|
cannam@154
|
14395 t delim
|
cannam@154
|
14396 :nl
|
cannam@154
|
14397 h
|
cannam@154
|
14398 s/\(.\{148\}\)..*/\1/
|
cannam@154
|
14399 t more1
|
cannam@154
|
14400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
|
cannam@154
|
14401 p
|
cannam@154
|
14402 n
|
cannam@154
|
14403 b repl
|
cannam@154
|
14404 :more1
|
cannam@154
|
14405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
cannam@154
|
14406 p
|
cannam@154
|
14407 g
|
cannam@154
|
14408 s/.\{148\}//
|
cannam@154
|
14409 t nl
|
cannam@154
|
14410 :delim
|
cannam@154
|
14411 h
|
cannam@154
|
14412 s/\(.\{148\}\)..*/\1/
|
cannam@154
|
14413 t more2
|
cannam@154
|
14414 s/["\\]/\\&/g; s/^/"/; s/$/"/
|
cannam@154
|
14415 p
|
cannam@154
|
14416 b
|
cannam@154
|
14417 :more2
|
cannam@154
|
14418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
|
cannam@154
|
14419 p
|
cannam@154
|
14420 g
|
cannam@154
|
14421 s/.\{148\}//
|
cannam@154
|
14422 t delim
|
cannam@154
|
14423 ' <conf$$subs.awk | sed '
|
cannam@154
|
14424 /^[^""]/{
|
cannam@154
|
14425 N
|
cannam@154
|
14426 s/\n//
|
cannam@154
|
14427 }
|
cannam@154
|
14428 ' >>$CONFIG_STATUS || ac_write_fail=1
|
cannam@154
|
14429 rm -f conf$$subs.awk
|
cannam@154
|
14430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
14431 _ACAWK
|
cannam@154
|
14432 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
|
cannam@154
|
14433 for (key in S) S_is_set[key] = 1
|
cannam@154
|
14434 FS = ""
|
cannam@154
|
14435
|
cannam@154
|
14436 }
|
cannam@154
|
14437 {
|
cannam@154
|
14438 line = $ 0
|
cannam@154
|
14439 nfields = split(line, field, "@")
|
cannam@154
|
14440 substed = 0
|
cannam@154
|
14441 len = length(field[1])
|
cannam@154
|
14442 for (i = 2; i < nfields; i++) {
|
cannam@154
|
14443 key = field[i]
|
cannam@154
|
14444 keylen = length(key)
|
cannam@154
|
14445 if (S_is_set[key]) {
|
cannam@154
|
14446 value = S[key]
|
cannam@154
|
14447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
|
cannam@154
|
14448 len += length(value) + length(field[++i])
|
cannam@154
|
14449 substed = 1
|
cannam@154
|
14450 } else
|
cannam@154
|
14451 len += 1 + keylen
|
cannam@154
|
14452 }
|
cannam@154
|
14453
|
cannam@154
|
14454 print line
|
cannam@154
|
14455 }
|
cannam@154
|
14456
|
cannam@154
|
14457 _ACAWK
|
cannam@154
|
14458 _ACEOF
|
cannam@154
|
14459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
|
cannam@154
|
14461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
|
cannam@154
|
14462 else
|
cannam@154
|
14463 cat
|
cannam@154
|
14464 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
|
cannam@154
|
14465 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
|
cannam@154
|
14466 _ACEOF
|
cannam@154
|
14467
|
cannam@154
|
14468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
|
cannam@154
|
14469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
|
cannam@154
|
14470 # trailing colons and then remove the whole line if VPATH becomes empty
|
cannam@154
|
14471 # (actually we leave an empty line to preserve line numbers).
|
cannam@154
|
14472 if test "x$srcdir" = x.; then
|
cannam@154
|
14473 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
|
cannam@154
|
14474 h
|
cannam@154
|
14475 s///
|
cannam@154
|
14476 s/^/:/
|
cannam@154
|
14477 s/[ ]*$/:/
|
cannam@154
|
14478 s/:\$(srcdir):/:/g
|
cannam@154
|
14479 s/:\${srcdir}:/:/g
|
cannam@154
|
14480 s/:@srcdir@:/:/g
|
cannam@154
|
14481 s/^:*//
|
cannam@154
|
14482 s/:*$//
|
cannam@154
|
14483 x
|
cannam@154
|
14484 s/\(=[ ]*\).*/\1/
|
cannam@154
|
14485 G
|
cannam@154
|
14486 s/\n//
|
cannam@154
|
14487 s/^[^=]*=[ ]*$//
|
cannam@154
|
14488 }'
|
cannam@154
|
14489 fi
|
cannam@154
|
14490
|
cannam@154
|
14491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14492 fi # test -n "$CONFIG_FILES"
|
cannam@154
|
14493
|
cannam@154
|
14494 # Set up the scripts for CONFIG_HEADERS section.
|
cannam@154
|
14495 # No need to generate them if there are no CONFIG_HEADERS.
|
cannam@154
|
14496 # This happens for instance with `./config.status Makefile'.
|
cannam@154
|
14497 if test -n "$CONFIG_HEADERS"; then
|
cannam@154
|
14498 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
|
cannam@154
|
14499 BEGIN {
|
cannam@154
|
14500 _ACEOF
|
cannam@154
|
14501
|
cannam@154
|
14502 # Transform confdefs.h into an awk script `defines.awk', embedded as
|
cannam@154
|
14503 # here-document in config.status, that substitutes the proper values into
|
cannam@154
|
14504 # config.h.in to produce config.h.
|
cannam@154
|
14505
|
cannam@154
|
14506 # Create a delimiter string that does not exist in confdefs.h, to ease
|
cannam@154
|
14507 # handling of long lines.
|
cannam@154
|
14508 ac_delim='%!_!# '
|
cannam@154
|
14509 for ac_last_try in false false :; do
|
cannam@154
|
14510 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
|
cannam@154
|
14511 if test -z "$ac_tt"; then
|
cannam@154
|
14512 break
|
cannam@154
|
14513 elif $ac_last_try; then
|
cannam@154
|
14514 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
|
cannam@154
|
14515 else
|
cannam@154
|
14516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
cannam@154
|
14517 fi
|
cannam@154
|
14518 done
|
cannam@154
|
14519
|
cannam@154
|
14520 # For the awk script, D is an array of macro values keyed by name,
|
cannam@154
|
14521 # likewise P contains macro parameters if any. Preserve backslash
|
cannam@154
|
14522 # newline sequences.
|
cannam@154
|
14523
|
cannam@154
|
14524 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
|
cannam@154
|
14525 sed -n '
|
cannam@154
|
14526 s/.\{148\}/&'"$ac_delim"'/g
|
cannam@154
|
14527 t rset
|
cannam@154
|
14528 :rset
|
cannam@154
|
14529 s/^[ ]*#[ ]*define[ ][ ]*/ /
|
cannam@154
|
14530 t def
|
cannam@154
|
14531 d
|
cannam@154
|
14532 :def
|
cannam@154
|
14533 s/\\$//
|
cannam@154
|
14534 t bsnl
|
cannam@154
|
14535 s/["\\]/\\&/g
|
cannam@154
|
14536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
cannam@154
|
14537 D["\1"]=" \3"/p
|
cannam@154
|
14538 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
|
cannam@154
|
14539 d
|
cannam@154
|
14540 :bsnl
|
cannam@154
|
14541 s/["\\]/\\&/g
|
cannam@154
|
14542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
|
cannam@154
|
14543 D["\1"]=" \3\\\\\\n"\\/p
|
cannam@154
|
14544 t cont
|
cannam@154
|
14545 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
|
cannam@154
|
14546 t cont
|
cannam@154
|
14547 d
|
cannam@154
|
14548 :cont
|
cannam@154
|
14549 n
|
cannam@154
|
14550 s/.\{148\}/&'"$ac_delim"'/g
|
cannam@154
|
14551 t clear
|
cannam@154
|
14552 :clear
|
cannam@154
|
14553 s/\\$//
|
cannam@154
|
14554 t bsnlc
|
cannam@154
|
14555 s/["\\]/\\&/g; s/^/"/; s/$/"/p
|
cannam@154
|
14556 d
|
cannam@154
|
14557 :bsnlc
|
cannam@154
|
14558 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
|
cannam@154
|
14559 b cont
|
cannam@154
|
14560 ' <confdefs.h | sed '
|
cannam@154
|
14561 s/'"$ac_delim"'/"\\\
|
cannam@154
|
14562 "/g' >>$CONFIG_STATUS || ac_write_fail=1
|
cannam@154
|
14563
|
cannam@154
|
14564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
14565 for (key in D) D_is_set[key] = 1
|
cannam@154
|
14566 FS = ""
|
cannam@154
|
14567 }
|
cannam@154
|
14568 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
|
cannam@154
|
14569 line = \$ 0
|
cannam@154
|
14570 split(line, arg, " ")
|
cannam@154
|
14571 if (arg[1] == "#") {
|
cannam@154
|
14572 defundef = arg[2]
|
cannam@154
|
14573 mac1 = arg[3]
|
cannam@154
|
14574 } else {
|
cannam@154
|
14575 defundef = substr(arg[1], 2)
|
cannam@154
|
14576 mac1 = arg[2]
|
cannam@154
|
14577 }
|
cannam@154
|
14578 split(mac1, mac2, "(") #)
|
cannam@154
|
14579 macro = mac2[1]
|
cannam@154
|
14580 prefix = substr(line, 1, index(line, defundef) - 1)
|
cannam@154
|
14581 if (D_is_set[macro]) {
|
cannam@154
|
14582 # Preserve the white space surrounding the "#".
|
cannam@154
|
14583 print prefix "define", macro P[macro] D[macro]
|
cannam@154
|
14584 next
|
cannam@154
|
14585 } else {
|
cannam@154
|
14586 # Replace #undef with comments. This is necessary, for example,
|
cannam@154
|
14587 # in the case of _POSIX_SOURCE, which is predefined and required
|
cannam@154
|
14588 # on some systems where configure will not decide to define it.
|
cannam@154
|
14589 if (defundef == "undef") {
|
cannam@154
|
14590 print "/*", prefix defundef, macro, "*/"
|
cannam@154
|
14591 next
|
cannam@154
|
14592 }
|
cannam@154
|
14593 }
|
cannam@154
|
14594 }
|
cannam@154
|
14595 { print }
|
cannam@154
|
14596 _ACAWK
|
cannam@154
|
14597 _ACEOF
|
cannam@154
|
14598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14599 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
|
cannam@154
|
14600 fi # test -n "$CONFIG_HEADERS"
|
cannam@154
|
14601
|
cannam@154
|
14602
|
cannam@154
|
14603 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
|
cannam@154
|
14604 shift
|
cannam@154
|
14605 for ac_tag
|
cannam@154
|
14606 do
|
cannam@154
|
14607 case $ac_tag in
|
cannam@154
|
14608 :[FHLC]) ac_mode=$ac_tag; continue;;
|
cannam@154
|
14609 esac
|
cannam@154
|
14610 case $ac_mode$ac_tag in
|
cannam@154
|
14611 :[FHL]*:*);;
|
cannam@154
|
14612 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
|
cannam@154
|
14613 :[FH]-) ac_tag=-:-;;
|
cannam@154
|
14614 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
cannam@154
|
14615 esac
|
cannam@154
|
14616 ac_save_IFS=$IFS
|
cannam@154
|
14617 IFS=:
|
cannam@154
|
14618 set x $ac_tag
|
cannam@154
|
14619 IFS=$ac_save_IFS
|
cannam@154
|
14620 shift
|
cannam@154
|
14621 ac_file=$1
|
cannam@154
|
14622 shift
|
cannam@154
|
14623
|
cannam@154
|
14624 case $ac_mode in
|
cannam@154
|
14625 :L) ac_source=$1;;
|
cannam@154
|
14626 :[FH])
|
cannam@154
|
14627 ac_file_inputs=
|
cannam@154
|
14628 for ac_f
|
cannam@154
|
14629 do
|
cannam@154
|
14630 case $ac_f in
|
cannam@154
|
14631 -) ac_f="$ac_tmp/stdin";;
|
cannam@154
|
14632 *) # Look for the file first in the build tree, then in the source tree
|
cannam@154
|
14633 # (if the path is not absolute). The absolute path cannot be DOS-style,
|
cannam@154
|
14634 # because $ac_f cannot contain `:'.
|
cannam@154
|
14635 test -f "$ac_f" ||
|
cannam@154
|
14636 case $ac_f in
|
cannam@154
|
14637 [\\/$]*) false;;
|
cannam@154
|
14638 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
cannam@154
|
14639 esac ||
|
cannam@154
|
14640 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
|
cannam@154
|
14641 esac
|
cannam@154
|
14642 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
|
cannam@154
|
14643 as_fn_append ac_file_inputs " '$ac_f'"
|
cannam@154
|
14644 done
|
cannam@154
|
14645
|
cannam@154
|
14646 # Let's still pretend it is `configure' which instantiates (i.e., don't
|
cannam@154
|
14647 # use $as_me), people would be surprised to read:
|
cannam@154
|
14648 # /* config.h. Generated by config.status. */
|
cannam@154
|
14649 configure_input='Generated from '`
|
cannam@154
|
14650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
|
cannam@154
|
14651 `' by configure.'
|
cannam@154
|
14652 if test x"$ac_file" != x-; then
|
cannam@154
|
14653 configure_input="$ac_file. $configure_input"
|
cannam@154
|
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
|
cannam@154
|
14655 $as_echo "$as_me: creating $ac_file" >&6;}
|
cannam@154
|
14656 fi
|
cannam@154
|
14657 # Neutralize special characters interpreted by sed in replacement strings.
|
cannam@154
|
14658 case $configure_input in #(
|
cannam@154
|
14659 *\&* | *\|* | *\\* )
|
cannam@154
|
14660 ac_sed_conf_input=`$as_echo "$configure_input" |
|
cannam@154
|
14661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
|
cannam@154
|
14662 *) ac_sed_conf_input=$configure_input;;
|
cannam@154
|
14663 esac
|
cannam@154
|
14664
|
cannam@154
|
14665 case $ac_tag in
|
cannam@154
|
14666 *:-:* | *:-) cat >"$ac_tmp/stdin" \
|
cannam@154
|
14667 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
|
cannam@154
|
14668 esac
|
cannam@154
|
14669 ;;
|
cannam@154
|
14670 esac
|
cannam@154
|
14671
|
cannam@154
|
14672 ac_dir=`$as_dirname -- "$ac_file" ||
|
cannam@154
|
14673 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
14674 X"$ac_file" : 'X\(//\)[^/]' \| \
|
cannam@154
|
14675 X"$ac_file" : 'X\(//\)$' \| \
|
cannam@154
|
14676 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
14677 $as_echo X"$ac_file" |
|
cannam@154
|
14678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
14679 s//\1/
|
cannam@154
|
14680 q
|
cannam@154
|
14681 }
|
cannam@154
|
14682 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
14683 s//\1/
|
cannam@154
|
14684 q
|
cannam@154
|
14685 }
|
cannam@154
|
14686 /^X\(\/\/\)$/{
|
cannam@154
|
14687 s//\1/
|
cannam@154
|
14688 q
|
cannam@154
|
14689 }
|
cannam@154
|
14690 /^X\(\/\).*/{
|
cannam@154
|
14691 s//\1/
|
cannam@154
|
14692 q
|
cannam@154
|
14693 }
|
cannam@154
|
14694 s/.*/./; q'`
|
cannam@154
|
14695 as_dir="$ac_dir"; as_fn_mkdir_p
|
cannam@154
|
14696 ac_builddir=.
|
cannam@154
|
14697
|
cannam@154
|
14698 case "$ac_dir" in
|
cannam@154
|
14699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@154
|
14700 *)
|
cannam@154
|
14701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
|
cannam@154
|
14702 # A ".." for each directory in $ac_dir_suffix.
|
cannam@154
|
14703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
|
cannam@154
|
14704 case $ac_top_builddir_sub in
|
cannam@154
|
14705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
cannam@154
|
14706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
cannam@154
|
14707 esac ;;
|
cannam@154
|
14708 esac
|
cannam@154
|
14709 ac_abs_top_builddir=$ac_pwd
|
cannam@154
|
14710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
cannam@154
|
14711 # for backward compatibility:
|
cannam@154
|
14712 ac_top_builddir=$ac_top_build_prefix
|
cannam@154
|
14713
|
cannam@154
|
14714 case $srcdir in
|
cannam@154
|
14715 .) # We are building in place.
|
cannam@154
|
14716 ac_srcdir=.
|
cannam@154
|
14717 ac_top_srcdir=$ac_top_builddir_sub
|
cannam@154
|
14718 ac_abs_top_srcdir=$ac_pwd ;;
|
cannam@154
|
14719 [\\/]* | ?:[\\/]* ) # Absolute name.
|
cannam@154
|
14720 ac_srcdir=$srcdir$ac_dir_suffix;
|
cannam@154
|
14721 ac_top_srcdir=$srcdir
|
cannam@154
|
14722 ac_abs_top_srcdir=$srcdir ;;
|
cannam@154
|
14723 *) # Relative name.
|
cannam@154
|
14724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
cannam@154
|
14725 ac_top_srcdir=$ac_top_build_prefix$srcdir
|
cannam@154
|
14726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
cannam@154
|
14727 esac
|
cannam@154
|
14728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
cannam@154
|
14729
|
cannam@154
|
14730
|
cannam@154
|
14731 case $ac_mode in
|
cannam@154
|
14732 :F)
|
cannam@154
|
14733 #
|
cannam@154
|
14734 # CONFIG_FILE
|
cannam@154
|
14735 #
|
cannam@154
|
14736
|
cannam@154
|
14737 case $INSTALL in
|
cannam@154
|
14738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
cannam@154
|
14739 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
cannam@154
|
14740 esac
|
cannam@154
|
14741 ac_MKDIR_P=$MKDIR_P
|
cannam@154
|
14742 case $MKDIR_P in
|
cannam@154
|
14743 [\\/$]* | ?:[\\/]* ) ;;
|
cannam@154
|
14744 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
|
cannam@154
|
14745 esac
|
cannam@154
|
14746 _ACEOF
|
cannam@154
|
14747
|
cannam@154
|
14748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14749 # If the template does not know about datarootdir, expand it.
|
cannam@154
|
14750 # FIXME: This hack should be removed a few years after 2.60.
|
cannam@154
|
14751 ac_datarootdir_hack=; ac_datarootdir_seen=
|
cannam@154
|
14752 ac_sed_dataroot='
|
cannam@154
|
14753 /datarootdir/ {
|
cannam@154
|
14754 p
|
cannam@154
|
14755 q
|
cannam@154
|
14756 }
|
cannam@154
|
14757 /@datadir@/p
|
cannam@154
|
14758 /@docdir@/p
|
cannam@154
|
14759 /@infodir@/p
|
cannam@154
|
14760 /@localedir@/p
|
cannam@154
|
14761 /@mandir@/p'
|
cannam@154
|
14762 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
|
cannam@154
|
14763 *datarootdir*) ac_datarootdir_seen=yes;;
|
cannam@154
|
14764 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
cannam@154
|
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
cannam@154
|
14766 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
cannam@154
|
14767 _ACEOF
|
cannam@154
|
14768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
14769 ac_datarootdir_hack='
|
cannam@154
|
14770 s&@datadir@&$datadir&g
|
cannam@154
|
14771 s&@docdir@&$docdir&g
|
cannam@154
|
14772 s&@infodir@&$infodir&g
|
cannam@154
|
14773 s&@localedir@&$localedir&g
|
cannam@154
|
14774 s&@mandir@&$mandir&g
|
cannam@154
|
14775 s&\\\${datarootdir}&$datarootdir&g' ;;
|
cannam@154
|
14776 esac
|
cannam@154
|
14777 _ACEOF
|
cannam@154
|
14778
|
cannam@154
|
14779 # Neutralize VPATH when `$srcdir' = `.'.
|
cannam@154
|
14780 # Shell code in configure.ac might set extrasub.
|
cannam@154
|
14781 # FIXME: do we really want to maintain this feature?
|
cannam@154
|
14782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
|
cannam@154
|
14783 ac_sed_extra="$ac_vpsub
|
cannam@154
|
14784 $extrasub
|
cannam@154
|
14785 _ACEOF
|
cannam@154
|
14786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
|
cannam@154
|
14787 :t
|
cannam@154
|
14788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
cannam@154
|
14789 s|@configure_input@|$ac_sed_conf_input|;t t
|
cannam@154
|
14790 s&@top_builddir@&$ac_top_builddir_sub&;t t
|
cannam@154
|
14791 s&@top_build_prefix@&$ac_top_build_prefix&;t t
|
cannam@154
|
14792 s&@srcdir@&$ac_srcdir&;t t
|
cannam@154
|
14793 s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
cannam@154
|
14794 s&@top_srcdir@&$ac_top_srcdir&;t t
|
cannam@154
|
14795 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
cannam@154
|
14796 s&@builddir@&$ac_builddir&;t t
|
cannam@154
|
14797 s&@abs_builddir@&$ac_abs_builddir&;t t
|
cannam@154
|
14798 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
cannam@154
|
14799 s&@INSTALL@&$ac_INSTALL&;t t
|
cannam@154
|
14800 s&@MKDIR_P@&$ac_MKDIR_P&;t t
|
cannam@154
|
14801 $ac_datarootdir_hack
|
cannam@154
|
14802 "
|
cannam@154
|
14803 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
|
cannam@154
|
14804 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
cannam@154
|
14805
|
cannam@154
|
14806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
cannam@154
|
14807 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
|
cannam@154
|
14808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
|
cannam@154
|
14809 "$ac_tmp/out"`; test -z "$ac_out"; } &&
|
cannam@154
|
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
cannam@154
|
14811 which seems to be undefined. Please make sure it is defined" >&5
|
cannam@154
|
14812 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
cannam@154
|
14813 which seems to be undefined. Please make sure it is defined" >&2;}
|
cannam@154
|
14814
|
cannam@154
|
14815 rm -f "$ac_tmp/stdin"
|
cannam@154
|
14816 case $ac_file in
|
cannam@154
|
14817 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
|
cannam@154
|
14818 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
|
cannam@154
|
14819 esac \
|
cannam@154
|
14820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
cannam@154
|
14821 ;;
|
cannam@154
|
14822 :H)
|
cannam@154
|
14823 #
|
cannam@154
|
14824 # CONFIG_HEADER
|
cannam@154
|
14825 #
|
cannam@154
|
14826 if test x"$ac_file" != x-; then
|
cannam@154
|
14827 {
|
cannam@154
|
14828 $as_echo "/* $configure_input */" \
|
cannam@154
|
14829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
|
cannam@154
|
14830 } >"$ac_tmp/config.h" \
|
cannam@154
|
14831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
cannam@154
|
14832 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
|
cannam@154
|
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
|
cannam@154
|
14834 $as_echo "$as_me: $ac_file is unchanged" >&6;}
|
cannam@154
|
14835 else
|
cannam@154
|
14836 rm -f "$ac_file"
|
cannam@154
|
14837 mv "$ac_tmp/config.h" "$ac_file" \
|
cannam@154
|
14838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
|
cannam@154
|
14839 fi
|
cannam@154
|
14840 else
|
cannam@154
|
14841 $as_echo "/* $configure_input */" \
|
cannam@154
|
14842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
|
cannam@154
|
14843 || as_fn_error $? "could not create -" "$LINENO" 5
|
cannam@154
|
14844 fi
|
cannam@154
|
14845 # Compute "$ac_file"'s index in $config_headers.
|
cannam@154
|
14846 _am_arg="$ac_file"
|
cannam@154
|
14847 _am_stamp_count=1
|
cannam@154
|
14848 for _am_header in $config_headers :; do
|
cannam@154
|
14849 case $_am_header in
|
cannam@154
|
14850 $_am_arg | $_am_arg:* )
|
cannam@154
|
14851 break ;;
|
cannam@154
|
14852 * )
|
cannam@154
|
14853 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
cannam@154
|
14854 esac
|
cannam@154
|
14855 done
|
cannam@154
|
14856 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
|
cannam@154
|
14857 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
14858 X"$_am_arg" : 'X\(//\)[^/]' \| \
|
cannam@154
|
14859 X"$_am_arg" : 'X\(//\)$' \| \
|
cannam@154
|
14860 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
14861 $as_echo X"$_am_arg" |
|
cannam@154
|
14862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
14863 s//\1/
|
cannam@154
|
14864 q
|
cannam@154
|
14865 }
|
cannam@154
|
14866 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
14867 s//\1/
|
cannam@154
|
14868 q
|
cannam@154
|
14869 }
|
cannam@154
|
14870 /^X\(\/\/\)$/{
|
cannam@154
|
14871 s//\1/
|
cannam@154
|
14872 q
|
cannam@154
|
14873 }
|
cannam@154
|
14874 /^X\(\/\).*/{
|
cannam@154
|
14875 s//\1/
|
cannam@154
|
14876 q
|
cannam@154
|
14877 }
|
cannam@154
|
14878 s/.*/./; q'`/stamp-h$_am_stamp_count
|
cannam@154
|
14879 ;;
|
cannam@154
|
14880
|
cannam@154
|
14881 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
|
cannam@154
|
14882 $as_echo "$as_me: executing $ac_file commands" >&6;}
|
cannam@154
|
14883 ;;
|
cannam@154
|
14884 esac
|
cannam@154
|
14885
|
cannam@154
|
14886
|
cannam@154
|
14887 case $ac_file$ac_mode in
|
cannam@154
|
14888 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
|
cannam@154
|
14889 # Older Autoconf quotes --file arguments for eval, but not when files
|
cannam@154
|
14890 # are listed without --file. Let's play safe and only enable the eval
|
cannam@154
|
14891 # if we detect the quoting.
|
cannam@154
|
14892 case $CONFIG_FILES in
|
cannam@154
|
14893 *\'*) eval set x "$CONFIG_FILES" ;;
|
cannam@154
|
14894 *) set x $CONFIG_FILES ;;
|
cannam@154
|
14895 esac
|
cannam@154
|
14896 shift
|
cannam@154
|
14897 for mf
|
cannam@154
|
14898 do
|
cannam@154
|
14899 # Strip MF so we end up with the name of the file.
|
cannam@154
|
14900 mf=`echo "$mf" | sed -e 's/:.*$//'`
|
cannam@154
|
14901 # Check whether this is an Automake generated Makefile or not.
|
cannam@154
|
14902 # We used to match only the files named 'Makefile.in', but
|
cannam@154
|
14903 # some people rename them; so instead we look at the file content.
|
cannam@154
|
14904 # Grep'ing the first line is not enough: some people post-process
|
cannam@154
|
14905 # each Makefile.in and add a new line on top of each file to say so.
|
cannam@154
|
14906 # Grep'ing the whole file is not good either: AIX grep has a line
|
cannam@154
|
14907 # limit of 2048, but all sed's we know have understand at least 4000.
|
cannam@154
|
14908 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
cannam@154
|
14909 dirpart=`$as_dirname -- "$mf" ||
|
cannam@154
|
14910 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
14911 X"$mf" : 'X\(//\)[^/]' \| \
|
cannam@154
|
14912 X"$mf" : 'X\(//\)$' \| \
|
cannam@154
|
14913 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
14914 $as_echo X"$mf" |
|
cannam@154
|
14915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
14916 s//\1/
|
cannam@154
|
14917 q
|
cannam@154
|
14918 }
|
cannam@154
|
14919 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
14920 s//\1/
|
cannam@154
|
14921 q
|
cannam@154
|
14922 }
|
cannam@154
|
14923 /^X\(\/\/\)$/{
|
cannam@154
|
14924 s//\1/
|
cannam@154
|
14925 q
|
cannam@154
|
14926 }
|
cannam@154
|
14927 /^X\(\/\).*/{
|
cannam@154
|
14928 s//\1/
|
cannam@154
|
14929 q
|
cannam@154
|
14930 }
|
cannam@154
|
14931 s/.*/./; q'`
|
cannam@154
|
14932 else
|
cannam@154
|
14933 continue
|
cannam@154
|
14934 fi
|
cannam@154
|
14935 # Extract the definition of DEPDIR, am__include, and am__quote
|
cannam@154
|
14936 # from the Makefile without running 'make'.
|
cannam@154
|
14937 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
cannam@154
|
14938 test -z "$DEPDIR" && continue
|
cannam@154
|
14939 am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
cannam@154
|
14940 test -z "$am__include" && continue
|
cannam@154
|
14941 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
cannam@154
|
14942 # Find all dependency output files, they are included files with
|
cannam@154
|
14943 # $(DEPDIR) in their names. We invoke sed twice because it is the
|
cannam@154
|
14944 # simplest approach to changing $(DEPDIR) to its actual value in the
|
cannam@154
|
14945 # expansion.
|
cannam@154
|
14946 for file in `sed -n "
|
cannam@154
|
14947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
cannam@154
|
14948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
cannam@154
|
14949 # Make sure the directory exists.
|
cannam@154
|
14950 test -f "$dirpart/$file" && continue
|
cannam@154
|
14951 fdir=`$as_dirname -- "$file" ||
|
cannam@154
|
14952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
cannam@154
|
14953 X"$file" : 'X\(//\)[^/]' \| \
|
cannam@154
|
14954 X"$file" : 'X\(//\)$' \| \
|
cannam@154
|
14955 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
|
cannam@154
|
14956 $as_echo X"$file" |
|
cannam@154
|
14957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
cannam@154
|
14958 s//\1/
|
cannam@154
|
14959 q
|
cannam@154
|
14960 }
|
cannam@154
|
14961 /^X\(\/\/\)[^/].*/{
|
cannam@154
|
14962 s//\1/
|
cannam@154
|
14963 q
|
cannam@154
|
14964 }
|
cannam@154
|
14965 /^X\(\/\/\)$/{
|
cannam@154
|
14966 s//\1/
|
cannam@154
|
14967 q
|
cannam@154
|
14968 }
|
cannam@154
|
14969 /^X\(\/\).*/{
|
cannam@154
|
14970 s//\1/
|
cannam@154
|
14971 q
|
cannam@154
|
14972 }
|
cannam@154
|
14973 s/.*/./; q'`
|
cannam@154
|
14974 as_dir=$dirpart/$fdir; as_fn_mkdir_p
|
cannam@154
|
14975 # echo "creating $dirpart/$file"
|
cannam@154
|
14976 echo '# dummy' > "$dirpart/$file"
|
cannam@154
|
14977 done
|
cannam@154
|
14978 done
|
cannam@154
|
14979 }
|
cannam@154
|
14980 ;;
|
cannam@154
|
14981 "libtool":C)
|
cannam@154
|
14982
|
cannam@154
|
14983 # See if we are running on zsh, and set the options that allow our
|
cannam@154
|
14984 # commands through without removal of \ escapes.
|
cannam@154
|
14985 if test -n "${ZSH_VERSION+set}"; then
|
cannam@154
|
14986 setopt NO_GLOB_SUBST
|
cannam@154
|
14987 fi
|
cannam@154
|
14988
|
cannam@154
|
14989 cfgfile=${ofile}T
|
cannam@154
|
14990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
|
cannam@154
|
14991 $RM "$cfgfile"
|
cannam@154
|
14992
|
cannam@154
|
14993 cat <<_LT_EOF >> "$cfgfile"
|
cannam@154
|
14994 #! $SHELL
|
cannam@154
|
14995 # Generated automatically by $as_me ($PACKAGE) $VERSION
|
cannam@154
|
14996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
|
cannam@154
|
14997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
|
cannam@154
|
14998
|
cannam@154
|
14999 # Provide generalized library-building support services.
|
cannam@154
|
15000 # Written by Gordon Matzigkeit, 1996
|
cannam@154
|
15001
|
cannam@154
|
15002 # Copyright (C) 2014 Free Software Foundation, Inc.
|
cannam@154
|
15003 # This is free software; see the source for copying conditions. There is NO
|
cannam@154
|
15004 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
cannam@154
|
15005
|
cannam@154
|
15006 # GNU Libtool is free software; you can redistribute it and/or modify
|
cannam@154
|
15007 # it under the terms of the GNU General Public License as published by
|
cannam@154
|
15008 # the Free Software Foundation; either version 2 of of the License, or
|
cannam@154
|
15009 # (at your option) any later version.
|
cannam@154
|
15010 #
|
cannam@154
|
15011 # As a special exception to the GNU General Public License, if you
|
cannam@154
|
15012 # distribute this file as part of a program or library that is built
|
cannam@154
|
15013 # using GNU Libtool, you may include this file under the same
|
cannam@154
|
15014 # distribution terms that you use for the rest of that program.
|
cannam@154
|
15015 #
|
cannam@154
|
15016 # GNU Libtool is distributed in the hope that it will be useful, but
|
cannam@154
|
15017 # WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@154
|
15018 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@154
|
15019 # GNU General Public License for more details.
|
cannam@154
|
15020 #
|
cannam@154
|
15021 # You should have received a copy of the GNU General Public License
|
cannam@154
|
15022 # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
cannam@154
|
15023
|
cannam@154
|
15024
|
cannam@154
|
15025 # The names of the tagged configurations supported by this script.
|
cannam@154
|
15026 available_tags=''
|
cannam@154
|
15027
|
cannam@154
|
15028 # Configured defaults for sys_lib_dlsearch_path munging.
|
cannam@154
|
15029 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
|
cannam@154
|
15030
|
cannam@154
|
15031 # ### BEGIN LIBTOOL CONFIG
|
cannam@154
|
15032
|
cannam@154
|
15033 # Which release of libtool.m4 was used?
|
cannam@154
|
15034 macro_version=$macro_version
|
cannam@154
|
15035 macro_revision=$macro_revision
|
cannam@154
|
15036
|
cannam@154
|
15037 # Whether or not to build shared libraries.
|
cannam@154
|
15038 build_libtool_libs=$enable_shared
|
cannam@154
|
15039
|
cannam@154
|
15040 # Whether or not to build static libraries.
|
cannam@154
|
15041 build_old_libs=$enable_static
|
cannam@154
|
15042
|
cannam@154
|
15043 # What type of objects to build.
|
cannam@154
|
15044 pic_mode=$pic_mode
|
cannam@154
|
15045
|
cannam@154
|
15046 # Whether or not to optimize for fast installation.
|
cannam@154
|
15047 fast_install=$enable_fast_install
|
cannam@154
|
15048
|
cannam@154
|
15049 # Shared archive member basename,for filename based shared library versioning on AIX.
|
cannam@154
|
15050 shared_archive_member_spec=$shared_archive_member_spec
|
cannam@154
|
15051
|
cannam@154
|
15052 # Shell to use when invoking shell scripts.
|
cannam@154
|
15053 SHELL=$lt_SHELL
|
cannam@154
|
15054
|
cannam@154
|
15055 # An echo program that protects backslashes.
|
cannam@154
|
15056 ECHO=$lt_ECHO
|
cannam@154
|
15057
|
cannam@154
|
15058 # The PATH separator for the build system.
|
cannam@154
|
15059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
|
cannam@154
|
15060
|
cannam@154
|
15061 # The host system.
|
cannam@154
|
15062 host_alias=$host_alias
|
cannam@154
|
15063 host=$host
|
cannam@154
|
15064 host_os=$host_os
|
cannam@154
|
15065
|
cannam@154
|
15066 # The build system.
|
cannam@154
|
15067 build_alias=$build_alias
|
cannam@154
|
15068 build=$build
|
cannam@154
|
15069 build_os=$build_os
|
cannam@154
|
15070
|
cannam@154
|
15071 # A sed program that does not truncate output.
|
cannam@154
|
15072 SED=$lt_SED
|
cannam@154
|
15073
|
cannam@154
|
15074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
|
cannam@154
|
15075 Xsed="\$SED -e 1s/^X//"
|
cannam@154
|
15076
|
cannam@154
|
15077 # A grep program that handles long lines.
|
cannam@154
|
15078 GREP=$lt_GREP
|
cannam@154
|
15079
|
cannam@154
|
15080 # An ERE matcher.
|
cannam@154
|
15081 EGREP=$lt_EGREP
|
cannam@154
|
15082
|
cannam@154
|
15083 # A literal string matcher.
|
cannam@154
|
15084 FGREP=$lt_FGREP
|
cannam@154
|
15085
|
cannam@154
|
15086 # A BSD- or MS-compatible name lister.
|
cannam@154
|
15087 NM=$lt_NM
|
cannam@154
|
15088
|
cannam@154
|
15089 # Whether we need soft or hard links.
|
cannam@154
|
15090 LN_S=$lt_LN_S
|
cannam@154
|
15091
|
cannam@154
|
15092 # What is the maximum length of a command?
|
cannam@154
|
15093 max_cmd_len=$max_cmd_len
|
cannam@154
|
15094
|
cannam@154
|
15095 # Object file suffix (normally "o").
|
cannam@154
|
15096 objext=$ac_objext
|
cannam@154
|
15097
|
cannam@154
|
15098 # Executable file suffix (normally "").
|
cannam@154
|
15099 exeext=$exeext
|
cannam@154
|
15100
|
cannam@154
|
15101 # whether the shell understands "unset".
|
cannam@154
|
15102 lt_unset=$lt_unset
|
cannam@154
|
15103
|
cannam@154
|
15104 # turn spaces into newlines.
|
cannam@154
|
15105 SP2NL=$lt_lt_SP2NL
|
cannam@154
|
15106
|
cannam@154
|
15107 # turn newlines into spaces.
|
cannam@154
|
15108 NL2SP=$lt_lt_NL2SP
|
cannam@154
|
15109
|
cannam@154
|
15110 # convert \$build file names to \$host format.
|
cannam@154
|
15111 to_host_file_cmd=$lt_cv_to_host_file_cmd
|
cannam@154
|
15112
|
cannam@154
|
15113 # convert \$build files to toolchain format.
|
cannam@154
|
15114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
|
cannam@154
|
15115
|
cannam@154
|
15116 # An object symbol dumper.
|
cannam@154
|
15117 OBJDUMP=$lt_OBJDUMP
|
cannam@154
|
15118
|
cannam@154
|
15119 # Method to check whether dependent libraries are shared objects.
|
cannam@154
|
15120 deplibs_check_method=$lt_deplibs_check_method
|
cannam@154
|
15121
|
cannam@154
|
15122 # Command to use when deplibs_check_method = "file_magic".
|
cannam@154
|
15123 file_magic_cmd=$lt_file_magic_cmd
|
cannam@154
|
15124
|
cannam@154
|
15125 # How to find potential files when deplibs_check_method = "file_magic".
|
cannam@154
|
15126 file_magic_glob=$lt_file_magic_glob
|
cannam@154
|
15127
|
cannam@154
|
15128 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
|
cannam@154
|
15129 want_nocaseglob=$lt_want_nocaseglob
|
cannam@154
|
15130
|
cannam@154
|
15131 # DLL creation program.
|
cannam@154
|
15132 DLLTOOL=$lt_DLLTOOL
|
cannam@154
|
15133
|
cannam@154
|
15134 # Command to associate shared and link libraries.
|
cannam@154
|
15135 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
|
cannam@154
|
15136
|
cannam@154
|
15137 # The archiver.
|
cannam@154
|
15138 AR=$lt_AR
|
cannam@154
|
15139
|
cannam@154
|
15140 # Flags to create an archive.
|
cannam@154
|
15141 AR_FLAGS=$lt_AR_FLAGS
|
cannam@154
|
15142
|
cannam@154
|
15143 # How to feed a file listing to the archiver.
|
cannam@154
|
15144 archiver_list_spec=$lt_archiver_list_spec
|
cannam@154
|
15145
|
cannam@154
|
15146 # A symbol stripping program.
|
cannam@154
|
15147 STRIP=$lt_STRIP
|
cannam@154
|
15148
|
cannam@154
|
15149 # Commands used to install an old-style archive.
|
cannam@154
|
15150 RANLIB=$lt_RANLIB
|
cannam@154
|
15151 old_postinstall_cmds=$lt_old_postinstall_cmds
|
cannam@154
|
15152 old_postuninstall_cmds=$lt_old_postuninstall_cmds
|
cannam@154
|
15153
|
cannam@154
|
15154 # Whether to use a lock for old archive extraction.
|
cannam@154
|
15155 lock_old_archive_extraction=$lock_old_archive_extraction
|
cannam@154
|
15156
|
cannam@154
|
15157 # A C compiler.
|
cannam@154
|
15158 LTCC=$lt_CC
|
cannam@154
|
15159
|
cannam@154
|
15160 # LTCC compiler flags.
|
cannam@154
|
15161 LTCFLAGS=$lt_CFLAGS
|
cannam@154
|
15162
|
cannam@154
|
15163 # Take the output of nm and produce a listing of raw symbols and C names.
|
cannam@154
|
15164 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
|
cannam@154
|
15165
|
cannam@154
|
15166 # Transform the output of nm in a proper C declaration.
|
cannam@154
|
15167 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
|
cannam@154
|
15168
|
cannam@154
|
15169 # Transform the output of nm into a list of symbols to manually relocate.
|
cannam@154
|
15170 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
|
cannam@154
|
15171
|
cannam@154
|
15172 # Transform the output of nm in a C name address pair.
|
cannam@154
|
15173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
|
cannam@154
|
15174
|
cannam@154
|
15175 # Transform the output of nm in a C name address pair when lib prefix is needed.
|
cannam@154
|
15176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
|
cannam@154
|
15177
|
cannam@154
|
15178 # The name lister interface.
|
cannam@154
|
15179 nm_interface=$lt_lt_cv_nm_interface
|
cannam@154
|
15180
|
cannam@154
|
15181 # Specify filename containing input files for \$NM.
|
cannam@154
|
15182 nm_file_list_spec=$lt_nm_file_list_spec
|
cannam@154
|
15183
|
cannam@154
|
15184 # The root where to search for dependent libraries,and where our libraries should be installed.
|
cannam@154
|
15185 lt_sysroot=$lt_sysroot
|
cannam@154
|
15186
|
cannam@154
|
15187 # Command to truncate a binary pipe.
|
cannam@154
|
15188 lt_truncate_bin=$lt_lt_cv_truncate_bin
|
cannam@154
|
15189
|
cannam@154
|
15190 # The name of the directory that contains temporary libtool files.
|
cannam@154
|
15191 objdir=$objdir
|
cannam@154
|
15192
|
cannam@154
|
15193 # Used to examine libraries when file_magic_cmd begins with "file".
|
cannam@154
|
15194 MAGIC_CMD=$MAGIC_CMD
|
cannam@154
|
15195
|
cannam@154
|
15196 # Must we lock files when doing compilation?
|
cannam@154
|
15197 need_locks=$lt_need_locks
|
cannam@154
|
15198
|
cannam@154
|
15199 # Manifest tool.
|
cannam@154
|
15200 MANIFEST_TOOL=$lt_MANIFEST_TOOL
|
cannam@154
|
15201
|
cannam@154
|
15202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
|
cannam@154
|
15203 DSYMUTIL=$lt_DSYMUTIL
|
cannam@154
|
15204
|
cannam@154
|
15205 # Tool to change global to local symbols on Mac OS X.
|
cannam@154
|
15206 NMEDIT=$lt_NMEDIT
|
cannam@154
|
15207
|
cannam@154
|
15208 # Tool to manipulate fat objects and archives on Mac OS X.
|
cannam@154
|
15209 LIPO=$lt_LIPO
|
cannam@154
|
15210
|
cannam@154
|
15211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
|
cannam@154
|
15212 OTOOL=$lt_OTOOL
|
cannam@154
|
15213
|
cannam@154
|
15214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
|
cannam@154
|
15215 OTOOL64=$lt_OTOOL64
|
cannam@154
|
15216
|
cannam@154
|
15217 # Old archive suffix (normally "a").
|
cannam@154
|
15218 libext=$libext
|
cannam@154
|
15219
|
cannam@154
|
15220 # Shared library suffix (normally ".so").
|
cannam@154
|
15221 shrext_cmds=$lt_shrext_cmds
|
cannam@154
|
15222
|
cannam@154
|
15223 # The commands to extract the exported symbol list from a shared archive.
|
cannam@154
|
15224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
|
cannam@154
|
15225
|
cannam@154
|
15226 # Variables whose values should be saved in libtool wrapper scripts and
|
cannam@154
|
15227 # restored at link time.
|
cannam@154
|
15228 variables_saved_for_relink=$lt_variables_saved_for_relink
|
cannam@154
|
15229
|
cannam@154
|
15230 # Do we need the "lib" prefix for modules?
|
cannam@154
|
15231 need_lib_prefix=$need_lib_prefix
|
cannam@154
|
15232
|
cannam@154
|
15233 # Do we need a version for libraries?
|
cannam@154
|
15234 need_version=$need_version
|
cannam@154
|
15235
|
cannam@154
|
15236 # Library versioning type.
|
cannam@154
|
15237 version_type=$version_type
|
cannam@154
|
15238
|
cannam@154
|
15239 # Shared library runtime path variable.
|
cannam@154
|
15240 runpath_var=$runpath_var
|
cannam@154
|
15241
|
cannam@154
|
15242 # Shared library path variable.
|
cannam@154
|
15243 shlibpath_var=$shlibpath_var
|
cannam@154
|
15244
|
cannam@154
|
15245 # Is shlibpath searched before the hard-coded library search path?
|
cannam@154
|
15246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
|
cannam@154
|
15247
|
cannam@154
|
15248 # Format of library name prefix.
|
cannam@154
|
15249 libname_spec=$lt_libname_spec
|
cannam@154
|
15250
|
cannam@154
|
15251 # List of archive names. First name is the real one, the rest are links.
|
cannam@154
|
15252 # The last name is the one that the linker finds with -lNAME
|
cannam@154
|
15253 library_names_spec=$lt_library_names_spec
|
cannam@154
|
15254
|
cannam@154
|
15255 # The coded name of the library, if different from the real name.
|
cannam@154
|
15256 soname_spec=$lt_soname_spec
|
cannam@154
|
15257
|
cannam@154
|
15258 # Permission mode override for installation of shared libraries.
|
cannam@154
|
15259 install_override_mode=$lt_install_override_mode
|
cannam@154
|
15260
|
cannam@154
|
15261 # Command to use after installation of a shared archive.
|
cannam@154
|
15262 postinstall_cmds=$lt_postinstall_cmds
|
cannam@154
|
15263
|
cannam@154
|
15264 # Command to use after uninstallation of a shared archive.
|
cannam@154
|
15265 postuninstall_cmds=$lt_postuninstall_cmds
|
cannam@154
|
15266
|
cannam@154
|
15267 # Commands used to finish a libtool library installation in a directory.
|
cannam@154
|
15268 finish_cmds=$lt_finish_cmds
|
cannam@154
|
15269
|
cannam@154
|
15270 # As "finish_cmds", except a single script fragment to be evaled but
|
cannam@154
|
15271 # not shown.
|
cannam@154
|
15272 finish_eval=$lt_finish_eval
|
cannam@154
|
15273
|
cannam@154
|
15274 # Whether we should hardcode library paths into libraries.
|
cannam@154
|
15275 hardcode_into_libs=$hardcode_into_libs
|
cannam@154
|
15276
|
cannam@154
|
15277 # Compile-time system search path for libraries.
|
cannam@154
|
15278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
|
cannam@154
|
15279
|
cannam@154
|
15280 # Detected run-time system search path for libraries.
|
cannam@154
|
15281 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
|
cannam@154
|
15282
|
cannam@154
|
15283 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
|
cannam@154
|
15284 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
|
cannam@154
|
15285
|
cannam@154
|
15286 # Whether dlopen is supported.
|
cannam@154
|
15287 dlopen_support=$enable_dlopen
|
cannam@154
|
15288
|
cannam@154
|
15289 # Whether dlopen of programs is supported.
|
cannam@154
|
15290 dlopen_self=$enable_dlopen_self
|
cannam@154
|
15291
|
cannam@154
|
15292 # Whether dlopen of statically linked programs is supported.
|
cannam@154
|
15293 dlopen_self_static=$enable_dlopen_self_static
|
cannam@154
|
15294
|
cannam@154
|
15295 # Commands to strip libraries.
|
cannam@154
|
15296 old_striplib=$lt_old_striplib
|
cannam@154
|
15297 striplib=$lt_striplib
|
cannam@154
|
15298
|
cannam@154
|
15299
|
cannam@154
|
15300 # The linker used to build libraries.
|
cannam@154
|
15301 LD=$lt_LD
|
cannam@154
|
15302
|
cannam@154
|
15303 # How to create reloadable object files.
|
cannam@154
|
15304 reload_flag=$lt_reload_flag
|
cannam@154
|
15305 reload_cmds=$lt_reload_cmds
|
cannam@154
|
15306
|
cannam@154
|
15307 # Commands used to build an old-style archive.
|
cannam@154
|
15308 old_archive_cmds=$lt_old_archive_cmds
|
cannam@154
|
15309
|
cannam@154
|
15310 # A language specific compiler.
|
cannam@154
|
15311 CC=$lt_compiler
|
cannam@154
|
15312
|
cannam@154
|
15313 # Is the compiler the GNU compiler?
|
cannam@154
|
15314 with_gcc=$GCC
|
cannam@154
|
15315
|
cannam@154
|
15316 # Compiler flag to turn off builtin functions.
|
cannam@154
|
15317 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
|
cannam@154
|
15318
|
cannam@154
|
15319 # Additional compiler flags for building library objects.
|
cannam@154
|
15320 pic_flag=$lt_lt_prog_compiler_pic
|
cannam@154
|
15321
|
cannam@154
|
15322 # How to pass a linker flag through the compiler.
|
cannam@154
|
15323 wl=$lt_lt_prog_compiler_wl
|
cannam@154
|
15324
|
cannam@154
|
15325 # Compiler flag to prevent dynamic linking.
|
cannam@154
|
15326 link_static_flag=$lt_lt_prog_compiler_static
|
cannam@154
|
15327
|
cannam@154
|
15328 # Does compiler simultaneously support -c and -o options?
|
cannam@154
|
15329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
|
cannam@154
|
15330
|
cannam@154
|
15331 # Whether or not to add -lc for building shared libraries.
|
cannam@154
|
15332 build_libtool_need_lc=$archive_cmds_need_lc
|
cannam@154
|
15333
|
cannam@154
|
15334 # Whether or not to disallow shared libs when runtime libs are static.
|
cannam@154
|
15335 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
|
cannam@154
|
15336
|
cannam@154
|
15337 # Compiler flag to allow reflexive dlopens.
|
cannam@154
|
15338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
|
cannam@154
|
15339
|
cannam@154
|
15340 # Compiler flag to generate shared objects directly from archives.
|
cannam@154
|
15341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
|
cannam@154
|
15342
|
cannam@154
|
15343 # Whether the compiler copes with passing no objects directly.
|
cannam@154
|
15344 compiler_needs_object=$lt_compiler_needs_object
|
cannam@154
|
15345
|
cannam@154
|
15346 # Create an old-style archive from a shared archive.
|
cannam@154
|
15347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
|
cannam@154
|
15348
|
cannam@154
|
15349 # Create a temporary old-style archive to link instead of a shared archive.
|
cannam@154
|
15350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
|
cannam@154
|
15351
|
cannam@154
|
15352 # Commands used to build a shared archive.
|
cannam@154
|
15353 archive_cmds=$lt_archive_cmds
|
cannam@154
|
15354 archive_expsym_cmds=$lt_archive_expsym_cmds
|
cannam@154
|
15355
|
cannam@154
|
15356 # Commands used to build a loadable module if different from building
|
cannam@154
|
15357 # a shared archive.
|
cannam@154
|
15358 module_cmds=$lt_module_cmds
|
cannam@154
|
15359 module_expsym_cmds=$lt_module_expsym_cmds
|
cannam@154
|
15360
|
cannam@154
|
15361 # Whether we are building with GNU ld or not.
|
cannam@154
|
15362 with_gnu_ld=$lt_with_gnu_ld
|
cannam@154
|
15363
|
cannam@154
|
15364 # Flag that allows shared libraries with undefined symbols to be built.
|
cannam@154
|
15365 allow_undefined_flag=$lt_allow_undefined_flag
|
cannam@154
|
15366
|
cannam@154
|
15367 # Flag that enforces no undefined symbols.
|
cannam@154
|
15368 no_undefined_flag=$lt_no_undefined_flag
|
cannam@154
|
15369
|
cannam@154
|
15370 # Flag to hardcode \$libdir into a binary during linking.
|
cannam@154
|
15371 # This must work even if \$libdir does not exist
|
cannam@154
|
15372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
|
cannam@154
|
15373
|
cannam@154
|
15374 # Whether we need a single "-rpath" flag with a separated argument.
|
cannam@154
|
15375 hardcode_libdir_separator=$lt_hardcode_libdir_separator
|
cannam@154
|
15376
|
cannam@154
|
15377 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
cannam@154
|
15378 # DIR into the resulting binary.
|
cannam@154
|
15379 hardcode_direct=$hardcode_direct
|
cannam@154
|
15380
|
cannam@154
|
15381 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
|
cannam@154
|
15382 # DIR into the resulting binary and the resulting library dependency is
|
cannam@154
|
15383 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
|
cannam@154
|
15384 # library is relocated.
|
cannam@154
|
15385 hardcode_direct_absolute=$hardcode_direct_absolute
|
cannam@154
|
15386
|
cannam@154
|
15387 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
|
cannam@154
|
15388 # into the resulting binary.
|
cannam@154
|
15389 hardcode_minus_L=$hardcode_minus_L
|
cannam@154
|
15390
|
cannam@154
|
15391 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
|
cannam@154
|
15392 # into the resulting binary.
|
cannam@154
|
15393 hardcode_shlibpath_var=$hardcode_shlibpath_var
|
cannam@154
|
15394
|
cannam@154
|
15395 # Set to "yes" if building a shared library automatically hardcodes DIR
|
cannam@154
|
15396 # into the library and all subsequent libraries and executables linked
|
cannam@154
|
15397 # against it.
|
cannam@154
|
15398 hardcode_automatic=$hardcode_automatic
|
cannam@154
|
15399
|
cannam@154
|
15400 # Set to yes if linker adds runtime paths of dependent libraries
|
cannam@154
|
15401 # to runtime path list.
|
cannam@154
|
15402 inherit_rpath=$inherit_rpath
|
cannam@154
|
15403
|
cannam@154
|
15404 # Whether libtool must link a program against all its dependency libraries.
|
cannam@154
|
15405 link_all_deplibs=$link_all_deplibs
|
cannam@154
|
15406
|
cannam@154
|
15407 # Set to "yes" if exported symbols are required.
|
cannam@154
|
15408 always_export_symbols=$always_export_symbols
|
cannam@154
|
15409
|
cannam@154
|
15410 # The commands to list exported symbols.
|
cannam@154
|
15411 export_symbols_cmds=$lt_export_symbols_cmds
|
cannam@154
|
15412
|
cannam@154
|
15413 # Symbols that should not be listed in the preloaded symbols.
|
cannam@154
|
15414 exclude_expsyms=$lt_exclude_expsyms
|
cannam@154
|
15415
|
cannam@154
|
15416 # Symbols that must always be exported.
|
cannam@154
|
15417 include_expsyms=$lt_include_expsyms
|
cannam@154
|
15418
|
cannam@154
|
15419 # Commands necessary for linking programs (against libraries) with templates.
|
cannam@154
|
15420 prelink_cmds=$lt_prelink_cmds
|
cannam@154
|
15421
|
cannam@154
|
15422 # Commands necessary for finishing linking programs.
|
cannam@154
|
15423 postlink_cmds=$lt_postlink_cmds
|
cannam@154
|
15424
|
cannam@154
|
15425 # Specify filename containing input files.
|
cannam@154
|
15426 file_list_spec=$lt_file_list_spec
|
cannam@154
|
15427
|
cannam@154
|
15428 # How to hardcode a shared library path into an executable.
|
cannam@154
|
15429 hardcode_action=$hardcode_action
|
cannam@154
|
15430
|
cannam@154
|
15431 # ### END LIBTOOL CONFIG
|
cannam@154
|
15432
|
cannam@154
|
15433 _LT_EOF
|
cannam@154
|
15434
|
cannam@154
|
15435 cat <<'_LT_EOF' >> "$cfgfile"
|
cannam@154
|
15436
|
cannam@154
|
15437 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
|
cannam@154
|
15438
|
cannam@154
|
15439 # func_munge_path_list VARIABLE PATH
|
cannam@154
|
15440 # -----------------------------------
|
cannam@154
|
15441 # VARIABLE is name of variable containing _space_ separated list of
|
cannam@154
|
15442 # directories to be munged by the contents of PATH, which is string
|
cannam@154
|
15443 # having a format:
|
cannam@154
|
15444 # "DIR[:DIR]:"
|
cannam@154
|
15445 # string "DIR[ DIR]" will be prepended to VARIABLE
|
cannam@154
|
15446 # ":DIR[:DIR]"
|
cannam@154
|
15447 # string "DIR[ DIR]" will be appended to VARIABLE
|
cannam@154
|
15448 # "DIRP[:DIRP]::[DIRA:]DIRA"
|
cannam@154
|
15449 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
|
cannam@154
|
15450 # "DIRA[ DIRA]" will be appended to VARIABLE
|
cannam@154
|
15451 # "DIR[:DIR]"
|
cannam@154
|
15452 # VARIABLE will be replaced by "DIR[ DIR]"
|
cannam@154
|
15453 func_munge_path_list ()
|
cannam@154
|
15454 {
|
cannam@154
|
15455 case x$2 in
|
cannam@154
|
15456 x)
|
cannam@154
|
15457 ;;
|
cannam@154
|
15458 *:)
|
cannam@154
|
15459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
|
cannam@154
|
15460 ;;
|
cannam@154
|
15461 x:*)
|
cannam@154
|
15462 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
|
cannam@154
|
15463 ;;
|
cannam@154
|
15464 *::*)
|
cannam@154
|
15465 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
|
cannam@154
|
15466 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
|
cannam@154
|
15467 ;;
|
cannam@154
|
15468 *)
|
cannam@154
|
15469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
|
cannam@154
|
15470 ;;
|
cannam@154
|
15471 esac
|
cannam@154
|
15472 }
|
cannam@154
|
15473
|
cannam@154
|
15474
|
cannam@154
|
15475 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
|
cannam@154
|
15476 func_cc_basename ()
|
cannam@154
|
15477 {
|
cannam@154
|
15478 for cc_temp in $*""; do
|
cannam@154
|
15479 case $cc_temp in
|
cannam@154
|
15480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
|
cannam@154
|
15481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
|
cannam@154
|
15482 \-*) ;;
|
cannam@154
|
15483 *) break;;
|
cannam@154
|
15484 esac
|
cannam@154
|
15485 done
|
cannam@154
|
15486 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
|
cannam@154
|
15487 }
|
cannam@154
|
15488
|
cannam@154
|
15489
|
cannam@154
|
15490 # ### END FUNCTIONS SHARED WITH CONFIGURE
|
cannam@154
|
15491
|
cannam@154
|
15492 _LT_EOF
|
cannam@154
|
15493
|
cannam@154
|
15494 case $host_os in
|
cannam@154
|
15495 aix3*)
|
cannam@154
|
15496 cat <<\_LT_EOF >> "$cfgfile"
|
cannam@154
|
15497 # AIX sometimes has problems with the GCC collect2 program. For some
|
cannam@154
|
15498 # reason, if we set the COLLECT_NAMES environment variable, the problems
|
cannam@154
|
15499 # vanish in a puff of smoke.
|
cannam@154
|
15500 if test set != "${COLLECT_NAMES+set}"; then
|
cannam@154
|
15501 COLLECT_NAMES=
|
cannam@154
|
15502 export COLLECT_NAMES
|
cannam@154
|
15503 fi
|
cannam@154
|
15504 _LT_EOF
|
cannam@154
|
15505 ;;
|
cannam@154
|
15506 esac
|
cannam@154
|
15507
|
cannam@154
|
15508
|
cannam@154
|
15509 ltmain=$ac_aux_dir/ltmain.sh
|
cannam@154
|
15510
|
cannam@154
|
15511
|
cannam@154
|
15512 # We use sed instead of cat because bash on DJGPP gets confused if
|
cannam@154
|
15513 # if finds mixed CR/LF and LF-only lines. Since sed operates in
|
cannam@154
|
15514 # text mode, it properly converts lines to CR/LF. This bash problem
|
cannam@154
|
15515 # is reportedly fixed, but why not run on old versions too?
|
cannam@154
|
15516 sed '$q' "$ltmain" >> "$cfgfile" \
|
cannam@154
|
15517 || (rm -f "$cfgfile"; exit 1)
|
cannam@154
|
15518
|
cannam@154
|
15519 mv -f "$cfgfile" "$ofile" ||
|
cannam@154
|
15520 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
|
cannam@154
|
15521 chmod +x "$ofile"
|
cannam@154
|
15522
|
cannam@154
|
15523 ;;
|
cannam@154
|
15524
|
cannam@154
|
15525 esac
|
cannam@154
|
15526 done # for ac_tag
|
cannam@154
|
15527
|
cannam@154
|
15528
|
cannam@154
|
15529 as_fn_exit 0
|
cannam@154
|
15530 _ACEOF
|
cannam@154
|
15531 ac_clean_files=$ac_clean_files_save
|
cannam@154
|
15532
|
cannam@154
|
15533 test $ac_write_fail = 0 ||
|
cannam@154
|
15534 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
|
cannam@154
|
15535
|
cannam@154
|
15536
|
cannam@154
|
15537 # configure is writing to config.log, and then calls config.status.
|
cannam@154
|
15538 # config.status does its own redirection, appending to config.log.
|
cannam@154
|
15539 # Unfortunately, on DOS this fails, as config.log is still kept open
|
cannam@154
|
15540 # by configure, so config.status won't be able to write to it; its
|
cannam@154
|
15541 # output is simply discarded. So we exec the FD to /dev/null,
|
cannam@154
|
15542 # effectively closing config.log, so it can be properly (re)opened and
|
cannam@154
|
15543 # appended to by config.status. When coming back to configure, we
|
cannam@154
|
15544 # need to make the FD available again.
|
cannam@154
|
15545 if test "$no_create" != yes; then
|
cannam@154
|
15546 ac_cs_success=:
|
cannam@154
|
15547 ac_config_status_args=
|
cannam@154
|
15548 test "$silent" = yes &&
|
cannam@154
|
15549 ac_config_status_args="$ac_config_status_args --quiet"
|
cannam@154
|
15550 exec 5>/dev/null
|
cannam@154
|
15551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
cannam@154
|
15552 exec 5>>config.log
|
cannam@154
|
15553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
cannam@154
|
15554 # would make configure fail if this is the last instruction.
|
cannam@154
|
15555 $ac_cs_success || as_fn_exit 1
|
cannam@154
|
15556 fi
|
cannam@154
|
15557 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
|
cannam@154
|
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
|
cannam@154
|
15559 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
|
cannam@154
|
15560 fi
|
cannam@154
|
15561
|
cannam@154
|
15562
|
cannam@154
|
15563 { $as_echo "$as_me:${as_lineno-$LINENO}:
|
cannam@154
|
15564 ------------------------------------------------------------------------
|
cannam@154
|
15565 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
|
cannam@154
|
15566
|
cannam@154
|
15567 Assertions ................... ${enable_assertions}
|
cannam@154
|
15568
|
cannam@154
|
15569 HTTP support ................. ${enable_http}
|
cannam@154
|
15570 Fixed-point .................. ${enable_fixed_point}
|
cannam@154
|
15571 Floating-point API ........... ${enable_float}${lrintf_notice}
|
cannam@154
|
15572
|
cannam@154
|
15573 Hidden visibility ............ ${cc_cv_flag_visibility}
|
cannam@154
|
15574
|
cannam@154
|
15575 API code examples ............ ${enable_examples}
|
cannam@154
|
15576 API documentation ............ ${enable_doc}
|
cannam@154
|
15577 ------------------------------------------------------------------------
|
cannam@154
|
15578 " >&5
|
cannam@154
|
15579 $as_echo "$as_me:
|
cannam@154
|
15580 ------------------------------------------------------------------------
|
cannam@154
|
15581 $PACKAGE_NAME $PACKAGE_VERSION: Automatic configuration OK.
|
cannam@154
|
15582
|
cannam@154
|
15583 Assertions ................... ${enable_assertions}
|
cannam@154
|
15584
|
cannam@154
|
15585 HTTP support ................. ${enable_http}
|
cannam@154
|
15586 Fixed-point .................. ${enable_fixed_point}
|
cannam@154
|
15587 Floating-point API ........... ${enable_float}${lrintf_notice}
|
cannam@154
|
15588
|
cannam@154
|
15589 Hidden visibility ............ ${cc_cv_flag_visibility}
|
cannam@154
|
15590
|
cannam@154
|
15591 API code examples ............ ${enable_examples}
|
cannam@154
|
15592 API documentation ............ ${enable_doc}
|
cannam@154
|
15593 ------------------------------------------------------------------------
|
cannam@154
|
15594 " >&6;}
|