Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d50284c4 | 3 | # Generated by GNU Autoconf 2.69 for courier-authlib 0.66.4. |
d9898ee8 | 4 | # |
8d138742 | 5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 6 | # |
b0322a85 CE |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
d9898ee8 | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b0322a85 CE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
d9898ee8 | 16 | |
dd184caf | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
d9898ee8 | 20 | emulate sh |
21 | NULLCMD=: | |
8d138742 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 25 | setopt NO_GLOB_SUBST |
26 | else | |
b0322a85 CE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
dd184caf | 32 | esac |
dd184caf | 33 | fi |
34 | ||
35 | ||
8d138742 CE |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
dd184caf | 56 | else |
8d138742 CE |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b0322a85 | 60 | case $arg in #( |
8d138742 CE |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
dd184caf | 69 | fi |
8d138742 CE |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
d9898ee8 | 83 | |
dd184caf | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
dd184caf | 89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
92 | as_myself= |
93 | case $0 in #(( | |
dd184caf | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
dd184caf | 102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
8d138742 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b0322a85 | 113 | exit 1 |
dd184caf | 114 | fi |
115 | ||
b0322a85 CE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
dd184caf | 123 | done |
d9898ee8 | 124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8d138742 CE |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
d9898ee8 | 133 | |
b0322a85 CE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | ||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 | test \$(( 1 + 1 )) = 2 || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
284 | fi | |
285 | fi | |
286 | fi | |
287 | SHELL=${CONFIG_SHELL-/bin/sh} | |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
292 | ||
293 | ## --------------------- ## | |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
304 | ||
305 | # as_fn_set_status STATUS | |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
312 | ||
313 | # as_fn_exit STATUS | |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
328 | ||
329 | case $as_dir in #( | |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
367 | ||
368 | ||
369 | } # as_fn_mkdir_p | |
370 | ||
371 | # as_fn_executable_p FILE | |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
412 | ||
413 | ||
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
429 | ||
dd184caf | 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 432 | as_expr=expr |
433 | else | |
434 | as_expr=false | |
435 | fi | |
436 | ||
dd184caf | 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 438 | as_basename=basename |
439 | else | |
440 | as_basename=false | |
441 | fi | |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
445 | else | |
446 | as_dirname=false | |
447 | fi | |
d9898ee8 | 448 | |
dd184caf | 449 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
451 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 453 | $as_echo X/"$0" | |
dd184caf | 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
d9898ee8 | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
481 | sed -n ' | |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
485 | sed ' | |
486 | s/[$]LINENO.*/&-/ | |
487 | t lineno | |
488 | b | |
489 | :lineno | |
490 | N | |
491 | :loop | |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
493 | t loop | |
494 | s/-\n.*// | |
495 | ' >$as_me.lineno && | |
496 | chmod +x "$as_me.lineno" || | |
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
503 | # Don't try to exec as it changes $[0], causing all sort of problems | |
504 | # (the dirname of $[0] is not the place where we might find the | |
505 | # original and so on. Autoconf is especially sensitive to this). | |
506 | . "./$as_me.lineno" | |
507 | # Exit status is that of the last command. | |
508 | exit | |
dd184caf | 509 | } |
d9898ee8 | 510 | |
b0322a85 CE |
511 | ECHO_C= ECHO_N= ECHO_T= |
512 | case `echo -n x` in #((((( | |
513 | -n*) | |
514 | case `echo 'xy\c'` in | |
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
516 | xy) ECHO_C='\c';; | |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
519 | esac;; | |
520 | *) | |
521 | ECHO_N='-n';; | |
522 | esac | |
dd184caf | 523 | |
b0322a85 CE |
524 | rm -f conf$$ conf$$.exe conf$$.file |
525 | if test -d conf$$.dir; then | |
526 | rm -f conf$$.dir/conf$$.file | |
dd184caf | 527 | else |
b0322a85 CE |
528 | rm -f conf$$.dir |
529 | mkdir conf$$.dir 2>/dev/null | |
dd184caf | 530 | fi |
b0322a85 CE |
531 | if (echo >conf$$.file) 2>/dev/null; then |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
537 | # In both cases, we have to default to `cp -pR'. | |
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
539 | as_ln_s='cp -pR' | |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
541 | as_ln_s=ln | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | else | |
546 | as_ln_s='cp -pR' | |
dd184caf | 547 | fi |
b0322a85 CE |
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
dd184caf | 550 | |
b0322a85 CE |
551 | if mkdir -p . 2>/dev/null; then |
552 | as_mkdir_p='mkdir -p "$as_dir"' | |
dd184caf | 553 | else |
b0322a85 CE |
554 | test -d ./-p && rmdir ./-p |
555 | as_mkdir_p=false | |
dd184caf | 556 | fi |
557 | ||
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
dd184caf | 560 | |
b0322a85 CE |
561 | # Sed expression to map a string onto a valid CPP name. |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 563 | |
b0322a85 CE |
564 | # Sed expression to map a string onto a valid variable name. |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 566 | |
b0322a85 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
dd184caf | 568 | |
b0322a85 | 569 | lt_ltdl_dir='libltdl' |
dd184caf | 570 | |
d50284c4 | 571 | lt_dlopen_dir=$lt_ltdl_dir |
dd184caf | 572 | |
dd184caf | 573 | |
b0322a85 CE |
574 | test -n "$DJDIR" || exec 7<&0 </dev/null |
575 | exec 6>&1 | |
dd184caf | 576 | |
d9898ee8 | 577 | # Name of the host. |
b0322a85 | 578 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
d9898ee8 | 579 | # so uname gets run too. |
580 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
581 | ||
d9898ee8 | 582 | # |
583 | # Initializations. | |
584 | # | |
585 | ac_default_prefix=/usr/local | |
dd184caf | 586 | ac_clean_files= |
d9898ee8 | 587 | ac_config_libobj_dir=. |
dd184caf | 588 | LIBOBJS= |
d9898ee8 | 589 | cross_compiling=no |
590 | subdirs= | |
591 | MFLAGS= | |
592 | MAKEFLAGS= | |
d9898ee8 | 593 | |
d9898ee8 | 594 | # Identity of this package. |
595 | PACKAGE_NAME='courier-authlib' | |
596 | PACKAGE_TARNAME='courier-authlib' | |
d50284c4 CE |
597 | PACKAGE_VERSION='0.66.4' |
598 | PACKAGE_STRING='courier-authlib 0.66.4' | |
8d138742 | 599 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
b0322a85 | 600 | PACKAGE_URL='' |
d9898ee8 | 601 | |
602 | ac_unique_file="courierauth.h" | |
603 | # Factoring default headers for most tests. | |
604 | ac_includes_default="\ | |
605 | #include <stdio.h> | |
dd184caf | 606 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 607 | # include <sys/types.h> |
608 | #endif | |
dd184caf | 609 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 610 | # include <sys/stat.h> |
611 | #endif | |
dd184caf | 612 | #ifdef STDC_HEADERS |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # include <stddef.h> | |
615 | #else | |
dd184caf | 616 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 617 | # include <stdlib.h> |
618 | # endif | |
619 | #endif | |
dd184caf | 620 | #ifdef HAVE_STRING_H |
621 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 622 | # include <memory.h> |
623 | # endif | |
624 | # include <string.h> | |
625 | #endif | |
dd184caf | 626 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 627 | # include <strings.h> |
628 | #endif | |
dd184caf | 629 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 630 | # include <inttypes.h> |
d9898ee8 | 631 | #endif |
dd184caf | 632 | #ifdef HAVE_STDINT_H |
633 | # include <stdint.h> | |
634 | #endif | |
635 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 636 | # include <unistd.h> |
637 | #endif" | |
638 | ||
8d138742 CE |
639 | enable_option_checking=no |
640 | ac_subst_vars='ltdl_LTLIBOBJS | |
641 | ltdl_LIBOBJS | |
642 | am__EXEEXT_FALSE | |
643 | am__EXEEXT_TRUE | |
644 | LTLIBOBJS | |
645 | LIBOBJS | |
646 | HAVE_SGML_FALSE | |
647 | HAVE_SGML_TRUE | |
648 | REPOSITORY | |
649 | mailgroup | |
650 | mailuser | |
651 | LIBM | |
652 | authdaemonvar | |
653 | authdaemonrc | |
654 | CRYPTLIBS | |
655 | LIBAUTHPIPE | |
656 | HAVE_PIPE_FALSE | |
657 | HAVE_PIPE_TRUE | |
658 | authProg | |
659 | LIBAUTHCUSTOM | |
660 | HAVE_CUSTOM_FALSE | |
661 | HAVE_CUSTOM_TRUE | |
b0322a85 CE |
662 | HAVE_AUTHSQLITE_FALSE |
663 | HAVE_AUTHSQLITE_TRUE | |
664 | LIBAUTHSQLITE | |
665 | SQLITE_LIBS | |
666 | authsqliterc | |
8d138742 CE |
667 | HAVE_AUTHMYSQL_FALSE |
668 | HAVE_AUTHMYSQL_TRUE | |
669 | MYSQL_LIBS | |
670 | LIBAUTHMYSQL | |
671 | MYSQL_CONFIG | |
672 | authmysqlrc | |
673 | HAVE_AUTHPGSQL_FALSE | |
674 | HAVE_AUTHPGSQL_TRUE | |
675 | LIBAUTHPGSQL | |
676 | PGSQL_LIBS | |
677 | PG_CONFIG | |
678 | authpgsqlrc | |
679 | LIBAUTHPWD | |
680 | LIBAUTHSHADOW | |
681 | SHADOWLIBS | |
682 | HAVE_LDAP_FALSE | |
683 | HAVE_LDAP_TRUE | |
684 | LIBAUTHLDAP | |
685 | LDAPLIBS | |
686 | authldaprc | |
687 | LIBAUTHPAM | |
688 | AUTHPAMCRYPT | |
689 | LIBDL | |
690 | userdb | |
691 | LIBAUTHUSERDB | |
692 | LIBDB | |
693 | LIBGDBM | |
694 | dblibrary | |
695 | USE_DB | |
696 | USE_GDBM | |
697 | NETLIBS | |
698 | PASSWD | |
699 | EXPECT | |
700 | COURIERCONFIG | |
701 | PERL | |
702 | LTDLOPEN | |
703 | LT_CONFIG_H | |
704 | subdirs | |
705 | CONVENIENCE_LTDL_FALSE | |
706 | CONVENIENCE_LTDL_TRUE | |
707 | INSTALL_LTDL_FALSE | |
708 | INSTALL_LTDL_TRUE | |
d50284c4 | 709 | LT_ARGZ_H |
8d138742 CE |
710 | sys_symbol_underscore |
711 | LIBADD_DL | |
712 | LT_DLPREOPEN | |
713 | LIBADD_DLD_LINK | |
714 | LIBADD_SHL_LOAD | |
715 | LIBADD_DLOPEN | |
716 | LT_DLLOADERS | |
717 | INCLTDL | |
718 | LTDLINCL | |
719 | LTDLDEPS | |
720 | LIBLTDL | |
d50284c4 | 721 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
722 | OTOOL64 |
723 | OTOOL | |
724 | LIPO | |
725 | NMEDIT | |
726 | DSYMUTIL | |
b0322a85 | 727 | MANIFEST_TOOL |
8d138742 | 728 | RANLIB |
b0322a85 | 729 | ac_ct_AR |
8d138742 | 730 | AR |
b0322a85 | 731 | DLLTOOL |
8d138742 CE |
732 | OBJDUMP |
733 | NM | |
734 | ac_ct_DUMPBIN | |
735 | DUMPBIN | |
736 | LD | |
737 | FGREP | |
738 | EGREP | |
739 | GREP | |
740 | SED | |
741 | host_os | |
742 | host_vendor | |
743 | host_cpu | |
744 | host | |
745 | build_os | |
746 | build_vendor | |
747 | build_cpu | |
748 | build | |
749 | LIBTOOL | |
750 | SYSCONFTOOL | |
751 | SYSCONFTOOL_PERL | |
752 | LN_S | |
753 | CPP | |
754 | am__fastdepCC_FALSE | |
755 | am__fastdepCC_TRUE | |
756 | CCDEPMODE | |
b0322a85 | 757 | am__nodep |
8d138742 CE |
758 | AMDEPBACKSLASH |
759 | AMDEP_FALSE | |
760 | AMDEP_TRUE | |
761 | am__quote | |
762 | am__include | |
763 | DEPDIR | |
764 | OBJEXT | |
765 | EXEEXT | |
766 | ac_ct_CC | |
767 | CPPFLAGS | |
768 | LDFLAGS | |
769 | CFLAGS | |
770 | CC | |
b0322a85 CE |
771 | AM_BACKSLASH |
772 | AM_DEFAULT_VERBOSITY | |
773 | AM_DEFAULT_V | |
774 | AM_V | |
8d138742 CE |
775 | am__untar |
776 | am__tar | |
777 | AMTAR | |
778 | am__leading_dot | |
779 | SET_MAKE | |
780 | AWK | |
781 | mkdir_p | |
782 | MKDIR_P | |
783 | INSTALL_STRIP_PROGRAM | |
784 | STRIP | |
785 | install_sh | |
786 | MAKEINFO | |
787 | AUTOHEADER | |
788 | AUTOMAKE | |
789 | AUTOCONF | |
790 | ACLOCAL | |
791 | VERSION | |
792 | PACKAGE | |
793 | CYGPATH_W | |
794 | am__isrc | |
795 | INSTALL_DATA | |
796 | INSTALL_SCRIPT | |
797 | INSTALL_PROGRAM | |
798 | target_alias | |
799 | host_alias | |
dd184caf | 800 | build_alias |
8d138742 CE |
801 | LIBS |
802 | ECHO_T | |
803 | ECHO_N | |
804 | ECHO_C | |
805 | DEFS | |
806 | mandir | |
807 | localedir | |
808 | libdir | |
809 | psdir | |
810 | pdfdir | |
811 | dvidir | |
812 | htmldir | |
813 | infodir | |
814 | docdir | |
815 | oldincludedir | |
816 | includedir | |
817 | localstatedir | |
818 | sharedstatedir | |
819 | sysconfdir | |
820 | datadir | |
821 | datarootdir | |
822 | libexecdir | |
823 | sbindir | |
824 | bindir | |
825 | program_transform_name | |
826 | prefix | |
827 | exec_prefix | |
b0322a85 | 828 | PACKAGE_URL |
8d138742 CE |
829 | PACKAGE_BUGREPORT |
830 | PACKAGE_STRING | |
831 | PACKAGE_VERSION | |
832 | PACKAGE_TARNAME | |
833 | PACKAGE_NAME | |
834 | PATH_SEPARATOR | |
835 | SHELL' | |
836 | ac_subst_files='' | |
837 | ac_user_opts=' | |
838 | enable_option_checking | |
b0322a85 | 839 | enable_silent_rules |
8d138742 CE |
840 | enable_dependency_tracking |
841 | enable_shared | |
842 | enable_static | |
843 | with_pic | |
844 | enable_fast_install | |
d50284c4 | 845 | with_aix_soname |
8d138742 | 846 | with_gnu_ld |
b0322a85 | 847 | with_sysroot |
8d138742 CE |
848 | enable_libtool_lock |
849 | with_included_ltdl | |
850 | with_ltdl_include | |
851 | with_ltdl_lib | |
852 | enable_ltdl_install | |
8d138742 CE |
853 | with_pkgconfdir |
854 | with_db | |
855 | with_authuserdb | |
856 | with_makedatprog | |
857 | with_userdb | |
858 | with_authpam | |
859 | with_authpam_libraries | |
860 | with_authldap | |
861 | with_authldaprc | |
862 | with_authpwd | |
863 | with_authshadow | |
864 | with_authpgsqlrc | |
865 | with_authpgsql | |
866 | with_pgsql_libs | |
867 | with_pgsql_includes | |
868 | with_authmysqlrc | |
869 | with_authmysql | |
870 | with_mysql_libs | |
871 | with_mysql_includes | |
b0322a85 CE |
872 | with_authsqliterc |
873 | with_authsqlite | |
874 | with_sqlite_libs | |
875 | with_sqlite_includes | |
8d138742 CE |
876 | with_authcustom |
877 | with_pipeprog | |
878 | with_authpipe | |
879 | with_authdaemonrc | |
880 | with_authdaemonvar | |
881 | with_mailuser | |
882 | with_mailgroup | |
883 | with_stdheaderdir | |
884 | with_repository | |
885 | ' | |
886 | ac_precious_vars='build_alias | |
dd184caf | 887 | host_alias |
888 | target_alias | |
889 | CC | |
890 | CFLAGS | |
891 | LDFLAGS | |
892 | LIBS | |
893 | CPPFLAGS | |
d50284c4 CE |
894 | CPP |
895 | LT_SYS_LIBRARY_PATH' | |
8d138742 | 896 | ac_subdirs_all='libltdl |
d50284c4 | 897 | libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog' |
d9898ee8 | 898 | |
899 | # Initialize some variables set by options. | |
900 | ac_init_help= | |
901 | ac_init_version=false | |
8d138742 CE |
902 | ac_unrecognized_opts= |
903 | ac_unrecognized_sep= | |
d9898ee8 | 904 | # The variables have the same names as the options, with |
905 | # dashes changed to underlines. | |
906 | cache_file=/dev/null | |
907 | exec_prefix=NONE | |
908 | no_create= | |
909 | no_recursion= | |
910 | prefix=NONE | |
911 | program_prefix=NONE | |
912 | program_suffix=NONE | |
913 | program_transform_name=s,x,x, | |
914 | silent= | |
915 | site= | |
916 | srcdir= | |
917 | verbose= | |
918 | x_includes=NONE | |
919 | x_libraries=NONE | |
920 | ||
921 | # Installation directory options. | |
922 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
923 | # and all the variables that are supposed to be based on exec_prefix | |
924 | # by default will actually change. | |
925 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 926 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 927 | bindir='${exec_prefix}/bin' |
928 | sbindir='${exec_prefix}/sbin' | |
929 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 930 | datarootdir='${prefix}/share' |
931 | datadir='${datarootdir}' | |
d9898ee8 | 932 | sysconfdir='${prefix}/etc' |
933 | sharedstatedir='${prefix}/com' | |
934 | localstatedir='${prefix}/var' | |
d9898ee8 | 935 | includedir='${prefix}/include' |
936 | oldincludedir='/usr/include' | |
dd184caf | 937 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
938 | infodir='${datarootdir}/info' | |
939 | htmldir='${docdir}' | |
940 | dvidir='${docdir}' | |
941 | pdfdir='${docdir}' | |
942 | psdir='${docdir}' | |
943 | libdir='${exec_prefix}/lib' | |
944 | localedir='${datarootdir}/locale' | |
945 | mandir='${datarootdir}/man' | |
d9898ee8 | 946 | |
947 | ac_prev= | |
dd184caf | 948 | ac_dashdash= |
d9898ee8 | 949 | for ac_option |
950 | do | |
951 | # If the previous option needs an argument, assign it. | |
952 | if test -n "$ac_prev"; then | |
dd184caf | 953 | eval $ac_prev=\$ac_option |
d9898ee8 | 954 | ac_prev= |
955 | continue | |
956 | fi | |
957 | ||
dd184caf | 958 | case $ac_option in |
b0322a85 CE |
959 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
960 | *=) ac_optarg= ;; | |
961 | *) ac_optarg=yes ;; | |
dd184caf | 962 | esac |
d9898ee8 | 963 | |
964 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
965 | ||
dd184caf | 966 | case $ac_dashdash$ac_option in |
967 | --) | |
968 | ac_dashdash=yes ;; | |
d9898ee8 | 969 | |
970 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
971 | ac_prev=bindir ;; | |
972 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
973 | bindir=$ac_optarg ;; | |
974 | ||
975 | -build | --build | --buil | --bui | --bu) | |
976 | ac_prev=build_alias ;; | |
977 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
978 | build_alias=$ac_optarg ;; | |
979 | ||
980 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
981 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
982 | ac_prev=cache_file ;; | |
983 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
984 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
985 | cache_file=$ac_optarg ;; | |
986 | ||
987 | --config-cache | -C) | |
988 | cache_file=config.cache ;; | |
989 | ||
dd184caf | 990 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 991 | ac_prev=datadir ;; |
dd184caf | 992 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 993 | datadir=$ac_optarg ;; |
994 | ||
dd184caf | 995 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
996 | | --dataroo | --dataro | --datar) | |
997 | ac_prev=datarootdir ;; | |
998 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
999 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1000 | datarootdir=$ac_optarg ;; | |
1001 | ||
d9898ee8 | 1002 | -disable-* | --disable-*) |
8d138742 | 1003 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 1004 | # Reject names that are not valid shell variable names. |
8d138742 | 1005 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1006 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
1007 | ac_useropt_orig=$ac_useropt |
1008 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1009 | case $ac_user_opts in | |
1010 | *" | |
1011 | "enable_$ac_useropt" | |
1012 | "*) ;; | |
1013 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1014 | ac_unrecognized_sep=', ';; | |
1015 | esac | |
1016 | eval enable_$ac_useropt=no ;; | |
dd184caf | 1017 | |
1018 | -docdir | --docdir | --docdi | --doc | --do) | |
1019 | ac_prev=docdir ;; | |
1020 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1021 | docdir=$ac_optarg ;; | |
1022 | ||
1023 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1024 | ac_prev=dvidir ;; | |
1025 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1026 | dvidir=$ac_optarg ;; | |
d9898ee8 | 1027 | |
1028 | -enable-* | --enable-*) | |
8d138742 | 1029 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 1030 | # Reject names that are not valid shell variable names. |
8d138742 | 1031 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1032 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
1033 | ac_useropt_orig=$ac_useropt |
1034 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1035 | case $ac_user_opts in | |
1036 | *" | |
1037 | "enable_$ac_useropt" | |
1038 | "*) ;; | |
1039 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1040 | ac_unrecognized_sep=', ';; | |
1041 | esac | |
1042 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1043 | |
1044 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1045 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1046 | | --exec | --exe | --ex) | |
1047 | ac_prev=exec_prefix ;; | |
1048 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1049 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1050 | | --exec=* | --exe=* | --ex=*) | |
1051 | exec_prefix=$ac_optarg ;; | |
1052 | ||
1053 | -gas | --gas | --ga | --g) | |
1054 | # Obsolete; use --with-gas. | |
1055 | with_gas=yes ;; | |
1056 | ||
1057 | -help | --help | --hel | --he | -h) | |
1058 | ac_init_help=long ;; | |
1059 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1060 | ac_init_help=recursive ;; | |
1061 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1062 | ac_init_help=short ;; | |
1063 | ||
1064 | -host | --host | --hos | --ho) | |
1065 | ac_prev=host_alias ;; | |
1066 | -host=* | --host=* | --hos=* | --ho=*) | |
1067 | host_alias=$ac_optarg ;; | |
1068 | ||
dd184caf | 1069 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1070 | ac_prev=htmldir ;; | |
1071 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1072 | | --ht=*) | |
1073 | htmldir=$ac_optarg ;; | |
1074 | ||
d9898ee8 | 1075 | -includedir | --includedir | --includedi | --included | --include \ |
1076 | | --includ | --inclu | --incl | --inc) | |
1077 | ac_prev=includedir ;; | |
1078 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1079 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1080 | includedir=$ac_optarg ;; | |
1081 | ||
1082 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1083 | ac_prev=infodir ;; | |
1084 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1085 | infodir=$ac_optarg ;; | |
1086 | ||
1087 | -libdir | --libdir | --libdi | --libd) | |
1088 | ac_prev=libdir ;; | |
1089 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1090 | libdir=$ac_optarg ;; | |
1091 | ||
1092 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1093 | | --libexe | --libex | --libe) | |
1094 | ac_prev=libexecdir ;; | |
1095 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1096 | | --libexe=* | --libex=* | --libe=*) | |
1097 | libexecdir=$ac_optarg ;; | |
1098 | ||
dd184caf | 1099 | -localedir | --localedir | --localedi | --localed | --locale) |
1100 | ac_prev=localedir ;; | |
1101 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1102 | localedir=$ac_optarg ;; | |
1103 | ||
d9898ee8 | 1104 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 1105 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 1106 | ac_prev=localstatedir ;; |
1107 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 1108 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 1109 | localstatedir=$ac_optarg ;; |
1110 | ||
1111 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1112 | ac_prev=mandir ;; | |
1113 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1114 | mandir=$ac_optarg ;; | |
1115 | ||
1116 | -nfp | --nfp | --nf) | |
1117 | # Obsolete; use --without-fp. | |
1118 | with_fp=no ;; | |
1119 | ||
1120 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1121 | | --no-cr | --no-c | -n) | |
1122 | no_create=yes ;; | |
1123 | ||
1124 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1125 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1126 | no_recursion=yes ;; | |
1127 | ||
1128 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1129 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1130 | | --oldin | --oldi | --old | --ol | --o) | |
1131 | ac_prev=oldincludedir ;; | |
1132 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1133 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1134 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1135 | oldincludedir=$ac_optarg ;; | |
1136 | ||
1137 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1138 | ac_prev=prefix ;; | |
1139 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1140 | prefix=$ac_optarg ;; | |
1141 | ||
1142 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1143 | | --program-pre | --program-pr | --program-p) | |
1144 | ac_prev=program_prefix ;; | |
1145 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1146 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1147 | program_prefix=$ac_optarg ;; | |
1148 | ||
1149 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1150 | | --program-suf | --program-su | --program-s) | |
1151 | ac_prev=program_suffix ;; | |
1152 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1153 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1154 | program_suffix=$ac_optarg ;; | |
1155 | ||
1156 | -program-transform-name | --program-transform-name \ | |
1157 | | --program-transform-nam | --program-transform-na \ | |
1158 | | --program-transform-n | --program-transform- \ | |
1159 | | --program-transform | --program-transfor \ | |
1160 | | --program-transfo | --program-transf \ | |
1161 | | --program-trans | --program-tran \ | |
1162 | | --progr-tra | --program-tr | --program-t) | |
1163 | ac_prev=program_transform_name ;; | |
1164 | -program-transform-name=* | --program-transform-name=* \ | |
1165 | | --program-transform-nam=* | --program-transform-na=* \ | |
1166 | | --program-transform-n=* | --program-transform-=* \ | |
1167 | | --program-transform=* | --program-transfor=* \ | |
1168 | | --program-transfo=* | --program-transf=* \ | |
1169 | | --program-trans=* | --program-tran=* \ | |
1170 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1171 | program_transform_name=$ac_optarg ;; | |
1172 | ||
dd184caf | 1173 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1174 | ac_prev=pdfdir ;; | |
1175 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1176 | pdfdir=$ac_optarg ;; | |
1177 | ||
1178 | -psdir | --psdir | --psdi | --psd | --ps) | |
1179 | ac_prev=psdir ;; | |
1180 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1181 | psdir=$ac_optarg ;; | |
1182 | ||
d9898ee8 | 1183 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1184 | | -silent | --silent | --silen | --sile | --sil) | |
1185 | silent=yes ;; | |
1186 | ||
1187 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1188 | ac_prev=sbindir ;; | |
1189 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1190 | | --sbi=* | --sb=*) | |
1191 | sbindir=$ac_optarg ;; | |
1192 | ||
1193 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1194 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1195 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1196 | | --sha | --sh) | |
1197 | ac_prev=sharedstatedir ;; | |
1198 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1199 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1200 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1201 | | --sha=* | --sh=*) | |
1202 | sharedstatedir=$ac_optarg ;; | |
1203 | ||
1204 | -site | --site | --sit) | |
1205 | ac_prev=site ;; | |
1206 | -site=* | --site=* | --sit=*) | |
1207 | site=$ac_optarg ;; | |
1208 | ||
1209 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1210 | ac_prev=srcdir ;; | |
1211 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1212 | srcdir=$ac_optarg ;; | |
1213 | ||
1214 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1215 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1216 | ac_prev=sysconfdir ;; | |
1217 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1218 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1219 | sysconfdir=$ac_optarg ;; | |
1220 | ||
1221 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1222 | ac_prev=target_alias ;; | |
1223 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1224 | target_alias=$ac_optarg ;; | |
1225 | ||
1226 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1227 | verbose=yes ;; | |
1228 | ||
1229 | -version | --version | --versio | --versi | --vers | -V) | |
1230 | ac_init_version=: ;; | |
1231 | ||
1232 | -with-* | --with-*) | |
8d138742 | 1233 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1234 | # Reject names that are not valid shell variable names. |
8d138742 | 1235 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1236 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1237 | ac_useropt_orig=$ac_useropt |
1238 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1239 | case $ac_user_opts in | |
1240 | *" | |
1241 | "with_$ac_useropt" | |
1242 | "*) ;; | |
1243 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1244 | ac_unrecognized_sep=', ';; | |
1245 | esac | |
1246 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1247 | |
1248 | -without-* | --without-*) | |
8d138742 | 1249 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1250 | # Reject names that are not valid shell variable names. |
8d138742 | 1251 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1252 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1253 | ac_useropt_orig=$ac_useropt |
1254 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1255 | case $ac_user_opts in | |
1256 | *" | |
1257 | "with_$ac_useropt" | |
1258 | "*) ;; | |
1259 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1260 | ac_unrecognized_sep=', ';; | |
1261 | esac | |
1262 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1263 | |
1264 | --x) | |
1265 | # Obsolete; use --with-x. | |
1266 | with_x=yes ;; | |
1267 | ||
1268 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1269 | | --x-incl | --x-inc | --x-in | --x-i) | |
1270 | ac_prev=x_includes ;; | |
1271 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1272 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1273 | x_includes=$ac_optarg ;; | |
1274 | ||
1275 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1276 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1277 | ac_prev=x_libraries ;; | |
1278 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1279 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1280 | x_libraries=$ac_optarg ;; | |
1281 | ||
b0322a85 CE |
1282 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1283 | Try \`$0 --help' for more information" | |
d9898ee8 | 1284 | ;; |
1285 | ||
1286 | *=*) | |
1287 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1288 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1289 | case $ac_envvar in #( |
1290 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1291 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1292 | esac | |
dd184caf | 1293 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1294 | export $ac_envvar ;; |
1295 | ||
1296 | *) | |
1297 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1298 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1299 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1300 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1301 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1302 | ;; |
1303 | ||
1304 | esac | |
1305 | done | |
1306 | ||
1307 | if test -n "$ac_prev"; then | |
1308 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1309 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1310 | fi |
1311 | ||
8d138742 CE |
1312 | if test -n "$ac_unrecognized_opts"; then |
1313 | case $enable_option_checking in | |
1314 | no) ;; | |
b0322a85 | 1315 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1316 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1317 | esac | |
1318 | fi | |
1319 | ||
1320 | # Check all directory arguments for consistency. | |
dd184caf | 1321 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1322 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1323 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1324 | libdir localedir mandir | |
d9898ee8 | 1325 | do |
dd184caf | 1326 | eval ac_val=\$$ac_var |
8d138742 CE |
1327 | # Remove trailing slashes. |
1328 | case $ac_val in | |
1329 | */ ) | |
1330 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1331 | eval $ac_var=\$ac_val;; | |
1332 | esac | |
1333 | # Be sure to have absolute directory names. | |
d9898ee8 | 1334 | case $ac_val in |
dd184caf | 1335 | [\\/$]* | ?:[\\/]* ) continue;; |
1336 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1337 | esac |
b0322a85 | 1338 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1339 | done |
1340 | ||
1341 | # There might be people who depend on the old broken behavior: `$host' | |
1342 | # used to hold the argument of --host etc. | |
1343 | # FIXME: To remove some day. | |
1344 | build=$build_alias | |
1345 | host=$host_alias | |
1346 | target=$target_alias | |
1347 | ||
1348 | # FIXME: To remove some day. | |
1349 | if test "x$host_alias" != x; then | |
1350 | if test "x$build_alias" = x; then | |
1351 | cross_compiling=maybe | |
d9898ee8 | 1352 | elif test "x$build_alias" != "x$host_alias"; then |
1353 | cross_compiling=yes | |
1354 | fi | |
1355 | fi | |
1356 | ||
1357 | ac_tool_prefix= | |
1358 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1359 | ||
1360 | test "$silent" = yes && exec 6>/dev/null | |
1361 | ||
1362 | ||
dd184caf | 1363 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1364 | ac_ls_di=`ls -di .` && | |
1365 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1366 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1367 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1368 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1369 | |
1370 | ||
d9898ee8 | 1371 | # Find the source files, if location was not specified. |
1372 | if test -z "$srcdir"; then | |
1373 | ac_srcdir_defaulted=yes | |
dd184caf | 1374 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1375 | ac_confdir=`$as_dirname -- "$as_myself" || |
1376 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1377 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1378 | X"$as_myself" : 'X\(//\)$' \| \ | |
1379 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1380 | $as_echo X"$as_myself" | | |
dd184caf | 1381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | /^X\(\/\/\)[^/].*/{ | |
1386 | s//\1/ | |
1387 | q | |
1388 | } | |
1389 | /^X\(\/\/\)$/{ | |
1390 | s//\1/ | |
1391 | q | |
1392 | } | |
1393 | /^X\(\/\).*/{ | |
1394 | s//\1/ | |
1395 | q | |
1396 | } | |
1397 | s/.*/./; q'` | |
d9898ee8 | 1398 | srcdir=$ac_confdir |
dd184caf | 1399 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1400 | srcdir=.. |
1401 | fi | |
1402 | else | |
1403 | ac_srcdir_defaulted=no | |
1404 | fi | |
dd184caf | 1405 | if test ! -r "$srcdir/$ac_unique_file"; then |
1406 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1407 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1408 | fi |
dd184caf | 1409 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1410 | ac_abs_confdir=`( | |
b0322a85 | 1411 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1412 | pwd)` |
1413 | # When building in place, set srcdir=. | |
1414 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1415 | srcdir=. | |
1416 | fi | |
1417 | # Remove unnecessary trailing slashes from srcdir. | |
1418 | # Double slashes in file names in object file debugging info | |
1419 | # mess up M-x gdb in Emacs. | |
1420 | case $srcdir in | |
1421 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1422 | esac | |
1423 | for ac_var in $ac_precious_vars; do | |
1424 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1426 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1428 | done | |
d9898ee8 | 1429 | |
1430 | # | |
1431 | # Report the --help message. | |
1432 | # | |
1433 | if test "$ac_init_help" = "long"; then | |
1434 | # Omit some internal or obsolete options to make the list less imposing. | |
1435 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1436 | cat <<_ACEOF | |
d50284c4 | 1437 | \`configure' configures courier-authlib 0.66.4 to adapt to many kinds of systems. |
d9898ee8 | 1438 | |
1439 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1440 | ||
1441 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1442 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1443 | ||
1444 | Defaults for the options are specified in brackets. | |
1445 | ||
1446 | Configuration: | |
1447 | -h, --help display this help and exit | |
1448 | --help=short display options specific to this package | |
1449 | --help=recursive display the short help of all the included packages | |
1450 | -V, --version display version information and exit | |
b0322a85 | 1451 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1452 | --cache-file=FILE cache test results in FILE [disabled] |
1453 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1454 | -n, --no-create do not create output files | |
1455 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1456 | ||
d9898ee8 | 1457 | Installation directories: |
1458 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1459 | [$ac_default_prefix] |
d9898ee8 | 1460 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1461 | [PREFIX] |
d9898ee8 | 1462 | |
1463 | By default, \`make install' will install all the files in | |
1464 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1465 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1466 | for instance \`--prefix=\$HOME'. | |
1467 | ||
1468 | For better control, use the options below. | |
1469 | ||
1470 | Fine tuning of the installation directories: | |
8d138742 CE |
1471 | --bindir=DIR user executables [EPREFIX/bin] |
1472 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1473 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1474 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1475 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1476 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1490 | _ACEOF |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Program names: | |
1495 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1496 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1497 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1498 | ||
1499 | System types: | |
1500 | --build=BUILD configure for building on BUILD [guessed] | |
1501 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1502 | _ACEOF | |
1503 | fi | |
1504 | ||
1505 | if test -n "$ac_init_help"; then | |
1506 | case $ac_init_help in | |
d50284c4 | 1507 | short | recursive ) echo "Configuration of courier-authlib 0.66.4:";; |
d9898ee8 | 1508 | esac |
1509 | cat <<\_ACEOF | |
1510 | ||
1511 | Optional Features: | |
8d138742 | 1512 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1515 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1516 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1517 | --enable-dependency-tracking | |
1518 | do not reject slow dependency extractors | |
1519 | --disable-dependency-tracking | |
1520 | speeds up one-time build | |
dd184caf | 1521 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1522 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1523 | --enable-fast-install[=PKGS] |
1524 | optimize for fast installation [default=yes] | |
1525 | --disable-libtool-lock avoid locking (might break parallel builds) | |
8d138742 | 1526 | --enable-ltdl-install install libltdl |
d9898ee8 | 1527 | |
1528 | Optional Packages: | |
1529 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1530 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1531 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1532 | both] |
d50284c4 CE |
1533 | --with-aix-soname=aix|svr4|both |
1534 | shared library versioning (aka "SONAME") variant to | |
1535 | provide on AIX, [default=aix]. | |
8d138742 | 1536 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1537 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1538 | compiler's sysroot if not specified). | |
8d138742 CE |
1539 | --with-included-ltdl use the GNU ltdl sources included here |
1540 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1541 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
d9898ee8 | 1542 | --with-pkgconfdir=d Install config files in directory |
1543 | --with-db=gdbm Use the GDBM library. | |
1544 | --with-db=db Use the libdb.a library. | |
1545 | --without-authuserdb Do not include the authuserdb module | |
1546 | ||
b0322a85 | 1547 | |
d9898ee8 | 1548 | --without-authpam Do not include the authpam module |
1549 | --with-authpam-libraries="libs" Link 'libs' with authpam, this may be | |
1550 | required for FreeBSD 3.3 | |
1551 | --without-authldap Do not include the authldap module | |
1552 | --with-authldaprc=filename Expect to find authldaprc here | |
1553 | --without-authpwd Do not include the authpwd module | |
1554 | --without-authshadow Do not include the authshadow module | |
d9898ee8 | 1555 | --with-authpgsqlrc=filename Expect to find authpgsql here |
1556 | --without-authpgsql Do not include the authpgsql module | |
1557 | --with-pgsql-libs=DIR Look for pgsql libs in this dir | |
1558 | --with-pgsql-includes=DIR Look for pgsql includes in this dir | |
1559 | --with-authmysqlrc=filename Expect to find authmysql here | |
1560 | --without-authmysql Do not include the authmysql module | |
1561 | --with-mysql-libs=DIR Look for mysql libs in this dir | |
1562 | --with-mysql-includes=DIR Look for mysql includes in this dir | |
b0322a85 CE |
1563 | --with-authsqliterc=filename Expect to find authmysql here |
1564 | --without-authsqlite Do not include the authsqlite module | |
1565 | --with-sqlite-libs=DIR Look for sqlite libs in this dir | |
1566 | --with-sqlite-includes=DIR Look for sqlite includes in this dir | |
d9898ee8 | 1567 | --without-authcustom Do not include the authcustom module |
1568 | --with-pipeprog=filename Expect to find the pipe-prog here | |
1569 | --without-authpipe Do not include the authpipe module | |
1570 | --with-authdaemonrc=filename Expect to find authdaemonrc here | |
1571 | --with-authdaemonvar=directory Directory where authdaemon.pid and | |
1572 | the listening socket is created | |
1573 | --with-mailuser=user Specify mail user name (defaults to | |
1574 | courier, daemon, admin, bin, or root) | |
1575 | --with-mailgroup=group Specify mail group name (defaults to courier, | |
1576 | daemon, sys, adm, or root) | |
1577 | --without-stdheaderdir Header files will be installed into a directory | |
1578 | not in the compiler's default search path. | |
1579 | ||
1580 | Some influential environment variables: | |
1581 | CC C compiler command | |
1582 | CFLAGS C compiler flags | |
1583 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1584 | nonstandard directory <lib dir> | |
dd184caf | 1585 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1586 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1587 | you have headers in a nonstandard directory <include dir> |
d9898ee8 | 1588 | CPP C preprocessor |
d50284c4 CE |
1589 | LT_SYS_LIBRARY_PATH |
1590 | User-defined run-time library search path. | |
d9898ee8 | 1591 | |
1592 | Use these variables to override the choices made by `configure' or to help | |
1593 | it to find libraries and programs with nonstandard names/locations. | |
1594 | ||
8d138742 | 1595 | Report bugs to <courier-users@lists.sourceforge.net>. |
d9898ee8 | 1596 | _ACEOF |
dd184caf | 1597 | ac_status=$? |
d9898ee8 | 1598 | fi |
1599 | ||
1600 | if test "$ac_init_help" = "recursive"; then | |
1601 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1602 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1603 | test -d "$ac_dir" || |
1604 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1605 | continue | |
d9898ee8 | 1606 | ac_builddir=. |
1607 | ||
dd184caf | 1608 | case "$ac_dir" in |
1609 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1610 | *) | |
8d138742 | 1611 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1612 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1613 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1614 | case $ac_top_builddir_sub in |
1615 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1616 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1617 | esac ;; | |
1618 | esac | |
1619 | ac_abs_top_builddir=$ac_pwd | |
1620 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1621 | # for backward compatibility: | |
1622 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1623 | |
1624 | case $srcdir in | |
dd184caf | 1625 | .) # We are building in place. |
d9898ee8 | 1626 | ac_srcdir=. |
dd184caf | 1627 | ac_top_srcdir=$ac_top_builddir_sub |
1628 | ac_abs_top_srcdir=$ac_pwd ;; | |
1629 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1630 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1631 | ac_top_srcdir=$srcdir |
1632 | ac_abs_top_srcdir=$srcdir ;; | |
1633 | *) # Relative name. | |
1634 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1635 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1636 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1637 | esac |
dd184caf | 1638 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1639 | ||
1640 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1641 | # Check for guested configure. | |
1642 | if test -f "$ac_srcdir/configure.gnu"; then | |
1643 | echo && | |
1644 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1645 | elif test -f "$ac_srcdir/configure"; then | |
1646 | echo && | |
1647 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1648 | else |
8d138742 | 1649 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1650 | fi || ac_status=$? |
1651 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1652 | done |
1653 | fi | |
1654 | ||
dd184caf | 1655 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1656 | if $ac_init_version; then |
1657 | cat <<\_ACEOF | |
d50284c4 | 1658 | courier-authlib configure 0.66.4 |
b0322a85 | 1659 | generated by GNU Autoconf 2.69 |
d9898ee8 | 1660 | |
b0322a85 | 1661 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9898ee8 | 1662 | This configure script is free software; the Free Software Foundation |
1663 | gives unlimited permission to copy, distribute and modify it. | |
1664 | _ACEOF | |
dd184caf | 1665 | exit |
d9898ee8 | 1666 | fi |
d9898ee8 | 1667 | |
b0322a85 CE |
1668 | ## ------------------------ ## |
1669 | ## Autoconf initialization. ## | |
1670 | ## ------------------------ ## | |
d9898ee8 | 1671 | |
b0322a85 CE |
1672 | # ac_fn_c_try_compile LINENO |
1673 | # -------------------------- | |
1674 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1675 | ac_fn_c_try_compile () | |
d9898ee8 | 1676 | { |
b0322a85 CE |
1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1678 | rm -f conftest.$ac_objext | |
1679 | if { { ac_try="$ac_compile" | |
1680 | case "(($ac_try" in | |
1681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1682 | *) ac_try_echo=$ac_try;; | |
1683 | esac | |
1684 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1685 | $as_echo "$ac_try_echo"; } >&5 | |
1686 | (eval "$ac_compile") 2>conftest.err | |
1687 | ac_status=$? | |
1688 | if test -s conftest.err; then | |
1689 | grep -v '^ *+' conftest.err >conftest.er1 | |
1690 | cat conftest.er1 >&5 | |
1691 | mv -f conftest.er1 conftest.err | |
1692 | fi | |
1693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1694 | test $ac_status = 0; } && { | |
1695 | test -z "$ac_c_werror_flag" || | |
1696 | test ! -s conftest.err | |
1697 | } && test -s conftest.$ac_objext; then : | |
1698 | ac_retval=0 | |
1699 | else | |
1700 | $as_echo "$as_me: failed program was:" >&5 | |
1701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1702 | |
b0322a85 CE |
1703 | ac_retval=1 |
1704 | fi | |
1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1706 | as_fn_set_status $ac_retval | |
1707 | ||
1708 | } # ac_fn_c_try_compile | |
1709 | ||
1710 | # ac_fn_c_try_cpp LINENO | |
1711 | # ---------------------- | |
1712 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1713 | ac_fn_c_try_cpp () | |
1714 | { | |
1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1716 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1717 | case "(($ac_try" in | |
1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1719 | *) ac_try_echo=$ac_try;; | |
1720 | esac | |
1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1722 | $as_echo "$ac_try_echo"; } >&5 | |
1723 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1724 | ac_status=$? | |
1725 | if test -s conftest.err; then | |
1726 | grep -v '^ *+' conftest.err >conftest.er1 | |
1727 | cat conftest.er1 >&5 | |
1728 | mv -f conftest.er1 conftest.err | |
1729 | fi | |
1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1731 | test $ac_status = 0; } > conftest.i && { | |
1732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1733 | test ! -s conftest.err | |
1734 | }; then : | |
1735 | ac_retval=0 | |
1736 | else | |
1737 | $as_echo "$as_me: failed program was:" >&5 | |
1738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1739 | ||
1740 | ac_retval=1 | |
1741 | fi | |
1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1743 | as_fn_set_status $ac_retval | |
1744 | ||
1745 | } # ac_fn_c_try_cpp | |
1746 | ||
1747 | # ac_fn_c_try_link LINENO | |
1748 | # ----------------------- | |
1749 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1750 | ac_fn_c_try_link () | |
1751 | { | |
1752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1754 | if { { ac_try="$ac_link" | |
1755 | case "(($ac_try" in | |
1756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1757 | *) ac_try_echo=$ac_try;; | |
1758 | esac | |
1759 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1760 | $as_echo "$ac_try_echo"; } >&5 | |
1761 | (eval "$ac_link") 2>conftest.err | |
1762 | ac_status=$? | |
1763 | if test -s conftest.err; then | |
1764 | grep -v '^ *+' conftest.err >conftest.er1 | |
1765 | cat conftest.er1 >&5 | |
1766 | mv -f conftest.er1 conftest.err | |
1767 | fi | |
1768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1769 | test $ac_status = 0; } && { | |
1770 | test -z "$ac_c_werror_flag" || | |
1771 | test ! -s conftest.err | |
1772 | } && test -s conftest$ac_exeext && { | |
1773 | test "$cross_compiling" = yes || | |
1774 | test -x conftest$ac_exeext | |
1775 | }; then : | |
1776 | ac_retval=0 | |
1777 | else | |
1778 | $as_echo "$as_me: failed program was:" >&5 | |
1779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1780 | ||
1781 | ac_retval=1 | |
1782 | fi | |
1783 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1784 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1785 | # interfere with the next link command; also delete a directory that is | |
1786 | # left behind by Apple's compiler. We do this before executing the actions. | |
1787 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1788 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1789 | as_fn_set_status $ac_retval | |
1790 | ||
1791 | } # ac_fn_c_try_link | |
1792 | ||
1793 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1794 | # ------------------------------------------------------- | |
1795 | # Tests whether HEADER exists and can be compiled using the include files in | |
1796 | # INCLUDES, setting the cache variable VAR accordingly. | |
1797 | ac_fn_c_check_header_compile () | |
1798 | { | |
1799 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1801 | $as_echo_n "checking for $2... " >&6; } | |
1802 | if eval \${$3+:} false; then : | |
1803 | $as_echo_n "(cached) " >&6 | |
1804 | else | |
1805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1806 | /* end confdefs.h. */ | |
1807 | $4 | |
1808 | #include <$2> | |
1809 | _ACEOF | |
1810 | if ac_fn_c_try_compile "$LINENO"; then : | |
1811 | eval "$3=yes" | |
1812 | else | |
1813 | eval "$3=no" | |
1814 | fi | |
1815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1816 | fi | |
1817 | eval ac_res=\$$3 | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1819 | $as_echo "$ac_res" >&6; } | |
1820 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1821 | ||
1822 | } # ac_fn_c_check_header_compile | |
1823 | ||
1824 | # ac_fn_c_try_run LINENO | |
1825 | # ---------------------- | |
1826 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1827 | # that executables *can* be run. | |
1828 | ac_fn_c_try_run () | |
1829 | { | |
1830 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1831 | if { { ac_try="$ac_link" | |
1832 | case "(($ac_try" in | |
1833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1834 | *) ac_try_echo=$ac_try;; | |
1835 | esac | |
1836 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1837 | $as_echo "$ac_try_echo"; } >&5 | |
1838 | (eval "$ac_link") 2>&5 | |
1839 | ac_status=$? | |
1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1841 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1842 | { { case "(($ac_try" in | |
1843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1844 | *) ac_try_echo=$ac_try;; | |
1845 | esac | |
1846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1847 | $as_echo "$ac_try_echo"; } >&5 | |
1848 | (eval "$ac_try") 2>&5 | |
1849 | ac_status=$? | |
1850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1851 | test $ac_status = 0; }; }; then : | |
1852 | ac_retval=0 | |
1853 | else | |
1854 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1855 | $as_echo "$as_me: failed program was:" >&5 | |
1856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1857 | ||
1858 | ac_retval=$ac_status | |
1859 | fi | |
1860 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1861 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1862 | as_fn_set_status $ac_retval | |
1863 | ||
1864 | } # ac_fn_c_try_run | |
1865 | ||
1866 | # ac_fn_c_check_func LINENO FUNC VAR | |
1867 | # ---------------------------------- | |
1868 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1869 | ac_fn_c_check_func () | |
1870 | { | |
1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1873 | $as_echo_n "checking for $2... " >&6; } | |
1874 | if eval \${$3+:} false; then : | |
1875 | $as_echo_n "(cached) " >&6 | |
1876 | else | |
1877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1878 | /* end confdefs.h. */ | |
1879 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1881 | #define $2 innocuous_$2 | |
1882 | ||
1883 | /* System header to define __stub macros and hopefully few prototypes, | |
1884 | which can conflict with char $2 (); below. | |
1885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1886 | <limits.h> exists even on freestanding compilers. */ | |
1887 | ||
1888 | #ifdef __STDC__ | |
1889 | # include <limits.h> | |
1890 | #else | |
1891 | # include <assert.h> | |
1892 | #endif | |
1893 | ||
1894 | #undef $2 | |
1895 | ||
1896 | /* Override any GCC internal prototype to avoid an error. | |
1897 | Use char because int might match the return type of a GCC | |
1898 | builtin and then its argument prototype would still apply. */ | |
1899 | #ifdef __cplusplus | |
1900 | extern "C" | |
1901 | #endif | |
1902 | char $2 (); | |
1903 | /* The GNU C library defines this for functions which it implements | |
1904 | to always fail with ENOSYS. Some functions are actually named | |
1905 | something starting with __ and the normal name is an alias. */ | |
1906 | #if defined __stub_$2 || defined __stub___$2 | |
1907 | choke me | |
1908 | #endif | |
1909 | ||
1910 | int | |
1911 | main () | |
1912 | { | |
1913 | return $2 (); | |
1914 | ; | |
1915 | return 0; | |
1916 | } | |
1917 | _ACEOF | |
1918 | if ac_fn_c_try_link "$LINENO"; then : | |
1919 | eval "$3=yes" | |
1920 | else | |
1921 | eval "$3=no" | |
1922 | fi | |
1923 | rm -f core conftest.err conftest.$ac_objext \ | |
1924 | conftest$ac_exeext conftest.$ac_ext | |
1925 | fi | |
1926 | eval ac_res=\$$3 | |
1927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1928 | $as_echo "$ac_res" >&6; } | |
1929 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1930 | ||
1931 | } # ac_fn_c_check_func | |
1932 | ||
1933 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1934 | # --------------------------------------------- | |
1935 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1936 | # accordingly. | |
1937 | ac_fn_c_check_decl () | |
1938 | { | |
1939 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1940 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1941 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1943 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1944 | if eval \${$3+:} false; then : | |
1945 | $as_echo_n "(cached) " >&6 | |
1946 | else | |
1947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1948 | /* end confdefs.h. */ | |
1949 | $4 | |
1950 | int | |
1951 | main () | |
1952 | { | |
1953 | #ifndef $as_decl_name | |
1954 | #ifdef __cplusplus | |
1955 | (void) $as_decl_use; | |
1956 | #else | |
1957 | (void) $as_decl_name; | |
1958 | #endif | |
1959 | #endif | |
1960 | ||
1961 | ; | |
1962 | return 0; | |
1963 | } | |
1964 | _ACEOF | |
1965 | if ac_fn_c_try_compile "$LINENO"; then : | |
1966 | eval "$3=yes" | |
1967 | else | |
1968 | eval "$3=no" | |
1969 | fi | |
1970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1971 | fi | |
1972 | eval ac_res=\$$3 | |
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1974 | $as_echo "$ac_res" >&6; } | |
1975 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1976 | ||
1977 | } # ac_fn_c_check_decl | |
1978 | ||
1979 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1980 | # ------------------------------------------- | |
1981 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1982 | # variable VAR accordingly. | |
1983 | ac_fn_c_check_type () | |
1984 | { | |
1985 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1987 | $as_echo_n "checking for $2... " >&6; } | |
1988 | if eval \${$3+:} false; then : | |
1989 | $as_echo_n "(cached) " >&6 | |
1990 | else | |
1991 | eval "$3=no" | |
1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1993 | /* end confdefs.h. */ | |
1994 | $4 | |
1995 | int | |
1996 | main () | |
1997 | { | |
1998 | if (sizeof ($2)) | |
1999 | return 0; | |
2000 | ; | |
2001 | return 0; | |
2002 | } | |
2003 | _ACEOF | |
2004 | if ac_fn_c_try_compile "$LINENO"; then : | |
2005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2006 | /* end confdefs.h. */ | |
2007 | $4 | |
2008 | int | |
2009 | main () | |
2010 | { | |
2011 | if (sizeof (($2))) | |
2012 | return 0; | |
2013 | ; | |
2014 | return 0; | |
2015 | } | |
2016 | _ACEOF | |
2017 | if ac_fn_c_try_compile "$LINENO"; then : | |
2018 | ||
2019 | else | |
2020 | eval "$3=yes" | |
2021 | fi | |
2022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2023 | fi | |
2024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2025 | fi | |
2026 | eval ac_res=\$$3 | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2028 | $as_echo "$ac_res" >&6; } | |
2029 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2030 | ||
2031 | } # ac_fn_c_check_type | |
2032 | ||
2033 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2034 | # ------------------------------------------------------- | |
2035 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2036 | # the include files in INCLUDES and setting the cache variable VAR | |
2037 | # accordingly. | |
2038 | ac_fn_c_check_header_mongrel () | |
2039 | { | |
2040 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2041 | if eval \${$3+:} false; then : | |
2042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2043 | $as_echo_n "checking for $2... " >&6; } | |
2044 | if eval \${$3+:} false; then : | |
2045 | $as_echo_n "(cached) " >&6 | |
2046 | fi | |
2047 | eval ac_res=\$$3 | |
2048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2049 | $as_echo "$ac_res" >&6; } | |
2050 | else | |
2051 | # Is the header compilable? | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2053 | $as_echo_n "checking $2 usability... " >&6; } | |
2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2055 | /* end confdefs.h. */ | |
2056 | $4 | |
2057 | #include <$2> | |
2058 | _ACEOF | |
2059 | if ac_fn_c_try_compile "$LINENO"; then : | |
2060 | ac_header_compiler=yes | |
2061 | else | |
2062 | ac_header_compiler=no | |
2063 | fi | |
2064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2066 | $as_echo "$ac_header_compiler" >&6; } | |
2067 | ||
2068 | # Is the header present? | |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2070 | $as_echo_n "checking $2 presence... " >&6; } | |
2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2072 | /* end confdefs.h. */ | |
2073 | #include <$2> | |
2074 | _ACEOF | |
2075 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2076 | ac_header_preproc=yes | |
2077 | else | |
2078 | ac_header_preproc=no | |
2079 | fi | |
2080 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2082 | $as_echo "$ac_header_preproc" >&6; } | |
2083 | ||
2084 | # So? What about this header? | |
2085 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2086 | yes:no: ) | |
2087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2088 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2090 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2091 | ;; | |
2092 | no:yes:* ) | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2094 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2096 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2098 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2100 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2102 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2103 | ( $as_echo "## -------------------------------------------------- ## | |
2104 | ## Report this to courier-users@lists.sourceforge.net ## | |
2105 | ## -------------------------------------------------- ##" | |
2106 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
2107 | ;; | |
2108 | esac | |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2110 | $as_echo_n "checking for $2... " >&6; } | |
2111 | if eval \${$3+:} false; then : | |
2112 | $as_echo_n "(cached) " >&6 | |
2113 | else | |
2114 | eval "$3=\$ac_header_compiler" | |
2115 | fi | |
2116 | eval ac_res=\$$3 | |
2117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2118 | $as_echo "$ac_res" >&6; } | |
2119 | fi | |
2120 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2121 | ||
2122 | } # ac_fn_c_check_header_mongrel | |
2123 | cat >config.log <<_ACEOF | |
2124 | This file contains any messages produced by compilers while | |
2125 | running configure, to aid debugging if configure makes a mistake. | |
2126 | ||
d50284c4 | 2127 | It was created by courier-authlib $as_me 0.66.4, which was |
b0322a85 CE |
2128 | generated by GNU Autoconf 2.69. Invocation command line was |
2129 | ||
2130 | $ $0 $@ | |
2131 | ||
2132 | _ACEOF | |
2133 | exec 5>>config.log | |
2134 | { | |
2135 | cat <<_ASUNAME | |
2136 | ## --------- ## | |
2137 | ## Platform. ## | |
2138 | ## --------- ## | |
2139 | ||
2140 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
d9898ee8 | 2141 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
2142 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2143 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2144 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2145 | ||
2146 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2147 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2148 | ||
2149 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2150 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2151 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
dd184caf | 2152 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 | 2153 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
2154 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2155 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2156 | ||
2157 | _ASUNAME | |
2158 | ||
2159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2160 | for as_dir in $PATH | |
2161 | do | |
2162 | IFS=$as_save_IFS | |
2163 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2164 | $as_echo "PATH: $as_dir" |
2165 | done | |
dd184caf | 2166 | IFS=$as_save_IFS |
d9898ee8 | 2167 | |
2168 | } >&5 | |
2169 | ||
2170 | cat >&5 <<_ACEOF | |
2171 | ||
2172 | ||
2173 | ## ----------- ## | |
2174 | ## Core tests. ## | |
2175 | ## ----------- ## | |
2176 | ||
2177 | _ACEOF | |
2178 | ||
2179 | ||
2180 | # Keep a trace of the command line. | |
2181 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2182 | # Strip out --silent because we don't want to record it for future runs. | |
2183 | # Also quote any args containing shell meta-characters. | |
2184 | # Make two passes to allow for proper duplicate-argument suppression. | |
2185 | ac_configure_args= | |
2186 | ac_configure_args0= | |
2187 | ac_configure_args1= | |
d9898ee8 | 2188 | ac_must_keep_next=false |
2189 | for ac_pass in 1 2 | |
2190 | do | |
2191 | for ac_arg | |
2192 | do | |
2193 | case $ac_arg in | |
2194 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2196 | | -silent | --silent | --silen | --sile | --sil) | |
2197 | continue ;; | |
dd184caf | 2198 | *\'*) |
8d138742 | 2199 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2200 | esac |
2201 | case $ac_pass in | |
b0322a85 | 2202 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
d9898ee8 | 2203 | 2) |
b0322a85 | 2204 | as_fn_append ac_configure_args1 " '$ac_arg'" |
d9898ee8 | 2205 | if test $ac_must_keep_next = true; then |
2206 | ac_must_keep_next=false # Got value, back to normal. | |
2207 | else | |
2208 | case $ac_arg in | |
2209 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2210 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2211 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2212 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2213 | case "$ac_configure_args0 " in | |
2214 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2215 | esac | |
2216 | ;; | |
2217 | -* ) ac_must_keep_next=true ;; | |
2218 | esac | |
2219 | fi | |
b0322a85 | 2220 | as_fn_append ac_configure_args " '$ac_arg'" |
d9898ee8 | 2221 | ;; |
2222 | esac | |
2223 | done | |
2224 | done | |
b0322a85 CE |
2225 | { ac_configure_args0=; unset ac_configure_args0;} |
2226 | { ac_configure_args1=; unset ac_configure_args1;} | |
d9898ee8 | 2227 | |
2228 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2229 | # config.log. We remove comments because anyway the quotes in there | |
2230 | # would cause problems or look ugly. | |
dd184caf | 2231 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2232 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
d9898ee8 | 2233 | trap 'exit_status=$? |
2234 | # Save into config.log some information that might help in debugging. | |
2235 | { | |
2236 | echo | |
2237 | ||
b0322a85 | 2238 | $as_echo "## ---------------- ## |
d9898ee8 | 2239 | ## Cache variables. ## |
b0322a85 | 2240 | ## ---------------- ##" |
d9898ee8 | 2241 | echo |
2242 | # The following way of writing the cache mishandles newlines in values, | |
dd184caf | 2243 | ( |
2244 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2245 | eval ac_val=\$$ac_var | |
2246 | case $ac_val in #( | |
2247 | *${as_nl}*) | |
2248 | case $ac_var in #( | |
b0322a85 | 2249 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 | 2250 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
dd184caf | 2251 | esac |
2252 | case $ac_var in #( | |
2253 | _ | IFS | as_nl) ;; #( | |
8d138742 | 2254 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b0322a85 | 2255 | *) { eval $ac_var=; unset $ac_var;} ;; |
dd184caf | 2256 | esac ;; |
2257 | esac | |
2258 | done | |
d9898ee8 | 2259 | (set) 2>&1 | |
dd184caf | 2260 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2261 | *${as_nl}ac_space=\ *) | |
d9898ee8 | 2262 | sed -n \ |
dd184caf | 2263 | "s/'\''/'\''\\\\'\'''\''/g; |
2264 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2265 | ;; #( | |
d9898ee8 | 2266 | *) |
dd184caf | 2267 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 | 2268 | ;; |
dd184caf | 2269 | esac | |
2270 | sort | |
2271 | ) | |
d9898ee8 | 2272 | echo |
2273 | ||
b0322a85 | 2274 | $as_echo "## ----------------- ## |
d9898ee8 | 2275 | ## Output variables. ## |
b0322a85 | 2276 | ## ----------------- ##" |
d9898ee8 | 2277 | echo |
2278 | for ac_var in $ac_subst_vars | |
2279 | do | |
dd184caf | 2280 | eval ac_val=\$$ac_var |
2281 | case $ac_val in | |
8d138742 | 2282 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2283 | esac |
8d138742 | 2284 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2285 | done | sort |
2286 | echo | |
2287 | ||
2288 | if test -n "$ac_subst_files"; then | |
b0322a85 | 2289 | $as_echo "## ------------------- ## |
dd184caf | 2290 | ## File substitutions. ## |
b0322a85 | 2291 | ## ------------------- ##" |
d9898ee8 | 2292 | echo |
2293 | for ac_var in $ac_subst_files | |
2294 | do | |
dd184caf | 2295 | eval ac_val=\$$ac_var |
2296 | case $ac_val in | |
8d138742 | 2297 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
dd184caf | 2298 | esac |
8d138742 | 2299 | $as_echo "$ac_var='\''$ac_val'\''" |
d9898ee8 | 2300 | done | sort |
2301 | echo | |
2302 | fi | |
2303 | ||
2304 | if test -s confdefs.h; then | |
b0322a85 | 2305 | $as_echo "## ----------- ## |
d9898ee8 | 2306 | ## confdefs.h. ## |
b0322a85 | 2307 | ## ----------- ##" |
d9898ee8 | 2308 | echo |
dd184caf | 2309 | cat confdefs.h |
d9898ee8 | 2310 | echo |
2311 | fi | |
2312 | test "$ac_signal" != 0 && | |
8d138742 CE |
2313 | $as_echo "$as_me: caught signal $ac_signal" |
2314 | $as_echo "$as_me: exit $exit_status" | |
d9898ee8 | 2315 | } >&5 |
dd184caf | 2316 | rm -f core *.core core.conftest.* && |
2317 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
d9898ee8 | 2318 | exit $exit_status |
dd184caf | 2319 | ' 0 |
d9898ee8 | 2320 | for ac_signal in 1 2 13 15; do |
b0322a85 | 2321 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
d9898ee8 | 2322 | done |
2323 | ac_signal=0 | |
2324 | ||
2325 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
dd184caf | 2326 | rm -f -r conftest* confdefs.h |
d9898ee8 | 2327 | |
b0322a85 CE |
2328 | $as_echo "/* confdefs.h */" > confdefs.h |
2329 | ||
d9898ee8 | 2330 | # Predefined preprocessor variables. |
2331 | ||
2332 | cat >>confdefs.h <<_ACEOF | |
2333 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2334 | _ACEOF | |
2335 | ||
d9898ee8 | 2336 | cat >>confdefs.h <<_ACEOF |
2337 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2338 | _ACEOF | |
2339 | ||
d9898ee8 | 2340 | cat >>confdefs.h <<_ACEOF |
2341 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2342 | _ACEOF | |
2343 | ||
d9898ee8 | 2344 | cat >>confdefs.h <<_ACEOF |
2345 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2346 | _ACEOF | |
2347 | ||
d9898ee8 | 2348 | cat >>confdefs.h <<_ACEOF |
2349 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2350 | _ACEOF | |
2351 | ||
b0322a85 CE |
2352 | cat >>confdefs.h <<_ACEOF |
2353 | #define PACKAGE_URL "$PACKAGE_URL" | |
2354 | _ACEOF | |
2355 | ||
d9898ee8 | 2356 | |
2357 | # Let the site file select an alternate cache file if it wants to. | |
8d138742 CE |
2358 | # Prefer an explicitly selected file to automatically selected ones. |
2359 | ac_site_file1=NONE | |
2360 | ac_site_file2=NONE | |
dd184caf | 2361 | if test -n "$CONFIG_SITE"; then |
b0322a85 CE |
2362 | # We do not want a PATH search for config.site. |
2363 | case $CONFIG_SITE in #(( | |
2364 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2365 | */*) ac_site_file1=$CONFIG_SITE;; | |
2366 | *) ac_site_file1=./$CONFIG_SITE;; | |
2367 | esac | |
dd184caf | 2368 | elif test "x$prefix" != xNONE; then |
8d138742 CE |
2369 | ac_site_file1=$prefix/share/config.site |
2370 | ac_site_file2=$prefix/etc/config.site | |
dd184caf | 2371 | else |
8d138742 CE |
2372 | ac_site_file1=$ac_default_prefix/share/config.site |
2373 | ac_site_file2=$ac_default_prefix/etc/config.site | |
d9898ee8 | 2374 | fi |
8d138742 | 2375 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
dd184caf | 2376 | do |
8d138742 | 2377 | test "x$ac_site_file" = xNONE && continue |
b0322a85 CE |
2378 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
8d138742 | 2380 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
d9898ee8 | 2381 | sed 's/^/| /' "$ac_site_file" >&5 |
b0322a85 CE |
2382 | . "$ac_site_file" \ |
2383 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2384 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2385 | as_fn_error $? "failed to load site script $ac_site_file | |
2386 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 2387 | fi |
2388 | done | |
2389 | ||
2390 | if test -r "$cache_file"; then | |
b0322a85 CE |
2391 | # Some versions of bash will fail to source /dev/null (special files |
2392 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2393 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
8d138742 | 2395 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
d9898ee8 | 2396 | case $cache_file in |
dd184caf | 2397 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2398 | *) . "./$cache_file";; | |
d9898ee8 | 2399 | esac |
2400 | fi | |
2401 | else | |
b0322a85 | 2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
8d138742 | 2403 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
d9898ee8 | 2404 | >$cache_file |
2405 | fi | |
2406 | ||
2407 | # Check that the precious variables saved in the cache have kept the same | |
2408 | # value. | |
2409 | ac_cache_corrupted=false | |
dd184caf | 2410 | for ac_var in $ac_precious_vars; do |
d9898ee8 | 2411 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2412 | eval ac_new_set=\$ac_env_${ac_var}_set | |
dd184caf | 2413 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2414 | eval ac_new_val=\$ac_env_${ac_var}_value | |
d9898ee8 | 2415 | case $ac_old_set,$ac_new_set in |
2416 | set,) | |
b0322a85 | 2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
8d138742 | 2418 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
d9898ee8 | 2419 | ac_cache_corrupted=: ;; |
2420 | ,set) | |
b0322a85 | 2421 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
8d138742 | 2422 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
d9898ee8 | 2423 | ac_cache_corrupted=: ;; |
2424 | ,);; | |
2425 | *) | |
2426 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8d138742 CE |
2427 | # differences in whitespace do not lead to failure. |
2428 | ac_old_val_w=`echo x $ac_old_val` | |
2429 | ac_new_val_w=`echo x $ac_new_val` | |
2430 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b0322a85 | 2431 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
8d138742 CE |
2432 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2433 | ac_cache_corrupted=: | |
2434 | else | |
b0322a85 | 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
8d138742 CE |
2436 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2437 | eval $ac_var=\$ac_old_val | |
2438 | fi | |
b0322a85 | 2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
8d138742 | 2440 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b0322a85 | 2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
8d138742 | 2442 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
d9898ee8 | 2443 | fi;; |
2444 | esac | |
2445 | # Pass precious variables to config.status. | |
2446 | if test "$ac_new_set" = set; then | |
2447 | case $ac_new_val in | |
8d138742 | 2448 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 | 2449 | *) ac_arg=$ac_var=$ac_new_val ;; |
2450 | esac | |
2451 | case " $ac_configure_args " in | |
2452 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b0322a85 | 2453 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
d9898ee8 | 2454 | esac |
2455 | fi | |
2456 | done | |
2457 | if $ac_cache_corrupted; then | |
b0322a85 | 2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 2459 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 | 2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
8d138742 | 2461 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
b0322a85 | 2462 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
d9898ee8 | 2463 | fi |
b0322a85 CE |
2464 | ## -------------------- ## |
2465 | ## Main body of script. ## | |
2466 | ## -------------------- ## | |
d9898ee8 | 2467 | |
b0322a85 CE |
2468 | ac_ext=c |
2469 | ac_cpp='$CPP $CPPFLAGS' | |
2470 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2471 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2472 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2473 | |
2474 | ||
2475 | ||
2476 | ||
2477 | ||
d50284c4 | 2478 | am__api_version='1.15' |
d9898ee8 | 2479 | |
d9898ee8 | 2480 | ac_aux_dir= |
dd184caf | 2481 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2482 | if test -f "$ac_dir/install-sh"; then | |
d9898ee8 | 2483 | ac_aux_dir=$ac_dir |
2484 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2485 | break | |
dd184caf | 2486 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2487 | ac_aux_dir=$ac_dir |
2488 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2489 | break | |
dd184caf | 2490 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2491 | ac_aux_dir=$ac_dir |
2492 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2493 | break | |
2494 | fi | |
2495 | done | |
2496 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2497 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
d9898ee8 | 2498 | fi |
dd184caf | 2499 | |
2500 | # These three variables are undocumented and unsupported, | |
2501 | # and are intended to be withdrawn in a future Autoconf release. | |
2502 | # They can cause serious problems if a builder's source tree is in a directory | |
2503 | # whose full name contains unusual characters. | |
2504 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2505 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2506 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2507 | ||
d9898ee8 | 2508 | |
2509 | # Find a good install program. We prefer a C program (faster), | |
2510 | # so one script is as good as another. But avoid the broken or | |
2511 | # incompatible versions: | |
2512 | # SysV /etc/install, /usr/sbin/install | |
2513 | # SunOS /usr/etc/install | |
2514 | # IRIX /sbin/install | |
2515 | # AIX /bin/install | |
2516 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2517 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2518 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2519 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2520 | # OS/2's system install, which has a completely different semantic | |
2521 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2522 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2524 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2525 | if test -z "$INSTALL"; then |
b0322a85 | 2526 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2527 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2528 | else |
2529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2530 | for as_dir in $PATH | |
2531 | do | |
2532 | IFS=$as_save_IFS | |
2533 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2534 | # Account for people who put trailing slashes in PATH elements. |
2535 | case $as_dir/ in #(( | |
2536 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2537 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2538 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2539 | /usr/ucb/* ) ;; |
2540 | *) | |
2541 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2542 | # Don't use installbsd from OSF since it installs stuff as root | |
2543 | # by default. | |
2544 | for ac_prog in ginstall scoinst install; do | |
2545 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2546 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2547 | if test $ac_prog = install && |
2548 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2549 | # AIX install. It has an incompatible calling convention. | |
2550 | : | |
2551 | elif test $ac_prog = install && | |
2552 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2553 | # program-specific install script used by HP pwplus--don't use. | |
2554 | : | |
2555 | else | |
8d138742 CE |
2556 | rm -rf conftest.one conftest.two conftest.dir |
2557 | echo one > conftest.one | |
2558 | echo two > conftest.two | |
2559 | mkdir conftest.dir | |
2560 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2561 | test -s conftest.one && test -s conftest.two && | |
2562 | test -s conftest.dir/conftest.one && | |
2563 | test -s conftest.dir/conftest.two | |
2564 | then | |
2565 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2566 | break 3 | |
2567 | fi | |
d9898ee8 | 2568 | fi |
2569 | fi | |
2570 | done | |
2571 | done | |
2572 | ;; | |
2573 | esac | |
8d138742 | 2574 | |
b0322a85 | 2575 | done |
dd184caf | 2576 | IFS=$as_save_IFS |
d9898ee8 | 2577 | |
8d138742 | 2578 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2579 | |
2580 | fi | |
2581 | if test "${ac_cv_path_install+set}" = set; then | |
2582 | INSTALL=$ac_cv_path_install | |
2583 | else | |
dd184caf | 2584 | # As a last resort, use the slow shell script. Don't cache a |
2585 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2586 | # break other packages using the cache if that directory is |
dd184caf | 2587 | # removed, or if the value is a relative name. |
d9898ee8 | 2588 | INSTALL=$ac_install_sh |
2589 | fi | |
2590 | fi | |
b0322a85 | 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2592 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2593 | |
2594 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2595 | # It thinks the first close brace ends the variable substitution. | |
2596 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2597 | ||
2598 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2599 | ||
2600 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2601 | ||
b0322a85 | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2603 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2604 | # Reject unsafe characters in $srcdir or the absolute working directory |
2605 | # name. Accept space and tab only in the latter. | |
2606 | am_lf=' | |
2607 | ' | |
2608 | case `pwd` in | |
2609 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2610 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2611 | esac |
2612 | case $srcdir in | |
2613 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2614 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2615 | esac |
2616 | ||
b0322a85 | 2617 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2618 | # arguments. Must try -L first in case configure is actually a |
2619 | # symlink; some systems play weird games with the mod time of symlinks | |
2620 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2621 | # directory). | |
2622 | if ( | |
b0322a85 CE |
2623 | am_has_slept=no |
2624 | for am_try in 1 2; do | |
2625 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2626 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2627 | if test "$*" = "X"; then | |
2628 | # -L didn't work. | |
2629 | set X `ls -t "$srcdir/configure" conftest.file` | |
2630 | fi | |
2631 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2632 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2633 | ||
2634 | # If neither matched, then we have a broken ls. This can happen | |
2635 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2636 | # broken ls alias from the environment. This has actually | |
2637 | # happened. Such a system could not be considered "sane". | |
2638 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2639 | alias in your environment" "$LINENO" 5 | |
2640 | fi | |
2641 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2642 | break | |
2643 | fi | |
2644 | # Just in case. | |
2645 | sleep 1 | |
2646 | am_has_slept=yes | |
2647 | done | |
d9898ee8 | 2648 | test "$2" = conftest.file |
2649 | ) | |
2650 | then | |
2651 | # Ok. | |
2652 | : | |
2653 | else | |
b0322a85 CE |
2654 | as_fn_error $? "newly created file is older than distributed files! |
2655 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2656 | fi |
b0322a85 | 2657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2658 | $as_echo "yes" >&6; } |
b0322a85 CE |
2659 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2660 | # generated files are strictly newer. | |
2661 | am_sleep_pid= | |
2662 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2663 | ( sleep 1 ) & | |
2664 | am_sleep_pid=$! | |
2665 | fi | |
2666 | ||
2667 | rm -f conftest.file | |
2668 | ||
d9898ee8 | 2669 | test "$program_prefix" != NONE && |
dd184caf | 2670 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2671 | # Use a double $ so make ignores it. |
2672 | test "$program_suffix" != NONE && | |
dd184caf | 2673 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2674 | # Double any \ or $. |
d9898ee8 | 2675 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2676 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2677 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2678 | |
d50284c4 CE |
2679 | # Expand $ac_aux_dir to an absolute path. |
2680 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2681 | |
8d138742 CE |
2682 | if test x"${MISSING+set}" != xset; then |
2683 | case $am_aux_dir in | |
2684 | *\ * | *\ *) | |
2685 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2686 | *) | |
2687 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2688 | esac | |
2689 | fi | |
d9898ee8 | 2690 | # Use eval to expand $SHELL |
b0322a85 CE |
2691 | if eval "$MISSING --is-lightweight"; then |
2692 | am_missing_run="$MISSING " | |
d9898ee8 | 2693 | else |
2694 | am_missing_run= | |
b0322a85 CE |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2696 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2697 | fi |
2698 | ||
d50284c4 | 2699 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2700 | case $am_aux_dir in |
2701 | *\ * | *\ *) | |
2702 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2703 | *) | |
2704 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2705 | esac | |
2706 | fi | |
2707 | ||
b0322a85 CE |
2708 | # Installed binaries are usually stripped using 'strip' when the user |
2709 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2710 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2711 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2712 | if test "$cross_compiling" != no; then |
2713 | if test -n "$ac_tool_prefix"; then | |
2714 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2715 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2717 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2718 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2719 | $as_echo_n "(cached) " >&6 |
2720 | else | |
2721 | if test -n "$STRIP"; then | |
2722 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2723 | else | |
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2725 | for as_dir in $PATH | |
2726 | do | |
2727 | IFS=$as_save_IFS | |
2728 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2729 | for ac_exec_ext in '' $ac_executable_extensions; do |
2730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2731 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2733 | break 2 |
2734 | fi | |
2735 | done | |
b0322a85 | 2736 | done |
8d138742 CE |
2737 | IFS=$as_save_IFS |
2738 | ||
2739 | fi | |
2740 | fi | |
2741 | STRIP=$ac_cv_prog_STRIP | |
2742 | if test -n "$STRIP"; then | |
b0322a85 | 2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2744 | $as_echo "$STRIP" >&6; } |
2745 | else | |
b0322a85 | 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2747 | $as_echo "no" >&6; } |
2748 | fi | |
2749 | ||
2750 | ||
2751 | fi | |
2752 | if test -z "$ac_cv_prog_STRIP"; then | |
2753 | ac_ct_STRIP=$STRIP | |
2754 | # Extract the first word of "strip", so it can be a program name with args. | |
2755 | set dummy strip; ac_word=$2 | |
b0322a85 | 2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2757 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2758 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2759 | $as_echo_n "(cached) " >&6 |
2760 | else | |
2761 | if test -n "$ac_ct_STRIP"; then | |
2762 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2763 | else | |
2764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2765 | for as_dir in $PATH | |
2766 | do | |
2767 | IFS=$as_save_IFS | |
2768 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2769 | for ac_exec_ext in '' $ac_executable_extensions; do |
2770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2771 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2773 | break 2 |
2774 | fi | |
2775 | done | |
b0322a85 | 2776 | done |
8d138742 CE |
2777 | IFS=$as_save_IFS |
2778 | ||
2779 | fi | |
2780 | fi | |
2781 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2782 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2784 | $as_echo "$ac_ct_STRIP" >&6; } |
2785 | else | |
b0322a85 | 2786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2787 | $as_echo "no" >&6; } |
2788 | fi | |
2789 | ||
2790 | if test "x$ac_ct_STRIP" = x; then | |
2791 | STRIP=":" | |
2792 | else | |
2793 | case $cross_compiling:$ac_tool_warned in | |
2794 | yes:) | |
b0322a85 | 2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2797 | ac_tool_warned=yes ;; | |
2798 | esac | |
2799 | STRIP=$ac_ct_STRIP | |
2800 | fi | |
2801 | else | |
2802 | STRIP="$ac_cv_prog_STRIP" | |
2803 | fi | |
2804 | ||
d9898ee8 | 2805 | fi |
8d138742 | 2806 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 | 2807 | |
b0322a85 | 2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2809 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2810 | if test -z "$MKDIR_P"; then |
b0322a85 | 2811 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2812 | $as_echo_n "(cached) " >&6 |
dd184caf | 2813 | else |
2814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2815 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2816 | do | |
2817 | IFS=$as_save_IFS | |
2818 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2819 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2820 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2821 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2822 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2823 | 'mkdir (GNU coreutils) '* | \ | |
2824 | 'mkdir (coreutils) '* | \ | |
2825 | 'mkdir (fileutils) '4.1*) | |
2826 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2827 | break 3;; | |
2828 | esac | |
2829 | done | |
2830 | done | |
b0322a85 | 2831 | done |
dd184caf | 2832 | IFS=$as_save_IFS |
2833 | ||
2834 | fi | |
2835 | ||
b0322a85 | 2836 | test -d ./--version && rmdir ./--version |
dd184caf | 2837 | if test "${ac_cv_path_mkdir+set}" = set; then |
2838 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2839 | else |
dd184caf | 2840 | # As a last resort, use the slow shell script. Don't cache a |
2841 | # value for MKDIR_P within a source directory, because that will | |
2842 | # break other packages using the cache if that directory is | |
2843 | # removed, or if the value is a relative name. | |
dd184caf | 2844 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2845 | fi |
2846 | fi | |
b0322a85 | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2848 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2849 | |
d9898ee8 | 2850 | for ac_prog in gawk mawk nawk awk |
2851 | do | |
2852 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2853 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2855 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2856 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2857 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2858 | else |
2859 | if test -n "$AWK"; then | |
2860 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2861 | else | |
2862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2863 | for as_dir in $PATH | |
2864 | do | |
2865 | IFS=$as_save_IFS | |
2866 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2867 | for ac_exec_ext in '' $ac_executable_extensions; do |
2868 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2869 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2871 | break 2 |
2872 | fi | |
2873 | done | |
b0322a85 | 2874 | done |
dd184caf | 2875 | IFS=$as_save_IFS |
d9898ee8 | 2876 | |
2877 | fi | |
2878 | fi | |
2879 | AWK=$ac_cv_prog_AWK | |
2880 | if test -n "$AWK"; then | |
b0322a85 | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2882 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2883 | else |
b0322a85 | 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2885 | $as_echo "no" >&6; } |
d9898ee8 | 2886 | fi |
2887 | ||
dd184caf | 2888 | |
d9898ee8 | 2889 | test -n "$AWK" && break |
2890 | done | |
2891 | ||
b0322a85 | 2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2893 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2894 | set x ${MAKE-make} | |
2895 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2896 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2897 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2898 | else |
2899 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2900 | SHELL = /bin/sh |
d9898ee8 | 2901 | all: |
dd184caf | 2902 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2903 | _ACEOF |
b0322a85 | 2904 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2905 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2906 | *@@@%%%=?*=@@@%%%*) | |
2907 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2908 | *) | |
2909 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2910 | esac | |
d9898ee8 | 2911 | rm -f conftest.make |
2912 | fi | |
dd184caf | 2913 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2915 | $as_echo "yes" >&6; } |
d9898ee8 | 2916 | SET_MAKE= |
2917 | else | |
b0322a85 | 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2919 | $as_echo "no" >&6; } |
d9898ee8 | 2920 | SET_MAKE="MAKE=${MAKE-make}" |
2921 | fi | |
2922 | ||
2923 | rm -rf .tst 2>/dev/null | |
2924 | mkdir .tst 2>/dev/null | |
2925 | if test -d .tst; then | |
2926 | am__leading_dot=. | |
2927 | else | |
2928 | am__leading_dot=_ | |
2929 | fi | |
2930 | rmdir .tst 2>/dev/null | |
2931 | ||
b0322a85 CE |
2932 | # Check whether --enable-silent-rules was given. |
2933 | if test "${enable_silent_rules+set}" = set; then : | |
2934 | enableval=$enable_silent_rules; | |
2935 | fi | |
2936 | ||
2937 | case $enable_silent_rules in # ((( | |
2938 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2939 | no) AM_DEFAULT_VERBOSITY=1;; | |
2940 | *) AM_DEFAULT_VERBOSITY=1;; | |
2941 | esac | |
2942 | am_make=${MAKE-make} | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2944 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2945 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2946 | $as_echo_n "(cached) " >&6 | |
2947 | else | |
2948 | if $as_echo 'TRUE=$(BAR$(V)) | |
2949 | BAR0=false | |
2950 | BAR1=true | |
2951 | V=1 | |
2952 | am__doit: | |
2953 | @$(TRUE) | |
2954 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2955 | am_cv_make_support_nested_variables=yes | |
2956 | else | |
2957 | am_cv_make_support_nested_variables=no | |
2958 | fi | |
2959 | fi | |
2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2961 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2962 | if test $am_cv_make_support_nested_variables = yes; then | |
2963 | AM_V='$(V)' | |
2964 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2965 | else | |
2966 | AM_V=$AM_DEFAULT_VERBOSITY | |
2967 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2968 | fi | |
2969 | AM_BACKSLASH='\' | |
2970 | ||
dd184caf | 2971 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2972 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2973 | # is not polluted with repeated "-I." | |
2974 | am__isrc=' -I$(srcdir)' | |
2975 | # test to see if srcdir already configured | |
2976 | if test -f $srcdir/config.status; then | |
b0322a85 | 2977 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2978 | fi |
d9898ee8 | 2979 | fi |
2980 | ||
2981 | # test whether we have cygpath | |
2982 | if test -z "$CYGPATH_W"; then | |
2983 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2984 | CYGPATH_W='cygpath -w' | |
2985 | else | |
2986 | CYGPATH_W=echo | |
2987 | fi | |
2988 | fi | |
2989 | ||
2990 | ||
2991 | # Define the identity of the package. | |
2992 | PACKAGE='courier-authlib' | |
d50284c4 | 2993 | VERSION='0.66.4' |
d9898ee8 | 2994 | |
2995 | ||
2996 | cat >>confdefs.h <<_ACEOF | |
2997 | #define PACKAGE "$PACKAGE" | |
2998 | _ACEOF | |
2999 | ||
3000 | ||
3001 | cat >>confdefs.h <<_ACEOF | |
3002 | #define VERSION "$VERSION" | |
3003 | _ACEOF | |
3004 | ||
3005 | # Some tools Automake needs. | |
3006 | ||
3007 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3008 | ||
3009 | ||
3010 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3011 | ||
3012 | ||
3013 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3014 | ||
3015 | ||
3016 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3017 | ||
3018 | ||
3019 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3020 | ||
b0322a85 CE |
3021 | # For better backward compatibility. To be removed once Automake 1.9.x |
3022 | # dies out for good. For more background, see: | |
3023 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3024 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3025 | mkdir_p='$(MKDIR_P)' | |
3026 | ||
d50284c4 CE |
3027 | # We need awk for the "check" target (and possibly the TAP driver). The |
3028 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
3029 | # Always define AMTAR for backward compatibility. Yes, it's still used |
3030 | # in the wild :-( We should find a proper way to deprecate it ... | |
3031 | AMTAR='$${TAR-tar}' | |
3032 | ||
3033 | ||
3034 | # We'll loop over all known methods to create a tar archive until one works. | |
3035 | _am_tools='gnutar pax cpio none' | |
d9898ee8 | 3036 | |
b0322a85 | 3037 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
d9898ee8 | 3038 | |
d9898ee8 | 3039 | |
3040 | ||
3041 | ||
3042 | ||
3043 | ||
d50284c4 CE |
3044 | # POSIX will say in a future version that running "rm -f" with no argument |
3045 | # is OK; and we want to be able to make that assumption in our Makefile | |
3046 | # recipes. So use an aggressive probe to check that the usage we want is | |
3047 | # actually supported "in the wild" to an acceptable degree. | |
3048 | # See automake bug#10828. | |
3049 | # To make any issue more visible, cause the running configure to be aborted | |
3050 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3051 | # user can still override this though. | |
3052 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3053 | cat >&2 <<'END' | |
3054 | Oops! | |
3055 | ||
3056 | Your 'rm' program seems unable to run without file operands specified | |
3057 | on the command line, even when the '-f' option is present. This is contrary | |
3058 | to the behaviour of most rm programs out there, and not conforming with | |
3059 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3060 | ||
3061 | Please tell bug-automake@gnu.org about your system, including the value | |
3062 | of your $PATH and any error possibly output before this message. This | |
3063 | can help us improve future automake versions. | |
3064 | ||
3065 | END | |
3066 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3067 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3068 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3069 | echo >&2 | |
3070 | else | |
3071 | cat >&2 <<'END' | |
3072 | Aborting the configuration process, to ensure you take notice of the issue. | |
3073 | ||
3074 | You can download and install GNU coreutils to get an 'rm' implementation | |
3075 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3076 | ||
3077 | If you want to complete the configuration process using your problematic | |
3078 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3079 | to "yes", and re-run configure. | |
3080 | ||
3081 | END | |
3082 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3083 | fi | |
3084 | fi | |
3085 | ||
b0322a85 CE |
3086 | ac_config_headers="$ac_config_headers courier_auth_config.h" |
3087 | ||
d9898ee8 | 3088 | >confdefs.h # Kill PACKAGE_ macros |
3089 | ||
3090 | LPATH="$PATH:/usr/local/bin" | |
3091 | ||
3092 | for ac_prog in gawk mawk nawk awk | |
3093 | do | |
3094 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3095 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3097 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3098 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 3099 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3100 | else |
3101 | if test -n "$AWK"; then | |
3102 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3103 | else | |
3104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3105 | for as_dir in $PATH | |
3106 | do | |
3107 | IFS=$as_save_IFS | |
3108 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3109 | for ac_exec_ext in '' $ac_executable_extensions; do |
3110 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3111 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 3112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3113 | break 2 |
3114 | fi | |
3115 | done | |
b0322a85 | 3116 | done |
dd184caf | 3117 | IFS=$as_save_IFS |
d9898ee8 | 3118 | |
3119 | fi | |
3120 | fi | |
3121 | AWK=$ac_cv_prog_AWK | |
3122 | if test -n "$AWK"; then | |
b0322a85 | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 3124 | $as_echo "$AWK" >&6; } |
d9898ee8 | 3125 | else |
b0322a85 | 3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3127 | $as_echo "no" >&6; } |
d9898ee8 | 3128 | fi |
3129 | ||
dd184caf | 3130 | |
d9898ee8 | 3131 | test -n "$AWK" && break |
3132 | done | |
3133 | ||
3134 | ac_ext=c | |
3135 | ac_cpp='$CPP $CPPFLAGS' | |
3136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3139 | if test -n "$ac_tool_prefix"; then | |
3140 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3141 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3143 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3144 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3145 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3146 | else |
3147 | if test -n "$CC"; then | |
3148 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3149 | else | |
3150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3151 | for as_dir in $PATH | |
3152 | do | |
3153 | IFS=$as_save_IFS | |
3154 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3155 | for ac_exec_ext in '' $ac_executable_extensions; do |
3156 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3157 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 3158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3159 | break 2 |
3160 | fi | |
3161 | done | |
b0322a85 | 3162 | done |
dd184caf | 3163 | IFS=$as_save_IFS |
d9898ee8 | 3164 | |
3165 | fi | |
3166 | fi | |
3167 | CC=$ac_cv_prog_CC | |
3168 | if test -n "$CC"; then | |
b0322a85 | 3169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3170 | $as_echo "$CC" >&6; } |
d9898ee8 | 3171 | else |
b0322a85 | 3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3173 | $as_echo "no" >&6; } |
d9898ee8 | 3174 | fi |
3175 | ||
dd184caf | 3176 | |
d9898ee8 | 3177 | fi |
3178 | if test -z "$ac_cv_prog_CC"; then | |
3179 | ac_ct_CC=$CC | |
3180 | # Extract the first word of "gcc", so it can be a program name with args. | |
3181 | set dummy gcc; ac_word=$2 | |
b0322a85 | 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3183 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3184 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3185 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3186 | else |
3187 | if test -n "$ac_ct_CC"; then | |
3188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3189 | else | |
3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3191 | for as_dir in $PATH | |
3192 | do | |
3193 | IFS=$as_save_IFS | |
3194 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
3196 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3197 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3198 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3199 | break 2 |
3200 | fi | |
3201 | done | |
b0322a85 | 3202 | done |
dd184caf | 3203 | IFS=$as_save_IFS |
d9898ee8 | 3204 | |
3205 | fi | |
3206 | fi | |
3207 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3208 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3210 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3211 | else |
b0322a85 | 3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3213 | $as_echo "no" >&6; } |
d9898ee8 | 3214 | fi |
3215 | ||
dd184caf | 3216 | if test "x$ac_ct_CC" = x; then |
3217 | CC="" | |
3218 | else | |
3219 | case $cross_compiling:$ac_tool_warned in | |
3220 | yes:) | |
b0322a85 | 3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3222 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3223 | ac_tool_warned=yes ;; |
3224 | esac | |
3225 | CC=$ac_ct_CC | |
3226 | fi | |
d9898ee8 | 3227 | else |
3228 | CC="$ac_cv_prog_CC" | |
3229 | fi | |
3230 | ||
3231 | if test -z "$CC"; then | |
dd184caf | 3232 | if test -n "$ac_tool_prefix"; then |
3233 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3234 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3236 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3237 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3238 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3239 | else |
3240 | if test -n "$CC"; then | |
3241 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3242 | else | |
3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3244 | for as_dir in $PATH | |
3245 | do | |
3246 | IFS=$as_save_IFS | |
3247 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3248 | for ac_exec_ext in '' $ac_executable_extensions; do |
3249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3250 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3252 | break 2 |
3253 | fi | |
3254 | done | |
b0322a85 | 3255 | done |
dd184caf | 3256 | IFS=$as_save_IFS |
d9898ee8 | 3257 | |
3258 | fi | |
3259 | fi | |
3260 | CC=$ac_cv_prog_CC | |
3261 | if test -n "$CC"; then | |
b0322a85 | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3263 | $as_echo "$CC" >&6; } |
d9898ee8 | 3264 | else |
b0322a85 | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3266 | $as_echo "no" >&6; } |
d9898ee8 | 3267 | fi |
3268 | ||
d9898ee8 | 3269 | |
dd184caf | 3270 | fi |
d9898ee8 | 3271 | fi |
3272 | if test -z "$CC"; then | |
3273 | # Extract the first word of "cc", so it can be a program name with args. | |
3274 | set dummy cc; ac_word=$2 | |
b0322a85 | 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3276 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3277 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3278 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3279 | else |
3280 | if test -n "$CC"; then | |
3281 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3282 | else | |
3283 | ac_prog_rejected=no | |
3284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3285 | for as_dir in $PATH | |
3286 | do | |
3287 | IFS=$as_save_IFS | |
3288 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3289 | for ac_exec_ext in '' $ac_executable_extensions; do |
3290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3291 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3292 | ac_prog_rejected=yes | |
3293 | continue | |
3294 | fi | |
3295 | ac_cv_prog_CC="cc" | |
b0322a85 | 3296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3297 | break 2 |
3298 | fi | |
3299 | done | |
b0322a85 | 3300 | done |
dd184caf | 3301 | IFS=$as_save_IFS |
d9898ee8 | 3302 | |
3303 | if test $ac_prog_rejected = yes; then | |
3304 | # We found a bogon in the path, so make sure we never use it. | |
3305 | set dummy $ac_cv_prog_CC | |
3306 | shift | |
3307 | if test $# != 0; then | |
3308 | # We chose a different compiler from the bogus one. | |
3309 | # However, it has the same basename, so the bogon will be chosen | |
3310 | # first if we set CC to just the basename; use the full file name. | |
3311 | shift | |
3312 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3313 | fi | |
3314 | fi | |
3315 | fi | |
3316 | fi | |
3317 | CC=$ac_cv_prog_CC | |
3318 | if test -n "$CC"; then | |
b0322a85 | 3319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3320 | $as_echo "$CC" >&6; } |
d9898ee8 | 3321 | else |
b0322a85 | 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3323 | $as_echo "no" >&6; } |
d9898ee8 | 3324 | fi |
3325 | ||
dd184caf | 3326 | |
d9898ee8 | 3327 | fi |
3328 | if test -z "$CC"; then | |
3329 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3330 | for ac_prog in cl.exe |
d9898ee8 | 3331 | do |
3332 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3333 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3335 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3336 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3337 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3338 | else |
3339 | if test -n "$CC"; then | |
3340 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3341 | else | |
3342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3343 | for as_dir in $PATH | |
3344 | do | |
3345 | IFS=$as_save_IFS | |
3346 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3347 | for ac_exec_ext in '' $ac_executable_extensions; do |
3348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3349 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3351 | break 2 |
3352 | fi | |
3353 | done | |
b0322a85 | 3354 | done |
dd184caf | 3355 | IFS=$as_save_IFS |
d9898ee8 | 3356 | |
3357 | fi | |
3358 | fi | |
3359 | CC=$ac_cv_prog_CC | |
3360 | if test -n "$CC"; then | |
b0322a85 | 3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3362 | $as_echo "$CC" >&6; } |
d9898ee8 | 3363 | else |
b0322a85 | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3365 | $as_echo "no" >&6; } |
d9898ee8 | 3366 | fi |
3367 | ||
dd184caf | 3368 | |
d9898ee8 | 3369 | test -n "$CC" && break |
3370 | done | |
3371 | fi | |
3372 | if test -z "$CC"; then | |
3373 | ac_ct_CC=$CC | |
dd184caf | 3374 | for ac_prog in cl.exe |
d9898ee8 | 3375 | do |
3376 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3377 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3379 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3380 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3381 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3382 | else |
3383 | if test -n "$ac_ct_CC"; then | |
3384 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3385 | else | |
3386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3387 | for as_dir in $PATH | |
3388 | do | |
3389 | IFS=$as_save_IFS | |
3390 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3391 | for ac_exec_ext in '' $ac_executable_extensions; do |
3392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3393 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3395 | break 2 |
3396 | fi | |
3397 | done | |
b0322a85 | 3398 | done |
dd184caf | 3399 | IFS=$as_save_IFS |
d9898ee8 | 3400 | |
3401 | fi | |
3402 | fi | |
3403 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3404 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3406 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3407 | else |
b0322a85 | 3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3409 | $as_echo "no" >&6; } |
d9898ee8 | 3410 | fi |
3411 | ||
dd184caf | 3412 | |
d9898ee8 | 3413 | test -n "$ac_ct_CC" && break |
3414 | done | |
3415 | ||
dd184caf | 3416 | if test "x$ac_ct_CC" = x; then |
3417 | CC="" | |
3418 | else | |
3419 | case $cross_compiling:$ac_tool_warned in | |
3420 | yes:) | |
b0322a85 | 3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3422 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3423 | ac_tool_warned=yes ;; |
3424 | esac | |
3425 | CC=$ac_ct_CC | |
3426 | fi | |
d9898ee8 | 3427 | fi |
3428 | ||
3429 | fi | |
3430 | ||
3431 | ||
b0322a85 | 3432 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3434 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3435 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3436 | |
3437 | # Provide some information about the compiler. | |
b0322a85 | 3438 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3439 | set X $ac_compile |
3440 | ac_compiler=$2 | |
b0322a85 CE |
3441 | for ac_option in --version -v -V -qversion; do |
3442 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3443 | case "(($ac_try" in |
3444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3445 | *) ac_try_echo=$ac_try;; | |
3446 | esac | |
b0322a85 CE |
3447 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3448 | $as_echo "$ac_try_echo"; } >&5 | |
3449 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3450 | ac_status=$? |
b0322a85 CE |
3451 | if test -s conftest.err; then |
3452 | sed '10a\ | |
3453 | ... rest of stderr output deleted ... | |
3454 | 10q' conftest.err >conftest.er1 | |
3455 | cat conftest.er1 >&5 | |
3456 | fi | |
3457 | rm -f conftest.er1 conftest.err | |
3458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3459 | test $ac_status = 0; } | |
3460 | done | |
d9898ee8 | 3461 | |
b0322a85 | 3462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3463 | /* end confdefs.h. */ |
3464 | ||
3465 | int | |
3466 | main () | |
3467 | { | |
3468 | ||
3469 | ; | |
3470 | return 0; | |
3471 | } | |
3472 | _ACEOF | |
3473 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3474 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3475 | # Try to create an executable without -o first, disregard a.out. |
3476 | # It will help us diagnose broken compilers, and finding out an intuition | |
3477 | # of exeext. | |
b0322a85 CE |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3479 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3480 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3481 | ||
3482 | # The possible output files: | |
3483 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3484 | ||
dd184caf | 3485 | ac_rmfiles= |
3486 | for ac_file in $ac_files | |
3487 | do | |
3488 | case $ac_file in | |
8d138742 | 3489 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3490 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3491 | esac | |
3492 | done | |
3493 | rm -f $ac_rmfiles | |
3494 | ||
b0322a85 | 3495 | if { { ac_try="$ac_link_default" |
dd184caf | 3496 | case "(($ac_try" in |
3497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3498 | *) ac_try_echo=$ac_try;; | |
3499 | esac | |
b0322a85 CE |
3500 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3501 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3502 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3503 | ac_status=$? |
b0322a85 CE |
3504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3505 | test $ac_status = 0; }; then : | |
dd184caf | 3506 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3507 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3508 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3509 | # so that the user can short-circuit this test for compilers unknown to | |
3510 | # Autoconf. | |
3511 | for ac_file in $ac_files '' | |
d9898ee8 | 3512 | do |
3513 | test -f "$ac_file" || continue | |
3514 | case $ac_file in | |
8d138742 | 3515 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3516 | ;; |
3517 | [ab].out ) | |
3518 | # We found the default executable, but exeext='' is most | |
3519 | # certainly right. | |
3520 | break;; | |
3521 | *.* ) | |
b0322a85 | 3522 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3523 | then :; else |
3524 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3525 | fi | |
3526 | # We set ac_cv_exeext here because the later test for it is not | |
3527 | # safe: cross compilers may not add the suffix if given an `-o' | |
3528 | # argument, so we may need to know it at that point already. | |
3529 | # Even if this section looks crufty: it has the advantage of | |
3530 | # actually working. | |
d9898ee8 | 3531 | break;; |
3532 | * ) | |
3533 | break;; | |
3534 | esac | |
3535 | done | |
dd184caf | 3536 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3537 | ||
d9898ee8 | 3538 | else |
dd184caf | 3539 | ac_file='' |
3540 | fi | |
b0322a85 CE |
3541 | if test -z "$ac_file"; then : |
3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3543 | $as_echo "no" >&6; } | |
3544 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3545 | sed 's/^/| /' conftest.$ac_ext >&5 |
3546 | ||
b0322a85 | 3547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3549 | as_fn_error 77 "C compiler cannot create executables |
3550 | See \`config.log' for more details" "$LINENO" 5; } | |
3551 | else | |
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3553 | $as_echo "yes" >&6; } | |
d9898ee8 | 3554 | fi |
b0322a85 CE |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3556 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3558 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3559 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3560 | |
8d138742 | 3561 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3562 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3564 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3565 | if { { ac_try="$ac_link" |
dd184caf | 3566 | case "(($ac_try" in |
3567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3568 | *) ac_try_echo=$ac_try;; | |
3569 | esac | |
b0322a85 CE |
3570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3571 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3572 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3573 | ac_status=$? |
b0322a85 CE |
3574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3575 | test $ac_status = 0; }; then : | |
d9898ee8 | 3576 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3577 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3578 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3579 | # `rm'. | |
3580 | for ac_file in conftest.exe conftest conftest.*; do | |
3581 | test -f "$ac_file" || continue | |
3582 | case $ac_file in | |
8d138742 | 3583 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3584 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3585 | break;; |
3586 | * ) break;; | |
3587 | esac | |
3588 | done | |
3589 | else | |
b0322a85 | 3590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3592 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3593 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3594 | fi |
b0322a85 CE |
3595 | rm -f conftest conftest$ac_cv_exeext |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3597 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3598 | |
3599 | rm -f conftest.$ac_ext | |
3600 | EXEEXT=$ac_cv_exeext | |
3601 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3603 | /* end confdefs.h. */ | |
3604 | #include <stdio.h> | |
3605 | int | |
3606 | main () | |
3607 | { | |
3608 | FILE *f = fopen ("conftest.out", "w"); | |
3609 | return ferror (f) || fclose (f) != 0; | |
3610 | ||
3611 | ; | |
3612 | return 0; | |
3613 | } | |
3614 | _ACEOF | |
3615 | ac_clean_files="$ac_clean_files conftest.out" | |
3616 | # Check that the compiler produces executables we can run. If not, either | |
3617 | # the compiler is broken, or we cross compile. | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3619 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3620 | if test "$cross_compiling" != yes; then | |
3621 | { { ac_try="$ac_link" | |
3622 | case "(($ac_try" in | |
3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3624 | *) ac_try_echo=$ac_try;; | |
3625 | esac | |
3626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3627 | $as_echo "$ac_try_echo"; } >&5 | |
3628 | (eval "$ac_link") 2>&5 | |
3629 | ac_status=$? | |
3630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3631 | test $ac_status = 0; } | |
3632 | if { ac_try='./conftest$ac_cv_exeext' | |
3633 | { { case "(($ac_try" in | |
3634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3635 | *) ac_try_echo=$ac_try;; | |
3636 | esac | |
3637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3638 | $as_echo "$ac_try_echo"; } >&5 | |
3639 | (eval "$ac_try") 2>&5 | |
3640 | ac_status=$? | |
3641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3642 | test $ac_status = 0; }; }; then | |
3643 | cross_compiling=no | |
3644 | else | |
3645 | if test "$cross_compiling" = maybe; then | |
3646 | cross_compiling=yes | |
3647 | else | |
3648 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3649 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3650 | as_fn_error $? "cannot run C compiled programs. | |
3651 | If you meant to cross compile, use \`--host'. | |
3652 | See \`config.log' for more details" "$LINENO" 5; } | |
3653 | fi | |
3654 | fi | |
3655 | fi | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3657 | $as_echo "$cross_compiling" >&6; } | |
3658 | ||
3659 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3660 | ac_clean_files=$ac_clean_files_save | |
3661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3662 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3663 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3664 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3665 | else |
b0322a85 | 3666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3667 | /* end confdefs.h. */ |
3668 | ||
3669 | int | |
3670 | main () | |
3671 | { | |
3672 | ||
3673 | ; | |
3674 | return 0; | |
3675 | } | |
3676 | _ACEOF | |
3677 | rm -f conftest.o conftest.obj | |
b0322a85 | 3678 | if { { ac_try="$ac_compile" |
dd184caf | 3679 | case "(($ac_try" in |
3680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3681 | *) ac_try_echo=$ac_try;; | |
3682 | esac | |
b0322a85 CE |
3683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3684 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3685 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3686 | ac_status=$? |
b0322a85 CE |
3687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3688 | test $ac_status = 0; }; then : | |
dd184caf | 3689 | for ac_file in conftest.o conftest.obj conftest.*; do |
3690 | test -f "$ac_file" || continue; | |
d9898ee8 | 3691 | case $ac_file in |
8d138742 | 3692 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3693 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3694 | break;; | |
3695 | esac | |
3696 | done | |
3697 | else | |
8d138742 | 3698 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3699 | sed 's/^/| /' conftest.$ac_ext >&5 |
3700 | ||
b0322a85 | 3701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3703 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3704 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3705 | fi |
d9898ee8 | 3706 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3707 | fi | |
b0322a85 | 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3709 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3710 | OBJEXT=$ac_cv_objext |
3711 | ac_objext=$OBJEXT | |
b0322a85 | 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3713 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3714 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3715 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3716 | else |
b0322a85 | 3717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3718 | /* end confdefs.h. */ |
3719 | ||
3720 | int | |
3721 | main () | |
3722 | { | |
3723 | #ifndef __GNUC__ | |
3724 | choke me | |
3725 | #endif | |
3726 | ||
3727 | ; | |
3728 | return 0; | |
3729 | } | |
3730 | _ACEOF | |
b0322a85 | 3731 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3732 | ac_compiler_gnu=yes |
3733 | else | |
b0322a85 | 3734 | ac_compiler_gnu=no |
d9898ee8 | 3735 | fi |
dd184caf | 3736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3737 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3738 | ||
3739 | fi | |
b0322a85 | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3741 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3742 | if test $ac_compiler_gnu = yes; then | |
3743 | GCC=yes | |
3744 | else | |
3745 | GCC= | |
3746 | fi | |
d9898ee8 | 3747 | ac_test_CFLAGS=${CFLAGS+set} |
3748 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3750 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3751 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3752 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3753 | else |
dd184caf | 3754 | ac_save_c_werror_flag=$ac_c_werror_flag |
3755 | ac_c_werror_flag=yes | |
3756 | ac_cv_prog_cc_g=no | |
3757 | CFLAGS="-g" | |
b0322a85 | 3758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3759 | /* end confdefs.h. */ |
3760 | ||
3761 | int | |
3762 | main () | |
3763 | { | |
3764 | ||
3765 | ; | |
3766 | return 0; | |
3767 | } | |
3768 | _ACEOF | |
b0322a85 | 3769 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3770 | ac_cv_prog_cc_g=yes |
3771 | else | |
b0322a85 CE |
3772 | CFLAGS="" |
3773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
dd184caf | 3774 | /* end confdefs.h. */ |
3775 | ||
3776 | int | |
3777 | main () | |
3778 | { | |
3779 | ||
3780 | ; | |
3781 | return 0; | |
3782 | } | |
3783 | _ACEOF | |
b0322a85 | 3784 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3785 | |
b0322a85 CE |
3786 | else |
3787 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3788 | CFLAGS="-g" |
b0322a85 | 3789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3790 | /* end confdefs.h. */ |
3791 | ||
3792 | int | |
3793 | main () | |
3794 | { | |
3795 | ||
3796 | ; | |
3797 | return 0; | |
3798 | } | |
3799 | _ACEOF | |
b0322a85 | 3800 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3801 | ac_cv_prog_cc_g=yes |
d9898ee8 | 3802 | fi |
dd184caf | 3803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3804 | fi | |
dd184caf | 3805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3806 | fi | |
dd184caf | 3807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3808 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3809 | fi |
b0322a85 | 3810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3811 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3812 | if test "$ac_test_CFLAGS" = set; then |
3813 | CFLAGS=$ac_save_CFLAGS | |
3814 | elif test $ac_cv_prog_cc_g = yes; then | |
3815 | if test "$GCC" = yes; then | |
3816 | CFLAGS="-g -O2" | |
3817 | else | |
3818 | CFLAGS="-g" | |
3819 | fi | |
3820 | else | |
3821 | if test "$GCC" = yes; then | |
3822 | CFLAGS="-O2" | |
3823 | else | |
3824 | CFLAGS= | |
3825 | fi | |
3826 | fi | |
b0322a85 | 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3828 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3829 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3830 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3831 | else |
dd184caf | 3832 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3833 | ac_save_CC=$CC |
b0322a85 | 3834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3835 | /* end confdefs.h. */ |
3836 | #include <stdarg.h> | |
3837 | #include <stdio.h> | |
b0322a85 | 3838 | struct stat; |
d9898ee8 | 3839 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3840 | struct buf { int x; }; | |
3841 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3842 | static char *e (p, i) | |
3843 | char **p; | |
3844 | int i; | |
3845 | { | |
3846 | return p[i]; | |
3847 | } | |
3848 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3849 | { | |
3850 | char *s; | |
3851 | va_list v; | |
3852 | va_start (v,p); | |
3853 | s = g (p, va_arg (v,int)); | |
3854 | va_end (v); | |
3855 | return s; | |
3856 | } | |
3857 | ||
3858 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3859 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3860 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3861 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3862 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3863 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3864 | that's true only with -std. */ |
d9898ee8 | 3865 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3866 | ||
dd184caf | 3867 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3868 | inside strings and character constants. */ | |
3869 | #define FOO(x) 'x' | |
3870 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3871 | ||
d9898ee8 | 3872 | int test (int i, double x); |
3873 | struct s1 {int (*f) (int a);}; | |
3874 | struct s2 {int (*f) (double a);}; | |
3875 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3876 | int argc; | |
3877 | char **argv; | |
3878 | int | |
3879 | main () | |
3880 | { | |
3881 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
dd184caf | 3886 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3887 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3888 | do |
3889 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3890 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3891 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3892 | fi |
dd184caf | 3893 | rm -f core conftest.err conftest.$ac_objext |
3894 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3895 | done |
dd184caf | 3896 | rm -f conftest.$ac_ext |
d9898ee8 | 3897 | CC=$ac_save_CC |
3898 | ||
3899 | fi | |
dd184caf | 3900 | # AC_CACHE_VAL |
3901 | case "x$ac_cv_prog_cc_c89" in | |
3902 | x) | |
b0322a85 | 3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3904 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3905 | xno) |
b0322a85 | 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3907 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3908 | *) |
dd184caf | 3909 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3911 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3912 | esac |
b0322a85 | 3913 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3914 | |
b0322a85 | 3915 | fi |
d9898ee8 | 3916 | |
d9898ee8 | 3917 | ac_ext=c |
3918 | ac_cpp='$CPP $CPPFLAGS' | |
3919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3922 | |
3923 | ac_ext=c | |
3924 | ac_cpp='$CPP $CPPFLAGS' | |
3925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3929 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3930 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3931 | $as_echo_n "(cached) " >&6 | |
3932 | else | |
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3934 | /* end confdefs.h. */ | |
3935 | ||
3936 | int | |
3937 | main () | |
3938 | { | |
3939 | ||
3940 | ; | |
3941 | return 0; | |
3942 | } | |
3943 | _ACEOF | |
3944 | # Make sure it works both with $CC and with simple cc. | |
3945 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3946 | # compilers refuse to overwrite an existing .o file with -o, | |
3947 | # though they will create one. | |
3948 | am_cv_prog_cc_c_o=yes | |
3949 | for am_i in 1 2; do | |
3950 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3951 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3952 | ac_status=$? | |
3953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3954 | (exit $ac_status); } \ | |
3955 | && test -f conftest2.$ac_objext; then | |
3956 | : OK | |
3957 | else | |
3958 | am_cv_prog_cc_c_o=no | |
3959 | break | |
3960 | fi | |
3961 | done | |
3962 | rm -f core conftest* | |
3963 | unset am_i | |
3964 | fi | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3966 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3967 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3968 | # Losing compiler, so override with the script. | |
3969 | # FIXME: It is wrong to rewrite CC. | |
3970 | # But if we don't then we get into trouble of one sort or another. | |
3971 | # A longer-term fix would be to have automake use am__CC in this case, | |
3972 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3973 | CC="$am_aux_dir/compile $CC" | |
3974 | fi | |
3975 | ac_ext=c | |
3976 | ac_cpp='$CPP $CPPFLAGS' | |
3977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3980 | ||
d9898ee8 | 3981 | DEPDIR="${am__leading_dot}deps" |
3982 | ||
dd184caf | 3983 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3984 | |
3985 | ||
3986 | am_make=${MAKE-make} | |
3987 | cat > confinc << 'END' | |
3988 | am__doit: | |
8d138742 | 3989 | @echo this is the am__doit target |
d9898ee8 | 3990 | .PHONY: am__doit |
3991 | END | |
3992 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3994 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3995 | am__include="#" |
3996 | am__quote= | |
3997 | _am_result=none | |
3998 | # First try GNU make style include. | |
3999 | echo "include confinc" > confmf | |
b0322a85 | 4000 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
4001 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4002 | *the\ am__doit\ target*) | |
4003 | am__include=include | |
4004 | am__quote= | |
4005 | _am_result=GNU | |
4006 | ;; | |
4007 | esac | |
d9898ee8 | 4008 | # Now try BSD make style include. |
4009 | if test "$am__include" = "#"; then | |
4010 | echo '.include "confinc"' > confmf | |
8d138742 CE |
4011 | case `$am_make -s -f confmf 2> /dev/null` in #( |
4012 | *the\ am__doit\ target*) | |
4013 | am__include=.include | |
4014 | am__quote="\"" | |
4015 | _am_result=BSD | |
4016 | ;; | |
4017 | esac | |
d9898ee8 | 4018 | fi |
4019 | ||
4020 | ||
b0322a85 | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 4022 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 4023 | rm -f confinc confmf |
4024 | ||
dd184caf | 4025 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 4026 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 4027 | enableval=$enable_dependency_tracking; |
4028 | fi | |
d9898ee8 | 4029 | |
d9898ee8 | 4030 | if test "x$enable_dependency_tracking" != xno; then |
4031 | am_depcomp="$ac_aux_dir/depcomp" | |
4032 | AMDEPBACKSLASH='\' | |
b0322a85 | 4033 | am__nodep='_no' |
d9898ee8 | 4034 | fi |
dd184caf | 4035 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 4036 | AMDEP_TRUE= |
4037 | AMDEP_FALSE='#' | |
4038 | else | |
4039 | AMDEP_TRUE='#' | |
4040 | AMDEP_FALSE= | |
4041 | fi | |
4042 | ||
4043 | ||
4044 | ||
d9898ee8 | 4045 | depcc="$CC" am_compiler_list= |
4046 | ||
b0322a85 | 4047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 4048 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 4049 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 4050 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4051 | else |
4052 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4053 | # We make a subdir and do the tests there. Otherwise we can end up | |
4054 | # making bogus files that we don't know about and never remove. For | |
4055 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
4056 | # making a dummy file named 'D' -- because '-MD' means "put the output |
4057 | # in D". | |
4058 | rm -rf conftest.dir | |
d9898ee8 | 4059 | mkdir conftest.dir |
4060 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4061 | # using a relative directory. | |
4062 | cp "$am_depcomp" conftest.dir | |
4063 | cd conftest.dir | |
4064 | # We will build objects and dependencies in a subdirectory because | |
4065 | # it helps to detect inapplicable dependency modes. For instance | |
4066 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4067 | # side effect of compilation, but ICC will put the dependencies in | |
4068 | # the current directory while Tru64 will put them in the object | |
4069 | # directory. | |
4070 | mkdir sub | |
4071 | ||
4072 | am_cv_CC_dependencies_compiler_type=none | |
4073 | if test "$am_compiler_list" = ""; then | |
4074 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4075 | fi | |
8d138742 CE |
4076 | am__universal=false |
4077 | case " $depcc " in #( | |
4078 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4079 | esac | |
4080 | ||
d9898ee8 | 4081 | for depmode in $am_compiler_list; do |
4082 | # Setup a source with many dependencies, because some compilers | |
4083 | # like to wrap large dependency lists on column 80 (with \), and | |
4084 | # we should not choose a depcomp mode which is confused by this. | |
4085 | # | |
4086 | # We need to recreate these files for each test, as the compiler may | |
4087 | # overwrite some of them when testing with obscure command lines. | |
4088 | # This happens at least with the AIX C compiler. | |
4089 | : > sub/conftest.c | |
4090 | for i in 1 2 3 4 5 6; do | |
4091 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
4092 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4093 | # Solaris 10 /bin/sh. | |
4094 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 4095 | done |
4096 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4097 | ||
b0322a85 | 4098 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 4099 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
4100 | # handle '-M -o', and we need to detect this. Also, some Intel |
4101 | # versions had trouble with output in subdirs. | |
8d138742 CE |
4102 | am__obj=sub/conftest.${OBJEXT-o} |
4103 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 4104 | case $depmode in |
8d138742 CE |
4105 | gcc) |
4106 | # This depmode causes a compiler race in universal mode. | |
4107 | test "$am__universal" = false || continue | |
4108 | ;; | |
d9898ee8 | 4109 | nosideeffect) |
b0322a85 CE |
4110 | # After this tag, mechanisms are not by side-effect, so they'll |
4111 | # only be used when explicitly requested. | |
d9898ee8 | 4112 | if test "x$enable_dependency_tracking" = xyes; then |
4113 | continue | |
4114 | else | |
4115 | break | |
4116 | fi | |
4117 | ;; | |
b0322a85 CE |
4118 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4119 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
4120 | # not run yet. These depmodes are late enough in the game, and |
4121 | # so weak that their functioning should not be impacted. | |
4122 | am__obj=conftest.${OBJEXT-o} | |
4123 | am__minus_obj= | |
4124 | ;; | |
d9898ee8 | 4125 | none) break ;; |
4126 | esac | |
d9898ee8 | 4127 | if depmode=$depmode \ |
8d138742 | 4128 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 4129 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 4130 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 4131 | >/dev/null 2>conftest.err && |
dd184caf | 4132 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4133 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 4134 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4135 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4136 | # icc doesn't choke on unknown options, it will just issue warnings | |
4137 | # or remarks (even with -Werror). So we grep stderr for any message | |
4138 | # that says an option was ignored or not supported. | |
4139 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4140 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4141 | # The diagnosis changed in icc 8.0: | |
4142 | # icc: Command line remark: option '-MP' not supported | |
4143 | if (grep 'ignoring option' conftest.err || | |
4144 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4145 | am_cv_CC_dependencies_compiler_type=$depmode | |
4146 | break | |
4147 | fi | |
4148 | fi | |
4149 | done | |
4150 | ||
4151 | cd .. | |
4152 | rm -rf conftest.dir | |
4153 | else | |
4154 | am_cv_CC_dependencies_compiler_type=none | |
4155 | fi | |
4156 | ||
4157 | fi | |
b0322a85 | 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 4159 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 4160 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4161 | ||
dd184caf | 4162 | if |
d9898ee8 | 4163 | test "x$enable_dependency_tracking" != xno \ |
4164 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4165 | am__fastdepCC_TRUE= | |
4166 | am__fastdepCC_FALSE='#' | |
4167 | else | |
4168 | am__fastdepCC_TRUE='#' | |
4169 | am__fastdepCC_FALSE= | |
4170 | fi | |
4171 | ||
4172 | ||
4173 | ac_ext=c | |
4174 | ac_cpp='$CPP $CPPFLAGS' | |
4175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 4178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 | 4179 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
d9898ee8 | 4180 | # On Suns, sometimes $CPP names a directory. |
4181 | if test -n "$CPP" && test -d "$CPP"; then | |
4182 | CPP= | |
4183 | fi | |
4184 | if test -z "$CPP"; then | |
b0322a85 | 4185 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 4186 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4187 | else |
4188 | # Double quotes because CPP needs to be expanded | |
4189 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4190 | do | |
4191 | ac_preproc_ok=false | |
4192 | for ac_c_preproc_warn_flag in '' yes | |
4193 | do | |
4194 | # Use a header file that comes with gcc, so configuring glibc | |
4195 | # with a fresh cross-compiler works. | |
4196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4197 | # <limits.h> exists even on freestanding compilers. | |
4198 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4199 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4201 | /* end confdefs.h. */ |
4202 | #ifdef __STDC__ | |
4203 | # include <limits.h> | |
4204 | #else | |
4205 | # include <assert.h> | |
4206 | #endif | |
4207 | Syntax error | |
4208 | _ACEOF | |
b0322a85 | 4209 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4210 | |
b0322a85 | 4211 | else |
d9898ee8 | 4212 | # Broken: fails on valid input. |
4213 | continue | |
4214 | fi | |
b0322a85 | 4215 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4216 | |
dd184caf | 4217 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4218 | # can be detected and how. |
b0322a85 | 4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4220 | /* end confdefs.h. */ |
4221 | #include <ac_nonexistent.h> | |
4222 | _ACEOF | |
b0322a85 | 4223 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4224 | # Broken: success on invalid input. |
4225 | continue | |
4226 | else | |
d9898ee8 | 4227 | # Passes both tests. |
4228 | ac_preproc_ok=: | |
4229 | break | |
4230 | fi | |
b0322a85 | 4231 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4232 | |
4233 | done | |
4234 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4235 | rm -f conftest.i conftest.err conftest.$ac_ext |
4236 | if $ac_preproc_ok; then : | |
d9898ee8 | 4237 | break |
4238 | fi | |
4239 | ||
4240 | done | |
4241 | ac_cv_prog_CPP=$CPP | |
4242 | ||
4243 | fi | |
4244 | CPP=$ac_cv_prog_CPP | |
4245 | else | |
4246 | ac_cv_prog_CPP=$CPP | |
4247 | fi | |
b0322a85 | 4248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 | 4249 | $as_echo "$CPP" >&6; } |
d9898ee8 | 4250 | ac_preproc_ok=false |
4251 | for ac_c_preproc_warn_flag in '' yes | |
4252 | do | |
4253 | # Use a header file that comes with gcc, so configuring glibc | |
4254 | # with a fresh cross-compiler works. | |
4255 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4256 | # <limits.h> exists even on freestanding compilers. | |
4257 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4258 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4260 | /* end confdefs.h. */ |
4261 | #ifdef __STDC__ | |
4262 | # include <limits.h> | |
4263 | #else | |
4264 | # include <assert.h> | |
4265 | #endif | |
4266 | Syntax error | |
4267 | _ACEOF | |
b0322a85 | 4268 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4269 | |
b0322a85 | 4270 | else |
d9898ee8 | 4271 | # Broken: fails on valid input. |
4272 | continue | |
4273 | fi | |
b0322a85 | 4274 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4275 | |
dd184caf | 4276 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 | 4277 | # can be detected and how. |
b0322a85 | 4278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 4279 | /* end confdefs.h. */ |
4280 | #include <ac_nonexistent.h> | |
4281 | _ACEOF | |
b0322a85 | 4282 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 4283 | # Broken: success on invalid input. |
4284 | continue | |
4285 | else | |
d9898ee8 | 4286 | # Passes both tests. |
4287 | ac_preproc_ok=: | |
4288 | break | |
4289 | fi | |
b0322a85 | 4290 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 4291 | |
4292 | done | |
4293 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
4294 | rm -f conftest.i conftest.err conftest.$ac_ext |
4295 | if $ac_preproc_ok; then : | |
4296 | ||
d9898ee8 | 4297 | else |
b0322a85 | 4298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 4299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
4300 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4301 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 4302 | fi |
4303 | ||
4304 | ac_ext=c | |
4305 | ac_cpp='$CPP $CPPFLAGS' | |
4306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4309 | ||
d9898ee8 | 4310 | |
b0322a85 | 4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 4312 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 4313 | LN_S=$as_ln_s |
4314 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 4316 | $as_echo "yes" >&6; } |
d9898ee8 | 4317 | else |
b0322a85 | 4318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 4319 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 4320 | fi |
4321 | ||
4322 | ||
4323 | ||
4324 | for ac_prog in perl5 perl | |
4325 | do | |
4326 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4327 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4329 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4330 | if ${ac_cv_path_SYSCONFTOOL_PERL+:} false; then : |
8d138742 | 4331 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4332 | else |
4333 | case $SYSCONFTOOL_PERL in | |
4334 | [\\/]* | ?:[\\/]*) | |
4335 | ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. | |
4336 | ;; | |
4337 | *) | |
4338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4339 | for as_dir in $PATH | |
4340 | do | |
4341 | IFS=$as_save_IFS | |
4342 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4343 | for ac_exec_ext in '' $ac_executable_extensions; do |
4344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 4345 | ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 4346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 4347 | break 2 |
4348 | fi | |
4349 | done | |
b0322a85 | 4350 | done |
dd184caf | 4351 | IFS=$as_save_IFS |
d9898ee8 | 4352 | |
4353 | ;; | |
4354 | esac | |
4355 | fi | |
4356 | SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL | |
d9898ee8 | 4357 | if test -n "$SYSCONFTOOL_PERL"; then |
b0322a85 | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5 |
8d138742 | 4359 | $as_echo "$SYSCONFTOOL_PERL" >&6; } |
d9898ee8 | 4360 | else |
b0322a85 | 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4362 | $as_echo "no" >&6; } |
d9898ee8 | 4363 | fi |
4364 | ||
dd184caf | 4365 | |
d9898ee8 | 4366 | test -n "$SYSCONFTOOL_PERL" && break |
4367 | done | |
4368 | test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" | |
4369 | ||
4370 | ||
4371 | if test "$SYSCONFTOOL_PERL" = "perl" | |
4372 | then | |
b0322a85 | 4373 | as_fn_error $? "perl not found - please install perl" "$LINENO" 5 |
d9898ee8 | 4374 | fi |
4375 | ||
b0322a85 | 4376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5 |
8d138742 | 4377 | $as_echo_n "checking for sysconftool...... " >&6; } |
d9898ee8 | 4378 | SYSCONFTOOL="" |
4379 | for sysconf_dir in $ac_aux_dir . .. ../.. | |
4380 | do | |
4381 | if test -f $srcdir/$sysconf_dir/sysconftool | |
4382 | then | |
4383 | SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool | |
4384 | break | |
4385 | fi | |
4386 | done | |
4387 | ||
4388 | if test "$SYSCONFTOOL" = "" | |
4389 | then | |
b0322a85 | 4390 | as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5 |
d9898ee8 | 4391 | fi |
4392 | ||
b0322a85 | 4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5 |
8d138742 | 4394 | $as_echo "$SYSCONFTOOL" >&6; } |
d9898ee8 | 4395 | SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" |
4396 | ||
4397 | ||
4398 | ||
8d138742 CE |
4399 | case `pwd` in |
4400 | *\ * | *\ *) | |
b0322a85 | 4401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 | 4402 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
dd184caf | 4403 | esac |
d9898ee8 | 4404 | |
dd184caf | 4405 | |
d9898ee8 | 4406 | |
d50284c4 CE |
4407 | macro_version='2.4.6' |
4408 | macro_revision='2.4.6' | |
8d138742 CE |
4409 | |
4410 | ||
4411 | ||
4412 | ||
d9898ee8 | 4413 | |
d9898ee8 | 4414 | |
4415 | ||
4416 | ||
d9898ee8 | 4417 | |
dd184caf | 4418 | |
d9898ee8 | 4419 | |
dd184caf | 4420 | |
dd184caf | 4421 | |
d50284c4 | 4422 | ltmain=$ac_aux_dir/ltmain.sh |
d9898ee8 | 4423 | |
4424 | # Make sure we can run config.sub. | |
dd184caf | 4425 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4426 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4427 | |
b0322a85 | 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4429 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4430 | if ${ac_cv_build+:} false; then : |
8d138742 | 4431 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4432 | else |
dd184caf | 4433 | ac_build_alias=$build_alias |
4434 | test "x$ac_build_alias" = x && | |
4435 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4436 | test "x$ac_build_alias" = x && | |
b0322a85 | 4437 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4438 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4439 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4440 | |
4441 | fi | |
b0322a85 | 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4443 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4444 | case $ac_cv_build in |
4445 | *-*-*) ;; | |
b0322a85 | 4446 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4447 | esac |
d9898ee8 | 4448 | build=$ac_cv_build |
dd184caf | 4449 | ac_save_IFS=$IFS; IFS='-' |
4450 | set x $ac_cv_build | |
4451 | shift | |
4452 | build_cpu=$1 | |
4453 | build_vendor=$2 | |
4454 | shift; shift | |
4455 | # Remember, the first character of IFS is used to create $*, | |
4456 | # except with old shells: | |
4457 | build_os=$* | |
4458 | IFS=$ac_save_IFS | |
4459 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4460 | ||
4461 | ||
b0322a85 | 4462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4463 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4464 | if ${ac_cv_host+:} false; then : |
8d138742 | 4465 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4466 | else |
dd184caf | 4467 | if test "x$host_alias" = x; then |
4468 | ac_cv_host=$ac_cv_build | |
4469 | else | |
4470 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4471 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4472 | fi |
d9898ee8 | 4473 | |
4474 | fi | |
b0322a85 | 4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4476 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4477 | case $ac_cv_host in |
4478 | *-*-*) ;; | |
b0322a85 | 4479 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4480 | esac |
d9898ee8 | 4481 | host=$ac_cv_host |
dd184caf | 4482 | ac_save_IFS=$IFS; IFS='-' |
4483 | set x $ac_cv_host | |
4484 | shift | |
4485 | host_cpu=$1 | |
4486 | host_vendor=$2 | |
4487 | shift; shift | |
4488 | # Remember, the first character of IFS is used to create $*, | |
4489 | # except with old shells: | |
4490 | host_os=$* | |
4491 | IFS=$ac_save_IFS | |
4492 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4493 | ||
4494 | ||
b0322a85 CE |
4495 | # Backslashify metacharacters that are still active within |
4496 | # double-quoted strings. | |
4497 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4498 | ||
4499 | # Same as above, but do not quote variable references. | |
4500 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4501 | ||
4502 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4503 | # double_quote_subst'ed string. | |
4504 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4505 | ||
4506 | # Sed substitution to delay expansion of an escaped single quote. | |
4507 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4508 | ||
4509 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4510 | no_glob_subst='s/\*/\\\*/g' | |
4511 | ||
4512 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4513 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4514 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4515 | ||
4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4517 | $as_echo_n "checking how to print strings... " >&6; } | |
4518 | # Test print first, because it will be a builtin if present. | |
4519 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4520 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4521 | ECHO='print -r --' | |
4522 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4523 | ECHO='printf %s\n' | |
4524 | else | |
4525 | # Use this function as a fallback that always works. | |
4526 | func_fallback_echo () | |
4527 | { | |
4528 | eval 'cat <<_LTECHO_EOF | |
4529 | $1 | |
4530 | _LTECHO_EOF' | |
4531 | } | |
4532 | ECHO='func_fallback_echo' | |
4533 | fi | |
4534 | ||
4535 | # func_echo_all arg... | |
4536 | # Invoke $ECHO with all args, space-separated. | |
4537 | func_echo_all () | |
4538 | { | |
4539 | $ECHO "" | |
4540 | } | |
4541 | ||
d50284c4 | 4542 | case $ECHO in |
b0322a85 CE |
4543 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4544 | $as_echo "printf" >&6; } ;; | |
4545 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4546 | $as_echo "print -r" >&6; } ;; | |
4547 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4548 | $as_echo "cat" >&6; } ;; | |
4549 | esac | |
4550 | ||
4551 | ||
4552 | ||
4553 | ||
4554 | ||
4555 | ||
4556 | ||
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | ||
4563 | ||
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4565 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4566 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4567 | $as_echo_n "(cached) " >&6 |
4568 | else | |
4569 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4570 | for ac_i in 1 2 3 4 5 6 7; do | |
4571 | ac_script="$ac_script$as_nl$ac_script" | |
4572 | done | |
4573 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4574 | { ac_script=; unset ac_script;} |
8d138742 CE |
4575 | if test -z "$SED"; then |
4576 | ac_path_SED_found=false | |
4577 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4579 | for as_dir in $PATH |
4580 | do | |
4581 | IFS=$as_save_IFS | |
4582 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4583 | for ac_prog in sed gsed; do |
d9898ee8 | 4584 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4585 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4586 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4587 | # Check for GNU ac_path_SED and select it if it is found. |
4588 | # Check for GNU $ac_path_SED | |
4589 | case `"$ac_path_SED" --version 2>&1` in | |
dd184caf | 4590 | *GNU*) |
8d138742 | 4591 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
dd184caf | 4592 | *) |
4593 | ac_count=0 | |
8d138742 | 4594 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4595 | while : |
4596 | do | |
4597 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4598 | mv "conftest.tmp" "conftest.in" | |
4599 | cp "conftest.in" "conftest.nl" | |
8d138742 CE |
4600 | $as_echo '' >> "conftest.nl" |
4601 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
dd184caf | 4602 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
b0322a85 | 4603 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 | 4604 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
dd184caf | 4605 | # Best one so far, save it but keep looking for a better one |
8d138742 CE |
4606 | ac_cv_path_SED="$ac_path_SED" |
4607 | ac_path_SED_max=$ac_count | |
dd184caf | 4608 | fi |
4609 | # 10*(2^10) chars as input seems more than enough | |
4610 | test $ac_count -gt 10 && break | |
4611 | done | |
4612 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4613 | esac | |
4614 | ||
8d138742 CE |
4615 | $ac_path_SED_found && break 3 |
4616 | done | |
dd184caf | 4617 | done |
b0322a85 | 4618 | done |
dd184caf | 4619 | IFS=$as_save_IFS |
8d138742 | 4620 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4621 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
8d138742 CE |
4622 | fi |
4623 | else | |
4624 | ac_cv_path_SED=$SED | |
dd184caf | 4625 | fi |
4626 | ||
dd184caf | 4627 | fi |
b0322a85 | 4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4629 | $as_echo "$ac_cv_path_SED" >&6; } |
4630 | SED="$ac_cv_path_SED" | |
4631 | rm -f conftest.sed | |
4632 | ||
4633 | test -z "$SED" && SED=sed | |
4634 | Xsed="$SED -e 1s/^X//" | |
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | ||
4642 | ||
4643 | ||
4644 | ||
4645 | ||
b0322a85 | 4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4647 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4648 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 CE |
4649 | $as_echo_n "(cached) " >&6 |
4650 | else | |
4651 | if test -z "$GREP"; then | |
4652 | ac_path_GREP_found=false | |
4653 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4655 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4656 | do | |
4657 | IFS=$as_save_IFS | |
4658 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4659 | for ac_prog in grep ggrep; do |
8d138742 CE |
4660 | for ac_exec_ext in '' $ac_executable_extensions; do |
4661 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4662 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 CE |
4663 | # Check for GNU ac_path_GREP and select it if it is found. |
4664 | # Check for GNU $ac_path_GREP | |
4665 | case `"$ac_path_GREP" --version 2>&1` in | |
4666 | *GNU*) | |
4667 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4668 | *) | |
4669 | ac_count=0 | |
4670 | $as_echo_n 0123456789 >"conftest.in" | |
4671 | while : | |
4672 | do | |
4673 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4674 | mv "conftest.tmp" "conftest.in" | |
4675 | cp "conftest.in" "conftest.nl" | |
4676 | $as_echo 'GREP' >> "conftest.nl" | |
4677 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4679 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4680 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4681 | # Best one so far, save it but keep looking for a better one | |
4682 | ac_cv_path_GREP="$ac_path_GREP" | |
4683 | ac_path_GREP_max=$ac_count | |
4684 | fi | |
4685 | # 10*(2^10) chars as input seems more than enough | |
4686 | test $ac_count -gt 10 && break | |
4687 | done | |
4688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4689 | esac | |
dd184caf | 4690 | |
8d138742 CE |
4691 | $ac_path_GREP_found && break 3 |
4692 | done | |
4693 | done | |
b0322a85 | 4694 | done |
8d138742 CE |
4695 | IFS=$as_save_IFS |
4696 | if test -z "$ac_cv_path_GREP"; then | |
b0322a85 | 4697 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4698 | fi |
dd184caf | 4699 | else |
4700 | ac_cv_path_GREP=$GREP | |
4701 | fi | |
4702 | ||
dd184caf | 4703 | fi |
b0322a85 | 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4705 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4706 | GREP="$ac_cv_path_GREP" |
4707 | ||
d9898ee8 | 4708 | |
b0322a85 | 4709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4710 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4711 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4712 | $as_echo_n "(cached) " >&6 |
dd184caf | 4713 | else |
4714 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4715 | then ac_cv_path_EGREP="$GREP -E" | |
4716 | else | |
8d138742 | 4717 | if test -z "$EGREP"; then |
dd184caf | 4718 | ac_path_EGREP_found=false |
8d138742 CE |
4719 | # Loop through the user's path and test for each of PROGNAME-LIST |
4720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4721 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4722 | do | |
4723 | IFS=$as_save_IFS | |
4724 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4725 | for ac_prog in egrep; do |
8d138742 CE |
4726 | for ac_exec_ext in '' $ac_executable_extensions; do |
4727 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4728 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4729 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4730 | # Check for GNU $ac_path_EGREP |
4731 | case `"$ac_path_EGREP" --version 2>&1` in | |
4732 | *GNU*) | |
4733 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4734 | *) | |
4735 | ac_count=0 | |
8d138742 | 4736 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4737 | while : |
4738 | do | |
4739 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4740 | mv "conftest.tmp" "conftest.in" | |
4741 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4742 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4743 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4744 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4745 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4746 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4747 | # Best one so far, save it but keep looking for a better one | |
4748 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4749 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4750 | fi |
dd184caf | 4751 | # 10*(2^10) chars as input seems more than enough |
4752 | test $ac_count -gt 10 && break | |
4753 | done | |
4754 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4755 | esac | |
4756 | ||
8d138742 CE |
4757 | $ac_path_EGREP_found && break 3 |
4758 | done | |
dd184caf | 4759 | done |
b0322a85 | 4760 | done |
dd184caf | 4761 | IFS=$as_save_IFS |
8d138742 | 4762 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4763 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4764 | fi |
4765 | else | |
4766 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4767 | fi |
4768 | ||
8d138742 | 4769 | fi |
dd184caf | 4770 | fi |
b0322a85 | 4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4772 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4773 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4774 | |
8d138742 | 4775 | |
b0322a85 | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4777 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4778 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4779 | $as_echo_n "(cached) " >&6 |
dd184caf | 4780 | else |
8d138742 CE |
4781 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4782 | then ac_cv_path_FGREP="$GREP -F" | |
4783 | else | |
4784 | if test -z "$FGREP"; then | |
4785 | ac_path_FGREP_found=false | |
4786 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4788 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4789 | do | |
4790 | IFS=$as_save_IFS | |
4791 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4792 | for ac_prog in fgrep; do |
8d138742 CE |
4793 | for ac_exec_ext in '' $ac_executable_extensions; do |
4794 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4795 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4796 | # Check for GNU ac_path_FGREP and select it if it is found. |
4797 | # Check for GNU $ac_path_FGREP | |
4798 | case `"$ac_path_FGREP" --version 2>&1` in | |
4799 | *GNU*) | |
4800 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4801 | *) | |
4802 | ac_count=0 | |
4803 | $as_echo_n 0123456789 >"conftest.in" | |
4804 | while : | |
4805 | do | |
4806 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4807 | mv "conftest.tmp" "conftest.in" | |
4808 | cp "conftest.in" "conftest.nl" | |
4809 | $as_echo 'FGREP' >> "conftest.nl" | |
4810 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4811 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4812 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4813 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4814 | # Best one so far, save it but keep looking for a better one | |
4815 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4816 | ac_path_FGREP_max=$ac_count | |
4817 | fi | |
4818 | # 10*(2^10) chars as input seems more than enough | |
4819 | test $ac_count -gt 10 && break | |
4820 | done | |
4821 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4822 | esac | |
dd184caf | 4823 | |
8d138742 CE |
4824 | $ac_path_FGREP_found && break 3 |
4825 | done | |
4826 | done | |
b0322a85 | 4827 | done |
8d138742 CE |
4828 | IFS=$as_save_IFS |
4829 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4830 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4831 | fi |
4832 | else | |
4833 | ac_cv_path_FGREP=$FGREP | |
4834 | fi | |
dd184caf | 4835 | |
4836 | fi | |
d9898ee8 | 4837 | fi |
b0322a85 | 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4839 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4840 | FGREP="$ac_cv_path_FGREP" | |
4841 | ||
4842 | ||
4843 | test -z "$GREP" && GREP=grep | |
4844 | ||
4845 | ||
4846 | ||
4847 | ||
4848 | ||
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | ||
4854 | ||
4855 | ||
4856 | ||
4857 | ||
4858 | ||
4859 | ||
d9898ee8 | 4860 | |
4861 | ||
4862 | ||
dd184caf | 4863 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4864 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4865 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4866 | else |
4867 | with_gnu_ld=no | |
dd184caf | 4868 | fi |
4869 | ||
d9898ee8 | 4870 | ac_prog=ld |
d50284c4 | 4871 | if test yes = "$GCC"; then |
d9898ee8 | 4872 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4874 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4875 | case $host in |
4876 | *-*-mingw*) | |
d50284c4 | 4877 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4878 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4879 | *) | |
4880 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4881 | esac | |
4882 | case $ac_prog in | |
4883 | # Accept absolute paths. | |
4884 | [\\/]* | ?:[\\/]*) | |
4885 | re_direlt='/[^/][^/]*/\.\./' | |
4886 | # Canonicalize the pathname of ld | |
8d138742 CE |
4887 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4888 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4889 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4890 | done |
d50284c4 | 4891 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4892 | ;; |
4893 | "") | |
4894 | # If it fails, then pretend we aren't using GCC. | |
4895 | ac_prog=ld | |
4896 | ;; | |
4897 | *) | |
4898 | # If it is relative, then search for the first ld in PATH. | |
4899 | with_gnu_ld=unknown | |
4900 | ;; | |
4901 | esac | |
d50284c4 | 4902 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4904 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4905 | else |
b0322a85 | 4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4907 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4908 | fi |
b0322a85 | 4909 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4910 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4911 | else |
4912 | if test -z "$LD"; then | |
d50284c4 | 4913 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4914 | for ac_dir in $PATH; do |
d50284c4 | 4915 | IFS=$lt_save_ifs |
d9898ee8 | 4916 | test -z "$ac_dir" && ac_dir=. |
4917 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4918 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4919 | # Check to see if the program is GNU ld. I'd rather use --version, |
4920 | # but apparently some variants of GNU ld only accept -v. | |
4921 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4922 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4923 | *GNU* | *'with BFD'*) | |
d50284c4 | 4924 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4925 | ;; |
4926 | *) | |
d50284c4 | 4927 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4928 | ;; |
4929 | esac | |
4930 | fi | |
4931 | done | |
d50284c4 | 4932 | IFS=$lt_save_ifs |
d9898ee8 | 4933 | else |
d50284c4 | 4934 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4935 | fi |
4936 | fi | |
4937 | ||
d50284c4 | 4938 | LD=$lt_cv_path_LD |
d9898ee8 | 4939 | if test -n "$LD"; then |
b0322a85 | 4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4941 | $as_echo "$LD" >&6; } |
d9898ee8 | 4942 | else |
b0322a85 | 4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4944 | $as_echo "no" >&6; } |
d9898ee8 | 4945 | fi |
b0322a85 CE |
4946 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4948 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4949 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4950 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4951 | else |
4952 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4953 | case `$LD -v 2>&1 </dev/null` in | |
4954 | *GNU* | *'with BFD'*) | |
4955 | lt_cv_prog_gnu_ld=yes | |
4956 | ;; | |
4957 | *) | |
4958 | lt_cv_prog_gnu_ld=no | |
4959 | ;; | |
4960 | esac | |
4961 | fi | |
b0322a85 | 4962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4963 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4964 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4965 | ||
4966 | ||
d9898ee8 | 4967 | |
8d138742 CE |
4968 | |
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
b0322a85 | 4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4975 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4976 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4977 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4978 | else |
4979 | if test -n "$NM"; then | |
4980 | # Let the user override the test. | |
d50284c4 | 4981 | lt_cv_path_NM=$NM |
d9898ee8 | 4982 | else |
d50284c4 | 4983 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4984 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4985 | lt_nm_to_check="$lt_nm_to_check nm" | |
4986 | fi | |
4987 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4988 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4989 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4990 | IFS=$lt_save_ifs |
d9898ee8 | 4991 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4992 | tmp_nm=$ac_dir/$lt_tmp_nm |
4993 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4994 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4995 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4996 | # nm: unknown option "B" ignored |
4997 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4998 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4999 | case $build_os in | |
5000 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
5001 | *) lt_bad_file=/dev/null ;; | |
5002 | esac | |
5003 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
5004 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 5005 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 5006 | break 2 |
d9898ee8 | 5007 | ;; |
5008 | *) | |
5009 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5010 | */dev/null*) | |
5011 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 5012 | break 2 |
d9898ee8 | 5013 | ;; |
5014 | *) | |
5015 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5016 | continue # so that we can try to find one that supports BSD flags | |
5017 | ;; | |
5018 | esac | |
5019 | ;; | |
5020 | esac | |
5021 | fi | |
5022 | done | |
d50284c4 | 5023 | IFS=$lt_save_ifs |
d9898ee8 | 5024 | done |
8d138742 | 5025 | : ${lt_cv_path_NM=no} |
d9898ee8 | 5026 | fi |
5027 | fi | |
b0322a85 | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 5029 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
5030 | if test no != "$lt_cv_path_NM"; then |
5031 | NM=$lt_cv_path_NM | |
8d138742 CE |
5032 | else |
5033 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
b0322a85 CE |
5034 | if test -n "$DUMPBIN"; then : |
5035 | # Let the user override the test. | |
5036 | else | |
5037 | if test -n "$ac_tool_prefix"; then | |
5038 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
5039 | do |
5040 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5041 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5043 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5044 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
5045 | $as_echo_n "(cached) " >&6 |
5046 | else | |
5047 | if test -n "$DUMPBIN"; then | |
5048 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5049 | else | |
5050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5051 | for as_dir in $PATH | |
5052 | do | |
5053 | IFS=$as_save_IFS | |
5054 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5055 | for ac_exec_ext in '' $ac_executable_extensions; do |
5056 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5057 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 5058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5059 | break 2 |
5060 | fi | |
5061 | done | |
b0322a85 | 5062 | done |
8d138742 | 5063 | IFS=$as_save_IFS |
d9898ee8 | 5064 | |
8d138742 CE |
5065 | fi |
5066 | fi | |
5067 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5068 | if test -n "$DUMPBIN"; then | |
b0322a85 | 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 | 5070 | $as_echo "$DUMPBIN" >&6; } |
d9898ee8 | 5071 | else |
b0322a85 | 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5073 | $as_echo "no" >&6; } |
5074 | fi | |
d9898ee8 | 5075 | |
d9898ee8 | 5076 | |
8d138742 CE |
5077 | test -n "$DUMPBIN" && break |
5078 | done | |
5079 | fi | |
5080 | if test -z "$DUMPBIN"; then | |
5081 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 5082 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
5083 | do |
5084 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5085 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5087 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5088 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
5089 | $as_echo_n "(cached) " >&6 |
5090 | else | |
5091 | if test -n "$ac_ct_DUMPBIN"; then | |
5092 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5093 | else | |
5094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5095 | for as_dir in $PATH | |
5096 | do | |
5097 | IFS=$as_save_IFS | |
5098 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5099 | for ac_exec_ext in '' $ac_executable_extensions; do |
5100 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5101 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 5102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5103 | break 2 |
5104 | fi | |
5105 | done | |
b0322a85 | 5106 | done |
8d138742 | 5107 | IFS=$as_save_IFS |
d9898ee8 | 5108 | |
8d138742 CE |
5109 | fi |
5110 | fi | |
5111 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5112 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
5114 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
5115 | else | |
b0322a85 | 5116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5117 | $as_echo "no" >&6; } |
5118 | fi | |
d9898ee8 | 5119 | |
d9898ee8 | 5120 | |
8d138742 CE |
5121 | test -n "$ac_ct_DUMPBIN" && break |
5122 | done | |
5123 | ||
5124 | if test "x$ac_ct_DUMPBIN" = x; then | |
5125 | DUMPBIN=":" | |
ac40fd9e | 5126 | else |
8d138742 CE |
5127 | case $cross_compiling:$ac_tool_warned in |
5128 | yes:) | |
b0322a85 | 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5130 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5131 | ac_tool_warned=yes ;; | |
5132 | esac | |
5133 | DUMPBIN=$ac_ct_DUMPBIN | |
ac40fd9e | 5134 | fi |
8d138742 | 5135 | fi |
d9898ee8 | 5136 | |
d50284c4 | 5137 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 5138 | *COFF*) |
d50284c4 | 5139 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
5140 | ;; |
5141 | *) | |
5142 | DUMPBIN=: | |
5143 | ;; | |
5144 | esac | |
5145 | fi | |
d9898ee8 | 5146 | |
d50284c4 CE |
5147 | if test : != "$DUMPBIN"; then |
5148 | NM=$DUMPBIN | |
d9898ee8 | 5149 | fi |
8d138742 CE |
5150 | fi |
5151 | test -z "$NM" && NM=nm | |
d9898ee8 | 5152 | |
d9898ee8 | 5153 | |
d9898ee8 | 5154 | |
d9898ee8 | 5155 | |
d9898ee8 | 5156 | |
d9898ee8 | 5157 | |
b0322a85 | 5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 5159 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 5160 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
5161 | $as_echo_n "(cached) " >&6 |
5162 | else | |
5163 | lt_cv_nm_interface="BSD nm" | |
5164 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 5165 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
5166 | (eval "$ac_compile" 2>conftest.err) |
5167 | cat conftest.err >&5 | |
b0322a85 | 5168 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
5169 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5170 | cat conftest.err >&5 | |
b0322a85 | 5171 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
5172 | cat conftest.out >&5 |
5173 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5174 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 5175 | fi |
8d138742 CE |
5176 | rm -f conftest* |
5177 | fi | |
b0322a85 | 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 5179 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 5180 | |
8d138742 | 5181 | # find the maximum length of command line arguments |
b0322a85 | 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 5183 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 5184 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
5185 | $as_echo_n "(cached) " >&6 |
5186 | else | |
5187 | i=0 | |
d50284c4 | 5188 | teststring=ABCD |
d9898ee8 | 5189 | |
8d138742 CE |
5190 | case $build_os in |
5191 | msdosdjgpp*) | |
5192 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5193 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5194 | # during glob expansion). Even if it were fixed, the result of this | |
5195 | # check would be larger than it should be. | |
5196 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5197 | ;; | |
d9898ee8 | 5198 | |
8d138742 CE |
5199 | gnu*) |
5200 | # Under GNU Hurd, this test is not required because there is | |
5201 | # no limit to the length of command line arguments. | |
5202 | # Libtool will interpret -1 as no limit whatsoever | |
5203 | lt_cv_sys_max_cmd_len=-1; | |
5204 | ;; | |
d9898ee8 | 5205 | |
8d138742 CE |
5206 | cygwin* | mingw* | cegcc*) |
5207 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5208 | # about 5 minutes as the teststring grows exponentially. | |
5209 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5210 | # you end up with a "frozen" computer, even though with patience | |
5211 | # the test eventually succeeds (with a max line length of 256k). | |
5212 | # Instead, let's just punt: use the minimum linelength reported by | |
5213 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5214 | lt_cv_sys_max_cmd_len=8192; | |
5215 | ;; | |
ac40fd9e | 5216 | |
b0322a85 CE |
5217 | mint*) |
5218 | # On MiNT this can take a long time and run out of memory. | |
5219 | lt_cv_sys_max_cmd_len=8192; | |
5220 | ;; | |
5221 | ||
8d138742 CE |
5222 | amigaos*) |
5223 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5224 | # So we just punt and use a minimum line length of 8192. | |
5225 | lt_cv_sys_max_cmd_len=8192; | |
5226 | ;; | |
d9898ee8 | 5227 | |
d50284c4 | 5228 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
5229 | # This has been around since 386BSD, at least. Likely further. |
5230 | if test -x /sbin/sysctl; then | |
5231 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5232 | elif test -x /usr/sbin/sysctl; then | |
5233 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5234 | else | |
5235 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5236 | fi | |
5237 | # And add a safety zone | |
5238 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5239 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 5240 | ;; |
8d138742 CE |
5241 | |
5242 | interix*) | |
5243 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5244 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 5245 | ;; |
8d138742 | 5246 | |
b0322a85 CE |
5247 | os2*) |
5248 | # The test takes a long time on OS/2. | |
5249 | lt_cv_sys_max_cmd_len=8192 | |
5250 | ;; | |
5251 | ||
8d138742 CE |
5252 | osf*) |
5253 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5254 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5255 | # nice to cause kernel panics so lets avoid the loop below. | |
5256 | # First set a reasonable default. | |
5257 | lt_cv_sys_max_cmd_len=16384 | |
5258 | # | |
5259 | if test -x /sbin/sysconfig; then | |
5260 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5261 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5262 | esac | |
5263 | fi | |
d9898ee8 | 5264 | ;; |
8d138742 CE |
5265 | sco3.2v5*) |
5266 | lt_cv_sys_max_cmd_len=102400 | |
d9898ee8 | 5267 | ;; |
8d138742 CE |
5268 | sysv5* | sco5v6* | sysv4.2uw2*) |
5269 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5270 | if test -n "$kargmax"; then | |
5271 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5272 | else | |
5273 | lt_cv_sys_max_cmd_len=32768 | |
5274 | fi | |
d9898ee8 | 5275 | ;; |
8d138742 CE |
5276 | *) |
5277 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
5278 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
5279 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
5280 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5281 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5282 | else | |
5283 | # Make teststring a little bigger before we do anything with it. | |
5284 | # a 1K string should be a reasonable start. | |
d50284c4 | 5285 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
5286 | teststring=$teststring$teststring |
5287 | done | |
5288 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5289 | # If test is not a shell built-in, we'll probably end up computing a | |
5290 | # maximum length that is only half of the actual maximum length, but | |
5291 | # we can't tell. | |
d50284c4 | 5292 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 5293 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 5294 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
5295 | do |
5296 | i=`expr $i + 1` | |
5297 | teststring=$teststring$teststring | |
5298 | done | |
5299 | # Only check the string length outside the loop. | |
5300 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5301 | teststring= | |
5302 | # Add a significant safety factor because C++ compilers can tack on | |
5303 | # massive amounts of additional arguments before passing them to the | |
5304 | # linker. It appears as though 1/2 is a usable value. | |
5305 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5306 | fi | |
d9898ee8 | 5307 | ;; |
5308 | esac | |
d9898ee8 | 5309 | |
8d138742 | 5310 | fi |
d9898ee8 | 5311 | |
d50284c4 | 5312 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
5314 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5315 | else | |
b0322a85 | 5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 5317 | $as_echo "none" >&6; } |
d9898ee8 | 5318 | fi |
8d138742 | 5319 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 5320 | |
5321 | ||
5322 | ||
5323 | ||
d9898ee8 | 5324 | |
d9898ee8 | 5325 | |
8d138742 CE |
5326 | : ${CP="cp -f"} |
5327 | : ${MV="mv -f"} | |
5328 | : ${RM="rm -f"} | |
d9898ee8 | 5329 | |
8d138742 CE |
5330 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5331 | lt_unset=unset | |
5332 | else | |
5333 | lt_unset=false | |
dd184caf | 5334 | fi |
d9898ee8 | 5335 | |
d9898ee8 | 5336 | |
8d138742 CE |
5337 | |
5338 | ||
5339 | ||
5340 | # test EBCDIC or ASCII | |
5341 | case `echo X|tr X '\101'` in | |
5342 | A) # ASCII based system | |
5343 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5344 | lt_SP2NL='tr \040 \012' | |
5345 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 5346 | ;; |
8d138742 CE |
5347 | *) # EBCDIC based system |
5348 | lt_SP2NL='tr \100 \n' | |
5349 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 5350 | ;; |
8d138742 | 5351 | esac |
d9898ee8 | 5352 | |
d9898ee8 | 5353 | |
d9898ee8 | 5354 | |
d9898ee8 | 5355 | |
d9898ee8 | 5356 | |
d9898ee8 | 5357 | |
dd184caf | 5358 | |
d9898ee8 | 5359 | |
8d138742 | 5360 | |
b0322a85 CE |
5361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5362 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5363 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5364 | $as_echo_n "(cached) " >&6 | |
5365 | else | |
5366 | case $host in | |
5367 | *-*-mingw* ) | |
5368 | case $build in | |
5369 | *-*-mingw* ) # actually msys | |
5370 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5371 | ;; | |
5372 | *-*-cygwin* ) | |
5373 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5374 | ;; | |
5375 | * ) # otherwise, assume *nix | |
5376 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5377 | ;; | |
5378 | esac | |
5379 | ;; | |
5380 | *-*-cygwin* ) | |
5381 | case $build in | |
5382 | *-*-mingw* ) # actually msys | |
5383 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5384 | ;; | |
5385 | *-*-cygwin* ) | |
5386 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5387 | ;; | |
5388 | * ) # otherwise, assume *nix | |
5389 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5390 | ;; | |
5391 | esac | |
5392 | ;; | |
5393 | * ) # unhandled hosts (and "normal" native builds) | |
5394 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5395 | ;; | |
5396 | esac | |
5397 | ||
5398 | fi | |
5399 | ||
5400 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5402 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5409 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5410 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5411 | $as_echo_n "(cached) " >&6 | |
5412 | else | |
5413 | #assume ordinary cross tools, or native build. | |
5414 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5415 | case $host in | |
5416 | *-*-mingw* ) | |
5417 | case $build in | |
5418 | *-*-mingw* ) # actually msys | |
5419 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5420 | ;; | |
5421 | esac | |
5422 | ;; | |
5423 | esac | |
5424 | ||
5425 | fi | |
5426 | ||
5427 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5429 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | ||
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5436 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5437 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 CE |
5438 | $as_echo_n "(cached) " >&6 |
5439 | else | |
5440 | lt_cv_ld_reload_flag='-r' | |
d9898ee8 | 5441 | fi |
b0322a85 | 5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5443 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5444 | reload_flag=$lt_cv_ld_reload_flag | |
5445 | case $reload_flag in | |
5446 | "" | " "*) ;; | |
5447 | *) reload_flag=" $reload_flag" ;; | |
5448 | esac | |
5449 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5450 | case $host_os in | |
b0322a85 | 5451 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5452 | if test yes != "$GCC"; then |
b0322a85 CE |
5453 | reload_cmds=false |
5454 | fi | |
5455 | ;; | |
8d138742 | 5456 | darwin*) |
d50284c4 CE |
5457 | if test yes = "$GCC"; then |
5458 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5459 | else |
5460 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5461 | fi | |
5462 | ;; | |
5463 | esac | |
d9898ee8 | 5464 | |
5465 | ||
d9898ee8 | 5466 | |
d9898ee8 | 5467 | |
5468 | ||
5469 | ||
d9898ee8 | 5470 | |
d9898ee8 | 5471 | |
8d138742 CE |
5472 | |
5473 | if test -n "$ac_tool_prefix"; then | |
5474 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5475 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5477 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5478 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5479 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5480 | else |
8d138742 CE |
5481 | if test -n "$OBJDUMP"; then |
5482 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5483 | else | |
5484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5485 | for as_dir in $PATH | |
5486 | do | |
5487 | IFS=$as_save_IFS | |
5488 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5489 | for ac_exec_ext in '' $ac_executable_extensions; do |
5490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5491 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5493 | break 2 |
5494 | fi | |
5495 | done | |
b0322a85 | 5496 | done |
8d138742 | 5497 | IFS=$as_save_IFS |
d9898ee8 | 5498 | |
8d138742 CE |
5499 | fi |
5500 | fi | |
5501 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5502 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5504 | $as_echo "$OBJDUMP" >&6; } |
5505 | else | |
b0322a85 | 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5507 | $as_echo "no" >&6; } |
d9898ee8 | 5508 | fi |
dd184caf | 5509 | |
d9898ee8 | 5510 | |
8d138742 CE |
5511 | fi |
5512 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5513 | ac_ct_OBJDUMP=$OBJDUMP | |
5514 | # Extract the first word of "objdump", so it can be a program name with args. | |
5515 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5517 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5518 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 CE |
5519 | $as_echo_n "(cached) " >&6 |
5520 | else | |
5521 | if test -n "$ac_ct_OBJDUMP"; then | |
5522 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5523 | else | |
5524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5525 | for as_dir in $PATH | |
5526 | do | |
5527 | IFS=$as_save_IFS | |
5528 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5529 | for ac_exec_ext in '' $ac_executable_extensions; do |
5530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5531 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5533 | break 2 |
5534 | fi | |
5535 | done | |
b0322a85 | 5536 | done |
8d138742 | 5537 | IFS=$as_save_IFS |
d9898ee8 | 5538 | |
8d138742 CE |
5539 | fi |
5540 | fi | |
5541 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5542 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 | 5544 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
d9898ee8 | 5545 | else |
b0322a85 | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5547 | $as_echo "no" >&6; } |
d9898ee8 | 5548 | fi |
d9898ee8 | 5549 | |
8d138742 CE |
5550 | if test "x$ac_ct_OBJDUMP" = x; then |
5551 | OBJDUMP="false" | |
5552 | else | |
5553 | case $cross_compiling:$ac_tool_warned in | |
5554 | yes:) | |
b0322a85 | 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5556 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5557 | ac_tool_warned=yes ;; | |
5558 | esac | |
5559 | OBJDUMP=$ac_ct_OBJDUMP | |
5560 | fi | |
5561 | else | |
5562 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
d9898ee8 | 5563 | fi |
5564 | ||
8d138742 | 5565 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5566 | |
d9898ee8 | 5567 | |
d9898ee8 | 5568 | |
d9898ee8 | 5569 | |
d9898ee8 | 5570 | |
dd184caf | 5571 | |
5572 | ||
d9898ee8 | 5573 | |
d9898ee8 | 5574 | |
b0322a85 | 5575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5576 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5577 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 CE |
5578 | $as_echo_n "(cached) " >&6 |
5579 | else | |
5580 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5581 | lt_cv_file_magic_test_file= | |
5582 | lt_cv_deplibs_check_method='unknown' | |
5583 | # Need to set the preceding variable on all platforms that support | |
5584 | # interlibrary dependencies. | |
5585 | # 'none' -- dependencies not supported. | |
d50284c4 | 5586 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5587 | # 'pass_all' -- all dependencies passed with no checks. |
5588 | # 'test_compile' -- check by making test program. | |
5589 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5590 | # that responds to the $file_magic_cmd with a given extended regex. |
5591 | # If you have 'file' or equivalent on your system and you're not sure | |
5592 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5593 | |
8d138742 CE |
5594 | case $host_os in |
5595 | aix[4-9]*) | |
5596 | lt_cv_deplibs_check_method=pass_all | |
5597 | ;; | |
d9898ee8 | 5598 | |
8d138742 CE |
5599 | beos*) |
5600 | lt_cv_deplibs_check_method=pass_all | |
5601 | ;; | |
d9898ee8 | 5602 | |
8d138742 CE |
5603 | bsdi[45]*) |
5604 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5605 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5606 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5607 | ;; | |
d9898ee8 | 5608 | |
8d138742 CE |
5609 | cygwin*) |
5610 | # func_win32_libid is a shell function defined in ltmain.sh | |
5611 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5612 | lt_cv_file_magic_cmd='func_win32_libid' | |
5613 | ;; | |
d9898ee8 | 5614 | |
8d138742 CE |
5615 | mingw* | pw32*) |
5616 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5617 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5618 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5619 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5620 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5621 | lt_cv_file_magic_cmd='func_win32_libid' | |
5622 | else | |
b0322a85 CE |
5623 | # Keep this pattern in sync with the one in func_win32_libid. |
5624 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5625 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5626 | fi | |
5627 | ;; | |
d9898ee8 | 5628 | |
b0322a85 | 5629 | cegcc*) |
8d138742 CE |
5630 | # use the weaker test based on 'objdump'. See mingw*. |
5631 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5632 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5633 | ;; | |
d9898ee8 | 5634 | |
8d138742 CE |
5635 | darwin* | rhapsody*) |
5636 | lt_cv_deplibs_check_method=pass_all | |
5637 | ;; | |
d9898ee8 | 5638 | |
8d138742 CE |
5639 | freebsd* | dragonfly*) |
5640 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5641 | case $host_cpu in | |
5642 | i*86 ) | |
5643 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5644 | # Let's accept both of them until this is cleared up. | |
5645 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5646 | lt_cv_file_magic_cmd=/usr/bin/file | |
5647 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5648 | ;; | |
5649 | esac | |
5650 | else | |
5651 | lt_cv_deplibs_check_method=pass_all | |
5652 | fi | |
5653 | ;; | |
d9898ee8 | 5654 | |
b0322a85 CE |
5655 | haiku*) |
5656 | lt_cv_deplibs_check_method=pass_all | |
5657 | ;; | |
5658 | ||
8d138742 CE |
5659 | hpux10.20* | hpux11*) |
5660 | lt_cv_file_magic_cmd=/usr/bin/file | |
5661 | case $host_cpu in | |
5662 | ia64*) | |
5663 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5664 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5665 | ;; | |
5666 | hppa*64*) | |
b0322a85 | 5667 | 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]' |
8d138742 CE |
5668 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5669 | ;; | |
5670 | *) | |
b0322a85 | 5671 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5672 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5673 | ;; | |
5674 | esac | |
5675 | ;; | |
d9898ee8 | 5676 | |
8d138742 CE |
5677 | interix[3-9]*) |
5678 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5679 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5680 | ;; | |
d9898ee8 | 5681 | |
8d138742 CE |
5682 | irix5* | irix6* | nonstopux*) |
5683 | case $LD in | |
5684 | *-32|*"-32 ") libmagic=32-bit;; | |
5685 | *-n32|*"-n32 ") libmagic=N32;; | |
5686 | *-64|*"-64 ") libmagic=64-bit;; | |
5687 | *) libmagic=never-match;; | |
5688 | esac | |
5689 | lt_cv_deplibs_check_method=pass_all | |
5690 | ;; | |
dd184caf | 5691 | |
b0322a85 | 5692 | # This must be glibc/ELF. |
d50284c4 | 5693 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5694 | lt_cv_deplibs_check_method=pass_all |
5695 | ;; | |
d9898ee8 | 5696 | |
8d138742 CE |
5697 | netbsd*) |
5698 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5699 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5700 | else | |
5701 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5702 | fi | |
5703 | ;; | |
d9898ee8 | 5704 | |
8d138742 CE |
5705 | newos6*) |
5706 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5707 | lt_cv_file_magic_cmd=/usr/bin/file | |
5708 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5709 | ;; | |
d9898ee8 | 5710 | |
8d138742 CE |
5711 | *nto* | *qnx*) |
5712 | lt_cv_deplibs_check_method=pass_all | |
5713 | ;; | |
d9898ee8 | 5714 | |
d50284c4 CE |
5715 | openbsd* | bitrig*) |
5716 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
5717 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5718 | else | |
5719 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5720 | fi | |
5721 | ;; | |
d9898ee8 | 5722 | |
8d138742 CE |
5723 | osf3* | osf4* | osf5*) |
5724 | lt_cv_deplibs_check_method=pass_all | |
5725 | ;; | |
d9898ee8 | 5726 | |
8d138742 CE |
5727 | rdos*) |
5728 | lt_cv_deplibs_check_method=pass_all | |
5729 | ;; | |
dd184caf | 5730 | |
8d138742 CE |
5731 | solaris*) |
5732 | lt_cv_deplibs_check_method=pass_all | |
5733 | ;; | |
d9898ee8 | 5734 | |
8d138742 CE |
5735 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5736 | lt_cv_deplibs_check_method=pass_all | |
5737 | ;; | |
d9898ee8 | 5738 | |
8d138742 CE |
5739 | sysv4 | sysv4.3*) |
5740 | case $host_vendor in | |
5741 | motorola) | |
5742 | 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]' | |
5743 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
d9898ee8 | 5744 | ;; |
8d138742 CE |
5745 | ncr) |
5746 | lt_cv_deplibs_check_method=pass_all | |
5747 | ;; | |
5748 | sequent) | |
5749 | lt_cv_file_magic_cmd='/bin/file' | |
5750 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5751 | ;; | |
5752 | sni) | |
5753 | lt_cv_file_magic_cmd='/bin/file' | |
5754 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5755 | lt_cv_file_magic_test_file=/lib/libc.so | |
5756 | ;; | |
5757 | siemens) | |
5758 | lt_cv_deplibs_check_method=pass_all | |
d9898ee8 | 5759 | ;; |
8d138742 CE |
5760 | pc) |
5761 | lt_cv_deplibs_check_method=pass_all | |
5762 | ;; | |
5763 | esac | |
5764 | ;; | |
5765 | ||
5766 | tpf*) | |
5767 | lt_cv_deplibs_check_method=pass_all | |
5768 | ;; | |
d50284c4 CE |
5769 | os2*) |
5770 | lt_cv_deplibs_check_method=pass_all | |
5771 | ;; | |
d9898ee8 | 5772 | esac |
d9898ee8 | 5773 | |
5774 | fi | |
b0322a85 | 5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5776 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5777 | |
5778 | file_magic_glob= | |
5779 | want_nocaseglob=no | |
5780 | if test "$build" = "$host"; then | |
5781 | case $host_os in | |
5782 | mingw* | pw32*) | |
5783 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5784 | want_nocaseglob=yes | |
5785 | else | |
5786 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5787 | fi | |
5788 | ;; | |
5789 | esac | |
5790 | fi | |
5791 | ||
8d138742 CE |
5792 | file_magic_cmd=$lt_cv_file_magic_cmd |
5793 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5794 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
d9898ee8 | 5795 | |
d9898ee8 | 5796 | |
d9898ee8 | 5797 | |
8d138742 CE |
5798 | |
5799 | ||
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5806 | ||
b0322a85 CE |
5807 | |
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | if test -n "$ac_tool_prefix"; then | |
5818 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5819 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5821 | $as_echo_n "checking for $ac_word... " >&6; } | |
5822 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5823 | $as_echo_n "(cached) " >&6 | |
5824 | else | |
5825 | if test -n "$DLLTOOL"; then | |
5826 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5827 | else | |
5828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5829 | for as_dir in $PATH | |
5830 | do | |
5831 | IFS=$as_save_IFS | |
5832 | test -z "$as_dir" && as_dir=. | |
5833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5835 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5837 | break 2 | |
5838 | fi | |
5839 | done | |
5840 | done | |
5841 | IFS=$as_save_IFS | |
5842 | ||
5843 | fi | |
5844 | fi | |
5845 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5846 | if test -n "$DLLTOOL"; then | |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5848 | $as_echo "$DLLTOOL" >&6; } | |
5849 | else | |
5850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5851 | $as_echo "no" >&6; } | |
5852 | fi | |
5853 | ||
5854 | ||
5855 | fi | |
5856 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5857 | ac_ct_DLLTOOL=$DLLTOOL | |
5858 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5859 | set dummy dlltool; ac_word=$2 | |
5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5861 | $as_echo_n "checking for $ac_word... " >&6; } | |
5862 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5863 | $as_echo_n "(cached) " >&6 | |
5864 | else | |
5865 | if test -n "$ac_ct_DLLTOOL"; then | |
5866 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5867 | else | |
5868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5869 | for as_dir in $PATH | |
5870 | do | |
5871 | IFS=$as_save_IFS | |
5872 | test -z "$as_dir" && as_dir=. | |
5873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5874 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5875 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5876 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5877 | break 2 | |
5878 | fi | |
5879 | done | |
5880 | done | |
5881 | IFS=$as_save_IFS | |
5882 | ||
5883 | fi | |
5884 | fi | |
5885 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5886 | if test -n "$ac_ct_DLLTOOL"; then | |
5887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5888 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5889 | else | |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5891 | $as_echo "no" >&6; } | |
5892 | fi | |
5893 | ||
5894 | if test "x$ac_ct_DLLTOOL" = x; then | |
5895 | DLLTOOL="false" | |
5896 | else | |
5897 | case $cross_compiling:$ac_tool_warned in | |
5898 | yes:) | |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5900 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5901 | ac_tool_warned=yes ;; | |
5902 | esac | |
5903 | DLLTOOL=$ac_ct_DLLTOOL | |
5904 | fi | |
5905 | else | |
5906 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5907 | fi | |
5908 | ||
5909 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5910 | ||
5911 | ||
5912 | ||
5913 | ||
5914 | ||
5915 | ||
5916 | ||
5917 | ||
5918 | ||
5919 | ||
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5921 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5922 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5923 | $as_echo_n "(cached) " >&6 | |
5924 | else | |
5925 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5926 | ||
5927 | case $host_os in | |
5928 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5929 | # two different shell functions defined in ltmain.sh; |
5930 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5931 | case `$DLLTOOL --help 2>&1` in |
5932 | *--identify-strict*) | |
5933 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5934 | ;; | |
5935 | *) | |
5936 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5937 | ;; | |
5938 | esac | |
5939 | ;; | |
5940 | *) | |
5941 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5942 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
5943 | ;; |
5944 | esac | |
5945 | ||
5946 | fi | |
5947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5948 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5949 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5950 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
8d138742 | 5959 | if test -n "$ac_tool_prefix"; then |
b0322a85 CE |
5960 | for ac_prog in ar |
5961 | do | |
5962 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5963 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5965 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5966 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5967 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5968 | else |
8d138742 CE |
5969 | if test -n "$AR"; then |
5970 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5971 | else |
5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5973 | for as_dir in $PATH | |
5974 | do | |
5975 | IFS=$as_save_IFS | |
5976 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5977 | for ac_exec_ext in '' $ac_executable_extensions; do |
5978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5979 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5981 | break 2 |
5982 | fi | |
5983 | done | |
b0322a85 | 5984 | done |
dd184caf | 5985 | IFS=$as_save_IFS |
d9898ee8 | 5986 | |
5987 | fi | |
5988 | fi | |
8d138742 CE |
5989 | AR=$ac_cv_prog_AR |
5990 | if test -n "$AR"; then | |
b0322a85 | 5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8d138742 | 5992 | $as_echo "$AR" >&6; } |
d9898ee8 | 5993 | else |
b0322a85 | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5995 | $as_echo "no" >&6; } |
d9898ee8 | 5996 | fi |
5997 | ||
dd184caf | 5998 | |
b0322a85 CE |
5999 | test -n "$AR" && break |
6000 | done | |
d9898ee8 | 6001 | fi |
b0322a85 | 6002 | if test -z "$AR"; then |
8d138742 | 6003 | ac_ct_AR=$AR |
b0322a85 CE |
6004 | for ac_prog in ar |
6005 | do | |
6006 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6007 | set dummy $ac_prog; ac_word=$2 | |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 6009 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6010 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 6011 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6012 | else |
8d138742 CE |
6013 | if test -n "$ac_ct_AR"; then |
6014 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
d9898ee8 | 6015 | else |
6016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6017 | for as_dir in $PATH | |
6018 | do | |
6019 | IFS=$as_save_IFS | |
6020 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6021 | for ac_exec_ext in '' $ac_executable_extensions; do |
6022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6023 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 6025 | break 2 |
6026 | fi | |
6027 | done | |
b0322a85 | 6028 | done |
dd184caf | 6029 | IFS=$as_save_IFS |
d9898ee8 | 6030 | |
6031 | fi | |
6032 | fi | |
8d138742 CE |
6033 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6034 | if test -n "$ac_ct_AR"; then | |
b0322a85 | 6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
8d138742 | 6036 | $as_echo "$ac_ct_AR" >&6; } |
d9898ee8 | 6037 | else |
b0322a85 | 6038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6039 | $as_echo "no" >&6; } |
d9898ee8 | 6040 | fi |
6041 | ||
b0322a85 CE |
6042 | |
6043 | test -n "$ac_ct_AR" && break | |
6044 | done | |
6045 | ||
8d138742 CE |
6046 | if test "x$ac_ct_AR" = x; then |
6047 | AR="false" | |
dd184caf | 6048 | else |
6049 | case $cross_compiling:$ac_tool_warned in | |
6050 | yes:) | |
b0322a85 | 6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6053 | ac_tool_warned=yes ;; |
6054 | esac | |
8d138742 | 6055 | AR=$ac_ct_AR |
dd184caf | 6056 | fi |
8d138742 | 6057 | fi |
d9898ee8 | 6058 | |
b0322a85 CE |
6059 | : ${AR=ar} |
6060 | : ${AR_FLAGS=cru} | |
d9898ee8 | 6061 | |
d9898ee8 | 6062 | |
dd184caf | 6063 | |
d9898ee8 | 6064 | |
d9898ee8 | 6065 | |
d9898ee8 | 6066 | |
dd184caf | 6067 | |
dd184caf | 6068 | |
d9898ee8 | 6069 | |
dd184caf | 6070 | |
dd184caf | 6071 | |
b0322a85 CE |
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
6073 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6074 | if ${lt_cv_ar_at_file+:} false; then : | |
6075 | $as_echo_n "(cached) " >&6 | |
6076 | else | |
6077 | lt_cv_ar_at_file=no | |
6078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6079 | /* end confdefs.h. */ | |
6080 | ||
6081 | int | |
6082 | main () | |
6083 | { | |
6084 | ||
6085 | ; | |
6086 | return 0; | |
6087 | } | |
6088 | _ACEOF | |
6089 | if ac_fn_c_try_compile "$LINENO"; then : | |
6090 | echo conftest.$ac_objext > conftest.lst | |
6091 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6092 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6093 | (eval $lt_ar_try) 2>&5 | |
6094 | ac_status=$? | |
6095 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6096 | test $ac_status = 0; } | |
d50284c4 | 6097 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
6098 | # Ensure the archiver fails upon bogus file names. |
6099 | rm -f conftest.$ac_objext libconftest.a | |
6100 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6101 | (eval $lt_ar_try) 2>&5 | |
6102 | ac_status=$? | |
6103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6104 | test $ac_status = 0; } | |
d50284c4 | 6105 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
6106 | lt_cv_ar_at_file=@ |
6107 | fi | |
6108 | fi | |
6109 | rm -f conftest.* libconftest.a | |
6110 | ||
6111 | fi | |
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6113 | ||
6114 | fi | |
6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6116 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6117 | ||
d50284c4 | 6118 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
6119 | archiver_list_spec= |
6120 | else | |
6121 | archiver_list_spec=$lt_cv_ar_at_file | |
6122 | fi | |
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | ||
6128 | ||
6129 | ||
8d138742 CE |
6130 | if test -n "$ac_tool_prefix"; then |
6131 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6132 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 6133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6134 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6135 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 | 6136 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6137 | else |
8d138742 CE |
6138 | if test -n "$STRIP"; then |
6139 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6140 | else | |
6141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6142 | for as_dir in $PATH | |
6143 | do | |
6144 | IFS=$as_save_IFS | |
6145 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6146 | for ac_exec_ext in '' $ac_executable_extensions; do |
6147 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6148 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 6149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6150 | break 2 |
6151 | fi | |
6152 | done | |
b0322a85 | 6153 | done |
8d138742 | 6154 | IFS=$as_save_IFS |
dd184caf | 6155 | |
d9898ee8 | 6156 | fi |
8d138742 CE |
6157 | fi |
6158 | STRIP=$ac_cv_prog_STRIP | |
6159 | if test -n "$STRIP"; then | |
b0322a85 | 6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
6161 | $as_echo "$STRIP" >&6; } |
6162 | else | |
b0322a85 | 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6164 | $as_echo "no" >&6; } |
6165 | fi | |
6166 | ||
dd184caf | 6167 | |
d9898ee8 | 6168 | fi |
8d138742 CE |
6169 | if test -z "$ac_cv_prog_STRIP"; then |
6170 | ac_ct_STRIP=$STRIP | |
6171 | # Extract the first word of "strip", so it can be a program name with args. | |
6172 | set dummy strip; ac_word=$2 | |
b0322a85 | 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6174 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6175 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
6176 | $as_echo_n "(cached) " >&6 |
6177 | else | |
6178 | if test -n "$ac_ct_STRIP"; then | |
6179 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6180 | else | |
6181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6182 | for as_dir in $PATH | |
6183 | do | |
6184 | IFS=$as_save_IFS | |
6185 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6186 | for ac_exec_ext in '' $ac_executable_extensions; do |
6187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6188 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 6189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6190 | break 2 |
6191 | fi | |
6192 | done | |
b0322a85 | 6193 | done |
8d138742 | 6194 | IFS=$as_save_IFS |
d9898ee8 | 6195 | |
8d138742 CE |
6196 | fi |
6197 | fi | |
6198 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6199 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
6201 | $as_echo "$ac_ct_STRIP" >&6; } |
6202 | else | |
b0322a85 | 6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6204 | $as_echo "no" >&6; } |
dd184caf | 6205 | fi |
6206 | ||
8d138742 CE |
6207 | if test "x$ac_ct_STRIP" = x; then |
6208 | STRIP=":" | |
dd184caf | 6209 | else |
8d138742 CE |
6210 | case $cross_compiling:$ac_tool_warned in |
6211 | yes:) | |
b0322a85 | 6212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6213 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6214 | ac_tool_warned=yes ;; | |
6215 | esac | |
6216 | STRIP=$ac_ct_STRIP | |
dd184caf | 6217 | fi |
6218 | else | |
8d138742 | 6219 | STRIP="$ac_cv_prog_STRIP" |
dd184caf | 6220 | fi |
d9898ee8 | 6221 | |
8d138742 | 6222 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 6223 | |
d9898ee8 | 6224 | |
d9898ee8 | 6225 | |
d9898ee8 | 6226 | |
8d138742 CE |
6227 | |
6228 | ||
6229 | if test -n "$ac_tool_prefix"; then | |
6230 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6231 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6233 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6234 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 6235 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6236 | else |
8d138742 CE |
6237 | if test -n "$RANLIB"; then |
6238 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6239 | else | |
6240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6241 | for as_dir in $PATH | |
6242 | do | |
6243 | IFS=$as_save_IFS | |
6244 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6245 | for ac_exec_ext in '' $ac_executable_extensions; do |
6246 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6247 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 6248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6249 | break 2 |
6250 | fi | |
6251 | done | |
b0322a85 | 6252 | done |
8d138742 | 6253 | IFS=$as_save_IFS |
d9898ee8 | 6254 | |
6255 | fi | |
8d138742 CE |
6256 | fi |
6257 | RANLIB=$ac_cv_prog_RANLIB | |
6258 | if test -n "$RANLIB"; then | |
b0322a85 | 6259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 | 6260 | $as_echo "$RANLIB" >&6; } |
d9898ee8 | 6261 | else |
b0322a85 | 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6263 | $as_echo "no" >&6; } |
d9898ee8 | 6264 | fi |
6265 | ||
6266 | ||
8d138742 CE |
6267 | fi |
6268 | if test -z "$ac_cv_prog_RANLIB"; then | |
6269 | ac_ct_RANLIB=$RANLIB | |
6270 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6271 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6273 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6274 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 | 6275 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6276 | else |
8d138742 CE |
6277 | if test -n "$ac_ct_RANLIB"; then |
6278 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
d9898ee8 | 6279 | else |
8d138742 CE |
6280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6281 | for as_dir in $PATH | |
6282 | do | |
6283 | IFS=$as_save_IFS | |
6284 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6285 | for ac_exec_ext in '' $ac_executable_extensions; do |
6286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6287 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 6288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6289 | break 2 |
6290 | fi | |
6291 | done | |
b0322a85 | 6292 | done |
8d138742 | 6293 | IFS=$as_save_IFS |
d9898ee8 | 6294 | |
8d138742 CE |
6295 | fi |
6296 | fi | |
6297 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6298 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 6299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
6300 | $as_echo "$ac_ct_RANLIB" >&6; } |
6301 | else | |
b0322a85 | 6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6303 | $as_echo "no" >&6; } |
d9898ee8 | 6304 | fi |
dd184caf | 6305 | |
8d138742 CE |
6306 | if test "x$ac_ct_RANLIB" = x; then |
6307 | RANLIB=":" | |
6308 | else | |
6309 | case $cross_compiling:$ac_tool_warned in | |
6310 | yes:) | |
b0322a85 | 6311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6313 | ac_tool_warned=yes ;; | |
dd184caf | 6314 | esac |
8d138742 CE |
6315 | RANLIB=$ac_ct_RANLIB |
6316 | fi | |
d9898ee8 | 6317 | else |
8d138742 | 6318 | RANLIB="$ac_cv_prog_RANLIB" |
d9898ee8 | 6319 | fi |
dd184caf | 6320 | |
8d138742 | 6321 | test -z "$RANLIB" && RANLIB=: |
d9898ee8 | 6322 | |
d9898ee8 | 6323 | |
d9898ee8 | 6324 | |
d9898ee8 | 6325 | |
dd184caf | 6326 | |
d9898ee8 | 6327 | |
8d138742 CE |
6328 | # Determine commands to create old-style static archives. |
6329 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6330 | old_postinstall_cmds='chmod 644 $oldlib' | |
6331 | old_postuninstall_cmds= | |
d9898ee8 | 6332 | |
8d138742 CE |
6333 | if test -n "$RANLIB"; then |
6334 | case $host_os in | |
d50284c4 | 6335 | bitrig* | openbsd*) |
b0322a85 | 6336 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
6337 | ;; |
6338 | *) | |
b0322a85 | 6339 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
6340 | ;; |
6341 | esac | |
b0322a85 | 6342 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 6343 | fi |
dd184caf | 6344 | |
b0322a85 CE |
6345 | case $host_os in |
6346 | darwin*) | |
6347 | lock_old_archive_extraction=yes ;; | |
6348 | *) | |
6349 | lock_old_archive_extraction=no ;; | |
6350 | esac | |
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | ||
6356 | ||
d9898ee8 | 6357 | |
d9898ee8 | 6358 | |
d9898ee8 | 6359 | |
d9898ee8 | 6360 | |
6361 | ||
d9898ee8 | 6362 | |
d9898ee8 | 6363 | |
dd184caf | 6364 | |
d9898ee8 | 6365 | |
d9898ee8 | 6366 | |
dd184caf | 6367 | |
d9898ee8 | 6368 | |
d9898ee8 | 6369 | |
6370 | ||
d9898ee8 | 6371 | |
d9898ee8 | 6372 | |
d9898ee8 | 6373 | |
dd184caf | 6374 | |
d9898ee8 | 6375 | |
d9898ee8 | 6376 | |
6377 | ||
6378 | ||
d9898ee8 | 6379 | |
d9898ee8 | 6380 | |
d9898ee8 | 6381 | |
d9898ee8 | 6382 | |
d9898ee8 | 6383 | |
d9898ee8 | 6384 | |
d9898ee8 | 6385 | |
d9898ee8 | 6386 | |
d9898ee8 | 6387 | |
d9898ee8 | 6388 | |
d9898ee8 | 6389 | |
8d138742 CE |
6390 | # If no C compiler was specified, use CC. |
6391 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 6392 | |
8d138742 CE |
6393 | # If no C compiler flags were specified, use CFLAGS. |
6394 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6395 | |
8d138742 CE |
6396 | # Allow CC to be a program name with arguments. |
6397 | compiler=$CC | |
d9898ee8 | 6398 | |
ac40fd9e | 6399 | |
d9898ee8 | 6400 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
b0322a85 | 6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 6402 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 6403 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 6404 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6405 | else |
6406 | ||
6407 | # These are sane defaults that work on at least a few old systems. | |
6408 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6409 | ||
6410 | # Character class describing NM global symbol codes. | |
6411 | symcode='[BCDEGRST]' | |
6412 | ||
6413 | # Regexp to match symbols that can be accessed directly from C. | |
6414 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6415 | ||
d9898ee8 | 6416 | # Define system-specific variables. |
6417 | case $host_os in | |
6418 | aix*) | |
6419 | symcode='[BCDT]' | |
6420 | ;; | |
8d138742 | 6421 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 6422 | symcode='[ABCDGISTW]' |
6423 | ;; | |
8d138742 | 6424 | hpux*) |
d50284c4 | 6425 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 6426 | symcode='[ABCDEGRST]' |
6427 | fi | |
d9898ee8 | 6428 | ;; |
6429 | irix* | nonstopux*) | |
6430 | symcode='[BCDEGRST]' | |
6431 | ;; | |
6432 | osf*) | |
6433 | symcode='[BCDEGQRST]' | |
6434 | ;; | |
6435 | solaris*) | |
6436 | symcode='[BDRT]' | |
6437 | ;; | |
6438 | sco3.2v5*) | |
6439 | symcode='[DT]' | |
6440 | ;; | |
6441 | sysv4.2uw2*) | |
6442 | symcode='[DT]' | |
6443 | ;; | |
6444 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6445 | symcode='[ABDT]' | |
6446 | ;; | |
6447 | sysv4) | |
6448 | symcode='[DFNSTU]' | |
6449 | ;; | |
6450 | esac | |
6451 | ||
8d138742 CE |
6452 | # If we're using GNU nm, then use its standard symbol codes. |
6453 | case `$NM -V 2>&1` in | |
6454 | *GNU* | *'with BFD'*) | |
6455 | symcode='[ABCDGIRSTW]' ;; | |
6456 | esac | |
6457 | ||
d50284c4 CE |
6458 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6459 | # Gets list of data symbols to import. | |
6460 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6461 | # Adjust the below global symbol transforms to fixup imported variables. | |
6462 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6463 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6464 | lt_c_name_lib_hook="\ | |
6465 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6466 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6467 | else | |
6468 | # Disable hooks by default. | |
6469 | lt_cv_sys_global_symbol_to_import= | |
6470 | lt_cdecl_hook= | |
6471 | lt_c_name_hook= | |
6472 | lt_c_name_lib_hook= | |
6473 | fi | |
6474 | ||
8d138742 CE |
6475 | # Transform an extracted symbol line into a proper C declaration. |
6476 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6477 | # so use this general approach. | |
d50284c4 CE |
6478 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6479 | $lt_cdecl_hook\ | |
6480 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6481 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
8d138742 CE |
6482 | |
6483 | # Transform an extracted symbol line into symbol name and symbol address | |
d50284c4 CE |
6484 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6485 | $lt_c_name_hook\ | |
6486 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6487 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6488 | ||
6489 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6490 | # symbol address. | |
6491 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6492 | $lt_c_name_lib_hook\ | |
6493 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6494 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6495 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 | 6496 | |
d9898ee8 | 6497 | # Handle CRLF in mingw tool chain |
6498 | opt_cr= | |
6499 | case $build_os in | |
6500 | mingw*) | |
8d138742 | 6501 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
d9898ee8 | 6502 | ;; |
6503 | esac | |
6504 | ||
8d138742 | 6505 | # Try without a prefix underscore, then with it. |
d9898ee8 | 6506 | for ac_symprfx in "" "_"; do |
6507 | ||
6508 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6509 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6510 | ||
6511 | # Write the raw and C identifiers. | |
8d138742 | 6512 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
d50284c4 CE |
6513 | # Fake it for dumpbin and say T for any non-static function, |
6514 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6515 | # Also find C++ and __fastcall symbols from MSVC++, |
6516 | # which start with @ or ?. | |
6517 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6518 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6519 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6520 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6521 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6522 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6523 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6524 | " \$ 0!~/External *\|/{next};"\ |
6525 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6526 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6527 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6528 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6529 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6530 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6531 | " ' prfx=^$ac_symprfx" |
6532 | else | |
6533 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6534 | fi | |
b0322a85 | 6535 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
d9898ee8 | 6536 | |
6537 | # Check to see that the pipe works correctly. | |
6538 | pipe_works=no | |
6539 | ||
6540 | rm -f conftest* | |
8d138742 | 6541 | cat > conftest.$ac_ext <<_LT_EOF |
d9898ee8 | 6542 | #ifdef __cplusplus |
6543 | extern "C" { | |
6544 | #endif | |
6545 | char nm_test_var; | |
8d138742 CE |
6546 | void nm_test_func(void); |
6547 | void nm_test_func(void){} | |
d9898ee8 | 6548 | #ifdef __cplusplus |
6549 | } | |
6550 | #endif | |
6551 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8d138742 | 6552 | _LT_EOF |
d9898ee8 | 6553 | |
b0322a85 | 6554 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6555 | (eval $ac_compile) 2>&5 |
6556 | ac_status=$? | |
b0322a85 CE |
6557 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6558 | test $ac_status = 0; }; then | |
d9898ee8 | 6559 | # Now try to grab the symbols. |
6560 | nlist=conftest.nm | |
b0322a85 CE |
6561 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6562 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6563 | ac_status=$? |
b0322a85 CE |
6564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6565 | test $ac_status = 0; } && test -s "$nlist"; then | |
d9898ee8 | 6566 | # Try sorting and uniquifying the output. |
6567 | if sort "$nlist" | uniq > "$nlist"T; then | |
6568 | mv -f "$nlist"T "$nlist" | |
6569 | else | |
6570 | rm -f "$nlist"T | |
6571 | fi | |
6572 | ||
6573 | # Make sure that we snagged all the symbols we need. | |
8d138742 CE |
6574 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6575 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6576 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6577 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6578 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6579 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6580 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6581 | # define LT_DLSYM_CONST | |
d50284c4 | 6582 | #elif defined __osf__ |
b0322a85 CE |
6583 | /* This system does not cope well with relocations in const data. */ |
6584 | # define LT_DLSYM_CONST | |
6585 | #else | |
6586 | # define LT_DLSYM_CONST const | |
6587 | #endif | |
6588 | ||
d9898ee8 | 6589 | #ifdef __cplusplus |
6590 | extern "C" { | |
6591 | #endif | |
6592 | ||
8d138742 | 6593 | _LT_EOF |
d9898ee8 | 6594 | # Now generate the symbol file. |
8d138742 | 6595 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
d9898ee8 | 6596 | |
8d138742 | 6597 | cat <<_LT_EOF >> conftest.$ac_ext |
d9898ee8 | 6598 | |
8d138742 | 6599 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6600 | LT_DLSYM_CONST struct { |
d9898ee8 | 6601 | const char *name; |
8d138742 | 6602 | void *address; |
d9898ee8 | 6603 | } |
8d138742 | 6604 | lt__PROGRAM__LTX_preloaded_symbols[] = |
d9898ee8 | 6605 | { |
8d138742 CE |
6606 | { "@PROGRAM@", (void *) 0 }, |
6607 | _LT_EOF | |
d50284c4 | 6608 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6609 | cat <<\_LT_EOF >> conftest.$ac_ext |
6610 | {0, (void *) 0} | |
d9898ee8 | 6611 | }; |
6612 | ||
8d138742 CE |
6613 | /* This works around a problem in FreeBSD linker */ |
6614 | #ifdef FREEBSD_WORKAROUND | |
6615 | static const void *lt_preloaded_setup() { | |
6616 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6617 | } | |
6618 | #endif | |
6619 | ||
d9898ee8 | 6620 | #ifdef __cplusplus |
6621 | } | |
6622 | #endif | |
8d138742 | 6623 | _LT_EOF |
d9898ee8 | 6624 | # Now try linking the two files. |
6625 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6626 | lt_globsym_save_LIBS=$LIBS |
6627 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6628 | LIBS=conftstm.$ac_objext |
d9898ee8 | 6629 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6630 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d9898ee8 | 6631 | (eval $ac_link) 2>&5 |
6632 | ac_status=$? | |
b0322a85 | 6633 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6634 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
d9898ee8 | 6635 | pipe_works=yes |
6636 | fi | |
b0322a85 CE |
6637 | LIBS=$lt_globsym_save_LIBS |
6638 | CFLAGS=$lt_globsym_save_CFLAGS | |
d9898ee8 | 6639 | else |
6640 | echo "cannot find nm_test_func in $nlist" >&5 | |
6641 | fi | |
6642 | else | |
6643 | echo "cannot find nm_test_var in $nlist" >&5 | |
6644 | fi | |
6645 | else | |
6646 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6647 | fi | |
6648 | else | |
6649 | echo "$progname: failed program was:" >&5 | |
6650 | cat conftest.$ac_ext >&5 | |
6651 | fi | |
8d138742 | 6652 | rm -rf conftest* conftst* |
d9898ee8 | 6653 | |
6654 | # Do not use the global_symbol_pipe unless it works. | |
d50284c4 | 6655 | if test yes = "$pipe_works"; then |
d9898ee8 | 6656 | break |
6657 | else | |
6658 | lt_cv_sys_global_symbol_pipe= | |
6659 | fi | |
6660 | done | |
6661 | ||
6662 | fi | |
6663 | ||
6664 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6665 | lt_cv_sys_global_symbol_to_cdecl= | |
6666 | fi | |
6667 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
b0322a85 | 6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6669 | $as_echo "failed" >&6; } |
d9898ee8 | 6670 | else |
b0322a85 | 6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6672 | $as_echo "ok" >&6; } |
d9898ee8 | 6673 | fi |
6674 | ||
b0322a85 CE |
6675 | # Response file support. |
6676 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6677 | nm_file_list_spec='@' | |
6678 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6679 | nm_file_list_spec='@' | |
6680 | fi | |
6681 | ||
6682 | ||
6683 | ||
6684 | ||
6685 | ||
6686 | ||
6687 | ||
d9898ee8 | 6688 | |
6689 | ||
6690 | ||
6691 | ||
6692 | ||
d9898ee8 | 6693 | |
d9898ee8 | 6694 | |
d9898ee8 | 6695 | |
d9898ee8 | 6696 | |
d50284c4 CE |
6697 | |
6698 | ||
6699 | ||
6700 | ||
6701 | ||
6702 | ||
6703 | ||
6704 | ||
6705 | ||
6706 | ||
d9898ee8 | 6707 | |
d9898ee8 | 6708 | |
d9898ee8 | 6709 | |
d9898ee8 | 6710 | |
d9898ee8 | 6711 | |
d9898ee8 | 6712 | |
dd184caf | 6713 | |
d9898ee8 | 6714 | |
b0322a85 CE |
6715 | |
6716 | ||
6717 | ||
6718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6719 | $as_echo_n "checking for sysroot... " >&6; } | |
6720 | ||
6721 | # Check whether --with-sysroot was given. | |
6722 | if test "${with_sysroot+set}" = set; then : | |
6723 | withval=$with_sysroot; | |
6724 | else | |
6725 | with_sysroot=no | |
6726 | fi | |
6727 | ||
6728 | ||
6729 | lt_sysroot= | |
d50284c4 | 6730 | case $with_sysroot in #( |
b0322a85 | 6731 | yes) |
d50284c4 | 6732 | if test yes = "$GCC"; then |
b0322a85 CE |
6733 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6734 | fi | |
6735 | ;; #( | |
6736 | /*) | |
6737 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6738 | ;; #( | |
6739 | no|'') | |
6740 | ;; #( | |
6741 | *) | |
d50284c4 CE |
6742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6743 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6744 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6745 | ;; | |
6746 | esac | |
6747 | ||
6748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6749 | $as_echo "${lt_sysroot:-no}" >&6; } | |
8d138742 CE |
6750 | |
6751 | ||
6752 | ||
6753 | ||
6754 | ||
d50284c4 CE |
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6756 | $as_echo_n "checking for a working dd... " >&6; } | |
6757 | if ${ac_cv_path_lt_DD+:} false; then : | |
6758 | $as_echo_n "(cached) " >&6 | |
6759 | else | |
6760 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6761 | cat conftest.i conftest.i >conftest2.i | |
6762 | : ${lt_DD:=$DD} | |
6763 | if test -z "$lt_DD"; then | |
6764 | ac_path_lt_DD_found=false | |
6765 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6767 | for as_dir in $PATH | |
6768 | do | |
6769 | IFS=$as_save_IFS | |
6770 | test -z "$as_dir" && as_dir=. | |
6771 | for ac_prog in dd; do | |
6772 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6773 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6774 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6775 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6776 | cmp -s conftest.i conftest.out \ | |
6777 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6778 | fi | |
6779 | $ac_path_lt_DD_found && break 3 | |
6780 | done | |
6781 | done | |
6782 | done | |
6783 | IFS=$as_save_IFS | |
6784 | if test -z "$ac_cv_path_lt_DD"; then | |
6785 | : | |
6786 | fi | |
6787 | else | |
6788 | ac_cv_path_lt_DD=$lt_DD | |
6789 | fi | |
6790 | ||
6791 | rm -f conftest.i conftest2.i conftest.out | |
6792 | fi | |
6793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6794 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6795 | ||
6796 | ||
6797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6798 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6799 | if ${lt_cv_truncate_bin+:} false; then : | |
6800 | $as_echo_n "(cached) " >&6 | |
6801 | else | |
6802 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6803 | cat conftest.i conftest.i >conftest2.i | |
6804 | lt_cv_truncate_bin= | |
6805 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6806 | cmp -s conftest.i conftest.out \ | |
6807 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6808 | fi | |
6809 | rm -f conftest.i conftest2.i conftest.out | |
6810 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6811 | fi | |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6813 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | ||
6819 | ||
6820 | ||
6821 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6822 | func_cc_basename () | |
6823 | { | |
6824 | for cc_temp in $*""; do | |
6825 | case $cc_temp in | |
6826 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6827 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6828 | \-*) ;; | |
6829 | *) break;; | |
6830 | esac | |
6831 | done | |
6832 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6833 | } | |
6834 | ||
8d138742 | 6835 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6836 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 | 6837 | enableval=$enable_libtool_lock; |
d9898ee8 | 6838 | fi |
8d138742 | 6839 | |
d50284c4 | 6840 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
8d138742 CE |
6841 | |
6842 | # Some flags need to be propagated to the compiler or linker for good | |
6843 | # libtool support. | |
6844 | case $host in | |
6845 | ia64-*-hpux*) | |
d50284c4 CE |
6846 | # Find out what ABI is being produced by ac_compile, and set mode |
6847 | # options accordingly. | |
8d138742 | 6848 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6849 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6850 | (eval $ac_compile) 2>&5 |
6851 | ac_status=$? | |
b0322a85 CE |
6852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6853 | test $ac_status = 0; }; then | |
8d138742 CE |
6854 | case `/usr/bin/file conftest.$ac_objext` in |
6855 | *ELF-32*) | |
d50284c4 | 6856 | HPUX_IA64_MODE=32 |
8d138742 CE |
6857 | ;; |
6858 | *ELF-64*) | |
d50284c4 | 6859 | HPUX_IA64_MODE=64 |
8d138742 CE |
6860 | ;; |
6861 | esac | |
6862 | fi | |
6863 | rm -rf conftest* | |
6864 | ;; | |
6865 | *-*-irix6*) | |
d50284c4 CE |
6866 | # Find out what ABI is being produced by ac_compile, and set linker |
6867 | # options accordingly. | |
b0322a85 CE |
6868 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6869 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6870 | (eval $ac_compile) 2>&5 |
6871 | ac_status=$? | |
b0322a85 CE |
6872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6873 | test $ac_status = 0; }; then | |
d50284c4 | 6874 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6875 | case `/usr/bin/file conftest.$ac_objext` in |
6876 | *32-bit*) | |
6877 | LD="${LD-ld} -melf32bsmip" | |
6878 | ;; | |
6879 | *N32*) | |
6880 | LD="${LD-ld} -melf32bmipn32" | |
6881 | ;; | |
6882 | *64-bit*) | |
6883 | LD="${LD-ld} -melf64bmip" | |
6884 | ;; | |
6885 | esac | |
6886 | else | |
6887 | case `/usr/bin/file conftest.$ac_objext` in | |
6888 | *32-bit*) | |
6889 | LD="${LD-ld} -32" | |
6890 | ;; | |
6891 | *N32*) | |
6892 | LD="${LD-ld} -n32" | |
6893 | ;; | |
6894 | *64-bit*) | |
6895 | LD="${LD-ld} -64" | |
6896 | ;; | |
6897 | esac | |
6898 | fi | |
6899 | fi | |
6900 | rm -rf conftest* | |
6901 | ;; | |
6902 | ||
d50284c4 CE |
6903 | mips64*-*linux*) |
6904 | # Find out what ABI is being produced by ac_compile, and set linker | |
6905 | # options accordingly. | |
6906 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6907 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6908 | (eval $ac_compile) 2>&5 | |
6909 | ac_status=$? | |
6910 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6911 | test $ac_status = 0; }; then | |
6912 | emul=elf | |
6913 | case `/usr/bin/file conftest.$ac_objext` in | |
6914 | *32-bit*) | |
6915 | emul="${emul}32" | |
6916 | ;; | |
6917 | *64-bit*) | |
6918 | emul="${emul}64" | |
6919 | ;; | |
6920 | esac | |
6921 | case `/usr/bin/file conftest.$ac_objext` in | |
6922 | *MSB*) | |
6923 | emul="${emul}btsmip" | |
6924 | ;; | |
6925 | *LSB*) | |
6926 | emul="${emul}ltsmip" | |
6927 | ;; | |
6928 | esac | |
6929 | case `/usr/bin/file conftest.$ac_objext` in | |
6930 | *N32*) | |
6931 | emul="${emul}n32" | |
6932 | ;; | |
6933 | esac | |
6934 | LD="${LD-ld} -m $emul" | |
6935 | fi | |
6936 | rm -rf conftest* | |
6937 | ;; | |
6938 | ||
b0322a85 | 6939 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
8d138742 | 6940 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6941 | # Find out what ABI is being produced by ac_compile, and set linker |
6942 | # options accordingly. Note that the listed cases only cover the | |
6943 | # situations where additional linker options are needed (such as when | |
6944 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6945 | # vice versa); the common cases where no linker options are needed do | |
6946 | # not appear in the list. | |
8d138742 | 6947 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6948 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6949 | (eval $ac_compile) 2>&5 |
6950 | ac_status=$? | |
b0322a85 CE |
6951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6952 | test $ac_status = 0; }; then | |
8d138742 CE |
6953 | case `/usr/bin/file conftest.o` in |
6954 | *32-bit*) | |
6955 | case $host in | |
6956 | x86_64-*kfreebsd*-gnu) | |
6957 | LD="${LD-ld} -m elf_i386_fbsd" | |
6958 | ;; | |
6959 | x86_64-*linux*) | |
d50284c4 CE |
6960 | case `/usr/bin/file conftest.o` in |
6961 | *x86-64*) | |
6962 | LD="${LD-ld} -m elf32_x86_64" | |
6963 | ;; | |
6964 | *) | |
6965 | LD="${LD-ld} -m elf_i386" | |
6966 | ;; | |
6967 | esac | |
8d138742 | 6968 | ;; |
d50284c4 | 6969 | powerpc64le-*linux*) |
b0322a85 CE |
6970 | LD="${LD-ld} -m elf32lppclinux" |
6971 | ;; | |
d50284c4 | 6972 | powerpc64-*linux*) |
8d138742 CE |
6973 | LD="${LD-ld} -m elf32ppclinux" |
6974 | ;; | |
6975 | s390x-*linux*) | |
6976 | LD="${LD-ld} -m elf_s390" | |
6977 | ;; | |
6978 | sparc64-*linux*) | |
6979 | LD="${LD-ld} -m elf32_sparc" | |
6980 | ;; | |
6981 | esac | |
6982 | ;; | |
6983 | *64-bit*) | |
6984 | case $host in | |
6985 | x86_64-*kfreebsd*-gnu) | |
6986 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6987 | ;; | |
6988 | x86_64-*linux*) | |
6989 | LD="${LD-ld} -m elf_x86_64" | |
6990 | ;; | |
b0322a85 CE |
6991 | powerpcle-*linux*) |
6992 | LD="${LD-ld} -m elf64lppc" | |
6993 | ;; | |
6994 | powerpc-*linux*) | |
8d138742 CE |
6995 | LD="${LD-ld} -m elf64ppc" |
6996 | ;; | |
6997 | s390*-*linux*|s390*-*tpf*) | |
6998 | LD="${LD-ld} -m elf64_s390" | |
6999 | ;; | |
7000 | sparc*-*linux*) | |
7001 | LD="${LD-ld} -m elf64_sparc" | |
7002 | ;; | |
7003 | esac | |
7004 | ;; | |
7005 | esac | |
7006 | fi | |
7007 | rm -rf conftest* | |
7008 | ;; | |
7009 | ||
7010 | *-*-sco3.2v5*) | |
7011 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 7012 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 7013 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 7015 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 7016 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 | 7017 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7018 | else |
8d138742 CE |
7019 | ac_ext=c |
7020 | ac_cpp='$CPP $CPPFLAGS' | |
7021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7024 | |
b0322a85 | 7025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7026 | /* end confdefs.h. */ |
7027 | ||
7028 | int | |
7029 | main () | |
7030 | { | |
7031 | ||
7032 | ; | |
7033 | return 0; | |
7034 | } | |
7035 | _ACEOF | |
b0322a85 | 7036 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7037 | lt_cv_cc_needs_belf=yes |
d9898ee8 | 7038 | else |
b0322a85 | 7039 | lt_cv_cc_needs_belf=no |
d9898ee8 | 7040 | fi |
b0322a85 CE |
7041 | rm -f core conftest.err conftest.$ac_objext \ |
7042 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
7043 | ac_ext=c |
7044 | ac_cpp='$CPP $CPPFLAGS' | |
7045 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7046 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7047 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7048 | ||
7049 | fi | |
b0322a85 | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 7051 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 7052 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 7053 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 7054 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
7055 | fi |
7056 | ;; | |
b0322a85 | 7057 | *-*solaris*) |
d50284c4 CE |
7058 | # Find out what ABI is being produced by ac_compile, and set linker |
7059 | # options accordingly. | |
8d138742 | 7060 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 7061 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
7062 | (eval $ac_compile) 2>&5 |
7063 | ac_status=$? | |
b0322a85 CE |
7064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7065 | test $ac_status = 0; }; then | |
8d138742 CE |
7066 | case `/usr/bin/file conftest.o` in |
7067 | *64-bit*) | |
7068 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
7069 | yes*) |
7070 | case $host in | |
d50284c4 | 7071 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
7072 | LD="${LD-ld} -m elf_x86_64" |
7073 | ;; | |
7074 | sparc*-*-solaris*) | |
7075 | LD="${LD-ld} -m elf64_sparc" | |
7076 | ;; | |
7077 | esac | |
7078 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7079 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 7080 | LD=${LD-ld}_sol2 |
b0322a85 CE |
7081 | fi |
7082 | ;; | |
8d138742 CE |
7083 | *) |
7084 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7085 | LD="${LD-ld} -64" | |
7086 | fi | |
7087 | ;; | |
7088 | esac | |
7089 | ;; | |
7090 | esac | |
7091 | fi | |
7092 | rm -rf conftest* | |
7093 | ;; | |
7094 | esac | |
7095 | ||
d50284c4 | 7096 | need_locks=$enable_libtool_lock |
8d138742 | 7097 | |
b0322a85 CE |
7098 | if test -n "$ac_tool_prefix"; then |
7099 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7100 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 7102 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7103 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
8d138742 | 7104 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7105 | else |
b0322a85 CE |
7106 | if test -n "$MANIFEST_TOOL"; then |
7107 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
d9898ee8 | 7108 | else |
7109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7110 | for as_dir in $PATH | |
7111 | do | |
7112 | IFS=$as_save_IFS | |
7113 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7114 | for ac_exec_ext in '' $ac_executable_extensions; do |
7115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7116 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 7118 | break 2 |
7119 | fi | |
7120 | done | |
b0322a85 | 7121 | done |
dd184caf | 7122 | IFS=$as_save_IFS |
d9898ee8 | 7123 | |
7124 | fi | |
7125 | fi | |
b0322a85 CE |
7126 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
7127 | if test -n "$MANIFEST_TOOL"; then | |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7129 | $as_echo "$MANIFEST_TOOL" >&6; } | |
d9898ee8 | 7130 | else |
b0322a85 | 7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7132 | $as_echo "no" >&6; } |
d9898ee8 | 7133 | fi |
7134 | ||
dd184caf | 7135 | |
d9898ee8 | 7136 | fi |
b0322a85 CE |
7137 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
7138 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7139 | # Extract the first word of "mt", so it can be a program name with args. | |
7140 | set dummy mt; ac_word=$2 | |
7141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 7142 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7143 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
8d138742 | 7144 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7145 | else |
b0322a85 CE |
7146 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
7147 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
d9898ee8 | 7148 | else |
7149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7150 | for as_dir in $PATH | |
7151 | do | |
7152 | IFS=$as_save_IFS | |
7153 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7154 | for ac_exec_ext in '' $ac_executable_extensions; do |
7155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7156 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 7158 | break 2 |
7159 | fi | |
7160 | done | |
b0322a85 | 7161 | done |
dd184caf | 7162 | IFS=$as_save_IFS |
d9898ee8 | 7163 | |
d9898ee8 | 7164 | fi |
7165 | fi | |
b0322a85 CE |
7166 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
7167 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7169 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
d9898ee8 | 7170 | else |
b0322a85 | 7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7172 | $as_echo "no" >&6; } |
d9898ee8 | 7173 | fi |
7174 | ||
b0322a85 CE |
7175 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7176 | MANIFEST_TOOL=":" | |
dd184caf | 7177 | else |
7178 | case $cross_compiling:$ac_tool_warned in | |
7179 | yes:) | |
b0322a85 | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7181 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7182 | ac_tool_warned=yes ;; |
7183 | esac | |
b0322a85 | 7184 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
dd184caf | 7185 | fi |
d9898ee8 | 7186 | else |
b0322a85 | 7187 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
d9898ee8 | 7188 | fi |
7189 | ||
b0322a85 CE |
7190 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7192 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7193 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7194 | $as_echo_n "(cached) " >&6 | |
7195 | else | |
7196 | lt_cv_path_mainfest_tool=no | |
7197 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7198 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7199 | cat conftest.err >&5 | |
7200 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7201 | lt_cv_path_mainfest_tool=yes | |
7202 | fi | |
7203 | rm -f conftest* | |
7204 | fi | |
7205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7206 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 7207 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
7208 | MANIFEST_TOOL=: |
7209 | fi | |
7210 | ||
7211 | ||
7212 | ||
7213 | ||
7214 | ||
7215 | ||
7216 | case $host_os in | |
7217 | rhapsody* | darwin*) | |
7218 | if test -n "$ac_tool_prefix"; then | |
7219 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7220 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7222 | $as_echo_n "checking for $ac_word... " >&6; } | |
7223 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7224 | $as_echo_n "(cached) " >&6 | |
7225 | else | |
7226 | if test -n "$DSYMUTIL"; then | |
7227 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7228 | else | |
7229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7230 | for as_dir in $PATH | |
7231 | do | |
7232 | IFS=$as_save_IFS | |
7233 | test -z "$as_dir" && as_dir=. | |
7234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7236 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7238 | break 2 | |
7239 | fi | |
7240 | done | |
7241 | done | |
7242 | IFS=$as_save_IFS | |
7243 | ||
7244 | fi | |
7245 | fi | |
7246 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7247 | if test -n "$DSYMUTIL"; then | |
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7249 | $as_echo "$DSYMUTIL" >&6; } | |
7250 | else | |
7251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7252 | $as_echo "no" >&6; } | |
7253 | fi | |
7254 | ||
7255 | ||
7256 | fi | |
7257 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7258 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7259 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7260 | set dummy dsymutil; ac_word=$2 | |
7261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7262 | $as_echo_n "checking for $ac_word... " >&6; } | |
7263 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7264 | $as_echo_n "(cached) " >&6 | |
7265 | else | |
7266 | if test -n "$ac_ct_DSYMUTIL"; then | |
7267 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7268 | else | |
7269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7270 | for as_dir in $PATH | |
7271 | do | |
7272 | IFS=$as_save_IFS | |
7273 | test -z "$as_dir" && as_dir=. | |
7274 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7275 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7276 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7278 | break 2 | |
7279 | fi | |
7280 | done | |
7281 | done | |
7282 | IFS=$as_save_IFS | |
7283 | ||
7284 | fi | |
7285 | fi | |
7286 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7287 | if test -n "$ac_ct_DSYMUTIL"; then | |
7288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7289 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7290 | else | |
7291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7292 | $as_echo "no" >&6; } | |
7293 | fi | |
7294 | ||
7295 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7296 | DSYMUTIL=":" | |
7297 | else | |
7298 | case $cross_compiling:$ac_tool_warned in | |
7299 | yes:) | |
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7301 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7302 | ac_tool_warned=yes ;; | |
7303 | esac | |
7304 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7305 | fi | |
7306 | else | |
7307 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7308 | fi | |
7309 | ||
7310 | if test -n "$ac_tool_prefix"; then | |
8d138742 CE |
7311 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7312 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7314 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7315 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 | 7316 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7317 | else |
8d138742 CE |
7318 | if test -n "$NMEDIT"; then |
7319 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
d9898ee8 | 7320 | else |
7321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7322 | for as_dir in $PATH | |
7323 | do | |
7324 | IFS=$as_save_IFS | |
7325 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7326 | for ac_exec_ext in '' $ac_executable_extensions; do |
7327 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7328 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 7329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7330 | break 2 |
7331 | fi | |
7332 | done | |
b0322a85 | 7333 | done |
dd184caf | 7334 | IFS=$as_save_IFS |
d9898ee8 | 7335 | |
7336 | fi | |
7337 | fi | |
8d138742 CE |
7338 | NMEDIT=$ac_cv_prog_NMEDIT |
7339 | if test -n "$NMEDIT"; then | |
b0322a85 | 7340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 | 7341 | $as_echo "$NMEDIT" >&6; } |
d9898ee8 | 7342 | else |
b0322a85 | 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7344 | $as_echo "no" >&6; } |
d9898ee8 | 7345 | fi |
7346 | ||
dd184caf | 7347 | |
d9898ee8 | 7348 | fi |
8d138742 CE |
7349 | if test -z "$ac_cv_prog_NMEDIT"; then |
7350 | ac_ct_NMEDIT=$NMEDIT | |
7351 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7352 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7354 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7355 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 | 7356 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7357 | else |
8d138742 CE |
7358 | if test -n "$ac_ct_NMEDIT"; then |
7359 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
d9898ee8 | 7360 | else |
7361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7362 | for as_dir in $PATH | |
7363 | do | |
7364 | IFS=$as_save_IFS | |
7365 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7366 | for ac_exec_ext in '' $ac_executable_extensions; do |
7367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7368 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 7369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7370 | break 2 |
7371 | fi | |
7372 | done | |
b0322a85 | 7373 | done |
dd184caf | 7374 | IFS=$as_save_IFS |
d9898ee8 | 7375 | |
d9898ee8 | 7376 | fi |
7377 | fi | |
8d138742 CE |
7378 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7379 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 | 7381 | $as_echo "$ac_ct_NMEDIT" >&6; } |
d9898ee8 | 7382 | else |
b0322a85 | 7383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7384 | $as_echo "no" >&6; } |
d9898ee8 | 7385 | fi |
7386 | ||
8d138742 CE |
7387 | if test "x$ac_ct_NMEDIT" = x; then |
7388 | NMEDIT=":" | |
dd184caf | 7389 | else |
7390 | case $cross_compiling:$ac_tool_warned in | |
7391 | yes:) | |
b0322a85 | 7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7393 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7394 | ac_tool_warned=yes ;; |
7395 | esac | |
8d138742 | 7396 | NMEDIT=$ac_ct_NMEDIT |
dd184caf | 7397 | fi |
d9898ee8 | 7398 | else |
8d138742 | 7399 | NMEDIT="$ac_cv_prog_NMEDIT" |
d9898ee8 | 7400 | fi |
7401 | ||
8d138742 CE |
7402 | if test -n "$ac_tool_prefix"; then |
7403 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7404 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7406 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7407 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 CE |
7408 | $as_echo_n "(cached) " >&6 |
7409 | else | |
7410 | if test -n "$LIPO"; then | |
7411 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7412 | else | |
7413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7414 | for as_dir in $PATH | |
7415 | do | |
7416 | IFS=$as_save_IFS | |
7417 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7418 | for ac_exec_ext in '' $ac_executable_extensions; do |
7419 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7420 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 7421 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7422 | break 2 |
7423 | fi | |
7424 | done | |
b0322a85 | 7425 | done |
8d138742 | 7426 | IFS=$as_save_IFS |
d9898ee8 | 7427 | |
8d138742 CE |
7428 | fi |
7429 | fi | |
7430 | LIPO=$ac_cv_prog_LIPO | |
7431 | if test -n "$LIPO"; then | |
b0322a85 | 7432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 CE |
7433 | $as_echo "$LIPO" >&6; } |
7434 | else | |
b0322a85 | 7435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7436 | $as_echo "no" >&6; } |
7437 | fi | |
d9898ee8 | 7438 | |
d9898ee8 | 7439 | |
d9898ee8 | 7440 | fi |
8d138742 CE |
7441 | if test -z "$ac_cv_prog_LIPO"; then |
7442 | ac_ct_LIPO=$LIPO | |
7443 | # Extract the first word of "lipo", so it can be a program name with args. | |
7444 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7446 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7447 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 CE |
7448 | $as_echo_n "(cached) " >&6 |
7449 | else | |
7450 | if test -n "$ac_ct_LIPO"; then | |
7451 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7452 | else | |
7453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7454 | for as_dir in $PATH | |
7455 | do | |
7456 | IFS=$as_save_IFS | |
7457 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7458 | for ac_exec_ext in '' $ac_executable_extensions; do |
7459 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7460 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7462 | break 2 |
7463 | fi | |
d9898ee8 | 7464 | done |
b0322a85 | 7465 | done |
8d138742 | 7466 | IFS=$as_save_IFS |
d9898ee8 | 7467 | |
8d138742 CE |
7468 | fi |
7469 | fi | |
7470 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7471 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7473 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7474 | else |
b0322a85 | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7476 | $as_echo "no" >&6; } |
7477 | fi | |
d9898ee8 | 7478 | |
8d138742 CE |
7479 | if test "x$ac_ct_LIPO" = x; then |
7480 | LIPO=":" | |
7481 | else | |
7482 | case $cross_compiling:$ac_tool_warned in | |
7483 | yes:) | |
b0322a85 | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7485 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7486 | ac_tool_warned=yes ;; | |
d9898ee8 | 7487 | esac |
8d138742 CE |
7488 | LIPO=$ac_ct_LIPO |
7489 | fi | |
7490 | else | |
7491 | LIPO="$ac_cv_prog_LIPO" | |
d9898ee8 | 7492 | fi |
7493 | ||
8d138742 CE |
7494 | if test -n "$ac_tool_prefix"; then |
7495 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7496 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7498 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7499 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 7500 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7501 | else |
8d138742 CE |
7502 | if test -n "$OTOOL"; then |
7503 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7504 | else | |
7505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7506 | for as_dir in $PATH | |
7507 | do | |
7508 | IFS=$as_save_IFS | |
7509 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7510 | for ac_exec_ext in '' $ac_executable_extensions; do |
7511 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7512 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7514 | break 2 |
7515 | fi | |
7516 | done | |
b0322a85 | 7517 | done |
8d138742 | 7518 | IFS=$as_save_IFS |
d9898ee8 | 7519 | |
8d138742 CE |
7520 | fi |
7521 | fi | |
7522 | OTOOL=$ac_cv_prog_OTOOL | |
7523 | if test -n "$OTOOL"; then | |
b0322a85 | 7524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 7525 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 7526 | else |
b0322a85 | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7528 | $as_echo "no" >&6; } |
7529 | fi | |
d9898ee8 | 7530 | |
d9898ee8 | 7531 | |
d9898ee8 | 7532 | fi |
8d138742 CE |
7533 | if test -z "$ac_cv_prog_OTOOL"; then |
7534 | ac_ct_OTOOL=$OTOOL | |
7535 | # Extract the first word of "otool", so it can be a program name with args. | |
7536 | set dummy otool; ac_word=$2 | |
b0322a85 | 7537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7538 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7539 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 CE |
7540 | $as_echo_n "(cached) " >&6 |
7541 | else | |
7542 | if test -n "$ac_ct_OTOOL"; then | |
7543 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7544 | else | |
7545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7546 | for as_dir in $PATH | |
7547 | do | |
7548 | IFS=$as_save_IFS | |
7549 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7550 | for ac_exec_ext in '' $ac_executable_extensions; do |
7551 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7552 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7554 | break 2 |
7555 | fi | |
7556 | done | |
b0322a85 | 7557 | done |
8d138742 | 7558 | IFS=$as_save_IFS |
d9898ee8 | 7559 | |
8d138742 CE |
7560 | fi |
7561 | fi | |
7562 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7563 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7565 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7566 | else |
b0322a85 | 7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7568 | $as_echo "no" >&6; } |
d9898ee8 | 7569 | fi |
7570 | ||
8d138742 CE |
7571 | if test "x$ac_ct_OTOOL" = x; then |
7572 | OTOOL=":" | |
d9898ee8 | 7573 | else |
8d138742 CE |
7574 | case $cross_compiling:$ac_tool_warned in |
7575 | yes:) | |
b0322a85 | 7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7577 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7578 | ac_tool_warned=yes ;; | |
7579 | esac | |
7580 | OTOOL=$ac_ct_OTOOL | |
d9898ee8 | 7581 | fi |
8d138742 CE |
7582 | else |
7583 | OTOOL="$ac_cv_prog_OTOOL" | |
d9898ee8 | 7584 | fi |
7585 | ||
8d138742 CE |
7586 | if test -n "$ac_tool_prefix"; then |
7587 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7588 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7590 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7591 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 CE |
7592 | $as_echo_n "(cached) " >&6 |
7593 | else | |
7594 | if test -n "$OTOOL64"; then | |
7595 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7596 | else | |
7597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7598 | for as_dir in $PATH | |
7599 | do | |
7600 | IFS=$as_save_IFS | |
7601 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7602 | for ac_exec_ext in '' $ac_executable_extensions; do |
7603 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7604 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7605 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7606 | break 2 |
d9898ee8 | 7607 | fi |
8d138742 | 7608 | done |
b0322a85 | 7609 | done |
8d138742 | 7610 | IFS=$as_save_IFS |
d9898ee8 | 7611 | |
8d138742 CE |
7612 | fi |
7613 | fi | |
7614 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7615 | if test -n "$OTOOL64"; then | |
b0322a85 | 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 CE |
7617 | $as_echo "$OTOOL64" >&6; } |
7618 | else | |
b0322a85 | 7619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7620 | $as_echo "no" >&6; } |
dd184caf | 7621 | fi |
d9898ee8 | 7622 | |
d9898ee8 | 7623 | |
8d138742 CE |
7624 | fi |
7625 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7626 | ac_ct_OTOOL64=$OTOOL64 | |
7627 | # Extract the first word of "otool64", so it can be a program name with args. | |
7628 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7630 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7631 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 CE |
7632 | $as_echo_n "(cached) " >&6 |
7633 | else | |
7634 | if test -n "$ac_ct_OTOOL64"; then | |
7635 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7636 | else | |
7637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7638 | for as_dir in $PATH | |
7639 | do | |
7640 | IFS=$as_save_IFS | |
7641 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7642 | for ac_exec_ext in '' $ac_executable_extensions; do |
7643 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7644 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7645 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7646 | break 2 |
7647 | fi | |
7648 | done | |
b0322a85 | 7649 | done |
8d138742 | 7650 | IFS=$as_save_IFS |
d9898ee8 | 7651 | |
8d138742 CE |
7652 | fi |
7653 | fi | |
7654 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7655 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7657 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7658 | else |
b0322a85 | 7659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7660 | $as_echo "no" >&6; } |
dd184caf | 7661 | fi |
7662 | ||
8d138742 CE |
7663 | if test "x$ac_ct_OTOOL64" = x; then |
7664 | OTOOL64=":" | |
7665 | else | |
7666 | case $cross_compiling:$ac_tool_warned in | |
7667 | yes:) | |
b0322a85 | 7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7669 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7670 | ac_tool_warned=yes ;; | |
7671 | esac | |
7672 | OTOOL64=$ac_ct_OTOOL64 | |
7673 | fi | |
7674 | else | |
7675 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7676 | fi | |
d9898ee8 | 7677 | |
d9898ee8 | 7678 | |
7679 | ||
d9898ee8 | 7680 | |
d9898ee8 | 7681 | |
d9898ee8 | 7682 | |
d9898ee8 | 7683 | |
7684 | ||
d9898ee8 | 7685 | |
d9898ee8 | 7686 | |
d9898ee8 | 7687 | |
7688 | ||
d9898ee8 | 7689 | |
d9898ee8 | 7690 | |
7691 | ||
7692 | ||
d9898ee8 | 7693 | |
d9898ee8 | 7694 | |
7695 | ||
d9898ee8 | 7696 | |
d9898ee8 | 7697 | |
d9898ee8 | 7698 | |
d9898ee8 | 7699 | |
d9898ee8 | 7700 | |
d9898ee8 | 7701 | |
d9898ee8 | 7702 | |
8d138742 | 7703 | |
b0322a85 | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7705 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7706 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 CE |
7707 | $as_echo_n "(cached) " >&6 |
7708 | else | |
7709 | lt_cv_apple_cc_single_mod=no | |
d50284c4 | 7710 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7711 | # By default we will add the -single_module flag. You can override |
7712 | # by either setting the environment variable LT_MULTI_MODULE | |
7713 | # non-empty at configure time, or by adding -multi_module to the | |
7714 | # link flags. | |
7715 | rm -rf libconftest.dylib* | |
7716 | echo "int foo(void){return 1;}" > conftest.c | |
7717 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7718 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7719 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7720 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7721 | _lt_result=$? | |
b0322a85 CE |
7722 | # If there is a non-empty error log, and "single_module" |
7723 | # appears in it, assume the flag caused a linker warning | |
7724 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7725 | cat conftest.err >&5 | |
7726 | # Otherwise, if the output was created with a 0 exit code from | |
7727 | # the compiler, it worked. | |
d50284c4 | 7728 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
7729 | lt_cv_apple_cc_single_mod=yes |
7730 | else | |
7731 | cat conftest.err >&5 | |
7732 | fi | |
7733 | rm -rf libconftest.dylib* | |
7734 | rm -f conftest.* | |
d9898ee8 | 7735 | fi |
8d138742 | 7736 | fi |
b0322a85 | 7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7738 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7739 | |
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7741 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7742 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7743 | $as_echo_n "(cached) " >&6 |
7744 | else | |
7745 | lt_cv_ld_exported_symbols_list=no | |
7746 | save_LDFLAGS=$LDFLAGS | |
7747 | echo "_main" > conftest.sym | |
7748 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7750 | /* end confdefs.h. */ |
d9898ee8 | 7751 | |
8d138742 CE |
7752 | int |
7753 | main () | |
7754 | { | |
d9898ee8 | 7755 | |
8d138742 CE |
7756 | ; |
7757 | return 0; | |
7758 | } | |
7759 | _ACEOF | |
b0322a85 | 7760 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
7761 | lt_cv_ld_exported_symbols_list=yes |
7762 | else | |
b0322a85 | 7763 | lt_cv_ld_exported_symbols_list=no |
8d138742 | 7764 | fi |
b0322a85 CE |
7765 | rm -f core conftest.err conftest.$ac_objext \ |
7766 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7767 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7768 | |
8d138742 | 7769 | fi |
b0322a85 | 7770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7771 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7772 | |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7774 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7775 | if ${lt_cv_ld_force_load+:} false; then : | |
7776 | $as_echo_n "(cached) " >&6 | |
7777 | else | |
7778 | lt_cv_ld_force_load=no | |
7779 | cat > conftest.c << _LT_EOF | |
7780 | int forced_loaded() { return 2;} | |
7781 | _LT_EOF | |
7782 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7783 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7784 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7785 | $AR cru libconftest.a conftest.o 2>&5 | |
7786 | echo "$RANLIB libconftest.a" >&5 | |
7787 | $RANLIB libconftest.a 2>&5 | |
7788 | cat > conftest.c << _LT_EOF | |
7789 | int main() { return 0;} | |
7790 | _LT_EOF | |
7791 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7792 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7793 | _lt_result=$? | |
7794 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7795 | cat conftest.err >&5 | |
d50284c4 | 7796 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7797 | lt_cv_ld_force_load=yes |
7798 | else | |
7799 | cat conftest.err >&5 | |
7800 | fi | |
7801 | rm -f conftest.err libconftest.a conftest conftest.c | |
7802 | rm -rf conftest.dSYM | |
7803 | ||
7804 | fi | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7806 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8d138742 CE |
7807 | case $host_os in |
7808 | rhapsody* | darwin1.[012]) | |
d50284c4 | 7809 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7810 | darwin1.*) |
d50284c4 | 7811 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7812 | darwin*) # darwin 5.x on |
7813 | # if running on 10.5 or later, the deployment target defaults | |
7814 | # to the OS version, if on x86, and 10.4, the deployment | |
7815 | # target defaults to 10.4. Don't you love it? | |
7816 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7817 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7818 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7819 | 10.[012][,.]*) | |
7820 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7821 | 10.*) |
d50284c4 | 7822 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7823 | esac |
7824 | ;; | |
7825 | esac | |
d50284c4 | 7826 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7827 | _lt_dar_single_mod='$single_module' |
7828 | fi | |
d50284c4 CE |
7829 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7830 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7831 | else |
d50284c4 | 7832 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7833 | fi |
d50284c4 | 7834 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7835 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7836 | else | |
7837 | _lt_dsymutil= | |
7838 | fi | |
7839 | ;; | |
7840 | esac | |
d9898ee8 | 7841 | |
d50284c4 CE |
7842 | # func_munge_path_list VARIABLE PATH |
7843 | # ----------------------------------- | |
7844 | # VARIABLE is name of variable containing _space_ separated list of | |
7845 | # directories to be munged by the contents of PATH, which is string | |
7846 | # having a format: | |
7847 | # "DIR[:DIR]:" | |
7848 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7849 | # ":DIR[:DIR]" | |
7850 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7851 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7852 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7853 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7854 | # "DIR[:DIR]" | |
7855 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7856 | func_munge_path_list () | |
7857 | { | |
7858 | case x$2 in | |
7859 | x) | |
7860 | ;; | |
7861 | *:) | |
7862 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7863 | ;; | |
7864 | x:*) | |
7865 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7866 | ;; | |
7867 | *::*) | |
7868 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7869 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7870 | ;; | |
7871 | *) | |
7872 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7873 | ;; | |
7874 | esac | |
7875 | } | |
7876 | ||
d9898ee8 | 7877 | |
b0322a85 | 7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7879 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7880 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7881 | $as_echo_n "(cached) " >&6 |
7882 | else | |
b0322a85 | 7883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7884 | /* end confdefs.h. */ |
7885 | #include <stdlib.h> | |
7886 | #include <stdarg.h> | |
7887 | #include <string.h> | |
7888 | #include <float.h> | |
d9898ee8 | 7889 | |
8d138742 CE |
7890 | int |
7891 | main () | |
7892 | { | |
d9898ee8 | 7893 | |
8d138742 CE |
7894 | ; |
7895 | return 0; | |
7896 | } | |
7897 | _ACEOF | |
b0322a85 | 7898 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7899 | ac_cv_header_stdc=yes |
7900 | else | |
b0322a85 | 7901 | ac_cv_header_stdc=no |
8d138742 | 7902 | fi |
8d138742 | 7903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7904 | |
8d138742 CE |
7905 | if test $ac_cv_header_stdc = yes; then |
7906 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7908 | /* end confdefs.h. */ |
7909 | #include <string.h> | |
d9898ee8 | 7910 | |
8d138742 CE |
7911 | _ACEOF |
7912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7913 | $EGREP "memchr" >/dev/null 2>&1; then : |
7914 | ||
8d138742 CE |
7915 | else |
7916 | ac_cv_header_stdc=no | |
7917 | fi | |
7918 | rm -f conftest* | |
d9898ee8 | 7919 | |
8d138742 | 7920 | fi |
d9898ee8 | 7921 | |
8d138742 CE |
7922 | if test $ac_cv_header_stdc = yes; then |
7923 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7925 | /* end confdefs.h. */ |
7926 | #include <stdlib.h> | |
ac40fd9e | 7927 | |
8d138742 CE |
7928 | _ACEOF |
7929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7930 | $EGREP "free" >/dev/null 2>&1; then : |
7931 | ||
8d138742 CE |
7932 | else |
7933 | ac_cv_header_stdc=no | |
7934 | fi | |
7935 | rm -f conftest* | |
d9898ee8 | 7936 | |
8d138742 | 7937 | fi |
d9898ee8 | 7938 | |
8d138742 CE |
7939 | if test $ac_cv_header_stdc = yes; then |
7940 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7941 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7942 | : |
7943 | else | |
b0322a85 | 7944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7945 | /* end confdefs.h. */ |
7946 | #include <ctype.h> | |
7947 | #include <stdlib.h> | |
7948 | #if ((' ' & 0x0FF) == 0x020) | |
7949 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7950 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7951 | #else | |
7952 | # define ISLOWER(c) \ | |
7953 | (('a' <= (c) && (c) <= 'i') \ | |
7954 | || ('j' <= (c) && (c) <= 'r') \ | |
7955 | || ('s' <= (c) && (c) <= 'z')) | |
7956 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7957 | #endif | |
d9898ee8 | 7958 | |
8d138742 CE |
7959 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7960 | int | |
7961 | main () | |
7962 | { | |
7963 | int i; | |
7964 | for (i = 0; i < 256; i++) | |
7965 | if (XOR (islower (i), ISLOWER (i)) | |
7966 | || toupper (i) != TOUPPER (i)) | |
7967 | return 2; | |
7968 | return 0; | |
7969 | } | |
7970 | _ACEOF | |
b0322a85 | 7971 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 7972 | |
b0322a85 CE |
7973 | else |
7974 | ac_cv_header_stdc=no | |
8d138742 | 7975 | fi |
b0322a85 CE |
7976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7977 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 7978 | fi |
d9898ee8 | 7979 | |
8d138742 CE |
7980 | fi |
7981 | fi | |
b0322a85 | 7982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7983 | $as_echo "$ac_cv_header_stdc" >&6; } |
7984 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7985 | |
b0322a85 | 7986 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7987 | |
8d138742 | 7988 | fi |
d9898ee8 | 7989 | |
8d138742 | 7990 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7991 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7992 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7993 | do : |
7994 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7995 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7996 | " | |
7997 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7998 | cat >>confdefs.h <<_ACEOF |
7999 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8000 | _ACEOF | |
d9898ee8 | 8001 | |
8d138742 | 8002 | fi |
d9898ee8 | 8003 | |
8d138742 CE |
8004 | done |
8005 | ||
8006 | ||
8d138742 | 8007 | for ac_header in dlfcn.h |
b0322a85 CE |
8008 | do : |
8009 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8010 | " | |
8011 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 8012 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 8013 | #define HAVE_DLFCN_H 1 |
8d138742 CE |
8014 | _ACEOF |
8015 | ||
8016 | fi | |
d9898ee8 | 8017 | |
d9898ee8 | 8018 | done |
d9898ee8 | 8019 | |
d9898ee8 | 8020 | |
d9898ee8 | 8021 | |
b0322a85 CE |
8022 | |
8023 | ||
8d138742 CE |
8024 | # Set options |
8025 | enable_dlopen=yes | |
d9898ee8 | 8026 | |
d9898ee8 | 8027 | |
d9898ee8 | 8028 | |
d9898ee8 | 8029 | |
8d138742 | 8030 | enable_win32_dll=no |
d9898ee8 | 8031 | |
d9898ee8 | 8032 | |
8d138742 | 8033 | # Check whether --enable-shared was given. |
b0322a85 | 8034 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
8035 | enableval=$enable_shared; p=${PACKAGE-default} |
8036 | case $enableval in | |
8037 | yes) enable_shared=yes ;; | |
8038 | no) enable_shared=no ;; | |
8039 | *) | |
8040 | enable_shared=no | |
8041 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8042 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8043 | for pkg in $enableval; do |
d50284c4 | 8044 | IFS=$lt_save_ifs |
8d138742 CE |
8045 | if test "X$pkg" = "X$p"; then |
8046 | enable_shared=yes | |
8047 | fi | |
8048 | done | |
d50284c4 | 8049 | IFS=$lt_save_ifs |
d9898ee8 | 8050 | ;; |
8d138742 CE |
8051 | esac |
8052 | else | |
8053 | enable_shared=yes | |
8054 | fi | |
8055 | ||
8056 | ||
d9898ee8 | 8057 | |
d9898ee8 | 8058 | |
d9898ee8 | 8059 | |
d9898ee8 | 8060 | |
d9898ee8 | 8061 | |
8d138742 CE |
8062 | |
8063 | ||
8064 | # Check whether --enable-static was given. | |
b0322a85 | 8065 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
8066 | enableval=$enable_static; p=${PACKAGE-default} |
8067 | case $enableval in | |
8068 | yes) enable_static=yes ;; | |
8069 | no) enable_static=no ;; | |
8070 | *) | |
8071 | enable_static=no | |
8072 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8073 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8074 | for pkg in $enableval; do |
d50284c4 | 8075 | IFS=$lt_save_ifs |
8d138742 CE |
8076 | if test "X$pkg" = "X$p"; then |
8077 | enable_static=yes | |
d9898ee8 | 8078 | fi |
8d138742 | 8079 | done |
d50284c4 | 8080 | IFS=$lt_save_ifs |
d9898ee8 | 8081 | ;; |
8d138742 CE |
8082 | esac |
8083 | else | |
8084 | enable_static=yes | |
8085 | fi | |
d9898ee8 | 8086 | |
d9898ee8 | 8087 | |
d9898ee8 | 8088 | |
d9898ee8 | 8089 | |
d9898ee8 | 8090 | |
d9898ee8 | 8091 | |
d9898ee8 | 8092 | |
d9898ee8 | 8093 | |
d9898ee8 | 8094 | |
8d138742 CE |
8095 | |
8096 | # Check whether --with-pic was given. | |
b0322a85 CE |
8097 | if test "${with_pic+set}" = set; then : |
8098 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8099 | case $withval in | |
8100 | yes|no) pic_mode=$withval ;; | |
8101 | *) | |
8102 | pic_mode=default | |
8103 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8104 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 8105 | for lt_pkg in $withval; do |
d50284c4 | 8106 | IFS=$lt_save_ifs |
b0322a85 CE |
8107 | if test "X$lt_pkg" = "X$lt_p"; then |
8108 | pic_mode=yes | |
8109 | fi | |
8110 | done | |
d50284c4 | 8111 | IFS=$lt_save_ifs |
b0322a85 CE |
8112 | ;; |
8113 | esac | |
8114 | else | |
8115 | pic_mode=default | |
8116 | fi | |
8117 | ||
8118 | ||
8d138742 CE |
8119 | |
8120 | ||
8121 | ||
8122 | ||
8123 | ||
8124 | ||
8125 | # Check whether --enable-fast-install was given. | |
b0322a85 | 8126 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
8127 | enableval=$enable_fast_install; p=${PACKAGE-default} |
8128 | case $enableval in | |
8129 | yes) enable_fast_install=yes ;; | |
8130 | no) enable_fast_install=no ;; | |
d9898ee8 | 8131 | *) |
8d138742 CE |
8132 | enable_fast_install=no |
8133 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 8134 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 8135 | for pkg in $enableval; do |
d50284c4 | 8136 | IFS=$lt_save_ifs |
8d138742 CE |
8137 | if test "X$pkg" = "X$p"; then |
8138 | enable_fast_install=yes | |
8139 | fi | |
8140 | done | |
d50284c4 | 8141 | IFS=$lt_save_ifs |
d9898ee8 | 8142 | ;; |
8143 | esac | |
8d138742 CE |
8144 | else |
8145 | enable_fast_install=yes | |
8146 | fi | |
d9898ee8 | 8147 | |
d9898ee8 | 8148 | |
d9898ee8 | 8149 | |
d9898ee8 | 8150 | |
d9898ee8 | 8151 | |
d9898ee8 | 8152 | |
d9898ee8 | 8153 | |
d9898ee8 | 8154 | |
d50284c4 CE |
8155 | shared_archive_member_spec= |
8156 | case $host,$enable_shared in | |
8157 | power*-*-aix[5-9]*,yes) | |
8158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8159 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8160 | ||
8161 | # Check whether --with-aix-soname was given. | |
8162 | if test "${with_aix_soname+set}" = set; then : | |
8163 | withval=$with_aix_soname; case $withval in | |
8164 | aix|svr4|both) | |
8165 | ;; | |
8166 | *) | |
8167 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8168 | ;; | |
8169 | esac | |
8170 | lt_cv_with_aix_soname=$with_aix_soname | |
8171 | else | |
8172 | if ${lt_cv_with_aix_soname+:} false; then : | |
8173 | $as_echo_n "(cached) " >&6 | |
8174 | else | |
8175 | lt_cv_with_aix_soname=aix | |
8176 | fi | |
8177 | ||
8178 | with_aix_soname=$lt_cv_with_aix_soname | |
8179 | fi | |
8180 | ||
8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8182 | $as_echo "$with_aix_soname" >&6; } | |
8183 | if test aix != "$with_aix_soname"; then | |
8184 | # For the AIX way of multilib, we name the shared archive member | |
8185 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8186 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8187 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8188 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8189 | if test 64 = "${OBJECT_MODE-32}"; then | |
8190 | shared_archive_member_spec=shr_64 | |
8191 | else | |
8192 | shared_archive_member_spec=shr | |
8193 | fi | |
8194 | fi | |
8195 | ;; | |
8196 | *) | |
8197 | with_aix_soname=aix | |
8198 | ;; | |
8199 | esac | |
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | ||
8205 | ||
8206 | ||
d9898ee8 | 8207 | |
d9898ee8 | 8208 | |
d9898ee8 | 8209 | |
8d138742 | 8210 | # This can be used to rebuild libtool when needed |
d50284c4 | 8211 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 8212 | |
8d138742 CE |
8213 | # Always use our own libtool. |
8214 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
dd184caf | 8215 | |
dd184caf | 8216 | |
d9898ee8 | 8217 | |
d9898ee8 | 8218 | |
d9898ee8 | 8219 | |
d9898ee8 | 8220 | |
d9898ee8 | 8221 | |
dd184caf | 8222 | |
dd184caf | 8223 | |
d9898ee8 | 8224 | |
d9898ee8 | 8225 | |
d9898ee8 | 8226 | |
d9898ee8 | 8227 | |
d9898ee8 | 8228 | |
d9898ee8 | 8229 | |
d9898ee8 | 8230 | |
d9898ee8 | 8231 | |
d9898ee8 | 8232 | |
d9898ee8 | 8233 | |
b0322a85 CE |
8234 | |
8235 | ||
8236 | ||
8237 | ||
8238 | ||
d9898ee8 | 8239 | |
d9898ee8 | 8240 | |
d9898ee8 | 8241 | |
d9898ee8 | 8242 | |
d9898ee8 | 8243 | |
d9898ee8 | 8244 | |
8d138742 | 8245 | test -z "$LN_S" && LN_S="ln -s" |
d9898ee8 | 8246 | |
d9898ee8 | 8247 | |
d9898ee8 | 8248 | |
d9898ee8 | 8249 | |
d9898ee8 | 8250 | |
d9898ee8 | 8251 | |
d9898ee8 | 8252 | |
d9898ee8 | 8253 | |
d9898ee8 | 8254 | |
d9898ee8 | 8255 | |
d9898ee8 | 8256 | |
d9898ee8 | 8257 | |
d9898ee8 | 8258 | |
d9898ee8 | 8259 | |
d50284c4 | 8260 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
8261 | setopt NO_GLOB_SUBST |
8262 | fi | |
d9898ee8 | 8263 | |
b0322a85 | 8264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 8265 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 8266 | if ${lt_cv_objdir+:} false; then : |
8d138742 CE |
8267 | $as_echo_n "(cached) " >&6 |
8268 | else | |
8269 | rm -f .libs 2>/dev/null | |
8270 | mkdir .libs 2>/dev/null | |
8271 | if test -d .libs; then | |
8272 | lt_cv_objdir=.libs | |
8273 | else | |
8274 | # MS-DOS does not allow filenames that begin with a dot. | |
8275 | lt_cv_objdir=_libs | |
8276 | fi | |
8277 | rmdir .libs 2>/dev/null | |
8278 | fi | |
b0322a85 | 8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
8280 | $as_echo "$lt_cv_objdir" >&6; } |
8281 | objdir=$lt_cv_objdir | |
d9898ee8 | 8282 | |
d9898ee8 | 8283 | |
d9898ee8 | 8284 | |
d9898ee8 | 8285 | |
d9898ee8 | 8286 | |
8d138742 CE |
8287 | cat >>confdefs.h <<_ACEOF |
8288 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8289 | _ACEOF | |
d9898ee8 | 8290 | |
d9898ee8 | 8291 | |
d9898ee8 | 8292 | |
d9898ee8 | 8293 | |
8d138742 CE |
8294 | case $host_os in |
8295 | aix3*) | |
8296 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8297 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8298 | # vanish in a puff of smoke. | |
d50284c4 | 8299 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8300 | COLLECT_NAMES= |
8301 | export COLLECT_NAMES | |
d9898ee8 | 8302 | fi |
8303 | ;; | |
8304 | esac | |
8305 | ||
8d138742 CE |
8306 | # Global variables: |
8307 | ofile=libtool | |
8308 | can_build_shared=yes | |
8309 | ||
d50284c4 | 8310 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8311 | # which needs '.lib'). |
8312 | libext=a | |
8313 | ||
d50284c4 | 8314 | with_gnu_ld=$lt_cv_prog_gnu_ld |
8d138742 | 8315 | |
d50284c4 CE |
8316 | old_CC=$CC |
8317 | old_CFLAGS=$CFLAGS | |
8d138742 CE |
8318 | |
8319 | # Set sane defaults for various variables | |
8320 | test -z "$CC" && CC=cc | |
8321 | test -z "$LTCC" && LTCC=$CC | |
8322 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8323 | test -z "$LD" && LD=ld | |
8324 | test -z "$ac_objext" && ac_objext=o | |
8325 | ||
d50284c4 CE |
8326 | func_cc_basename $compiler |
8327 | cc_basename=$func_cc_basename_result | |
8d138742 CE |
8328 | |
8329 | ||
8330 | # Only perform the check for file, if the check method requires it | |
8331 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8332 | case $deplibs_check_method in | |
8333 | file_magic*) | |
8334 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8336 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8337 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8338 | $as_echo_n "(cached) " >&6 |
8339 | else | |
8340 | case $MAGIC_CMD in | |
8341 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8342 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8343 | ;; |
8344 | *) | |
d50284c4 CE |
8345 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8346 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8347 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8348 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8349 | IFS=$lt_save_ifs |
8d138742 | 8350 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8351 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8352 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8353 | if test -n "$file_magic_test_file"; then |
8354 | case $deplibs_check_method in | |
8355 | "file_magic "*) | |
8356 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8357 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8358 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8359 | $EGREP "$file_magic_regex" > /dev/null; then | |
8360 | : | |
8361 | else | |
8362 | cat <<_LT_EOF 1>&2 | |
8363 | ||
8364 | *** Warning: the command libtool uses to detect shared libraries, | |
8365 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8366 | *** The result is that libtool may fail to recognize shared libraries | |
8367 | *** as such. This will affect the creation of libtool libraries that | |
8368 | *** depend on shared libraries, but programs linked with such libtool | |
8369 | *** libraries will work regardless of this problem. Nevertheless, you | |
8370 | *** may want to report the problem to your system manager and/or to | |
8371 | *** bug-libtool@gnu.org | |
8372 | ||
8373 | _LT_EOF | |
8374 | fi ;; | |
8375 | esac | |
8376 | fi | |
8377 | break | |
ac40fd9e | 8378 | fi |
8379 | done | |
d50284c4 CE |
8380 | IFS=$lt_save_ifs |
8381 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8382 | ;; |
8383 | esac | |
8384 | fi | |
8385 | ||
d50284c4 | 8386 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8387 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8389 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8390 | else |
b0322a85 | 8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 8392 | $as_echo "no" >&6; } |
d9898ee8 | 8393 | fi |
d9898ee8 | 8394 | |
d9898ee8 | 8395 | |
d9898ee8 | 8396 | |
8d138742 CE |
8397 | |
8398 | ||
8399 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8400 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8402 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8403 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8404 | $as_echo_n "(cached) " >&6 |
8405 | else | |
8406 | case $MAGIC_CMD in | |
8407 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8408 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
d9898ee8 | 8409 | ;; |
8d138742 | 8410 | *) |
d50284c4 CE |
8411 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8412 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8413 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8414 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8415 | IFS=$lt_save_ifs |
8d138742 | 8416 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8417 | if test -f "$ac_dir/file"; then |
8418 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8419 | if test -n "$file_magic_test_file"; then |
8420 | case $deplibs_check_method in | |
8421 | "file_magic "*) | |
8422 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8423 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8424 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8425 | $EGREP "$file_magic_regex" > /dev/null; then | |
8426 | : | |
8427 | else | |
8428 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8429 | |
8d138742 CE |
8430 | *** Warning: the command libtool uses to detect shared libraries, |
8431 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8432 | *** The result is that libtool may fail to recognize shared libraries | |
8433 | *** as such. This will affect the creation of libtool libraries that | |
8434 | *** depend on shared libraries, but programs linked with such libtool | |
8435 | *** libraries will work regardless of this problem. Nevertheless, you | |
8436 | *** may want to report the problem to your system manager and/or to | |
8437 | *** bug-libtool@gnu.org | |
8438 | ||
8439 | _LT_EOF | |
8440 | fi ;; | |
8441 | esac | |
d9898ee8 | 8442 | fi |
8d138742 | 8443 | break |
d9898ee8 | 8444 | fi |
8d138742 | 8445 | done |
d50284c4 CE |
8446 | IFS=$lt_save_ifs |
8447 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
d9898ee8 | 8448 | ;; |
8d138742 CE |
8449 | esac |
8450 | fi | |
d9898ee8 | 8451 | |
d50284c4 | 8452 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8453 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 CE |
8455 | $as_echo "$MAGIC_CMD" >&6; } |
8456 | else | |
b0322a85 | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8458 | $as_echo "no" >&6; } |
8459 | fi | |
d9898ee8 | 8460 | |
d9898ee8 | 8461 | |
8d138742 CE |
8462 | else |
8463 | MAGIC_CMD=: | |
8464 | fi | |
8465 | fi | |
8466 | ||
8467 | fi | |
d9898ee8 | 8468 | ;; |
8d138742 | 8469 | esac |
d9898ee8 | 8470 | |
8d138742 | 8471 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8472 | |
d50284c4 | 8473 | lt_save_CC=$CC |
8d138742 CE |
8474 | ac_ext=c |
8475 | ac_cpp='$CPP $CPPFLAGS' | |
8476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8479 | |
d9898ee8 | 8480 | |
8d138742 CE |
8481 | # Source file extension for C test sources. |
8482 | ac_ext=c | |
d9898ee8 | 8483 | |
8d138742 CE |
8484 | # Object file extension for compiled C test sources. |
8485 | objext=o | |
8486 | objext=$objext | |
ac40fd9e | 8487 | |
8d138742 CE |
8488 | # Code to be used in simple compile tests |
8489 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8490 | |
8d138742 CE |
8491 | # Code to be used in simple link tests |
8492 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8493 | |
d9898ee8 | 8494 | |
d9898ee8 | 8495 | |
d9898ee8 | 8496 | |
d9898ee8 | 8497 | |
d9898ee8 | 8498 | |
d9898ee8 | 8499 | |
8d138742 CE |
8500 | # If no C compiler was specified, use CC. |
8501 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8502 | |
8d138742 CE |
8503 | # If no C compiler flags were specified, use CFLAGS. |
8504 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8505 | |
8d138742 CE |
8506 | # Allow CC to be a program name with arguments. |
8507 | compiler=$CC | |
d9898ee8 | 8508 | |
8d138742 CE |
8509 | # Save the default compiler, since it gets overwritten when the other |
8510 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8511 | compiler_DEFAULT=$CC | |
d9898ee8 | 8512 | |
8d138742 CE |
8513 | # save warnings/boilerplate of simple test code |
8514 | ac_outfile=conftest.$ac_objext | |
8515 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8516 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8517 | _lt_compiler_boilerplate=`cat conftest.err` | |
8518 | $RM conftest* | |
d9898ee8 | 8519 | |
8d138742 CE |
8520 | ac_outfile=conftest.$ac_objext |
8521 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8522 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8523 | _lt_linker_boilerplate=`cat conftest.err` | |
8524 | $RM -r conftest* | |
d9898ee8 | 8525 | |
d9898ee8 | 8526 | |
8d138742 | 8527 | if test -n "$compiler"; then |
d9898ee8 | 8528 | |
8d138742 | 8529 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8530 | |
d50284c4 | 8531 | if test yes = "$GCC"; then |
b0322a85 CE |
8532 | case $cc_basename in |
8533 | nvcc*) | |
8534 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8535 | *) | |
8536 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8537 | esac | |
d9898ee8 | 8538 | |
b0322a85 | 8539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8d138742 | 8540 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8541 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8542 | $as_echo_n "(cached) " >&6 |
8543 | else | |
8544 | lt_cv_prog_compiler_rtti_exceptions=no | |
8545 | ac_outfile=conftest.$ac_objext | |
8546 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8547 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8548 | # Insert the option either (1) after the last *FLAGS variable, or |
8549 | # (2) before a word containing "conftest.", or (3) at the end. | |
8550 | # Note that $ac_compile itself does not contain backslashes and begins | |
8551 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8552 | # The option is referenced via a variable to avoid confusing sed. | |
8553 | lt_compile=`echo "$ac_compile" | $SED \ | |
8554 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8555 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8556 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8557 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8558 | (eval "$lt_compile" 2>conftest.err) |
8559 | ac_status=$? | |
8560 | cat conftest.err >&5 | |
b0322a85 | 8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8562 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8563 | # The compiler can only warn and ignore the option if not recognized | |
8564 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8565 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8566 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8567 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8568 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8569 | fi | |
8570 | fi | |
8571 | $RM conftest* | |
d9898ee8 | 8572 | |
d9898ee8 | 8573 | fi |
b0322a85 | 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8575 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8576 | |
d50284c4 | 8577 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 | 8578 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
d9898ee8 | 8579 | else |
8d138742 | 8580 | : |
d9898ee8 | 8581 | fi |
d9898ee8 | 8582 | |
d9898ee8 | 8583 | fi |
8584 | ||
d9898ee8 | 8585 | |
d9898ee8 | 8586 | |
d9898ee8 | 8587 | |
d9898ee8 | 8588 | |
d9898ee8 | 8589 | |
8d138742 CE |
8590 | lt_prog_compiler_wl= |
8591 | lt_prog_compiler_pic= | |
8592 | lt_prog_compiler_static= | |
d9898ee8 | 8593 | |
d9898ee8 | 8594 | |
d50284c4 | 8595 | if test yes = "$GCC"; then |
8d138742 CE |
8596 | lt_prog_compiler_wl='-Wl,' |
8597 | lt_prog_compiler_static='-static' | |
dd184caf | 8598 | |
8d138742 CE |
8599 | case $host_os in |
8600 | aix*) | |
8601 | # All AIX code is PIC. | |
d50284c4 | 8602 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8603 | # AIX 5 now supports IA64 processor |
8604 | lt_prog_compiler_static='-Bstatic' | |
8605 | fi | |
d50284c4 | 8606 | lt_prog_compiler_pic='-fPIC' |
8d138742 | 8607 | ;; |
d9898ee8 | 8608 | |
8d138742 CE |
8609 | amigaos*) |
8610 | case $host_cpu in | |
8611 | powerpc) | |
8612 | # see comment about AmigaOS4 .so support | |
8613 | lt_prog_compiler_pic='-fPIC' | |
8614 | ;; | |
8615 | m68k) | |
8616 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8617 | # adding the '-m68020' flag to GCC prevents building anything better, |
8618 | # like '-m68040'. | |
8d138742 CE |
8619 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8620 | ;; | |
8621 | esac | |
8622 | ;; | |
d9898ee8 | 8623 | |
8d138742 CE |
8624 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8625 | # PIC is the default for these OSes. | |
8626 | ;; | |
d9898ee8 | 8627 | |
8d138742 CE |
8628 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8629 | # This hack is so that the source file can tell whether it is being | |
8630 | # built for inclusion in a dll (and should export symbols for example). | |
8631 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8632 | # (--disable-auto-import) libraries | |
8633 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8634 | case $host_os in |
8635 | os2*) | |
8636 | lt_prog_compiler_static='$wl-static' | |
8637 | ;; | |
8638 | esac | |
8d138742 | 8639 | ;; |
d9898ee8 | 8640 | |
8d138742 CE |
8641 | darwin* | rhapsody*) |
8642 | # PIC is the default on this platform | |
8643 | # Common symbols not allowed in MH_DYLIB files | |
8644 | lt_prog_compiler_pic='-fno-common' | |
8645 | ;; | |
d9898ee8 | 8646 | |
b0322a85 CE |
8647 | haiku*) |
8648 | # PIC is the default for Haiku. | |
8649 | # The "-static" flag exists, but is broken. | |
8650 | lt_prog_compiler_static= | |
8651 | ;; | |
8652 | ||
8d138742 CE |
8653 | hpux*) |
8654 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8655 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8656 | # sets the default TLS model and affects inlining. | |
8657 | case $host_cpu in | |
8658 | hppa*64*) | |
8659 | # +Z the default | |
8660 | ;; | |
8661 | *) | |
8662 | lt_prog_compiler_pic='-fPIC' | |
8663 | ;; | |
8664 | esac | |
8665 | ;; | |
d9898ee8 | 8666 | |
8d138742 CE |
8667 | interix[3-9]*) |
8668 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8669 | # Instead, we relocate shared libraries at runtime. | |
8670 | ;; | |
d9898ee8 | 8671 | |
8d138742 CE |
8672 | msdosdjgpp*) |
8673 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8674 | # on systems that don't support them. | |
8675 | lt_prog_compiler_can_build_shared=no | |
8676 | enable_shared=no | |
8677 | ;; | |
d9898ee8 | 8678 | |
8d138742 CE |
8679 | *nto* | *qnx*) |
8680 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8681 | # it will coredump. | |
8682 | lt_prog_compiler_pic='-fPIC -shared' | |
8683 | ;; | |
d9898ee8 | 8684 | |
8d138742 CE |
8685 | sysv4*MP*) |
8686 | if test -d /usr/nec; then | |
8687 | lt_prog_compiler_pic=-Kconform_pic | |
8688 | fi | |
8689 | ;; | |
d9898ee8 | 8690 | |
8d138742 CE |
8691 | *) |
8692 | lt_prog_compiler_pic='-fPIC' | |
8693 | ;; | |
8694 | esac | |
b0322a85 CE |
8695 | |
8696 | case $cc_basename in | |
8697 | nvcc*) # Cuda Compiler Driver 2.2 | |
8698 | lt_prog_compiler_wl='-Xlinker ' | |
8699 | if test -n "$lt_prog_compiler_pic"; then | |
8700 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8701 | fi | |
8702 | ;; | |
8703 | esac | |
8d138742 CE |
8704 | else |
8705 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8706 | case $host_os in | |
8707 | aix*) | |
8708 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8709 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8710 | # AIX 5 now supports IA64 processor |
8711 | lt_prog_compiler_static='-Bstatic' | |
8712 | else | |
8713 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8714 | fi | |
8715 | ;; | |
dd184caf | 8716 | |
d50284c4 CE |
8717 | darwin* | rhapsody*) |
8718 | # PIC is the default on this platform | |
8719 | # Common symbols not allowed in MH_DYLIB files | |
8720 | lt_prog_compiler_pic='-fno-common' | |
8721 | case $cc_basename in | |
8722 | nagfor*) | |
8723 | # NAG Fortran compiler | |
8724 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8725 | lt_prog_compiler_pic='-PIC' | |
8726 | lt_prog_compiler_static='-Bstatic' | |
8727 | ;; | |
8728 | esac | |
8729 | ;; | |
8730 | ||
8d138742 CE |
8731 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8732 | # This hack is so that the source file can tell whether it is being | |
8733 | # built for inclusion in a dll (and should export symbols for example). | |
8734 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8735 | case $host_os in |
8736 | os2*) | |
8737 | lt_prog_compiler_static='$wl-static' | |
8738 | ;; | |
8739 | esac | |
8d138742 | 8740 | ;; |
d9898ee8 | 8741 | |
8d138742 CE |
8742 | hpux9* | hpux10* | hpux11*) |
8743 | lt_prog_compiler_wl='-Wl,' | |
8744 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8745 | # not for PA HP-UX. | |
8746 | case $host_cpu in | |
8747 | hppa*64*|ia64*) | |
8748 | # +Z the default | |
8749 | ;; | |
8750 | *) | |
8751 | lt_prog_compiler_pic='+Z' | |
8752 | ;; | |
8753 | esac | |
8754 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8755 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 8756 | ;; |
d9898ee8 | 8757 | |
8d138742 CE |
8758 | irix5* | irix6* | nonstopux*) |
8759 | lt_prog_compiler_wl='-Wl,' | |
8760 | # PIC (with -KPIC) is the default. | |
8761 | lt_prog_compiler_static='-non_shared' | |
8762 | ;; | |
dd184caf | 8763 | |
d50284c4 | 8764 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8765 | case $cc_basename in |
d50284c4 | 8766 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8767 | ecc*) |
8768 | lt_prog_compiler_wl='-Wl,' | |
8769 | lt_prog_compiler_pic='-KPIC' | |
8770 | lt_prog_compiler_static='-static' | |
8771 | ;; | |
8772 | # icc used to be incompatible with GCC. | |
8773 | # ICC 10 doesn't accept -KPIC any more. | |
8774 | icc* | ifort*) | |
8775 | lt_prog_compiler_wl='-Wl,' | |
8776 | lt_prog_compiler_pic='-fPIC' | |
8777 | lt_prog_compiler_static='-static' | |
8778 | ;; | |
8779 | # Lahey Fortran 8.1. | |
8780 | lf95*) | |
8781 | lt_prog_compiler_wl='-Wl,' | |
8782 | lt_prog_compiler_pic='--shared' | |
8783 | lt_prog_compiler_static='--static' | |
8784 | ;; | |
b0322a85 CE |
8785 | nagfor*) |
8786 | # NAG Fortran compiler | |
8787 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8788 | lt_prog_compiler_pic='-PIC' | |
8789 | lt_prog_compiler_static='-Bstatic' | |
8790 | ;; | |
d50284c4 CE |
8791 | tcc*) |
8792 | # Fabrice Bellard et al's Tiny C Compiler | |
8793 | lt_prog_compiler_wl='-Wl,' | |
8794 | lt_prog_compiler_pic='-fPIC' | |
8795 | lt_prog_compiler_static='-static' | |
8796 | ;; | |
b0322a85 | 8797 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8798 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8799 | # which looks to be a dead project) | |
8800 | lt_prog_compiler_wl='-Wl,' | |
8801 | lt_prog_compiler_pic='-fpic' | |
8802 | lt_prog_compiler_static='-Bstatic' | |
8803 | ;; | |
8804 | ccc*) | |
8805 | lt_prog_compiler_wl='-Wl,' | |
8806 | # All Alpha code is PIC. | |
8807 | lt_prog_compiler_static='-non_shared' | |
8808 | ;; | |
b0322a85 CE |
8809 | xl* | bgxl* | bgf* | mpixl*) |
8810 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8811 | lt_prog_compiler_wl='-Wl,' |
8812 | lt_prog_compiler_pic='-qpic' | |
8813 | lt_prog_compiler_static='-qstaticlink' | |
8814 | ;; | |
8815 | *) | |
8816 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8817 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8818 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8819 | lt_prog_compiler_pic='-KPIC' | |
8820 | lt_prog_compiler_static='-Bstatic' | |
8821 | lt_prog_compiler_wl='' | |
8822 | ;; | |
8823 | *Sun\ F* | *Sun*Fortran*) | |
8824 | lt_prog_compiler_pic='-KPIC' | |
8825 | lt_prog_compiler_static='-Bstatic' | |
8826 | lt_prog_compiler_wl='-Qoption ld ' | |
8827 | ;; | |
8d138742 CE |
8828 | *Sun\ C*) |
8829 | # Sun C 5.9 | |
8830 | lt_prog_compiler_pic='-KPIC' | |
8831 | lt_prog_compiler_static='-Bstatic' | |
8832 | lt_prog_compiler_wl='-Wl,' | |
8833 | ;; | |
b0322a85 CE |
8834 | *Intel*\ [CF]*Compiler*) |
8835 | lt_prog_compiler_wl='-Wl,' | |
8836 | lt_prog_compiler_pic='-fPIC' | |
8837 | lt_prog_compiler_static='-static' | |
8838 | ;; | |
8839 | *Portland\ Group*) | |
8840 | lt_prog_compiler_wl='-Wl,' | |
8841 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8842 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8843 | ;; |
8844 | esac | |
8845 | ;; | |
8846 | esac | |
8847 | ;; | |
d9898ee8 | 8848 | |
8d138742 CE |
8849 | newsos6) |
8850 | lt_prog_compiler_pic='-KPIC' | |
8851 | lt_prog_compiler_static='-Bstatic' | |
8852 | ;; | |
d9898ee8 | 8853 | |
8d138742 CE |
8854 | *nto* | *qnx*) |
8855 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8856 | # it will coredump. | |
8857 | lt_prog_compiler_pic='-fPIC -shared' | |
8858 | ;; | |
d9898ee8 | 8859 | |
8d138742 CE |
8860 | osf3* | osf4* | osf5*) |
8861 | lt_prog_compiler_wl='-Wl,' | |
8862 | # All OSF/1 code is PIC. | |
8863 | lt_prog_compiler_static='-non_shared' | |
8864 | ;; | |
d9898ee8 | 8865 | |
8d138742 CE |
8866 | rdos*) |
8867 | lt_prog_compiler_static='-non_shared' | |
8868 | ;; | |
d9898ee8 | 8869 | |
8d138742 CE |
8870 | solaris*) |
8871 | lt_prog_compiler_pic='-KPIC' | |
8872 | lt_prog_compiler_static='-Bstatic' | |
8873 | case $cc_basename in | |
b0322a85 | 8874 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8875 | lt_prog_compiler_wl='-Qoption ld ';; |
8876 | *) | |
8877 | lt_prog_compiler_wl='-Wl,';; | |
8878 | esac | |
8879 | ;; | |
d9898ee8 | 8880 | |
8d138742 CE |
8881 | sunos4*) |
8882 | lt_prog_compiler_wl='-Qoption ld ' | |
8883 | lt_prog_compiler_pic='-PIC' | |
8884 | lt_prog_compiler_static='-Bstatic' | |
8885 | ;; | |
dd184caf | 8886 | |
8d138742 CE |
8887 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8888 | lt_prog_compiler_wl='-Wl,' | |
8889 | lt_prog_compiler_pic='-KPIC' | |
8890 | lt_prog_compiler_static='-Bstatic' | |
8891 | ;; | |
d9898ee8 | 8892 | |
8d138742 | 8893 | sysv4*MP*) |
d50284c4 | 8894 | if test -d /usr/nec; then |
8d138742 CE |
8895 | lt_prog_compiler_pic='-Kconform_pic' |
8896 | lt_prog_compiler_static='-Bstatic' | |
8897 | fi | |
8898 | ;; | |
8899 | ||
8900 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8901 | lt_prog_compiler_wl='-Wl,' | |
8902 | lt_prog_compiler_pic='-KPIC' | |
8903 | lt_prog_compiler_static='-Bstatic' | |
8904 | ;; | |
8905 | ||
8906 | unicos*) | |
8907 | lt_prog_compiler_wl='-Wl,' | |
8908 | lt_prog_compiler_can_build_shared=no | |
8909 | ;; | |
8910 | ||
8911 | uts4*) | |
8912 | lt_prog_compiler_pic='-pic' | |
8913 | lt_prog_compiler_static='-Bstatic' | |
8914 | ;; | |
8915 | ||
8916 | *) | |
8917 | lt_prog_compiler_can_build_shared=no | |
8918 | ;; | |
8919 | esac | |
8920 | fi | |
8921 | ||
8922 | case $host_os in | |
d50284c4 | 8923 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8924 | *djgpp*) |
8925 | lt_prog_compiler_pic= | |
8926 | ;; | |
8927 | *) | |
8928 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8929 | ;; | |
dd184caf | 8930 | esac |
dd184caf | 8931 | |
b0322a85 CE |
8932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8933 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8934 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8935 | $as_echo_n "(cached) " >&6 | |
8936 | else | |
8937 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8938 | fi | |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8940 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8941 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8942 | |
8d138742 CE |
8943 | # |
8944 | # Check to make sure the PIC flag actually works. | |
8945 | # | |
8946 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8948 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8949 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 | 8950 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8951 | else |
8d138742 CE |
8952 | lt_cv_prog_compiler_pic_works=no |
8953 | ac_outfile=conftest.$ac_objext | |
8954 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8955 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8956 | # Insert the option either (1) after the last *FLAGS variable, or |
8957 | # (2) before a word containing "conftest.", or (3) at the end. | |
8958 | # Note that $ac_compile itself does not contain backslashes and begins | |
8959 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8960 | # The option is referenced via a variable to avoid confusing sed. | |
8961 | lt_compile=`echo "$ac_compile" | $SED \ | |
8962 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8963 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8964 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8965 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8966 | (eval "$lt_compile" 2>conftest.err) |
8967 | ac_status=$? | |
8968 | cat conftest.err >&5 | |
b0322a85 | 8969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8970 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8971 | # The compiler can only warn and ignore the option if not recognized | |
8972 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8973 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8974 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8975 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8976 | lt_cv_prog_compiler_pic_works=yes | |
8977 | fi | |
8978 | fi | |
8979 | $RM conftest* | |
d9898ee8 | 8980 | |
d9898ee8 | 8981 | fi |
b0322a85 | 8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8983 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
dd184caf | 8984 | |
d50284c4 | 8985 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8986 | case $lt_prog_compiler_pic in |
8987 | "" | " "*) ;; | |
8988 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8989 | esac | |
8990 | else | |
8991 | lt_prog_compiler_pic= | |
8992 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8993 | fi |
8994 | ||
d9898ee8 | 8995 | fi |
8996 | ||
8997 | ||
d9898ee8 | 8998 | |
8999 | ||
d9898ee8 | 9000 | |
9001 | ||
b0322a85 CE |
9002 | |
9003 | ||
9004 | ||
9005 | ||
9006 | ||
8d138742 CE |
9007 | # |
9008 | # Check to make sure the static flag actually works. | |
9009 | # | |
9010 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 9012 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 9013 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
9014 | $as_echo_n "(cached) " >&6 |
9015 | else | |
9016 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 9017 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
9018 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
9019 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9020 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9021 | # The linker can only warn and ignore the option if not recognized | |
9022 | # So say no if there are warnings | |
9023 | if test -s conftest.err; then | |
9024 | # Append any errors to the config.log. | |
9025 | cat conftest.err 1>&5 | |
b0322a85 | 9026 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
9027 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
9028 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9029 | lt_cv_prog_compiler_static_works=yes | |
9030 | fi | |
9031 | else | |
9032 | lt_cv_prog_compiler_static_works=yes | |
9033 | fi | |
9034 | fi | |
9035 | $RM -r conftest* | |
d50284c4 | 9036 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 9037 | |
8d138742 | 9038 | fi |
b0322a85 | 9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 9040 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 9041 | |
d50284c4 | 9042 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
9043 | : |
9044 | else | |
9045 | lt_prog_compiler_static= | |
d9898ee8 | 9046 | fi |
9047 | ||
d9898ee8 | 9048 | |
d9898ee8 | 9049 | |
d9898ee8 | 9050 | |
d9898ee8 | 9051 | |
d9898ee8 | 9052 | |
8d138742 | 9053 | |
b0322a85 | 9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9055 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9056 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 | 9057 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 9058 | else |
8d138742 CE |
9059 | lt_cv_prog_compiler_c_o=no |
9060 | $RM -r conftest 2>/dev/null | |
9061 | mkdir conftest | |
9062 | cd conftest | |
9063 | mkdir out | |
9064 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9065 | |
8d138742 CE |
9066 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9067 | # Insert the option either (1) after the last *FLAGS variable, or | |
9068 | # (2) before a word containing "conftest.", or (3) at the end. | |
9069 | # Note that $ac_compile itself does not contain backslashes and begins | |
9070 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9071 | lt_compile=`echo "$ac_compile" | $SED \ | |
9072 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9073 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9074 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9075 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9076 | (eval "$lt_compile" 2>out/conftest.err) |
9077 | ac_status=$? | |
9078 | cat out/conftest.err >&5 | |
b0322a85 | 9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9080 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9081 | then | |
9082 | # The compiler can only warn and ignore the option if not recognized | |
9083 | # So say no if there are warnings | |
b0322a85 | 9084 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9085 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9086 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9087 | lt_cv_prog_compiler_c_o=yes | |
9088 | fi | |
9089 | fi | |
9090 | chmod u+w . 2>&5 | |
9091 | $RM conftest* | |
9092 | # SGI C++ compiler will create directory out/ii_files/ for | |
9093 | # template instantiation | |
9094 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9095 | $RM out/* && rmdir out | |
9096 | cd .. | |
9097 | $RM -r conftest | |
9098 | $RM conftest* | |
d9898ee8 | 9099 | |
8d138742 | 9100 | fi |
b0322a85 | 9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9102 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 9103 | |
d9898ee8 | 9104 | |
d9898ee8 | 9105 | |
d9898ee8 | 9106 | |
d9898ee8 | 9107 | |
d9898ee8 | 9108 | |
b0322a85 | 9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 9110 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 9111 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
9112 | $as_echo_n "(cached) " >&6 |
9113 | else | |
9114 | lt_cv_prog_compiler_c_o=no | |
9115 | $RM -r conftest 2>/dev/null | |
9116 | mkdir conftest | |
9117 | cd conftest | |
9118 | mkdir out | |
9119 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 9120 | |
8d138742 CE |
9121 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9122 | # Insert the option either (1) after the last *FLAGS variable, or | |
9123 | # (2) before a word containing "conftest.", or (3) at the end. | |
9124 | # Note that $ac_compile itself does not contain backslashes and begins | |
9125 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9126 | lt_compile=`echo "$ac_compile" | $SED \ | |
9127 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9128 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9129 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 9130 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
9131 | (eval "$lt_compile" 2>out/conftest.err) |
9132 | ac_status=$? | |
9133 | cat out/conftest.err >&5 | |
b0322a85 | 9134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
9135 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
9136 | then | |
9137 | # The compiler can only warn and ignore the option if not recognized | |
9138 | # So say no if there are warnings | |
b0322a85 | 9139 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
9140 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
9141 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9142 | lt_cv_prog_compiler_c_o=yes | |
9143 | fi | |
9144 | fi | |
9145 | chmod u+w . 2>&5 | |
9146 | $RM conftest* | |
9147 | # SGI C++ compiler will create directory out/ii_files/ for | |
9148 | # template instantiation | |
9149 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9150 | $RM out/* && rmdir out | |
9151 | cd .. | |
9152 | $RM -r conftest | |
9153 | $RM conftest* | |
d9898ee8 | 9154 | |
9155 | fi | |
b0322a85 | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9157 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 9158 | |
d9898ee8 | 9159 | |
d9898ee8 | 9160 | |
d9898ee8 | 9161 | |
d50284c4 CE |
9162 | hard_links=nottested |
9163 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 9164 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 9165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
9166 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
9167 | hard_links=yes | |
9168 | $RM conftest* | |
9169 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9170 | touch conftest.a | |
9171 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9172 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 9174 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
9175 | if test no = "$hard_links"; then |
9176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9177 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
9178 | need_locks=warn |
9179 | fi | |
9180 | else | |
9181 | need_locks=no | |
9182 | fi | |
d9898ee8 | 9183 | |
d9898ee8 | 9184 | |
d9898ee8 | 9185 | |
d9898ee8 | 9186 | |
d9898ee8 | 9187 | |
d9898ee8 | 9188 | |
b0322a85 | 9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 9190 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 9191 | |
8d138742 CE |
9192 | runpath_var= |
9193 | allow_undefined_flag= | |
9194 | always_export_symbols=no | |
9195 | archive_cmds= | |
9196 | archive_expsym_cmds= | |
9197 | compiler_needs_object=no | |
9198 | enable_shared_with_static_runtimes=no | |
9199 | export_dynamic_flag_spec= | |
9200 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9201 | hardcode_automatic=no | |
9202 | hardcode_direct=no | |
9203 | hardcode_direct_absolute=no | |
9204 | hardcode_libdir_flag_spec= | |
8d138742 CE |
9205 | hardcode_libdir_separator= |
9206 | hardcode_minus_L=no | |
9207 | hardcode_shlibpath_var=unsupported | |
9208 | inherit_rpath=no | |
9209 | link_all_deplibs=unknown | |
9210 | module_cmds= | |
9211 | module_expsym_cmds= | |
9212 | old_archive_from_new_cmds= | |
9213 | old_archive_from_expsyms_cmds= | |
9214 | thread_safe_flag_spec= | |
9215 | whole_archive_flag_spec= | |
9216 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9217 | # included in the symbol list | |
9218 | include_expsyms= | |
9219 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
9220 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
9221 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9222 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
9223 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9224 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9225 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9226 | # the symbol is explicitly referenced. Since portable code cannot | |
9227 | # rely on this symbol name, it's probably fine to never include it in | |
9228 | # preloaded symbol tables. | |
9229 | # Exclude shared library initialization/finalization symbols. | |
9230 | extract_expsyms_cmds= | |
d9898ee8 | 9231 | |
8d138742 CE |
9232 | case $host_os in |
9233 | cygwin* | mingw* | pw32* | cegcc*) | |
9234 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9235 | # When not using gcc, we currently assume that we are using | |
9236 | # Microsoft Visual C++. | |
d50284c4 | 9237 | if test yes != "$GCC"; then |
8d138742 CE |
9238 | with_gnu_ld=no |
9239 | fi | |
9240 | ;; | |
9241 | interix*) | |
9242 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9243 | with_gnu_ld=yes | |
9244 | ;; | |
d50284c4 | 9245 | openbsd* | bitrig*) |
8d138742 | 9246 | with_gnu_ld=no |
d9898ee8 | 9247 | ;; |
9248 | esac | |
9249 | ||
8d138742 | 9250 | ld_shlibs=yes |
b0322a85 CE |
9251 | |
9252 | # On some targets, GNU ld is compatible enough with the native linker | |
9253 | # that we're better off using the native interface for both. | |
9254 | lt_use_gnu_ld_interface=no | |
d50284c4 | 9255 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
9256 | case $host_os in |
9257 | aix*) | |
9258 | # The AIX port of GNU ld has always aspired to compatibility | |
9259 | # with the native linker. However, as the warning in the GNU ld | |
9260 | # block says, versions before 2.19.5* couldn't really create working | |
9261 | # shared libraries, regardless of the interface used. | |
9262 | case `$LD -v 2>&1` in | |
9263 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9264 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9265 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9266 | *) | |
9267 | lt_use_gnu_ld_interface=yes | |
9268 | ;; | |
9269 | esac | |
9270 | ;; | |
9271 | *) | |
9272 | lt_use_gnu_ld_interface=yes | |
9273 | ;; | |
9274 | esac | |
9275 | fi | |
9276 | ||
d50284c4 | 9277 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 9278 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 9279 | wlarc='$wl' |
d9898ee8 | 9280 | |
8d138742 CE |
9281 | # Set some defaults for GNU ld with shared library support. These |
9282 | # are reset later if shared libraries are not supported. Putting them | |
9283 | # here allows them to be overridden if necessary. | |
9284 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9285 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9286 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9287 | # ancient GNU ld didn't support --whole-archive et. al. |
9288 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9289 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9290 | else |
9291 | whole_archive_flag_spec= | |
9292 | fi | |
9293 | supports_anon_versioning=no | |
d50284c4 | 9294 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9295 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9296 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9297 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9298 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9299 | *\ 2.11.*) ;; # other 2.11 versions | |
9300 | *) supports_anon_versioning=yes ;; | |
9301 | esac | |
d9898ee8 | 9302 | |
8d138742 CE |
9303 | # See if GNU ld supports shared libraries. |
9304 | case $host_os in | |
9305 | aix[3-9]*) | |
9306 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9307 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9308 | ld_shlibs=no |
9309 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9310 | |
b0322a85 | 9311 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9312 | *** to be unable to reliably create shared libraries on AIX. |
9313 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9314 | *** really care for shared libraries, you may want to install binutils |
9315 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9316 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9317 | |
8d138742 CE |
9318 | _LT_EOF |
9319 | fi | |
9320 | ;; | |
d9898ee8 | 9321 | |
8d138742 CE |
9322 | amigaos*) |
9323 | case $host_cpu in | |
9324 | powerpc) | |
9325 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9326 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9327 | archive_expsym_cmds='' |
9328 | ;; | |
9329 | m68k) | |
9330 | 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)' | |
9331 | hardcode_libdir_flag_spec='-L$libdir' | |
9332 | hardcode_minus_L=yes | |
9333 | ;; | |
9334 | esac | |
d9898ee8 | 9335 | ;; |
8d138742 CE |
9336 | |
9337 | beos*) | |
9338 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9339 | allow_undefined_flag=unsupported | |
9340 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9341 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9342 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9343 | else |
9344 | ld_shlibs=no | |
9345 | fi | |
d9898ee8 | 9346 | ;; |
d9898ee8 | 9347 | |
8d138742 CE |
9348 | cygwin* | mingw* | pw32* | cegcc*) |
9349 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9350 | # as there is no search path for DLLs. | |
9351 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9352 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9353 | allow_undefined_flag=unsupported |
9354 | always_export_symbols=no | |
9355 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9356 | 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' |
9357 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9358 | |
8d138742 | 9359 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9360 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9361 | # If the export-symbols file already is a .def file, use it as | |
9362 | # is; otherwise, prepend EXPORTS... | |
9363 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9364 | cp $export_symbols $output_objdir/$soname.def; | |
9365 | else | |
9366 | echo EXPORTS > $output_objdir/$soname.def; | |
9367 | cat $export_symbols >> $output_objdir/$soname.def; | |
9368 | fi~ | |
9369 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8d138742 CE |
9370 | else |
9371 | ld_shlibs=no | |
9372 | fi | |
9373 | ;; | |
d9898ee8 | 9374 | |
b0322a85 | 9375 | haiku*) |
d50284c4 | 9376 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9377 | link_all_deplibs=yes |
9378 | ;; | |
9379 | ||
d50284c4 CE |
9380 | os2*) |
9381 | hardcode_libdir_flag_spec='-L$libdir' | |
9382 | hardcode_minus_L=yes | |
9383 | allow_undefined_flag=unsupported | |
9384 | shrext_cmds=.dll | |
9385 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9386 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9387 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9388 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9389 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9390 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9391 | emximp -o $lib $output_objdir/$libname.def' | |
9392 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9393 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9394 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9395 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9396 | prefix_cmds="$SED"~ | |
9397 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9398 | prefix_cmds="$prefix_cmds -e 1d"; | |
9399 | fi~ | |
9400 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9401 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9402 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9403 | emximp -o $lib $output_objdir/$libname.def' | |
9404 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9405 | enable_shared_with_static_runtimes=yes | |
9406 | ;; | |
9407 | ||
8d138742 CE |
9408 | interix[3-9]*) |
9409 | hardcode_direct=no | |
9410 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9411 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9412 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9413 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9414 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9415 | # default) and relocated if they conflict, which is a slow very memory | |
9416 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9417 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9418 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9419 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9420 | 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' | |
8d138742 | 9421 | ;; |
d9898ee8 | 9422 | |
b0322a85 | 9423 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9424 | tmp_diet=no |
d50284c4 | 9425 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9426 | case $cc_basename in |
9427 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9428 | esac | |
9429 | fi | |
9430 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9431 | && test no = "$tmp_diet" |
8d138742 | 9432 | then |
b0322a85 | 9433 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9434 | tmp_sharedflag='-shared' |
9435 | case $cc_basename,$host_cpu in | |
9436 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9437 | 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' |
8d138742 CE |
9438 | tmp_addflag=' $pic_flag' |
9439 | ;; | |
b0322a85 CE |
9440 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9441 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9442 | 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' |
8d138742 CE |
9443 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9444 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9445 | tmp_addflag=' -i_dynamic' ;; | |
9446 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9447 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9448 | ifc* | ifort*) # Intel Fortran compiler | |
9449 | tmp_addflag=' -nofor_main' ;; | |
9450 | lf95*) # Lahey Fortran 8.1 | |
9451 | whole_archive_flag_spec= | |
9452 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9453 | nagfor*) # NAGFOR 5.3 |
9454 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9455 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9456 | tmp_sharedflag='-qmkshrobj' |
9457 | tmp_addflag= ;; | |
b0322a85 | 9458 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9459 | 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' |
b0322a85 CE |
9460 | compiler_needs_object=yes |
9461 | ;; | |
8d138742 CE |
9462 | esac |
9463 | case `$CC -V 2>&1 | sed 5q` in | |
9464 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9465 | 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' |
8d138742 CE |
9466 | compiler_needs_object=yes |
9467 | tmp_sharedflag='-G' ;; | |
9468 | *Sun\ F*) # Sun Fortran 8.3 | |
9469 | tmp_sharedflag='-G' ;; | |
9470 | esac | |
d50284c4 | 9471 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9472 | |
d50284c4 | 9473 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9474 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9475 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9476 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9477 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9478 | fi |
d9898ee8 | 9479 | |
8d138742 | 9480 | case $cc_basename in |
d50284c4 CE |
9481 | tcc*) |
9482 | export_dynamic_flag_spec='-rdynamic' | |
9483 | ;; | |
b0322a85 | 9484 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9485 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9486 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9487 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9488 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9489 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9490 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9491 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9492 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9493 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9494 | fi |
9495 | ;; | |
9496 | esac | |
9497 | else | |
9498 | ld_shlibs=no | |
9499 | fi | |
9500 | ;; | |
d9898ee8 | 9501 | |
8d138742 CE |
9502 | netbsd*) |
9503 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9504 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9505 | wlarc= | |
9506 | else | |
d50284c4 CE |
9507 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9508 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9509 | fi |
9510 | ;; | |
d9898ee8 | 9511 | |
8d138742 CE |
9512 | solaris*) |
9513 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9514 | ld_shlibs=no | |
9515 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9516 | |
8d138742 CE |
9517 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9518 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9519 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9520 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9521 | *** your PATH or compiler configuration so that the native linker is | |
9522 | *** used, and then restart. | |
d9898ee8 | 9523 | |
8d138742 CE |
9524 | _LT_EOF |
9525 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9526 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9527 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9528 | else |
9529 | ld_shlibs=no | |
9530 | fi | |
9531 | ;; | |
d9898ee8 | 9532 | |
8d138742 CE |
9533 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9534 | case `$LD -v 2>&1` in | |
9535 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9536 | ld_shlibs=no | |
9537 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9538 | |
d50284c4 | 9539 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9540 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9541 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9542 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9543 | *** your PATH or compiler configuration so that the native linker is | |
9544 | *** used, and then restart. | |
d9898ee8 | 9545 | |
8d138742 CE |
9546 | _LT_EOF |
9547 | ;; | |
9548 | *) | |
9549 | # For security reasons, it is highly recommended that you always | |
9550 | # use absolute paths for naming shared libraries, and exclude the | |
9551 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9552 | # requires that you compile everything twice, which is a pain. | |
9553 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9554 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9555 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9556 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9557 | else |
9558 | ld_shlibs=no | |
9559 | fi | |
9560 | ;; | |
9561 | esac | |
9562 | ;; | |
d9898ee8 | 9563 | |
8d138742 CE |
9564 | sunos4*) |
9565 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9566 | wlarc= | |
9567 | hardcode_direct=yes | |
9568 | hardcode_shlibpath_var=no | |
9569 | ;; | |
d9898ee8 | 9570 | |
8d138742 CE |
9571 | *) |
9572 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9573 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9574 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9575 | else |
9576 | ld_shlibs=no | |
9577 | fi | |
9578 | ;; | |
9579 | esac | |
d9898ee8 | 9580 | |
d50284c4 | 9581 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9582 | runpath_var= |
9583 | hardcode_libdir_flag_spec= | |
9584 | export_dynamic_flag_spec= | |
9585 | whole_archive_flag_spec= | |
9586 | fi | |
9587 | else | |
9588 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9589 | case $host_os in | |
9590 | aix3*) | |
9591 | allow_undefined_flag=unsupported | |
9592 | always_export_symbols=yes | |
9593 | 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' | |
9594 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9595 | # are no directories specified by -L. | |
9596 | hardcode_minus_L=yes | |
d50284c4 | 9597 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9598 | # Neither direct hardcoding nor static linking is supported with a |
9599 | # broken collect2. | |
9600 | hardcode_direct=unsupported | |
9601 | fi | |
9602 | ;; | |
d9898ee8 | 9603 | |
8d138742 | 9604 | aix[4-9]*) |
d50284c4 | 9605 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9606 | # On IA64, the linker does run time linking by default, so we don't |
9607 | # have to do anything special. | |
9608 | aix_use_runtimelinking=no | |
9609 | exp_sym_flag='-Bexport' | |
d50284c4 | 9610 | no_entry_flag= |
8d138742 CE |
9611 | else |
9612 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9613 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9614 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9615 | # weak defined symbols like other global defined symbols, whereas | |
9616 | # GNU nm marks them as "W". | |
9617 | # While the 'weak' keyword is ignored in the Export File, we need | |
9618 | # it in the Import File for the 'aix-soname' feature, so we have | |
9619 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9620 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9621 | 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' |
8d138742 | 9622 | else |
d50284c4 | 9623 | 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' |
8d138742 CE |
9624 | fi |
9625 | aix_use_runtimelinking=no | |
d9898ee8 | 9626 | |
8d138742 CE |
9627 | # Test if we are trying to use run time linking or normal |
9628 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9629 | # have runtime linking enabled, and use it for executables. |
9630 | # For shared libraries, we enable/disable runtime linking | |
9631 | # depending on the kind of the shared library created - | |
9632 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9633 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9634 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9635 | # lib.a static archive | |
9636 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9637 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9638 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9639 | # lib.a(lib.so.V) shared, rtl:no | |
9640 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9641 | # lib.a static archive | |
8d138742 CE |
9642 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9643 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9644 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9645 | aix_use_runtimelinking=yes |
9646 | break | |
9647 | fi | |
9648 | done | |
d50284c4 CE |
9649 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9650 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9651 | # so we don't have lib.a shared libs to link our executables. | |
9652 | # We have to force runtime linking in this case. | |
9653 | aix_use_runtimelinking=yes | |
9654 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9655 | fi | |
8d138742 CE |
9656 | ;; |
9657 | esac | |
d9898ee8 | 9658 | |
8d138742 CE |
9659 | exp_sym_flag='-bexport' |
9660 | no_entry_flag='-bnoentry' | |
9661 | fi | |
d9898ee8 | 9662 | |
8d138742 CE |
9663 | # When large executables or shared objects are built, AIX ld can |
9664 | # have problems creating the table of contents. If linking a library | |
9665 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9666 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9667 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9668 | |
8d138742 CE |
9669 | archive_cmds='' |
9670 | hardcode_direct=yes | |
9671 | hardcode_direct_absolute=yes | |
9672 | hardcode_libdir_separator=':' | |
9673 | link_all_deplibs=yes | |
d50284c4 CE |
9674 | file_list_spec='$wl-f,' |
9675 | case $with_aix_soname,$aix_use_runtimelinking in | |
9676 | aix,*) ;; # traditional, no import file | |
9677 | svr4,* | *,yes) # use import file | |
9678 | # The Import File defines what to hardcode. | |
9679 | hardcode_direct=no | |
9680 | hardcode_direct_absolute=no | |
9681 | ;; | |
9682 | esac | |
d9898ee8 | 9683 | |
d50284c4 | 9684 | if test yes = "$GCC"; then |
8d138742 CE |
9685 | case $host_os in aix4.[012]|aix4.[012].*) |
9686 | # We only want to do this on AIX 4.2 and lower, the check | |
9687 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9688 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9689 | if test -f "$collect2name" && |
9690 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9691 | then | |
9692 | # We have reworked collect2 | |
9693 | : | |
9694 | else | |
9695 | # We have old collect2 | |
9696 | hardcode_direct=unsupported | |
9697 | # It fails to find uninstalled libraries when the uninstalled | |
9698 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9699 | # to unsupported forces relinking | |
9700 | hardcode_minus_L=yes | |
9701 | hardcode_libdir_flag_spec='-L$libdir' | |
9702 | hardcode_libdir_separator= | |
9703 | fi | |
9704 | ;; | |
9705 | esac | |
9706 | shared_flag='-shared' | |
d50284c4 CE |
9707 | if test yes = "$aix_use_runtimelinking"; then |
9708 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9709 | fi |
d50284c4 CE |
9710 | # Need to ensure runtime linking is disabled for the traditional |
9711 | # shared library, or the linker may eventually find shared libraries | |
9712 | # /with/ Import File - we do not want to mix them. | |
9713 | shared_flag_aix='-shared' | |
9714 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9715 | else |
9716 | # not using gcc | |
d50284c4 | 9717 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9718 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9719 | # chokes on -Wl,-G. The following line is correct: | |
9720 | shared_flag='-G' | |
9721 | else | |
d50284c4 CE |
9722 | if test yes = "$aix_use_runtimelinking"; then |
9723 | shared_flag='$wl-G' | |
8d138742 | 9724 | else |
d50284c4 | 9725 | shared_flag='$wl-bM:SRE' |
8d138742 | 9726 | fi |
d50284c4 CE |
9727 | shared_flag_aix='$wl-bM:SRE' |
9728 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9729 | fi |
9730 | fi | |
d9898ee8 | 9731 | |
d50284c4 | 9732 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9733 | # It seems that -bexpall does not export symbols beginning with |
9734 | # underscore (_), so it is better to generate a list of symbols to export. | |
9735 | always_export_symbols=yes | |
d50284c4 | 9736 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9737 | # Warning - without using the other runtime loading flags (-brtl), |
9738 | # -berok will link without error, but may produce a broken library. | |
9739 | allow_undefined_flag='-berok' | |
9740 | # Determine the default libpath from the value encoded in an | |
9741 | # empty executable. | |
d50284c4 | 9742 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9743 | aix_libpath=$lt_cv_aix_libpath |
9744 | else | |
9745 | if ${lt_cv_aix_libpath_+:} false; then : | |
9746 | $as_echo_n "(cached) " >&6 | |
9747 | else | |
9748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9749 | /* end confdefs.h. */ |
d9898ee8 | 9750 | |
8d138742 CE |
9751 | int |
9752 | main () | |
9753 | { | |
d9898ee8 | 9754 | |
8d138742 CE |
9755 | ; |
9756 | return 0; | |
9757 | } | |
9758 | _ACEOF | |
b0322a85 | 9759 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9760 | |
b0322a85 CE |
9761 | lt_aix_libpath_sed=' |
9762 | /Import File Strings/,/^$/ { | |
9763 | /^0/ { | |
9764 | s/^0 *\([^ ]*\) *$/\1/ | |
9765 | p | |
9766 | } | |
9767 | }' | |
9768 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9769 | # Check for a 64-bit object if we didn't find anything. | |
9770 | if test -z "$lt_cv_aix_libpath_"; then | |
9771 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9772 | fi | |
9773 | fi | |
9774 | rm -f core conftest.err conftest.$ac_objext \ | |
9775 | conftest$ac_exeext conftest.$ac_ext | |
9776 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9777 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9778 | fi |
d9898ee8 | 9779 | |
8d138742 | 9780 | fi |
d9898ee8 | 9781 | |
b0322a85 CE |
9782 | aix_libpath=$lt_cv_aix_libpath_ |
9783 | fi | |
d9898ee8 | 9784 | |
d50284c4 CE |
9785 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9786 | 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 | |
8d138742 | 9787 | else |
d50284c4 CE |
9788 | if test ia64 = "$host_cpu"; then |
9789 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9790 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9791 | 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" |
8d138742 CE |
9792 | else |
9793 | # Determine the default libpath from the value encoded in an | |
9794 | # empty executable. | |
d50284c4 | 9795 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9796 | aix_libpath=$lt_cv_aix_libpath |
9797 | else | |
9798 | if ${lt_cv_aix_libpath_+:} false; then : | |
9799 | $as_echo_n "(cached) " >&6 | |
9800 | else | |
9801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9802 | /* end confdefs.h. */ |
d9898ee8 | 9803 | |
8d138742 CE |
9804 | int |
9805 | main () | |
9806 | { | |
d9898ee8 | 9807 | |
8d138742 CE |
9808 | ; |
9809 | return 0; | |
9810 | } | |
9811 | _ACEOF | |
b0322a85 | 9812 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9813 | |
b0322a85 CE |
9814 | lt_aix_libpath_sed=' |
9815 | /Import File Strings/,/^$/ { | |
9816 | /^0/ { | |
9817 | s/^0 *\([^ ]*\) *$/\1/ | |
9818 | p | |
9819 | } | |
9820 | }' | |
9821 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9822 | # Check for a 64-bit object if we didn't find anything. | |
9823 | if test -z "$lt_cv_aix_libpath_"; then | |
9824 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9825 | fi | |
9826 | fi | |
9827 | rm -f core conftest.err conftest.$ac_objext \ | |
9828 | conftest$ac_exeext conftest.$ac_ext | |
9829 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9830 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9831 | fi |
d9898ee8 | 9832 | |
8d138742 | 9833 | fi |
d9898ee8 | 9834 | |
b0322a85 CE |
9835 | aix_libpath=$lt_cv_aix_libpath_ |
9836 | fi | |
d9898ee8 | 9837 | |
d50284c4 | 9838 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9839 | # Warning - without using the other run time loading flags, |
9840 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9841 | no_undefined_flag=' $wl-bernotok' |
9842 | allow_undefined_flag=' $wl-berok' | |
9843 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9844 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9845 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9846 | else |
9847 | # Exported symbols can be pulled into shared objects from archives | |
9848 | whole_archive_flag_spec='$convenience' | |
9849 | fi | |
8d138742 | 9850 | archive_cmds_need_lc=yes |
d50284c4 CE |
9851 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9852 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9853 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9854 | if test svr4 != "$with_aix_soname"; then | |
9855 | # This is similar to how AIX traditionally builds its shared libraries. | |
9856 | 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' | |
9857 | fi | |
9858 | if test aix != "$with_aix_soname"; then | |
9859 | 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' | |
9860 | else | |
9861 | # used by -dlpreopen to get the symbols | |
9862 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9863 | fi | |
9864 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9865 | fi |
9866 | fi | |
9867 | ;; | |
d9898ee8 | 9868 | |
8d138742 CE |
9869 | amigaos*) |
9870 | case $host_cpu in | |
9871 | powerpc) | |
9872 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9873 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9874 | archive_expsym_cmds='' |
9875 | ;; | |
9876 | m68k) | |
9877 | 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)' | |
9878 | hardcode_libdir_flag_spec='-L$libdir' | |
9879 | hardcode_minus_L=yes | |
9880 | ;; | |
9881 | esac | |
9882 | ;; | |
d9898ee8 | 9883 | |
8d138742 CE |
9884 | bsdi[45]*) |
9885 | export_dynamic_flag_spec=-rdynamic | |
9886 | ;; | |
d9898ee8 | 9887 | |
8d138742 CE |
9888 | cygwin* | mingw* | pw32* | cegcc*) |
9889 | # When not using gcc, we currently assume that we are using | |
9890 | # Microsoft Visual C++. | |
9891 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9892 | # no search path for DLLs. | |
b0322a85 CE |
9893 | case $cc_basename in |
9894 | cl*) | |
9895 | # Native MSVC | |
9896 | hardcode_libdir_flag_spec=' ' | |
9897 | allow_undefined_flag=unsupported | |
9898 | always_export_symbols=yes | |
9899 | file_list_spec='@' | |
9900 | # Tell ltmain to make .lib files, not .a files. | |
9901 | libext=lib | |
9902 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9903 | shrext_cmds=.dll |
b0322a85 | 9904 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9905 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9906 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9907 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9908 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9909 | else | |
9910 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9911 | fi~ | |
9912 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9913 | linknames=' | |
b0322a85 CE |
9914 | # The linker will not automatically build a static lib if we build a DLL. |
9915 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9916 | enable_shared_with_static_runtimes=yes | |
9917 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9918 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9919 | # Don't use ranlib | |
9920 | old_postinstall_cmds='chmod 644 $oldlib' | |
9921 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9922 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9923 | case $lt_outputfile in | |
9924 | *.exe|*.EXE) ;; | |
9925 | *) | |
9926 | lt_outputfile=$lt_outputfile.exe | |
9927 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9928 | ;; | |
9929 | esac~ | |
9930 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9931 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9932 | $RM "$lt_outputfile.manifest"; | |
9933 | fi' | |
b0322a85 CE |
9934 | ;; |
9935 | *) | |
9936 | # Assume MSVC wrapper | |
9937 | hardcode_libdir_flag_spec=' ' | |
9938 | allow_undefined_flag=unsupported | |
9939 | # Tell ltmain to make .lib files, not .a files. | |
9940 | libext=lib | |
9941 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9942 | shrext_cmds=.dll |
b0322a85 CE |
9943 | # FIXME: Setting linknames here is a bad hack. |
9944 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9945 | # The linker will automatically build a .lib file if we build a DLL. | |
9946 | old_archive_from_new_cmds='true' | |
9947 | # FIXME: Should let the user specify the lib program. | |
9948 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9949 | enable_shared_with_static_runtimes=yes | |
9950 | ;; | |
9951 | esac | |
8d138742 | 9952 | ;; |
d9898ee8 | 9953 | |
8d138742 | 9954 | darwin* | rhapsody*) |
d9898ee8 | 9955 | |
d9898ee8 | 9956 | |
8d138742 CE |
9957 | archive_cmds_need_lc=no |
9958 | hardcode_direct=no | |
9959 | hardcode_automatic=yes | |
9960 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9961 | if test yes = "$lt_cv_ld_force_load"; then |
9962 | 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\"`' | |
b0322a85 CE |
9963 | |
9964 | else | |
9965 | whole_archive_flag_spec='' | |
9966 | fi | |
8d138742 | 9967 | link_all_deplibs=yes |
d50284c4 | 9968 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9969 | case $cc_basename in |
d50284c4 | 9970 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
9971 | *) _lt_dar_can_shared=$GCC ;; |
9972 | esac | |
d50284c4 | 9973 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9974 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9975 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9976 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9977 | 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" | |
9978 | 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" | |
d9898ee8 | 9979 | |
8d138742 CE |
9980 | else |
9981 | ld_shlibs=no | |
9982 | fi | |
d9898ee8 | 9983 | |
8d138742 | 9984 | ;; |
d9898ee8 | 9985 | |
8d138742 CE |
9986 | dgux*) |
9987 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9988 | hardcode_libdir_flag_spec='-L$libdir' | |
9989 | hardcode_shlibpath_var=no | |
9990 | ;; | |
d9898ee8 | 9991 | |
8d138742 CE |
9992 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9993 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9994 | # does not break anything, and helps significantly (at the cost of a little | |
9995 | # extra space). | |
9996 | freebsd2.2*) | |
9997 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9998 | hardcode_libdir_flag_spec='-R$libdir' | |
9999 | hardcode_direct=yes | |
10000 | hardcode_shlibpath_var=no | |
10001 | ;; | |
d9898ee8 | 10002 | |
8d138742 | 10003 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 10004 | freebsd2.*) |
8d138742 CE |
10005 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
10006 | hardcode_direct=yes | |
10007 | hardcode_minus_L=yes | |
10008 | hardcode_shlibpath_var=no | |
10009 | ;; | |
d9898ee8 | 10010 | |
8d138742 CE |
10011 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10012 | freebsd* | dragonfly*) | |
b0322a85 | 10013 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10014 | hardcode_libdir_flag_spec='-R$libdir' |
10015 | hardcode_direct=yes | |
10016 | hardcode_shlibpath_var=no | |
10017 | ;; | |
d9898ee8 | 10018 | |
8d138742 | 10019 | hpux9*) |
d50284c4 CE |
10020 | if test yes = "$GCC"; then |
10021 | 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' | |
8d138742 | 10022 | else |
d50284c4 | 10023 | 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' |
8d138742 | 10024 | fi |
d50284c4 | 10025 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
10026 | hardcode_libdir_separator=: |
10027 | hardcode_direct=yes | |
d9898ee8 | 10028 | |
8d138742 CE |
10029 | # hardcode_minus_L: Not really in the search PATH, |
10030 | # but as the default location of the library. | |
10031 | hardcode_minus_L=yes | |
d50284c4 | 10032 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 10033 | ;; |
d9898ee8 | 10034 | |
8d138742 | 10035 | hpux10*) |
d50284c4 CE |
10036 | if test yes,no = "$GCC,$with_gnu_ld"; then |
10037 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10038 | else |
10039 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10040 | fi | |
d50284c4 CE |
10041 | if test no = "$with_gnu_ld"; then |
10042 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
10043 | hardcode_libdir_separator=: |
10044 | hardcode_direct=yes | |
10045 | hardcode_direct_absolute=yes | |
d50284c4 | 10046 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
10047 | # hardcode_minus_L: Not really in the search PATH, |
10048 | # but as the default location of the library. | |
10049 | hardcode_minus_L=yes | |
10050 | fi | |
10051 | ;; | |
d9898ee8 | 10052 | |
8d138742 | 10053 | hpux11*) |
d50284c4 | 10054 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
10055 | case $host_cpu in |
10056 | hppa*64*) | |
d50284c4 | 10057 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10058 | ;; |
10059 | ia64*) | |
d50284c4 | 10060 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10061 | ;; |
10062 | *) | |
d50284c4 | 10063 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10064 | ;; |
10065 | esac | |
10066 | else | |
10067 | case $host_cpu in | |
10068 | hppa*64*) | |
d50284c4 | 10069 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10070 | ;; |
10071 | ia64*) | |
d50284c4 | 10072 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10073 | ;; |
10074 | *) | |
b0322a85 CE |
10075 | |
10076 | # Older versions of the 11.00 compiler do not understand -b yet | |
10077 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10079 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10080 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10081 | $as_echo_n "(cached) " >&6 | |
10082 | else | |
10083 | lt_cv_prog_compiler__b=no | |
d50284c4 | 10084 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
10085 | LDFLAGS="$LDFLAGS -b" |
10086 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10087 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10088 | # The linker can only warn and ignore the option if not recognized | |
10089 | # So say no if there are warnings | |
10090 | if test -s conftest.err; then | |
10091 | # Append any errors to the config.log. | |
10092 | cat conftest.err 1>&5 | |
10093 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10094 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10095 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10096 | lt_cv_prog_compiler__b=yes | |
10097 | fi | |
10098 | else | |
10099 | lt_cv_prog_compiler__b=yes | |
10100 | fi | |
10101 | fi | |
10102 | $RM -r conftest* | |
d50284c4 | 10103 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10104 | |
10105 | fi | |
10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10107 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10108 | ||
d50284c4 CE |
10109 | if test yes = "$lt_cv_prog_compiler__b"; then |
10110 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
10111 | else |
10112 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10113 | fi | |
10114 | ||
8d138742 CE |
10115 | ;; |
10116 | esac | |
10117 | fi | |
d50284c4 CE |
10118 | if test no = "$with_gnu_ld"; then |
10119 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 10120 | hardcode_libdir_separator=: |
d9898ee8 | 10121 | |
8d138742 CE |
10122 | case $host_cpu in |
10123 | hppa*64*|ia64*) | |
10124 | hardcode_direct=no | |
10125 | hardcode_shlibpath_var=no | |
10126 | ;; | |
10127 | *) | |
10128 | hardcode_direct=yes | |
10129 | hardcode_direct_absolute=yes | |
d50284c4 | 10130 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 10131 | |
8d138742 CE |
10132 | # hardcode_minus_L: Not really in the search PATH, |
10133 | # but as the default location of the library. | |
10134 | hardcode_minus_L=yes | |
10135 | ;; | |
10136 | esac | |
10137 | fi | |
10138 | ;; | |
d9898ee8 | 10139 | |
8d138742 | 10140 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
10141 | if test yes = "$GCC"; then |
10142 | 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' | |
8d138742 CE |
10143 | # Try to use the -exported_symbol ld option, if it does not |
10144 | # work, assume that -exports_file does not work either and | |
10145 | # implicitly export all symbols. | |
b0322a85 CE |
10146 | # This should be the same for all languages, so no per-tag cache variable. |
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10148 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10149 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10150 | $as_echo_n "(cached) " >&6 | |
10151 | else | |
d50284c4 CE |
10152 | save_LDFLAGS=$LDFLAGS |
10153 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
10154 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10155 | /* end confdefs.h. */ | |
10156 | int foo (void) { return 0; } | |
8d138742 | 10157 | _ACEOF |
b0322a85 CE |
10158 | if ac_fn_c_try_link "$LINENO"; then : |
10159 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 10160 | else |
b0322a85 | 10161 | lt_cv_irix_exported_symbol=no |
8d138742 | 10162 | fi |
b0322a85 CE |
10163 | rm -f core conftest.err conftest.$ac_objext \ |
10164 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 10165 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10166 | fi |
10167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10168 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
10169 | if test yes = "$lt_cv_irix_exported_symbol"; then |
10170 | 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' | |
b0322a85 | 10171 | fi |
8d138742 | 10172 | else |
d50284c4 CE |
10173 | 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' |
10174 | 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' | |
8d138742 CE |
10175 | fi |
10176 | archive_cmds_need_lc='no' | |
d50284c4 | 10177 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10178 | hardcode_libdir_separator=: |
10179 | inherit_rpath=yes | |
10180 | link_all_deplibs=yes | |
10181 | ;; | |
d9898ee8 | 10182 | |
d50284c4 CE |
10183 | linux*) |
10184 | case $cc_basename in | |
10185 | tcc*) | |
10186 | # Fabrice Bellard et al's Tiny C Compiler | |
10187 | ld_shlibs=yes | |
10188 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10189 | ;; | |
10190 | esac | |
10191 | ;; | |
10192 | ||
8d138742 CE |
10193 | netbsd*) |
10194 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10195 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10196 | else | |
10197 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10198 | fi | |
10199 | hardcode_libdir_flag_spec='-R$libdir' | |
10200 | hardcode_direct=yes | |
10201 | hardcode_shlibpath_var=no | |
10202 | ;; | |
d9898ee8 | 10203 | |
8d138742 CE |
10204 | newsos6) |
10205 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10206 | hardcode_direct=yes | |
d50284c4 | 10207 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10208 | hardcode_libdir_separator=: |
10209 | hardcode_shlibpath_var=no | |
10210 | ;; | |
d9898ee8 | 10211 | |
8d138742 CE |
10212 | *nto* | *qnx*) |
10213 | ;; | |
d9898ee8 | 10214 | |
d50284c4 | 10215 | openbsd* | bitrig*) |
8d138742 CE |
10216 | if test -f /usr/libexec/ld.so; then |
10217 | hardcode_direct=yes | |
10218 | hardcode_shlibpath_var=no | |
10219 | hardcode_direct_absolute=yes | |
d50284c4 | 10220 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 10221 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
10222 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10223 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10224 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 10225 | else |
d50284c4 CE |
10226 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10227 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
10228 | fi |
10229 | else | |
10230 | ld_shlibs=no | |
10231 | fi | |
10232 | ;; | |
d9898ee8 | 10233 | |
8d138742 CE |
10234 | os2*) |
10235 | hardcode_libdir_flag_spec='-L$libdir' | |
10236 | hardcode_minus_L=yes | |
10237 | allow_undefined_flag=unsupported | |
d50284c4 CE |
10238 | shrext_cmds=.dll |
10239 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10240 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10241 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10242 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10243 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10244 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10245 | emximp -o $lib $output_objdir/$libname.def' | |
10246 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10247 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10248 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10249 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10250 | prefix_cmds="$SED"~ | |
10251 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10252 | prefix_cmds="$prefix_cmds -e 1d"; | |
10253 | fi~ | |
10254 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10255 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10256 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10257 | emximp -o $lib $output_objdir/$libname.def' | |
10258 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10259 | enable_shared_with_static_runtimes=yes | |
8d138742 | 10260 | ;; |
d9898ee8 | 10261 | |
8d138742 | 10262 | osf3*) |
d50284c4 CE |
10263 | if test yes = "$GCC"; then |
10264 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10265 | 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' | |
8d138742 CE |
10266 | else |
10267 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10268 | 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' |
8d138742 CE |
10269 | fi |
10270 | archive_cmds_need_lc='no' | |
d50284c4 | 10271 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10272 | hardcode_libdir_separator=: |
10273 | ;; | |
d9898ee8 | 10274 | |
8d138742 | 10275 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
10276 | if test yes = "$GCC"; then |
10277 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10278 | 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' | |
10279 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
10280 | else |
10281 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10282 | 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' |
8d138742 | 10283 | 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~ |
d50284c4 | 10284 | $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' |
d9898ee8 | 10285 | |
8d138742 CE |
10286 | # Both c and cxx compiler support -rpath directly |
10287 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10288 | fi | |
10289 | archive_cmds_need_lc='no' | |
10290 | hardcode_libdir_separator=: | |
10291 | ;; | |
d9898ee8 | 10292 | |
8d138742 CE |
10293 | solaris*) |
10294 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10295 | if test yes = "$GCC"; then |
10296 | wlarc='$wl' | |
10297 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10298 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10299 | $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' |
8d138742 CE |
10300 | else |
10301 | case `$CC -V 2>&1` in | |
10302 | *"Compilers 5.0"*) | |
10303 | wlarc='' | |
d50284c4 | 10304 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10305 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10306 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10307 | ;; |
10308 | *) | |
d50284c4 CE |
10309 | wlarc='$wl' |
10310 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10311 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10312 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10313 | ;; |
10314 | esac | |
10315 | fi | |
10316 | hardcode_libdir_flag_spec='-R$libdir' | |
10317 | hardcode_shlibpath_var=no | |
10318 | case $host_os in | |
10319 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10320 | *) | |
10321 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 10322 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10323 | # but is careful enough not to reorder. |
10324 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10325 | if test yes = "$GCC"; then |
10326 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
10327 | else |
10328 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10329 | fi | |
10330 | ;; | |
10331 | esac | |
10332 | link_all_deplibs=yes | |
10333 | ;; | |
d9898ee8 | 10334 | |
8d138742 | 10335 | sunos4*) |
d50284c4 | 10336 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10337 | # Use $CC to link under sequent, because it throws in some extra .o |
10338 | # files that make .init and .fini sections work. | |
d50284c4 | 10339 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10340 | else |
10341 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10342 | fi | |
10343 | hardcode_libdir_flag_spec='-L$libdir' | |
10344 | hardcode_direct=yes | |
10345 | hardcode_minus_L=yes | |
10346 | hardcode_shlibpath_var=no | |
10347 | ;; | |
d9898ee8 | 10348 | |
8d138742 CE |
10349 | sysv4) |
10350 | case $host_vendor in | |
10351 | sni) | |
10352 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10353 | hardcode_direct=yes # is this really true??? | |
10354 | ;; | |
10355 | siemens) | |
10356 | ## LD is ld it makes a PLAMLIB | |
10357 | ## CC just makes a GrossModule. | |
10358 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10359 | reload_cmds='$CC -r -o $output$reload_objs' | |
10360 | hardcode_direct=no | |
10361 | ;; | |
10362 | motorola) | |
10363 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10364 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10365 | ;; | |
10366 | esac | |
10367 | runpath_var='LD_RUN_PATH' | |
10368 | hardcode_shlibpath_var=no | |
10369 | ;; | |
d9898ee8 | 10370 | |
8d138742 CE |
10371 | sysv4.3*) |
10372 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10373 | hardcode_shlibpath_var=no | |
10374 | export_dynamic_flag_spec='-Bexport' | |
10375 | ;; | |
d9898ee8 | 10376 | |
8d138742 CE |
10377 | sysv4*MP*) |
10378 | if test -d /usr/nec; then | |
10379 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10380 | hardcode_shlibpath_var=no | |
10381 | runpath_var=LD_RUN_PATH | |
10382 | hardcode_runpath_var=yes | |
10383 | ld_shlibs=yes | |
10384 | fi | |
10385 | ;; | |
d9898ee8 | 10386 | |
8d138742 | 10387 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10388 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10389 | archive_cmds_need_lc=no |
10390 | hardcode_shlibpath_var=no | |
10391 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10392 | |
d50284c4 CE |
10393 | if test yes = "$GCC"; then |
10394 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10395 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10396 | else |
d50284c4 CE |
10397 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10398 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10399 | fi |
10400 | ;; | |
d9898ee8 | 10401 | |
8d138742 | 10402 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10403 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10404 | # link with -lc, and that would cause any symbols used from libc to |
10405 | # always be unresolved, which means just about no library would | |
10406 | # ever link correctly. If we're not using GNU ld we use -z text | |
10407 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10408 | # as -z defs. | |
d50284c4 CE |
10409 | no_undefined_flag='$wl-z,text' |
10410 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10411 | archive_cmds_need_lc=no |
10412 | hardcode_shlibpath_var=no | |
d50284c4 | 10413 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10414 | hardcode_libdir_separator=':' |
10415 | link_all_deplibs=yes | |
d50284c4 | 10416 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10417 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10418 | |
d50284c4 CE |
10419 | if test yes = "$GCC"; then |
10420 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10421 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10422 | else |
d50284c4 CE |
10423 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10424 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10425 | fi |
10426 | ;; | |
d9898ee8 | 10427 | |
8d138742 CE |
10428 | uts4*) |
10429 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10430 | hardcode_libdir_flag_spec='-L$libdir' | |
10431 | hardcode_shlibpath_var=no | |
10432 | ;; | |
d9898ee8 | 10433 | |
8d138742 CE |
10434 | *) |
10435 | ld_shlibs=no | |
10436 | ;; | |
10437 | esac | |
d9898ee8 | 10438 | |
d50284c4 | 10439 | if test sni = "$host_vendor"; then |
8d138742 CE |
10440 | case $host in |
10441 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10442 | export_dynamic_flag_spec='$wl-Blargedynsym' |
8d138742 CE |
10443 | ;; |
10444 | esac | |
10445 | fi | |
10446 | fi | |
d9898ee8 | 10447 | |
b0322a85 | 10448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10449 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10450 | test no = "$ld_shlibs" && can_build_shared=no |
d9898ee8 | 10451 | |
8d138742 | 10452 | with_gnu_ld=$with_gnu_ld |
d9898ee8 | 10453 | |
10454 | ||
d9898ee8 | 10455 | |
d9898ee8 | 10456 | |
d9898ee8 | 10457 | |
d9898ee8 | 10458 | |
d9898ee8 | 10459 | |
10460 | ||
d9898ee8 | 10461 | |
d9898ee8 | 10462 | |
10463 | ||
dd184caf | 10464 | |
d9898ee8 | 10465 | |
d9898ee8 | 10466 | |
d9898ee8 | 10467 | |
8d138742 CE |
10468 | # |
10469 | # Do we need to explicitly link libc? | |
10470 | # | |
10471 | case "x$archive_cmds_need_lc" in | |
10472 | x|xyes) | |
10473 | # Assume -lc should be added | |
10474 | archive_cmds_need_lc=yes | |
d9898ee8 | 10475 | |
d50284c4 | 10476 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10477 | case $archive_cmds in |
10478 | *'~'*) | |
10479 | # FIXME: we may have to deal with multi-command sequences. | |
10480 | ;; | |
10481 | '$CC '*) | |
10482 | # Test whether the compiler implicitly links with -lc since on some | |
10483 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10484 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10486 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10487 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10488 | $as_echo_n "(cached) " >&6 | |
10489 | else | |
10490 | $RM conftest* | |
10491 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8d138742 | 10492 | |
b0322a85 | 10493 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10494 | (eval $ac_compile) 2>&5 |
10495 | ac_status=$? | |
b0322a85 CE |
10496 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10497 | test $ac_status = 0; } 2>conftest.err; then | |
10498 | soname=conftest | |
10499 | lib=conftest | |
10500 | libobjs=conftest.$ac_objext | |
10501 | deplibs= | |
10502 | wl=$lt_prog_compiler_wl | |
10503 | pic_flag=$lt_prog_compiler_pic | |
10504 | compiler_flags=-v | |
10505 | linker_flags=-v | |
10506 | verstring= | |
10507 | output_objdir=. | |
10508 | libname=conftest | |
10509 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10510 | allow_undefined_flag= | |
10511 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10512 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10513 | ac_status=$? | |
b0322a85 CE |
10514 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10515 | test $ac_status = 0; } | |
10516 | then | |
10517 | lt_cv_archive_cmds_need_lc=no | |
10518 | else | |
10519 | lt_cv_archive_cmds_need_lc=yes | |
10520 | fi | |
10521 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10522 | else | |
10523 | cat conftest.err 1>&5 | |
10524 | fi | |
10525 | $RM conftest* | |
10526 | ||
10527 | fi | |
10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10529 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10530 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 | 10531 | ;; |
d9898ee8 | 10532 | esac |
8d138742 CE |
10533 | fi |
10534 | ;; | |
10535 | esac | |
d9898ee8 | 10536 | |
d9898ee8 | 10537 | |
d9898ee8 | 10538 | |
d9898ee8 | 10539 | |
d9898ee8 | 10540 | |
d9898ee8 | 10541 | |
d9898ee8 | 10542 | |
d9898ee8 | 10543 | |
d9898ee8 | 10544 | |
10545 | ||
d9898ee8 | 10546 | |
d9898ee8 | 10547 | |
10548 | ||
d9898ee8 | 10549 | |
10550 | ||
d9898ee8 | 10551 | |
d9898ee8 | 10552 | |
10553 | ||
dd184caf | 10554 | |
d9898ee8 | 10555 | |
d9898ee8 | 10556 | |
10557 | ||
10558 | ||
d9898ee8 | 10559 | |
d9898ee8 | 10560 | |
d9898ee8 | 10561 | |
d9898ee8 | 10562 | |
d9898ee8 | 10563 | |
d9898ee8 | 10564 | |
d9898ee8 | 10565 | |
d9898ee8 | 10566 | |
d9898ee8 | 10567 | |
d9898ee8 | 10568 | |
d9898ee8 | 10569 | |
d9898ee8 | 10570 | |
d9898ee8 | 10571 | |
dd184caf | 10572 | |
dd184caf | 10573 | |
d9898ee8 | 10574 | |
d9898ee8 | 10575 | |
d9898ee8 | 10576 | |
d9898ee8 | 10577 | |
d9898ee8 | 10578 | |
d9898ee8 | 10579 | |
dd184caf | 10580 | |
dd184caf | 10581 | |
d9898ee8 | 10582 | |
d9898ee8 | 10583 | |
d9898ee8 | 10584 | |
d9898ee8 | 10585 | |
d9898ee8 | 10586 | |
d9898ee8 | 10587 | |
d9898ee8 | 10588 | |
d9898ee8 | 10589 | |
d9898ee8 | 10590 | |
d9898ee8 | 10591 | |
d9898ee8 | 10592 | |
d9898ee8 | 10593 | |
d9898ee8 | 10594 | |
d9898ee8 | 10595 | |
d9898ee8 | 10596 | |
d9898ee8 | 10597 | |
d9898ee8 | 10598 | |
d9898ee8 | 10599 | |
d9898ee8 | 10600 | |
d9898ee8 | 10601 | |
d9898ee8 | 10602 | |
d9898ee8 | 10603 | |
d9898ee8 | 10604 | |
d9898ee8 | 10605 | |
10606 | ||
d9898ee8 | 10607 | |
d9898ee8 | 10608 | |
d9898ee8 | 10609 | |
d9898ee8 | 10610 | |
d9898ee8 | 10611 | |
d9898ee8 | 10612 | |
d9898ee8 | 10613 | |
d9898ee8 | 10614 | |
d9898ee8 | 10615 | |
ac40fd9e | 10616 | |
ac40fd9e | 10617 | |
d9898ee8 | 10618 | |
10619 | ||
d9898ee8 | 10620 | |
d9898ee8 | 10621 | |
d9898ee8 | 10622 | |
d9898ee8 | 10623 | |
d9898ee8 | 10624 | |
d9898ee8 | 10625 | |
d9898ee8 | 10626 | |
d9898ee8 | 10627 | |
d9898ee8 | 10628 | |
d9898ee8 | 10629 | |
d9898ee8 | 10630 | |
d9898ee8 | 10631 | |
d9898ee8 | 10632 | |
d9898ee8 | 10633 | |
10634 | ||
d9898ee8 | 10635 | |
d9898ee8 | 10636 | |
d9898ee8 | 10637 | |
10638 | ||
d9898ee8 | 10639 | |
d9898ee8 | 10640 | |
d9898ee8 | 10641 | |
d9898ee8 | 10642 | |
d9898ee8 | 10643 | |
d9898ee8 | 10644 | |
d9898ee8 | 10645 | |
ac40fd9e | 10646 | |
d9898ee8 | 10647 | |
d9898ee8 | 10648 | |
d9898ee8 | 10649 | |
d9898ee8 | 10650 | |
d9898ee8 | 10651 | |
d9898ee8 | 10652 | |
d9898ee8 | 10653 | |
8d138742 CE |
10654 | |
10655 | ||
10656 | ||
10657 | ||
10658 | ||
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | ||
10664 | ||
10665 | ||
10666 | ||
10667 | ||
10668 | ||
10669 | ||
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | ||
10687 | ||
b0322a85 | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10689 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10690 | ||
d50284c4 | 10691 | if test yes = "$GCC"; then |
8d138742 | 10692 | case $host_os in |
d50284c4 CE |
10693 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10694 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10695 | esac |
b0322a85 | 10696 | case $host_os in |
d50284c4 CE |
10697 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10698 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10699 | esac |
10700 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10701 | case $lt_search_path_spec in | |
10702 | *\;*) | |
8d138742 CE |
10703 | # if the path contains ";" then we assume it to be the separator |
10704 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10705 | # assumed that no part of a normal pathname contains ";" but that should | |
10706 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10707 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10708 | ;; | |
10709 | *) | |
10710 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10711 | ;; | |
10712 | esac | |
8d138742 | 10713 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10714 | # and add multilib dir if necessary... |
8d138742 | 10715 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10716 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10717 | # ...but if some path component already ends with the multilib dir we assume | |
10718 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10719 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10720 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10721 | lt_multi_os_dir= | |
10722 | ;; | |
10723 | esac | |
8d138742 | 10724 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10725 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10726 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10727 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10728 | test -d "$lt_sys_path" && \ |
10729 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10730 | fi | |
10731 | done | |
b0322a85 | 10732 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10733 | BEGIN {RS = " "; FS = "/|\n";} { |
10734 | lt_foo = ""; | |
10735 | lt_count = 0; | |
8d138742 CE |
10736 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10737 | if ($lt_i != "" && $lt_i != ".") { | |
10738 | if ($lt_i == "..") { | |
10739 | lt_count++; | |
10740 | } else { | |
10741 | if (lt_count == 0) { | |
d50284c4 | 10742 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10743 | } else { |
10744 | lt_count--; | |
10745 | } | |
10746 | } | |
10747 | } | |
10748 | } | |
10749 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10750 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10751 | }'` | |
b0322a85 CE |
10752 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10753 | # for these hosts. | |
10754 | case $host_os in | |
10755 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10756 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10757 | esac |
10758 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10759 | else |
10760 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10761 | fi | |
10762 | library_names_spec= | |
10763 | libname_spec='lib$name' | |
10764 | soname_spec= | |
d50284c4 | 10765 | shrext_cmds=.so |
8d138742 CE |
10766 | postinstall_cmds= |
10767 | postuninstall_cmds= | |
10768 | finish_cmds= | |
10769 | finish_eval= | |
10770 | shlibpath_var= | |
10771 | shlibpath_overrides_runpath=unknown | |
10772 | version_type=none | |
10773 | dynamic_linker="$host_os ld.so" | |
10774 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10775 | need_lib_prefix=unknown | |
10776 | hardcode_into_libs=no | |
10777 | ||
10778 | # when you set need_version to no, make sure it does not cause -set_version | |
10779 | # flags to be left without arguments | |
10780 | need_version=unknown | |
10781 | ||
d50284c4 CE |
10782 | |
10783 | ||
8d138742 CE |
10784 | case $host_os in |
10785 | aix3*) | |
b0322a85 | 10786 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10787 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
8d138742 CE |
10788 | shlibpath_var=LIBPATH |
10789 | ||
10790 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10791 | soname_spec='$libname$release$shared_ext$major' |
8d138742 CE |
10792 | ;; |
10793 | ||
10794 | aix[4-9]*) | |
b0322a85 | 10795 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10796 | need_lib_prefix=no |
10797 | need_version=no | |
10798 | hardcode_into_libs=yes | |
d50284c4 | 10799 | if test ia64 = "$host_cpu"; then |
8d138742 | 10800 | # AIX 5 supports IA64 |
d50284c4 | 10801 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
8d138742 CE |
10802 | shlibpath_var=LD_LIBRARY_PATH |
10803 | else | |
10804 | # With GCC up to 2.95.x, collect2 would create an import file | |
10805 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10806 | # the line '#! .'. This would cause the generated library to |
10807 | # depend on '.', always an invalid library. This was fixed in | |
8d138742 CE |
10808 | # development snapshots of GCC prior to 3.0. |
10809 | case $host_os in | |
10810 | aix4 | aix4.[01] | aix4.[01].*) | |
10811 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10812 | echo ' yes ' | |
d50284c4 | 10813 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
8d138742 CE |
10814 | : |
10815 | else | |
10816 | can_build_shared=no | |
10817 | fi | |
10818 | ;; | |
10819 | esac | |
d50284c4 CE |
10820 | # Using Import Files as archive members, it is possible to support |
10821 | # filename-based versioning of shared library archives on AIX. While | |
10822 | # this would work for both with and without runtime linking, it will | |
10823 | # prevent static linking of such archives. So we do filename-based | |
10824 | # shared library versioning with .so extension only, which is used | |
10825 | # when both runtime linking and shared linking is enabled. | |
10826 | # Unfortunately, runtime linking may impact performance, so we do | |
10827 | # not want this to be the default eventually. Also, we use the | |
10828 | # versioned .so libs for executables only if there is the -brtl | |
10829 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10830 | # To allow for filename-based versioning support, we need to create | |
10831 | # libNAME.so.V as an archive file, containing: | |
10832 | # *) an Import File, referring to the versioned filename of the | |
10833 | # archive as well as the shared archive member, telling the | |
10834 | # bitwidth (32 or 64) of that shared object, and providing the | |
10835 | # list of exported symbols of that shared object, eventually | |
10836 | # decorated with the 'weak' keyword | |
10837 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10838 | # it being seen by the linker. | |
10839 | # At run time we better use the real file rather than another symlink, | |
10840 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10841 | ||
10842 | case $with_aix_soname,$aix_use_runtimelinking in | |
10843 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
8d138742 CE |
10844 | # soname into executable. Probably we can add versioning support to |
10845 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10846 | aix,yes) # traditional libtool |
10847 | dynamic_linker='AIX unversionable lib.so' | |
8d138742 CE |
10848 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10849 | # instead of lib<name>.a to let people know that these are not | |
10850 | # typical AIX shared libraries. | |
d50284c4 CE |
10851 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10852 | ;; | |
10853 | aix,no) # traditional AIX only | |
10854 | dynamic_linker='AIX lib.a(lib.so.V)' | |
8d138742 CE |
10855 | # We preserve .a as extension for shared libraries through AIX4.2 |
10856 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10857 | library_names_spec='$libname$release.a $libname.a' |
10858 | soname_spec='$libname$release$shared_ext$major' | |
10859 | ;; | |
10860 | svr4,*) # full svr4 only | |
10861 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10862 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10863 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10864 | shlibpath_overrides_runpath=yes | |
10865 | ;; | |
10866 | *,yes) # both, prefer svr4 | |
10867 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10868 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10869 | # unpreferred sharedlib libNAME.a needs extra handling | |
10870 | 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"' | |
10871 | 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"' | |
10872 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10873 | shlibpath_overrides_runpath=yes | |
10874 | ;; | |
10875 | *,no) # both, prefer aix | |
10876 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10877 | library_names_spec='$libname$release.a $libname.a' | |
10878 | soname_spec='$libname$release$shared_ext$major' | |
10879 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10880 | 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)' | |
10881 | 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"' | |
10882 | ;; | |
10883 | esac | |
8d138742 CE |
10884 | shlibpath_var=LIBPATH |
10885 | fi | |
10886 | ;; | |
10887 | ||
10888 | amigaos*) | |
10889 | case $host_cpu in | |
10890 | powerpc) | |
10891 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10892 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10893 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10894 | ;; |
10895 | m68k) | |
10896 | library_names_spec='$libname.ixlibrary $libname.a' | |
10897 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10898 | 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' |
8d138742 CE |
10899 | ;; |
10900 | esac | |
10901 | ;; | |
10902 | ||
10903 | beos*) | |
d50284c4 | 10904 | library_names_spec='$libname$shared_ext' |
8d138742 CE |
10905 | dynamic_linker="$host_os ld.so" |
10906 | shlibpath_var=LIBRARY_PATH | |
10907 | ;; | |
10908 | ||
10909 | bsdi[45]*) | |
b0322a85 | 10910 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 | 10911 | need_version=no |
d50284c4 CE |
10912 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10913 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10914 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10915 | shlibpath_var=LD_LIBRARY_PATH | |
10916 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10917 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10918 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10919 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10920 | # libtool to hard-code these into programs | |
10921 | ;; | |
10922 | ||
8d138742 | 10923 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10924 | version_type=windows |
d50284c4 | 10925 | shrext_cmds=.dll |
d9898ee8 | 10926 | need_version=no |
10927 | need_lib_prefix=no | |
10928 | ||
b0322a85 CE |
10929 | case $GCC,$cc_basename in |
10930 | yes,*) | |
10931 | # gcc | |
d9898ee8 | 10932 | library_names_spec='$libname.dll.a' |
10933 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10934 | postinstall_cmds='base_file=`basename \$file`~ |
10935 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10936 | dldir=$destdir/`dirname \$dlpath`~ |
10937 | test -d \$dldir || mkdir -p \$dldir~ | |
10938 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10939 | chmod a+x \$dldir/$dlname~ |
10940 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10941 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10942 | fi' | |
d9898ee8 | 10943 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10944 | dlpath=$dir/\$dldll~ | |
8d138742 | 10945 | $RM \$dlpath' |
d9898ee8 | 10946 | shlibpath_overrides_runpath=yes |
10947 | ||
10948 | case $host_os in | |
10949 | cygwin*) | |
10950 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10951 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10952 | |
10953 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10954 | ;; |
8d138742 | 10955 | mingw* | cegcc*) |
d9898ee8 | 10956 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10957 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10958 | ;; |
10959 | pw32*) | |
10960 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10961 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10962 | ;; |
10963 | esac | |
b0322a85 | 10964 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10965 | ;; |
10966 | ||
b0322a85 CE |
10967 | *,cl*) |
10968 | # Native MSVC | |
10969 | libname_spec='$name' | |
d50284c4 CE |
10970 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10971 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10972 | |
10973 | case $build_os in | |
10974 | mingw*) | |
10975 | sys_lib_search_path_spec= | |
10976 | lt_save_ifs=$IFS | |
10977 | IFS=';' | |
10978 | for lt_path in $LIB | |
10979 | do | |
10980 | IFS=$lt_save_ifs | |
10981 | # Let DOS variable expansion print the short 8.3 style file name. | |
10982 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10983 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10984 | done | |
10985 | IFS=$lt_save_ifs | |
10986 | # Convert to MSYS style. | |
10987 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10988 | ;; | |
10989 | cygwin*) | |
10990 | # Convert to unix form, then to dos form, then back to unix form | |
10991 | # but this time dos style (no spaces!) so that the unix form looks | |
10992 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10993 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10994 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10995 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10996 | ;; | |
10997 | *) | |
d50284c4 | 10998 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10999 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
11000 | # It is most probably a Windows format PATH. | |
11001 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11002 | else | |
11003 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11004 | fi | |
11005 | # FIXME: find the short name or the path components, as spaces are | |
11006 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11007 | ;; | |
11008 | esac | |
11009 | ||
11010 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
11011 | postinstall_cmds='base_file=`basename \$file`~ |
11012 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
11013 | dldir=$destdir/`dirname \$dlpath`~ |
11014 | test -d \$dldir || mkdir -p \$dldir~ | |
11015 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11016 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11017 | dlpath=$dir/\$dldll~ | |
11018 | $RM \$dlpath' | |
11019 | shlibpath_overrides_runpath=yes | |
11020 | dynamic_linker='Win32 link.exe' | |
11021 | ;; | |
11022 | ||
11023 | *) | |
11024 | # Assume MSVC wrapper | |
d50284c4 | 11025 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 CE |
11026 | dynamic_linker='Win32 ld.exe' |
11027 | ;; | |
11028 | esac | |
d9898ee8 | 11029 | # FIXME: first we should search . and the directory the executable is in |
11030 | shlibpath_var=PATH | |
11031 | ;; | |
11032 | ||
11033 | darwin* | rhapsody*) | |
11034 | dynamic_linker="$host_os dyld" | |
11035 | version_type=darwin | |
11036 | need_lib_prefix=no | |
11037 | need_version=no | |
d50284c4 CE |
11038 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
11039 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 11040 | shlibpath_overrides_runpath=yes |
11041 | shlibpath_var=DYLD_LIBRARY_PATH | |
11042 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 11043 | |
8d138742 | 11044 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 11045 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11046 | ;; | |
11047 | ||
11048 | dgux*) | |
b0322a85 | 11049 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11050 | need_lib_prefix=no |
11051 | need_version=no | |
d50284c4 CE |
11052 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11053 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11054 | shlibpath_var=LD_LIBRARY_PATH |
11055 | ;; | |
11056 | ||
d9898ee8 | 11057 | freebsd* | dragonfly*) |
11058 | # DragonFly does not have aout. When/if they implement a new | |
11059 | # versioning mechanism, adjust this. | |
11060 | if test -x /usr/bin/objformat; then | |
11061 | objformat=`/usr/bin/objformat` | |
11062 | else | |
11063 | case $host_os in | |
b0322a85 | 11064 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 11065 | *) objformat=elf ;; |
11066 | esac | |
11067 | fi | |
11068 | version_type=freebsd-$objformat | |
11069 | case $version_type in | |
11070 | freebsd-elf*) | |
d50284c4 CE |
11071 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11072 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11073 | need_version=no |
11074 | need_lib_prefix=no | |
11075 | ;; | |
11076 | freebsd-*) | |
d50284c4 | 11077 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11078 | need_version=yes |
11079 | ;; | |
11080 | esac | |
11081 | shlibpath_var=LD_LIBRARY_PATH | |
11082 | case $host_os in | |
b0322a85 | 11083 | freebsd2.*) |
d9898ee8 | 11084 | shlibpath_overrides_runpath=yes |
11085 | ;; | |
11086 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11087 | shlibpath_overrides_runpath=yes | |
11088 | hardcode_into_libs=yes | |
11089 | ;; | |
11090 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11091 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11092 | shlibpath_overrides_runpath=no | |
11093 | hardcode_into_libs=yes | |
11094 | ;; | |
ac40fd9e | 11095 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 11096 | shlibpath_overrides_runpath=yes |
11097 | hardcode_into_libs=yes | |
11098 | ;; | |
11099 | esac | |
11100 | ;; | |
11101 | ||
b0322a85 CE |
11102 | haiku*) |
11103 | version_type=linux # correct to gnu/linux during the next big refactor | |
11104 | need_lib_prefix=no | |
11105 | need_version=no | |
11106 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
11107 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11108 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 11109 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 11110 | shlibpath_overrides_runpath=no |
b0322a85 | 11111 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 11112 | hardcode_into_libs=yes |
11113 | ;; | |
11114 | ||
11115 | hpux9* | hpux10* | hpux11*) | |
11116 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11117 | # link against other versions. | |
11118 | version_type=sunos | |
11119 | need_lib_prefix=no | |
11120 | need_version=no | |
11121 | case $host_cpu in | |
11122 | ia64*) | |
11123 | shrext_cmds='.so' | |
11124 | hardcode_into_libs=yes | |
11125 | dynamic_linker="$host_os dld.so" | |
11126 | shlibpath_var=LD_LIBRARY_PATH | |
11127 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11128 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11129 | soname_spec='$libname$release$shared_ext$major' | |
11130 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 11131 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 11132 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 11133 | else |
11134 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 11135 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 11136 | fi |
d9898ee8 | 11137 | ;; |
8d138742 CE |
11138 | hppa*64*) |
11139 | shrext_cmds='.sl' | |
11140 | hardcode_into_libs=yes | |
11141 | dynamic_linker="$host_os dld.sl" | |
11142 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11143 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
11144 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11145 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11146 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11147 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11148 | ;; | |
11149 | *) | |
d9898ee8 | 11150 | shrext_cmds='.sl' |
11151 | dynamic_linker="$host_os dld.sl" | |
11152 | shlibpath_var=SHLIB_PATH | |
11153 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
11154 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11155 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11156 | ;; |
11157 | esac | |
b0322a85 | 11158 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 11159 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
11160 | # or fails outright, so override atomically: |
11161 | install_override_mode=555 | |
d9898ee8 | 11162 | ;; |
11163 | ||
ac40fd9e | 11164 | interix[3-9]*) |
b0322a85 | 11165 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11166 | need_lib_prefix=no |
11167 | need_version=no | |
d50284c4 CE |
11168 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11169 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11170 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11171 | shlibpath_var=LD_LIBRARY_PATH | |
11172 | shlibpath_overrides_runpath=no | |
11173 | hardcode_into_libs=yes | |
11174 | ;; | |
11175 | ||
11176 | irix5* | irix6* | nonstopux*) | |
11177 | case $host_os in | |
11178 | nonstopux*) version_type=nonstopux ;; | |
11179 | *) | |
d50284c4 | 11180 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 11181 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11182 | else |
11183 | version_type=irix | |
11184 | fi ;; | |
11185 | esac | |
11186 | need_lib_prefix=no | |
11187 | need_version=no | |
d50284c4 CE |
11188 | soname_spec='$libname$release$shared_ext$major' |
11189 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 11190 | case $host_os in |
11191 | irix5* | nonstopux*) | |
11192 | libsuff= shlibsuff= | |
11193 | ;; | |
11194 | *) | |
11195 | case $LD in # libtool.m4 will add one of these switches to LD | |
11196 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11197 | libsuff= shlibsuff= libmagic=32-bit;; | |
11198 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11199 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11200 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11201 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11202 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11203 | esac | |
11204 | ;; | |
11205 | esac | |
11206 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11207 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
11208 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11209 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 11210 | hardcode_into_libs=yes |
11211 | ;; | |
11212 | ||
11213 | # No shared lib support for Linux oldld, aout, or coff. | |
11214 | linux*oldld* | linux*aout* | linux*coff*) | |
11215 | dynamic_linker=no | |
11216 | ;; | |
11217 | ||
d50284c4 CE |
11218 | linux*android*) |
11219 | version_type=none # Android doesn't support versioned libraries. | |
11220 | need_lib_prefix=no | |
11221 | need_version=no | |
11222 | library_names_spec='$libname$release$shared_ext' | |
11223 | soname_spec='$libname$release$shared_ext' | |
11224 | finish_cmds= | |
11225 | shlibpath_var=LD_LIBRARY_PATH | |
11226 | shlibpath_overrides_runpath=yes | |
11227 | ||
11228 | # This implies no fast_install, which is unacceptable. | |
11229 | # Some rework will be needed to allow for fast_install | |
11230 | # before this can be enabled. | |
11231 | hardcode_into_libs=yes | |
11232 | ||
11233 | dynamic_linker='Android linker' | |
11234 | # Don't embed -rpath directories since the linker doesn't support them. | |
11235 | hardcode_libdir_flag_spec='-L$libdir' | |
11236 | ;; | |
11237 | ||
b0322a85 | 11238 | # This must be glibc/ELF. |
d50284c4 | 11239 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 11240 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11241 | need_lib_prefix=no |
11242 | need_version=no | |
d50284c4 CE |
11243 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11244 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11245 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11246 | shlibpath_var=LD_LIBRARY_PATH | |
11247 | shlibpath_overrides_runpath=no | |
b0322a85 | 11248 | |
8d138742 | 11249 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
11250 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11251 | $as_echo_n "(cached) " >&6 | |
11252 | else | |
11253 | lt_cv_shlibpath_overrides_runpath=no | |
11254 | save_LDFLAGS=$LDFLAGS | |
11255 | save_libdir=$libdir | |
11256 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11257 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
11259 | /* end confdefs.h. */ |
11260 | ||
11261 | int | |
11262 | main () | |
11263 | { | |
11264 | ||
11265 | ; | |
11266 | return 0; | |
11267 | } | |
11268 | _ACEOF | |
b0322a85 CE |
11269 | if ac_fn_c_try_link "$LINENO"; then : |
11270 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11271 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 11272 | fi |
b0322a85 CE |
11273 | fi |
11274 | rm -f core conftest.err conftest.$ac_objext \ | |
11275 | conftest$ac_exeext conftest.$ac_ext | |
11276 | LDFLAGS=$save_LDFLAGS | |
11277 | libdir=$save_libdir | |
8d138742 CE |
11278 | |
11279 | fi | |
11280 | ||
b0322a85 | 11281 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
8d138742 | 11282 | |
d9898ee8 | 11283 | # This implies no fast_install, which is unacceptable. |
11284 | # Some rework will be needed to allow for fast_install | |
11285 | # before this can be enabled. | |
11286 | hardcode_into_libs=yes | |
8d138742 CE |
11287 | |
11288 | # Add ABI-specific directories to the system library path. | |
11289 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11290 | |
d50284c4 CE |
11291 | # Ideally, we could use ldconfig to report *all* directores which are |
11292 | # searched for libraries, however this is still not possible. Aside from not | |
11293 | # being certain /sbin/ldconfig is available, command | |
11294 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11295 | # even though it is searched at run-time. Try to do the best guess by | |
11296 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11297 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11298 | 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' ' '` |
ac40fd9e | 11299 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11300 | fi |
11301 | ||
11302 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11303 | # powerpc, because MkLinux only supported shared libraries with the | |
11304 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11305 | # most powerpc-linux boxes support dynamic linking these days and | |
11306 | # people can always --disable-shared, the test was removed, and we | |
11307 | # assume the GNU/Linux dynamic linker is in use. | |
11308 | dynamic_linker='GNU/Linux ld.so' | |
11309 | ;; | |
11310 | ||
d9898ee8 | 11311 | netbsd*) |
11312 | version_type=sunos | |
11313 | need_lib_prefix=no | |
11314 | need_version=no | |
8d138742 | 11315 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11316 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11317 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11318 | dynamic_linker='NetBSD (a.out) ld.so' | |
11319 | else | |
d50284c4 CE |
11320 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11321 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11322 | dynamic_linker='NetBSD ld.elf_so' |
11323 | fi | |
11324 | shlibpath_var=LD_LIBRARY_PATH | |
11325 | shlibpath_overrides_runpath=yes | |
11326 | hardcode_into_libs=yes | |
11327 | ;; | |
11328 | ||
11329 | newsos6) | |
b0322a85 | 11330 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11331 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11332 | shlibpath_var=LD_LIBRARY_PATH |
11333 | shlibpath_overrides_runpath=yes | |
11334 | ;; | |
11335 | ||
8d138742 CE |
11336 | *nto* | *qnx*) |
11337 | version_type=qnx | |
d9898ee8 | 11338 | need_lib_prefix=no |
11339 | need_version=no | |
d50284c4 CE |
11340 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11341 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11342 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11343 | shlibpath_overrides_runpath=no |
11344 | hardcode_into_libs=yes | |
11345 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11346 | ;; |
11347 | ||
d50284c4 | 11348 | openbsd* | bitrig*) |
d9898ee8 | 11349 | version_type=sunos |
d50284c4 | 11350 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11351 | need_lib_prefix=no |
d50284c4 CE |
11352 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11353 | need_version=no | |
d9898ee8 | 11354 | else |
d50284c4 | 11355 | need_version=yes |
d9898ee8 | 11356 | fi |
d50284c4 CE |
11357 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11358 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11359 | shlibpath_var=LD_LIBRARY_PATH | |
11360 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11361 | ;; |
11362 | ||
11363 | os2*) | |
11364 | libname_spec='$name' | |
d50284c4 CE |
11365 | version_type=windows |
11366 | shrext_cmds=.dll | |
11367 | need_version=no | |
d9898ee8 | 11368 | need_lib_prefix=no |
d50284c4 CE |
11369 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11370 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11371 | v=$($ECHO $release$versuffix | tr -d .-); | |
11372 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11373 | $ECHO $n$v`$shared_ext' | |
11374 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11375 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11376 | shlibpath_var=BEGINLIBPATH |
11377 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11378 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11379 | postinstall_cmds='base_file=`basename \$file`~ | |
11380 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11381 | dldir=$destdir/`dirname \$dlpath`~ | |
11382 | test -d \$dldir || mkdir -p \$dldir~ | |
11383 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11384 | chmod a+x \$dldir/$dlname~ | |
11385 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11386 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11387 | fi' | |
11388 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11389 | dlpath=$dir/\$dldll~ | |
11390 | $RM \$dlpath' | |
d9898ee8 | 11391 | ;; |
11392 | ||
11393 | osf3* | osf4* | osf5*) | |
11394 | version_type=osf | |
11395 | need_lib_prefix=no | |
11396 | need_version=no | |
d50284c4 CE |
11397 | soname_spec='$libname$release$shared_ext$major' |
11398 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11399 | shlibpath_var=LD_LIBRARY_PATH |
11400 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11401 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11402 | ;; |
11403 | ||
ac40fd9e | 11404 | rdos*) |
11405 | dynamic_linker=no | |
11406 | ;; | |
11407 | ||
d9898ee8 | 11408 | solaris*) |
b0322a85 | 11409 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11410 | need_lib_prefix=no |
11411 | need_version=no | |
d50284c4 CE |
11412 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11413 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11414 | shlibpath_var=LD_LIBRARY_PATH |
11415 | shlibpath_overrides_runpath=yes | |
11416 | hardcode_into_libs=yes | |
11417 | # ldd complains unless libraries are executable | |
11418 | postinstall_cmds='chmod +x $lib' | |
11419 | ;; | |
11420 | ||
11421 | sunos4*) | |
11422 | version_type=sunos | |
d50284c4 | 11423 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11424 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11425 | shlibpath_var=LD_LIBRARY_PATH | |
11426 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11427 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11428 | need_lib_prefix=no |
11429 | fi | |
11430 | need_version=yes | |
11431 | ;; | |
11432 | ||
11433 | sysv4 | sysv4.3*) | |
b0322a85 | 11434 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11435 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11436 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11437 | shlibpath_var=LD_LIBRARY_PATH |
11438 | case $host_vendor in | |
11439 | sni) | |
11440 | shlibpath_overrides_runpath=no | |
11441 | need_lib_prefix=no | |
d9898ee8 | 11442 | runpath_var=LD_RUN_PATH |
11443 | ;; | |
11444 | siemens) | |
11445 | need_lib_prefix=no | |
11446 | ;; | |
11447 | motorola) | |
11448 | need_lib_prefix=no | |
11449 | need_version=no | |
11450 | shlibpath_overrides_runpath=no | |
11451 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11452 | ;; | |
11453 | esac | |
11454 | ;; | |
11455 | ||
11456 | sysv4*MP*) | |
d50284c4 | 11457 | if test -d /usr/nec; then |
b0322a85 | 11458 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11459 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11460 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11461 | shlibpath_var=LD_LIBRARY_PATH |
11462 | fi | |
11463 | ;; | |
11464 | ||
11465 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11466 | version_type=sco |
d9898ee8 | 11467 | need_lib_prefix=no |
11468 | need_version=no | |
d50284c4 CE |
11469 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11470 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11471 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11472 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11473 | hardcode_into_libs=yes |
d50284c4 | 11474 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11475 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11476 | else |
11477 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11478 | case $host_os in |
11479 | sco3.2v5*) | |
11480 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11481 | ;; | |
11482 | esac | |
11483 | fi | |
11484 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11485 | ;; | |
11486 | ||
8d138742 CE |
11487 | tpf*) |
11488 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11489 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11490 | need_lib_prefix=no |
11491 | need_version=no | |
d50284c4 | 11492 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
11493 | shlibpath_var=LD_LIBRARY_PATH |
11494 | shlibpath_overrides_runpath=no | |
11495 | hardcode_into_libs=yes | |
11496 | ;; | |
11497 | ||
d9898ee8 | 11498 | uts4*) |
b0322a85 | 11499 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11500 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11501 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11502 | shlibpath_var=LD_LIBRARY_PATH |
11503 | ;; | |
11504 | ||
11505 | *) | |
11506 | dynamic_linker=no | |
11507 | ;; | |
11508 | esac | |
b0322a85 | 11509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
8d138742 | 11510 | $as_echo "$dynamic_linker" >&6; } |
d50284c4 | 11511 | test no = "$dynamic_linker" && can_build_shared=no |
d9898ee8 | 11512 | |
11513 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
d50284c4 | 11514 | if test yes = "$GCC"; then |
d9898ee8 | 11515 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11516 | fi | |
11517 | ||
d50284c4 CE |
11518 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11519 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
8d138742 | 11520 | fi |
d50284c4 CE |
11521 | |
11522 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11523 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
8d138742 | 11524 | fi |
d9898ee8 | 11525 | |
d50284c4 CE |
11526 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11527 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11528 | ||
11529 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11530 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11531 | ||
11532 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11533 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11534 | ||
11535 | ||
11536 | ||
11537 | ||
11538 | ||
11539 | ||
d9898ee8 | 11540 | |
d9898ee8 | 11541 | |
d9898ee8 | 11542 | |
d9898ee8 | 11543 | |
d9898ee8 | 11544 | |
d9898ee8 | 11545 | |
d9898ee8 | 11546 | |
d9898ee8 | 11547 | |
d9898ee8 | 11548 | |
d9898ee8 | 11549 | |
d9898ee8 | 11550 | |
d9898ee8 | 11551 | |
d9898ee8 | 11552 | |
d9898ee8 | 11553 | |
d9898ee8 | 11554 | |
d9898ee8 | 11555 | |
d9898ee8 | 11556 | |
d9898ee8 | 11557 | |
d9898ee8 | 11558 | |
d9898ee8 | 11559 | |
d9898ee8 | 11560 | |
d9898ee8 | 11561 | |
d9898ee8 | 11562 | |
d9898ee8 | 11563 | |
d9898ee8 | 11564 | |
d9898ee8 | 11565 | |
d9898ee8 | 11566 | |
d9898ee8 | 11567 | |
d9898ee8 | 11568 | |
d9898ee8 | 11569 | |
d9898ee8 | 11570 | |
d9898ee8 | 11571 | |
d9898ee8 | 11572 | |
d9898ee8 | 11573 | |
d9898ee8 | 11574 | |
d9898ee8 | 11575 | |
d9898ee8 | 11576 | |
d9898ee8 | 11577 | |
d9898ee8 | 11578 | |
d9898ee8 | 11579 | |
d9898ee8 | 11580 | |
d9898ee8 | 11581 | |
d9898ee8 | 11582 | |
d9898ee8 | 11583 | |
d9898ee8 | 11584 | |
d9898ee8 | 11585 | |
d9898ee8 | 11586 | |
d9898ee8 | 11587 | |
d9898ee8 | 11588 | |
d9898ee8 | 11589 | |
d9898ee8 | 11590 | |
d9898ee8 | 11591 | |
d9898ee8 | 11592 | |
d9898ee8 | 11593 | |
d9898ee8 | 11594 | |
d9898ee8 | 11595 | |
d9898ee8 | 11596 | |
d9898ee8 | 11597 | |
d9898ee8 | 11598 | |
d9898ee8 | 11599 | |
d9898ee8 | 11600 | |
d9898ee8 | 11601 | |
d9898ee8 | 11602 | |
d9898ee8 | 11603 | |
d9898ee8 | 11604 | |
d9898ee8 | 11605 | |
d9898ee8 | 11606 | |
d9898ee8 | 11607 | |
d9898ee8 | 11608 | |
d9898ee8 | 11609 | |
d9898ee8 | 11610 | |
d9898ee8 | 11611 | |
d9898ee8 | 11612 | |
d9898ee8 | 11613 | |
d9898ee8 | 11614 | |
d9898ee8 | 11615 | |
d9898ee8 | 11616 | |
d9898ee8 | 11617 | |
d9898ee8 | 11618 | |
d9898ee8 | 11619 | |
d9898ee8 | 11620 | |
d9898ee8 | 11621 | |
d9898ee8 | 11622 | |
d9898ee8 | 11623 | |
d9898ee8 | 11624 | |
d9898ee8 | 11625 | |
b0322a85 CE |
11626 | |
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
8d138742 CE |
11632 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
11633 | hardcode_action= | |
11634 | if test -n "$hardcode_libdir_flag_spec" || | |
11635 | test -n "$runpath_var" || | |
d50284c4 | 11636 | test yes = "$hardcode_automatic"; then |
d9898ee8 | 11637 | |
8d138742 | 11638 | # We can hardcode non-existent directories. |
d50284c4 | 11639 | if test no != "$hardcode_direct" && |
8d138742 CE |
11640 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11641 | # have to relink, otherwise we might link with an installed library | |
11642 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11643 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11644 | test no != "$hardcode_minus_L"; then | |
8d138742 CE |
11645 | # Linking always hardcodes the temporary library directory. |
11646 | hardcode_action=relink | |
11647 | else | |
11648 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11649 | hardcode_action=immediate | |
11650 | fi | |
11651 | else | |
11652 | # We cannot hardcode anything, or else we can only hardcode existing | |
11653 | # directories. | |
11654 | hardcode_action=unsupported | |
11655 | fi | |
b0322a85 | 11656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
8d138742 | 11657 | $as_echo "$hardcode_action" >&6; } |
d9898ee8 | 11658 | |
d50284c4 CE |
11659 | if test relink = "$hardcode_action" || |
11660 | test yes = "$inherit_rpath"; then | |
8d138742 CE |
11661 | # Fast installation is not supported |
11662 | enable_fast_install=no | |
d50284c4 CE |
11663 | elif test yes = "$shlibpath_overrides_runpath" || |
11664 | test no = "$enable_shared"; then | |
8d138742 CE |
11665 | # Fast installation is not necessary |
11666 | enable_fast_install=needless | |
11667 | fi | |
d9898ee8 | 11668 | |
d9898ee8 | 11669 | |
d9898ee8 | 11670 | |
d9898ee8 | 11671 | |
d9898ee8 | 11672 | |
d9898ee8 | 11673 | |
d50284c4 | 11674 | if test yes != "$enable_dlopen"; then |
8d138742 CE |
11675 | enable_dlopen=unknown |
11676 | enable_dlopen_self=unknown | |
11677 | enable_dlopen_self_static=unknown | |
11678 | else | |
11679 | lt_cv_dlopen=no | |
11680 | lt_cv_dlopen_libs= | |
d9898ee8 | 11681 | |
8d138742 CE |
11682 | case $host_os in |
11683 | beos*) | |
d50284c4 | 11684 | lt_cv_dlopen=load_add_on |
8d138742 CE |
11685 | lt_cv_dlopen_libs= |
11686 | lt_cv_dlopen_self=yes | |
11687 | ;; | |
d9898ee8 | 11688 | |
8d138742 | 11689 | mingw* | pw32* | cegcc*) |
d50284c4 | 11690 | lt_cv_dlopen=LoadLibrary |
8d138742 CE |
11691 | lt_cv_dlopen_libs= |
11692 | ;; | |
d9898ee8 | 11693 | |
8d138742 | 11694 | cygwin*) |
d50284c4 | 11695 | lt_cv_dlopen=dlopen |
8d138742 CE |
11696 | lt_cv_dlopen_libs= |
11697 | ;; | |
d9898ee8 | 11698 | |
8d138742 | 11699 | darwin*) |
d50284c4 | 11700 | # if libdl is installed we need to link against it |
b0322a85 | 11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11702 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11703 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11704 | $as_echo_n "(cached) " >&6 |
11705 | else | |
11706 | ac_check_lib_save_LIBS=$LIBS | |
11707 | LIBS="-ldl $LIBS" | |
b0322a85 | 11708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11709 | /* end confdefs.h. */ |
d9898ee8 | 11710 | |
8d138742 CE |
11711 | /* Override any GCC internal prototype to avoid an error. |
11712 | Use char because int might match the return type of a GCC | |
11713 | builtin and then its argument prototype would still apply. */ | |
11714 | #ifdef __cplusplus | |
11715 | extern "C" | |
11716 | #endif | |
11717 | char dlopen (); | |
11718 | int | |
11719 | main () | |
11720 | { | |
11721 | return dlopen (); | |
11722 | ; | |
11723 | return 0; | |
11724 | } | |
11725 | _ACEOF | |
b0322a85 | 11726 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 11727 | ac_cv_lib_dl_dlopen=yes |
d9898ee8 | 11728 | else |
b0322a85 | 11729 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 11730 | fi |
b0322a85 CE |
11731 | rm -f core conftest.err conftest.$ac_objext \ |
11732 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11733 | LIBS=$ac_check_lib_save_LIBS |
11734 | fi | |
b0322a85 | 11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11736 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11737 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11738 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11739 | else |
d9898ee8 | 11740 | |
d50284c4 | 11741 | lt_cv_dlopen=dyld |
8d138742 CE |
11742 | lt_cv_dlopen_libs= |
11743 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11744 | |
8d138742 | 11745 | fi |
d9898ee8 | 11746 | |
8d138742 | 11747 | ;; |
d9898ee8 | 11748 | |
d50284c4 CE |
11749 | tpf*) |
11750 | # Don't try to run any link tests for TPF. We know it's impossible | |
11751 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11752 | lt_cv_dlopen=dlopen | |
11753 | lt_cv_dlopen_libs= | |
11754 | lt_cv_dlopen_self=no | |
11755 | ;; | |
11756 | ||
8d138742 | 11757 | *) |
b0322a85 CE |
11758 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
11759 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11760 | lt_cv_dlopen=shl_load |
8d138742 | 11761 | else |
b0322a85 | 11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 11763 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 11764 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
11765 | $as_echo_n "(cached) " >&6 |
11766 | else | |
11767 | ac_check_lib_save_LIBS=$LIBS | |
11768 | LIBS="-ldld $LIBS" | |
b0322a85 | 11769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11770 | /* end confdefs.h. */ |
d9898ee8 | 11771 | |
8d138742 CE |
11772 | /* Override any GCC internal prototype to avoid an error. |
11773 | Use char because int might match the return type of a GCC | |
11774 | builtin and then its argument prototype would still apply. */ | |
11775 | #ifdef __cplusplus | |
11776 | extern "C" | |
11777 | #endif | |
11778 | char shl_load (); | |
11779 | int | |
11780 | main () | |
11781 | { | |
11782 | return shl_load (); | |
11783 | ; | |
11784 | return 0; | |
11785 | } | |
11786 | _ACEOF | |
b0322a85 | 11787 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11788 | ac_cv_lib_dld_shl_load=yes |
11789 | else | |
b0322a85 | 11790 | ac_cv_lib_dld_shl_load=no |
8d138742 | 11791 | fi |
b0322a85 CE |
11792 | rm -f core conftest.err conftest.$ac_objext \ |
11793 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11794 | LIBS=$ac_check_lib_save_LIBS |
11795 | fi | |
b0322a85 | 11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 11797 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 11798 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d50284c4 | 11799 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
8d138742 | 11800 | else |
b0322a85 CE |
11801 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
11802 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11803 | lt_cv_dlopen=dlopen |
8d138742 | 11804 | else |
b0322a85 | 11805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 11806 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 11807 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 CE |
11808 | $as_echo_n "(cached) " >&6 |
11809 | else | |
11810 | ac_check_lib_save_LIBS=$LIBS | |
11811 | LIBS="-ldl $LIBS" | |
b0322a85 | 11812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11813 | /* end confdefs.h. */ |
d9898ee8 | 11814 | |
8d138742 CE |
11815 | /* Override any GCC internal prototype to avoid an error. |
11816 | Use char because int might match the return type of a GCC | |
11817 | builtin and then its argument prototype would still apply. */ | |
11818 | #ifdef __cplusplus | |
11819 | extern "C" | |
11820 | #endif | |
11821 | char dlopen (); | |
11822 | int | |
11823 | main () | |
11824 | { | |
11825 | return dlopen (); | |
11826 | ; | |
11827 | return 0; | |
11828 | } | |
11829 | _ACEOF | |
b0322a85 | 11830 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11831 | ac_cv_lib_dl_dlopen=yes |
11832 | else | |
b0322a85 | 11833 | ac_cv_lib_dl_dlopen=no |
8d138742 | 11834 | fi |
b0322a85 CE |
11835 | rm -f core conftest.err conftest.$ac_objext \ |
11836 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11837 | LIBS=$ac_check_lib_save_LIBS |
11838 | fi | |
b0322a85 | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 11840 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 11841 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d50284c4 | 11842 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
8d138742 | 11843 | else |
b0322a85 | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 11845 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 11846 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
11847 | $as_echo_n "(cached) " >&6 |
11848 | else | |
11849 | ac_check_lib_save_LIBS=$LIBS | |
11850 | LIBS="-lsvld $LIBS" | |
b0322a85 | 11851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11852 | /* end confdefs.h. */ |
d9898ee8 | 11853 | |
8d138742 CE |
11854 | /* Override any GCC internal prototype to avoid an error. |
11855 | Use char because int might match the return type of a GCC | |
11856 | builtin and then its argument prototype would still apply. */ | |
11857 | #ifdef __cplusplus | |
11858 | extern "C" | |
11859 | #endif | |
11860 | char dlopen (); | |
11861 | int | |
11862 | main () | |
11863 | { | |
11864 | return dlopen (); | |
11865 | ; | |
11866 | return 0; | |
11867 | } | |
11868 | _ACEOF | |
b0322a85 | 11869 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11870 | ac_cv_lib_svld_dlopen=yes |
11871 | else | |
b0322a85 | 11872 | ac_cv_lib_svld_dlopen=no |
8d138742 | 11873 | fi |
b0322a85 CE |
11874 | rm -f core conftest.err conftest.$ac_objext \ |
11875 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11876 | LIBS=$ac_check_lib_save_LIBS |
11877 | fi | |
b0322a85 | 11878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 11879 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 11880 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d50284c4 | 11881 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
8d138742 | 11882 | else |
b0322a85 | 11883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
8d138742 | 11884 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
b0322a85 | 11885 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
8d138742 CE |
11886 | $as_echo_n "(cached) " >&6 |
11887 | else | |
11888 | ac_check_lib_save_LIBS=$LIBS | |
11889 | LIBS="-ldld $LIBS" | |
b0322a85 | 11890 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 11891 | /* end confdefs.h. */ |
d9898ee8 | 11892 | |
8d138742 CE |
11893 | /* Override any GCC internal prototype to avoid an error. |
11894 | Use char because int might match the return type of a GCC | |
11895 | builtin and then its argument prototype would still apply. */ | |
11896 | #ifdef __cplusplus | |
11897 | extern "C" | |
11898 | #endif | |
11899 | char dld_link (); | |
11900 | int | |
11901 | main () | |
11902 | { | |
11903 | return dld_link (); | |
11904 | ; | |
11905 | return 0; | |
11906 | } | |
11907 | _ACEOF | |
b0322a85 | 11908 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
11909 | ac_cv_lib_dld_dld_link=yes |
11910 | else | |
b0322a85 | 11911 | ac_cv_lib_dld_dld_link=no |
8d138742 | 11912 | fi |
b0322a85 CE |
11913 | rm -f core conftest.err conftest.$ac_objext \ |
11914 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
11915 | LIBS=$ac_check_lib_save_LIBS |
11916 | fi | |
b0322a85 | 11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
8d138742 | 11918 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
b0322a85 | 11919 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
d50284c4 | 11920 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11921 | fi |
d9898ee8 | 11922 | |
d9898ee8 | 11923 | |
8d138742 | 11924 | fi |
d9898ee8 | 11925 | |
d9898ee8 | 11926 | |
8d138742 | 11927 | fi |
d9898ee8 | 11928 | |
d9898ee8 | 11929 | |
8d138742 | 11930 | fi |
d9898ee8 | 11931 | |
d9898ee8 | 11932 | |
8d138742 | 11933 | fi |
d9898ee8 | 11934 | |
d9898ee8 | 11935 | |
8d138742 | 11936 | fi |
ac40fd9e | 11937 | |
8d138742 CE |
11938 | ;; |
11939 | esac | |
d9898ee8 | 11940 | |
d50284c4 | 11941 | if test no = "$lt_cv_dlopen"; then |
8d138742 | 11942 | enable_dlopen=no |
d50284c4 CE |
11943 | else |
11944 | enable_dlopen=yes | |
8d138742 | 11945 | fi |
d9898ee8 | 11946 | |
8d138742 CE |
11947 | case $lt_cv_dlopen in |
11948 | dlopen) | |
d50284c4 CE |
11949 | save_CPPFLAGS=$CPPFLAGS |
11950 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11951 | |
d50284c4 | 11952 | save_LDFLAGS=$LDFLAGS |
8d138742 | 11953 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11954 | |
d50284c4 | 11955 | save_LIBS=$LIBS |
8d138742 | 11956 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11957 | |
b0322a85 | 11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
8d138742 | 11959 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
b0322a85 | 11960 | if ${lt_cv_dlopen_self+:} false; then : |
8d138742 CE |
11961 | $as_echo_n "(cached) " >&6 |
11962 | else | |
d50284c4 | 11963 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
11964 | lt_cv_dlopen_self=cross |
11965 | else | |
11966 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11967 | lt_status=$lt_dlunknown | |
11968 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 11969 | #line $LINENO "configure" |
8d138742 | 11970 | #include "confdefs.h" |
d9898ee8 | 11971 | |
8d138742 CE |
11972 | #if HAVE_DLFCN_H |
11973 | #include <dlfcn.h> | |
11974 | #endif | |
d9898ee8 | 11975 | |
8d138742 | 11976 | #include <stdio.h> |
d9898ee8 | 11977 | |
8d138742 CE |
11978 | #ifdef RTLD_GLOBAL |
11979 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11980 | #else | |
11981 | # ifdef DL_GLOBAL | |
11982 | # define LT_DLGLOBAL DL_GLOBAL | |
11983 | # else | |
11984 | # define LT_DLGLOBAL 0 | |
11985 | # endif | |
11986 | #endif | |
d9898ee8 | 11987 | |
8d138742 CE |
11988 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11989 | find out it does not work in some platform. */ | |
11990 | #ifndef LT_DLLAZY_OR_NOW | |
11991 | # ifdef RTLD_LAZY | |
11992 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11993 | # else | |
11994 | # ifdef DL_LAZY | |
11995 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11996 | # else | |
11997 | # ifdef RTLD_NOW | |
11998 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11999 | # else | |
12000 | # ifdef DL_NOW | |
12001 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12002 | # else | |
12003 | # define LT_DLLAZY_OR_NOW 0 | |
12004 | # endif | |
12005 | # endif | |
12006 | # endif | |
12007 | # endif | |
12008 | #endif | |
d9898ee8 | 12009 | |
d50284c4 | 12010 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12011 | correspondingly for the symbols needed. */ |
d50284c4 | 12012 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12013 | int fnord () __attribute__((visibility("default"))); |
12014 | #endif | |
12015 | ||
12016 | int fnord () { return 42; } | |
8d138742 CE |
12017 | int main () |
12018 | { | |
12019 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12020 | int status = $lt_dlunknown; | |
d9898ee8 | 12021 | |
8d138742 CE |
12022 | if (self) |
12023 | { | |
12024 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12025 | else |
12026 | { | |
12027 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12028 | else puts (dlerror ()); | |
12029 | } | |
12030 | /* dlclose (self); */ | |
8d138742 CE |
12031 | } |
12032 | else | |
12033 | puts (dlerror ()); | |
d9898ee8 | 12034 | |
8d138742 CE |
12035 | return status; |
12036 | } | |
12037 | _LT_EOF | |
b0322a85 | 12038 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12039 | (eval $ac_link) 2>&5 |
12040 | ac_status=$? | |
b0322a85 | 12041 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12042 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12043 | (./conftest; exit; ) >&5 2>/dev/null |
12044 | lt_status=$? | |
12045 | case x$lt_status in | |
12046 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12047 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12048 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12049 | esac | |
12050 | else : | |
12051 | # compilation failed | |
12052 | lt_cv_dlopen_self=no | |
12053 | fi | |
d9898ee8 | 12054 | fi |
8d138742 CE |
12055 | rm -fr conftest* |
12056 | ||
d9898ee8 | 12057 | |
12058 | fi | |
b0322a85 | 12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
8d138742 | 12060 | $as_echo "$lt_cv_dlopen_self" >&6; } |
d9898ee8 | 12061 | |
d50284c4 | 12062 | if test yes = "$lt_cv_dlopen_self"; then |
8d138742 | 12063 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
b0322a85 | 12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
8d138742 | 12065 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
b0322a85 | 12066 | if ${lt_cv_dlopen_self_static+:} false; then : |
8d138742 | 12067 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12068 | else |
d50284c4 | 12069 | if test yes = "$cross_compiling"; then : |
8d138742 CE |
12070 | lt_cv_dlopen_self_static=cross |
12071 | else | |
12072 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12073 | lt_status=$lt_dlunknown | |
12074 | cat > conftest.$ac_ext <<_LT_EOF | |
b0322a85 | 12075 | #line $LINENO "configure" |
8d138742 | 12076 | #include "confdefs.h" |
d9898ee8 | 12077 | |
8d138742 CE |
12078 | #if HAVE_DLFCN_H |
12079 | #include <dlfcn.h> | |
12080 | #endif | |
d9898ee8 | 12081 | |
8d138742 | 12082 | #include <stdio.h> |
d9898ee8 | 12083 | |
8d138742 CE |
12084 | #ifdef RTLD_GLOBAL |
12085 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12086 | #else | |
12087 | # ifdef DL_GLOBAL | |
12088 | # define LT_DLGLOBAL DL_GLOBAL | |
12089 | # else | |
12090 | # define LT_DLGLOBAL 0 | |
12091 | # endif | |
12092 | #endif | |
d9898ee8 | 12093 | |
8d138742 CE |
12094 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12095 | find out it does not work in some platform. */ | |
12096 | #ifndef LT_DLLAZY_OR_NOW | |
12097 | # ifdef RTLD_LAZY | |
12098 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12099 | # else | |
12100 | # ifdef DL_LAZY | |
12101 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12102 | # else | |
12103 | # ifdef RTLD_NOW | |
12104 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12105 | # else | |
12106 | # ifdef DL_NOW | |
12107 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12108 | # else | |
12109 | # define LT_DLLAZY_OR_NOW 0 | |
12110 | # endif | |
12111 | # endif | |
12112 | # endif | |
12113 | # endif | |
12114 | #endif | |
d9898ee8 | 12115 | |
d50284c4 | 12116 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 12117 | correspondingly for the symbols needed. */ |
d50284c4 | 12118 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
12119 | int fnord () __attribute__((visibility("default"))); |
12120 | #endif | |
12121 | ||
12122 | int fnord () { return 42; } | |
8d138742 CE |
12123 | int main () |
12124 | { | |
12125 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12126 | int status = $lt_dlunknown; | |
12127 | ||
12128 | if (self) | |
12129 | { | |
12130 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
b0322a85 CE |
12131 | else |
12132 | { | |
12133 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12134 | else puts (dlerror ()); | |
12135 | } | |
8d138742 CE |
12136 | /* dlclose (self); */ |
12137 | } | |
12138 | else | |
12139 | puts (dlerror ()); | |
d9898ee8 | 12140 | |
8d138742 CE |
12141 | return status; |
12142 | } | |
12143 | _LT_EOF | |
b0322a85 | 12144 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12145 | (eval $ac_link) 2>&5 |
12146 | ac_status=$? | |
b0322a85 | 12147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 12148 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
8d138742 CE |
12149 | (./conftest; exit; ) >&5 2>/dev/null |
12150 | lt_status=$? | |
12151 | case x$lt_status in | |
12152 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12153 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12154 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12155 | esac | |
12156 | else : | |
12157 | # compilation failed | |
12158 | lt_cv_dlopen_self_static=no | |
12159 | fi | |
d9898ee8 | 12160 | fi |
8d138742 | 12161 | rm -fr conftest* |
d9898ee8 | 12162 | |
12163 | ||
d9898ee8 | 12164 | fi |
b0322a85 | 12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
8d138742 CE |
12166 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
12167 | fi | |
d9898ee8 | 12168 | |
d50284c4 CE |
12169 | CPPFLAGS=$save_CPPFLAGS |
12170 | LDFLAGS=$save_LDFLAGS | |
12171 | LIBS=$save_LIBS | |
8d138742 CE |
12172 | ;; |
12173 | esac | |
d9898ee8 | 12174 | |
8d138742 CE |
12175 | case $lt_cv_dlopen_self in |
12176 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12177 | *) enable_dlopen_self=unknown ;; | |
d9898ee8 | 12178 | esac |
d9898ee8 | 12179 | |
8d138742 CE |
12180 | case $lt_cv_dlopen_self_static in |
12181 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12182 | *) enable_dlopen_self_static=unknown ;; | |
12183 | esac | |
12184 | fi | |
12185 | ||
12186 | ||
12187 | ||
12188 | ||
12189 | ||
12190 | ||
12191 | ||
12192 | ||
12193 | ||
12194 | ||
12195 | ||
12196 | ||
12197 | ||
12198 | ||
12199 | ||
12200 | ||
12201 | ||
12202 | striplib= | |
12203 | old_striplib= | |
b0322a85 | 12204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
8d138742 CE |
12205 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
12206 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12207 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12208 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
b0322a85 | 12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
12210 | $as_echo "yes" >&6; } |
12211 | else | |
12212 | # FIXME - insert some real tests, host_os isn't really good enough | |
d9898ee8 | 12213 | case $host_os in |
8d138742 | 12214 | darwin*) |
d50284c4 | 12215 | if test -n "$STRIP"; then |
8d138742 CE |
12216 | striplib="$STRIP -x" |
12217 | old_striplib="$STRIP -S" | |
b0322a85 | 12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 CE |
12219 | $as_echo "yes" >&6; } |
12220 | else | |
b0322a85 | 12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 12222 | $as_echo "no" >&6; } |
d9898ee8 | 12223 | fi |
12224 | ;; | |
8d138742 | 12225 | *) |
b0322a85 | 12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 12227 | $as_echo "no" >&6; } |
d9898ee8 | 12228 | ;; |
12229 | esac | |
8d138742 | 12230 | fi |
d9898ee8 | 12231 | |
d9898ee8 | 12232 | |
8d138742 CE |
12233 | |
12234 | ||
12235 | ||
12236 | ||
12237 | ||
12238 | ||
12239 | ||
12240 | ||
12241 | ||
12242 | ||
d50284c4 | 12243 | # Report what library types will actually be built |
b0322a85 | 12244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
8d138742 | 12245 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
b0322a85 | 12246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
8d138742 CE |
12247 | $as_echo "$can_build_shared" >&6; } |
12248 | ||
b0322a85 | 12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
8d138742 | 12250 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
d50284c4 | 12251 | test no = "$can_build_shared" && enable_shared=no |
8d138742 CE |
12252 | |
12253 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12254 | # are all built from PIC. | |
12255 | case $host_os in | |
12256 | aix3*) | |
d50284c4 | 12257 | test yes = "$enable_shared" && enable_static=no |
8d138742 CE |
12258 | if test -n "$RANLIB"; then |
12259 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12260 | postinstall_cmds='$RANLIB $lib' | |
d9898ee8 | 12261 | fi |
8d138742 | 12262 | ;; |
d9898ee8 | 12263 | |
8d138742 | 12264 | aix[4-9]*) |
d50284c4 CE |
12265 | if test ia64 != "$host_cpu"; then |
12266 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12267 | yes,aix,yes) ;; # shared object as lib.so file only | |
12268 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12269 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12270 | esac | |
8d138742 CE |
12271 | fi |
12272 | ;; | |
12273 | esac | |
b0322a85 | 12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
8d138742 | 12275 | $as_echo "$enable_shared" >&6; } |
d9898ee8 | 12276 | |
b0322a85 | 12277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
8d138742 CE |
12278 | $as_echo_n "checking whether to build static libraries... " >&6; } |
12279 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 12280 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 | 12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
8d138742 | 12282 | $as_echo "$enable_static" >&6; } |
d9898ee8 | 12283 | |
d9898ee8 | 12284 | |
d9898ee8 | 12285 | |
d9898ee8 | 12286 | |
8d138742 CE |
12287 | fi |
12288 | ac_ext=c | |
12289 | ac_cpp='$CPP $CPPFLAGS' | |
12290 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12291 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12292 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12293 | |
d50284c4 | 12294 | CC=$lt_save_CC |
d9898ee8 | 12295 | |
d9898ee8 | 12296 | |
d9898ee8 | 12297 | |
d9898ee8 | 12298 | |
d9898ee8 | 12299 | |
d9898ee8 | 12300 | |
d9898ee8 | 12301 | |
d9898ee8 | 12302 | |
d9898ee8 | 12303 | |
d9898ee8 | 12304 | |
d9898ee8 | 12305 | |
d9898ee8 | 12306 | |
d9898ee8 | 12307 | |
b0322a85 CE |
12308 | |
12309 | ||
8d138742 | 12310 | ac_config_commands="$ac_config_commands libtool" |
d9898ee8 | 12311 | |
d9898ee8 | 12312 | |
d9898ee8 | 12313 | |
d9898ee8 | 12314 | |
8d138742 | 12315 | # Only expand once: |
d9898ee8 | 12316 | |
d9898ee8 | 12317 | |
d50284c4 CE |
12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5 |
12319 | $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; } | |
b0322a85 | 12320 | if ${libltdl_cv_shlibext+:} false; then : |
8d138742 CE |
12321 | $as_echo_n "(cached) " >&6 |
12322 | else | |
d9898ee8 | 12323 | |
8d138742 CE |
12324 | module=yes |
12325 | eval libltdl_cv_shlibext=$shrext_cmds | |
b0322a85 CE |
12326 | module=no |
12327 | eval libltdl_cv_shrext=$shrext_cmds | |
8d138742 CE |
12328 | |
12329 | fi | |
b0322a85 | 12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
8d138742 CE |
12331 | $as_echo "$libltdl_cv_shlibext" >&6; } |
12332 | if test -n "$libltdl_cv_shlibext"; then | |
12333 | ||
12334 | cat >>confdefs.h <<_ACEOF | |
12335 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
d9898ee8 | 12336 | _ACEOF |
8d138742 | 12337 | |
b0322a85 CE |
12338 | fi |
12339 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | |
12340 | ||
12341 | cat >>confdefs.h <<_ACEOF | |
12342 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12343 | _ACEOF | |
12344 | ||
d50284c4 CE |
12345 | fi |
12346 | if test -n "$shared_archive_member_spec"; then | |
12347 | ||
12348 | cat >>confdefs.h <<_ACEOF | |
12349 | #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)" | |
12350 | _ACEOF | |
12351 | ||
8d138742 CE |
12352 | fi |
12353 | ||
d50284c4 CE |
12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5 |
12355 | $as_echo_n "checking what variable specifies run-time module search path... " >&6; } | |
b0322a85 | 12356 | if ${lt_cv_module_path_var+:} false; then : |
8d138742 CE |
12357 | $as_echo_n "(cached) " >&6 |
12358 | else | |
d50284c4 | 12359 | lt_cv_module_path_var=$shlibpath_var |
8d138742 | 12360 | fi |
b0322a85 | 12361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
8d138742 CE |
12362 | $as_echo "$lt_cv_module_path_var" >&6; } |
12363 | if test -n "$lt_cv_module_path_var"; then | |
12364 | ||
12365 | cat >>confdefs.h <<_ACEOF | |
12366 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12367 | _ACEOF | |
12368 | ||
12369 | fi | |
12370 | ||
b0322a85 | 12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
8d138742 | 12372 | $as_echo_n "checking for the default library search path... " >&6; } |
b0322a85 | 12373 | if ${lt_cv_sys_dlsearch_path+:} false; then : |
8d138742 CE |
12374 | $as_echo_n "(cached) " >&6 |
12375 | else | |
d50284c4 | 12376 | lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec |
8d138742 | 12377 | fi |
b0322a85 | 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
8d138742 CE |
12379 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
12380 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12381 | sys_dlsearch_path= | |
12382 | for dir in $lt_cv_sys_dlsearch_path; do | |
12383 | if test -z "$sys_dlsearch_path"; then | |
d50284c4 | 12384 | sys_dlsearch_path=$dir |
8d138742 | 12385 | else |
d50284c4 | 12386 | sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir |
8d138742 CE |
12387 | fi |
12388 | done | |
12389 | ||
12390 | cat >>confdefs.h <<_ACEOF | |
12391 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12392 | _ACEOF | |
12393 | ||
12394 | fi | |
12395 | ||
12396 | ||
12397 | LT_DLLOADERS= | |
12398 | ||
12399 | ||
12400 | ac_ext=c | |
12401 | ac_cpp='$CPP $CPPFLAGS' | |
12402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12405 | ||
d50284c4 | 12406 | lt_dlload_save_LIBS=$LIBS |
8d138742 CE |
12407 | |
12408 | LIBADD_DLOPEN= | |
b0322a85 | 12409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
8d138742 | 12410 | $as_echo_n "checking for library containing dlopen... " >&6; } |
b0322a85 | 12411 | if ${ac_cv_search_dlopen+:} false; then : |
8d138742 CE |
12412 | $as_echo_n "(cached) " >&6 |
12413 | else | |
12414 | ac_func_search_save_LIBS=$LIBS | |
b0322a85 | 12415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12416 | /* end confdefs.h. */ |
12417 | ||
12418 | /* Override any GCC internal prototype to avoid an error. | |
12419 | Use char because int might match the return type of a GCC | |
12420 | builtin and then its argument prototype would still apply. */ | |
12421 | #ifdef __cplusplus | |
12422 | extern "C" | |
12423 | #endif | |
12424 | char dlopen (); | |
12425 | int | |
12426 | main () | |
12427 | { | |
12428 | return dlopen (); | |
12429 | ; | |
12430 | return 0; | |
12431 | } | |
12432 | _ACEOF | |
12433 | for ac_lib in '' dl; do | |
12434 | if test -z "$ac_lib"; then | |
12435 | ac_res="none required" | |
12436 | else | |
12437 | ac_res=-l$ac_lib | |
12438 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12439 | fi | |
b0322a85 | 12440 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 12441 | ac_cv_search_dlopen=$ac_res |
d9898ee8 | 12442 | fi |
b0322a85 CE |
12443 | rm -f core conftest.err conftest.$ac_objext \ |
12444 | conftest$ac_exeext | |
12445 | if ${ac_cv_search_dlopen+:} false; then : | |
8d138742 CE |
12446 | break |
12447 | fi | |
12448 | done | |
b0322a85 CE |
12449 | if ${ac_cv_search_dlopen+:} false; then : |
12450 | ||
8d138742 CE |
12451 | else |
12452 | ac_cv_search_dlopen=no | |
12453 | fi | |
12454 | rm conftest.$ac_ext | |
12455 | LIBS=$ac_func_search_save_LIBS | |
12456 | fi | |
b0322a85 | 12457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
8d138742 CE |
12458 | $as_echo "$ac_cv_search_dlopen" >&6; } |
12459 | ac_res=$ac_cv_search_dlopen | |
b0322a85 | 12460 | if test "$ac_res" != no; then : |
8d138742 | 12461 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
d9898ee8 | 12462 | |
b0322a85 | 12463 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
8d138742 | 12464 | |
d50284c4 CE |
12465 | if test "$ac_cv_search_dlopen" != "none required"; then |
12466 | LIBADD_DLOPEN=-ldl | |
8d138742 | 12467 | fi |
d50284c4 | 12468 | libltdl_cv_lib_dl_dlopen=yes |
8d138742 CE |
12469 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12470 | else | |
b0322a85 | 12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12472 | /* end confdefs.h. */ |
12473 | #if HAVE_DLFCN_H | |
12474 | # include <dlfcn.h> | |
12475 | #endif | |
d9898ee8 | 12476 | |
8d138742 CE |
12477 | int |
12478 | main () | |
12479 | { | |
12480 | dlopen(0, 0); | |
12481 | ; | |
12482 | return 0; | |
12483 | } | |
d9898ee8 | 12484 | _ACEOF |
b0322a85 | 12485 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 12486 | |
b0322a85 | 12487 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
8d138742 | 12488 | |
d50284c4 | 12489 | libltdl_cv_func_dlopen=yes |
8d138742 | 12490 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
d9898ee8 | 12491 | else |
b0322a85 | 12492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
8d138742 | 12493 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
b0322a85 | 12494 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
8d138742 CE |
12495 | $as_echo_n "(cached) " >&6 |
12496 | else | |
12497 | ac_check_lib_save_LIBS=$LIBS | |
12498 | LIBS="-lsvld $LIBS" | |
b0322a85 | 12499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
12500 | /* end confdefs.h. */ |
12501 | ||
12502 | /* Override any GCC internal prototype to avoid an error. | |
12503 | Use char because int might match the return type of a GCC | |
12504 | builtin and then its argument prototype would still apply. */ | |
12505 | #ifdef __cplusplus | |
12506 | extern "C" | |
12507 | #endif | |
12508 | char dlopen (); | |
12509 | int | |
12510 | main () | |
12511 | { | |
12512 | return dlopen (); | |
12513 | ; | |
12514 | return 0; | |
12515 | } | |
12516 | _ACEOF | |
b0322a85 | 12517 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12518 | ac_cv_lib_svld_dlopen=yes |
12519 | else | |
b0322a85 | 12520 | ac_cv_lib_svld_dlopen=no |
d9898ee8 | 12521 | fi |
b0322a85 CE |
12522 | rm -f core conftest.err conftest.$ac_objext \ |
12523 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12524 | LIBS=$ac_check_lib_save_LIBS |
12525 | fi | |
b0322a85 | 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
8d138742 | 12527 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
b0322a85 | 12528 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d9898ee8 | 12529 | |
b0322a85 | 12530 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
d9898ee8 | 12531 | |
d50284c4 | 12532 | LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes |
8d138742 CE |
12533 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
12534 | fi | |
d9898ee8 | 12535 | |
8d138742 | 12536 | fi |
b0322a85 CE |
12537 | rm -f core conftest.err conftest.$ac_objext \ |
12538 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 12539 | fi |
d9898ee8 | 12540 | |
d50284c4 | 12541 | if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" |
8d138742 | 12542 | then |
d50284c4 | 12543 | lt_save_LIBS=$LIBS |
8d138742 | 12544 | LIBS="$LIBS $LIBADD_DLOPEN" |
b0322a85 CE |
12545 | for ac_func in dlerror |
12546 | do : | |
12547 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12548 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
8d138742 | 12549 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12550 | #define HAVE_DLERROR 1 |
8d138742 | 12551 | _ACEOF |
d9898ee8 | 12552 | |
8d138742 CE |
12553 | fi |
12554 | done | |
d9898ee8 | 12555 | |
d50284c4 | 12556 | LIBS=$lt_save_LIBS |
8d138742 | 12557 | fi |
d9898ee8 | 12558 | |
d9898ee8 | 12559 | |
8d138742 | 12560 | LIBADD_SHL_LOAD= |
b0322a85 CE |
12561 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
12562 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d9898ee8 | 12563 | |
b0322a85 | 12564 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
d9898ee8 | 12565 | |
8d138742 CE |
12566 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12567 | else | |
b0322a85 | 12568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
8d138742 | 12569 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
b0322a85 | 12570 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
8d138742 CE |
12571 | $as_echo_n "(cached) " >&6 |
12572 | else | |
12573 | ac_check_lib_save_LIBS=$LIBS | |
12574 | LIBS="-ldld $LIBS" | |
b0322a85 | 12575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 12576 | /* end confdefs.h. */ |
d9898ee8 | 12577 | |
8d138742 CE |
12578 | /* Override any GCC internal prototype to avoid an error. |
12579 | Use char because int might match the return type of a GCC | |
12580 | builtin and then its argument prototype would still apply. */ | |
12581 | #ifdef __cplusplus | |
12582 | extern "C" | |
12583 | #endif | |
12584 | char shl_load (); | |
12585 | int | |
12586 | main () | |
12587 | { | |
12588 | return shl_load (); | |
12589 | ; | |
12590 | return 0; | |
12591 | } | |
12592 | _ACEOF | |
b0322a85 | 12593 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
12594 | ac_cv_lib_dld_shl_load=yes |
12595 | else | |
b0322a85 | 12596 | ac_cv_lib_dld_shl_load=no |
8d138742 | 12597 | fi |
b0322a85 CE |
12598 | rm -f core conftest.err conftest.$ac_objext \ |
12599 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
12600 | LIBS=$ac_check_lib_save_LIBS |
12601 | fi | |
b0322a85 | 12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
8d138742 | 12603 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
b0322a85 | 12604 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
d9898ee8 | 12605 | |
b0322a85 | 12606 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
d9898ee8 | 12607 | |
8d138742 | 12608 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
d50284c4 | 12609 | LIBADD_SHL_LOAD=-ldld |
8d138742 | 12610 | fi |
d9898ee8 | 12611 | |
8d138742 | 12612 | fi |
d9898ee8 | 12613 | |
d9898ee8 | 12614 | |
d9898ee8 | 12615 | |
8d138742 CE |
12616 | case $host_os in |
12617 | darwin[1567].*) | |
12618 | # We only want this for pre-Mac OS X 10.4. | |
b0322a85 CE |
12619 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
12620 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
12621 | ||
12622 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | |
12623 | ||
12624 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | |
12625 | fi | |
12626 | ||
12627 | ;; | |
12628 | beos*) | |
12629 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12630 | ;; | |
d50284c4 | 12631 | cygwin* | mingw* | pw32*) |
b0322a85 CE |
12632 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
12633 | " | |
12634 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12635 | ac_have_decl=1 | |
8d138742 | 12636 | else |
b0322a85 CE |
12637 | ac_have_decl=0 |
12638 | fi | |
d9898ee8 | 12639 | |
b0322a85 CE |
12640 | cat >>confdefs.h <<_ACEOF |
12641 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | |
12642 | _ACEOF | |
d9898ee8 | 12643 | |
b0322a85 CE |
12644 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12645 | ;; | |
12646 | esac | |
d9898ee8 | 12647 | |
b0322a85 CE |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12649 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12650 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12651 | $as_echo_n "(cached) " >&6 | |
12652 | else | |
12653 | ac_check_lib_save_LIBS=$LIBS | |
12654 | LIBS="-ldld $LIBS" | |
12655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12656 | /* end confdefs.h. */ | |
d9898ee8 | 12657 | |
8d138742 CE |
12658 | /* Override any GCC internal prototype to avoid an error. |
12659 | Use char because int might match the return type of a GCC | |
12660 | builtin and then its argument prototype would still apply. */ | |
12661 | #ifdef __cplusplus | |
12662 | extern "C" | |
12663 | #endif | |
b0322a85 | 12664 | char dld_link (); |
8d138742 CE |
12665 | int |
12666 | main () | |
12667 | { | |
b0322a85 | 12668 | return dld_link (); |
8d138742 CE |
12669 | ; |
12670 | return 0; | |
12671 | } | |
12672 | _ACEOF | |
b0322a85 CE |
12673 | if ac_fn_c_try_link "$LINENO"; then : |
12674 | ac_cv_lib_dld_dld_link=yes | |
8d138742 | 12675 | else |
b0322a85 | 12676 | ac_cv_lib_dld_dld_link=no |
8d138742 | 12677 | fi |
b0322a85 CE |
12678 | rm -f core conftest.err conftest.$ac_objext \ |
12679 | conftest$ac_exeext conftest.$ac_ext | |
12680 | LIBS=$ac_check_lib_save_LIBS | |
8d138742 | 12681 | fi |
b0322a85 CE |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
12683 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12684 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
d9898ee8 | 12685 | |
b0322a85 | 12686 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
d9898ee8 | 12687 | |
8d138742 CE |
12688 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
12689 | fi | |
d9898ee8 | 12690 | |
d9898ee8 | 12691 | |
d9898ee8 | 12692 | |
d9898ee8 | 12693 | |
8d138742 CE |
12694 | LT_DLPREOPEN= |
12695 | if test -n "$LT_DLLOADERS" | |
12696 | then | |
12697 | for lt_loader in $LT_DLLOADERS; do | |
12698 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12699 | done | |
d9898ee8 | 12700 | |
b0322a85 | 12701 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
d9898ee8 | 12702 | |
8d138742 | 12703 | fi |
d9898ee8 | 12704 | |
ac40fd9e | 12705 | |
8d138742 | 12706 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
d9898ee8 | 12707 | |
d9898ee8 | 12708 | |
d50284c4 | 12709 | LIBS=$lt_dlload_save_LIBS |
8d138742 CE |
12710 | ac_ext=c |
12711 | ac_cpp='$CPP $CPPFLAGS' | |
12712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 12715 | |
d9898ee8 | 12716 | |
b0322a85 | 12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
8d138742 | 12718 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
b0322a85 | 12719 | if ${lt_cv_sys_symbol_underscore+:} false; then : |
8d138742 CE |
12720 | $as_echo_n "(cached) " >&6 |
12721 | else | |
12722 | lt_cv_sys_symbol_underscore=no | |
12723 | cat > conftest.$ac_ext <<_LT_EOF | |
12724 | void nm_test_func(){} | |
12725 | int main(){nm_test_func;return 0;} | |
12726 | _LT_EOF | |
b0322a85 | 12727 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
12728 | (eval $ac_compile) 2>&5 |
12729 | ac_status=$? | |
b0322a85 CE |
12730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12731 | test $ac_status = 0; }; then | |
8d138742 CE |
12732 | # Now try to grab the symbols. |
12733 | ac_nlist=conftest.nm | |
b0322a85 | 12734 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
8d138742 CE |
12735 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
12736 | ac_status=$? | |
b0322a85 CE |
12737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
12738 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
8d138742 CE |
12739 | # See whether the symbols have a leading underscore. |
12740 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12741 | lt_cv_sys_symbol_underscore=yes | |
12742 | else | |
12743 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12744 | : | |
12745 | else | |
12746 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12747 | fi | |
12748 | fi | |
12749 | else | |
12750 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12751 | fi | |
d9898ee8 | 12752 | else |
8d138742 CE |
12753 | echo "configure: failed program was:" >&5 |
12754 | cat conftest.c >&5 | |
d9898ee8 | 12755 | fi |
8d138742 | 12756 | rm -rf conftest* |
d9898ee8 | 12757 | |
d9898ee8 | 12758 | fi |
b0322a85 | 12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
8d138742 CE |
12760 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
12761 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
d9898ee8 | 12762 | |
d9898ee8 | 12763 | |
d50284c4 CE |
12764 | if test yes = "$lt_cv_sys_symbol_underscore"; then |
12765 | if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then | |
12766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
8d138742 | 12767 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
b0322a85 | 12768 | if ${libltdl_cv_need_uscore+:} false; then : |
8d138742 | 12769 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12770 | else |
8d138742 | 12771 | libltdl_cv_need_uscore=unknown |
d50284c4 CE |
12772 | dlsym_uscore_save_LIBS=$LIBS |
12773 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12774 | libname=conftmod # stay within 8.3 filename limits! | |
12775 | cat >$libname.$ac_ext <<_LT_EOF | |
b0322a85 | 12776 | #line $LINENO "configure" |
8d138742 | 12777 | #include "confdefs.h" |
d50284c4 CE |
12778 | /* When -fvisibility=hidden is used, assume the code has been annotated |
12779 | correspondingly for the symbols needed. */ | |
12780 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12781 | int fnord () __attribute__((visibility("default"))); | |
12782 | #endif | |
12783 | int fnord () { return 42; } | |
12784 | _LT_EOF | |
d9898ee8 | 12785 | |
d50284c4 CE |
12786 | # ltfn_module_cmds module_cmds |
12787 | # Execute tilde-delimited MODULE_CMDS with environment primed for | |
12788 | # $module_cmds or $archive_cmds type content. | |
12789 | ltfn_module_cmds () | |
12790 | {( # subshell avoids polluting parent global environment | |
12791 | module_cmds_save_ifs=$IFS; IFS='~' | |
12792 | for cmd in $1; do | |
12793 | IFS=$module_cmds_save_ifs | |
12794 | libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext | |
12795 | rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=. | |
12796 | major=; versuffix=; verstring=; deplibs= | |
12797 | ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag= | |
12798 | eval $cmd | |
12799 | done | |
12800 | IFS=$module_cmds_save_ifs | |
12801 | )} | |
12802 | ||
12803 | # Compile a loadable module using libtool macro expansion results. | |
12804 | $CC $pic_flag -c $libname.$ac_ext | |
12805 | ltfn_module_cmds "${module_cmds:-$archive_cmds}" | |
12806 | ||
12807 | # Try to fetch fnord with dlsym(). | |
12808 | libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2 | |
12809 | cat >conftest.$ac_ext <<_LT_EOF | |
12810 | #line $LINENO "configure" | |
12811 | #include "confdefs.h" | |
8d138742 CE |
12812 | #if HAVE_DLFCN_H |
12813 | #include <dlfcn.h> | |
12814 | #endif | |
8d138742 | 12815 | #include <stdio.h> |
d50284c4 | 12816 | #ifndef RTLD_GLOBAL |
8d138742 | 12817 | # ifdef DL_GLOBAL |
d50284c4 | 12818 | # define RTLD_GLOBAL DL_GLOBAL |
8d138742 | 12819 | # else |
d50284c4 | 12820 | # define RTLD_GLOBAL 0 |
8d138742 CE |
12821 | # endif |
12822 | #endif | |
d50284c4 CE |
12823 | #ifndef RTLD_NOW |
12824 | # ifdef DL_NOW | |
12825 | # define RTLD_NOW DL_NOW | |
8d138742 | 12826 | # else |
d50284c4 | 12827 | # define RTLD_NOW 0 |
8d138742 CE |
12828 | # endif |
12829 | #endif | |
d50284c4 CE |
12830 | int main () { |
12831 | void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW); | |
12832 | int status = $libltdl_dlunknown; | |
12833 | if (handle) { | |
12834 | if (dlsym (handle, "fnord")) | |
12835 | status = $libltdl_dlnouscore; | |
12836 | else { | |
12837 | if (dlsym (handle, "_fnord")) | |
12838 | status = $libltdl_dluscore; | |
b0322a85 | 12839 | else |
d50284c4 | 12840 | puts (dlerror ()); |
8d138742 | 12841 | } |
d50284c4 CE |
12842 | dlclose (handle); |
12843 | } else | |
8d138742 | 12844 | puts (dlerror ()); |
8d138742 CE |
12845 | return status; |
12846 | } | |
12847 | _LT_EOF | |
d50284c4 | 12848 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 CE |
12849 | (eval $ac_link) 2>&5 |
12850 | ac_status=$? | |
b0322a85 | 12851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 CE |
12852 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
12853 | (./conftest; exit; ) >&5 2>/dev/null | |
12854 | libltdl_status=$? | |
12855 | case x$libltdl_status in | |
12856 | x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;; | |
12857 | x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;; | |
12858 | x*) libltdl_cv_need_uscore=unknown ;; | |
12859 | esac | |
12860 | fi | |
12861 | rm -rf conftest* $libname* | |
12862 | LIBS=$dlsym_uscore_save_LIBS | |
d9898ee8 | 12863 | |
8d138742 | 12864 | fi |
b0322a85 | 12865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
8d138742 CE |
12866 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
12867 | fi | |
12868 | fi | |
d9898ee8 | 12869 | |
d50284c4 | 12870 | if test yes = "$libltdl_cv_need_uscore"; then |
d9898ee8 | 12871 | |
b0322a85 | 12872 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
d9898ee8 | 12873 | |
8d138742 | 12874 | fi |
d9898ee8 | 12875 | |
b0322a85 | 12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
8d138742 | 12877 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
b0322a85 | 12878 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
8d138742 CE |
12879 | $as_echo_n "(cached) " >&6 |
12880 | else | |
12881 | # PORTME does your system automatically load deplibs for dlopen? | |
12882 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12883 | # For now, we just catch OSes we know something about -- in the | |
12884 | # future, we'll try test this programmatically. | |
12885 | lt_cv_sys_dlopen_deplibs=unknown | |
12886 | case $host_os in | |
12887 | aix3*|aix4.1.*|aix4.2.*) | |
12888 | # Unknown whether this is true for these versions of AIX, but | |
d50284c4 | 12889 | # we want this 'case' here to explicitly catch those versions. |
8d138742 CE |
12890 | lt_cv_sys_dlopen_deplibs=unknown |
12891 | ;; | |
12892 | aix[4-9]*) | |
12893 | lt_cv_sys_dlopen_deplibs=yes | |
12894 | ;; | |
12895 | amigaos*) | |
12896 | case $host_cpu in | |
12897 | powerpc) | |
12898 | lt_cv_sys_dlopen_deplibs=no | |
12899 | ;; | |
12900 | esac | |
12901 | ;; | |
d50284c4 CE |
12902 | bitrig*) |
12903 | lt_cv_sys_dlopen_deplibs=yes | |
12904 | ;; | |
8d138742 CE |
12905 | darwin*) |
12906 | # Assuming the user has installed a libdl from somewhere, this is true | |
12907 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12908 | lt_cv_sys_dlopen_deplibs=yes | |
12909 | ;; | |
12910 | freebsd* | dragonfly*) | |
12911 | lt_cv_sys_dlopen_deplibs=yes | |
12912 | ;; | |
b0322a85 | 12913 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
12914 | # GNU and its variants, using gnu ld.so (Glibc) |
12915 | lt_cv_sys_dlopen_deplibs=yes | |
12916 | ;; | |
12917 | hpux10*|hpux11*) | |
12918 | lt_cv_sys_dlopen_deplibs=yes | |
12919 | ;; | |
12920 | interix*) | |
12921 | lt_cv_sys_dlopen_deplibs=yes | |
12922 | ;; | |
12923 | irix[12345]*|irix6.[01]*) | |
12924 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12925 | # know how it worked for any of those versions. | |
12926 | lt_cv_sys_dlopen_deplibs=unknown | |
12927 | ;; | |
12928 | irix*) | |
12929 | # The case above catches anything before 6.2, and it's known that | |
12930 | # at 6.2 and later dlopen does load deplibs. | |
12931 | lt_cv_sys_dlopen_deplibs=yes | |
12932 | ;; | |
12933 | netbsd*) | |
12934 | lt_cv_sys_dlopen_deplibs=yes | |
12935 | ;; | |
12936 | openbsd*) | |
12937 | lt_cv_sys_dlopen_deplibs=yes | |
12938 | ;; | |
12939 | osf[1234]*) | |
12940 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12941 | # it did *not* use an RPATH in a shared library to find objects the | |
d50284c4 | 12942 | # library depends on, so we explicitly say 'no'. |
8d138742 CE |
12943 | lt_cv_sys_dlopen_deplibs=no |
12944 | ;; | |
12945 | osf5.0|osf5.0a|osf5.1) | |
12946 | # dlopen *does* load deplibs and with the right loader patch applied | |
12947 | # it even uses RPATH in a shared library to search for shared objects | |
12948 | # that the library depends on, but there's no easy way to know if that | |
12949 | # patch is installed. Since this is the case, all we can really | |
12950 | # say is unknown -- it depends on the patch being installed. If | |
d50284c4 | 12951 | # it is, this changes to 'yes'. Without it, it would be 'no'. |
8d138742 CE |
12952 | lt_cv_sys_dlopen_deplibs=unknown |
12953 | ;; | |
12954 | osf*) | |
12955 | # the two cases above should catch all versions of osf <= 5.1. Read | |
12956 | # the comments above for what we know about them. | |
12957 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
d50284c4 | 12958 | # is used to find them so we can finally say 'yes'. |
8d138742 CE |
12959 | lt_cv_sys_dlopen_deplibs=yes |
12960 | ;; | |
12961 | qnx*) | |
12962 | lt_cv_sys_dlopen_deplibs=yes | |
12963 | ;; | |
12964 | solaris*) | |
12965 | lt_cv_sys_dlopen_deplibs=yes | |
12966 | ;; | |
12967 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12968 | libltdl_cv_sys_dlopen_deplibs=yes | |
12969 | ;; | |
12970 | esac | |
d9898ee8 | 12971 | |
8d138742 | 12972 | fi |
b0322a85 | 12973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
8d138742 | 12974 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
d50284c4 | 12975 | if test yes != "$lt_cv_sys_dlopen_deplibs"; then |
d9898ee8 | 12976 | |
b0322a85 | 12977 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
d9898ee8 | 12978 | |
8d138742 | 12979 | fi |
d9898ee8 | 12980 | |
d9898ee8 | 12981 | |
8d138742 | 12982 | for ac_header in argz.h |
b0322a85 CE |
12983 | do : |
12984 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
12985 | " | |
12986 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
8d138742 | 12987 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12988 | #define HAVE_ARGZ_H 1 |
8d138742 | 12989 | _ACEOF |
d9898ee8 | 12990 | |
8d138742 | 12991 | fi |
d9898ee8 | 12992 | |
8d138742 | 12993 | done |
d9898ee8 | 12994 | |
d9898ee8 | 12995 | |
b0322a85 | 12996 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
8d138742 CE |
12997 | # include <argz.h> |
12998 | #endif | |
b0322a85 CE |
12999 | " |
13000 | if test "x$ac_cv_type_error_t" = xyes; then : | |
d9898ee8 | 13001 | |
b0322a85 CE |
13002 | cat >>confdefs.h <<_ACEOF |
13003 | #define HAVE_ERROR_T 1 | |
8d138742 | 13004 | _ACEOF |
d9898ee8 | 13005 | |
b0322a85 | 13006 | |
8d138742 | 13007 | else |
d9898ee8 | 13008 | |
b0322a85 | 13009 | $as_echo "#define error_t int" >>confdefs.h |
d9898ee8 | 13010 | |
d9898ee8 | 13011 | |
b0322a85 | 13012 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
d9898ee8 | 13013 | |
8d138742 | 13014 | fi |
d9898ee8 | 13015 | |
d9898ee8 | 13016 | |
d50284c4 | 13017 | LT_ARGZ_H= |
b0322a85 CE |
13018 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
13019 | argz_next argz_stringify | |
13020 | do : | |
13021 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13022 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13023 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13024 | cat >>confdefs.h <<_ACEOF | |
13025 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8d138742 | 13026 | _ACEOF |
d9898ee8 | 13027 | |
8d138742 | 13028 | else |
d50284c4 | 13029 | LT_ARGZ_H=lt__argz.h; |
d9898ee8 | 13030 | |
d50284c4 | 13031 | _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
d9898ee8 | 13032 | |
b0322a85 CE |
13033 | fi |
13034 | done | |
d9898ee8 | 13035 | |
d9898ee8 | 13036 | |
d50284c4 | 13037 | if test -z "$LT_ARGZ_H"; then : |
b0322a85 CE |
13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
13039 | $as_echo_n "checking if argz actually works... " >&6; } | |
13040 | if ${lt_cv_sys_argz_works+:} false; then : | |
13041 | $as_echo_n "(cached) " >&6 | |
13042 | else | |
13043 | case $host_os in #( | |
13044 | *cygwin*) | |
13045 | lt_cv_sys_argz_works=no | |
d50284c4 | 13046 | if test no != "$cross_compiling"; then |
b0322a85 CE |
13047 | lt_cv_sys_argz_works="guessing no" |
13048 | else | |
13049 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13050 | save_IFS=$IFS | |
13051 | IFS=-. | |
13052 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13053 | IFS=$save_IFS | |
13054 | lt_os_major=${2-0} | |
13055 | lt_os_minor=${3-0} | |
13056 | lt_os_micro=${4-0} | |
d50284c4 CE |
13057 | if test 1 -lt "$lt_os_major" \ |
13058 | || { test 1 -eq "$lt_os_major" \ | |
13059 | && { test 5 -lt "$lt_os_minor" \ | |
13060 | || { test 5 -eq "$lt_os_minor" \ | |
13061 | && test 24 -lt "$lt_os_micro"; }; }; }; then | |
b0322a85 CE |
13062 | lt_cv_sys_argz_works=yes |
13063 | fi | |
13064 | fi | |
13065 | ;; #( | |
13066 | *) lt_cv_sys_argz_works=yes ;; | |
13067 | esac | |
8d138742 | 13068 | fi |
b0322a85 CE |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
13070 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
d50284c4 | 13071 | if test yes = "$lt_cv_sys_argz_works"; then : |
d9898ee8 | 13072 | |
b0322a85 | 13073 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
d9898ee8 | 13074 | |
b0322a85 | 13075 | else |
d50284c4 | 13076 | LT_ARGZ_H=lt__argz.h |
d9898ee8 | 13077 | |
d9898ee8 | 13078 | |
d50284c4 | 13079 | _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext" |
d9898ee8 | 13080 | |
b0322a85 CE |
13081 | fi |
13082 | fi | |
d9898ee8 | 13083 | |
d9898ee8 | 13084 | |
d9898ee8 | 13085 | |
b0322a85 CE |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13087 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13088 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
8d138742 CE |
13089 | $as_echo_n "(cached) " >&6 |
13090 | else | |
b0322a85 CE |
13091 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13092 | libltdl_cv_preloaded_symbols=yes | |
13093 | else | |
13094 | libltdl_cv_preloaded_symbols=no | |
13095 | fi | |
d9898ee8 | 13096 | |
b0322a85 CE |
13097 | fi |
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | |
13099 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
d50284c4 | 13100 | if test yes = "$libltdl_cv_preloaded_symbols"; then |
d9898ee8 | 13101 | |
b0322a85 | 13102 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
d9898ee8 | 13103 | |
8d138742 | 13104 | fi |
d9898ee8 | 13105 | |
d9898ee8 | 13106 | |
d9898ee8 | 13107 | |
8d138742 | 13108 | # Set options |
d9898ee8 | 13109 | |
d9898ee8 | 13110 | |
d9898ee8 | 13111 | |
d9898ee8 | 13112 | |
d9898ee8 | 13113 | |
d9898ee8 | 13114 | |
d9898ee8 | 13115 | |
d9898ee8 | 13116 | |
d9898ee8 | 13117 | |
d9898ee8 | 13118 | |
d9898ee8 | 13119 | |
13120 | ||
8d138742 | 13121 | # Check whether --with-included_ltdl was given. |
b0322a85 | 13122 | if test "${with_included_ltdl+set}" = set; then : |
8d138742 | 13123 | withval=$with_included_ltdl; |
d9898ee8 | 13124 | fi |
13125 | ||
13126 | ||
d50284c4 | 13127 | if test yes != "$with_included_ltdl"; then |
8d138742 CE |
13128 | # We are not being forced to use the included libltdl sources, so |
13129 | # decide whether there is a useful installed version we can use. | |
b0322a85 | 13130 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
d9898ee8 | 13131 | |
b0322a85 CE |
13132 | " |
13133 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13134 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
8d138742 | 13135 | #include <ltdl.h> |
b0322a85 CE |
13136 | " |
13137 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
8d138742 | 13139 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
b0322a85 | 13140 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
8d138742 CE |
13141 | $as_echo_n "(cached) " >&6 |
13142 | else | |
13143 | ac_check_lib_save_LIBS=$LIBS | |
13144 | LIBS="-lltdl $LIBS" | |
b0322a85 | 13145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
13146 | /* end confdefs.h. */ |
13147 | ||
13148 | /* Override any GCC internal prototype to avoid an error. | |
13149 | Use char because int might match the return type of a GCC | |
13150 | builtin and then its argument prototype would still apply. */ | |
13151 | #ifdef __cplusplus | |
13152 | extern "C" | |
13153 | #endif | |
13154 | char lt_dladvise_preload (); | |
13155 | int | |
13156 | main () | |
13157 | { | |
13158 | return lt_dladvise_preload (); | |
13159 | ; | |
13160 | return 0; | |
13161 | } | |
13162 | _ACEOF | |
b0322a85 | 13163 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
13164 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
13165 | else | |
b0322a85 | 13166 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
8d138742 | 13167 | fi |
b0322a85 CE |
13168 | rm -f core conftest.err conftest.$ac_objext \ |
13169 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
13170 | LIBS=$ac_check_lib_save_LIBS |
13171 | fi | |
b0322a85 | 13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
8d138742 | 13173 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
b0322a85 | 13174 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
8d138742 CE |
13175 | with_included_ltdl=no |
13176 | else | |
13177 | with_included_ltdl=yes | |
13178 | fi | |
d9898ee8 | 13179 | |
8d138742 CE |
13180 | else |
13181 | with_included_ltdl=yes | |
13182 | fi | |
d9898ee8 | 13183 | |
8d138742 CE |
13184 | else |
13185 | with_included_ltdl=yes | |
13186 | fi | |
d9898ee8 | 13187 | |
13188 | ||
8d138742 | 13189 | fi |
d9898ee8 | 13190 | |
d9898ee8 | 13191 | |
13192 | ||
d9898ee8 | 13193 | |
b0322a85 CE |
13194 | |
13195 | ||
13196 | ||
13197 | ||
8d138742 | 13198 | # Check whether --with-ltdl_include was given. |
b0322a85 | 13199 | if test "${with_ltdl_include+set}" = set; then : |
8d138742 | 13200 | withval=$with_ltdl_include; |
d9898ee8 | 13201 | fi |
d9898ee8 | 13202 | |
8d138742 CE |
13203 | |
13204 | if test -n "$with_ltdl_include"; then | |
13205 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13206 | else | |
d50284c4 | 13207 | as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5 |
8d138742 | 13208 | fi |
d9898ee8 | 13209 | else |
8d138742 | 13210 | with_ltdl_include=no |
d9898ee8 | 13211 | fi |
13212 | ||
8d138742 CE |
13213 | |
13214 | # Check whether --with-ltdl_lib was given. | |
b0322a85 | 13215 | if test "${with_ltdl_lib+set}" = set; then : |
8d138742 | 13216 | withval=$with_ltdl_lib; |
d9898ee8 | 13217 | fi |
13218 | ||
d9898ee8 | 13219 | |
8d138742 CE |
13220 | if test -n "$with_ltdl_lib"; then |
13221 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13222 | else | |
d50284c4 | 13223 | as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5 |
8d138742 CE |
13224 | fi |
13225 | else | |
13226 | with_ltdl_lib=no | |
13227 | fi | |
d9898ee8 | 13228 | |
8d138742 CE |
13229 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
13230 | ,yes,no,no,) | |
13231 | case $enable_ltdl_convenience in | |
b0322a85 | 13232 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
8d138742 CE |
13233 | "") enable_ltdl_convenience=yes |
13234 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13235 | esac | |
d50284c4 | 13236 | LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
8d138742 | 13237 | LTDLDEPS=$LIBLTDL |
d50284c4 | 13238 | LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
d9898ee8 | 13239 | |
d9898ee8 | 13240 | |
d9898ee8 | 13241 | |
d9898ee8 | 13242 | |
d9898ee8 | 13243 | |
8d138742 | 13244 | # For backwards non-gettext consistent compatibility... |
d50284c4 | 13245 | INCLTDL=$LTDLINCL |
d9898ee8 | 13246 | |
d9898ee8 | 13247 | |
8d138742 CE |
13248 | ;; |
13249 | ,no,no,no,) | |
13250 | # If the included ltdl is not to be used, then use the | |
13251 | # preinstalled libltdl we found. | |
d9898ee8 | 13252 | |
b0322a85 | 13253 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
d9898ee8 | 13254 | |
8d138742 CE |
13255 | LIBLTDL=-lltdl |
13256 | LTDLDEPS= | |
13257 | LTDLINCL= | |
d9898ee8 | 13258 | ;; |
8d138742 | 13259 | ,no*,no,*) |
d50284c4 | 13260 | as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5 |
d9898ee8 | 13261 | ;; |
8d138742 CE |
13262 | *) with_included_ltdl=no |
13263 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13264 | LTDLDEPS= | |
d50284c4 | 13265 | LTDLINCL=-I$with_ltdl_include |
8d138742 CE |
13266 | ;; |
13267 | esac | |
d50284c4 | 13268 | INCLTDL=$LTDLINCL |
d9898ee8 | 13269 | |
8d138742 | 13270 | # Report our decision... |
b0322a85 | 13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
8d138742 | 13272 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
b0322a85 | 13273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
8d138742 | 13274 | $as_echo "$LTDLINCL" >&6; } |
b0322a85 | 13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
8d138742 | 13276 | $as_echo_n "checking where to find libltdl library... " >&6; } |
b0322a85 | 13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
8d138742 | 13278 | $as_echo "$LIBLTDL" >&6; } |
d9898ee8 | 13279 | |
d9898ee8 | 13280 | |
d9898ee8 | 13281 | |
8d138742 | 13282 | # Check whether --enable-ltdl-install was given. |
b0322a85 | 13283 | if test "${enable_ltdl_install+set}" = set; then : |
8d138742 CE |
13284 | enableval=$enable_ltdl_install; |
13285 | fi | |
d9898ee8 | 13286 | |
d9898ee8 | 13287 | |
d50284c4 | 13288 | case ,$enable_ltdl_install,$enable_ltdl_convenience in |
8d138742 CE |
13289 | *yes*) ;; |
13290 | *) enable_ltdl_convenience=yes ;; | |
13291 | esac | |
d9898ee8 | 13292 | |
d50284c4 | 13293 | if test no != "${enable_ltdl_install-no}"; then |
8d138742 CE |
13294 | INSTALL_LTDL_TRUE= |
13295 | INSTALL_LTDL_FALSE='#' | |
13296 | else | |
13297 | INSTALL_LTDL_TRUE='#' | |
13298 | INSTALL_LTDL_FALSE= | |
13299 | fi | |
d9898ee8 | 13300 | |
d50284c4 | 13301 | if test no != "${enable_ltdl_convenience-no}"; then |
8d138742 CE |
13302 | CONVENIENCE_LTDL_TRUE= |
13303 | CONVENIENCE_LTDL_FALSE='#' | |
13304 | else | |
13305 | CONVENIENCE_LTDL_TRUE='#' | |
13306 | CONVENIENCE_LTDL_FALSE= | |
13307 | fi | |
ac40fd9e | 13308 | |
d9898ee8 | 13309 | |
d9898ee8 | 13310 | |
8d138742 | 13311 | subdirs="$subdirs libltdl" |
d9898ee8 | 13312 | |
d9898ee8 | 13313 | |
d9898ee8 | 13314 | |
d9898ee8 | 13315 | |
8d138742 CE |
13316 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13317 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13318 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13319 | # definitions required by ltdl.c. | |
13320 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
d9898ee8 | 13321 | |
d9898ee8 | 13322 | |
d9898ee8 | 13323 | |
b0322a85 CE |
13324 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13325 | do : | |
13326 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13327 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13328 | " | |
13329 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13330 | cat >>confdefs.h <<_ACEOF | |
13331 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13332 | _ACEOF | |
d9898ee8 | 13333 | |
b0322a85 | 13334 | fi |
d9898ee8 | 13335 | |
b0322a85 | 13336 | done |
d9898ee8 | 13337 | |
d9898ee8 | 13338 | |
b0322a85 CE |
13339 | for ac_func in closedir opendir readdir |
13340 | do : | |
13341 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13342 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13343 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13344 | cat >>confdefs.h <<_ACEOF | |
13345 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
8d138742 | 13346 | _ACEOF |
d9898ee8 | 13347 | |
d9898ee8 | 13348 | else |
d9898ee8 | 13349 | |
d9898ee8 | 13350 | |
b0322a85 CE |
13351 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
13352 | ||
d9898ee8 | 13353 | fi |
b0322a85 CE |
13354 | done |
13355 | ||
13356 | for ac_func in strlcat strlcpy | |
13357 | do : | |
13358 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13359 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13360 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
8d138742 | 13361 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 13362 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
8d138742 | 13363 | _ACEOF |
d9898ee8 | 13364 | |
b0322a85 CE |
13365 | else |
13366 | ||
d9898ee8 | 13367 | |
b0322a85 CE |
13368 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
13369 | ||
13370 | fi | |
d9898ee8 | 13371 | done |
d9898ee8 | 13372 | |
d9898ee8 | 13373 | |
d9898ee8 | 13374 | |
b0322a85 CE |
13375 | cat >>confdefs.h <<_ACEOF |
13376 | #define LT_LIBEXT "$libext" | |
13377 | _ACEOF | |
d9898ee8 | 13378 | |
d9898ee8 | 13379 | |
b0322a85 CE |
13380 | name= |
13381 | eval "lt_libprefix=\"$libname_spec\"" | |
13382 | ||
13383 | cat >>confdefs.h <<_ACEOF | |
13384 | #define LT_LIBPREFIX "$lt_libprefix" | |
d9898ee8 | 13385 | _ACEOF |
8d138742 | 13386 | |
8d138742 | 13387 | |
b0322a85 CE |
13388 | name=ltdl |
13389 | eval "LTDLOPEN=\"$libname_spec\"" | |
d9898ee8 | 13390 | |
d9898ee8 | 13391 | |
d9898ee8 | 13392 | |
d9898ee8 | 13393 | |
d9898ee8 | 13394 | |
d9898ee8 | 13395 | |
d9898ee8 | 13396 | |
d9898ee8 | 13397 | |
8d138742 | 13398 | # Only expand once: |
d9898ee8 | 13399 | |
d9898ee8 | 13400 | |
d9898ee8 | 13401 | |
d9898ee8 | 13402 | |
8d138742 CE |
13403 | for ac_prog in perl5 perl |
13404 | do | |
13405 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13406 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13408 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13409 | if ${ac_cv_path_PERL+:} false; then : |
8d138742 CE |
13410 | $as_echo_n "(cached) " >&6 |
13411 | else | |
13412 | case $PERL in | |
13413 | [\\/]* | ?:[\\/]*) | |
13414 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
13415 | ;; | |
13416 | *) | |
13417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13418 | for as_dir in $LPATH | |
13419 | do | |
13420 | IFS=$as_save_IFS | |
13421 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13422 | for ac_exec_ext in '' $ac_executable_extensions; do |
13423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13424 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
13426 | break 2 |
13427 | fi | |
13428 | done | |
b0322a85 | 13429 | done |
8d138742 | 13430 | IFS=$as_save_IFS |
d9898ee8 | 13431 | |
8d138742 CE |
13432 | ;; |
13433 | esac | |
13434 | fi | |
13435 | PERL=$ac_cv_path_PERL | |
13436 | if test -n "$PERL"; then | |
b0322a85 | 13437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
8d138742 CE |
13438 | $as_echo "$PERL" >&6; } |
13439 | else | |
b0322a85 | 13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13441 | $as_echo "no" >&6; } |
13442 | fi | |
d9898ee8 | 13443 | |
d9898ee8 | 13444 | |
8d138742 CE |
13445 | test -n "$PERL" && break |
13446 | done | |
13447 | test -n "$PERL" || PERL="perl" | |
d9898ee8 | 13448 | |
8d138742 CE |
13449 | for ac_prog in courier-config |
13450 | do | |
13451 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13452 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13454 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13455 | if ${ac_cv_path_COURIERCONFIG+:} false; then : |
8d138742 CE |
13456 | $as_echo_n "(cached) " >&6 |
13457 | else | |
13458 | case $COURIERCONFIG in | |
13459 | [\\/]* | ?:[\\/]*) | |
13460 | ac_cv_path_COURIERCONFIG="$COURIERCONFIG" # Let the user override the test with a path. | |
13461 | ;; | |
13462 | *) | |
13463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13464 | for as_dir in $LPATH | |
13465 | do | |
13466 | IFS=$as_save_IFS | |
13467 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13468 | for ac_exec_ext in '' $ac_executable_extensions; do |
13469 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13470 | ac_cv_path_COURIERCONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
13472 | break 2 |
13473 | fi | |
13474 | done | |
b0322a85 | 13475 | done |
8d138742 | 13476 | IFS=$as_save_IFS |
d9898ee8 | 13477 | |
8d138742 CE |
13478 | ;; |
13479 | esac | |
13480 | fi | |
13481 | COURIERCONFIG=$ac_cv_path_COURIERCONFIG | |
13482 | if test -n "$COURIERCONFIG"; then | |
b0322a85 | 13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5 |
8d138742 CE |
13484 | $as_echo "$COURIERCONFIG" >&6; } |
13485 | else | |
b0322a85 | 13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13487 | $as_echo "no" >&6; } |
13488 | fi | |
d9898ee8 | 13489 | |
d9898ee8 | 13490 | |
8d138742 CE |
13491 | test -n "$COURIERCONFIG" && break |
13492 | done | |
13493 | test -n "$COURIERCONFIG" || COURIERCONFIG="courier-config" | |
d9898ee8 | 13494 | |
d9898ee8 | 13495 | |
b0322a85 CE |
13496 | ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" |
13497 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13498 | : | |
13499 | else | |
13500 | as_fn_error $? "Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5 | |
13501 | fi | |
13502 | ||
13503 | ||
13504 | ||
8d138742 CE |
13505 | if test "$PERL" = "perl" |
13506 | then | |
b0322a85 | 13507 | as_fn_error $? "Perl is required" "$LINENO" 5 |
8d138742 | 13508 | fi |
d9898ee8 | 13509 | |
8d138742 CE |
13510 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13511 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13512 | eval "prefix=$prefix" | |
13513 | eval "exec_prefix=$exec_prefix" | |
13514 | eval "sysconfdir=$sysconfdir" | |
13515 | eval "bindir=$bindir" | |
13516 | eval "sbindir=$sbindir" | |
13517 | eval "localstatedir=$localstatedir" | |
13518 | eval "libexecdir=$libexecdir" | |
b0322a85 CE |
13519 | eval "datarootdir=$datarootdir" |
13520 | eval "datedir=$datadir" | |
d9898ee8 | 13521 | |
8d138742 CE |
13522 | for ac_prog in expect |
13523 | do | |
13524 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13525 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 13526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13527 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13528 | if ${ac_cv_path_EXPECT+:} false; then : |
8d138742 CE |
13529 | $as_echo_n "(cached) " >&6 |
13530 | else | |
13531 | case $EXPECT in | |
13532 | [\\/]* | ?:[\\/]*) | |
13533 | ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. | |
13534 | ;; | |
13535 | *) | |
13536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13537 | for as_dir in $LPATH | |
13538 | do | |
13539 | IFS=$as_save_IFS | |
13540 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13541 | for ac_exec_ext in '' $ac_executable_extensions; do |
13542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13543 | ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 13545 | break 2 |
d9898ee8 | 13546 | fi |
8d138742 | 13547 | done |
b0322a85 | 13548 | done |
8d138742 | 13549 | IFS=$as_save_IFS |
d9898ee8 | 13550 | |
8d138742 CE |
13551 | ;; |
13552 | esac | |
13553 | fi | |
13554 | EXPECT=$ac_cv_path_EXPECT | |
13555 | if test -n "$EXPECT"; then | |
b0322a85 | 13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8d138742 CE |
13557 | $as_echo "$EXPECT" >&6; } |
13558 | else | |
b0322a85 | 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13560 | $as_echo "no" >&6; } |
13561 | fi | |
d9898ee8 | 13562 | |
d9898ee8 | 13563 | |
8d138742 CE |
13564 | test -n "$EXPECT" && break |
13565 | done | |
13566 | test -n "$EXPECT" || EXPECT="expect" | |
d9898ee8 | 13567 | |
8d138742 CE |
13568 | |
13569 | if test "$EXPECT" = "expect" | |
13570 | then | |
b0322a85 | 13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 |
8d138742 | 13572 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
b0322a85 | 13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5 |
8d138742 | 13574 | $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;} |
b0322a85 | 13575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5 |
8d138742 | 13576 | $as_echo "$as_me: WARNING: in webmail" >&2;} |
b0322a85 | 13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5 |
8d138742 CE |
13578 | $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;} |
13579 | sleep 5 | |
13580 | else | |
13581 | ||
13582 | cat >>confdefs.h <<_ACEOF | |
13583 | #define HAVE_EXPECT 1 | |
13584 | _ACEOF | |
13585 | ||
13586 | fi | |
13587 | ||
13588 | for ac_prog in passwd | |
13589 | do | |
13590 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13591 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 13592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 13593 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 13594 | if ${ac_cv_path_PASSWD+:} false; then : |
8d138742 CE |
13595 | $as_echo_n "(cached) " >&6 |
13596 | else | |
13597 | case $PASSWD in | |
13598 | [\\/]* | ?:[\\/]*) | |
13599 | ac_cv_path_PASSWD="$PASSWD" # Let the user override the test with a path. | |
13600 | ;; | |
13601 | *) | |
13602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13603 | for as_dir in $LPATH | |
13604 | do | |
13605 | IFS=$as_save_IFS | |
13606 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13607 | for ac_exec_ext in '' $ac_executable_extensions; do |
13608 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 13609 | ac_cv_path_PASSWD="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 13610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 13611 | break 2 |
d9898ee8 | 13612 | fi |
8d138742 | 13613 | done |
b0322a85 | 13614 | done |
8d138742 CE |
13615 | IFS=$as_save_IFS |
13616 | ||
d9898ee8 | 13617 | ;; |
13618 | esac | |
8d138742 CE |
13619 | fi |
13620 | PASSWD=$ac_cv_path_PASSWD | |
13621 | if test -n "$PASSWD"; then | |
b0322a85 | 13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5 |
8d138742 CE |
13623 | $as_echo "$PASSWD" >&6; } |
13624 | else | |
b0322a85 | 13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
13626 | $as_echo "no" >&6; } |
13627 | fi | |
d9898ee8 | 13628 | |
ac40fd9e | 13629 | |
8d138742 CE |
13630 | test -n "$PASSWD" && break |
13631 | done | |
13632 | test -n "$PASSWD" || PASSWD="passwd" | |
d9898ee8 | 13633 | |
d9898ee8 | 13634 | |
d9898ee8 | 13635 | |
8d138742 CE |
13636 | if test "$GCC" = "yes" |
13637 | then | |
13638 | CFLAGS="$CFLAGS -Wall" | |
13639 | fi | |
d9898ee8 | 13640 | |
b0322a85 | 13641 | CFLAGS="$CFLAGS -Ilibs -I${srcdir}/libs" |
d9898ee8 | 13642 | |
b0322a85 | 13643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5 |
8d138742 | 13644 | $as_echo_n "checking whether -lm is needed for floor... " >&6; } |
b0322a85 | 13645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13646 | /* end confdefs.h. */ |
d9898ee8 | 13647 | |
8d138742 CE |
13648 | /* Override any GCC internal prototype to avoid an error. |
13649 | Use char because int might match the return type of a GCC | |
13650 | builtin and then its argument prototype would still apply. */ | |
13651 | #ifdef __cplusplus | |
13652 | extern "C" | |
13653 | #endif | |
13654 | char floor (); | |
13655 | int | |
13656 | main () | |
13657 | { | |
13658 | return floor (); | |
13659 | ; | |
13660 | return 0; | |
13661 | } | |
13662 | _ACEOF | |
b0322a85 CE |
13663 | if ac_fn_c_try_link "$LINENO"; then : |
13664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8d138742 CE |
13665 | $as_echo "no" >&6; } |
13666 | else | |
b0322a85 CE |
13667 | LIBM="-lm" |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8d138742 CE |
13669 | $as_echo "yes" >&6; } |
13670 | fi | |
b0322a85 CE |
13671 | rm -f core conftest.err conftest.$ac_objext \ |
13672 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13673 | |
d9898ee8 | 13674 | |
8d138742 | 13675 | # Check whether --with-pkgconfdir was given. |
b0322a85 | 13676 | if test "${with_pkgconfdir+set}" = set; then : |
8d138742 CE |
13677 | withval=$with_pkgconfdir; pkgconfdir="$withval" |
13678 | else | |
13679 | pkgconfdir="$sysconfdir/authlib" | |
13680 | fi | |
d9898ee8 | 13681 | |
d9898ee8 | 13682 | |
8d138742 CE |
13683 | saveLIBS="$LIBS" |
13684 | NETLIBS="" | |
13685 | USENSL=no | |
ac40fd9e | 13686 | |
b0322a85 | 13687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
8d138742 | 13688 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
b0322a85 | 13689 | if ${ac_cv_lib_socket_socket+:} false; then : |
8d138742 CE |
13690 | $as_echo_n "(cached) " >&6 |
13691 | else | |
13692 | ac_check_lib_save_LIBS=$LIBS | |
13693 | LIBS="-lsocket $LIBS" | |
b0322a85 | 13694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 13695 | /* end confdefs.h. */ |
d9898ee8 | 13696 | |
8d138742 CE |
13697 | /* Override any GCC internal prototype to avoid an error. |
13698 | Use char because int might match the return type of a GCC | |
13699 | builtin and then its argument prototype would still apply. */ | |
13700 | #ifdef __cplusplus | |
13701 | extern "C" | |
13702 | #endif | |
13703 | char socket (); | |
13704 | int | |
13705 | main () | |
13706 | { | |
13707 | return socket (); | |
13708 | ; | |
13709 | return 0; | |
13710 | } | |
13711 | _ACEOF | |
b0322a85 | 13712 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
13713 | ac_cv_lib_socket_socket=yes |
13714 | else | |
b0322a85 | 13715 | ac_cv_lib_socket_socket=no |
8d138742 | 13716 | fi |
b0322a85 CE |
13717 | rm -f core conftest.err conftest.$ac_objext \ |
13718 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13719 | LIBS=$ac_check_lib_save_LIBS |
13720 | fi | |
b0322a85 | 13721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
8d138742 | 13722 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
b0322a85 | 13723 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
d9898ee8 | 13724 | result=yes |
13725 | else | |
13726 | result=no | |
13727 | fi | |
13728 | ||
13729 | if test $result = yes; then | |
13730 | NETLIBS="-lsocket" | |
13731 | else | |
b0322a85 | 13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
8d138742 | 13733 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
b0322a85 | 13734 | if ${ac_cv_lib_socket_socket+:} false; then : |
8d138742 | 13735 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13736 | else |
13737 | ac_check_lib_save_LIBS=$LIBS | |
13738 | LIBS="-lsocket -lnsl $LIBS" | |
b0322a85 | 13739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13740 | /* end confdefs.h. */ |
13741 | ||
dd184caf | 13742 | /* Override any GCC internal prototype to avoid an error. |
13743 | Use char because int might match the return type of a GCC | |
13744 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13745 | #ifdef __cplusplus |
13746 | extern "C" | |
13747 | #endif | |
d9898ee8 | 13748 | char socket (); |
13749 | int | |
13750 | main () | |
13751 | { | |
dd184caf | 13752 | return socket (); |
d9898ee8 | 13753 | ; |
13754 | return 0; | |
13755 | } | |
13756 | _ACEOF | |
b0322a85 | 13757 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13758 | ac_cv_lib_socket_socket=yes |
13759 | else | |
b0322a85 | 13760 | ac_cv_lib_socket_socket=no |
d9898ee8 | 13761 | fi |
b0322a85 CE |
13762 | rm -f core conftest.err conftest.$ac_objext \ |
13763 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13764 | LIBS=$ac_check_lib_save_LIBS |
13765 | fi | |
b0322a85 | 13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
8d138742 | 13767 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
b0322a85 | 13768 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
d9898ee8 | 13769 | result=yes |
13770 | else | |
13771 | result=no | |
13772 | fi | |
13773 | ||
13774 | if test $result = yes; then | |
13775 | NETLIBS = "-lsocket -lnsl" | |
13776 | USENSL=yes | |
13777 | else | |
b0322a85 | 13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
8d138742 | 13779 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
b0322a85 | 13780 | if ${ac_cv_lib_socket_connect+:} false; then : |
8d138742 | 13781 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13782 | else |
13783 | ac_check_lib_save_LIBS=$LIBS | |
13784 | LIBS="-lsocket $LIBS" | |
b0322a85 | 13785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13786 | /* end confdefs.h. */ |
13787 | ||
dd184caf | 13788 | /* Override any GCC internal prototype to avoid an error. |
13789 | Use char because int might match the return type of a GCC | |
13790 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13791 | #ifdef __cplusplus |
13792 | extern "C" | |
13793 | #endif | |
d9898ee8 | 13794 | char connect (); |
13795 | int | |
13796 | main () | |
13797 | { | |
dd184caf | 13798 | return connect (); |
d9898ee8 | 13799 | ; |
13800 | return 0; | |
13801 | } | |
13802 | _ACEOF | |
b0322a85 | 13803 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13804 | ac_cv_lib_socket_connect=yes |
13805 | else | |
b0322a85 | 13806 | ac_cv_lib_socket_connect=no |
d9898ee8 | 13807 | fi |
b0322a85 CE |
13808 | rm -f core conftest.err conftest.$ac_objext \ |
13809 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13810 | LIBS=$ac_check_lib_save_LIBS |
13811 | fi | |
b0322a85 | 13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
8d138742 | 13813 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
b0322a85 | 13814 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
d9898ee8 | 13815 | result=yes |
13816 | else | |
13817 | result=no | |
13818 | fi | |
13819 | ||
13820 | if test $result = yes; then | |
13821 | NETLIBS="-lsocket" | |
13822 | else | |
b0322a85 | 13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
8d138742 | 13824 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
b0322a85 | 13825 | if ${ac_cv_lib_socket_connect+:} false; then : |
8d138742 | 13826 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13827 | else |
13828 | ac_check_lib_save_LIBS=$LIBS | |
13829 | LIBS="-lsocket -lnsl $LIBS" | |
b0322a85 | 13830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13831 | /* end confdefs.h. */ |
13832 | ||
dd184caf | 13833 | /* Override any GCC internal prototype to avoid an error. |
13834 | Use char because int might match the return type of a GCC | |
13835 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13836 | #ifdef __cplusplus |
13837 | extern "C" | |
13838 | #endif | |
d9898ee8 | 13839 | char connect (); |
13840 | int | |
13841 | main () | |
13842 | { | |
dd184caf | 13843 | return connect (); |
d9898ee8 | 13844 | ; |
13845 | return 0; | |
13846 | } | |
13847 | _ACEOF | |
b0322a85 | 13848 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13849 | ac_cv_lib_socket_connect=yes |
13850 | else | |
b0322a85 | 13851 | ac_cv_lib_socket_connect=no |
d9898ee8 | 13852 | fi |
b0322a85 CE |
13853 | rm -f core conftest.err conftest.$ac_objext \ |
13854 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13855 | LIBS=$ac_check_lib_save_LIBS |
13856 | fi | |
b0322a85 | 13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
8d138742 | 13858 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
b0322a85 | 13859 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
d9898ee8 | 13860 | result=yes |
13861 | else | |
13862 | result=no | |
13863 | fi | |
13864 | ||
13865 | if test $result = yes; then | |
13866 | NETLIBS="-lsocket -lnsl" | |
13867 | USENSL=yes | |
13868 | fi | |
13869 | fi | |
13870 | fi | |
13871 | fi | |
13872 | ||
13873 | if test $USENSL != yes; then | |
13874 | LIBS="$LIBS $NETLIBS" | |
b0322a85 | 13875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13876 | /* end confdefs.h. */ |
13877 | ||
dd184caf | 13878 | /* Override any GCC internal prototype to avoid an error. |
13879 | Use char because int might match the return type of a GCC | |
13880 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13881 | #ifdef __cplusplus |
13882 | extern "C" | |
13883 | #endif | |
d9898ee8 | 13884 | char inet_addr (); |
13885 | int | |
13886 | main () | |
13887 | { | |
dd184caf | 13888 | return inet_addr (); |
d9898ee8 | 13889 | ; |
13890 | return 0; | |
13891 | } | |
13892 | _ACEOF | |
b0322a85 | 13893 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13894 | : |
13895 | else | |
d9898ee8 | 13896 | |
b0322a85 | 13897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 |
8d138742 | 13898 | $as_echo_n "checking for inet_addr in -lnsl... " >&6; } |
b0322a85 | 13899 | if ${ac_cv_lib_nsl_inet_addr+:} false; then : |
8d138742 | 13900 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 13901 | else |
13902 | ac_check_lib_save_LIBS=$LIBS | |
13903 | LIBS="-lnsl $LIBS" | |
b0322a85 | 13904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 13905 | /* end confdefs.h. */ |
13906 | ||
dd184caf | 13907 | /* Override any GCC internal prototype to avoid an error. |
13908 | Use char because int might match the return type of a GCC | |
13909 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 13910 | #ifdef __cplusplus |
13911 | extern "C" | |
13912 | #endif | |
d9898ee8 | 13913 | char inet_addr (); |
13914 | int | |
13915 | main () | |
13916 | { | |
dd184caf | 13917 | return inet_addr (); |
d9898ee8 | 13918 | ; |
13919 | return 0; | |
13920 | } | |
13921 | _ACEOF | |
b0322a85 | 13922 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 13923 | ac_cv_lib_nsl_inet_addr=yes |
13924 | else | |
b0322a85 | 13925 | ac_cv_lib_nsl_inet_addr=no |
d9898ee8 | 13926 | fi |
b0322a85 CE |
13927 | rm -f core conftest.err conftest.$ac_objext \ |
13928 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13929 | LIBS=$ac_check_lib_save_LIBS |
13930 | fi | |
b0322a85 | 13931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 |
8d138742 | 13932 | $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } |
b0322a85 | 13933 | if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : |
d9898ee8 | 13934 | result=yes |
13935 | else | |
13936 | result=no | |
13937 | fi | |
13938 | ||
13939 | if test $result = yes; then | |
13940 | NETLIBS="$NETLIBS -lnsl" | |
13941 | fi | |
13942 | ||
13943 | fi | |
b0322a85 CE |
13944 | rm -f core conftest.err conftest.$ac_objext \ |
13945 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 13946 | fi |
13947 | ||
13948 | LIBS="$saveLIBS" | |
13949 | ||
13950 | ||
d50284c4 CE |
13951 | save_LIBS="$LIBS" |
13952 | LIBS="-lcourier-unicode" | |
13953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13954 | /* end confdefs.h. */ | |
13955 | ||
13956 | #include <courier-unicode.h> | |
13957 | ||
13958 | int | |
13959 | main () | |
13960 | { | |
13961 | ||
13962 | unicode_default_chset(); | |
13963 | ||
13964 | ; | |
13965 | return 0; | |
13966 | } | |
13967 | _ACEOF | |
13968 | if ac_fn_c_try_link "$LINENO"; then : | |
13969 | : | |
13970 | else | |
13971 | as_fn_error $? "The Courier Unicode Library 1.2 appears not to be installed. You may need to install a separate development subpackage, in addition to the main package" "$LINENO" 5 | |
13972 | fi | |
13973 | rm -f core conftest.err conftest.$ac_objext \ | |
13974 | conftest$ac_exeext conftest.$ac_ext | |
13975 | LIBS="$save_LIBS" | |
13976 | ||
d9898ee8 | 13977 | |
13978 | ||
13979 | ||
13980 | ||
13981 | ||
dd184caf | 13982 | # Check whether --with-db was given. |
b0322a85 | 13983 | if test "${with_db+set}" = set; then : |
dd184caf | 13984 | withval=$with_db; db="$withval" |
d9898ee8 | 13985 | else |
13986 | needs_withdb=1 | |
dd184caf | 13987 | fi |
13988 | ||
d9898ee8 | 13989 | |
13990 | case "$db" in | |
13991 | gdbm) | |
13992 | ;; | |
13993 | db) | |
13994 | ;; | |
13995 | "") | |
13996 | ;; | |
13997 | *) | |
b0322a85 | 13998 | as_fn_error $? "Invalid --with-db option." "$LINENO" 5 |
d9898ee8 | 13999 | ;; |
14000 | esac | |
14001 | ||
14002 | saveLIBS="$LIBS" | |
14003 | ||
14004 | if test "$db" != "db" | |
14005 | then | |
b0322a85 | 14006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 |
8d138742 | 14007 | $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } |
b0322a85 | 14008 | if ${ac_cv_lib_gdbm_gdbm_open+:} false; then : |
8d138742 | 14009 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14010 | else |
14011 | ac_check_lib_save_LIBS=$LIBS | |
14012 | LIBS="-lgdbm $LIBS" | |
b0322a85 | 14013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14014 | /* end confdefs.h. */ |
14015 | ||
dd184caf | 14016 | /* Override any GCC internal prototype to avoid an error. |
14017 | Use char because int might match the return type of a GCC | |
14018 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14019 | #ifdef __cplusplus |
14020 | extern "C" | |
14021 | #endif | |
d9898ee8 | 14022 | char gdbm_open (); |
14023 | int | |
14024 | main () | |
14025 | { | |
dd184caf | 14026 | return gdbm_open (); |
d9898ee8 | 14027 | ; |
14028 | return 0; | |
14029 | } | |
14030 | _ACEOF | |
b0322a85 | 14031 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14032 | ac_cv_lib_gdbm_gdbm_open=yes |
14033 | else | |
b0322a85 | 14034 | ac_cv_lib_gdbm_gdbm_open=no |
d9898ee8 | 14035 | fi |
b0322a85 CE |
14036 | rm -f core conftest.err conftest.$ac_objext \ |
14037 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14038 | LIBS=$ac_check_lib_save_LIBS |
14039 | fi | |
b0322a85 | 14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 |
8d138742 | 14041 | $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } |
b0322a85 | 14042 | if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then : |
d9898ee8 | 14043 | LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" |
14044 | fi | |
14045 | ||
b0322a85 CE |
14046 | ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open" |
14047 | if test "x$ac_cv_func_gdbm_open" = xyes; then : | |
d9898ee8 | 14048 | HAVE_GDBM=y |
14049 | fi | |
14050 | ||
14051 | fi | |
14052 | ||
14053 | LIBS="$saveLIBS" | |
14054 | ||
14055 | if test "$db" != "gdbm" | |
14056 | then | |
b0322a85 | 14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5 |
8d138742 | 14058 | $as_echo_n "checking for dbopen in -ldb... " >&6; } |
b0322a85 | 14059 | if ${ac_cv_lib_db_dbopen+:} false; then : |
8d138742 | 14060 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14061 | else |
14062 | ac_check_lib_save_LIBS=$LIBS | |
14063 | LIBS="-ldb $LIBS" | |
b0322a85 | 14064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14065 | /* end confdefs.h. */ |
14066 | ||
dd184caf | 14067 | /* Override any GCC internal prototype to avoid an error. |
14068 | Use char because int might match the return type of a GCC | |
14069 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14070 | #ifdef __cplusplus |
14071 | extern "C" | |
14072 | #endif | |
d9898ee8 | 14073 | char dbopen (); |
14074 | int | |
14075 | main () | |
14076 | { | |
dd184caf | 14077 | return dbopen (); |
d9898ee8 | 14078 | ; |
14079 | return 0; | |
14080 | } | |
14081 | _ACEOF | |
b0322a85 | 14082 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14083 | ac_cv_lib_db_dbopen=yes |
14084 | else | |
b0322a85 | 14085 | ac_cv_lib_db_dbopen=no |
d9898ee8 | 14086 | fi |
b0322a85 CE |
14087 | rm -f core conftest.err conftest.$ac_objext \ |
14088 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14089 | LIBS=$ac_check_lib_save_LIBS |
14090 | fi | |
b0322a85 | 14091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5 |
8d138742 | 14092 | $as_echo "$ac_cv_lib_db_dbopen" >&6; } |
b0322a85 | 14093 | if test "x$ac_cv_lib_db_dbopen" = xyes; then : |
d9898ee8 | 14094 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
14095 | else | |
b0322a85 | 14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5 |
8d138742 | 14097 | $as_echo_n "checking for db_open in -ldb... " >&6; } |
b0322a85 | 14098 | if ${ac_cv_lib_db_db_open+:} false; then : |
8d138742 | 14099 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14100 | else |
14101 | ac_check_lib_save_LIBS=$LIBS | |
14102 | LIBS="-ldb $LIBS" | |
b0322a85 | 14103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14104 | /* end confdefs.h. */ |
14105 | ||
dd184caf | 14106 | /* Override any GCC internal prototype to avoid an error. |
14107 | Use char because int might match the return type of a GCC | |
14108 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14109 | #ifdef __cplusplus |
14110 | extern "C" | |
14111 | #endif | |
d9898ee8 | 14112 | char db_open (); |
14113 | int | |
14114 | main () | |
14115 | { | |
dd184caf | 14116 | return db_open (); |
d9898ee8 | 14117 | ; |
14118 | return 0; | |
14119 | } | |
14120 | _ACEOF | |
b0322a85 | 14121 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14122 | ac_cv_lib_db_db_open=yes |
14123 | else | |
b0322a85 | 14124 | ac_cv_lib_db_db_open=no |
d9898ee8 | 14125 | fi |
b0322a85 CE |
14126 | rm -f core conftest.err conftest.$ac_objext \ |
14127 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14128 | LIBS=$ac_check_lib_save_LIBS |
14129 | fi | |
b0322a85 | 14130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5 |
8d138742 | 14131 | $as_echo "$ac_cv_lib_db_db_open" >&6; } |
b0322a85 | 14132 | if test "x$ac_cv_lib_db_db_open" = xyes; then : |
d9898ee8 | 14133 | LIBDB=-ldb ; LIBS="-ldb $LIBS" |
14134 | else | |
b0322a85 | 14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5 |
8d138742 | 14136 | $as_echo_n "checking for db_env_create in -ldb... " >&6; } |
b0322a85 | 14137 | if ${ac_cv_lib_db_db_env_create+:} false; then : |
8d138742 | 14138 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14139 | else |
14140 | ac_check_lib_save_LIBS=$LIBS | |
14141 | LIBS="-ldb $LIBS" | |
b0322a85 | 14142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14143 | /* end confdefs.h. */ |
14144 | ||
dd184caf | 14145 | /* Override any GCC internal prototype to avoid an error. |
14146 | Use char because int might match the return type of a GCC | |
14147 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14148 | #ifdef __cplusplus |
14149 | extern "C" | |
14150 | #endif | |
d9898ee8 | 14151 | char db_env_create (); |
14152 | int | |
14153 | main () | |
14154 | { | |
dd184caf | 14155 | return db_env_create (); |
d9898ee8 | 14156 | ; |
14157 | return 0; | |
14158 | } | |
14159 | _ACEOF | |
b0322a85 | 14160 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14161 | ac_cv_lib_db_db_env_create=yes |
14162 | else | |
b0322a85 | 14163 | ac_cv_lib_db_db_env_create=no |
d9898ee8 | 14164 | fi |
b0322a85 CE |
14165 | rm -f core conftest.err conftest.$ac_objext \ |
14166 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14167 | LIBS=$ac_check_lib_save_LIBS |
14168 | fi | |
b0322a85 | 14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5 |
8d138742 | 14170 | $as_echo "$ac_cv_lib_db_db_env_create" >&6; } |
b0322a85 | 14171 | if test "x$ac_cv_lib_db_db_env_create" = xyes; then : |
d9898ee8 | 14172 | LIBDB=-ldb; LIBS="-ldb $LIBS" |
14173 | fi | |
14174 | ||
14175 | ||
14176 | fi | |
14177 | ||
14178 | fi | |
14179 | ||
14180 | ||
b0322a85 CE |
14181 | ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" |
14182 | if test "x$ac_cv_func_dbopen" = xyes; then : | |
14183 | HAVE_BDB=1 | |
14184 | fi | |
d9898ee8 | 14185 | |
b0322a85 CE |
14186 | ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open" |
14187 | if test "x$ac_cv_func_db_open" = xyes; then : | |
14188 | HAVE_BDB=1 | |
14189 | fi | |
d9898ee8 | 14190 | |
b0322a85 CE |
14191 | ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create" |
14192 | if test "x$ac_cv_func_db_env_create" = xyes; then : | |
14193 | HAVE_BDB=1 | |
14194 | fi | |
d9898ee8 | 14195 | |
b0322a85 | 14196 | fi |
d9898ee8 | 14197 | |
b0322a85 | 14198 | LIBS="$saveLIBS" |
d9898ee8 | 14199 | |
b0322a85 CE |
14200 | if test "$HAVE_GDBM$HAVE_BDB" = "" |
14201 | then | |
14202 | as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5 | |
d9898ee8 | 14203 | fi |
dd184caf | 14204 | |
b0322a85 CE |
14205 | USE_GDBM=0 |
14206 | USE_DB=0 | |
d9898ee8 | 14207 | |
b0322a85 CE |
14208 | if test "$HAVE_GDBM" = "y" |
14209 | then | |
14210 | LIBDB="" | |
14211 | USE_GDBM=1 | |
14212 | if test "$needs_withdb" = 1 | |
14213 | then | |
14214 | ac_configure_args="$ac_configure_args --with-db=gdbm" | |
14215 | fi | |
14216 | dblibrary=libs/gdbmobj/libgdbmobj.la | |
d9898ee8 | 14217 | else |
b0322a85 CE |
14218 | LIBGDBM="" |
14219 | USE_DB=1 | |
14220 | if test "$needs_withdb" = 1 | |
14221 | then | |
14222 | ac_configure_args="$ac_configure_args --with-db=db" | |
14223 | fi | |
14224 | dblibrary=libs/bdbobj/libbdbobj.la | |
14225 | fi | |
d9898ee8 | 14226 | |
d9898ee8 | 14227 | |
d9898ee8 | 14228 | |
d9898ee8 | 14229 | |
d9898ee8 | 14230 | |
b0322a85 CE |
14231 | # Check whether --with-authuserdb was given. |
14232 | if test "${with_authuserdb+set}" = set; then : | |
14233 | withval=$with_authuserdb; doauthuserdb="$withval" | |
d9898ee8 | 14234 | else |
b0322a85 CE |
14235 | doauthuserdb="no" |
14236 | if test -d ${srcdir}/userdb | |
14237 | then | |
14238 | doauthuserdb="yes" | |
14239 | fi | |
dd184caf | 14240 | fi |
14241 | ||
d9898ee8 | 14242 | |
14243 | if test "$doauthuserdb" = "no" | |
14244 | then | |
14245 | AUTHUSERDB="" | |
14246 | else | |
14247 | AUTHUSERDB="authuserdb" | |
14248 | LIBAUTHUSERDB="libauthuserdb.la" | |
14249 | ||
14250 | fi | |
14251 | ||
14252 | ||
dd184caf | 14253 | # Check whether --with-makedatprog was given. |
b0322a85 | 14254 | if test "${with_makedatprog+set}" = set; then : |
dd184caf | 14255 | withval=$with_makedatprog; : |
d9898ee8 | 14256 | else |
14257 | ||
14258 | ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog" | |
14259 | ||
dd184caf | 14260 | fi |
14261 | ||
d9898ee8 | 14262 | |
14263 | cat >dbobj.config <<EOF | |
14264 | LIBDB=$LIBDB | |
14265 | LIBGDBM=$LIBGDBM | |
14266 | dblibrary=$dblibrary | |
14267 | EOF | |
14268 | ||
14269 | ||
14270 | ||
14271 | ||
14272 | ||
14273 | ||
14274 | ||
14275 | ||
14276 | ||
14277 | userdb="$pkgconfdir/userdb" | |
14278 | ||
dd184caf | 14279 | # Check whether --with-userdb was given. |
b0322a85 | 14280 | if test "${with_userdb+set}" = set; then : |
dd184caf | 14281 | withval=$with_userdb; userdb="$withval" |
d9898ee8 | 14282 | else |
14283 | ac_configure_args="$ac_configure_args '--with-userdb=$userdb'" | |
dd184caf | 14284 | fi |
14285 | ||
d9898ee8 | 14286 | |
14287 | ||
14288 | cat >>confdefs.h <<_ACEOF | |
14289 | #define USERDB "$userdb" | |
14290 | _ACEOF | |
14291 | ||
14292 | ||
14293 | ||
d9898ee8 | 14294 | for ac_header in stdio.h |
b0322a85 CE |
14295 | do : |
14296 | ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" | |
14297 | if test "x$ac_cv_header_stdio_h" = xyes; then : | |
d9898ee8 | 14298 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14299 | #define HAVE_STDIO_H 1 |
d9898ee8 | 14300 | _ACEOF |
14301 | ||
14302 | fi | |
14303 | ||
14304 | done | |
14305 | ||
14306 | ||
14307 | ||
14308 | ||
14309 | ||
14310 | ||
dd184caf | 14311 | # Check whether --with-authpam was given. |
b0322a85 | 14312 | if test "${with_authpam+set}" = set; then : |
dd184caf | 14313 | withval=$with_authpam; doauthpam="$withval" |
14314 | fi | |
14315 | ||
d9898ee8 | 14316 | |
d9898ee8 | 14317 | for ac_header in security/pam_appl.h Pam/pam_appl.h |
b0322a85 CE |
14318 | do : |
14319 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14320 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
14321 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
d9898ee8 | 14322 | cat >>confdefs.h <<_ACEOF |
8d138742 | 14323 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
d9898ee8 | 14324 | _ACEOF |
14325 | ||
14326 | fi | |
14327 | ||
14328 | done | |
14329 | ||
14330 | if test "$doauthpam" = "no" | |
14331 | then | |
14332 | LIBDL="" | |
14333 | else | |
14334 | saveLIBS="$LIBS" | |
14335 | LIBDL="" | |
b0322a85 | 14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
8d138742 | 14337 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
b0322a85 | 14338 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
8d138742 | 14339 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14340 | else |
14341 | ac_check_lib_save_LIBS=$LIBS | |
14342 | LIBS="-ldl $LIBS" | |
b0322a85 | 14343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14344 | /* end confdefs.h. */ |
14345 | ||
dd184caf | 14346 | /* Override any GCC internal prototype to avoid an error. |
14347 | Use char because int might match the return type of a GCC | |
14348 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14349 | #ifdef __cplusplus |
14350 | extern "C" | |
14351 | #endif | |
d9898ee8 | 14352 | char dlopen (); |
14353 | int | |
14354 | main () | |
14355 | { | |
dd184caf | 14356 | return dlopen (); |
d9898ee8 | 14357 | ; |
14358 | return 0; | |
14359 | } | |
14360 | _ACEOF | |
b0322a85 | 14361 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14362 | ac_cv_lib_dl_dlopen=yes |
14363 | else | |
b0322a85 | 14364 | ac_cv_lib_dl_dlopen=no |
d9898ee8 | 14365 | fi |
b0322a85 CE |
14366 | rm -f core conftest.err conftest.$ac_objext \ |
14367 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14368 | LIBS=$ac_check_lib_save_LIBS |
14369 | fi | |
b0322a85 | 14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
8d138742 | 14371 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
b0322a85 | 14372 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d9898ee8 | 14373 | LIBDL="-ldl" |
14374 | fi | |
14375 | ||
14376 | LIBS="$saveLIBS" | |
14377 | ||
b0322a85 | 14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 |
8d138742 | 14379 | $as_echo_n "checking for pam_start in -lpam... " >&6; } |
b0322a85 | 14380 | if ${ac_cv_lib_pam_pam_start+:} false; then : |
8d138742 | 14381 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14382 | else |
14383 | ac_check_lib_save_LIBS=$LIBS | |
14384 | LIBS="-lpam $LIBDL $LIBS" | |
b0322a85 | 14385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14386 | /* end confdefs.h. */ |
14387 | ||
dd184caf | 14388 | /* Override any GCC internal prototype to avoid an error. |
14389 | Use char because int might match the return type of a GCC | |
14390 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14391 | #ifdef __cplusplus |
14392 | extern "C" | |
14393 | #endif | |
d9898ee8 | 14394 | char pam_start (); |
14395 | int | |
14396 | main () | |
14397 | { | |
dd184caf | 14398 | return pam_start (); |
d9898ee8 | 14399 | ; |
14400 | return 0; | |
14401 | } | |
14402 | _ACEOF | |
b0322a85 | 14403 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14404 | ac_cv_lib_pam_pam_start=yes |
14405 | else | |
b0322a85 | 14406 | ac_cv_lib_pam_pam_start=no |
d9898ee8 | 14407 | fi |
b0322a85 CE |
14408 | rm -f core conftest.err conftest.$ac_objext \ |
14409 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14410 | LIBS=$ac_check_lib_save_LIBS |
14411 | fi | |
b0322a85 | 14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 |
8d138742 | 14413 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } |
b0322a85 | 14414 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : |
d9898ee8 | 14415 | HAVE_PAM=1 |
14416 | LIBS="-lpam $LIBDL $LIBS" | |
b0322a85 CE |
14417 | for ac_func in pam_setcred |
14418 | do : | |
14419 | ac_fn_c_check_func "$LINENO" "pam_setcred" "ac_cv_func_pam_setcred" | |
14420 | if test "x$ac_cv_func_pam_setcred" = xyes; then : | |
d9898ee8 | 14421 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14422 | #define HAVE_PAM_SETCRED 1 |
d9898ee8 | 14423 | _ACEOF |
14424 | ||
14425 | fi | |
14426 | done | |
14427 | ||
14428 | else | |
14429 | HAVE_PAM=0 | |
14430 | fi | |
14431 | ||
14432 | LIBS="$saveLIBS" | |
14433 | fi | |
14434 | ||
14435 | ||
14436 | LIBAUTHPAM="" | |
14437 | if test "$HAVE_PAM" = 1 | |
14438 | then | |
14439 | LIBAUTHPAM=libauthpam.la | |
14440 | fi | |
14441 | ||
14442 | ||
dd184caf | 14443 | # Check whether --with-authpam-libraries was given. |
b0322a85 | 14444 | if test "${with_authpam_libraries+set}" = set; then : |
dd184caf | 14445 | withval=$with_authpam_libraries; authpamcrypt="$withval" |
14446 | fi | |
14447 | ||
d9898ee8 | 14448 | |
14449 | AUTHPAMCRYPT="$authpamcrypt" | |
14450 | ||
14451 | ||
14452 | ||
14453 | ||
14454 | ||
14455 | ||
14456 | ||
dd184caf | 14457 | # Check whether --with-authldap was given. |
b0322a85 | 14458 | if test "${with_authldap+set}" = set; then : |
dd184caf | 14459 | withval=$with_authldap; doauthldap="$withval" |
d9898ee8 | 14460 | else |
14461 | doauthldap="yes" | |
dd184caf | 14462 | fi |
14463 | ||
d9898ee8 | 14464 | |
d9898ee8 | 14465 | for ac_header in lber.h |
b0322a85 CE |
14466 | do : |
14467 | ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default" | |
14468 | if test "x$ac_cv_header_lber_h" = xyes; then : | |
d9898ee8 | 14469 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14470 | #define HAVE_LBER_H 1 |
d9898ee8 | 14471 | _ACEOF |
14472 | ||
14473 | fi | |
14474 | ||
14475 | done | |
14476 | ||
d9898ee8 | 14477 | for ac_header in ldap.h |
b0322a85 CE |
14478 | do : |
14479 | ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default" | |
14480 | if test "x$ac_cv_header_ldap_h" = xyes; then : | |
d9898ee8 | 14481 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14482 | #define HAVE_LDAP_H 1 |
d9898ee8 | 14483 | _ACEOF |
14484 | ||
14485 | fi | |
14486 | ||
14487 | done | |
14488 | ||
d9898ee8 | 14489 | for ac_header in netinet/in.h |
b0322a85 CE |
14490 | do : |
14491 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" | |
14492 | if test "x$ac_cv_header_netinet_in_h" = xyes; then : | |
d9898ee8 | 14493 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14494 | #define HAVE_NETINET_IN_H 1 |
d9898ee8 | 14495 | _ACEOF |
14496 | ||
14497 | fi | |
14498 | ||
14499 | done | |
14500 | ||
14501 | ||
14502 | if test "$doauthldap" = "no" | |
14503 | then | |
14504 | HAVE_LDAP=0 | |
14505 | else | |
14506 | saveLIBS="$LIBS" | |
14507 | LIBS="$NETLIBS $LIBS" | |
14508 | LDAPLIBS="" | |
14509 | ||
b0322a85 | 14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5 |
8d138742 | 14511 | $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; } |
b0322a85 | 14512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14513 | /* end confdefs.h. */ |
14514 | ||
14515 | #include <sys/types.h> | |
14516 | #if HAVE_NETINET_IN_H | |
14517 | #include <netinet/in.h> | |
14518 | #endif | |
14519 | #include <resolv.h> | |
14520 | ||
14521 | void (*func)()= (void (*)())res_query; | |
14522 | ||
14523 | int | |
14524 | main () | |
14525 | { | |
14526 | (*func)(); | |
14527 | ; | |
14528 | return 0; | |
14529 | } | |
14530 | _ACEOF | |
b0322a85 CE |
14531 | if ac_fn_c_try_link "$LINENO"; then : |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8d138742 | 14533 | $as_echo "no" >&6; } |
d9898ee8 | 14534 | else |
d9898ee8 | 14535 | |
b0322a85 | 14536 | LIBS="-lresolv $LIBS" |
d9898ee8 | 14537 | |
b0322a85 CE |
14538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
14539 | /* end confdefs.h. */ | |
14540 | ||
14541 | #include <sys/types.h> | |
14542 | #if HAVE_NETINET_IN_H | |
14543 | #include <netinet/in.h> | |
d9898ee8 | 14544 | #endif |
b0322a85 CE |
14545 | #include <resolv.h> |
14546 | ||
14547 | void (*func)()= (void (*)())res_query; | |
d9898ee8 | 14548 | |
14549 | int | |
14550 | main () | |
14551 | { | |
b0322a85 | 14552 | (*func)(); |
d9898ee8 | 14553 | ; |
14554 | return 0; | |
14555 | } | |
14556 | _ACEOF | |
b0322a85 | 14557 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14558 | |
b0322a85 CE |
14559 | LDAPLIBS="-lresolv $LDAPLIBS" |
14560 | HAVE_LDAP=1 | |
14561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14562 | $as_echo "yes" >&6; } | |
dd184caf | 14563 | |
d9898ee8 | 14564 | else |
b0322a85 | 14565 | as_fn_error $? "Cannot find function res_query" "$LINENO" 5 |
d9898ee8 | 14566 | fi |
b0322a85 CE |
14567 | rm -f core conftest.err conftest.$ac_objext \ |
14568 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14569 | |
b0322a85 CE |
14570 | fi |
14571 | rm -f core conftest.err conftest.$ac_objext \ | |
14572 | conftest$ac_exeext conftest.$ac_ext | |
14573 | ||
14574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5 | |
14575 | $as_echo_n "checking for ber_scanf in -llber... " >&6; } | |
14576 | if ${ac_cv_lib_lber_ber_scanf+:} false; then : | |
8d138742 | 14577 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14578 | else |
b0322a85 CE |
14579 | ac_check_lib_save_LIBS=$LIBS |
14580 | LIBS="-llber $LIBS" | |
14581 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 14582 | /* end confdefs.h. */ |
d9898ee8 | 14583 | |
dd184caf | 14584 | /* Override any GCC internal prototype to avoid an error. |
14585 | Use char because int might match the return type of a GCC | |
14586 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14587 | #ifdef __cplusplus |
14588 | extern "C" | |
d9898ee8 | 14589 | #endif |
b0322a85 | 14590 | char ber_scanf (); |
d9898ee8 | 14591 | int |
14592 | main () | |
14593 | { | |
b0322a85 | 14594 | return ber_scanf (); |
d9898ee8 | 14595 | ; |
14596 | return 0; | |
14597 | } | |
14598 | _ACEOF | |
b0322a85 CE |
14599 | if ac_fn_c_try_link "$LINENO"; then : |
14600 | ac_cv_lib_lber_ber_scanf=yes | |
d9898ee8 | 14601 | else |
b0322a85 | 14602 | ac_cv_lib_lber_ber_scanf=no |
d9898ee8 | 14603 | fi |
b0322a85 CE |
14604 | rm -f core conftest.err conftest.$ac_objext \ |
14605 | conftest$ac_exeext conftest.$ac_ext | |
14606 | LIBS=$ac_check_lib_save_LIBS | |
d9898ee8 | 14607 | fi |
b0322a85 CE |
14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5 |
14609 | $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; } | |
14610 | if test "x$ac_cv_lib_lber_ber_scanf" = xyes; then : | |
14611 | LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS" | |
d9898ee8 | 14612 | fi |
14613 | ||
b0322a85 CE |
14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5 |
14615 | $as_echo_n "checking for ldap_open in -lldap... " >&6; } | |
14616 | if ${ac_cv_lib_ldap_ldap_open+:} false; then : | |
8d138742 | 14617 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14618 | else |
b0322a85 CE |
14619 | ac_check_lib_save_LIBS=$LIBS |
14620 | LIBS="-lldap $LIBS" | |
14621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 14622 | /* end confdefs.h. */ |
d9898ee8 | 14623 | |
dd184caf | 14624 | /* Override any GCC internal prototype to avoid an error. |
14625 | Use char because int might match the return type of a GCC | |
14626 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14627 | #ifdef __cplusplus |
14628 | extern "C" | |
d9898ee8 | 14629 | #endif |
b0322a85 | 14630 | char ldap_open (); |
d9898ee8 | 14631 | int |
14632 | main () | |
14633 | { | |
b0322a85 | 14634 | return ldap_open (); |
d9898ee8 | 14635 | ; |
14636 | return 0; | |
14637 | } | |
14638 | _ACEOF | |
b0322a85 CE |
14639 | if ac_fn_c_try_link "$LINENO"; then : |
14640 | ac_cv_lib_ldap_ldap_open=yes | |
d9898ee8 | 14641 | else |
b0322a85 CE |
14642 | ac_cv_lib_ldap_ldap_open=no |
14643 | fi | |
14644 | rm -f core conftest.err conftest.$ac_objext \ | |
14645 | conftest$ac_exeext conftest.$ac_ext | |
14646 | LIBS=$ac_check_lib_save_LIBS | |
14647 | fi | |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5 | |
14649 | $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; } | |
14650 | if test "x$ac_cv_lib_ldap_ldap_open" = xyes; then : | |
14651 | LDAPLIBS="-lldap $LDAPLIBS" ; LIBS="-lldap $LIBS" | |
14652 | fi | |
14653 | ||
14654 | ac_fn_c_check_func "$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st" | |
14655 | if test "x$ac_cv_func_ldap_search_st" = xyes; then : | |
14656 | HAVE_LDAP=1 | |
14657 | else | |
14658 | HAVE_LDAP=0 | |
14659 | fi | |
d9898ee8 | 14660 | |
b0322a85 CE |
14661 | ac_fn_c_check_func "$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s" |
14662 | if test "x$ac_cv_func_ldap_start_tls_s" = xyes; then : | |
14663 | HAVE_LDAP_TLS=1 | |
14664 | else | |
14665 | HAVE_LDAP_TLS=0 | |
d9898ee8 | 14666 | fi |
dd184caf | 14667 | |
b0322a85 CE |
14668 | ac_fn_c_check_func "$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error" |
14669 | if test "x$ac_cv_func_ldap_result2error" = xyes; then : | |
14670 | HAVE_LDAP_RESULT2ERROR=1 | |
14671 | else | |
14672 | HAVE_LDAP_RESULT2ERROR=0 | |
d9898ee8 | 14673 | fi |
b0322a85 CE |
14674 | |
14675 | ac_fn_c_check_func "$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result" | |
14676 | if test "x$ac_cv_func_ldap_parse_result" = xyes; then : | |
d9898ee8 | 14677 | HAVE_LDAP_PARSE_RESULT=1 |
14678 | else | |
14679 | HAVE_LDAP_PARSE_RESULT=0 | |
14680 | fi | |
14681 | ||
14682 | LIBS="$saveLIBS" | |
14683 | fi | |
14684 | ||
14685 | ||
dd184caf | 14686 | # Check whether --with-authldaprc was given. |
b0322a85 | 14687 | if test "${with_authldaprc+set}" = set; then : |
dd184caf | 14688 | withval=$with_authldaprc; authldaprc="$withval" |
d9898ee8 | 14689 | else |
14690 | authldaprc="$pkgconfdir/authldaprc" | |
dd184caf | 14691 | fi |
14692 | ||
d9898ee8 | 14693 | |
14694 | ||
14695 | LIBAUTHLDAP="" | |
14696 | if test "$HAVE_LDAP" = 1 | |
14697 | then | |
14698 | LIBAUTHLDAP="libauthldap.la" | |
14699 | else | |
14700 | authldaprc="" | |
14701 | fi | |
14702 | ||
14703 | ||
14704 | ||
dd184caf | 14705 | if test "$HAVE_LDAP" = 1; then |
d9898ee8 | 14706 | HAVE_LDAP_TRUE= |
14707 | HAVE_LDAP_FALSE='#' | |
14708 | else | |
14709 | HAVE_LDAP_TRUE='#' | |
14710 | HAVE_LDAP_FALSE= | |
14711 | fi | |
14712 | ||
14713 | ||
14714 | cat >>confdefs.h <<_ACEOF | |
14715 | #define HAVE_LDAP_TLS $HAVE_LDAP_TLS | |
14716 | _ACEOF | |
14717 | ||
14718 | ||
14719 | cat >>confdefs.h <<_ACEOF | |
14720 | #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR | |
14721 | _ACEOF | |
14722 | ||
14723 | ||
14724 | cat >>confdefs.h <<_ACEOF | |
14725 | #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT | |
14726 | _ACEOF | |
14727 | ||
14728 | ||
14729 | ||
14730 | ||
14731 | ||
dd184caf | 14732 | # Check whether --with-authpwd was given. |
b0322a85 | 14733 | if test "${with_authpwd+set}" = set; then : |
dd184caf | 14734 | withval=$with_authpwd; doauthpwd="$withval" |
b0322a85 CE |
14735 | else |
14736 | doauthpwd="yes" | |
14737 | test "$HAVE_PAM" = 1 && doauthpwd="no" | |
14738 | test "$HAVE_LDAP" = 1 && doauthpwd="no" | |
d9898ee8 | 14739 | |
d9898ee8 | 14740 | fi |
dd184caf | 14741 | |
d9898ee8 | 14742 | |
b0322a85 CE |
14743 | HAVE_PWD=1 |
14744 | if test "$doauthpwd" = "no" | |
14745 | then | |
14746 | HAVE_PWD=0 | |
14747 | fi | |
14748 | for ac_func in endpwent | |
14749 | do : | |
14750 | ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" | |
14751 | if test "x$ac_cv_func_endpwent" = xyes; then : | |
14752 | cat >>confdefs.h <<_ACEOF | |
14753 | #define HAVE_ENDPWENT 1 | |
d9898ee8 | 14754 | _ACEOF |
d9898ee8 | 14755 | |
d9898ee8 | 14756 | fi |
b0322a85 | 14757 | done |
dd184caf | 14758 | |
d9898ee8 | 14759 | |
b0322a85 CE |
14760 | |
14761 | ||
14762 | ||
14763 | ||
14764 | # Check whether --with-authshadow was given. | |
14765 | if test "${with_authshadow+set}" = set; then : | |
14766 | withval=$with_authshadow; doauthshadow="$withval" | |
d9898ee8 | 14767 | else |
b0322a85 CE |
14768 | doauthshadow="yes" |
14769 | test "$HAVE_PAM" = 1 && doauthshadow="no" | |
14770 | test "$HAVE_LDAP" = 1 && doauthshadow="no" | |
d9898ee8 | 14771 | fi |
d9898ee8 | 14772 | |
b0322a85 CE |
14773 | |
14774 | for ac_header in shadow.h | |
14775 | do : | |
14776 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
14777 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
d9898ee8 | 14778 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 14779 | #define HAVE_SHADOW_H 1 |
d9898ee8 | 14780 | _ACEOF |
14781 | ||
14782 | fi | |
14783 | ||
14784 | done | |
14785 | ||
14786 | saveLIBS="$LIBS" | |
14787 | SHADOWLIBS="" | |
b0322a85 | 14788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 |
8d138742 | 14789 | $as_echo_n "checking for getspent in -lshadow... " >&6; } |
b0322a85 | 14790 | if ${ac_cv_lib_shadow_getspent+:} false; then : |
8d138742 | 14791 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14792 | else |
14793 | ac_check_lib_save_LIBS=$LIBS | |
14794 | LIBS="-lshadow $LIBS" | |
b0322a85 | 14795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14796 | /* end confdefs.h. */ |
14797 | ||
dd184caf | 14798 | /* Override any GCC internal prototype to avoid an error. |
14799 | Use char because int might match the return type of a GCC | |
14800 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14801 | #ifdef __cplusplus |
14802 | extern "C" | |
14803 | #endif | |
d9898ee8 | 14804 | char getspent (); |
14805 | int | |
14806 | main () | |
14807 | { | |
dd184caf | 14808 | return getspent (); |
d9898ee8 | 14809 | ; |
14810 | return 0; | |
14811 | } | |
14812 | _ACEOF | |
b0322a85 | 14813 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14814 | ac_cv_lib_shadow_getspent=yes |
14815 | else | |
b0322a85 | 14816 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 14817 | fi |
b0322a85 CE |
14818 | rm -f core conftest.err conftest.$ac_objext \ |
14819 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14820 | LIBS=$ac_check_lib_save_LIBS |
14821 | fi | |
b0322a85 | 14822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 |
8d138742 | 14823 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } |
b0322a85 | 14824 | if test "x$ac_cv_lib_shadow_getspent" = xyes; then : |
d9898ee8 | 14825 | SHADOWLIBS="-lshadow" ; LIBS="-lshadow $LIBS" |
14826 | fi | |
14827 | ||
d9898ee8 | 14828 | for ac_func in endspent getspent |
b0322a85 CE |
14829 | do : |
14830 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14831 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
14832 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
d9898ee8 | 14833 | cat >>confdefs.h <<_ACEOF |
8d138742 | 14834 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
d9898ee8 | 14835 | _ACEOF |
14836 | ||
14837 | fi | |
14838 | done | |
14839 | ||
14840 | LIBS="$saveLIBS" | |
14841 | ||
14842 | if test "$doauthshadow" = "no" | |
14843 | then | |
14844 | HAVE_SHADOW=0 | |
14845 | else | |
14846 | ||
14847 | saveLIBS="$LIBS" | |
b0322a85 | 14848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5 |
8d138742 | 14849 | $as_echo_n "checking for getspent in -lshadow... " >&6; } |
b0322a85 | 14850 | if ${ac_cv_lib_shadow_getspent+:} false; then : |
8d138742 | 14851 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14852 | else |
14853 | ac_check_lib_save_LIBS=$LIBS | |
14854 | LIBS="-lshadow $LIBS" | |
b0322a85 | 14855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 14856 | /* end confdefs.h. */ |
14857 | ||
dd184caf | 14858 | /* Override any GCC internal prototype to avoid an error. |
14859 | Use char because int might match the return type of a GCC | |
14860 | builtin and then its argument prototype would still apply. */ | |
d9898ee8 | 14861 | #ifdef __cplusplus |
14862 | extern "C" | |
14863 | #endif | |
d9898ee8 | 14864 | char getspent (); |
14865 | int | |
14866 | main () | |
14867 | { | |
dd184caf | 14868 | return getspent (); |
d9898ee8 | 14869 | ; |
14870 | return 0; | |
14871 | } | |
14872 | _ACEOF | |
b0322a85 | 14873 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 14874 | ac_cv_lib_shadow_getspent=yes |
14875 | else | |
b0322a85 | 14876 | ac_cv_lib_shadow_getspent=no |
d9898ee8 | 14877 | fi |
b0322a85 CE |
14878 | rm -f core conftest.err conftest.$ac_objext \ |
14879 | conftest$ac_exeext conftest.$ac_ext | |
d9898ee8 | 14880 | LIBS=$ac_check_lib_save_LIBS |
14881 | fi | |
b0322a85 | 14882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5 |
8d138742 | 14883 | $as_echo "$ac_cv_lib_shadow_getspent" >&6; } |
b0322a85 | 14884 | if test "x$ac_cv_lib_shadow_getspent" = xyes; then : |
d9898ee8 | 14885 | cat >>confdefs.h <<_ACEOF |
14886 | #define HAVE_LIBSHADOW 1 | |
14887 | _ACEOF | |
14888 | ||
14889 | LIBS="-lshadow $LIBS" | |
14890 | ||
14891 | fi | |
14892 | ||
b0322a85 CE |
14893 | ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" |
14894 | if test "x$ac_cv_func_getspent" = xyes; then : | |
d9898ee8 | 14895 | HAVE_SHADOW=1 |
14896 | else | |
14897 | HAVE_SHADOW=0 | |
14898 | fi | |
14899 | ||
14900 | LIBS="$saveLIBS" | |
14901 | fi | |
14902 | ||
14903 | LIBAUTHSHADOW="" | |
14904 | if test "$HAVE_SHADOW" = 1 | |
14905 | then | |
14906 | LIBAUTHSHADOW="libauthshadow.la" | |
14907 | fi | |
14908 | ||
14909 | ||
14910 | ||
14911 | LIBAUTHPWD="" | |
14912 | if test "$HAVE_PWD" = 1 | |
14913 | then | |
14914 | LIBAUTHPWD="libauthpwd.la" | |
14915 | fi | |
14916 | ||
14917 | ||
14918 | ||
14919 | ||
14920 | ||
14921 | ||
dd184caf | 14922 | # Check whether --with-authpgsqlrc was given. |
b0322a85 | 14923 | if test "${with_authpgsqlrc+set}" = set; then : |
dd184caf | 14924 | withval=$with_authpgsqlrc; authpgsqlrc="$withval" |
d9898ee8 | 14925 | else |
14926 | authpgsqlrc="$pkgconfdir/authpgsqlrc" | |
dd184caf | 14927 | fi |
d9898ee8 | 14928 | |
14929 | ||
14930 | ||
dd184caf | 14931 | |
14932 | # Check whether --with-authpgsql was given. | |
b0322a85 | 14933 | if test "${with_authpgsql+set}" = set; then : |
dd184caf | 14934 | withval=$with_authpgsql; doauthpgsql="$withval" |
14935 | fi | |
14936 | ||
d9898ee8 | 14937 | |
14938 | for ac_prog in pg_config | |
14939 | do | |
14940 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14941 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 14942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 14943 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 14944 | if ${ac_cv_path_PG_CONFIG+:} false; then : |
8d138742 | 14945 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 14946 | else |
14947 | case $PG_CONFIG in | |
14948 | [\\/]* | ?:[\\/]*) | |
14949 | ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path. | |
14950 | ;; | |
14951 | *) | |
14952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14953 | for as_dir in $LPATH | |
14954 | do | |
14955 | IFS=$as_save_IFS | |
14956 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
14957 | for ac_exec_ext in '' $ac_executable_extensions; do |
14958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 14959 | ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 14960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 14961 | break 2 |
14962 | fi | |
14963 | done | |
b0322a85 | 14964 | done |
dd184caf | 14965 | IFS=$as_save_IFS |
d9898ee8 | 14966 | |
14967 | ;; | |
14968 | esac | |
14969 | fi | |
14970 | PG_CONFIG=$ac_cv_path_PG_CONFIG | |
d9898ee8 | 14971 | if test -n "$PG_CONFIG"; then |
b0322a85 | 14972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 |
8d138742 | 14973 | $as_echo "$PG_CONFIG" >&6; } |
d9898ee8 | 14974 | else |
b0322a85 | 14975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 14976 | $as_echo "no" >&6; } |
d9898ee8 | 14977 | fi |
14978 | ||
dd184caf | 14979 | |
d9898ee8 | 14980 | test -n "$PG_CONFIG" && break |
14981 | done | |
14982 | test -n "$PG_CONFIG" || PG_CONFIG="pg_config" | |
14983 | ||
14984 | ||
14985 | PGSQL_LIBS="-lpq" | |
14986 | ||
dd184caf | 14987 | # Check whether --with-pgsql-libs was given. |
b0322a85 | 14988 | if test "${with_pgsql_libs+set}" = set; then : |
dd184caf | 14989 | withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS" |
d9898ee8 | 14990 | else |
14991 | if test -x $PG_CONFIG | |
14992 | then | |
14993 | PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS" | |
14994 | fi | |
14995 | ||
dd184caf | 14996 | fi |
14997 | ||
d9898ee8 | 14998 | |
dd184caf | 14999 | # Check whether --with-pgsql-includes was given. |
b0322a85 | 15000 | if test "${with_pgsql_includes+set}" = set; then : |
dd184caf | 15001 | withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval" |
d9898ee8 | 15002 | else |
15003 | if test -x $PG_CONFIG | |
15004 | then | |
15005 | PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`" | |
15006 | fi | |
15007 | ||
dd184caf | 15008 | fi |
15009 | ||
d9898ee8 | 15010 | |
15011 | if test "$doauthpgsql" = "" | |
b0322a85 CE |
15012 | then |
15013 | LIBS="$PGSQL_LIBS $LIBS" | |
15014 | ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" | |
15015 | if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : | |
d9898ee8 | 15016 | doauthpgsql="yes" |
15017 | ||
15018 | fi | |
15019 | ||
15020 | LIBS="$saveLIBS" | |
15021 | fi | |
15022 | ||
15023 | if test "$doauthpgsql" != "yes" | |
15024 | then | |
15025 | LIBAUTHPGSQL="" | |
15026 | HAVE_AUTHPGSQL=0 | |
15027 | else | |
15028 | saveLIBS="$LIBS" | |
15029 | LIBS="$PGSQL_LIBS $LIBS" | |
b0322a85 CE |
15030 | ac_fn_c_check_func "$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin" |
15031 | if test "x$ac_cv_func_PQsetdbLogin" = xyes; then : | |
d9898ee8 | 15032 | AUTHPGSQL="authpgsql" |
15033 | HAVE_AUTHPGSQL=1 | |
15034 | else | |
b0322a85 | 15035 | as_fn_error $? "--with-authpgsql specified but no libpq.so" "$LINENO" 5 |
d9898ee8 | 15036 | fi |
15037 | ||
15038 | LIBS="$saveLIBS" | |
15039 | HAVE_AUTHPGSQL=1 | |
15040 | CFLAGS="$PGSQL_CFLAGS $CFLAGS" | |
15041 | LIBAUTHPGSQL="libauthpgsql.la" | |
15042 | fi | |
15043 | ||
15044 | ||
15045 | ||
dd184caf | 15046 | if test "$HAVE_AUTHPGSQL" = 1; then |
d9898ee8 | 15047 | HAVE_AUTHPGSQL_TRUE= |
15048 | HAVE_AUTHPGSQL_FALSE='#' | |
15049 | else | |
15050 | HAVE_AUTHPGSQL_TRUE='#' | |
15051 | HAVE_AUTHPGSQL_FALSE= | |
15052 | fi | |
15053 | ||
15054 | ||
15055 | ||
15056 | ||
15057 | ||
15058 | ||
dd184caf | 15059 | # Check whether --with-authmysqlrc was given. |
b0322a85 | 15060 | if test "${with_authmysqlrc+set}" = set; then : |
dd184caf | 15061 | withval=$with_authmysqlrc; authmysqlrc="$withval" |
d9898ee8 | 15062 | else |
15063 | authmysqlrc="$pkgconfdir/authmysqlrc" | |
dd184caf | 15064 | fi |
15065 | ||
d9898ee8 | 15066 | |
15067 | ||
15068 | ||
dd184caf | 15069 | # Check whether --with-authmysql was given. |
b0322a85 | 15070 | if test "${with_authmysql+set}" = set; then : |
dd184caf | 15071 | withval=$with_authmysql; doauthmysql="$withval" |
15072 | fi | |
15073 | ||
d9898ee8 | 15074 | |
dd184caf | 15075 | # Check whether --with-mysql-libs was given. |
b0322a85 | 15076 | if test "${with_mysql_libs+set}" = set; then : |
dd184caf | 15077 | withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient" |
15078 | ||
15079 | fi | |
d9898ee8 | 15080 | |
d9898ee8 | 15081 | |
dd184caf | 15082 | # Check whether --with-mysql-includes was given. |
b0322a85 | 15083 | if test "${with_mysql_includes+set}" = set; then : |
dd184caf | 15084 | withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval" |
15085 | ||
15086 | fi | |
d9898ee8 | 15087 | |
d9898ee8 | 15088 | |
15089 | for ac_prog in mysql_config | |
15090 | do | |
15091 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
15092 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 15094 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 15095 | if ${ac_cv_path_MYSQL_CONFIG+:} false; then : |
8d138742 | 15096 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15097 | else |
15098 | case $MYSQL_CONFIG in | |
15099 | [\\/]* | ?:[\\/]*) | |
15100 | ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. | |
15101 | ;; | |
15102 | *) | |
15103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15104 | for as_dir in $LPATH | |
15105 | do | |
15106 | IFS=$as_save_IFS | |
15107 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
15108 | for ac_exec_ext in '' $ac_executable_extensions; do |
15109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 15110 | ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
b0322a85 | 15111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 15112 | break 2 |
15113 | fi | |
15114 | done | |
b0322a85 | 15115 | done |
dd184caf | 15116 | IFS=$as_save_IFS |
d9898ee8 | 15117 | |
8d138742 CE |
15118 | ;; |
15119 | esac | |
15120 | fi | |
15121 | MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG | |
15122 | if test -n "$MYSQL_CONFIG"; then | |
b0322a85 | 15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 |
8d138742 CE |
15124 | $as_echo "$MYSQL_CONFIG" >&6; } |
15125 | else | |
b0322a85 | 15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
15127 | $as_echo "no" >&6; } |
15128 | fi | |
15129 | ||
15130 | ||
15131 | test -n "$MYSQL_CONFIG" && break | |
15132 | done | |
15133 | test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config" | |
15134 | ||
15135 | ||
15136 | if test -x "$MYSQL_CONFIG" | |
15137 | then | |
15138 | MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`" | |
15139 | MYSQL_LIBS="`$MYSQL_CONFIG --libs`" | |
15140 | ||
b0322a85 CE |
15141 | eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\"" |
15142 | eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\"" | |
15143 | fi | |
d9898ee8 | 15144 | |
b0322a85 CE |
15145 | if test "$doauthmysql" = "" |
15146 | then | |
15147 | LIBS="$MYSQL_LIBS $LIBS" | |
15148 | ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect" | |
15149 | if test "x$ac_cv_func_mysql_connect" = xyes; then : | |
15150 | doauthmysql="yes" | |
d9898ee8 | 15151 | |
b0322a85 | 15152 | fi |
d9898ee8 | 15153 | |
b0322a85 CE |
15154 | ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" |
15155 | if test "x$ac_cv_func_mysql_real_connect" = xyes; then : | |
15156 | doauthmysql="yes" | |
d9898ee8 | 15157 | |
d9898ee8 | 15158 | fi |
dd184caf | 15159 | |
b0322a85 | 15160 | LIBS="$saveLIBS" |
d9898ee8 | 15161 | fi |
b0322a85 CE |
15162 | |
15163 | if test "$doauthmysql" != "yes" | |
15164 | then | |
15165 | LIBAUTHMYSQL="" | |
15166 | HAVE_AUTHMYSQL=0 | |
15167 | else | |
15168 | saveLIBS="$LIBS" | |
15169 | LIBS="$MYSQL_LIBS $LIBS" | |
15170 | ac_fn_c_check_func "$LINENO" "mysql_connect" "ac_cv_func_mysql_connect" | |
15171 | if test "x$ac_cv_func_mysql_connect" = xyes; then : | |
15172 | LIBAUTHMYSQL="libauthmysql.la" | |
15173 | HAVE_AUTHMYSQL=1 | |
15174 | else | |
15175 | ||
15176 | ac_fn_c_check_func "$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect" | |
15177 | if test "x$ac_cv_func_mysql_real_connect" = xyes; then : | |
8d138742 CE |
15178 | LIBAUTHMYSQL="libauthmysql.la" |
15179 | HAVE_AUTHMYSQL=1 | |
15180 | else | |
b0322a85 | 15181 | as_fn_error $? "--with-authmysql specified but no mysqlclient.so" "$LINENO" 5 |
8d138742 CE |
15182 | |
15183 | fi | |
15184 | ||
15185 | ||
d9898ee8 | 15186 | |
15187 | fi | |
15188 | ||
15189 | LIBS="$saveLIBS" | |
8d138742 CE |
15190 | HAVE_AUTHMYSQL=1 |
15191 | CFLAGS="$MYSQL_CFLAGS $CFLAGS" | |
d9898ee8 | 15192 | fi |
15193 | ||
8d138742 CE |
15194 | |
15195 | if test "$HAVE_AUTHMYSQL" = 1; then | |
15196 | HAVE_AUTHMYSQL_TRUE= | |
15197 | HAVE_AUTHMYSQL_FALSE='#' | |
15198 | else | |
15199 | HAVE_AUTHMYSQL_TRUE='#' | |
15200 | HAVE_AUTHMYSQL_FALSE= | |
15201 | fi | |
15202 | ||
15203 | ||
15204 | ||
15205 | ||
15206 | ||
15207 | ||
b0322a85 CE |
15208 | # Check whether --with-authsqliterc was given. |
15209 | if test "${with_authsqliterc+set}" = set; then : | |
15210 | withval=$with_authsqliterc; authsqliterc="$withval" | |
15211 | else | |
15212 | authsqliterc="$pkgconfdir/authsqliterc" | |
15213 | fi | |
15214 | ||
15215 | ||
15216 | ||
15217 | ||
15218 | # Check whether --with-authsqlite was given. | |
15219 | if test "${with_authsqlite+set}" = set; then : | |
15220 | withval=$with_authsqlite; doauthsqlite="$withval" | |
15221 | fi | |
15222 | ||
15223 | ||
15224 | ||
15225 | # Check whether --with-sqlite-libs was given. | |
15226 | if test "${with_sqlite_libs+set}" = set; then : | |
15227 | withval=$with_sqlite_libs; SQLITE_LIBS="-lsqlite3" | |
15228 | ||
15229 | fi | |
15230 | ||
15231 | ||
15232 | # Check whether --with-sqlite-includes was given. | |
15233 | if test "${with_sqlite_includes+set}" = set; then : | |
15234 | withval=$with_sqlite_includes; SQLITE_CFLAGS="-I$withval" | |
15235 | ||
15236 | fi | |
15237 | ||
15238 | ||
15239 | if test "$doauthsqlite" = "" | |
15240 | then | |
15241 | SQLITE_CFLAGS="`pkg-config --cflags sqlite3 2>/dev/null`" | |
15242 | SQLITE_LIBS="`pkg-config --libs sqlite3 2>/dev/null`" | |
15243 | saveLIBS="$LIBS" | |
15244 | LIBS="$SQLITE_LIBS $LIBS" | |
15245 | ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" | |
15246 | if test "x$ac_cv_func_sqlite3_version" = xyes; then : | |
15247 | doauthsqlite="yes" | |
15248 | ||
15249 | fi | |
15250 | ||
15251 | LIBS="$saveLIBS" | |
15252 | fi | |
15253 | ||
15254 | if test "$doauthsqlite" != "yes" | |
15255 | then | |
15256 | SQLITE_LIBS="" | |
15257 | SQLITE_CFLAGS="" | |
15258 | HAVE_AUTHSQLITE=0 | |
15259 | LIBAUTHSQLITE="" | |
15260 | else | |
15261 | saveLIBS="$LIBS" | |
15262 | LIBS="$SQLITE_LIBS $LIBS" | |
15263 | ac_fn_c_check_func "$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version" | |
15264 | if test "x$ac_cv_func_sqlite3_version" = xyes; then : | |
15265 | : | |
15266 | else | |
15267 | as_fn_error $? "Cannot link with $SQLITE_LIBS" "$LINENO" 5 | |
15268 | ||
15269 | fi | |
15270 | ||
15271 | LIBS="$saveLIBS" | |
15272 | HAVE_AUTHSQLITE=1 | |
15273 | CFLAGS="$SQLITE_CFLAGS $CFLAGS" | |
15274 | LIBAUTHSQLITE="libauthsqlite.la" | |
15275 | ||
15276 | fi | |
15277 | ||
15278 | ||
15279 | if test "$HAVE_AUTHSQLITE" = 1; then | |
15280 | HAVE_AUTHSQLITE_TRUE= | |
15281 | HAVE_AUTHSQLITE_FALSE='#' | |
15282 | else | |
15283 | HAVE_AUTHSQLITE_TRUE='#' | |
15284 | HAVE_AUTHSQLITE_FALSE= | |
15285 | fi | |
15286 | ||
15287 | ||
15288 | ||
15289 | ||
15290 | ||
8d138742 CE |
15291 | |
15292 | ||
15293 | # Check whether --with-authcustom was given. | |
b0322a85 | 15294 | if test "${with_authcustom+set}" = set; then : |
8d138742 CE |
15295 | withval=$with_authcustom; doauthcustom="$withval" |
15296 | else | |
15297 | doauthcustom=yes | |
15298 | fi | |
15299 | ||
15300 | ||
15301 | LIBAUTHCUSTOM="" | |
15302 | ||
15303 | if test "$doauthcustom" = "yes" | |
d9898ee8 | 15304 | then |
8d138742 CE |
15305 | LIBAUTHCUSTOM="libauthcustom.la" |
15306 | fi | |
15307 | ||
15308 | if test "$AUTHCUSTOM" != ""; then | |
15309 | HAVE_CUSTOM_TRUE= | |
15310 | HAVE_CUSTOM_FALSE='#' | |
d9898ee8 | 15311 | else |
8d138742 CE |
15312 | HAVE_CUSTOM_TRUE='#' |
15313 | HAVE_CUSTOM_FALSE= | |
15314 | fi | |
15315 | ||
15316 | ||
15317 | ||
15318 | ||
15319 | ||
15320 | ||
15321 | ||
15322 | ||
15323 | ||
15324 | # Check whether --with-pipeprog was given. | |
b0322a85 | 15325 | if test "${with_pipeprog+set}" = set; then : |
8d138742 CE |
15326 | withval=$with_pipeprog; authProg="$withval" |
15327 | else | |
15328 | authProg="$pkgconfdir/authProg" | |
15329 | fi | |
15330 | ||
15331 | ||
15332 | ||
15333 | ||
15334 | # Check whether --with-authpipe was given. | |
b0322a85 | 15335 | if test "${with_authpipe+set}" = set; then : |
8d138742 CE |
15336 | withval=$with_authpipe; doauthpipe="$withval" |
15337 | else | |
15338 | doauthpipe=yes | |
15339 | fi | |
15340 | ||
15341 | ||
15342 | LIBAUTHPIPE="" | |
15343 | ||
15344 | if test "$doauthpipe" = "yes" | |
15345 | then | |
15346 | LIBAUTHPIPE="libauthpipe.la" | |
15347 | fi | |
15348 | ||
15349 | if test "$AUTHPIPE" != ""; then | |
15350 | HAVE_PIPE_TRUE= | |
15351 | HAVE_PIPE_FALSE='#' | |
15352 | else | |
15353 | HAVE_PIPE_TRUE='#' | |
15354 | HAVE_PIPE_FALSE= | |
15355 | fi | |
15356 | ||
15357 | ||
15358 | ||
15359 | ||
15360 | ||
b0322a85 | 15361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 15362 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 15363 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
15364 | $as_echo_n "(cached) " >&6 |
15365 | else | |
b0322a85 | 15366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15367 | /* end confdefs.h. */ |
15368 | #include <stdlib.h> | |
15369 | #include <stdarg.h> | |
15370 | #include <string.h> | |
15371 | #include <float.h> | |
15372 | ||
15373 | int | |
15374 | main () | |
15375 | { | |
15376 | ||
15377 | ; | |
15378 | return 0; | |
15379 | } | |
15380 | _ACEOF | |
b0322a85 | 15381 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
15382 | ac_cv_header_stdc=yes |
15383 | else | |
b0322a85 | 15384 | ac_cv_header_stdc=no |
8d138742 | 15385 | fi |
8d138742 CE |
15386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15387 | ||
15388 | if test $ac_cv_header_stdc = yes; then | |
15389 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 15390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15391 | /* end confdefs.h. */ |
15392 | #include <string.h> | |
15393 | ||
15394 | _ACEOF | |
15395 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
15396 | $EGREP "memchr" >/dev/null 2>&1; then : |
15397 | ||
8d138742 CE |
15398 | else |
15399 | ac_cv_header_stdc=no | |
15400 | fi | |
15401 | rm -f conftest* | |
15402 | ||
15403 | fi | |
15404 | ||
15405 | if test $ac_cv_header_stdc = yes; then | |
15406 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 15407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15408 | /* end confdefs.h. */ |
15409 | #include <stdlib.h> | |
15410 | ||
15411 | _ACEOF | |
15412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
15413 | $EGREP "free" >/dev/null 2>&1; then : |
15414 | ||
8d138742 CE |
15415 | else |
15416 | ac_cv_header_stdc=no | |
15417 | fi | |
15418 | rm -f conftest* | |
15419 | ||
15420 | fi | |
15421 | ||
15422 | if test $ac_cv_header_stdc = yes; then | |
15423 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 15424 | if test "$cross_compiling" = yes; then : |
8d138742 | 15425 | : |
d9898ee8 | 15426 | else |
b0322a85 | 15427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15428 | /* end confdefs.h. */ |
8d138742 CE |
15429 | #include <ctype.h> |
15430 | #include <stdlib.h> | |
15431 | #if ((' ' & 0x0FF) == 0x020) | |
15432 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15433 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
d9898ee8 | 15434 | #else |
8d138742 CE |
15435 | # define ISLOWER(c) \ |
15436 | (('a' <= (c) && (c) <= 'i') \ | |
15437 | || ('j' <= (c) && (c) <= 'r') \ | |
15438 | || ('s' <= (c) && (c) <= 'z')) | |
15439 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
d9898ee8 | 15440 | #endif |
15441 | ||
8d138742 | 15442 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
d9898ee8 | 15443 | int |
15444 | main () | |
15445 | { | |
8d138742 CE |
15446 | int i; |
15447 | for (i = 0; i < 256; i++) | |
15448 | if (XOR (islower (i), ISLOWER (i)) | |
b0322a85 CE |
15449 | || toupper (i) != TOUPPER (i)) |
15450 | return 2; | |
15451 | return 0; | |
15452 | } | |
15453 | _ACEOF | |
15454 | if ac_fn_c_try_run "$LINENO"; then : | |
15455 | ||
d9898ee8 | 15456 | else |
b0322a85 CE |
15457 | ac_cv_header_stdc=no |
15458 | fi | |
15459 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15460 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15461 | fi | |
d9898ee8 | 15462 | |
8d138742 | 15463 | fi |
b0322a85 CE |
15464 | fi |
15465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
15466 | $as_echo "$ac_cv_header_stdc" >&6; } | |
15467 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 15468 | |
b0322a85 | 15469 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
dd184caf | 15470 | |
b0322a85 CE |
15471 | fi |
15472 | ||
15473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 | |
15474 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } | |
15475 | if ${ac_cv_header_sys_wait_h+:} false; then : | |
8d138742 | 15476 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15477 | else |
b0322a85 CE |
15478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
15479 | /* end confdefs.h. */ | |
15480 | #include <sys/types.h> | |
15481 | #include <sys/wait.h> | |
15482 | #ifndef WEXITSTATUS | |
15483 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) | |
15484 | #endif | |
15485 | #ifndef WIFEXITED | |
15486 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
15487 | #endif | |
15488 | ||
15489 | int | |
15490 | main () | |
15491 | { | |
15492 | int s; | |
15493 | wait (&s); | |
15494 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
15495 | ; | |
15496 | return 0; | |
15497 | } | |
15498 | _ACEOF | |
15499 | if ac_fn_c_try_compile "$LINENO"; then : | |
15500 | ac_cv_header_sys_wait_h=yes | |
15501 | else | |
15502 | ac_cv_header_sys_wait_h=no | |
dd184caf | 15503 | fi |
b0322a85 CE |
15504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15505 | fi | |
15506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 | |
15507 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } | |
15508 | if test $ac_cv_header_sys_wait_h = yes; then | |
15509 | ||
15510 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h | |
dd184caf | 15511 | |
d9898ee8 | 15512 | fi |
b0322a85 CE |
15513 | |
15514 | for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h | |
15515 | do : | |
15516 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15517 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15518 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
15519 | cat >>confdefs.h <<_ACEOF |
15520 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15521 | _ACEOF | |
d9898ee8 | 15522 | |
d9898ee8 | 15523 | fi |
15524 | ||
8d138742 | 15525 | done |
d9898ee8 | 15526 | |
15527 | ||
b0322a85 | 15528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
8d138742 | 15529 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
b0322a85 | 15530 | if ${ac_cv_c_const+:} false; then : |
8d138742 | 15531 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15532 | else |
b0322a85 | 15533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15534 | /* end confdefs.h. */ |
d9898ee8 | 15535 | |
15536 | int | |
15537 | main () | |
15538 | { | |
b0322a85 | 15539 | |
8d138742 | 15540 | #ifndef __cplusplus |
b0322a85 | 15541 | /* Ultrix mips cc rejects this sort of thing. */ |
8d138742 | 15542 | typedef int charset[2]; |
b0322a85 | 15543 | const charset cs = { 0, 0 }; |
8d138742 CE |
15544 | /* SunOS 4.1.1 cc rejects this. */ |
15545 | char const *const *pcpcc; | |
15546 | char **ppc; | |
15547 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15548 | struct point {int x, y;}; | |
15549 | static struct point const zero = {0,0}; | |
15550 | /* AIX XL C 1.02.0.0 rejects this. | |
15551 | It does not let you subtract one const X* pointer from another in | |
15552 | an arm of an if-expression whose if-part is not a constant | |
15553 | expression */ | |
15554 | const char *g = "string"; | |
15555 | pcpcc = &g + (g ? g-g : 0); | |
15556 | /* HPUX 7.0 cc rejects these. */ | |
15557 | ++pcpcc; | |
15558 | ppc = (char**) pcpcc; | |
15559 | pcpcc = (char const *const *) ppc; | |
b0322a85 CE |
15560 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
15561 | char tx; | |
15562 | char *t = &tx; | |
8d138742 CE |
15563 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
15564 | ||
15565 | *t++ = 0; | |
15566 | if (s) return 0; | |
15567 | } | |
15568 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15569 | int x[] = {25, 17}; | |
15570 | const int *foo = &x[0]; | |
15571 | ++foo; | |
15572 | } | |
15573 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15574 | typedef const int *iptr; | |
15575 | iptr p = 0; | |
15576 | ++p; | |
15577 | } | |
b0322a85 | 15578 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
8d138742 | 15579 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
b0322a85 CE |
15580 | struct s { int j; const int *ap[3]; } bx; |
15581 | struct s *b = &bx; b->j = 5; | |
8d138742 CE |
15582 | } |
15583 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15584 | const int foo = 10; | |
15585 | if (!foo) return 0; | |
15586 | } | |
15587 | return !cs[0] && !zero.x; | |
15588 | #endif | |
d9898ee8 | 15589 | |
15590 | ; | |
15591 | return 0; | |
15592 | } | |
15593 | _ACEOF | |
b0322a85 | 15594 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 15595 | ac_cv_c_const=yes |
d9898ee8 | 15596 | else |
b0322a85 | 15597 | ac_cv_c_const=no |
d9898ee8 | 15598 | fi |
dd184caf | 15599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 | 15600 | fi |
b0322a85 | 15601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
8d138742 CE |
15602 | $as_echo "$ac_cv_c_const" >&6; } |
15603 | if test $ac_cv_c_const = no; then | |
d9898ee8 | 15604 | |
b0322a85 | 15605 | $as_echo "#define const /**/" >>confdefs.h |
d9898ee8 | 15606 | |
d9898ee8 | 15607 | fi |
8d138742 | 15608 | |
b0322a85 CE |
15609 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
15610 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
8d138742 | 15611 | |
8d138742 CE |
15612 | else |
15613 | ||
15614 | cat >>confdefs.h <<_ACEOF | |
15615 | #define pid_t int | |
15616 | _ACEOF | |
15617 | ||
d9898ee8 | 15618 | fi |
dd184caf | 15619 | |
b0322a85 | 15620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
8d138742 | 15621 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
b0322a85 | 15622 | if ${ac_cv_type_uid_t+:} false; then : |
8d138742 CE |
15623 | $as_echo_n "(cached) " >&6 |
15624 | else | |
b0322a85 | 15625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15626 | /* end confdefs.h. */ |
15627 | #include <sys/types.h> | |
dd184caf | 15628 | |
8d138742 CE |
15629 | _ACEOF |
15630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 | 15631 | $EGREP "uid_t" >/dev/null 2>&1; then : |
8d138742 CE |
15632 | ac_cv_type_uid_t=yes |
15633 | else | |
15634 | ac_cv_type_uid_t=no | |
d9898ee8 | 15635 | fi |
8d138742 CE |
15636 | rm -f conftest* |
15637 | ||
d9898ee8 | 15638 | fi |
b0322a85 | 15639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
8d138742 CE |
15640 | $as_echo "$ac_cv_type_uid_t" >&6; } |
15641 | if test $ac_cv_type_uid_t = no; then | |
d9898ee8 | 15642 | |
b0322a85 | 15643 | $as_echo "#define uid_t int" >>confdefs.h |
8d138742 CE |
15644 | |
15645 | ||
b0322a85 | 15646 | $as_echo "#define gid_t int" >>confdefs.h |
d9898ee8 | 15647 | |
15648 | fi | |
15649 | ||
8d138742 | 15650 | for ac_func in setsid setlogin |
b0322a85 CE |
15651 | do : |
15652 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15653 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
15654 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
15655 | cat >>confdefs.h <<_ACEOF | |
15656 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15657 | _ACEOF | |
15658 | ||
15659 | fi | |
15660 | done | |
8d138742 | 15661 | |
b0322a85 CE |
15662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
15663 | $as_echo_n "checking for crypt in -lcrypt... " >&6; } | |
15664 | if ${ac_cv_lib_crypt_crypt+:} false; then : | |
15665 | $as_echo_n "(cached) " >&6 | |
15666 | else | |
15667 | ac_check_lib_save_LIBS=$LIBS | |
15668 | LIBS="-lcrypt $LIBS" | |
15669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15670 | /* end confdefs.h. */ | |
8d138742 CE |
15671 | |
15672 | /* Override any GCC internal prototype to avoid an error. | |
15673 | Use char because int might match the return type of a GCC | |
15674 | builtin and then its argument prototype would still apply. */ | |
15675 | #ifdef __cplusplus | |
15676 | extern "C" | |
15677 | #endif | |
15678 | char crypt (); | |
8d138742 CE |
15679 | int |
15680 | main () | |
15681 | { | |
15682 | return crypt (); | |
15683 | ; | |
15684 | return 0; | |
15685 | } | |
d9898ee8 | 15686 | _ACEOF |
b0322a85 CE |
15687 | if ac_fn_c_try_link "$LINENO"; then : |
15688 | ac_cv_lib_crypt_crypt=yes | |
d9898ee8 | 15689 | else |
b0322a85 | 15690 | ac_cv_lib_crypt_crypt=no |
d9898ee8 | 15691 | fi |
b0322a85 CE |
15692 | rm -f core conftest.err conftest.$ac_objext \ |
15693 | conftest$ac_exeext conftest.$ac_ext | |
15694 | LIBS=$ac_check_lib_save_LIBS | |
15695 | fi | |
15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 | |
15697 | $as_echo "$ac_cv_lib_crypt_crypt" >&6; } | |
15698 | if test "x$ac_cv_lib_crypt_crypt" = xyes; then : | |
15699 | CRYPTLIBS="-lcrypt" | |
d9898ee8 | 15700 | fi |
b0322a85 CE |
15701 | |
15702 | saveLIBS="$LIBS" | |
15703 | LIBS="$CRYPTLIBS $LIBS" | |
15704 | ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" | |
15705 | if test "x$ac_cv_func_crypt" = xyes; then : | |
d9898ee8 | 15706 | |
8d138742 CE |
15707 | cat >>confdefs.h <<_ACEOF |
15708 | #define HAVE_CRYPT 1 | |
d9898ee8 | 15709 | _ACEOF |
15710 | ||
15711 | fi | |
15712 | ||
8d138742 | 15713 | LIBS="$saveLIBS" |
b0322a85 | 15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5 |
8d138742 | 15715 | $as_echo_n "checking for crypt() prototype... " >&6; } |
b0322a85 | 15716 | if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false; then : |
8d138742 | 15717 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15718 | else |
b0322a85 | 15719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
15720 | /* end confdefs.h. */ |
15721 | ||
15722 | #if HAVE_CRYPT_H | |
15723 | #include <crypt.h> | |
15724 | #endif | |
15725 | #if HAVE_UNISTD_H | |
15726 | #include <unistd.h> | |
15727 | #endif | |
15728 | int crypt(int, int); | |
15729 | ||
15730 | ||
15731 | int | |
15732 | main () | |
15733 | { | |
d9898ee8 | 15734 | |
15735 | ; | |
15736 | return 0; | |
15737 | } | |
15738 | _ACEOF | |
b0322a85 | 15739 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 15740 | userdb_cv_NEED_CRYPT_PROTOTYPE=1 |
d9898ee8 | 15741 | else |
b0322a85 | 15742 | userdb_cv_NEED_CRYPT_PROTOTYPE=0 |
d9898ee8 | 15743 | fi |
dd184caf | 15744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 CE |
15745 | |
15746 | ||
d9898ee8 | 15747 | fi |
b0322a85 | 15748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5 |
8d138742 | 15749 | $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; } |
d9898ee8 | 15750 | |
8d138742 CE |
15751 | |
15752 | cat >>confdefs.h <<_ACEOF | |
15753 | #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE | |
d9898ee8 | 15754 | _ACEOF |
15755 | ||
8d138742 CE |
15756 | |
15757 | ||
15758 | ||
15759 | ||
15760 | ||
15761 | ||
15762 | # Check whether --with-authdaemonrc was given. | |
b0322a85 | 15763 | if test "${with_authdaemonrc+set}" = set; then : |
8d138742 CE |
15764 | withval=$with_authdaemonrc; authdaemonrc="$withval" |
15765 | else | |
15766 | authdaemonrc="$pkgconfdir/authdaemonrc" | |
15767 | fi | |
15768 | ||
15769 | ||
15770 | ||
15771 | ||
15772 | # Check whether --with-authdaemonvar was given. | |
b0322a85 | 15773 | if test "${with_authdaemonvar+set}" = set; then : |
8d138742 CE |
15774 | withval=$with_authdaemonvar; authdaemonvar="$withval" |
15775 | else | |
15776 | authdaemonvar="$localstatedir/spool/authdaemon" | |
d9898ee8 | 15777 | fi |
15778 | ||
8d138742 CE |
15779 | |
15780 | ||
15781 | ||
15782 | ||
15783 | ||
15784 | rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h | |
15785 | ||
15786 | ||
15787 | result="" | |
15788 | ||
15789 | if test -x "$COURIERCONFIG" | |
15790 | then | |
15791 | $COURIERCONFIG >conftest.out || exit 1 | |
15792 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
15793 | . ./conftest2.out | |
15794 | rm -f conftest.out conftest2.out | |
15795 | ||
15796 | cmailuser="$mailuser" | |
15797 | cmailgroup="$mailgroup" | |
15798 | result=" (from courier-config)" | |
15799 | fi | |
15800 | ||
15801 | if test -x "$bindir/courierauthconfig" | |
15802 | then | |
15803 | $bindir/courierauthconfig --configfiles >conftest.out || exit 1 | |
15804 | sed -n '/^mail/p' <conftest.out >conftest2.out || exit 1 | |
15805 | . ./conftest2.out | |
15806 | rm -f conftest.out conftest2.out | |
15807 | ||
15808 | cmailuser="$mailuser" | |
15809 | cmailgroup="$mailgroup" | |
15810 | result=" (from previous courierauthconfig)" | |
15811 | fi | |
15812 | ||
15813 | ||
15814 | ||
15815 | LB='[' | |
15816 | RB=']' | |
15817 | ||
15818 | ||
15819 | ||
b0322a85 | 15820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5 |
8d138742 CE |
15821 | $as_echo_n "checking for mail userid... " >&6; } |
15822 | ||
15823 | ||
15824 | # Check whether --with-mailuser was given. | |
b0322a85 | 15825 | if test "${with_mailuser+set}" = set; then : |
8d138742 CE |
15826 | withval=$with_mailuser; mailuser="$withval" |
15827 | else | |
15828 | if test "$cmailuser" = "" | |
15829 | then | |
b0322a85 CE |
15830 | if test "$cross_compiling" = yes; then : |
15831 | as_fn_error $? "Must use --with-mailuser when cross compiling." "$LINENO" 5 | |
d9898ee8 | 15832 | else |
b0322a85 | 15833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15834 | /* end confdefs.h. */ |
8d138742 CE |
15835 | |
15836 | #include <stdio.h> | |
15837 | #include <pwd.h> | |
15838 | #include <stdlib.h> | |
15839 | ||
15840 | static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0}; | |
15841 | ||
15842 | int main() | |
d9898ee8 | 15843 | { |
8d138742 CE |
15844 | int i; |
15845 | FILE *f; | |
15846 | char *p; | |
15847 | ||
15848 | for (i=0; ids $LB i $RB; i++) | |
15849 | if (getpwnam(ids $LB i $RB)) break; | |
15850 | ||
15851 | f=fopen("conftest.out", "w"); | |
15852 | if (f && ids $LB i $RB) | |
15853 | { | |
15854 | fprintf(f, "%s\n", ids $LB i $RB); | |
15855 | fclose(f); | |
15856 | exit(0); | |
15857 | } | |
15858 | fclose(f); | |
15859 | exit (1); | |
15860 | return (1); | |
d9898ee8 | 15861 | } |
8d138742 | 15862 | |
d9898ee8 | 15863 | _ACEOF |
b0322a85 | 15864 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 15865 | mailuser=`cat conftest.out` |
d9898ee8 | 15866 | else |
b0322a85 | 15867 | as_fn_error use --with-mailuser. "Cannot determine mail user" "$LINENO" 5 |
d9898ee8 | 15868 | fi |
b0322a85 CE |
15869 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15870 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
d9898ee8 | 15871 | fi |
d9898ee8 | 15872 | |
8d138742 CE |
15873 | else |
15874 | mailuser="$cmailuser" | |
15875 | fi | |
15876 | ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" | |
d9898ee8 | 15877 | fi |
15878 | ||
8d138742 | 15879 | |
b0322a85 | 15880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5 |
8d138742 CE |
15881 | $as_echo "$mailuser $result" >&6; } |
15882 | ||
b0322a85 | 15883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5 |
8d138742 CE |
15884 | $as_echo_n "checking for mail group id... " >&6; } |
15885 | ||
15886 | ||
15887 | # Check whether --with-mailgroup was given. | |
b0322a85 | 15888 | if test "${with_mailgroup+set}" = set; then : |
8d138742 CE |
15889 | withval=$with_mailgroup; mailgroup="$withval" |
15890 | else | |
15891 | if test "$cmailgroup" = "" | |
15892 | then | |
b0322a85 CE |
15893 | if test "$cross_compiling" = yes; then : |
15894 | as_fn_error $? "Must use --with-mailgroup when cross compiling." "$LINENO" 5 | |
d9898ee8 | 15895 | else |
b0322a85 | 15896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15897 | /* end confdefs.h. */ |
8d138742 CE |
15898 | |
15899 | #include <stdio.h> | |
15900 | #include <grp.h> | |
15901 | #include <stdlib.h> | |
15902 | ||
15903 | static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0}; | |
15904 | ||
15905 | int main() | |
15906 | { | |
15907 | int i; | |
15908 | FILE *f; | |
15909 | ||
15910 | for (i=0; ids $LB i $RB; i++) | |
15911 | if (getgrnam(ids $LB i $RB)) break; | |
15912 | ||
15913 | f=fopen("conftest.out", "w"); | |
15914 | if (f && ids $LB i $RB) | |
15915 | { | |
15916 | fprintf(f, "%s\n", ids $LB i $RB); | |
15917 | fclose(f); | |
15918 | exit(0); | |
15919 | } | |
15920 | fclose(f); | |
15921 | exit (1); | |
15922 | return (1); | |
15923 | } | |
d9898ee8 | 15924 | |
15925 | _ACEOF | |
b0322a85 | 15926 | if ac_fn_c_try_run "$LINENO"; then : |
8d138742 | 15927 | mailgroup=`cat conftest.out` |
d9898ee8 | 15928 | else |
b0322a85 | 15929 | as_fn_error use --with-mailgroup. "Cannot determine mail group" "$LINENO" 5 |
d9898ee8 | 15930 | fi |
b0322a85 CE |
15931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15932 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 CE |
15933 | fi |
15934 | ||
8d138742 CE |
15935 | else |
15936 | mailgroup="$cmailgroup" | |
15937 | fi | |
15938 | ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" | |
d9898ee8 | 15939 | |
15940 | fi | |
d9898ee8 | 15941 | |
b0322a85 | 15942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5 |
8d138742 | 15943 | $as_echo "$mailgroup $result" >&6; } |
d9898ee8 | 15944 | |
15945 | ||
8d138742 CE |
15946 | rm -f conftest.out |
15947 | ||
15948 | ||
15949 | # Check whether --with-stdheaderdir was given. | |
b0322a85 | 15950 | if test "${with_stdheaderdir+set}" = set; then : |
8d138742 CE |
15951 | withval=$with_stdheaderdir; |
15952 | if test "$withval" = "no" | |
15953 | then | |
15954 | ||
15955 | cat >>confdefs.h <<_ACEOF | |
15956 | #define HAVE_NOSTDHEADERDIR 1 | |
d9898ee8 | 15957 | _ACEOF |
15958 | ||
8d138742 CE |
15959 | fi |
15960 | ||
d9898ee8 | 15961 | fi |
15962 | ||
8d138742 | 15963 | |
b0322a85 | 15964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
8d138742 | 15965 | $as_echo_n "checking for socklen_t... " >&6; } |
b0322a85 | 15966 | if ${authlib_cv_hassocklen_t+:} false; then : |
8d138742 | 15967 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 15968 | else |
b0322a85 | 15969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 15970 | /* end confdefs.h. */ |
8d138742 | 15971 | |
b0322a85 | 15972 | |
d9898ee8 | 15973 | #include <sys/types.h> |
8d138742 CE |
15974 | #include <sys/socket.h> |
15975 | ||
15976 | socklen_t sl_t; | |
d9898ee8 | 15977 | |
d9898ee8 | 15978 | _ACEOF |
b0322a85 | 15979 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 | 15980 | authlib_cv_hassocklen_t=yes |
d9898ee8 | 15981 | else |
b0322a85 | 15982 | authlib_cv_hassocklen_t=no |
d9898ee8 | 15983 | fi |
dd184caf | 15984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d138742 | 15985 | |
d9898ee8 | 15986 | fi |
b0322a85 | 15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5 |
8d138742 CE |
15988 | $as_echo "$authlib_cv_hassocklen_t" >&6; } |
15989 | ||
15990 | socklen_t="int" | |
15991 | ||
15992 | if test $authlib_cv_hassocklen_t = yes | |
15993 | then | |
15994 | : | |
15995 | else | |
d9898ee8 | 15996 | |
15997 | cat >>confdefs.h <<_ACEOF | |
8d138742 | 15998 | #define socklen_t int |
d9898ee8 | 15999 | _ACEOF |
16000 | ||
8d138742 CE |
16001 | fi |
16002 | ||
d9898ee8 | 16003 | |
8d138742 | 16004 | # Check whether --with-repository was given. |
b0322a85 | 16005 | if test "${with_repository+set}" = set; then : |
8d138742 CE |
16006 | withval=$with_repository; REPOSITORY="$withval" |
16007 | fi | |
d9898ee8 | 16008 | |
16009 | ||
16010 | ||
b0322a85 | 16011 | if test -d ${srcdir}/libs/docbook; then |
8d138742 CE |
16012 | HAVE_SGML_TRUE= |
16013 | HAVE_SGML_FALSE='#' | |
d9898ee8 | 16014 | else |
8d138742 CE |
16015 | HAVE_SGML_TRUE='#' |
16016 | HAVE_SGML_FALSE= | |
16017 | fi | |
d9898ee8 | 16018 | |
d50284c4 CE |
16019 | |
16020 | # This gets built by the make rule, and is not in the git repo | |
16021 | ||
16022 | for f in authdaemonrc.in | |
16023 | do | |
16024 | if test ! -f "$srcdir/$f" | |
16025 | then | |
16026 | cp -p "$srcdir/$f.git" "$srcdir/$f" | |
16027 | touch "$srcdir/$f.git" | |
16028 | fi | |
16029 | done | |
16030 | ||
16031 | subdirs="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog" | |
d9898ee8 | 16032 | |
d9898ee8 | 16033 | |
b0322a85 | 16034 | ac_config_files="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl" |
d9898ee8 | 16035 | |
8d138742 CE |
16036 | cat >confcache <<\_ACEOF |
16037 | # This file is a shell script that caches the results of configure | |
16038 | # tests run on this system so they can be shared between configure | |
16039 | # scripts and configure runs, see configure's option --config-cache. | |
16040 | # It is not useful on other systems. If it contains results you don't | |
16041 | # want to keep, you may remove or edit it. | |
16042 | # | |
16043 | # config.status only pays attention to the cache file if you give it | |
16044 | # the --recheck option to rerun configure. | |
16045 | # | |
16046 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16047 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16048 | # following values. | |
d9898ee8 | 16049 | |
d9898ee8 | 16050 | _ACEOF |
d9898ee8 | 16051 | |
8d138742 CE |
16052 | # The following way of writing the cache mishandles newlines in values, |
16053 | # but we know of no workaround that is simple, portable, and efficient. | |
16054 | # So, we kill variables containing newlines. | |
16055 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16056 | # and sets the high bit in the cache file unless we assign to the vars. | |
16057 | ( | |
16058 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16059 | eval ac_val=\$$ac_var | |
16060 | case $ac_val in #( | |
16061 | *${as_nl}*) | |
16062 | case $ac_var in #( | |
b0322a85 | 16063 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
16064 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
16065 | esac | |
16066 | case $ac_var in #( | |
16067 | _ | IFS | as_nl) ;; #( | |
16068 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 16069 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
16070 | esac ;; |
16071 | esac | |
16072 | done | |
dd184caf | 16073 | |
8d138742 CE |
16074 | (set) 2>&1 | |
16075 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16076 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
16077 | # `set' does not quote correctly, so add quotes: double-quote |
16078 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
16079 | sed -n \ |
16080 | "s/'/'\\\\''/g; | |
16081 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16082 | ;; #( | |
16083 | *) | |
16084 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16085 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16086 | ;; | |
16087 | esac | | |
16088 | sort | |
16089 | ) | | |
16090 | sed ' | |
16091 | /^ac_cv_env_/b end | |
16092 | t clear | |
16093 | :clear | |
16094 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16095 | t end | |
16096 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16097 | :end' >>confcache | |
16098 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16099 | if test -w "$cache_file"; then | |
b0322a85 CE |
16100 | if test "x$cache_file" != "x/dev/null"; then |
16101 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 16102 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
16103 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16104 | cat confcache >"$cache_file" | |
16105 | else | |
16106 | case $cache_file in #( | |
16107 | */* | ?:*) | |
16108 | mv -f confcache "$cache_file"$$ && | |
16109 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16110 | *) | |
16111 | mv -f confcache "$cache_file" ;; | |
16112 | esac | |
16113 | fi | |
16114 | fi | |
8d138742 | 16115 | else |
b0322a85 | 16116 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
16117 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
16118 | fi | |
d9898ee8 | 16119 | fi |
8d138742 | 16120 | rm -f confcache |
d9898ee8 | 16121 | |
8d138742 CE |
16122 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16123 | # Let make expand exec_prefix. | |
16124 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16125 | ||
16126 | DEFS=-DHAVE_CONFIG_H | |
16127 | ||
16128 | ac_libobjs= | |
16129 | ac_ltlibobjs= | |
d50284c4 | 16130 | U= |
8d138742 CE |
16131 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
16132 | # 1. Remove the extension, and $U if already installed. | |
16133 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16134 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
16135 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16136 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
16137 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
16138 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
d9898ee8 | 16139 | done |
8d138742 | 16140 | LIBOBJS=$ac_libobjs |
d9898ee8 | 16141 | |
8d138742 | 16142 | LTLIBOBJS=$ac_ltlibobjs |
d9898ee8 | 16143 | |
8d138742 | 16144 | |
b0322a85 CE |
16145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
16146 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
16147 | if test -n "$am_sleep_pid"; then | |
16148 | # Hide warnings about reused PIDs. | |
16149 | wait $am_sleep_pid 2>/dev/null | |
16150 | fi | |
16151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
16152 | $as_echo "done" >&6; } | |
8d138742 CE |
16153 | if test -n "$EXEEXT"; then |
16154 | am__EXEEXT_TRUE= | |
16155 | am__EXEEXT_FALSE='#' | |
d9898ee8 | 16156 | else |
8d138742 CE |
16157 | am__EXEEXT_TRUE='#' |
16158 | am__EXEEXT_FALSE= | |
16159 | fi | |
d9898ee8 | 16160 | |
8d138742 | 16161 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
b0322a85 CE |
16162 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
16163 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16164 | fi |
16165 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
16166 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
16167 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16168 | fi |
16169 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
b0322a85 CE |
16170 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
16171 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16172 | fi |
16173 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
b0322a85 CE |
16174 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
16175 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16176 | fi |
16177 | LT_CONFIG_H=courier_auth_config.h | |
16178 | ||
16179 | _ltdl_libobjs= | |
16180 | _ltdl_ltlibobjs= | |
16181 | if test -n "$_LT_LIBOBJS"; then | |
16182 | # Remove the extension. | |
16183 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
16184 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
16185 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
16186 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
16187 | done | |
16188 | fi | |
16189 | ltdl_LIBOBJS=$_ltdl_libobjs | |
16190 | ||
16191 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
16192 | ||
16193 | ||
16194 | if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then | |
b0322a85 CE |
16195 | as_fn_error $? "conditional \"HAVE_LDAP\" was never defined. |
16196 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 16197 | fi |
8d138742 | 16198 | if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then |
b0322a85 CE |
16199 | as_fn_error $? "conditional \"HAVE_AUTHPGSQL\" was never defined. |
16200 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 16201 | fi |
8d138742 | 16202 | if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then |
b0322a85 CE |
16203 | as_fn_error $? "conditional \"HAVE_AUTHMYSQL\" was never defined. |
16204 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
16205 | fi | |
16206 | if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then | |
16207 | as_fn_error $? "conditional \"HAVE_AUTHSQLITE\" was never defined. | |
16208 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16209 | fi |
16210 | if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then | |
b0322a85 CE |
16211 | as_fn_error $? "conditional \"HAVE_CUSTOM\" was never defined. |
16212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16213 | fi |
16214 | if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then | |
b0322a85 CE |
16215 | as_fn_error $? "conditional \"HAVE_PIPE\" was never defined. |
16216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
16217 | fi |
16218 | if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then | |
b0322a85 CE |
16219 | as_fn_error $? "conditional \"HAVE_SGML\" was never defined. |
16220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
d9898ee8 | 16221 | fi |
16222 | ||
b0322a85 | 16223 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
16224 | ac_write_fail=0 |
16225 | ac_clean_files_save=$ac_clean_files | |
16226 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 16227 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 16228 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
16229 | as_write_fail=0 |
16230 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
16231 | #! $SHELL |
16232 | # Generated by $as_me. | |
16233 | # Run this file to recreate the current configuration. | |
16234 | # Compiler output produced by configure, useful for debugging | |
16235 | # configure, is in config.log if it exists. | |
16236 | ||
16237 | debug=false | |
16238 | ac_cs_recheck=false | |
16239 | ac_cs_silent=false | |
d9898ee8 | 16240 | |
b0322a85 CE |
16241 | SHELL=\${CONFIG_SHELL-$SHELL} |
16242 | export SHELL | |
16243 | _ASEOF | |
16244 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16245 | ## -------------------- ## | |
16246 | ## M4sh Initialization. ## | |
16247 | ## -------------------- ## | |
d9898ee8 | 16248 | |
8d138742 CE |
16249 | # Be more Bourne compatible |
16250 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 16251 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
16252 | emulate sh |
16253 | NULLCMD=: | |
16254 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16255 | # is contrary to our usage. Disable this feature. | |
16256 | alias -g '${1+"$@"}'='"$@"' | |
16257 | setopt NO_GLOB_SUBST | |
16258 | else | |
b0322a85 CE |
16259 | case `(set -o) 2>/dev/null` in #( |
16260 | *posix*) : | |
16261 | set -o posix ;; #( | |
16262 | *) : | |
16263 | ;; | |
8d138742 | 16264 | esac |
8d138742 | 16265 | fi |
d9898ee8 | 16266 | |
d9898ee8 | 16267 | |
8d138742 CE |
16268 | as_nl=' |
16269 | ' | |
16270 | export as_nl | |
16271 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
16272 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
16273 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
16274 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
16275 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
16276 | # but without wasting forks for bash or zsh. | |
16277 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
16278 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
16279 | as_echo='print -r --' | |
16280 | as_echo_n='print -rn --' | |
16281 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
16282 | as_echo='printf %s\n' |
16283 | as_echo_n='printf %s' | |
16284 | else | |
16285 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
16286 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
16287 | as_echo_n='/usr/ucb/echo -n' | |
16288 | else | |
16289 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
16290 | as_echo_n_body='eval | |
16291 | arg=$1; | |
b0322a85 | 16292 | case $arg in #( |
8d138742 CE |
16293 | *"$as_nl"*) |
16294 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
16295 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
16296 | esac; | |
16297 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
16298 | ' | |
16299 | export as_echo_n_body | |
16300 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
16301 | fi | |
16302 | export as_echo_body | |
16303 | as_echo='sh -c $as_echo_body as_echo' | |
16304 | fi | |
d9898ee8 | 16305 | |
8d138742 CE |
16306 | # The user is always right. |
16307 | if test "${PATH_SEPARATOR+set}" != set; then | |
16308 | PATH_SEPARATOR=: | |
16309 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16310 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16311 | PATH_SEPARATOR=';' | |
16312 | } | |
d9898ee8 | 16313 | fi |
16314 | ||
d9898ee8 | 16315 | |
8d138742 CE |
16316 | # IFS |
16317 | # We need space, tab and new line, in precisely that order. Quoting is | |
16318 | # there to prevent editors from complaining about space-tab. | |
16319 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
16320 | # splitting by setting IFS to empty value.) | |
16321 | IFS=" "" $as_nl" | |
d9898ee8 | 16322 | |
8d138742 | 16323 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
16324 | as_myself= |
16325 | case $0 in #(( | |
8d138742 CE |
16326 | *[\\/]* ) as_myself=$0 ;; |
16327 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16328 | for as_dir in $PATH | |
16329 | do | |
16330 | IFS=$as_save_IFS | |
16331 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
16332 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
16333 | done | |
8d138742 | 16334 | IFS=$as_save_IFS |
d9898ee8 | 16335 | |
8d138742 | 16336 | ;; |
dd184caf | 16337 | esac |
8d138742 CE |
16338 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
16339 | # in which case we are not to be found in the path. | |
16340 | if test "x$as_myself" = x; then | |
16341 | as_myself=$0 | |
16342 | fi | |
16343 | if test ! -f "$as_myself"; then | |
16344 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 16345 | exit 1 |
d9898ee8 | 16346 | fi |
dd184caf | 16347 | |
b0322a85 CE |
16348 | # Unset variables that we do not need and which cause bugs (e.g. in |
16349 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
16350 | # suppresses any "Segmentation fault" message there. '((' could | |
16351 | # trigger a bug in pdksh 5.2.14. | |
16352 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
16353 | do eval test x\${$as_var+set} = xset \ | |
16354 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
16355 | done |
16356 | PS1='$ ' | |
16357 | PS2='> ' | |
16358 | PS4='+ ' | |
d9898ee8 | 16359 | |
8d138742 CE |
16360 | # NLS nuisances. |
16361 | LC_ALL=C | |
16362 | export LC_ALL | |
16363 | LANGUAGE=C | |
16364 | export LANGUAGE | |
16365 | ||
b0322a85 CE |
16366 | # CDPATH. |
16367 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16368 | ||
16369 | ||
16370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
16371 | # ---------------------------------------- | |
16372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16374 | # script with STATUS, using 1 if that was 0. | |
16375 | as_fn_error () | |
16376 | { | |
16377 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
16378 | if test "$4"; then | |
16379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
16381 | fi | |
16382 | $as_echo "$as_me: error: $2" >&2 | |
16383 | as_fn_exit $as_status | |
16384 | } # as_fn_error | |
16385 | ||
16386 | ||
16387 | # as_fn_set_status STATUS | |
16388 | # ----------------------- | |
16389 | # Set $? to STATUS, without forking. | |
16390 | as_fn_set_status () | |
16391 | { | |
16392 | return $1 | |
16393 | } # as_fn_set_status | |
16394 | ||
16395 | # as_fn_exit STATUS | |
16396 | # ----------------- | |
16397 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16398 | as_fn_exit () | |
16399 | { | |
16400 | set +e | |
16401 | as_fn_set_status $1 | |
16402 | exit $1 | |
16403 | } # as_fn_exit | |
16404 | ||
16405 | # as_fn_unset VAR | |
16406 | # --------------- | |
16407 | # Portably unset VAR. | |
16408 | as_fn_unset () | |
16409 | { | |
16410 | { eval $1=; unset $1;} | |
16411 | } | |
16412 | as_unset=as_fn_unset | |
16413 | # as_fn_append VAR VALUE | |
16414 | # ---------------------- | |
16415 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16416 | # advantage of any shell optimizations that allow amortized linear growth over | |
16417 | # repeated appends, instead of the typical quadratic growth present in naive | |
16418 | # implementations. | |
16419 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
16420 | eval 'as_fn_append () | |
16421 | { | |
16422 | eval $1+=\$2 | |
16423 | }' | |
16424 | else | |
16425 | as_fn_append () | |
16426 | { | |
16427 | eval $1=\$$1\$2 | |
16428 | } | |
16429 | fi # as_fn_append | |
16430 | ||
16431 | # as_fn_arith ARG... | |
16432 | # ------------------ | |
16433 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16434 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16435 | # must be portable across $(()) and expr. | |
16436 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
16437 | eval 'as_fn_arith () | |
16438 | { | |
16439 | as_val=$(( $* )) | |
16440 | }' | |
16441 | else | |
16442 | as_fn_arith () | |
16443 | { | |
16444 | as_val=`expr "$@" || test $? -eq 1` | |
16445 | } | |
16446 | fi # as_fn_arith | |
16447 | ||
16448 | ||
8d138742 CE |
16449 | if expr a : '\(a\)' >/dev/null 2>&1 && |
16450 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16451 | as_expr=expr | |
16452 | else | |
16453 | as_expr=false | |
16454 | fi | |
d9898ee8 | 16455 | |
8d138742 CE |
16456 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
16457 | as_basename=basename | |
16458 | else | |
16459 | as_basename=false | |
d9898ee8 | 16460 | fi |
d9898ee8 | 16461 | |
b0322a85 CE |
16462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
16463 | as_dirname=dirname | |
16464 | else | |
16465 | as_dirname=false | |
16466 | fi | |
d9898ee8 | 16467 | |
8d138742 CE |
16468 | as_me=`$as_basename -- "$0" || |
16469 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16470 | X"$0" : 'X\(//\)$' \| \ | |
16471 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16472 | $as_echo X/"$0" | | |
16473 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16474 | s//\1/ | |
16475 | q | |
16476 | } | |
16477 | /^X\/\(\/\/\)$/{ | |
16478 | s//\1/ | |
16479 | q | |
16480 | } | |
16481 | /^X\/\(\/\).*/{ | |
16482 | s//\1/ | |
16483 | q | |
16484 | } | |
16485 | s/.*/./; q'` | |
16486 | ||
b0322a85 CE |
16487 | # Avoid depending upon Character Ranges. |
16488 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16489 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16490 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16491 | as_cr_digits='0123456789' | |
16492 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 16493 | |
8d138742 | 16494 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 16495 | case `echo -n x` in #((((( |
8d138742 | 16496 | -n*) |
b0322a85 | 16497 | case `echo 'xy\c'` in |
8d138742 | 16498 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
16499 | xy) ECHO_C='\c';; |
16500 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16501 | ECHO_T=' ';; | |
8d138742 CE |
16502 | esac;; |
16503 | *) | |
16504 | ECHO_N='-n';; | |
16505 | esac | |
dd184caf | 16506 | |
8d138742 CE |
16507 | rm -f conf$$ conf$$.exe conf$$.file |
16508 | if test -d conf$$.dir; then | |
16509 | rm -f conf$$.dir/conf$$.file | |
16510 | else | |
16511 | rm -f conf$$.dir | |
16512 | mkdir conf$$.dir 2>/dev/null | |
16513 | fi | |
16514 | if (echo >conf$$.file) 2>/dev/null; then | |
16515 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16516 | as_ln_s='ln -s' | |
16517 | # ... but there are two gotchas: | |
16518 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
16519 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
b0322a85 | 16520 | # In both cases, we have to default to `cp -pR'. |
8d138742 | 16521 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
b0322a85 | 16522 | as_ln_s='cp -pR' |
8d138742 CE |
16523 | elif ln conf$$.file conf$$ 2>/dev/null; then |
16524 | as_ln_s=ln | |
16525 | else | |
b0322a85 | 16526 | as_ln_s='cp -pR' |
8d138742 CE |
16527 | fi |
16528 | else | |
b0322a85 | 16529 | as_ln_s='cp -pR' |
8d138742 CE |
16530 | fi |
16531 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16532 | rmdir conf$$.dir 2>/dev/null | |
d9898ee8 | 16533 | |
16534 | ||
b0322a85 CE |
16535 | # as_fn_mkdir_p |
16536 | # ------------- | |
16537 | # Create "$as_dir" as a directory, including parents if necessary. | |
16538 | as_fn_mkdir_p () | |
16539 | { | |
16540 | ||
16541 | case $as_dir in #( | |
16542 | -*) as_dir=./$as_dir;; | |
16543 | esac | |
16544 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16545 | as_dirs= | |
16546 | while :; do | |
16547 | case $as_dir in #( | |
16548 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16549 | *) as_qdir=$as_dir;; | |
16550 | esac | |
16551 | as_dirs="'$as_qdir' $as_dirs" | |
16552 | as_dir=`$as_dirname -- "$as_dir" || | |
16553 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16554 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
16555 | X"$as_dir" : 'X\(//\)$' \| \ | |
16556 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
16557 | $as_echo X"$as_dir" | | |
16558 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16559 | s//\1/ | |
16560 | q | |
16561 | } | |
16562 | /^X\(\/\/\)[^/].*/{ | |
16563 | s//\1/ | |
16564 | q | |
16565 | } | |
16566 | /^X\(\/\/\)$/{ | |
16567 | s//\1/ | |
16568 | q | |
16569 | } | |
16570 | /^X\(\/\).*/{ | |
16571 | s//\1/ | |
16572 | q | |
16573 | } | |
16574 | s/.*/./; q'` | |
16575 | test -d "$as_dir" && break | |
16576 | done | |
16577 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
16578 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
16579 | ||
16580 | ||
16581 | } # as_fn_mkdir_p | |
16582 | if mkdir -p . 2>/dev/null; then | |
16583 | as_mkdir_p='mkdir -p "$as_dir"' | |
8d138742 | 16584 | else |
b0322a85 CE |
16585 | test -d ./-p && rmdir ./-p |
16586 | as_mkdir_p=false | |
8d138742 | 16587 | fi |
b0322a85 CE |
16588 | |
16589 | ||
16590 | # as_fn_executable_p FILE | |
16591 | # ----------------------- | |
16592 | # Test if FILE is an executable regular file. | |
16593 | as_fn_executable_p () | |
16594 | { | |
16595 | test -f "$1" && test -x "$1" | |
16596 | } # as_fn_executable_p | |
16597 | as_test_x='test -x' | |
16598 | as_executable_p=as_fn_executable_p | |
d9898ee8 | 16599 | |
8d138742 CE |
16600 | # Sed expression to map a string onto a valid CPP name. |
16601 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 16602 | |
8d138742 CE |
16603 | # Sed expression to map a string onto a valid variable name. |
16604 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 16605 | |
d9898ee8 | 16606 | |
8d138742 | 16607 | exec 6>&1 |
b0322a85 CE |
16608 | ## ----------------------------------- ## |
16609 | ## Main body of $CONFIG_STATUS script. ## | |
16610 | ## ----------------------------------- ## | |
16611 | _ASEOF | |
16612 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 16613 | |
b0322a85 CE |
16614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16615 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
16616 | # report actual input values of CONFIG_FILES etc. instead of their |
16617 | # values after options handling. | |
16618 | ac_log=" | |
d50284c4 | 16619 | This file was extended by courier-authlib $as_me 0.66.4, which was |
b0322a85 | 16620 | generated by GNU Autoconf 2.69. Invocation command line was |
d9898ee8 | 16621 | |
8d138742 CE |
16622 | CONFIG_FILES = $CONFIG_FILES |
16623 | CONFIG_HEADERS = $CONFIG_HEADERS | |
16624 | CONFIG_LINKS = $CONFIG_LINKS | |
16625 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16626 | $ $0 $@ | |
d9898ee8 | 16627 | |
8d138742 CE |
16628 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
16629 | " | |
d9898ee8 | 16630 | |
8d138742 | 16631 | _ACEOF |
d9898ee8 | 16632 | |
8d138742 CE |
16633 | case $ac_config_files in *" |
16634 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16635 | esac | |
d9898ee8 | 16636 | |
8d138742 CE |
16637 | case $ac_config_headers in *" |
16638 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
16639 | esac | |
d9898ee8 | 16640 | |
16641 | ||
8d138742 CE |
16642 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16643 | # Files that config.status was made for. | |
16644 | config_files="$ac_config_files" | |
16645 | config_headers="$ac_config_headers" | |
16646 | config_commands="$ac_config_commands" | |
d9898ee8 | 16647 | |
8d138742 | 16648 | _ACEOF |
d9898ee8 | 16649 | |
8d138742 CE |
16650 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16651 | ac_cs_usage="\ | |
b0322a85 CE |
16652 | \`$as_me' instantiates files and other configuration actions |
16653 | from templates according to the current configuration. Unless the files | |
16654 | and actions are specified as TAGs, all are instantiated by default. | |
d9898ee8 | 16655 | |
b0322a85 | 16656 | Usage: $0 [OPTION]... [TAG]... |
d9898ee8 | 16657 | |
8d138742 CE |
16658 | -h, --help print this help, then exit |
16659 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 16660 | --config print configuration, then exit |
8d138742 CE |
16661 | -q, --quiet, --silent |
16662 | do not print progress messages | |
16663 | -d, --debug don't remove temporary files | |
16664 | --recheck update $as_me by reconfiguring in the same conditions | |
16665 | --file=FILE[:TEMPLATE] | |
16666 | instantiate the configuration file FILE | |
16667 | --header=FILE[:TEMPLATE] | |
16668 | instantiate the configuration header FILE | |
d9898ee8 | 16669 | |
8d138742 CE |
16670 | Configuration files: |
16671 | $config_files | |
d9898ee8 | 16672 | |
8d138742 CE |
16673 | Configuration headers: |
16674 | $config_headers | |
d9898ee8 | 16675 | |
8d138742 CE |
16676 | Configuration commands: |
16677 | $config_commands | |
d9898ee8 | 16678 | |
b0322a85 | 16679 | Report bugs to <courier-users@lists.sourceforge.net>." |
d9898ee8 | 16680 | |
8d138742 CE |
16681 | _ACEOF |
16682 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 16683 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 | 16684 | ac_cs_version="\\ |
d50284c4 | 16685 | courier-authlib config.status 0.66.4 |
b0322a85 CE |
16686 | configured by $0, generated by GNU Autoconf 2.69, |
16687 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 16688 | |
b0322a85 | 16689 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
16690 | This config.status script is free software; the Free Software Foundation |
16691 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 16692 | |
8d138742 CE |
16693 | ac_pwd='$ac_pwd' |
16694 | srcdir='$srcdir' | |
16695 | INSTALL='$INSTALL' | |
16696 | MKDIR_P='$MKDIR_P' | |
16697 | AWK='$AWK' | |
16698 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 16699 | _ACEOF |
d9898ee8 | 16700 | |
8d138742 CE |
16701 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16702 | # The default lists apply if the user does not specify any file. | |
16703 | ac_need_defaults=: | |
16704 | while test $# != 0 | |
16705 | do | |
16706 | case $1 in | |
b0322a85 | 16707 | --*=?*) |
8d138742 CE |
16708 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
16709 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16710 | ac_shift=: | |
16711 | ;; | |
b0322a85 CE |
16712 | --*=) |
16713 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16714 | ac_optarg= | |
16715 | ac_shift=: | |
16716 | ;; | |
8d138742 CE |
16717 | *) |
16718 | ac_option=$1 | |
16719 | ac_optarg=$2 | |
16720 | ac_shift=shift | |
16721 | ;; | |
16722 | esac | |
16723 | ||
16724 | case $ac_option in | |
16725 | # Handling of the options. | |
16726 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16727 | ac_cs_recheck=: ;; | |
16728 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16729 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
16730 | --config | --confi | --conf | --con | --co | --c ) |
16731 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
16732 | --debug | --debu | --deb | --de | --d | -d ) |
16733 | debug=: ;; | |
16734 | --file | --fil | --fi | --f ) | |
16735 | $ac_shift | |
16736 | case $ac_optarg in | |
16737 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 16738 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 16739 | esac |
b0322a85 | 16740 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
16741 | ac_need_defaults=false;; |
16742 | --header | --heade | --head | --hea ) | |
16743 | $ac_shift | |
16744 | case $ac_optarg in | |
16745 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16746 | esac | |
b0322a85 | 16747 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
16748 | ac_need_defaults=false;; |
16749 | --he | --h) | |
16750 | # Conflict between --help and --header | |
b0322a85 CE |
16751 | as_fn_error $? "ambiguous option: \`$1' |
16752 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
16753 | --help | --hel | -h ) |
16754 | $as_echo "$ac_cs_usage"; exit ;; | |
16755 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16756 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16757 | ac_cs_silent=: ;; | |
dd184caf | 16758 | |
8d138742 | 16759 | # This is an error. |
b0322a85 CE |
16760 | -*) as_fn_error $? "unrecognized option: \`$1' |
16761 | Try \`$0 --help' for more information." ;; | |
dd184caf | 16762 | |
b0322a85 | 16763 | *) as_fn_append ac_config_targets " $1" |
8d138742 | 16764 | ac_need_defaults=false ;; |
d9898ee8 | 16765 | |
8d138742 CE |
16766 | esac |
16767 | shift | |
16768 | done | |
d9898ee8 | 16769 | |
8d138742 | 16770 | ac_configure_extra_args= |
d9898ee8 | 16771 | |
8d138742 CE |
16772 | if $ac_cs_silent; then |
16773 | exec 6>/dev/null | |
16774 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16775 | fi | |
d9898ee8 | 16776 | |
8d138742 CE |
16777 | _ACEOF |
16778 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16779 | if \$ac_cs_recheck; then | |
b0322a85 | 16780 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
16781 | shift |
16782 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16783 | CONFIG_SHELL='$SHELL' | |
16784 | export CONFIG_SHELL | |
16785 | exec "\$@" | |
16786 | fi | |
dd184caf | 16787 | |
d9898ee8 | 16788 | _ACEOF |
8d138742 CE |
16789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16790 | exec 5>>config.log | |
16791 | { | |
16792 | echo | |
16793 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16794 | ## Running $as_me. ## | |
16795 | _ASBOX | |
16796 | $as_echo "$ac_log" | |
16797 | } >&5 | |
d9898ee8 | 16798 | |
8d138742 CE |
16799 | _ACEOF |
16800 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16801 | # | |
16802 | # INIT-COMMANDS | |
16803 | # | |
16804 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 16805 | |
d9898ee8 | 16806 | |
8d138742 CE |
16807 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
16808 | # if CDPATH is set. | |
16809 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 16810 | |
8d138742 CE |
16811 | sed_quote_subst='$sed_quote_subst' |
16812 | double_quote_subst='$double_quote_subst' | |
16813 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
16814 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
16815 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16816 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16817 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16818 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16819 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 16820 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
16821 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
16822 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16823 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
16824 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16825 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16826 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16827 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16828 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16829 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16830 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16831 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16832 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16833 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16834 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16835 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16836 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16837 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16838 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16839 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16840 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16841 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16842 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16843 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16844 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16845 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16846 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16847 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16848 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16849 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16850 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16851 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
16852 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
16853 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
16854 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
16855 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16856 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16857 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
16858 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16859 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16860 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16861 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16862 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16863 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16864 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16865 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16866 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16867 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16868 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16869 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 16870 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
16871 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
16872 | 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"`' | |
d50284c4 | 16873 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
16874 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
16875 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 16876 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
16877 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
16878 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16879 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16880 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16881 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16882 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16883 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16884 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16885 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
16886 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16887 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16888 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16889 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16890 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16891 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16892 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16893 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16894 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16895 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16896 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16897 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16898 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16899 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16900 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16901 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16902 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16903 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16904 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16905 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16906 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16907 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16908 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16909 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16910 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16911 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16912 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16913 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16914 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16915 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16916 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16917 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16918 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16919 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16920 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16921 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16922 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
16923 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16924 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16925 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16926 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16927 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16928 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16929 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16930 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16931 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16932 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16933 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16934 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16935 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16936 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16937 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16938 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16939 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16940 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
16941 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
16942 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
16943 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
16944 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16945 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16946 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16947 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16948 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
16949 | |
16950 | LTCC='$LTCC' | |
16951 | LTCFLAGS='$LTCFLAGS' | |
16952 | compiler='$compiler_DEFAULT' | |
16953 | ||
b0322a85 CE |
16954 | # A function that is used when there is no print builtin or printf. |
16955 | func_fallback_echo () | |
16956 | { | |
16957 | eval 'cat <<_LTECHO_EOF | |
16958 | \$1 | |
16959 | _LTECHO_EOF' | |
16960 | } | |
16961 | ||
8d138742 | 16962 | # Quote evaled strings. |
b0322a85 CE |
16963 | for var in SHELL \ |
16964 | ECHO \ | |
16965 | PATH_SEPARATOR \ | |
16966 | SED \ | |
8d138742 CE |
16967 | GREP \ |
16968 | EGREP \ | |
16969 | FGREP \ | |
16970 | LD \ | |
16971 | NM \ | |
16972 | LN_S \ | |
16973 | lt_SP2NL \ | |
16974 | lt_NL2SP \ | |
16975 | reload_flag \ | |
16976 | OBJDUMP \ | |
16977 | deplibs_check_method \ | |
16978 | file_magic_cmd \ | |
b0322a85 CE |
16979 | file_magic_glob \ |
16980 | want_nocaseglob \ | |
16981 | DLLTOOL \ | |
16982 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
16983 | AR \ |
16984 | AR_FLAGS \ | |
b0322a85 | 16985 | archiver_list_spec \ |
8d138742 CE |
16986 | STRIP \ |
16987 | RANLIB \ | |
16988 | CC \ | |
16989 | CFLAGS \ | |
16990 | compiler \ | |
16991 | lt_cv_sys_global_symbol_pipe \ | |
16992 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 16993 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
16994 | lt_cv_sys_global_symbol_to_c_name_address \ |
16995 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 16996 | lt_cv_nm_interface \ |
b0322a85 | 16997 | nm_file_list_spec \ |
d50284c4 | 16998 | lt_cv_truncate_bin \ |
8d138742 | 16999 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 17000 | lt_prog_compiler_pic \ |
b0322a85 | 17001 | lt_prog_compiler_wl \ |
8d138742 CE |
17002 | lt_prog_compiler_static \ |
17003 | lt_cv_prog_compiler_c_o \ | |
17004 | need_locks \ | |
b0322a85 | 17005 | MANIFEST_TOOL \ |
8d138742 CE |
17006 | DSYMUTIL \ |
17007 | NMEDIT \ | |
17008 | LIPO \ | |
17009 | OTOOL \ | |
17010 | OTOOL64 \ | |
17011 | shrext_cmds \ | |
17012 | export_dynamic_flag_spec \ | |
17013 | whole_archive_flag_spec \ | |
17014 | compiler_needs_object \ | |
17015 | with_gnu_ld \ | |
17016 | allow_undefined_flag \ | |
17017 | no_undefined_flag \ | |
17018 | hardcode_libdir_flag_spec \ | |
8d138742 | 17019 | hardcode_libdir_separator \ |
8d138742 CE |
17020 | exclude_expsyms \ |
17021 | include_expsyms \ | |
17022 | file_list_spec \ | |
17023 | variables_saved_for_relink \ | |
17024 | libname_spec \ | |
17025 | library_names_spec \ | |
17026 | soname_spec \ | |
b0322a85 | 17027 | install_override_mode \ |
8d138742 CE |
17028 | finish_eval \ |
17029 | old_striplib \ | |
17030 | striplib; do | |
b0322a85 | 17031 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 17032 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 17033 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
17034 | ;; |
17035 | *) | |
17036 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17037 | ;; | |
17038 | esac | |
17039 | done | |
d9898ee8 | 17040 | |
8d138742 CE |
17041 | # Double-quote double-evaled strings. |
17042 | for var in reload_cmds \ | |
17043 | old_postinstall_cmds \ | |
17044 | old_postuninstall_cmds \ | |
17045 | old_archive_cmds \ | |
17046 | extract_expsyms_cmds \ | |
17047 | old_archive_from_new_cmds \ | |
17048 | old_archive_from_expsyms_cmds \ | |
17049 | archive_cmds \ | |
17050 | archive_expsym_cmds \ | |
17051 | module_cmds \ | |
17052 | module_expsym_cmds \ | |
17053 | export_symbols_cmds \ | |
17054 | prelink_cmds \ | |
b0322a85 | 17055 | postlink_cmds \ |
8d138742 CE |
17056 | postinstall_cmds \ |
17057 | postuninstall_cmds \ | |
17058 | finish_cmds \ | |
17059 | sys_lib_search_path_spec \ | |
d50284c4 CE |
17060 | configure_time_dlsearch_path \ |
17061 | configure_time_lt_sys_library_path; do | |
b0322a85 | 17062 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 17063 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 17064 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
17065 | ;; |
17066 | *) | |
17067 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
17068 | ;; | |
17069 | esac | |
17070 | done | |
d9898ee8 | 17071 | |
8d138742 | 17072 | ac_aux_dir='$ac_aux_dir' |
8d138742 | 17073 | |
d50284c4 | 17074 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 17075 | # commands through without removal of \ escapes INIT. |
d50284c4 | 17076 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 17077 | setopt NO_GLOB_SUBST |
d9898ee8 | 17078 | fi |
dd184caf | 17079 | |
17080 | ||
8d138742 CE |
17081 | PACKAGE='$PACKAGE' |
17082 | VERSION='$VERSION' | |
8d138742 CE |
17083 | RM='$RM' |
17084 | ofile='$ofile' | |
d9898ee8 | 17085 | |
dd184caf | 17086 | |
d9898ee8 | 17087 | |
17088 | ||
8d138742 | 17089 | _ACEOF |
d9898ee8 | 17090 | |
8d138742 | 17091 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d9898ee8 | 17092 | |
8d138742 CE |
17093 | # Handling of arguments. |
17094 | for ac_config_target in $ac_config_targets | |
17095 | do | |
17096 | case $ac_config_target in | |
17097 | "courier_auth_config.h") CONFIG_HEADERS="$CONFIG_HEADERS courier_auth_config.h" ;; | |
17098 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
17099 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
17100 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17101 | "authdaemond") CONFIG_FILES="$CONFIG_FILES authdaemond" ;; | |
17102 | "authdaemonrc") CONFIG_FILES="$CONFIG_FILES authdaemonrc" ;; | |
17103 | "authsystem.passwd") CONFIG_FILES="$CONFIG_FILES authsystem.passwd" ;; | |
17104 | "README.authdebug.html") CONFIG_FILES="$CONFIG_FILES README.authdebug.html" ;; | |
17105 | "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;; | |
17106 | "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; | |
17107 | "authmigrate") CONFIG_FILES="$CONFIG_FILES authmigrate" ;; | |
17108 | "courier-authlib.spec") CONFIG_FILES="$CONFIG_FILES courier-authlib.spec" ;; | |
17109 | "courier-authlib.lpspec") CONFIG_FILES="$CONFIG_FILES courier-authlib.lpspec" ;; | |
17110 | "courier-authlib.sysvinit") CONFIG_FILES="$CONFIG_FILES courier-authlib.sysvinit" ;; | |
b0322a85 | 17111 | "courier-authlib.service") CONFIG_FILES="$CONFIG_FILES courier-authlib.service" ;; |
8d138742 | 17112 | "userdb-test-cram-md5.pl") CONFIG_FILES="$CONFIG_FILES userdb-test-cram-md5.pl" ;; |
d9898ee8 | 17113 | |
b0322a85 | 17114 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
17115 | esac |
17116 | done | |
d9898ee8 | 17117 | |
d9898ee8 | 17118 | |
8d138742 CE |
17119 | # If the user did not use the arguments to specify the items to instantiate, |
17120 | # then the envvar interface is used. Set only those that are not. | |
17121 | # We use the long form for the default assignment because of an extremely | |
17122 | # bizarre bug on SunOS 4.1.3. | |
17123 | if $ac_need_defaults; then | |
17124 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
17125 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
17126 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
dd184caf | 17127 | fi |
17128 | ||
8d138742 CE |
17129 | # Have a temporary directory for convenience. Make it in the build tree |
17130 | # simply because there is no reason against having it here, and in addition, | |
17131 | # creating and moving files from /tmp can sometimes cause problems. | |
17132 | # Hook for its removal unless debugging. | |
17133 | # Note that there is a small window in which the directory will not be cleaned: | |
17134 | # after its creation but before its name has been assigned to `$tmp'. | |
17135 | $debug || | |
17136 | { | |
b0322a85 | 17137 | tmp= ac_tmp= |
8d138742 | 17138 | trap 'exit_status=$? |
b0322a85 CE |
17139 | : "${ac_tmp:=$tmp}" |
17140 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 17141 | ' 0 |
b0322a85 | 17142 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
17143 | } |
17144 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 17145 | |
8d138742 CE |
17146 | { |
17147 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 17148 | test -d "$tmp" |
8d138742 CE |
17149 | } || |
17150 | { | |
17151 | tmp=./conf$$-$RANDOM | |
17152 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
17153 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
17154 | ac_tmp=$tmp | |
d9898ee8 | 17155 | |
8d138742 CE |
17156 | # Set up the scripts for CONFIG_FILES section. |
17157 | # No need to generate them if there are no CONFIG_FILES. | |
17158 | # This happens for instance with `./config.status config.h'. | |
17159 | if test -n "$CONFIG_FILES"; then | |
d9898ee8 | 17160 | |
d9898ee8 | 17161 | |
b0322a85 CE |
17162 | ac_cr=`echo X | tr X '\015'` |
17163 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17164 | # But we know of no other shell where ac_cr would be empty at this | |
17165 | # point, so we can use a bashism as a fallback. | |
17166 | if test "x$ac_cr" = x; then | |
17167 | eval ac_cr=\$\'\\r\' | |
17168 | fi | |
8d138742 CE |
17169 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
17170 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17171 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 17172 | else |
8d138742 | 17173 | ac_cs_awk_cr=$ac_cr |
d9898ee8 | 17174 | fi |
dd184caf | 17175 | |
b0322a85 | 17176 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
8d138742 | 17177 | _ACEOF |
d9898ee8 | 17178 | |
d9898ee8 | 17179 | |
8d138742 CE |
17180 | { |
17181 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17182 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17183 | echo "_ACEOF" | |
17184 | } >conf$$subs.sh || | |
b0322a85 CE |
17185 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
17186 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
17187 | ac_delim='%!_!# ' |
17188 | for ac_last_try in false false false false false :; do | |
17189 | . ./conf$$subs.sh || | |
b0322a85 | 17190 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
17191 | |
17192 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17193 | if test $ac_delim_n = $ac_delim_num; then | |
17194 | break | |
17195 | elif $ac_last_try; then | |
b0322a85 | 17196 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8d138742 CE |
17197 | else |
17198 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17199 | fi | |
17200 | done | |
17201 | rm -f conf$$subs.sh | |
17202 | ||
17203 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 17204 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
17205 | _ACEOF |
17206 | sed -n ' | |
17207 | h | |
17208 | s/^/S["/; s/!.*/"]=/ | |
17209 | p | |
17210 | g | |
17211 | s/^[^!]*!// | |
17212 | :repl | |
17213 | t repl | |
17214 | s/'"$ac_delim"'$// | |
17215 | t delim | |
17216 | :nl | |
17217 | h | |
b0322a85 | 17218 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
17219 | t more1 |
17220 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17221 | p | |
17222 | n | |
17223 | b repl | |
17224 | :more1 | |
17225 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17226 | p | |
17227 | g | |
17228 | s/.\{148\}// | |
17229 | t nl | |
17230 | :delim | |
17231 | h | |
b0322a85 | 17232 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
17233 | t more2 |
17234 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17235 | p | |
17236 | b | |
17237 | :more2 | |
17238 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17239 | p | |
17240 | g | |
17241 | s/.\{148\}// | |
17242 | t delim | |
17243 | ' <conf$$subs.awk | sed ' | |
17244 | /^[^""]/{ | |
17245 | N | |
17246 | s/\n// | |
17247 | } | |
17248 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17249 | rm -f conf$$subs.awk | |
17250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17251 | _ACAWK | |
b0322a85 | 17252 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
17253 | for (key in S) S_is_set[key] = 1 |
17254 | FS = "\a" | |
17255 | ||
17256 | } | |
17257 | { | |
17258 | line = $ 0 | |
17259 | nfields = split(line, field, "@") | |
17260 | substed = 0 | |
17261 | len = length(field[1]) | |
17262 | for (i = 2; i < nfields; i++) { | |
17263 | key = field[i] | |
17264 | keylen = length(key) | |
17265 | if (S_is_set[key]) { | |
17266 | value = S[key] | |
17267 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17268 | len += length(value) + length(field[++i]) | |
17269 | substed = 1 | |
17270 | } else | |
17271 | len += 1 + keylen | |
17272 | } | |
17273 | ||
17274 | print line | |
17275 | } | |
d9898ee8 | 17276 | |
8d138742 CE |
17277 | _ACAWK |
17278 | _ACEOF | |
17279 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17280 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17281 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 17282 | else |
8d138742 | 17283 | cat |
b0322a85 CE |
17284 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
17285 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
d9898ee8 | 17286 | _ACEOF |
17287 | ||
b0322a85 CE |
17288 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
17289 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
17290 | # trailing colons and then remove the whole line if VPATH becomes empty |
17291 | # (actually we leave an empty line to preserve line numbers). | |
17292 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
17293 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
17294 | h | |
17295 | s/// | |
17296 | s/^/:/ | |
17297 | s/[ ]*$/:/ | |
17298 | s/:\$(srcdir):/:/g | |
17299 | s/:\${srcdir}:/:/g | |
17300 | s/:@srcdir@:/:/g | |
17301 | s/^:*// | |
8d138742 | 17302 | s/:*$// |
b0322a85 CE |
17303 | x |
17304 | s/\(=[ ]*\).*/\1/ | |
17305 | G | |
17306 | s/\n// | |
8d138742 CE |
17307 | s/^[^=]*=[ ]*$// |
17308 | }' | |
d9898ee8 | 17309 | fi |
17310 | ||
8d138742 CE |
17311 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17312 | fi # test -n "$CONFIG_FILES" | |
d9898ee8 | 17313 | |
8d138742 CE |
17314 | # Set up the scripts for CONFIG_HEADERS section. |
17315 | # No need to generate them if there are no CONFIG_HEADERS. | |
17316 | # This happens for instance with `./config.status Makefile'. | |
17317 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 17318 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 CE |
17319 | BEGIN { |
17320 | _ACEOF | |
d9898ee8 | 17321 | |
8d138742 CE |
17322 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
17323 | # here-document in config.status, that substitutes the proper values into | |
17324 | # config.h.in to produce config.h. | |
d9898ee8 | 17325 | |
8d138742 CE |
17326 | # Create a delimiter string that does not exist in confdefs.h, to ease |
17327 | # handling of long lines. | |
17328 | ac_delim='%!_!# ' | |
17329 | for ac_last_try in false false :; do | |
b0322a85 CE |
17330 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
17331 | if test -z "$ac_tt"; then | |
8d138742 CE |
17332 | break |
17333 | elif $ac_last_try; then | |
b0322a85 | 17334 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
17335 | else |
17336 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17337 | fi | |
17338 | done | |
d9898ee8 | 17339 | |
8d138742 CE |
17340 | # For the awk script, D is an array of macro values keyed by name, |
17341 | # likewise P contains macro parameters if any. Preserve backslash | |
17342 | # newline sequences. | |
d9898ee8 | 17343 | |
8d138742 CE |
17344 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
17345 | sed -n ' | |
17346 | s/.\{148\}/&'"$ac_delim"'/g | |
17347 | t rset | |
17348 | :rset | |
17349 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17350 | t def | |
17351 | d | |
17352 | :def | |
17353 | s/\\$// | |
17354 | t bsnl | |
17355 | s/["\\]/\\&/g | |
17356 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17357 | D["\1"]=" \3"/p | |
17358 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17359 | d | |
17360 | :bsnl | |
17361 | s/["\\]/\\&/g | |
17362 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17363 | D["\1"]=" \3\\\\\\n"\\/p | |
17364 | t cont | |
17365 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17366 | t cont | |
17367 | d | |
17368 | :cont | |
17369 | n | |
17370 | s/.\{148\}/&'"$ac_delim"'/g | |
17371 | t clear | |
17372 | :clear | |
17373 | s/\\$// | |
17374 | t bsnlc | |
17375 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17376 | d | |
17377 | :bsnlc | |
17378 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17379 | b cont | |
17380 | ' <confdefs.h | sed ' | |
17381 | s/'"$ac_delim"'/"\\\ | |
17382 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17383 | ||
17384 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17385 | for (key in D) D_is_set[key] = 1 | |
17386 | FS = "\a" | |
17387 | } | |
17388 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17389 | line = \$ 0 | |
17390 | split(line, arg, " ") | |
17391 | if (arg[1] == "#") { | |
17392 | defundef = arg[2] | |
17393 | mac1 = arg[3] | |
17394 | } else { | |
17395 | defundef = substr(arg[1], 2) | |
17396 | mac1 = arg[2] | |
17397 | } | |
17398 | split(mac1, mac2, "(") #) | |
17399 | macro = mac2[1] | |
17400 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17401 | if (D_is_set[macro]) { | |
17402 | # Preserve the white space surrounding the "#". | |
17403 | print prefix "define", macro P[macro] D[macro] | |
17404 | next | |
17405 | } else { | |
17406 | # Replace #undef with comments. This is necessary, for example, | |
17407 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17408 | # on some systems where configure will not decide to define it. | |
17409 | if (defundef == "undef") { | |
17410 | print "/*", prefix defundef, macro, "*/" | |
17411 | next | |
17412 | } | |
17413 | } | |
17414 | } | |
17415 | { print } | |
17416 | _ACAWK | |
17417 | _ACEOF | |
17418 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 17419 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 17420 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 17421 | |
17422 | ||
8d138742 CE |
17423 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
17424 | shift | |
17425 | for ac_tag | |
17426 | do | |
17427 | case $ac_tag in | |
17428 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17429 | esac | |
17430 | case $ac_mode$ac_tag in | |
17431 | :[FHL]*:*);; | |
b0322a85 | 17432 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
17433 | :[FH]-) ac_tag=-:-;; |
17434 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17435 | esac | |
17436 | ac_save_IFS=$IFS | |
17437 | IFS=: | |
17438 | set x $ac_tag | |
17439 | IFS=$ac_save_IFS | |
17440 | shift | |
17441 | ac_file=$1 | |
17442 | shift | |
d9898ee8 | 17443 | |
8d138742 CE |
17444 | case $ac_mode in |
17445 | :L) ac_source=$1;; | |
17446 | :[FH]) | |
17447 | ac_file_inputs= | |
17448 | for ac_f | |
17449 | do | |
17450 | case $ac_f in | |
b0322a85 | 17451 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
17452 | *) # Look for the file first in the build tree, then in the source tree |
17453 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17454 | # because $ac_f cannot contain `:'. | |
17455 | test -f "$ac_f" || | |
17456 | case $ac_f in | |
17457 | [\\/$]*) false;; | |
17458 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17459 | esac || | |
b0322a85 | 17460 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
17461 | esac |
17462 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 17463 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 17464 | done |
d9898ee8 | 17465 | |
8d138742 CE |
17466 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
17467 | # use $as_me), people would be surprised to read: | |
17468 | # /* config.h. Generated by config.status. */ | |
17469 | configure_input='Generated from '` | |
17470 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17471 | `' by configure.' | |
17472 | if test x"$ac_file" != x-; then | |
17473 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 17474 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
17475 | $as_echo "$as_me: creating $ac_file" >&6;} |
17476 | fi | |
17477 | # Neutralize special characters interpreted by sed in replacement strings. | |
17478 | case $configure_input in #( | |
17479 | *\&* | *\|* | *\\* ) | |
17480 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
17481 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17482 | *) ac_sed_conf_input=$configure_input;; | |
17483 | esac | |
d9898ee8 | 17484 | |
8d138742 | 17485 | case $ac_tag in |
b0322a85 CE |
17486 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
17487 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
dd184caf | 17488 | esac |
8d138742 CE |
17489 | ;; |
17490 | esac | |
dd184caf | 17491 | |
8d138742 CE |
17492 | ac_dir=`$as_dirname -- "$ac_file" || |
17493 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17494 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17495 | X"$ac_file" : 'X\(//\)$' \| \ | |
17496 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17497 | $as_echo X"$ac_file" | | |
17498 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17499 | s//\1/ | |
17500 | q | |
17501 | } | |
17502 | /^X\(\/\/\)[^/].*/{ | |
17503 | s//\1/ | |
17504 | q | |
17505 | } | |
17506 | /^X\(\/\/\)$/{ | |
17507 | s//\1/ | |
17508 | q | |
17509 | } | |
17510 | /^X\(\/\).*/{ | |
17511 | s//\1/ | |
17512 | q | |
17513 | } | |
17514 | s/.*/./; q'` | |
b0322a85 | 17515 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 CE |
17516 | ac_builddir=. |
17517 | ||
17518 | case "$ac_dir" in | |
17519 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17520 | *) | |
17521 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
17522 | # A ".." for each directory in $ac_dir_suffix. | |
17523 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17524 | case $ac_top_builddir_sub in | |
17525 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17526 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17527 | esac ;; | |
17528 | esac | |
17529 | ac_abs_top_builddir=$ac_pwd | |
17530 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17531 | # for backward compatibility: | |
17532 | ac_top_builddir=$ac_top_build_prefix | |
17533 | ||
17534 | case $srcdir in | |
17535 | .) # We are building in place. | |
17536 | ac_srcdir=. | |
17537 | ac_top_srcdir=$ac_top_builddir_sub | |
17538 | ac_abs_top_srcdir=$ac_pwd ;; | |
17539 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17540 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17541 | ac_top_srcdir=$srcdir | |
17542 | ac_abs_top_srcdir=$srcdir ;; | |
17543 | *) # Relative name. | |
17544 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17545 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17546 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17547 | esac | |
17548 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 17549 | |
d9898ee8 | 17550 | |
8d138742 CE |
17551 | case $ac_mode in |
17552 | :F) | |
17553 | # | |
17554 | # CONFIG_FILE | |
17555 | # | |
d9898ee8 | 17556 | |
8d138742 CE |
17557 | case $INSTALL in |
17558 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17559 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17560 | esac | |
17561 | ac_MKDIR_P=$MKDIR_P | |
17562 | case $MKDIR_P in | |
17563 | [\\/$]* | ?:[\\/]* ) ;; | |
17564 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17565 | esac | |
17566 | _ACEOF | |
d9898ee8 | 17567 | |
8d138742 CE |
17568 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
17569 | # If the template does not know about datarootdir, expand it. | |
17570 | # FIXME: This hack should be removed a few years after 2.60. | |
17571 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
17572 | ac_sed_dataroot=' |
17573 | /datarootdir/ { | |
17574 | p | |
17575 | q | |
17576 | } | |
17577 | /@datadir@/p | |
17578 | /@docdir@/p | |
17579 | /@infodir@/p | |
17580 | /@localedir@/p | |
b0322a85 | 17581 | /@mandir@/p' |
8d138742 CE |
17582 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
17583 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17584 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
17586 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
17587 | _ACEOF | |
17588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17589 | ac_datarootdir_hack=' | |
17590 | s&@datadir@&$datadir&g | |
17591 | s&@docdir@&$docdir&g | |
17592 | s&@infodir@&$infodir&g | |
17593 | s&@localedir@&$localedir&g | |
17594 | s&@mandir@&$mandir&g | |
b0322a85 | 17595 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
17596 | esac |
17597 | _ACEOF | |
d9898ee8 | 17598 | |
8d138742 CE |
17599 | # Neutralize VPATH when `$srcdir' = `.'. |
17600 | # Shell code in configure.ac might set extrasub. | |
17601 | # FIXME: do we really want to maintain this feature? | |
17602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17603 | ac_sed_extra="$ac_vpsub | |
17604 | $extrasub | |
17605 | _ACEOF | |
17606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17607 | :t | |
17608 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17609 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17610 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17611 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17612 | s&@srcdir@&$ac_srcdir&;t t | |
17613 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17614 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17615 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17616 | s&@builddir@&$ac_builddir&;t t | |
17617 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17618 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17619 | s&@INSTALL@&$ac_INSTALL&;t t | |
17620 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17621 | $ac_datarootdir_hack | |
17622 | " | |
b0322a85 CE |
17623 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
17624 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
17625 | |
17626 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b0322a85 CE |
17627 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
17628 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17629 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
17630 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
17631 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 17632 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 17633 | which seems to be undefined. Please make sure it is defined" >&2;} |
8d138742 | 17634 | |
b0322a85 | 17635 | rm -f "$ac_tmp/stdin" |
8d138742 | 17636 | case $ac_file in |
b0322a85 CE |
17637 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
17638 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 17639 | esac \ |
b0322a85 | 17640 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
17641 | ;; |
17642 | :H) | |
17643 | # | |
17644 | # CONFIG_HEADER | |
17645 | # | |
17646 | if test x"$ac_file" != x-; then | |
17647 | { | |
17648 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
17649 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
17650 | } >"$ac_tmp/config.h" \ | |
17651 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17652 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
17654 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
17655 | else | |
17656 | rm -f "$ac_file" | |
b0322a85 CE |
17657 | mv "$ac_tmp/config.h" "$ac_file" \ |
17658 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
17659 | fi |
17660 | else | |
17661 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
17662 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
17663 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
17664 | fi |
17665 | # Compute "$ac_file"'s index in $config_headers. | |
17666 | _am_arg="$ac_file" | |
17667 | _am_stamp_count=1 | |
17668 | for _am_header in $config_headers :; do | |
17669 | case $_am_header in | |
17670 | $_am_arg | $_am_arg:* ) | |
17671 | break ;; | |
17672 | * ) | |
17673 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
17674 | esac | |
17675 | done | |
17676 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
17677 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17678 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
17679 | X"$_am_arg" : 'X\(//\)$' \| \ | |
17680 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
17681 | $as_echo X"$_am_arg" | | |
17682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17683 | s//\1/ | |
17684 | q | |
17685 | } | |
17686 | /^X\(\/\/\)[^/].*/{ | |
17687 | s//\1/ | |
17688 | q | |
17689 | } | |
17690 | /^X\(\/\/\)$/{ | |
17691 | s//\1/ | |
17692 | q | |
17693 | } | |
17694 | /^X\(\/\).*/{ | |
17695 | s//\1/ | |
17696 | q | |
17697 | } | |
17698 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
17699 | ;; | |
17700 | ||
b0322a85 | 17701 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
17702 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
17703 | ;; | |
17704 | esac | |
17705 | ||
17706 | ||
17707 | case $ac_file$ac_mode in | |
17708 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 17709 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
17710 | # are listed without --file. Let's play safe and only enable the eval |
17711 | # if we detect the quoting. | |
17712 | case $CONFIG_FILES in | |
17713 | *\'*) eval set x "$CONFIG_FILES" ;; | |
17714 | *) set x $CONFIG_FILES ;; | |
17715 | esac | |
17716 | shift | |
17717 | for mf | |
17718 | do | |
17719 | # Strip MF so we end up with the name of the file. | |
17720 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17721 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 17722 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
17723 | # some people rename them; so instead we look at the file content. |
17724 | # Grep'ing the first line is not enough: some people post-process | |
17725 | # each Makefile.in and add a new line on top of each file to say so. | |
17726 | # Grep'ing the whole file is not good either: AIX grep has a line | |
17727 | # limit of 2048, but all sed's we know have understand at least 4000. | |
17728 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17729 | dirpart=`$as_dirname -- "$mf" || | |
17730 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17731 | X"$mf" : 'X\(//\)[^/]' \| \ | |
17732 | X"$mf" : 'X\(//\)$' \| \ | |
17733 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17734 | $as_echo X"$mf" | | |
17735 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17736 | s//\1/ | |
17737 | q | |
17738 | } | |
17739 | /^X\(\/\/\)[^/].*/{ | |
17740 | s//\1/ | |
17741 | q | |
17742 | } | |
17743 | /^X\(\/\/\)$/{ | |
17744 | s//\1/ | |
17745 | q | |
17746 | } | |
17747 | /^X\(\/\).*/{ | |
17748 | s//\1/ | |
17749 | q | |
17750 | } | |
17751 | s/.*/./; q'` | |
17752 | else | |
17753 | continue | |
17754 | fi | |
17755 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 17756 | # from the Makefile without running 'make'. |
8d138742 CE |
17757 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
17758 | test -z "$DEPDIR" && continue | |
17759 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 17760 | test -z "$am__include" && continue |
8d138742 | 17761 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
17762 | # Find all dependency output files, they are included files with |
17763 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17764 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
17765 | # expansion. | |
17766 | for file in `sed -n " | |
17767 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 17768 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
17769 | # Make sure the directory exists. |
17770 | test -f "$dirpart/$file" && continue | |
17771 | fdir=`$as_dirname -- "$file" || | |
17772 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17773 | X"$file" : 'X\(//\)[^/]' \| \ | |
17774 | X"$file" : 'X\(//\)$' \| \ | |
17775 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17776 | $as_echo X"$file" | | |
17777 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17778 | s//\1/ | |
17779 | q | |
17780 | } | |
17781 | /^X\(\/\/\)[^/].*/{ | |
17782 | s//\1/ | |
17783 | q | |
17784 | } | |
17785 | /^X\(\/\/\)$/{ | |
17786 | s//\1/ | |
17787 | q | |
17788 | } | |
17789 | /^X\(\/\).*/{ | |
17790 | s//\1/ | |
17791 | q | |
17792 | } | |
17793 | s/.*/./; q'` | |
b0322a85 | 17794 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
17795 | # echo "creating $dirpart/$file" |
17796 | echo '# dummy' > "$dirpart/$file" | |
17797 | done | |
17798 | done | |
17799 | } | |
17800 | ;; | |
17801 | "libtool":C) | |
d9898ee8 | 17802 | |
d50284c4 | 17803 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 17804 | # commands through without removal of \ escapes. |
d50284c4 | 17805 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
17806 | setopt NO_GLOB_SUBST |
17807 | fi | |
17808 | ||
d50284c4 | 17809 | cfgfile=${ofile}T |
8d138742 CE |
17810 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
17811 | $RM "$cfgfile" | |
17812 | ||
17813 | cat <<_LT_EOF >> "$cfgfile" | |
d9898ee8 | 17814 | #! $SHELL |
d50284c4 | 17815 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
17816 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
17817 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
17818 | |
17819 | # Provide generalized library-building support services. | |
17820 | # Written by Gordon Matzigkeit, 1996 | |
17821 | ||
17822 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
17823 | # This is free software; see the source for copying conditions. There is NO | |
17824 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
17825 | ||
17826 | # GNU Libtool is free software; you can redistribute it and/or modify | |
17827 | # it under the terms of the GNU General Public License as published by | |
17828 | # the Free Software Foundation; either version 2 of of the License, or | |
17829 | # (at your option) any later version. | |
8d138742 | 17830 | # |
d50284c4 CE |
17831 | # As a special exception to the GNU General Public License, if you |
17832 | # distribute this file as part of a program or library that is built | |
17833 | # using GNU Libtool, you may include this file under the same | |
17834 | # distribution terms that you use for the rest of that program. | |
8d138742 | 17835 | # |
d50284c4 CE |
17836 | # GNU Libtool is distributed in the hope that it will be useful, but |
17837 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
17838 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17839 | # GNU General Public License for more details. | |
17840 | # | |
17841 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 17842 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 17843 | |
d9898ee8 | 17844 | |
8d138742 | 17845 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
17846 | available_tags='' |
17847 | ||
17848 | # Configured defaults for sys_lib_dlsearch_path munging. | |
17849 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
dd184caf | 17850 | |
8d138742 | 17851 | # ### BEGIN LIBTOOL CONFIG |
dd184caf | 17852 | |
8d138742 CE |
17853 | # Which release of libtool.m4 was used? |
17854 | macro_version=$macro_version | |
17855 | macro_revision=$macro_revision | |
dd184caf | 17856 | |
8d138742 CE |
17857 | # Whether or not to build shared libraries. |
17858 | build_libtool_libs=$enable_shared | |
dd184caf | 17859 | |
8d138742 CE |
17860 | # Whether or not to build static libraries. |
17861 | build_old_libs=$enable_static | |
dd184caf | 17862 | |
8d138742 CE |
17863 | # What type of objects to build. |
17864 | pic_mode=$pic_mode | |
dd184caf | 17865 | |
8d138742 CE |
17866 | # Whether or not to optimize for fast installation. |
17867 | fast_install=$enable_fast_install | |
d9898ee8 | 17868 | |
d50284c4 CE |
17869 | # Shared archive member basename,for filename based shared library versioning on AIX. |
17870 | shared_archive_member_spec=$shared_archive_member_spec | |
17871 | ||
b0322a85 CE |
17872 | # Shell to use when invoking shell scripts. |
17873 | SHELL=$lt_SHELL | |
17874 | ||
17875 | # An echo program that protects backslashes. | |
17876 | ECHO=$lt_ECHO | |
17877 | ||
17878 | # The PATH separator for the build system. | |
17879 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
17880 | ||
8d138742 CE |
17881 | # The host system. |
17882 | host_alias=$host_alias | |
17883 | host=$host | |
17884 | host_os=$host_os | |
d9898ee8 | 17885 | |
8d138742 CE |
17886 | # The build system. |
17887 | build_alias=$build_alias | |
17888 | build=$build | |
17889 | build_os=$build_os | |
d9898ee8 | 17890 | |
8d138742 CE |
17891 | # A sed program that does not truncate output. |
17892 | SED=$lt_SED | |
dd184caf | 17893 | |
8d138742 CE |
17894 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
17895 | Xsed="\$SED -e 1s/^X//" | |
dd184caf | 17896 | |
8d138742 CE |
17897 | # A grep program that handles long lines. |
17898 | GREP=$lt_GREP | |
dd184caf | 17899 | |
8d138742 CE |
17900 | # An ERE matcher. |
17901 | EGREP=$lt_EGREP | |
d9898ee8 | 17902 | |
8d138742 CE |
17903 | # A literal string matcher. |
17904 | FGREP=$lt_FGREP | |
d9898ee8 | 17905 | |
8d138742 CE |
17906 | # A BSD- or MS-compatible name lister. |
17907 | NM=$lt_NM | |
d9898ee8 | 17908 | |
8d138742 CE |
17909 | # Whether we need soft or hard links. |
17910 | LN_S=$lt_LN_S | |
d9898ee8 | 17911 | |
8d138742 CE |
17912 | # What is the maximum length of a command? |
17913 | max_cmd_len=$max_cmd_len | |
d9898ee8 | 17914 | |
8d138742 CE |
17915 | # Object file suffix (normally "o"). |
17916 | objext=$ac_objext | |
d9898ee8 | 17917 | |
8d138742 CE |
17918 | # Executable file suffix (normally ""). |
17919 | exeext=$exeext | |
d9898ee8 | 17920 | |
8d138742 CE |
17921 | # whether the shell understands "unset". |
17922 | lt_unset=$lt_unset | |
d9898ee8 | 17923 | |
8d138742 CE |
17924 | # turn spaces into newlines. |
17925 | SP2NL=$lt_lt_SP2NL | |
d9898ee8 | 17926 | |
8d138742 CE |
17927 | # turn newlines into spaces. |
17928 | NL2SP=$lt_lt_NL2SP | |
d9898ee8 | 17929 | |
b0322a85 CE |
17930 | # convert \$build file names to \$host format. |
17931 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
17932 | ||
17933 | # convert \$build files to toolchain format. | |
17934 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
d9898ee8 | 17935 | |
8d138742 CE |
17936 | # An object symbol dumper. |
17937 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 17938 | |
8d138742 CE |
17939 | # Method to check whether dependent libraries are shared objects. |
17940 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 17941 | |
b0322a85 | 17942 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 17943 | file_magic_cmd=$lt_file_magic_cmd |
dd184caf | 17944 | |
b0322a85 CE |
17945 | # How to find potential files when deplibs_check_method = "file_magic". |
17946 | file_magic_glob=$lt_file_magic_glob | |
17947 | ||
17948 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
17949 | want_nocaseglob=$lt_want_nocaseglob | |
17950 | ||
17951 | # DLL creation program. | |
17952 | DLLTOOL=$lt_DLLTOOL | |
17953 | ||
17954 | # Command to associate shared and link libraries. | |
17955 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
17956 | ||
8d138742 CE |
17957 | # The archiver. |
17958 | AR=$lt_AR | |
b0322a85 CE |
17959 | |
17960 | # Flags to create an archive. | |
8d138742 | 17961 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 17962 | |
b0322a85 CE |
17963 | # How to feed a file listing to the archiver. |
17964 | archiver_list_spec=$lt_archiver_list_spec | |
17965 | ||
8d138742 CE |
17966 | # A symbol stripping program. |
17967 | STRIP=$lt_STRIP | |
17968 | ||
17969 | # Commands used to install an old-style archive. | |
17970 | RANLIB=$lt_RANLIB | |
17971 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17972 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17973 | ||
b0322a85 CE |
17974 | # Whether to use a lock for old archive extraction. |
17975 | lock_old_archive_extraction=$lock_old_archive_extraction | |
17976 | ||
8d138742 CE |
17977 | # A C compiler. |
17978 | LTCC=$lt_CC | |
17979 | ||
17980 | # LTCC compiler flags. | |
17981 | LTCFLAGS=$lt_CFLAGS | |
17982 | ||
17983 | # Take the output of nm and produce a listing of raw symbols and C names. | |
17984 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17985 | ||
17986 | # Transform the output of nm in a proper C declaration. | |
17987 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17988 | ||
d50284c4 CE |
17989 | # Transform the output of nm into a list of symbols to manually relocate. |
17990 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
17991 | ||
8d138742 CE |
17992 | # Transform the output of nm in a C name address pair. |
17993 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17994 | ||
17995 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17996 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17997 | ||
d50284c4 CE |
17998 | # The name lister interface. |
17999 | nm_interface=$lt_lt_cv_nm_interface | |
18000 | ||
b0322a85 CE |
18001 | # Specify filename containing input files for \$NM. |
18002 | nm_file_list_spec=$lt_nm_file_list_spec | |
8d138742 | 18003 | |
d50284c4 | 18004 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 18005 | lt_sysroot=$lt_sysroot |
8d138742 | 18006 | |
d50284c4 CE |
18007 | # Command to truncate a binary pipe. |
18008 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
18009 | ||
b0322a85 CE |
18010 | # The name of the directory that contains temporary libtool files. |
18011 | objdir=$objdir | |
8d138742 CE |
18012 | |
18013 | # Used to examine libraries when file_magic_cmd begins with "file". | |
18014 | MAGIC_CMD=$MAGIC_CMD | |
18015 | ||
18016 | # Must we lock files when doing compilation? | |
18017 | need_locks=$lt_need_locks | |
d9898ee8 | 18018 | |
b0322a85 CE |
18019 | # Manifest tool. |
18020 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
18021 | ||
8d138742 CE |
18022 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
18023 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 18024 | |
8d138742 CE |
18025 | # Tool to change global to local symbols on Mac OS X. |
18026 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 18027 | |
8d138742 CE |
18028 | # Tool to manipulate fat objects and archives on Mac OS X. |
18029 | LIPO=$lt_LIPO | |
d9898ee8 | 18030 | |
8d138742 CE |
18031 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
18032 | OTOOL=$lt_OTOOL | |
d9898ee8 | 18033 | |
8d138742 CE |
18034 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
18035 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 18036 | |
8d138742 CE |
18037 | # Old archive suffix (normally "a"). |
18038 | libext=$libext | |
d9898ee8 | 18039 | |
8d138742 CE |
18040 | # Shared library suffix (normally ".so"). |
18041 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 18042 | |
8d138742 CE |
18043 | # The commands to extract the exported symbol list from a shared archive. |
18044 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 18045 | |
8d138742 CE |
18046 | # Variables whose values should be saved in libtool wrapper scripts and |
18047 | # restored at link time. | |
18048 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
d9898ee8 | 18049 | |
8d138742 CE |
18050 | # Do we need the "lib" prefix for modules? |
18051 | need_lib_prefix=$need_lib_prefix | |
dd184caf | 18052 | |
8d138742 CE |
18053 | # Do we need a version for libraries? |
18054 | need_version=$need_version | |
d9898ee8 | 18055 | |
8d138742 CE |
18056 | # Library versioning type. |
18057 | version_type=$version_type | |
d9898ee8 | 18058 | |
8d138742 CE |
18059 | # Shared library runtime path variable. |
18060 | runpath_var=$runpath_var | |
d9898ee8 | 18061 | |
8d138742 CE |
18062 | # Shared library path variable. |
18063 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 18064 | |
8d138742 CE |
18065 | # Is shlibpath searched before the hard-coded library search path? |
18066 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 18067 | |
8d138742 CE |
18068 | # Format of library name prefix. |
18069 | libname_spec=$lt_libname_spec | |
d9898ee8 | 18070 | |
8d138742 CE |
18071 | # List of archive names. First name is the real one, the rest are links. |
18072 | # The last name is the one that the linker finds with -lNAME | |
18073 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 18074 | |
8d138742 CE |
18075 | # The coded name of the library, if different from the real name. |
18076 | soname_spec=$lt_soname_spec | |
d9898ee8 | 18077 | |
b0322a85 CE |
18078 | # Permission mode override for installation of shared libraries. |
18079 | install_override_mode=$lt_install_override_mode | |
18080 | ||
8d138742 CE |
18081 | # Command to use after installation of a shared archive. |
18082 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 18083 | |
8d138742 CE |
18084 | # Command to use after uninstallation of a shared archive. |
18085 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 18086 | |
8d138742 CE |
18087 | # Commands used to finish a libtool library installation in a directory. |
18088 | finish_cmds=$lt_finish_cmds | |
d9898ee8 | 18089 | |
8d138742 CE |
18090 | # As "finish_cmds", except a single script fragment to be evaled but |
18091 | # not shown. | |
18092 | finish_eval=$lt_finish_eval | |
dd184caf | 18093 | |
8d138742 CE |
18094 | # Whether we should hardcode library paths into libraries. |
18095 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 18096 | |
8d138742 CE |
18097 | # Compile-time system search path for libraries. |
18098 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 18099 | |
d50284c4 CE |
18100 | # Detected run-time system search path for libraries. |
18101 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
18102 | ||
18103 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
18104 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 18105 | |
8d138742 CE |
18106 | # Whether dlopen is supported. |
18107 | dlopen_support=$enable_dlopen | |
d9898ee8 | 18108 | |
8d138742 CE |
18109 | # Whether dlopen of programs is supported. |
18110 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 18111 | |
8d138742 CE |
18112 | # Whether dlopen of statically linked programs is supported. |
18113 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 18114 | |
8d138742 CE |
18115 | # Commands to strip libraries. |
18116 | old_striplib=$lt_old_striplib | |
18117 | striplib=$lt_striplib | |
d9898ee8 | 18118 | |
d9898ee8 | 18119 | |
8d138742 CE |
18120 | # The linker used to build libraries. |
18121 | LD=$lt_LD | |
d9898ee8 | 18122 | |
b0322a85 CE |
18123 | # How to create reloadable object files. |
18124 | reload_flag=$lt_reload_flag | |
18125 | reload_cmds=$lt_reload_cmds | |
18126 | ||
8d138742 CE |
18127 | # Commands used to build an old-style archive. |
18128 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 18129 | |
8d138742 CE |
18130 | # A language specific compiler. |
18131 | CC=$lt_compiler | |
d9898ee8 | 18132 | |
8d138742 CE |
18133 | # Is the compiler the GNU compiler? |
18134 | with_gcc=$GCC | |
d9898ee8 | 18135 | |
8d138742 CE |
18136 | # Compiler flag to turn off builtin functions. |
18137 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 18138 | |
8d138742 CE |
18139 | # Additional compiler flags for building library objects. |
18140 | pic_flag=$lt_lt_prog_compiler_pic | |
d9898ee8 | 18141 | |
b0322a85 CE |
18142 | # How to pass a linker flag through the compiler. |
18143 | wl=$lt_lt_prog_compiler_wl | |
18144 | ||
8d138742 CE |
18145 | # Compiler flag to prevent dynamic linking. |
18146 | link_static_flag=$lt_lt_prog_compiler_static | |
dd184caf | 18147 | |
8d138742 CE |
18148 | # Does compiler simultaneously support -c and -o options? |
18149 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
d9898ee8 | 18150 | |
8d138742 CE |
18151 | # Whether or not to add -lc for building shared libraries. |
18152 | build_libtool_need_lc=$archive_cmds_need_lc | |
18153 | ||
18154 | # Whether or not to disallow shared libs when runtime libs are static. | |
18155 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
18156 | ||
18157 | # Compiler flag to allow reflexive dlopens. | |
18158 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
18159 | ||
18160 | # Compiler flag to generate shared objects directly from archives. | |
18161 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 18162 | |
8d138742 CE |
18163 | # Whether the compiler copes with passing no objects directly. |
18164 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 18165 | |
8d138742 CE |
18166 | # Create an old-style archive from a shared archive. |
18167 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 18168 | |
8d138742 CE |
18169 | # Create a temporary old-style archive to link instead of a shared archive. |
18170 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
dd184caf | 18171 | |
8d138742 CE |
18172 | # Commands used to build a shared archive. |
18173 | archive_cmds=$lt_archive_cmds | |
18174 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 18175 | |
8d138742 CE |
18176 | # Commands used to build a loadable module if different from building |
18177 | # a shared archive. | |
18178 | module_cmds=$lt_module_cmds | |
18179 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 18180 | |
8d138742 CE |
18181 | # Whether we are building with GNU ld or not. |
18182 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 18183 | |
8d138742 CE |
18184 | # Flag that allows shared libraries with undefined symbols to be built. |
18185 | allow_undefined_flag=$lt_allow_undefined_flag | |
d9898ee8 | 18186 | |
8d138742 CE |
18187 | # Flag that enforces no undefined symbols. |
18188 | no_undefined_flag=$lt_no_undefined_flag | |
dd184caf | 18189 | |
8d138742 CE |
18190 | # Flag to hardcode \$libdir into a binary during linking. |
18191 | # This must work even if \$libdir does not exist | |
18192 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 18193 | |
8d138742 CE |
18194 | # Whether we need a single "-rpath" flag with a separated argument. |
18195 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 18196 | |
d50284c4 | 18197 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
18198 | # DIR into the resulting binary. |
18199 | hardcode_direct=$hardcode_direct | |
dd184caf | 18200 | |
d50284c4 | 18201 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 18202 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 18203 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
18204 | # library is relocated. |
18205 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 18206 | |
8d138742 CE |
18207 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
18208 | # into the resulting binary. | |
18209 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 18210 | |
8d138742 CE |
18211 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
18212 | # into the resulting binary. | |
18213 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 18214 | |
8d138742 CE |
18215 | # Set to "yes" if building a shared library automatically hardcodes DIR |
18216 | # into the library and all subsequent libraries and executables linked | |
18217 | # against it. | |
18218 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 18219 | |
8d138742 CE |
18220 | # Set to yes if linker adds runtime paths of dependent libraries |
18221 | # to runtime path list. | |
18222 | inherit_rpath=$inherit_rpath | |
dd184caf | 18223 | |
8d138742 CE |
18224 | # Whether libtool must link a program against all its dependency libraries. |
18225 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 18226 | |
8d138742 CE |
18227 | # Set to "yes" if exported symbols are required. |
18228 | always_export_symbols=$always_export_symbols | |
dd184caf | 18229 | |
8d138742 CE |
18230 | # The commands to list exported symbols. |
18231 | export_symbols_cmds=$lt_export_symbols_cmds | |
d9898ee8 | 18232 | |
8d138742 CE |
18233 | # Symbols that should not be listed in the preloaded symbols. |
18234 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 18235 | |
8d138742 CE |
18236 | # Symbols that must always be exported. |
18237 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 18238 | |
8d138742 CE |
18239 | # Commands necessary for linking programs (against libraries) with templates. |
18240 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 18241 | |
b0322a85 CE |
18242 | # Commands necessary for finishing linking programs. |
18243 | postlink_cmds=$lt_postlink_cmds | |
18244 | ||
8d138742 CE |
18245 | # Specify filename containing input files. |
18246 | file_list_spec=$lt_file_list_spec | |
d9898ee8 | 18247 | |
8d138742 CE |
18248 | # How to hardcode a shared library path into an executable. |
18249 | hardcode_action=$hardcode_action | |
d9898ee8 | 18250 | |
8d138742 CE |
18251 | # ### END LIBTOOL CONFIG |
18252 | ||
d50284c4 CE |
18253 | _LT_EOF |
18254 | ||
18255 | cat <<'_LT_EOF' >> "$cfgfile" | |
18256 | ||
18257 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
18258 | ||
18259 | # func_munge_path_list VARIABLE PATH | |
18260 | # ----------------------------------- | |
18261 | # VARIABLE is name of variable containing _space_ separated list of | |
18262 | # directories to be munged by the contents of PATH, which is string | |
18263 | # having a format: | |
18264 | # "DIR[:DIR]:" | |
18265 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
18266 | # ":DIR[:DIR]" | |
18267 | # string "DIR[ DIR]" will be appended to VARIABLE | |
18268 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
18269 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
18270 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
18271 | # "DIR[:DIR]" | |
18272 | # VARIABLE will be replaced by "DIR[ DIR]" | |
18273 | func_munge_path_list () | |
18274 | { | |
18275 | case x$2 in | |
18276 | x) | |
18277 | ;; | |
18278 | *:) | |
18279 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
18280 | ;; | |
18281 | x:*) | |
18282 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
18283 | ;; | |
18284 | *::*) | |
18285 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
18286 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
18287 | ;; | |
18288 | *) | |
18289 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
18290 | ;; | |
18291 | esac | |
18292 | } | |
18293 | ||
18294 | ||
18295 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
18296 | func_cc_basename () | |
18297 | { | |
18298 | for cc_temp in $*""; do | |
18299 | case $cc_temp in | |
18300 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18301 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18302 | \-*) ;; | |
18303 | *) break;; | |
18304 | esac | |
18305 | done | |
18306 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
18307 | } | |
18308 | ||
18309 | ||
18310 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
18311 | ||
8d138742 CE |
18312 | _LT_EOF |
18313 | ||
18314 | case $host_os in | |
18315 | aix3*) | |
18316 | cat <<\_LT_EOF >> "$cfgfile" | |
18317 | # AIX sometimes has problems with the GCC collect2 program. For some | |
18318 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
18319 | # vanish in a puff of smoke. | |
d50284c4 | 18320 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
18321 | COLLECT_NAMES= |
18322 | export COLLECT_NAMES | |
18323 | fi | |
18324 | _LT_EOF | |
18325 | ;; | |
d9898ee8 | 18326 | esac |
8d138742 CE |
18327 | |
18328 | ||
d50284c4 | 18329 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
18330 | |
18331 | ||
18332 | # We use sed instead of cat because bash on DJGPP gets confused if | |
18333 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
18334 | # text mode, it properly converts lines to CR/LF. This bash problem | |
18335 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
18336 | sed '$q' "$ltmain" >> "$cfgfile" \ |
18337 | || (rm -f "$cfgfile"; exit 1) | |
18338 | ||
b0322a85 | 18339 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
18340 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
18341 | chmod +x "$ofile" | |
18342 | ||
d9898ee8 | 18343 | ;; |
dd184caf | 18344 | |
d9898ee8 | 18345 | esac |
dd184caf | 18346 | done # for ac_tag |
d9898ee8 | 18347 | |
d9898ee8 | 18348 | |
b0322a85 | 18349 | as_fn_exit 0 |
d9898ee8 | 18350 | _ACEOF |
d9898ee8 | 18351 | ac_clean_files=$ac_clean_files_save |
18352 | ||
8d138742 | 18353 | test $ac_write_fail = 0 || |
b0322a85 | 18354 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 18355 | |
d9898ee8 | 18356 | |
18357 | # configure is writing to config.log, and then calls config.status. | |
18358 | # config.status does its own redirection, appending to config.log. | |
18359 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
18360 | # by configure, so config.status won't be able to write to it; its | |
18361 | # output is simply discarded. So we exec the FD to /dev/null, | |
18362 | # effectively closing config.log, so it can be properly (re)opened and | |
18363 | # appended to by config.status. When coming back to configure, we | |
18364 | # need to make the FD available again. | |
18365 | if test "$no_create" != yes; then | |
18366 | ac_cs_success=: | |
18367 | ac_config_status_args= | |
18368 | test "$silent" = yes && | |
18369 | ac_config_status_args="$ac_config_status_args --quiet" | |
18370 | exec 5>/dev/null | |
18371 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
18372 | exec 5>>config.log | |
18373 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
18374 | # would make configure fail if this is the last instruction. | |
b0322a85 | 18375 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 18376 | fi |
18377 | ||
18378 | # | |
18379 | # CONFIG_SUBDIRS section. | |
18380 | # | |
18381 | if test "$no_recursion" != yes; then | |
18382 | ||
8d138742 CE |
18383 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
18384 | # so they do not pile up. | |
d9898ee8 | 18385 | ac_sub_configure_args= |
18386 | ac_prev= | |
dd184caf | 18387 | eval "set x $ac_configure_args" |
18388 | shift | |
18389 | for ac_arg | |
18390 | do | |
d9898ee8 | 18391 | if test -n "$ac_prev"; then |
18392 | ac_prev= | |
18393 | continue | |
18394 | fi | |
18395 | case $ac_arg in | |
18396 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
18397 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18398 | ac_prev=cache_file ;; | |
18399 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
18400 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
18401 | | --c=*) | |
18402 | ;; | |
18403 | --config-cache | -C) | |
18404 | ;; | |
18405 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18406 | ac_prev=srcdir ;; | |
18407 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18408 | ;; | |
18409 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
18410 | ac_prev=prefix ;; | |
18411 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18412 | ;; | |
8d138742 CE |
18413 | --disable-option-checking) |
18414 | ;; | |
dd184caf | 18415 | *) |
18416 | case $ac_arg in | |
8d138742 | 18417 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 18418 | esac |
b0322a85 | 18419 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
d9898ee8 | 18420 | esac |
18421 | done | |
18422 | ||
18423 | # Always prepend --prefix to ensure using the same prefix | |
18424 | # in subdir configurations. | |
dd184caf | 18425 | ac_arg="--prefix=$prefix" |
18426 | case $ac_arg in | |
8d138742 | 18427 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
dd184caf | 18428 | esac |
18429 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
18430 | ||
18431 | # Pass --silent | |
18432 | if test "$silent" = yes; then | |
18433 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
18434 | fi | |
d9898ee8 | 18435 | |
8d138742 CE |
18436 | # Always prepend --disable-option-checking to silence warnings, since |
18437 | # different subdirs can have different --enable and --with options. | |
18438 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
18439 | ||
d9898ee8 | 18440 | ac_popdir=`pwd` |
18441 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
18442 | ||
18443 | # Do not complain, so a configure script can configure whichever | |
18444 | # parts of a large source tree are present. | |
dd184caf | 18445 | test -d "$srcdir/$ac_dir" || continue |
18446 | ||
18447 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
b0322a85 | 18448 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
8d138742 | 18449 | $as_echo "$ac_msg" >&6 |
b0322a85 | 18450 | as_dir="$ac_dir"; as_fn_mkdir_p |
d9898ee8 | 18451 | ac_builddir=. |
18452 | ||
dd184caf | 18453 | case "$ac_dir" in |
18454 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18455 | *) | |
8d138742 | 18456 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 18457 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 18458 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 18459 | case $ac_top_builddir_sub in |
18460 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
18461 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
18462 | esac ;; | |
18463 | esac | |
18464 | ac_abs_top_builddir=$ac_pwd | |
18465 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
18466 | # for backward compatibility: | |
18467 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 18468 | |
18469 | case $srcdir in | |
dd184caf | 18470 | .) # We are building in place. |
d9898ee8 | 18471 | ac_srcdir=. |
dd184caf | 18472 | ac_top_srcdir=$ac_top_builddir_sub |
18473 | ac_abs_top_srcdir=$ac_pwd ;; | |
18474 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 18475 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 18476 | ac_top_srcdir=$srcdir |
18477 | ac_abs_top_srcdir=$srcdir ;; | |
18478 | *) # Relative name. | |
18479 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
18480 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
18481 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 18482 | esac |
dd184caf | 18483 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 | 18484 | |
18485 | ||
dd184caf | 18486 | cd "$ac_dir" |
d9898ee8 | 18487 | |
18488 | # Check for guested configure; otherwise get Cygnus style configure. | |
dd184caf | 18489 | if test -f "$ac_srcdir/configure.gnu"; then |
18490 | ac_sub_configure=$ac_srcdir/configure.gnu | |
18491 | elif test -f "$ac_srcdir/configure"; then | |
18492 | ac_sub_configure=$ac_srcdir/configure | |
18493 | elif test -f "$ac_srcdir/configure.in"; then | |
18494 | # This should be Cygnus configure. | |
18495 | ac_sub_configure=$ac_aux_dir/configure | |
d9898ee8 | 18496 | else |
b0322a85 | 18497 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
8d138742 | 18498 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
d9898ee8 | 18499 | ac_sub_configure= |
18500 | fi | |
18501 | ||
18502 | # The recursion is here. | |
18503 | if test -n "$ac_sub_configure"; then | |
18504 | # Make the cache file name correct relative to the subdirectory. | |
18505 | case $cache_file in | |
18506 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
dd184caf | 18507 | *) # Relative name. |
18508 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
d9898ee8 | 18509 | esac |
18510 | ||
b0322a85 | 18511 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
8d138742 | 18512 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
d9898ee8 | 18513 | # The eval makes quoting arguments work. |
dd184caf | 18514 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
18515 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
b0322a85 | 18516 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
d9898ee8 | 18517 | fi |
18518 | ||
dd184caf | 18519 | cd "$ac_popdir" |
d9898ee8 | 18520 | done |
18521 | fi | |
8d138742 | 18522 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 18523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
18524 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
18525 | fi | |
d9898ee8 | 18526 |